/* ========================================
   EYENAK AI - Modern Navbar Styles
   Premium Glassmorphism & Responsive Design
   ======================================== */

/* CSS Variables for Navbar */
:root {
    --navbar-height: 70px;
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.95);
    --navbar-border: rgba(0, 0, 0, 0.06);
    --navbar-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    --nav-link-color: #374151;
    --nav-link-hover: #6366f1;
    --nav-link-active: #6366f1;
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
}

/* ========== NAVBAR BASE ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    padding: 0 clamp(16px, 4vw, 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--navbar-border);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State */
.navbar.scrolled {
    background: var(--navbar-bg-scrolled);
    box-shadow: var(--navbar-shadow);
    height: 64px;
}

/* ========== DARK THEME ========== */
body.dark-theme .navbar,
[data-theme="dark"] .navbar {
    --navbar-bg: rgba(13, 17, 23, 0.85);
    --navbar-bg-scrolled: rgba(13, 17, 23, 0.95);
    --navbar-border: rgba(48, 54, 61, 0.6);
    --navbar-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --nav-link-color: #c9d1d9;
    --nav-link-hover: #58a6ff;
    --nav-link-active: #58a6ff;
    --mobile-menu-bg: rgba(13, 17, 23, 0.98);
}

body.dark-theme .logo,
[data-theme="dark"] .logo {
    color: #58a6ff;
}

body.dark-theme .logo-icon,
[data-theme="dark"] .logo-icon {
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
}

body.dark-theme .nav-link,
[data-theme="dark"] .nav-link {
    color: var(--nav-link-color);
}

body.dark-theme .nav-link:hover,
body.dark-theme .nav-link.active,
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--nav-link-active);
}

body.dark-theme .dropdown-content,
[data-theme="dark"] .dropdown-content {
    background: rgba(22, 27, 34, 0.98);
    border-color: rgba(48, 54, 61, 0.8);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

body.dark-theme .dropdown-content a,
[data-theme="dark"] .dropdown-content a {
    color: #c9d1d9;
}

body.dark-theme .dropdown-content a:hover,
[data-theme="dark"] .dropdown-content a:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    border-left-color: #58a6ff;
}

body.dark-theme .btn-outline,
[data-theme="dark"] .btn-outline {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.3) !important;
    color: #58a6ff;
}

body.dark-theme .btn-outline:hover,
[data-theme="dark"] .btn-outline:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.5) !important;
}

body.dark-theme .lang-toggle-btn,
[data-theme="dark"] .lang-toggle-btn {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.2);
    color: #58a6ff;
}

body.dark-theme .lang-toggle-btn:hover,
[data-theme="dark"] .lang-toggle-btn:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.4);
}

body.dark-theme .mobile-menu,
[data-theme="dark"] .mobile-menu {
    background: var(--bg-primary);
    border-color: rgba(48, 54, 61, 0.6);
}

body.dark-theme .mobile-menu .nav-link,
[data-theme="dark"] .mobile-menu .nav-link {
    color: #c9d1d9;
    border-color: rgba(48, 54, 61, 0.4);
}

body.dark-theme .mobile-menu .nav-link:hover,
body.dark-theme .mobile-menu .nav-link.active,
[data-theme="dark"] .mobile-menu .nav-link:hover,
[data-theme="dark"] .mobile-menu .nav-link.active {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
}

body.dark-theme .hamburger span,
[data-theme="dark"] .hamburger span {
    background: #c9d1d9;
}

/* ========== AUTH PAGE VARIANT ========== */
body.auth-page .navbar {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.auth-page .logo {
    color: #fff;
}

body.auth-page .logo-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.auth-page .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

body.auth-page .nav-link:hover,
body.auth-page .nav-link.active {
    color: #fff;
}

body.auth-page .nav-link.active::after {
    background: #fff;
}

body.auth-page .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.1);
}

body.auth-page .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6) !important;
}

body.auth-page .btn-primary {
    background: #fff;
    color: #6366f1;
}

body.auth-page .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

body.auth-page .lang-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

body.auth-page .hamburger span {
    background: #fff;
}

/* ========== LOGO ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6366f1;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10001;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

/* ========== NAV MENU (Desktop) ========== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
}

/* ========== NAV LINKS ========== */
.nav-link {
    position: relative;
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

.nav-link:hover::before {
    width: 100%;
}

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

.nav-link.active::before {
    width: 100%;
}

/* ========== DROPDOWN ========== */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chevron-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .chevron-icon,
.nav-dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.98);
}

.nav-dropdown:hover .dropdown-content,
.nav-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    color: #6366f1;
    border-left-color: #6366f1;
    transform: translateX(4px);
}

