/* LList - Estilos Principais */
:root {
    --primary-color: #DC143C;
    --primary-dark: #B71C1C;
    --primary-light: #FF6B6B;
    --primary-glow: rgba(220, 53, 69, 0.25);
    --secondary-color: #FFFFFF;
    --text-color: #1a1a1a;
    --text-light: #6b7280;
    --bg-color: #FFFFFF;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-display: 'Plus Jakarta Sans', var(--font-sans, sans-serif);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

body {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.5;
    min-height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Páginas que ocupam o espaço disponível: layout em coluna */
.page-home,
.page-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.page-home {
    font-family: var(--font-display);
    background: linear-gradient(180deg, #fef7f8 0%, #f9fafb 35%, #f3f4f6 100%);
}

.page-home .main-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-home .search-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-dashboard {
    font-family: var(--font-display);
    background: linear-gradient(180deg, #fefbfc 0%, #f8f9fb 40%, #f1f3f5 100%);
}

.page-dashboard .navbar {
    flex-shrink: 0;
}

.page-dashboard main.dashboard {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.page-dashboard main.dashboard .container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
}

.page-dashboard .navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(220, 53, 69, 0.06);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.page-dashboard .nav-brand a {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navbar */
.navbar {
    background: var(--secondary-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 9998;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.page-home .navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(220, 53, 69, 0.06);
}

/* Container: mesmo padding do main.dashboard .container (1.5rem) para alinhar conteúdo */
.navbar-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

/* Logo sempre à esquerda */
.nav-brand {
    flex-shrink: 0;
    order: 1;
}

.nav-brand a {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    letter-spacing: -0.03em;
}

/* Ícone da navbar: icon.png, no máximo 80x80px */
.nav-brand .site-logo {
    height: 48px;
    width: 48px;
    max-height: 80px;
    max-width: 80px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .nav-brand .site-logo {
        height: 40px;
        width: 40px;
    }
}

.page-home .nav-brand a {
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Botão hamburger: só no mobile */
.nav-toggle {
    display: none;
    margin-left: auto;
    order: 2;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.nav-toggle:hover {
    background: var(--border-color);
    color: var(--primary-color);
}
.nav-toggle i {
    font-size: 1.25rem;
}

/* Botão fechar dentro do drawer (só visível no mobile) */
.nav-close {
    display: none;
}

/* Menu à direita no desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 1;
    min-width: 0;
    margin-left: auto;
    order: 3;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ---- Mobile: menu drawer ---- */
@media (max-width: 768px) {
    .navbar {
        padding-top: calc(1rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .navbar-container {
        padding-left: calc(1.5rem + env(safe-area-inset-left, 0px));
        padding-right: calc(1.5rem + env(safe-area-inset-right, 0px));
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 100vw);
        height: 100vh;
        margin: 0;
        padding: 1.25rem 1.5rem 2rem;
        background: var(--secondary-color);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 10002;
        transform: translateX(100%);
        transition: transform 0.25s ease-out;
        overflow-y: auto;
    }
    body.nav-open .nav-menu {
        transform: translateX(0);
    }
    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0 0 1rem auto;
        border: none;
        background: var(--bg-light);
        color: var(--text-color);
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }
    .nav-close:hover {
        background: var(--border-color);
        color: var(--primary-color);
    }
    .nav-menu .nav-link {
        padding: 0.875rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
    }
    .nav-menu .nav-link:hover {
        background: var(--bg-light);
    }
    .nav-menu .btn {
        margin-top: 0.5rem;
        text-align: center;
    }
    /* Overlay atrás do drawer */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 10001;
        opacity: 0;
        transition: opacity 0.2s ease-out;
    }
    body.nav-open .nav-overlay {
        display: block;
        opacity: 1;
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.page-home .nav-menu .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    font-weight: 700;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.page-home .nav-menu .btn-primary:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-danger {
    background: #E74C3C;
    color: var(--secondary-color);
}

.btn-danger:hover {
    background: #C0392B;
}

.btn-success {
    background: #27AE60;
    color: var(--secondary-color);
}

.btn-warning {
    background: #F39C12;
    color: var(--secondary-color);
}

.btn-info {
    background: #3498DB;
    color: var(--secondary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Search Page */
.main-content {
    padding: 0 1.5rem;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
    padding: 3rem 0 4rem;
}

/* Hero da busca */
.search-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
    padding: 3.5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(220, 53, 69, 0.08);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.page-home .search-hero {
    box-shadow: 0 32px 64px -12px rgba(220, 53, 69, 0.08), 0 0 0 1px rgba(220, 53, 69, 0.04);
}

.search-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    line-height: 1.15;
    background: linear-gradient(135deg, #DC143C 0%, #B71C1C 50%, #c62828 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-title i {
    -webkit-text-fill-color: initial;
    color: var(--primary-color);
}

.search-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.search-form {
    margin-top: 0;
}

.search-form-hero .search-input-wrapper {
    border-radius: 999px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.25s ease;
    background: #fff;
}

.search-form-hero .search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 28px var(--primary-glow);
    transform: scale(1.01);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--secondary-color);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.search-icon {
    color: var(--text-light);
    margin: 0 1.25rem;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    padding: 1rem 0.5rem;
    min-width: 0;
    color: var(--text-color);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0 1.75rem;
    height: 52px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.search-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.search-btn:active {
    transform: translateY(0);
}

/* Resultados */
.search-results {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.search-results-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 1.35rem;
    color: var(--text-color);
    font-weight: 700;
    padding: 0 0.25rem;
}

.search-results-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.search-results-title strong {
    color: var(--primary-color);
    font-weight: 800;
}

.search-results-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    background: rgba(220, 53, 69, 0.06);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 999px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* Cards de resultado */
.result-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover {
    border-color: rgba(220, 53, 69, 0.2);
    box-shadow: 0 12px 40px -8px rgba(220, 53, 69, 0.15), 0 0 0 1px rgba(220, 53, 69, 0.05);
    transform: translateY(-3px);
}

.result-card:hover::before {
    opacity: 1;
}

.result-avatar {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(220, 53, 69, 0.08);
}

.result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-avatar i {
    font-size: 2rem;
    color: var(--text-light);
}

.result-body {
    flex: 1;
    min-width: 0;
}

.result-body > * {
    display: block;
    margin: 0 0 0.5rem 0;
}

.result-body > *:last-child {
    margin-bottom: 0;
}

.result-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.result-username {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.result-slug {
    font-size: 0.8rem;
    color: var(--text-light);
    word-break: break-all;
    padding: 0.4rem 0.6rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
}

.result-bio {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-top: 0.5rem;
}

.result-stats {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.result-stats i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.result-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: gap 0.2s ease;
}

.result-card:hover .result-action {
    gap: 0.6rem;
}

.result-action i {
    font-size: 0.75rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(220, 53, 69, 0.15);
    margin: 0 0.25rem;
}

.no-results i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    opacity: 0.4;
}

.no-results p {
    margin-bottom: 0.5rem;
}

.no-results-hint {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.no-results-hint em {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-top: 3.5rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.welcome-section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #DC143C 0%, #B71C1C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section > p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.65;
    font-weight: 500;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}

.feature-card {
    background: #fff;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.06);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -8px rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.12) 0%, rgba(220, 53, 69, 0.06) 100%);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-box {
    background: var(--secondary-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.auth-header h2 {
    color: var(--text-color);
    margin-top: 1rem;
}

.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #FFE5E5;
    color: #C0392B;
    border: 1px solid #E74C3C;
}

.alert-success {
    background: #D5F4E6;
    color: #27AE60;
    border: 1px solid #2ECC71;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.dashboard h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.card h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.links-list {
    margin-top: 1.5rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border-radius: 8px;
    color: var(--primary-color);
}

.link-info {
    flex: 1;
}

.link-info strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.link-info small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.link-stats {
    color: var(--text-light);
    font-size: 0.875rem;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-color);
}

.stat-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.text-muted {
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    margin-top: 3rem;
}

.page-home .footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-light);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        padding: 2rem 0 3rem;
    }
    
    .search-hero {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .search-title {
        font-size: 2.25rem;
    }
    
    .search-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-form-hero .search-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .search-icon {
        display: none;
    }
    
    .search-form-hero .search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .result-card {
        padding: 1.25rem;
    }
    
    .result-avatar {
        width: 56px;
        height: 56px;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .welcome-section > p {
        font-size: 1.1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Language selector (i18n) */
.lang-selector {
    position: relative;
    display: inline-block;
    z-index: 10003;
}
.lang-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.lang-selector-btn:hover {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.lang-selector-arrow {
    font-size: 0.65rem;
    opacity: 0.8;
}
.lang-selector-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    min-width: 160px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.25rem 0;
    z-index: 10004;
}
.lang-selector-dropdown[hidden] {
    display: none;
}
.lang-selector-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
}
.lang-selector-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}
.lang-selector-dropdown a.active {
    font-weight: 600;
    color: var(--primary-color);
}
.nav-menu .lang-selector {
    margin-right: 0.75rem;
}
/* Landing: navbar é branca (inline), botão e dropdown precisam de contraste */
.page-landing .lang-selector-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #1a1a1a;
}
.page-landing .lang-selector-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.page-landing .lang-selector-current { color: inherit; }
.page-landing .lang-selector-dropdown {
    background: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.page-landing .lang-selector-dropdown a {
    color: #1a1a1a;
}
