/*
 * Gold & Diamond Heritage - User Dashboard
 * Theme: Emerald Green + Royal Gold
 * Fully Responsive for All Mobile Devices
 */

/* === CSS RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --bg-dark: #022C22;
    --bg-darker: #01231d;
    --bg-card: rgba(255, 255, 255, 0.03);
    --gold-primary: #FACC15;
    --gold-secondary: #D4AF37;
    --gold-light: #FDE68A;
    --diamond-white: #ECFEFF;
    --accent-green: #10B981;
    --accent-emerald: #059669;
    --error-red: #EF4444;
    --success-green: #22C55E;
    --warning-orange: #F59E0B;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--diamond-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === TYPOGRAPHY - LARGE & SCALABLE === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--diamond-white);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h5 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }
h6 { font-size: clamp(1rem, 2vw, 1.1rem); }

p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    color: rgba(236, 254, 255, 0.9);
}

/* === KEYFRAME ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(250, 204, 21, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes borderGlow {
    0%, 100% {
        border-color: var(--gold-primary);
        box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
    }
    50% {
        border-color: var(--gold-secondary);
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
    }
}

/* === AUTH PAGES (LOGIN, REGISTER, FORGOT PASSWORD) === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #022C22 0%, #01231d 50%, #022C22 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.auth-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.auth-bg-pattern::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(250, 204, 21, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    animation: rotate 60s linear infinite;
}

.floating-diamonds {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.diamond-shape {
    position: absolute;
    font-size: 2rem;
    color: var(--gold-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.diamond-shape:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.diamond-shape:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.diamond-shape:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.diamond-shape:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 3s; }
.diamond-shape:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }
.diamond-shape:nth-child(6) { top: 40%; right: 5%; animation-delay: 5s; }

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    animation: scaleIn 0.6s ease forwards;
}

.auth-card {
    background: rgba(2, 44, 34, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(250, 204, 21, 0.1);
    animation: borderGlow 4s ease-in-out infinite;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.auth-logo-icon {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--gold-primary);
    animation: pulse 2s ease-in-out infinite;
}

.auth-logo-text h1 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--gold-primary);
    margin: 0;
    letter-spacing: 1px;
}

.auth-logo-tagline {
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    color: var(--diamond-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.auth-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--diamond-white);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: rgba(236, 254, 255, 0.7);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 500;
    color: var(--diamond-white);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(0.875rem, 3vw, 1rem) clamp(1rem, 3vw, 1.25rem);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-family: var(--font-sans);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--diamond-white);
    transition: all var(--transition-normal);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(236, 254, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
}

.form-group .input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 1.2rem;
    opacity: 0.7;
    pointer-events: none;
}

.form-group.with-icon input {
    padding-right: 3rem;
}

.form-group.with-icon .input-icon {
    top: calc(50% + 12px);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: calc(50% + 12px);
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.password-toggle:hover {
    opacity: 1;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

.form-checkbox span {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: rgba(236, 254, 255, 0.8);
}

.form-checkbox a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.form-checkbox a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Form Links */
.form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form-link {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--gold-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.form-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: clamp(1rem, 3vw, 1.2rem);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(250, 204, 21, 0.4);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(-1px);
}

/* Social Login */
.social-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(212, 175, 55, 0.3);
}

.social-divider span {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: rgba(236, 254, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.875rem, 2.5vw, 1rem);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--diamond-white);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.social-btn .icon {
    font-size: 1.2rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-footer p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: rgba(236, 254, 255, 0.7);
}

.auth-footer a {
    color: var(--gold-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Back to Home */
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--diamond-white);
    text-decoration: none;
    transition: all var(--transition-normal);
    z-index: 10;
}

.back-to-home:hover {
    color: var(--gold-primary);
    transform: translateX(-5px);
}

/* Success/Error Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInDown 0.3s ease;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-red);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning-orange);
}

/* === DASHBOARD LAYOUT === */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #01231d 0%, #022C22 100%);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gold-secondary);
    border-radius: 3px;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sidebar-logo-icon {
    font-size: 1.8rem;
    color: var(--gold-primary);
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
}

.sidebar-logo-text h2 {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--gold-primary);
    margin: 0;
    line-height: 1.2;
}