.dropdown-content a i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6366f1;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.dropdown-content a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* ========== PROFILE DROPDOWN - ENHANCED ========== */
.profile-dropdown {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.profile-toggle:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.profile-toggle.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
}

/* Avatar Wrapper with Status and Ring */
.profile-avatar-wrapper {
    position: relative;
    width: 34px;
    height: 34px;
}

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.profile-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--navbar-bg, #0d1117);
    z-index: 3;
}

.profile-status.online {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: pulse-green 2s ease-in-out infinite;
}

.profile-status.away {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.profile-status.busy {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.8); }
}

.profile-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #6366f1, #a855f7) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-toggle:hover .profile-ring {
    opacity: 1;
    animation: spin-slow 3s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-toggle .chevron-icon {
    font-size: 10px;
    color: var(--nav-link-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.profile-dropdown:hover .profile-toggle .chevron-icon,
.profile-dropdown.active .profile-toggle .chevron-icon {
    transform: rotate(180deg);
    opacity: 1;
}

/* Profile Dropdown Menu - Enhanced */
.profile-menu {
    min-width: 320px;
    right: 0;
    left: auto;
    padding: 0;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top right;
    border-radius: 16px;
    overflow: hidden;
}

.profile-menu::before {
    display: none;
}

.profile-dropdown:hover .profile-menu,
.profile-dropdown.active .profile-menu {
    transform: translateY(0) scale(1);
}

/* Profile Menu Header */
.profile-menu-header {
    position: relative;
    padding: 20px 16px 16px;
    overflow: hidden;
}

.profile-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 50%, rgba(168, 85, 247, 0.1) 100%);
    z-index: 0;
}

.profile-header-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

