/* ========================================
   IMPORTS & RESET
   ======================================== */
@import url("/css/poppins.css?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   ROOT VARIABLES
   ======================================== */
:root {
    /* Brand Colors */
    --gold: #C9A96E;
    --gold-light: #E0D5A8;
    --deep-brown: #055202;
    --cream: #FFF8F0;
    --dark: #1A1A1A;
    --burgundy: #14532d;
    --text-dark: #2C1810;
    --text-muted: #6B5B4E;
    --white: #FFFFFF;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    /* Status */
    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
    --info: #2563EB;
    --purple: #7C3AED;
    
    /* Layout */
    --sidebar-width: 260px;
    
    /* Color Palette */
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-300: #fca5a5;
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-900: #7f1d1d;
    
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-300: #d8b4fe;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;
    --purple-800: #6b21a8;
    --purple-900: #581c87;
    
    --fuchsia-50: #fdf4ff;
    --fuchsia-100: #fae8ff;
    --fuchsia-200: #f5d0fe;
    --fuchsia-300: #f0abfc;
    --fuchsia-400: #e879f9;
    --fuchsia-500: #d946ef;
    --fuchsia-600: #c084fc;
    --fuchsia-700: #a21caf;
    --fuchsia-800: #86198f;
    --fuchsia-900: #701a75;
    
    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-200: #c7d2fe;
    --indigo-300: #a5b4fc;
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --indigo-800: #3730a3;
    --indigo-900: #312e81;
    
    --yellow-50: #fefce8;
    --yellow-100: #fef9c3;
    --yellow-200: #fef08a;
    --yellow-300: #fde047;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    --yellow-600: #ca8a04;
    --yellow-700: #a16207;
    --yellow-800: #854d0e;
    --yellow-900: #713f12;
    
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --sky-800: #075985;
    --sky-900: #0c4a6e;
    
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;
    
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-700: #be185d;
    --pink-800: #9d174d;
    --pink-900: #831843;
}

/* ========================================
   BASE STYLES
   ======================================== */
body {
    font-family: "Poppins", sans-serif;
    background-color: whitesmoke;
    color: var(--text-dark);
    line-height: 1.8;
}

/* ========================================
   TOP NAVIGATION
   ======================================== */
.top-nav-main {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    height: 60px;
    z-index: 100;
    background-color: var(--dark);
    color: var(--gold);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container-main {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left-main {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.nav-icon-main {
    color: var(--green-500);
    font-size: 1.2rem;
}

.nav-btn-main {
    background-color: var(--green-600);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.nav-btn-main:hover {
    background-color: var(--green-700);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 101;
}

.dropdown-btn {
    background: transparent;
    color: lightgrey;
    padding: 8px 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background: #f7fafc;
    color: #667eea;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 102;
    margin-top: 0;
    overflow: hidden;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    color: #4a5568;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-content a i {
    width: 20px;
    color: #667eea;
}

.dropdown-content a:hover {
    background-color: #f7fafc;
    color: #667eea;
    padding-left: 20px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0A1A0F 0%, #102c18 30%, #284a37 60%, #0A1A0F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn-login {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 10px;
    border-radius: 20px;
    background: var(--fuchsia-300);
    text-decoration: none;
    z-index: 100;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201,169,110,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(114,47,55,0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(201,169,110,0.08) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.family-crest {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,169,110,0.1);
    box-shadow: 0 0 40px rgba(201,169,110,0.9), inset 0 0 40px rgba(201,169,110,0.5);
    animation: crestGlow 3s ease-in-out infinite;
}

.family-crest i {
    font-size: 3.5rem;
    color: var(--gold);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-style: italic;
}

.hero-line {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 2rem auto;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 300;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--green-900);
    color: white;
    box-shadow: 0 8px 20px rgba(201,169,110,0.3);
    /* border: 2px solid var(--gold); */
}

.btn-primary:hover {
    background: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201,169,110,0.4);
}

.btn-del {
    background: var(--red-700);
    color: white;
    box-shadow: 0 8px 20px rgba(201,169,110,0.3);
    border: 2px solid var(--gold);
}

.btn-del:hover {
    background: var(--red-900);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201,169,110,0.4);
}

.btn-outline {
    background: var(--gold);
    color: var(--green-900);
    border: 2px solid var(--green-900);
}

.btn-outline:hover {
    background: var(--green-900);
    color: white;
    transform: translateY(-3px);
}

.btn-main {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary-main {
    background: var(--green-900);
    color: white;
    box-shadow: 0 8px 20px rgba(201,169,110,0.3);
    border: 2px solid var(--gold);
}

.btn-primary-main:hover {
    background: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201,169,110,0.4);
}

.btn-outline-main {
    background: var(--gold);
    color: var(--green-900);
    border: 2px solid var(--green-900);
}

.btn-outline-main:hover {
    background: var(--green-900);
    color: white;
    transform: translateY(-3px);
}

.btn-submit {
    padding: 1rem;
    background: var(--green-700);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201,169,110,0.3);
}

.btn-next {
    background: var(--burgundy) !important;
    color: white;
}

.btn-next:hover {
    background: #5a1f2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114,47,55,0.3);
}

.btn-prev {
    background: var(--indigo-600) !important;
    color: white;
}

.btn-prev:hover {
    background: var(--indigo-900) !important;
}

.btn-add, .btn-remove {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 25px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add {
    background: #D1FAE5;
    color: #065F46;
}

.btn-add:hover {
    background: #A7F3D0;
    transform: translateY(-2px);
}

.btn-remove {
    background: #FEE2E2;
    color: #DC2626;
}

.btn-remove:hover {
    background: #FECACA;
}

.btn-nav {
    background: var(--gold);
    color: var(--deep-brown);
    padding: 0.25rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 200;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: #B8943F;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--burgundy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--gold);
}

.btn-logout {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--burgundy);
    background: transparent;
    color: var(--burgundy);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-logout:hover {
    background: var(--burgundy);
    color: white;
}

.back-btn {
    padding: 0.3rem 0.5rem;
    background: var(--deep-brown);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
	font-size:0.85rem;
}

.back-btn:hover {
    background: var(--burgundy);
}

/* Action Buttons */
.action-btn {
    padding: 0.2rem 0.4rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: white;
}

.btn-verify { background: #059669; }
.btn-verify:hover { background: #047857; }
.btn-delete { background: #DC2626; }
.btn-delete:hover { background: #B91C1C; }
.btn-view { background: var(--sky-700); }
.btn-view:hover { background: var(--sky-900); }
.btn-edit { background: var(--purple-700); }
.btn-edit:hover { background: var(--purple-900); }

/* ========================================
   USER INFO
   ======================================== */
.user-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}

.info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #F3F4F6;
}

.info-row:last-child {
    border-bottom: none;
}

/* ========================================
   BADGES & STATUS
   ======================================== */
.status-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.verified {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.admin {
    background: #EDE9FE;
    color: #5B21B6;
}

.status-badge.local {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-approved {
    background: #D1FAE5;
    color: #065F46;
}

.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge-user { background: #DBEAFE; color: #1E40AF; }
.badge-member { background: #EDE9FE; color: #5B21B6; }

/* ========================================
   PASSWORD STRENGTH
   ======================================== */
.password-strength {
    margin-top: 0.5rem;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s ease;
    width: 0;
}

.strength-weak { background: #DC2626; width: 25%; }
.strength-fair { background: #F59E0B; width: 50%; }
.strength-good { background: #2563EB; width: 75%; }
.strength-strong { background: #059669; width: 100%; }

.strength-text {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* ========================================
   WELCOME & SECTIONS
   ======================================== */
.welcome-section {
    padding: 5rem 2rem;
    background: var(--white);
    position: relative;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    clip-path: ellipse(60% 100% at 50% 0%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.salam-badge {
    display: inline-block;
    background: var(--burgundy);
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.welcome-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 2;
}

.heritage-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.highlight-card {
    background: var(--slate-50);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-xl);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.highlight-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-brown);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ========================================
   GENERATIONS / TIMELINE
   ======================================== */
.generations-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #FFF8F0 0%, #F5E6D3 100%);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--deep-brown);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--burgundy));
}

.generation-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.generation-item:nth-child(odd) {
    flex-direction: row;
}

.generation-item:nth-child(even) {
    flex-direction: row-reverse;
}

.generation-content {
    width: 45%;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.generation-content:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.generation-dot {
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px var(--gold);
    z-index: 2;
}

.generation-number {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--burgundy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.generation-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}

.generation-date {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

.coming-soon {
    background: linear-gradient(135deg, var(--gold), var(--burgundy));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

/* ========================================
   POPIA NOTICE & FOOTER
   ======================================== */
.popia-notice {
    background: var(--sky-900);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.popia-notice i {
    margin-right: 0.5rem;
    color: var(--gold);
}

.footer {
    background: var(--dark);
    color: var(--gold-light);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.footer h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer p, .footer a {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(201,169,110,0.2);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* ========================================
   AUTHENTICATION (LOGIN & REGISTER)
   ======================================== */
.login-container,
.register-container {
    margin: auto;
    background: var(--slate-50);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.register-container {
    background: var(--cream);
    max-width: 550px;
}

.login-header,
.register-header {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
}

.register-header p {
    color: var(--gold-light);
    font-style: italic;
}

.crest-icon {
    width: 60px;
    height: 60px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(201,169,110,0.1);
}

.crest-icon i {
    font-size: 2rem;
    color: var(--gold);
}

.login-header h1,
.register-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.login-form,
.register-form {
    padding: 2.5rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-brown);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group label i {
    color: var(--burgundy);
    margin-right: 0.5rem;
    width: 20px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #D4C4B0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.2);
}

.form-input:disabled {
    background: #F3F4F6;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-style: italic;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    margin: 5px 0;
}

.radio-inline {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
}

.radio-inline input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

/* Messages */
.error-message,
.warning-message,
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.error-message {
    background: #FEE2E2;
    border-left: 4px solid var(--error);
    color: var(--error);
}

.warning-message {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    color: #92400E;
}

.message.error {
    background: #FEE2E2;
    border-left: 4px solid var(--error);
    color: var(--error);
}

.message.success {
    background: #D1FAE5;
    border-left: 4px solid var(--success);
    color: #065F46;
}

.message ul {
    list-style: none;
    padding: 0;
}

.message ul li {
    margin-bottom: 0.25rem;
}

.success-message {
    background: #D1FAE5;
    border-left: 4px solid var(--success);
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.verification-notice {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.verification-notice i {
    color: #F59E0B;
    font-size: 1.2rem;
    margin-top: 2px;
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-dark);
}

.register-link a,
.login-link a {
    color: var(--burgundy);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover,
.login-link a:hover {
    color: var(--gold);
}

.forgot-password {
    text-align: right;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
}

.forgot-password a:hover {
    color: var(--burgundy);
}

/* ========================================
   NAVIGATION (Top Nav)
   ======================================== */
.top-nav {
    background: linear-gradient(135deg, #1a0f0a 0%, #2c1810 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: sticky;
    top: 0;
    z-index: 103;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 35px;
    height: 35px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo i {
    color: var(--gold);
    font-size: 1rem;
}

.nav-brand h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
}

.nav-link {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--burgundy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-brown);
}

.menu-toggle {
    display: none;
    background: var(--deep-brown);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ========================================
   DASHBOARD CARDS & STATS
   ======================================== */
.welcome-card {
    background: linear-gradient(135deg, #0A1A0F 0%, #102c18 30%, #284a37 60%, #0A1A0F 100%);
    padding: 1rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 1.5rem;
}

.welcome-card h1 {
    font-family: 'Playfair Display', serif;
    color: whitesmoke;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-card p {
    color: whitesmoke;
    font-size: 1rem;
    font-style: italic;
}

.status-card {
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-card.pending {
    background: var(--red-100);
    border-left: 3px solid var(--red-500);
}

.status-card.verified {
    background: var(--indigo-100);
    border-left: 3px solid var(--indigo-500);
}

.status-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.status-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.status-card.pending .status-text h3 { color: #92400E; }
.status-card.verified .status-text h3 { color: #065F46; }

.status-text p {
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
	font-family: "Poppins", sans-serif;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    text-decoration: none;
    display: block;
    position: relative;
    background: white;
    cursor: pointer;
    color: inherit;
}


.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.stat-card.users {border-left:5px solid var(--blue-500); }
.stat-card.members {border-left:5px solid var(--red-500); }
.stat-card.pending-users {border-left:5px solid var(--green-500); }
.stat-card.pending-members {border-left:5px solid var(--orange-500); }
.stat-card.living {border-left:5px solid var(--purple-500); }
.stat-card.branches {border-left:5px solid var(--slate-500); }

.stat-icon-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
	padding:20px;
}

.stat-card.users .stat-icon { background: var(--blue-100); color: var(--blue-500); }
.stat-card.members .stat-icon { background: var(--red-100); color: var(--red-500); }
.stat-card.pending-users .stat-icon { background: var(--green-100); color: var(--green-500); }
.stat-card.pending-members .stat-icon { background: var(--orange-100); color: var(--orange-500); }
.stat-card.living .stat-icon { background: var(--purple-100); color: var(--purple-500); }
.stat-card.branches .stat-icon { background: var(--slate-100); color: var(--slate-500); }

.stat-card-icon {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.stat-card-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    color: white;
    padding: 3px;
}

.stat-card-btn:hover {
    background-color: var(--red-300);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-brown);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    color: var(--deep-brown);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h2 i {
    color: var(--burgundy);
}

.card-body {
    padding: 1.5rem 2rem;
}

.card.full-width {
    grid-column: 1 / -1;
}

/* ========================================
   LISTS & SUBMISSIONS
   ======================================== */
.submission-item,
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #F9FAFB;
    border-radius: 10px;
    transition: background 0.3s;
}

.submission-item:hover,
.list-item:hover {
    background: #FFFBEB;
}

.submission-item:last-child,
.list-item:last-child {
    border-bottom: none;
}

.submission-info h4,
.list-item-info h4 {
    color: var(--deep-brown);
    font-size: 1.05rem;
}

.submission-info p,
.list-item-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.list-item-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ========================================
   QUICK LINKS & ACTIONS
   ======================================== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-link-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quick-link-card i {
    font-size: 2.5rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.quick-link-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}

.quick-link-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 12px;
    text-decoration: none;
    color: var(--deep-brown);
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quick-action-btn:hover {
    background: var(--white);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 1.2rem;
    color: var(--burgundy);
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    background: whitesmoke;
    color: var(--slate-700);
    position: fixed;
    top: 60px;
    left: 0;
    height: 80vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-nav {
    padding: 0 1rem;
    padding-bottom: 3rem;
}

.sidebar-nav .nav-item:last-child {
    margin-bottom: 2rem;
}

.sidebar-header {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid lightgrey;
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: rgba(201,169,110,0.2);
    animation: crestGlow 3s ease-in-out infinite;
}

.sidebar-logo i {
    font-size: 1.8rem;
    color: var(--gold);
}

.sidebar-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--slate-600);
    font-size: 1rem;
}

.sidebar-header p {
    color: var(--slate-600);
    font-size: 0.8rem;
    font-style: italic;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--slate-700);
    padding: 0 1rem;
    margin: 1.5rem 0 0.75rem;
    opacity: 0.8;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--slate-700);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0.15rem;
    font-size: 1rem;
    position: relative;
}

.nav-item i {
    width: 24px;
    margin-right: 0.75rem;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(201,169,110,0.15);
    color: black;
}

.nav-item.active {
    background: var(--burgundy);
    color: var(--white);
}

.nav-badge {
    position: absolute;
    right: 10px;
    background: var(--warning);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* Sidebar Collapsed */
.sidebar.collapsed {
    width: 100px;
}

.sidebar.collapsed .sidebar-header h3,
.sidebar.collapsed .sidebar-header p,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-item .nav-text {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 1rem 0;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.8rem 0;
    position: relative;
}

.sidebar.collapsed .nav-item i {
    margin-right: 0;
    font-size: 1.6rem;
}

.sidebar.collapsed .nav-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--burgundy);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 102;
    pointer-events: none;
    animation: fadeInTooltip 0.2s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sidebar.collapsed .nav-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    margin-left: 0;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
}

.sidebar.collapsed .sidebar-logo {
    width: 40px;
    height: 40px;
}

.sidebar.collapsed .sidebar-logo i {
    font-size: 1.2rem;
}

.sidebar-toggle {
    position: fixed;
    top: 80px;
    left: calc(var(--sidebar-width) + 5px);
    width: 30px;
    height: 30px;
    background: steelblue;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sidebar-toggle i {
    color: white;
    font-size: 14px;
    transition: transform 0.5s ease;
}

.sidebar-toggle:hover {
    background: var(--burgundy);
    transform: scale(1.1);
}

.sidebar.collapsed + .sidebar-toggle,
.sidebar-toggle.collapsed {
    left: 55px;
    transition: left 0.5s ease;
}

.sidebar-toggle.collapsed i {
    transform: rotate(180deg);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1.2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 3px solid var(--green-900);
}

.top-bar h1 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-brown);
    font-size: 1.8rem;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.greeting h1 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-brown);
    font-size: 1.8rem;
}

.greeting p {
    color: var(--text-muted);
    font-style: italic;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-avatar {
    width: 45px;
    height: 45px;
    background: var(--burgundy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========================================
   CONTENT GRID
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}

/* ========================================
   TOAST
   ======================================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    animation: slideIn 0.5s ease;
}

/* ========================================
   CONTROLS & FILTERS
   ======================================== */
.controls-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.3rem 0.6rem;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.filter-btn.active {
    background: var(--deep-brown);
    color: white;
    border-color: var(--deep-brown);
}

.filter-btn:hover {
    border-color: var(--gold);
}

/* ========================================
   TABLES
   ======================================== */
.table-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead {
    background: #F9FAFB;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid lightgrey;
}

td {
    padding: 0.5rem;
    border-bottom: 1px solid lightgrey;
    font-size: 0.95rem;
}

/* ========================================
   TABS
   ======================================== */
.tabs {
    display: flex;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--burgundy);
    border-bottom-color: var(--burgundy);
}

.tab-btn:hover {
    color: var(--deep-brown);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 80%;
    height: 90vh;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
}

.modal h3 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-brown);
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ========================================
   ACTION GROUP
   ======================================== */
.action-group {
    display: flex;
    gap: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ========================================
   FORM NAVIGATION
   ======================================== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #F3F4F6;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes crestGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(201,169,110,0.2), inset 0 0 40px rgba(201,169,110,0.1); }
    50% { box-shadow: 0 0 60px rgba(201,169,110,0.3), inset 0 0 60px rgba(201,169,110,0.15); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateY(-50%) scale(0.9); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* ========================================
   RESPONSIVE - TABLETS (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open,
    .sidebar.f-mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle,
    .f-menu-toggle {
        display: block !important;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Hero */
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .generation-item:nth-child(odd),
    .generation-item:nth-child(even) {
        flex-direction: column;
        padding-left: 50px;
    }
    
    .generation-content {
        width: 100%;
    }
    
    .generation-dot {
        left: 20px;
    }
    
    /* Buttons */
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .action-group {
        flex-direction: column;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2.2rem;
    }
    
    .welcome-card h1 {
        font-size: 1.8rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    /* Top Bar */
    .top-bar h1 {
        font-size: 1.4rem;
    }
    
    /* Navigation */
    .top-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    /* Sidebar Toggle */
    .sidebar-toggle {
        top: 80px;
        left: 10px;
        width: 30px;
        height: 30px;
        z-index: 101;
    }
    
    .sidebar.collapsed + .sidebar-toggle,
    .sidebar-toggle.collapsed {
        left: 10px;
    }
    
    /* Salami Badge */
    .salam-badge {
        font-size: 1.1rem;
        padding: 0.6rem 1.8rem;
    }
    
    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    /* Auth Containers */
    .login-container,
    .register-container {
        border-radius: 20px;
    }
    
    .login-form,
    .register-form {
        padding: 1.5rem;
    }
    
    /* Notes */
    .f-note-form-actions {
        flex-direction: column;
    }
    
    .f-note-type-select {
        width: 100%;
    }
    
    /* Detail Grid */
    .f-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* ========================================
   RESPONSIVE - SMALL SCREEN (max-width: 640px)
   ======================================== */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* ========================================
   RESPONSIVE - EXTRA SMALL (max-width: 600px)
   ======================================== */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .register-container {
        border-radius: 20px;
    }
    
    .register-form {
        padding: 1.5rem;
    }
}

/* ========================================
   RESPONSIVE - FAMILY NOTES (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    .f-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar h1 {
        font-size: 1.4rem;
    }
    
    .f-action-group {
        flex-direction: column;
    }
}

/* ========================================
   FAMILY NOTES SECTION
   ======================================== */
.f-notes-section {
    margin-top: 1.5rem;
    border-top: 2px solid #E5E7EB;
    padding-top: 1.5rem;
}

.f-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.f-notes-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--deep-brown);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.f-notes-title i {
    color: var(--burgundy);
}

.f-note-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--gold);
    transition: all 0.3s ease;
}

.f-note-card.important {
    border-left-color: #DC2626;
    background: #FEF2F2;
}

.f-note-card.research {
    border-left-color: #7C3AED;
    background: #F5F3FF;
}

.f-note-card.correction {
    border-left-color: #F59E0B;
    background: #FFFBEB;
}

.f-note-card.memory {
    border-left-color: #059669;
    background: #ECFDF5;
}

.f-note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.f-note-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.f-note-type-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.f-note-type-badge.general { background: #E5E7EB; color: #374151; }
.f-note-type-badge.research { background: #DDD6FE; color: #5B21B6; }
.f-note-type-badge.correction { background: #FDE68A; color: #92400E; }
.f-note-type-badge.memory { background: #A7F3D0; color: #065F46; }
.f-note-type-badge.important { background: #FECACA; color: #991B1B; }

.f-note-author {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.f-note-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.f-note-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.f-note-actions {
    display: flex;
    gap: 0.5rem;
}

.f-note-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.f-note-btn:hover {
    background: rgba(0,0,0,0.05);
}

.f-note-btn.edit:hover {
    color: var(--primary);
}

.f-note-btn.delete:hover {
    color: var(--error);
}

.f-no-notes {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

.f-add-note-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--burgundy);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.f-add-note-btn:hover {
    background: var(--deep-brown);
    transform: translateY(-2px);
}

/* Note Form */
.f-note-form {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--gold-light);
}

.f-note-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    resize: vertical;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.f-note-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}

.f-note-form-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.f-note-type-select {
    padding: 0.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.9rem;
}

.f-note-type-select:focus {
    outline: none;
    border-color: var(--gold);
}

.f-note-submit-btn {
    padding: 0.5rem 1rem;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.f-note-submit-btn:hover {
    background: #059669;
}

.f-note-cancel-btn {
    padding: 0.5rem 1rem;
    background: #E5E7EB;
    color: #374151;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.f-note-cancel-btn:hover {
    background: #D1D5DB;
}

/* ========================================
   FAMILY STATS
   ======================================== */
.f-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.f-stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.f-stat-card i {
    font-size: 2rem;
    position: absolute;
    left: 10px;
    top: 10px;
}

.f-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.f-stat-number {
    font-size: 2.5rem;
    color: var(--deep-brown);
}

.f-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.f-stat-card.f-pending .f-stat-number { color: var(--warning); }
.f-stat-card.f-verified .f-stat-number { color: var(--success); }

/* ========================================
   FAMILY CONTROLS
   ======================================== */
.f-controls-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.f-search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.f-search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
}

.f-search-input:focus {
    outline: none;
    border-color: var(--gold);
}

.f-filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.f-filter-chip {
    padding: 0.4rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 25px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 200;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    white-space: nowrap;
}

.f-filter-chip.f-active {
    background: var(--deep-brown);
    color: white;
    border-color: var(--deep-brown);
}

.f-filter-chip:hover {
    border-color: var(--gold);
}

.f-filter-chip.f-pending-chip {
    border-color: var(--warning);
    color: var(--warning);
}

.f-filter-chip.f-pending-chip.f-active {
    background: var(--warning);
    color: white;
}

/* ========================================
   FAMILY TABLE
   ======================================== */
.f-table-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.f-table-responsive {
    overflow-x: auto;
}

.f-table {
    width: 100%;
    border-collapse: collapse;
}

.f-table thead {
    background: #F9FAFB;
}

.f-table th {
    padding: 1rem 1.2rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #E5E7EB;
    white-space: nowrap;
}

.f-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.95rem;
    vertical-align: middle;
}

.f-table tr:hover {
    background: #FFFBEB;
}

.f-member-name {
    font-weight: 600;
    color: var(--deep-brown);
}

.f-member-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.f-status-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 300;
    white-space: nowrap;
}

.f-badge-verified {
    background: #D1FAE5;
    color: #065F46;
}

.f-badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.f-badge-living {
    background: #DBEAFE;
    color: #1E40AF;
}

.f-badge-deceased {
    background: var(--red-100);
    color: var(--red-700);
}

.f-badge-branch {
    background: #EDE9FE;
    color: #5B21B6;
}

.f-action-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.f-btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.f-btn-verify { background: var(--success); }
.f-btn-verify:hover { background: #047857; }
.f-btn-view { background: var(--info); }
.f-btn-view:hover { background: #1D4ED8; }
.f-btn-edit { background: var(--burgundy); }
.f-btn-edit:hover { background: #5a1f2b; }
.f-btn-delete { background: var(--error); color: white !important; text-decoration: none; }
.f-btn-delete:hover { background: #B91C1C; }

/* ========================================
   FAMILY MODAL
   ======================================== */
.f-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.f-modal-overlay.f-active {
    display: flex;
}

.f-modal {
    background: white;
    border-radius: 25px;
    max-width: 90%;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.f-modal-header {
    background: linear-gradient(135deg, var(--deep-brown), var(--burgundy));
    padding: 1rem;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 25px 25px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f-modal-header h2 {
    color: var(--gold);
    font-size: 1.5rem;
}

.f-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background 0.3s;
}

.f-modal-close:hover {
    background: rgba(255,255,255,0.4);
}

.f-modal-body {
    padding: 2rem;
}

.f-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.f-detail-item {
    padding: 0.75rem;
    background: #F9FAFB;
    border-radius: 10px;
}

.f-detail-item.f-full {
    grid-column: 1 / -1;
}

.f-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.f-detail-value {
    color: var(--deep-brown);
    font-weight: 600;
    font-size: 1rem;
}

.f-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #F3F4F6;
    flex-wrap: wrap;
}

/* ========================================
   FAMILY TOAST & EMPTY STATE
   ======================================== */
.f-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    animation: slideIn 0.5s ease;
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.f-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.f-empty-state i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

/* ========================================
   NO RESULTS
   ======================================== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}