.sidebar-logo-text span {
    font-size: 0.7rem;
    color: rgba(236, 254, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--diamond-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    transition: all var(--transition-fast);
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.sidebar-close:hover,
.sidebar-close:active {
    color: var(--gold-primary);
    transform: rotate(90deg);
    background: rgba(250, 204, 21, 0.1);
}

/* Sidebar User Info */
.sidebar-user {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-dark);
    font-weight: 600;
    flex-shrink: 0;
}

.user-info h4 {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--diamond-white);
    margin: 0 0 0.25rem;
}

.user-info span {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1rem;
}

.nav-section-title {
    padding: 0.75rem 1.5rem;
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    font-weight: 600;
    color: rgba(236, 254, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(0.875rem, 2.5vw, 1rem) 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.05rem);
    color: rgba(236, 254, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-primary);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.nav-link:hover {
    color: var(--gold-primary);
    background: rgba(250, 204, 21, 0.05);
}

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

.nav-link:hover::after {
    opacity: 1;
}

.nav-link.active {
    color: var(--gold-primary);
    background: rgba(250, 204, 21, 0.1);
}

.nav-link.active::before {
    transform: scaleY(1);
}

.nav-link .nav-icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-link .nav-text {
    flex: 1;
}

.nav-link .nav-badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--gold-primary);
    color: var(--bg-dark);
    border-radius: 20px;
}

/* Dropdown Navigation */
.nav-dropdown {
    cursor: pointer;
}

.nav-dropdown .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform var(--transition-normal);
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height var(--transition-normal);
}

.nav-dropdown.open + .dropdown-menu {
    max-height: 500px;
}

.dropdown-menu .nav-link {
    padding-left: 3.5rem;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
}

.dropdown-menu .nav-link::before {
    left: 1.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(250, 204, 21, 0.3);
}

.dropdown-menu .nav-link:hover::before,
.dropdown-menu .nav-link.active::before {
    background: var(--gold-primary);
    transform: translateY(-50%) scale(1);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: auto;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: clamp(0.875rem, 2.5vw, 1rem);
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    font-weight: 500;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: var(--error-red);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error-red);
    transform: translateY(-2px);
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
}

/* Top Bar */
.top-bar {
    background: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    transition: transform var(--transition-fast), background var(--transition-fast);
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    transform: scale(1.1);
    background: rgba(250, 204, 21, 0.1);
}

.page-title h1 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 0;
    color: var(--diamond-white);
}

.page-title p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: rgba(236, 254, 255, 0.6);
    margin: 0;
}

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

.notification-btn,
.user-menu-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    color: var(--diamond-white);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.notification-btn:hover,
.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: var(--error-red);
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Dashboard Content */
.dashboard-content {
    padding: clamp(1rem, 3vw, 2rem);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.5rem);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(250, 204, 21, 0.1);
    color: var(--gold-primary);
}

.stat-card-change {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
}

.stat-card-change.positive {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-green);
}

.stat-card-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-red);
}

.stat-card-value {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--diamond-white);
    margin-bottom: 0.25rem;
    font-family: var(--font-serif);
}

.stat-card-label {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: rgba(236, 254, 255, 0.6);
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.dashboard-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h3 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin: 0;
    color: var(--gold-primary);
}

.card-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--bg-dark);
    border-color: var(--gold-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--diamond-white);
    border-color: rgba(212, 175, 55, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.data-table th,
.data-table td {
    padding: clamp(0.75rem, 2vw, 1rem);
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.data-table th {
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: uppercase;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    letter-spacing: 1px;
    white-space: nowrap;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table td {
    color: var(--diamond-white);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 500;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active,
.status-badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-green);
}

.status-badge.pending,
.status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-orange);
}

.status-badge.inactive,
.status-badge.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-red);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Team Tree */
.team-tree {
    padding: 1rem 0;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all var(--transition-normal);
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.05);
}

.team-member-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.team-member-info h5 {
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    margin: 0 0 0.25rem;
    color: var(--diamond-white);
}

.team-member-info span {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: rgba(236, 254, 255, 0.6);
}

.team-member-stats {
    margin-left: auto;
    text-align: right;
}

.team-member-stats strong {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--gold-primary);
}

.team-member-stats span {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: rgba(236, 254, 255, 0.5);
}