.profile-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Large Avatar Container */
.profile-avatar-container {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.profile-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.profile-status-large {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--dropdown-bg, #161b22);
    z-index: 3;
}

.profile-status-large.online {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.profile-ring-large {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin-slow 4s linear infinite;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--nav-link-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.profile-email {
    font-size: 12px;
    color: var(--nav-link-color);
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: #eab308;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-badge i {
    font-size: 9px;
}

/* Badge variants based on plan type */
.profile-badge.enterprise {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    color: #a855f7;
}

.profile-badge.pro {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-color: rgba(234, 179, 8, 0.3);
    color: #eab308;
}

.profile-badge.plus {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.profile-badge.paid {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.profile-badge.free {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(75, 85, 99, 0.15) 100%);
    border-color: rgba(107, 114, 128, 0.3);
    color: #9ca3af;
}

/* Quick Stats */
.profile-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.03);
    border-top: 1px solid rgba(99, 102, 241, 0.08);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--nav-link-color);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--bs-purple);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Profile Menu Links */
.profile-menu-links {
    padding: 8px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.profile-link:hover {
    background: rgba(99, 102, 241, 0.08);
}

.profile-link:hover::before {
    transform: scaleY(1);
}

.link-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.profile-link:hover .link-icon {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.05);
}

.link-icon.security {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.profile-link:hover .link-icon.security {
    background: rgba(34, 197, 94, 0.15);
}

.link-icon.wallet {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.profile-link:hover .link-icon.wallet {
    background: rgba(245, 158, 11, 0.15);
}

.link-icon.achievements {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.profile-link:hover .link-icon.achievements {
    background: rgba(236, 72, 153, 0.15);
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--nav-link-color);
    transition: color 0.2s ease;
}

.link-desc {
    display: block;
    font-size: 11px;
    color: var(--nav-link-color);
    opacity: 0.5;
    margin-top: 1px;
}

.link-arrow {
    font-size: 10px;
    color: var(--nav-link-color);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.profile-link:hover .link-arrow {
    opacity: 0.5;
    transform: translateX(0);
}

/* Profile Menu Footer */
.profile-menu-footer {
    padding: 8px 8px 12px;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 10px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.logout-btn i {
    font-size: 14px;
}

/* Dark theme profile styles - Enhanced */
body.dark-theme .profile-toggle,
[data-theme="dark"] .profile-toggle {
    background: rgba(88, 166, 255, 0.08);
    border-color: rgba(88, 166, 255, 0.15);
}

body.dark-theme .profile-toggle:hover,
[data-theme="dark"] .profile-toggle:hover {
    background: rgba(88, 166, 255, 0.12);
    border-color: rgba(88, 166, 255, 0.25);
}

body.dark-theme .profile-toggle.active,
[data-theme="dark"] .profile-toggle.active {
    background: rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.35);
}

body.dark-theme .profile-avatar,
body.dark-theme .profile-avatar-large,
[data-theme="dark"] .profile-avatar,
[data-theme="dark"] .profile-avatar-large {
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 50%, #f778ba 100%);
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.35);
}

body.dark-theme .profile-ring,
body.dark-theme .profile-ring-large,
[data-theme="dark"] .profile-ring,
[data-theme="dark"] .profile-ring-large {
    background: linear-gradient(135deg, #58a6ff, #a371f7, #f778ba) border-box;
}

body.dark-theme .profile-status,
body.dark-theme .profile-status-large,
[data-theme="dark"] .profile-status,
[data-theme="dark"] .profile-status-large {
    border-color: #0d1117;
}

body.dark-theme .profile-name,
[data-theme="dark"] .profile-name {
    color: #f0f6fc;
}

body.dark-theme .profile-email,
[data-theme="dark"] .profile-email {
    color: #8b949e;
}

body.dark-theme .profile-header-bg,
[data-theme="dark"] .profile-header-bg {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.12) 0%, rgba(163, 113, 247, 0.12) 50%, rgba(247, 120, 186, 0.08) 100%);
}

body.dark-theme .profile-quick-stats,
[data-theme="dark"] .profile-quick-stats {
    background: rgba(88, 166, 255, 0.03);
    border-color: rgba(88, 166, 255, 0.08);
}

body.dark-theme .stat-item:hover,
[data-theme="dark"] .stat-item:hover {
    background: rgba(88, 166, 255, 0.08);
}

body.dark-theme .stat-value,
[data-theme="dark"] .stat-value {
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .profile-link:hover,
[data-theme="dark"] .profile-link:hover {
    background: rgba(88, 166, 255, 0.08);
}

body.dark-theme .profile-link::before,
[data-theme="dark"] .profile-link::before {
    background: linear-gradient(180deg, #58a6ff, #a371f7);
}

body.dark-theme .link-icon,
[data-theme="dark"] .link-icon {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
}

body.dark-theme .profile-link:hover .link-icon,
[data-theme="dark"] .profile-link:hover .link-icon {
    background: rgba(88, 166, 255, 0.15);
}

body.dark-theme .link-title,
[data-theme="dark"] .link-title {
    color: #f0f6fc;
}

body.dark-theme .link-desc,
[data-theme="dark"] .link-desc {
    color: #8b949e;
}

body.dark-theme .profile-menu-footer,
[data-theme="dark"] .profile-menu-footer {
    border-color: rgba(88, 166, 255, 0.08);
}

/* RTL Support for profile dropdown - Enhanced */
[dir="rtl"] .profile-toggle {
    padding: 4px 4px 4px 10px;
    flex-direction: row-reverse;
}

[dir="rtl"] .profile-menu {
    right: auto;
    left: 0;
    transform-origin: top left;
}

[dir="rtl"] .profile-header-content {
    flex-direction: row-reverse;
    text-align: right;
    justify-content: flex-end;
}

[dir="rtl"] .profile-info {
    align-items: start;
}

[dir="rtl"] .profile-avatar-container {
    order: 1;
}

[dir="rtl"] .profile-status,
[dir="rtl"] .profile-status-large {
    right: auto;
    left: 0;
}

[dir="rtl"] .profile-quick-stats {
    direction: rtl;
}

[dir="rtl"] .profile-link {
    flex-direction: row;
    text-align: right;
}

[dir="rtl"] .profile-link .link-icon {
    order: 2;
}

[dir="rtl"] .profile-link .link-content {
    order: 1;
    text-align: right;
}

[dir="rtl"] .profile-link .link-arrow {
    order: 0;
    transform: translateX(5px) rotate(180deg);
}

[dir="rtl"] .profile-link::before {
    left: auto;
    right: 0;
    border-radius: 3px 0 0 3px;
}

[dir="rtl"] .profile-link:hover .link-arrow {
    transform: translateX(0) rotate(180deg);
}

[dir="rtl"] .logout-btn {
    flex-direction: row-reverse;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: rgba(99, 102, 241, 0.05);
    color: #6366f1;
    border: 2px solid rgba(99, 102, 241, 0.2) !important;
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4) !important;
    transform: translateY(-2px);
}

/* ========== LANGUAGE SWITCHER ========== */
.lang-switcher {
    position: relative;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    color: #6366f1;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.lang-toggle-btn i {
    font-size: 16px;
}

.lang-text {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(99, 102, 241, 0.1);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) {
    transform: translateY(-6px);
}

.hamburger span:nth-child(3) {
    transform: translateY(6px);
}

/* Hamburger Active State */
.hamburger.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
    border-top: 1px solid var(--navbar-border);
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--nav-link-color);
    border-radius: 14px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu .nav-link::before {
    display: none;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.mobile-menu .nav-link i {
    width: 24px;
    text-align: center;
    font-size: 18px;
    opacity: 0.7;
}

/* Mobile Dropdown */
.mobile-menu .nav-dropdown {
    width: 100%;
}

.mobile-menu .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
}

.mobile-menu .dropdown-content {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 100%;
    background: rgba(99, 102, 241, 0.03);
    border: none;
    border-radius: 12px;
    box-shadow: none;
    margin-top: 8px;
    padding: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu .dropdown-content::before {
    display: none;
}

.mobile-menu .nav-dropdown.active .dropdown-content {
    max-height: 500px;
    padding: 12px;
}

.mobile-menu .dropdown-content a {
    padding: 14px 16px;
    font-size: 15px;
}

/* Mobile Menu Buttons */
.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu-buttons .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    justify-content: center;
}

/* Mobile Lang Switcher */
.mobile-menu .lang-switcher {
    width: 100%;
}

.mobile-menu .lang-toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
}

/* ========== OVERLAY ========== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9997;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== RTL SUPPORT ========== */
[dir="rtl"] .navbar {
    direction: rtl;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-toggle-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-link::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .dropdown-content {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(-10px);
}

[dir="rtl"] .nav-dropdown:hover .dropdown-content,
[dir="rtl"] .nav-dropdown.active .dropdown-content {
    transform: translateX(50%) translateY(0);
}

[dir="rtl"] .dropdown-content a {
    border-left: none;
    border-right: 3px solid transparent;
    text-align: start;
}

[dir="rtl"] .dropdown-content a:hover {
    background: linear-gradient(270deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border-right-color: #6366f1;
    transform: translateX(-4px);
}

[dir="rtl"] .mobile-menu {
    transform: translateX(-100%);
}

[dir="rtl"] .mobile-menu.active {
    transform: translateX(0);
}

[dir="rtl"] .chevron-icon {
    margin-left: 0;
    margin-right: 4px;
}

[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

/* ========== RESPONSIVE STYLES ========== */

/* Large Desktop */
@media (max-width: 1280px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 24px;
    }
    
    .nav-menu {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 2px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .dropdown-content {
        min-width: 220px;
    }
}

/* Tablet Portrait - Show Hamburger */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .navbar {
        height: 64px;
        --navbar-height: 64px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 12px;
    }
    
    .logo {
        font-size: 18px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        height: 60px;
        --navbar-height: 60px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        border-radius: 10px;
    }
    
    .logo {
        font-size: 16px;
        gap: 10px;
    }
    
    .hamburger {
        width: 40px;
        height: 40px;
        padding: 8px;
        border-radius: 10px;
    }
    
    .hamburger span {
        width: 20px;
    }
    
    .mobile-menu {
        padding: 20px 16px;
        top: 60px;
    }
    
    .mobile-menu .nav-link {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .mobile-menu-buttons .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .navbar {
        padding: 0 12px;
        height: 56px;
        --navbar-height: 56px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .logo {
        font-size: 15px;
        gap: 8px;
    }
    
    .hamburger {
        width: 38px;
        height: 38px;
    }
    
    .mobile-menu {
        padding: 16px 12px;
        top: 56px;
        gap: 6px;
    }
    
    .mobile-menu .nav-link {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .mobile-menu .dropdown-content a {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .mobile-menu-buttons {
        gap: 10px;
        padding-top: 20px;
    }
    
    .mobile-menu-buttons .btn {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .mobile-menu .lang-toggle-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Extra Small */
@media (max-width: 360px) {
    .navbar {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 14px;
        gap: 6px;
    }
    
    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-menu {
        padding: 12px 16px;
        gap: 4px;
    }
    
    .mobile-menu .nav-link {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .mobile-menu-buttons {
        padding-top: 12px;
        gap: 8px;
    }
    
    .mobile-menu-buttons .btn {
        padding: 10px 16px;
    }
}

/* ========== UTILITY CLASSES ========== */
.nav-hidden {
    transform: translateY(-100%);
}

/* Prevent body scroll when mobile menu is open */
body.nav-open {
    overflow: hidden;
}

/* ========== ANIMATIONS ========== */
@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    animation: navSlideIn 0.5s ease-out;
}

/* Mobile menu link stagger animation */
.mobile-menu.active .nav-link {
    animation: mobileNavItem 0.4s ease forwards;
    opacity: 0;
}

.mobile-menu.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.active .nav-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.active .nav-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.active .nav-link:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.active .nav-link:nth-child(6) { animation-delay: 0.3s; }
.mobile-menu.active .nav-link:nth-child(7) { animation-delay: 0.35s; }
.mobile-menu.active .nav-link:nth-child(8) { animation-delay: 0.4s; }

@keyframes mobileNavItem {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[dir="rtl"] .mobile-menu.active .nav-link {
    animation-name: mobileNavItemRTL;
}

@keyframes mobileNavItemRTL {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
