/* ============================================================
   Ndofy — Main Stylesheet  (Bootstrap 5 extension layer)
   ============================================================ */

:root {
    --ndofy-primary:   #1e6fdc;
    --ndofy-secondary: #f4a523;
    --ndofy-accent:    #7c3aed;
    --ndofy-green:     #16a34a;
    --ndofy-dark:      #0b1f3a;
    --ndofy-surface:   #f8f9fa;
    --ndofy-hero-from: #0b1f3a;
    --ndofy-hero-to:   #1e6fdc;
    --radius-card:     14px;
    --radius-pill:     50px;
    --shadow-sm:       0 1px 4px rgba(0,0,0,.06);
    --shadow-card:     0 4px 18px rgba(0,0,0,.09);
    --shadow-hover:    0 12px 36px rgba(0,0,0,.14);
    --transition:      .22s ease;
}

/* ─── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: .95rem;
    color: #1a202c;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.ndofy-main { min-height: 70vh; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar-brand {
    font-size: 1.45rem;
    letter-spacing: -.6px;
    font-weight: 800;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: .9rem;
    color: #374151;
    padding: .45rem .75rem;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.navbar .nav-link:hover { background: #f3f4f6; color: #111; }

/* ─── Avatar initials ────────────────────────────────────── */
.avatar-initials-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--ndofy-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ─── Hero ───────────────────────────────────────────────── */
.ndofy-hero {
    min-height: 620px;
    background: linear-gradient(135deg, var(--ndofy-hero-from) 0%, var(--ndofy-hero-to) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid texture */
.ndofy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Floating blobs for depth */
.ndofy-hero::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
    top: -200px; right: -150px;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.02) 100%);
}

/* Hero heading gradient text accent */
.hero-highlight {
    background: linear-gradient(90deg, var(--ndofy-secondary) 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Hero stats chips ───────────────────────────────────── */
.hero-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: .55rem 1.25rem;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-pill);
    color: #fff;
    line-height: 1.2;
    transition: background var(--transition);
}
.hero-stat:hover { background: rgba(255,255,255,.18); }
.hero-stat-value { font-size: 1.2rem; font-weight: 800; letter-spacing: -.5px; }
.hero-stat-label { font-size: .65rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

/* ─── Search card ────────────────────────────────────────── */
.search-card {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    border: none;
}

.search-card .nav-pills .nav-link {
    color: #6b7280;
    font-weight: 600;
    font-size: .87rem;
    padding: .5rem 1.1rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all var(--transition);
}
.search-card .nav-pills .nav-link.active {
    background: var(--ndofy-primary);
    color: #fff;
    border-color: var(--ndofy-primary);
    box-shadow: 0 4px 12px rgba(30,111,220,.35);
}
.search-card .nav-pills .nav-link:not(.active):hover {
    background: #f3f4f6;
    color: #111;
}

/* ─── City chips ─────────────────────────────────────────── */
.city-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem 1rem;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-pill);
    font-size: .85rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.city-chip:hover {
    background: var(--ndofy-primary);
    border-color: var(--ndofy-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30,111,220,.3);
    transform: translateY(-2px);
}

/* ─── Category cards ─────────────────────────────────────── */
.category-card {
    border-radius: var(--radius-card);
    background: #fff;
    border: 1.5px solid #f3f4f6;
    transition: all var(--transition);
    cursor: pointer;
}
.category-card:hover {
    border-color: var(--ndofy-primary);
    background: #eff6ff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover) !important;
}
.category-card .cat-icon { font-size: 2rem; line-height: 1; }

/* ─── Section label ──────────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ndofy-primary);
    margin-bottom: .5rem;
}

/* ─── Listing card ───────────────────────────────────────── */
.listing-card {
    border-radius: var(--radius-card);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
    border: 1px solid #f0f0f0 !important;
}
.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
}
.listing-card-img-wrap { height: 210px; }
.listing-thumb {
    width: 100%; height: 210px;
    object-fit: cover;
    transition: transform .4s ease;
}
.listing-card:hover .listing-thumb { transform: scale(1.07); }
.listing-thumb-placeholder { width: 100%; height: 210px; }

/* Price per-unit label in card */
.price-unit { font-size: .7rem; color: #9ca3af; }

/* ─── How it works steps ─────────────────────────────────── */
.step-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800;
    background: var(--ndofy-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(30,111,220,.3);
    margin: 0 auto .75rem;
}
.step-connector {
    height: 2px;
    background: linear-gradient(90deg, var(--ndofy-primary), var(--ndofy-secondary));
    flex: 1;
    margin: 0 1rem;
    border-radius: 2px;
    opacity: .35;
}

/* ─── Testimonial card ───────────────────────────────────── */
.testimonial-card {
    border-radius: var(--radius-card);
    border: 1px solid #f0f0f0;
    transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-hover); }
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}
.testimonial-avatar-initials {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ndofy-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}

/* ─── Events promo gradient ──────────────────────────────── */
.events-promo {
    background: linear-gradient(135deg, #faf5ff 0%, #f0fdf4 100%);
    border-top: 1px solid #f3e8ff;
    border-bottom: 1px solid #dcfce7;
}

/* ─── Host CTA section ───────────────────────────────────── */
.host-cta {
    background: linear-gradient(135deg, var(--ndofy-dark) 0%, #1e3a5f 100%);
    position: relative; overflow: hidden;
}
.host-cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ─── Stats banner ───────────────────────────────────────── */
.stats-banner { background: #f9fafb; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.stat-item-value { font-size: 2rem; font-weight: 800; color: var(--ndofy-primary); letter-spacing: -.5px; line-height: 1; }
.stat-item-label { font-size: .8rem; color: #6b7280; margin-top: .2rem; font-weight: 500; }

/* ─── Hover lift utility ─────────────────────────────────── */
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover) !important; }

/* ─── Star rating ────────────────────────────────────────── */
.stars { font-size: .8rem; display: inline-flex; align-items: center; gap: 1px; }

/* ─── Dashboard sidebar ──────────────────────────────────── */
.dash-sidebar {
    min-height: calc(100vh - 70px);
    background: var(--ndofy-dark);
    width: 240px;
}
.dash-sidebar .nav-link {
    color: rgba(255,255,255,.65);
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.dash-sidebar .nav-link:hover,
.dash-sidebar .nav-link.active {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.dash-sidebar .nav-link.text-danger { color: #f87171 !important; }
.dash-sidebar .nav-link.text-danger:hover { background: rgba(239,68,68,.15); color: #fca5a5 !important; }

/* ─── Stat card (dashboard) ──────────────────────────────── */
.stat-card {
    border-radius: var(--radius-card);
    border-left: 4px solid var(--ndofy-primary);
    background: #fff;
    box-shadow: var(--shadow-card);
}

/* ─── Image gallery (listing detail) ────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 6px;
    border-radius: var(--radius-card);
    overflow: hidden;
}
.gallery-main { grid-row: 1 / 3; }
.gallery-grid img {
    width: 100%; height: 100%;
    object-fit: cover; cursor: pointer;
    transition: opacity .2s;
}
.gallery-grid img:hover { opacity: .88; }

/* ─── Availability calendar ──────────────────────────────── */
.avail-calendar td { width: 36px; height: 36px; text-align: center; vertical-align: middle; font-size: .82rem; }
.avail-calendar .booked   { background: #fee2e2; color: #991b1b; border-radius: 4px; cursor: not-allowed; }
.avail-calendar .available{ background: #dcfce7; color: #166534; border-radius: 4px; cursor: pointer; }
.avail-calendar .selected { background: var(--ndofy-primary); color: #fff; border-radius: 4px; }

/* ─── Booking box ─────────────────────────────────────────── */
.booking-box {
    border-radius: var(--radius-card);
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    position: sticky; top: 80px;
}

/* ─── Alerts ─────────────────────────────────────────────── */
.alert { border-radius: var(--radius-card); border: none; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .01em; }
.btn-lg { border-radius: 12px; padding: .7rem 1.6rem; }
.btn-primary { background: var(--ndofy-primary); border-color: var(--ndofy-primary); }
.btn-primary:hover { background: #1559b8; border-color: #1559b8; }
.btn-outline-primary { color: var(--ndofy-primary); border-color: var(--ndofy-primary); }
.btn-outline-primary:hover { background: var(--ndofy-primary); border-color: var(--ndofy-primary); }

/* ─── Forms ──────────────────────────────────────────────── */
.form-control, .form-select { border-radius: 10px; border-color: #e5e7eb; }
.form-control:focus, .form-select:focus {
    border-color: var(--ndofy-primary);
    box-shadow: 0 0 0 3px rgba(30,111,220,.12);
}
.input-group-text { background: #f9fafb; border-color: #e5e7eb; color: #6b7280; }

/* ─── Footer ─────────────────────────────────────────────── */
footer { font-size: .87rem; }
footer a { transition: color .15s; }
footer a:hover { color: #fff !important; }
.footer-brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px; }

/* ─── Divider with text ──────────────────────────────────── */
.divider-text {
    display: flex; align-items: center; gap: 1rem;
    color: #9ca3af; font-size: .82rem;
}
.divider-text::before, .divider-text::after {
    content: ''; flex: 1; height: 1px; background: #e5e7eb;
}

/* ─── Color swatch (admin settings) ─────────────────────── */
.color-swatch-input { width: 40px; height: 38px; padding: 2px; border-radius: 8px; cursor: pointer; border: 1px solid #e5e7eb; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
    .ndofy-hero { min-height: 520px; }
    .hero-stat-value { font-size: 1rem; }
}
@media (max-width: 767px) {
    .ndofy-hero { min-height: 440px; }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 200px;
    }
    .gallery-main { grid-column: 1 / 3; grid-row: 1 / 2; }
    .dash-sidebar { width: 100%; min-height: auto; }
    .step-connector { display: none; }
    .stat-item-value { font-size: 1.6rem; }
}

/* ─── Utilities ──────────────────────────────────────────── */
.text-white-75 { color: rgba(255,255,255,.75) !important; }
.text-white-60 { color: rgba(255,255,255,.6) !important; }
.rounded-card  { border-radius: var(--radius-card); }
.shadow-card   { box-shadow: var(--shadow-card); }
.fw-800        { font-weight: 800; }
.ls-tight      { letter-spacing: -.5px; }

/* ─── Footer nav links ───────────────────────────────────── */
.footer-nav-link {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .15s;
}
.footer-nav-link:hover { color: #fff; }

/* ─── Admin colour picker swatches ──────────────────────── */
.color-swatch-input {
    width: 42px;
    height: 34px;
    padding: 2px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════ */

/* ─── Layout ─────────────────────────────────────────────── */
.admin-body {
    background: #f1f5f9;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .9rem;
}

.sb-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}
body.sb-open .sb-backdrop { display: block; }

/* ─── Sidebar ────────────────────────────────────────────── */
.admin-sb {
    position: fixed;
    top: 0; left: 0;
    width: 260px;
    height: 100vh;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

/* Mobile: hide off-screen */
@media (max-width: 767px) {
    .admin-sb  { transform: translateX(-260px); }
    body.sb-open .admin-sb { transform: translateX(0); }
}

/* ─── Brand ──────────────────────────────────────────────── */
.sb-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.sb-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.sb-brand-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: .95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,.4);
}
.sb-brand-name {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.4px;
}
.sb-env-badge {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(99,102,241,.2);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,.3);
}

/* ─── Nav ────────────────────────────────────────────────── */
.sb-nav {
    flex: 1;
    padding: 8px 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
}
.sb-nav::-webkit-scrollbar { width: 4px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.sb-section-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.28);
    padding: 18px 8px 6px;
    margin: 0;
    line-height: 1;
}

.sb-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .845rem;
    font-weight: 500;
    margin-bottom: 1px;
    transition: color .15s, background .15s;
    border-left: 3px solid transparent;
    position: relative;
}
.sb-nav-link i {
    font-size: 1rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}
.sb-nav-link:hover {
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.06);
}
.sb-nav-link.active {
    color: #a5b4fc;
    background: rgba(99,102,241,.14);
    border-left-color: #6366f1;
    font-weight: 600;
}

/* ─── Sidebar user footer ────────────────────────────────── */
.sb-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
    background: rgba(0,0,0,.15);
}
.sb-user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .78rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(99,102,241,.4);
}
.sb-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-name {
    color: rgba(255,255,255,.82);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.sb-user-role {
    font-size: .65rem;
    color: rgba(255,255,255,.35);
    font-weight: 500;
    text-transform: capitalize;
    margin-top: 1px;
}
.sb-logout {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 7px;
    color: rgba(255,255,255,.35);
    text-decoration: none;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all .15s;
}
.sb-logout:hover {
    color: #fca5a5;
    background: rgba(248,113,113,.12);
}

/* ─── Main area ──────────────────────────────────────────── */
.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .25s cubic-bezier(.4,0,.2,1);
}
@media (max-width: 767px) {
    .admin-main { margin-left: 0; }
}

/* ─── Top bar ────────────────────────────────────────────── */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e8edf2;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 12px;
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
    flex-shrink: 0;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.topbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .15s;
}
.sb-toggle:hover { background: #f8fafc; color: #0f172a; }
@media (max-width: 767px) { .sb-toggle { display: flex; } }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.topbar-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 1rem;
    transition: all .15s;
    border: 1px solid transparent;
}
.topbar-icon-btn:hover { background: #f1f5f9; color: #0f172a; border-color: #e2e8f0; }

.topbar-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 5px 10px 5px 6px;
    cursor: pointer;
    color: #334155;
    font-size: .84rem;
    font-weight: 500;
    transition: all .15s;
    font-family: inherit;
}
.topbar-user-btn:hover { background: #f8fafc; border-color: #c7d2e0; }

.topbar-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Content area ───────────────────────────────────────── */
.admin-content {
    flex: 1;
    padding: 28px 28px 48px;
}
@media (max-width: 575px) { .admin-content { padding: 18px 14px 32px; } }

/* ─── Flash messages ─────────────────────────────────────── */
.admin-content .alert {
    border: none;
    border-radius: 12px;
    font-size: .875rem;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-content .alert::before {
    font-family: 'bootstrap-icons';
    font-size: 1rem;
    flex-shrink: 0;
}
.admin-content .alert-success { background: #f0fdf4; color: #166534; }
.admin-content .alert-danger  { background: #fef2f2; color: #991b1b; }
.admin-content .alert-warning { background: #fffbeb; color: #92400e; }
.admin-content .alert-info    { background: #eff6ff; color: #1e40af; }

/* ─── Stat cards ─────────────────────────────────────────── */
.admin-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    border: 1px solid #f0f4f8;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
    overflow: hidden;
}
.admin-stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--card-glow, rgba(99,102,241,.04));
    transform: translate(30px, -30px);
}
.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    color: inherit;
}
.stat-icon-wrap {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.6px;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: .72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* ─── Admin cards ────────────────────────────────────────── */
.admin-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f4f8;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    overflow: hidden;
}
.admin-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.admin-card-title {
    font-size: .9rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.admin-card-title i { opacity: .6; }

/* ─── Admin tables ───────────────────────────────────────── */
.admin-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #f0f4f8;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    background: #fff;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .845rem;
}
.admin-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 11px 14px;
    border-bottom: 1px solid #e8edf2;
    white-space: nowrap;
}
.admin-table tbody tr { border-bottom: 1px solid #f8fafc; }
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover td { background: #fafbff; }
.admin-table tbody td { padding: 11px 14px; vertical-align: middle; color: #334155; }

/* ─── Filter bar ─────────────────────────────────────────── */
.admin-filter-bar {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #f0f4f8;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    padding: 14px 18px;
    margin-bottom: 20px;
}

/* ─── Status pills (replaces Bootstrap badges) ───────────── */
.spill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}
.spill-green    { background: #dcfce7; color: #15803d; }
.spill-amber    { background: #fef3c7; color: #b45309; }
.spill-red      { background: #fee2e2; color: #b91c1c; }
.spill-blue     { background: #dbeafe; color: #1d4ed8; }
.spill-violet   { background: #ede9fe; color: #6d28d9; }
.spill-slate    { background: #f1f5f9; color: #475569; }
.spill-dark     { background: #1e293b; color: #e2e8f0; }

/* ─── Listing moderation cards ───────────────────────────── */
.mod-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #f0f4f8;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    overflow: hidden;
    transition: box-shadow .15s;
}
.mod-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.mod-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 90px;
}
.mod-thumb-placeholder {
    min-height: 90px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.5rem;
}

/* ─── Avatar initials (admin) ────────────────────────────── */
.admin-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Inline action buttons ──────────────────────────────── */
.btn-xs {
    padding: 3px 8px;
    font-size: .75rem;
    border-radius: 6px;
    line-height: 1.5;
}

/* ─── Page section header ────────────────────────────────── */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ─── Nav tabs (admin) ───────────────────────────────────── */
.admin-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.admin-tab {
    padding: 7px 16px;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.admin-tab:hover { color: #0f172a; }
.admin-tab.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* ─── Empty state ────────────────────────────────────────── */
.admin-empty {
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
}
.admin-empty i { font-size: 2.5rem; margin-bottom: 12px; opacity: .4; }
.admin-empty p { font-size: .875rem; margin: 0; }