/* Profile Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--bg-dark);
    font-weight: 600;
    flex-shrink: 0;
    border: 4px solid rgba(212, 175, 55, 0.3);
}

.profile-info h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 0.5rem;
    color: var(--diamond-white);
}

.profile-info .profile-email {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: rgba(236, 254, 255, 0.7);
    margin-bottom: 0.5rem;
}

.profile-info .profile-rank {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--gold-primary);
    font-weight: 500;
}

/* Form Styles for Dashboard */
.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--gold-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h4 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--diamond-white);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: rgba(236, 254, 255, 0.6);
    margin-bottom: 1.5rem;
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* === RESPONSIVE DESIGN === */

/* Large Tablets */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 260px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        animation: slideInLeft 0.3s ease;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .top-bar {
        padding: 1rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Large Phones / Small Tablets */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .back-to-home {
        top: 1rem;
        left: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .team-member {
        flex-wrap: wrap;
    }
    
    .team-member-stats {
        width: 100%;
        text-align: left;
        margin-left: 0;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-header-actions {
        width: 100%;
    }
    
    .card-header-actions .btn {
        flex: 1;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    :root {
        --sidebar-width: 100%;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .auth-card {
        border-radius: 16px;
        padding: 1.25rem;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .dashboard-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .top-bar {
        padding: 0.75rem 1rem;
    }
    
    .top-bar-actions {
        gap: 0.5rem;
    }
    
    .notification-btn,
    .user-menu-btn {
        padding: 0.5rem 0.6rem;
    }
    
    .form-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.6rem;
    }
    
    /* Make nav items larger and more touch-friendly on mobile */
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .dropdown-menu .nav-link {
        padding: 0.875rem 1.5rem 0.875rem 3.5rem;
    }
}

/* Very Small Phones */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .auth-card {
        padding: 1rem;
    }
    
    .auth-logo-text h1 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-page {
        padding: 10px;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-header {
        margin-bottom: 1rem;
    }
    
    .auth-form {
        gap: 1rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sidebar-logo-icon,
    .auth-logo-icon {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .top-bar,
    .mobile-menu-btn,
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .dashboard-card {
        break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (already dark by default) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode */
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.form-group input:focus,
.social-btn:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        background: transparent;
    }
    
    .nav-link:active {
        background: rgba(250, 204, 21, 0.1);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .stat-card:hover {
        transform: none;
    }
}

/* === MOBILE-SPECIFIC TABLE STYLES === */
@media (max-width: 768px) {
    /* Hide table headers on mobile */
    .data-table thead {
        display: none;
    }
    
    /* Make each row a card */
    .data-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 12px;
        padding: 1rem;
    }
    
    .data-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .data-table tbody td:last-child {
        border-bottom: none;
    }
    
    /* Add labels before each cell */
    .data-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gold-primary);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        margin-right: 1rem;
    }
    
    /* Align cell content to right */
    .data-table tbody td > * {
        text-align: right;
    }
    
    /* Filter controls - stack vertically */
    .dashboard-card > div[style*="display: flex"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .dashboard-card select,
    .dashboard-card input[type="date"],
    .dashboard-card input[type="search"] {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Card header actions */
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .card-header-actions {
        width: 100%;
    }
    
    .card-header-actions input {
        width: 100%;
    }
    
    /* Social share buttons on team page */
    .btn.btn-outline {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }
    
    /* Pagination buttons */
    div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    div[style*="display: flex"][style*="gap: 0.5rem"] {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Team member avatars and info */
    .team-member-avatar {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.8rem !important;
    }
    
    /* Genealogy tree - make responsive */
    div[style*="display: flex"][style*="flex-direction: column"] > div[style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
    }
    
    /* Level stats grid */
    .stats-grid[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Grid-2 layout */
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
    
    /* Referral link input */
    input[readonly]#refLink {
        font-size: 0.85rem;
        word-break: break-all;
    }
}

/* === TRANSACTION-SPECIFIC MOBILE STYLES === */
@media (max-width: 768px) {
    /* Transaction table specific */
    .data-table tbody td code {
        font-size: 0.75rem;
    }
    
    .data-table tbody td[style*="color"] {
        font-weight: 600;
        font-size: 1.1rem;
    }
}

/* === VERY SMALL SCREENS === */
@media (max-width: 480px) {
    .dashboard-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Make buttons full width on very small screens */
    .dashboard-card .btn-primary,
    .auth-btn {
        width: 100%;
    }
    
    /* Social buttons 1 per row on very small screens */
    .btn.btn-outline {
        flex: 1 1 100%;
        min-width: 100%;
    }
}
