/**
 * ============================================================
 * ESTILOS PRINCIPAIS - ÁREA PÚBLICA (MODERNO)
 * Sistema de Chaveamento para Esportes Coletivos v2.1
 * ============================================================
 */

/* ============================================================
   VARIÁVEIS CSS
   ============================================================ */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-rgb: 99, 102, 241;
    
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ============================================================
   RESET E BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--secondary);
    color: var(--gray-400);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-divider {
    width: 1px;
    height: 12px;
    background: var(--gray-600);
}

.top-bar a {
    color: var(--gray-400);
}

.top-bar a:hover {
    color: white;
}

/* ============================================================
   NAVBAR PRINCIPAL
   ============================================================ */
.navbar-main {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-content {
    display: flex;
    align-items: center;
    padding: 0.875rem 0;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-right: auto;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    transition: transform var(--transition);
}

.navbar-brand:hover .brand-icon {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Toggle Mobile */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.toggle-line {
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   MENU - HORIZONTAL NO DESKTOP
   ============================================================ */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.nav-link i:first-child {
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
}

.dropdown-arrow {
    font-size: 0.625rem;
    margin-left: 0.125rem;
    transition: transform var(--transition);
}

/* ============================================================
   DROPDOWN - CORRIGIDO E FUNCIONANDO
   ============================================================ */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown > .nav-link {
    cursor: pointer;
}

/* Dropdown Menu - Escondido */
.nav-item.has-dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid var(--gray-100);
    z-index: 9999;
    
    /* Escondido */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

/* Dropdown Menu - Visível no Hover */
.nav-item.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Seta rotaciona */
.nav-item.has-dropdown:hover > .nav-link .dropdown-arrow {
    transform: rotate(180deg);
}

/* Itens do Dropdown */
.nav-item.has-dropdown > .dropdown-menu > .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
}

.nav-item.has-dropdown > .dropdown-menu > .dropdown-item:hover {
    background: var(--primary-50);
}

/* Ícone do Item */
.nav-item.has-dropdown > .dropdown-menu > .dropdown-item > i:first-child {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.nav-item.has-dropdown > .dropdown-menu > .dropdown-item:hover > i:first-child {
    background: var(--primary);
    color: white;
}

/* Texto do Item */
.nav-item.has-dropdown > .dropdown-menu > .dropdown-item > div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.nav-item.has-dropdown > .dropdown-menu > .dropdown-item > div > strong {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

.nav-item.has-dropdown > .dropdown-menu > .dropdown-item > div > small {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.nav-item.has-dropdown > .dropdown-menu > .dropdown-item:hover > div > strong {
    color: var(--primary);
}

/* ============================================================
   NAVBAR ACTIONS
   ============================================================ */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.5rem;
}

.btn-navbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-navbar-outline {
    background: transparent;
    border-color: var(--gray-200);
    color: var(--gray-700);
}

.btn-navbar-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.btn-navbar-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-navbar-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    color: white;
}

/* ============================================================
   USER MENU
   ============================================================ */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
}

.user-menu-toggle:hover {
    background: var(--gray-200);
}

.user-menu.active .user-menu-toggle {
    border-color: var(--primary);
    background: var(--primary-50);
}

.user-menu-toggle .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu-toggle .user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.user-menu-toggle i.fa-chevron-down {
    font-size: 0.625rem;
    color: var(--gray-500);
    transition: transform var(--transition);
}

.user-menu.active .user-menu-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 280px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    z-index: 9999;
    overflow: hidden;
    
    /* Escondido */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.user-info .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.user-info div {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 1rem;
    font-weight: 700;
}

.user-info small {
    font-size: 0.8125rem;
    opacity: 0.85;
}

.user-dropdown-body {
    padding: 0.5rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.user-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--gray-500);
}

.user-dropdown-item:hover i {
    color: var(--primary);
}

.user-dropdown-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container {
    padding: 1rem 0;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
}

.flash-success { border-color: var(--success); }
.flash-danger { border-color: var(--danger); }
.flash-warning { border-color: var(--warning); }
.flash-info { border-color: var(--info); }

.flash-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flash-success .flash-icon { background: var(--success-light); color: var(--success); }
.flash-danger .flash-icon { background: var(--danger-light); color: var(--danger); }
.flash-warning .flash-icon { background: var(--warning-light); color: var(--warning); }
.flash-info .flash-icon { background: var(--info-light); color: var(--info); }

.flash-content {
    flex: 1;
    font-weight: 500;
    color: var(--gray-700);
}

.flash-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition);
}

.flash-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    min-height: calc(100vh - 400px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--secondary);
    color: var(--gray-400);
    margin-top: auto;
}

.footer-top {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 2.5rem 0;
}

.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.newsletter-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.newsletter-text h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.9375rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.newsletter-form input {
    width: 280px;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.9375rem;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.footer-brand .brand-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

.footer-brand .brand-name { color: white; }
.footer-brand .brand-tagline { color: var(--gray-500); }

.footer-description {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 0.625rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--secondary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.625rem; }

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: all var(--transition);
}

.footer-links a i {
    font-size: 0.625rem;
    color: var(--primary);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.375rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-text a,
.contact-text p {
    color: var(--gray-300);
    margin: 0;
    font-size: 0.9375rem;
}

.contact-text a:hover { color: white; }

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.copyright strong { color: var(--gray-300); }

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-bottom-links a:hover { color: white; }

.version {
    color: var(--gray-600);
    font-size: 0.75rem;
    background: var(--secondary-light);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================================
   BUTTONS, CARDS, BADGES, FORMS, TABLES, ETC
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    color: white;
}

.btn-lg { padding: 0.875rem 1.75rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }

.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.card-body { padding: 1.5rem; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--gray-800);
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-state-icon i {
    font-size: 2rem;
    color: var(--gray-400);
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 991.98px) {
    .top-bar { display: none; }
    .navbar-toggle { display: flex; }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform var(--transition-slow);
        z-index: 998;
        overflow-y: auto;
    }
    
    .navbar-menu.show { transform: translateX(0); }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
    }
    
    .nav-item { width: 100%; }
    
    .nav-link {
        padding: 1rem;
        border-radius: var(--radius-lg);
        font-size: 1.0625rem;
    }
    
    /* Dropdown no Mobile - Click */
    .nav-item.has-dropdown > .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        margin-top: 0.5rem;
        padding: 0.5rem;
        border-radius: var(--radius);
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-item.has-dropdown.active > .dropdown-menu { max-height: 500px; }
    .nav-item.has-dropdown:hover > .dropdown-menu { max-height: 0; }
    .nav-item.has-dropdown.active:hover > .dropdown-menu { max-height: 500px; }
    
    .navbar-actions {
        width: 100%;
        flex-direction: column;
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
    }
    
    .btn-navbar { width: 100%; padding: 0.875rem; }
    .user-menu { width: 100%; }
    .user-menu-toggle { width: 100%; justify-content: center; padding: 0.75rem; }
    .user-dropdown { position: static; width: 100%; margin-top: 0.5rem; transform: none; }
    
    .footer-newsletter { flex-direction: column; text-align: center; }
    .newsletter-content { flex-direction: column; }
    .newsletter-form { flex-direction: column; width: 100%; }
    .newsletter-form input { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-about { grid-column: 1 / -1; text-align: center; }
    .footer-about .footer-brand { justify-content: center; }
    .footer-social { justify-content: center; }
    .footer-bottom-content { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 575.98px) {
    .brand-text { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-links a { justify-content: center; }
    .footer-contact li { flex-direction: column; align-items: center; }
    .back-to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
}

/* ============================================================
   SCROLLBAR & UTILITIES
   ============================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }