/* ==========================================================
   Matrimony.fr - Premium Matrimonial Platform Stylesheet
   Color palette: Deep crimson, warm gold, ivory, dark charcoal
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Noto+Sans+Tamil:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
    --crimson: #9B1B30;
    --crimson-dark: #7A1526;
    --crimson-light: #C4324A;
    --gold: #D4A030;
    --gold-light: #E8C468;
    --gold-dark: #B08620;
    --ivory: #FFF9F0;
    --ivory-alt: #FEF5E7;
    --charcoal: #2C2C2C;
    --text-dark: #333333;
    --text-mid: #666666;
    --text-light: #999999;
    --border: #E8DDD0;
    --border-light: #F2EBE0;
    --success: #2E7D32;
    --warning: #E65100;
    --info: #1565C0;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-gold: 0 4px 20px rgba(212,160,48,0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
    --transition: all 0.3s ease;
    --font-display: 'Playfair Display', 'Noto Sans Tamil', Georgia, serif;
    --font-body: 'Source Sans 3', 'Noto Sans Tamil', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--ivory);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; color: var(--charcoal); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
a { color: var(--crimson); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--crimson-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius-sm); font-family: var(--font-body);
    font-size: 1rem; font-weight: 600; cursor: pointer; border: none;
    transition: var(--transition); text-decoration: none; line-height: 1.2;
    min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: var(--white); box-shadow: 0 2px 8px rgba(155,27,48,0.3);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--crimson-light), var(--crimson)); color: var(--white); box-shadow: 0 4px 16px rgba(155,27,48,0.4); transform: translateY(-1px); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white); box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--white); }
.btn-outline {
    background: transparent; border: 2px solid var(--crimson); color: var(--crimson);
}
.btn-outline:hover { background: var(--crimson); color: var(--white); }
.btn-white { background: var(--white); color: var(--crimson); border: 2px solid var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; min-height: 40px; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }
.btn-google { background: var(--white); color: var(--text-dark); border: 2px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-google:hover { border-color: var(--crimson); color: var(--crimson); background: var(--white); }
.btn-google svg { width: 20px; height: 20px; }
.btn-danger { background: #D32F2F; color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }

/* ---- Navigation ---- */
.navbar {
    background: var(--white); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm);
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; max-width: 1200px; margin: 0 auto; height: 70px;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo img { height: 50px; width: auto; }
.navbar-logo span { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--crimson); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
    padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-dark);
    font-weight: 500; font-size: 0.95rem; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--crimson); background: rgba(155,27,48,0.06); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    display: flex; gap: 4px; background: var(--ivory-alt); border-radius: var(--radius-sm); padding: 3px;
}
.lang-switch a {
    padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; color: var(--text-mid);
}
.lang-switch a.active { background: var(--white); color: var(--crimson); box-shadow: var(--shadow-sm); }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: var(--transition); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
        background: var(--white); border-bottom: 2px solid var(--border); padding: 16px 20px; gap: 2px;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; display: block; width: 100%; }
}

/* ---- Hero Section ---- */
.hero {
    background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--crimson) 50%, #A0213A 100%);
    color: var(--white); padding: 80px 0 90px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero p { font-size: 1.15rem; opacity: 0.92; margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex; justify-content: center; gap: 40px; margin-top: 50px; padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { text-align: center; }
.hero-stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold-light); }
.hero-stat-label { font-size: 0.9rem; opacity: 0.8; margin-top: 4px; }

@media (max-width: 600px) {
    .hero { padding: 50px 0 60px; }
    .hero-stats { gap: 20px; }
    .hero-stat-number { font-size: 1.5rem; }
}

/* ---- Section Styles ---- */
.section { padding: 70px 0; }
.section-alt { background: var(--white); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-mid); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-title .gold-line {
    width: 60px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px;
}

/* ---- Why Choose Cards ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md);
    padding: 32px 28px; transition: var(--transition); text-align: center;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--gold-light); }
.feature-icon {
    width: 64px; height: 64px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--ivory-alt), var(--ivory));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.8rem; color: var(--gold);
    border: 2px solid var(--gold-light);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.6; }

/* ---- How It Works ---- */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; counter-reset: step; }
.step-card { text-align: center; position: relative; counter-increment: step; }
.step-number {
    width: 56px; height: 56px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: var(--white); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
    box-shadow: 0 4px 12px rgba(155,27,48,0.3);
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step-card p { color: var(--text-mid); font-size: 0.95rem; }

/* ---- Profile Cards ---- */
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.profile-card {
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md);
    overflow: hidden; transition: var(--transition);
}
.profile-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.profile-card-img {
    width: 100%; height: 240px; object-fit: cover; background: var(--ivory-alt);
    display: flex; align-items: center; justify-content: center;
}
.profile-card-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-card-img .avatar-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ivory-alt), #F0E6D4); font-size: 4rem; color: var(--gold);
}
.profile-card-body { padding: 20px; }
.profile-card-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.profile-card-info { color: var(--text-mid); font-size: 0.9rem; line-height: 1.5; }
.profile-card-info span { display: inline-block; margin-right: 12px; }
.profile-card-footer { padding: 12px 20px; border-top: 1px solid var(--border-light); display: flex; gap: 8px; }
.compat-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.compat-excellent { background: #E8F5E9; color: #2E7D32; }
.compat-good { background: #FFF3E0; color: #E65100; }
.compat-moderate { background: #FFF8E1; color: #F57F17; }

/* ---- Success Stories ---- */
.stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.story-card {
    background: var(--white); border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--border-light); text-align: center; padding: 30px 24px;
    transition: var(--transition);
}
.story-card:hover { box-shadow: var(--shadow-md); }
.story-card-photo {
    width: 100px; height: 100px; border-radius: var(--radius-full);
    margin: 0 auto 16px; overflow: hidden; border: 3px solid var(--gold-light);
}
.story-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-card h4 { font-size: 1.1rem; margin-bottom: 6px; }
.story-card .story-meta { color: var(--text-light); font-size: 0.9rem; margin-bottom: 12px; }
.story-card p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.5; }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; color: var(--text-dark); }
.form-label .required { color: var(--crimson); }
.form-control {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 1rem; color: var(--text-dark); background: var(--white);
    transition: var(--transition); min-height: 48px;
}
.form-control:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(155,27,48,0.1); }
.form-control::placeholder { color: var(--text-light); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.form-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--crimson); }

/* ---- Multi-step Form ---- */
.step-wizard { display: flex; justify-content: center; gap: 4px; margin-bottom: 40px; flex-wrap: wrap; padding: 0 10px; }
.step-wizard-item {
    display: flex; align-items: center; gap: 6px; padding: 8px 12px;
    font-size: 0.85rem; color: var(--text-light); font-weight: 500;
}
.step-wizard-item.active { color: var(--crimson); font-weight: 600; }
.step-wizard-item.completed { color: var(--success); }
.step-wizard-item .step-num {
    width: 28px; height: 28px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    background: var(--border-light); font-size: 0.8rem; font-weight: 700;
}
.step-wizard-item.active .step-num { background: var(--crimson); color: var(--white); }
.step-wizard-item.completed .step-num { background: var(--success); color: var(--white); }
.form-step { display: none; animation: fadeIn 0.3s ease; }
.form-step.active { display: block; }
.form-nav { display: flex; justify-content: space-between; margin-top: 30px; gap: 12px; }

/* ---- Cards / Panels ---- */
.card {
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); overflow: hidden;
}
.card-header {
    padding: 20px 24px; border-bottom: 1px solid var(--border-light);
    font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: space-between;
}
.card-body { padding: 24px; }

/* ---- Dashboard ---- */
.dashboard-grid { display: grid; grid-template-columns: 250px 1fr; gap: 24px; min-height: 70vh; }
.dashboard-sidebar {
    background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border-light);
    padding: 20px 0; height: fit-content; position: sticky; top: 90px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px; padding: 12px 24px;
    color: var(--text-dark); font-weight: 500; transition: var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--ivory-alt); color: var(--crimson); border-right: 3px solid var(--crimson); }

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; }
    .sidebar-nav { display: flex; overflow-x: auto; gap: 4px; padding: 0 12px; }
    .sidebar-nav a { padding: 10px 16px; white-space: nowrap; border-right: none !important; border-radius: var(--radius-sm); }
}

/* ---- Stat Cards ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md);
    padding: 20px; text-align: center;
}
.stat-card-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--crimson); }
.stat-card-label { color: var(--text-mid); font-size: 0.9rem; margin-top: 4px; }

/* ---- Compatibility Display ---- */
.compat-result { text-align: center; padding: 30px; }
.compat-score-circle {
    width: 140px; height: 140px; border-radius: var(--radius-full);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-family: var(--font-display);
    border: 6px solid var(--gold); background: var(--ivory);
}
.compat-score-number { font-size: 2.2rem; font-weight: 700; color: var(--crimson); }
.compat-score-label { font-size: 0.85rem; color: var(--text-mid); }
.compat-poruthams { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.porutham-item {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    border-radius: var(--radius-sm); background: var(--ivory); border: 1px solid var(--border-light);
}
.porutham-item.matched { background: #E8F5E9; border-color: #A5D6A7; }
.porutham-item.not-matched { background: #FFEBEE; border-color: #EF9A9A; }
.porutham-icon { font-size: 1.2rem; }
.porutham-name { font-weight: 600; font-size: 0.9rem; }
.compat-disclaimer {
    margin-top: 24px; padding: 16px; background: var(--ivory-alt); border-radius: var(--radius-sm);
    font-size: 0.9rem; color: var(--text-mid); border-left: 3px solid var(--gold);
}

/* ---- Important Note Box ---- */
.note-box {
    background: linear-gradient(135deg, var(--ivory-alt), #FFF5E0); border: 1px solid var(--gold-light);
    border-left: 4px solid var(--gold); border-radius: var(--radius-sm);
    padding: 20px 24px; margin: 20px 0;
}
.note-box-title { font-weight: 700; color: var(--gold-dark); margin-bottom: 8px; font-size: 0.95rem; }
.note-box p { font-size: 0.9rem; color: var(--text-dark); line-height: 1.6; }

/* ---- Footer ---- */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.8); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--gold-light); font-family: var(--font-display); margin-bottom: 16px; font-size: 1.1rem; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.95rem; display: block; padding: 4px 0; }
.footer a:hover { color: var(--gold-light); }
.footer-brand p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.9rem; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Alert Messages ---- */
.alert {
    padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px;
    font-size: 0.95rem; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.alert-info { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }
.alert-warning { background: #FFF3E0; color: #E65100; border: 1px solid #FFCC80; }

/* ---- Cookie Consent ---- */
.cookie-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--charcoal); color: var(--white); padding: 16px 20px;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    font-size: 0.9rem; box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-bar.hidden { display: none; }

/* ---- PWA Prompt ---- */
.pwa-prompt {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
    background: var(--white); border-radius: var(--radius-md); padding: 20px;
    box-shadow: var(--shadow-lg); z-index: 9998; max-width: 340px; width: 90%;
    text-align: center; border: 2px solid var(--gold-light);
}
.pwa-prompt.hidden { display: none; }
.pwa-prompt h4 { margin-bottom: 8px; }
.pwa-prompt p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 14px; }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 30px; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); font-weight: 500; color: var(--text-dark);
}
.pagination a:hover { background: var(--ivory-alt); border-color: var(--crimson); color: var(--crimson); }
.pagination .active { background: var(--crimson); color: var(--white); border-color: var(--crimson); }

/* ---- Table (admin) ---- */
.table-responsive { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.table th { background: var(--ivory-alt); padding: 12px 14px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); }
table.table td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
table.table tr:hover td { background: var(--ivory); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.badge-pending { background: #FFF3E0; color: #E65100; }
.badge-active { background: #E8F5E9; color: #2E7D32; }
.badge-married { background: #F3E5F5; color: #7B1FA2; }
.badge-hidden { background: #ECEFF1; color: #546E7A; }
.badge-rejected { background: #FFEBEE; color: #C62828; }

/* ---- Login Page ---- */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 40px 20px; }
.login-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px;
    max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}
.login-card .logo { margin-bottom: 24px; }
.login-card .logo img { height: 80px; margin: 0 auto; }
.login-card h2 { margin-bottom: 12px; }
.login-card p { color: var(--text-mid); margin-bottom: 28px; }

/* ---- 404 Page ---- */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 5rem; color: var(--gold); }
.error-page p { font-size: 1.1rem; color: var(--text-mid); margin: 16px 0 30px; }

/* ---- Admin Layout ---- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
    background: var(--charcoal); color: var(--white); padding: 20px 0;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .logo { padding: 10px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; }
.admin-sidebar .logo span { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-light); }
.admin-sidebar nav a {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px;
    color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: var(--transition);
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.08); color: var(--gold-light); }
.admin-main { padding: 30px; background: var(--ivory); }
.admin-header { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { font-size: 1.6rem; }

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-sidebar nav { display: flex; overflow-x: auto; padding: 0 10px; }
    .admin-sidebar nav a { white-space: nowrap; padding: 10px 14px; }
}

/* ---- Animations ---- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { animation: fadeIn 0.4s ease forwards; }
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }

/* Stagger children */
.stagger > * { opacity: 0; animation: fadeInUp 0.5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-crimson { color: var(--crimson); }
.text-muted { color: var(--text-mid); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .gap-2 { gap: 12px; } .gap-3 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- Loading Skeleton ---- */
.skeleton { background: linear-gradient(90deg, var(--border-light) 25%, var(--ivory) 50%, var(--border-light) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---- Print ---- */
@media print {
    .navbar, .footer, .cookie-bar, .pwa-prompt, .btn { display: none; }
    body { background: white; }
}
