/*
 * iKofi - South African Creator Tipping Platform
 * Main Application CSS
 * Dark navy + amber aesthetic (matching Staging)
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@300;400;500;600&display=swap');

:root {
    /* Core colors */
    --navy:       #1a2340;
    --navy-deep:  #0f1624;
    --navy-mid:   #1e2d45;
    --navy-light: #2e3a52;
    --amber:      #f59e0b;
    --amber-dim:  #d97706;
    --terra:      #c94f2a;
    --white:      #f5f0e8;
    --white-dim:  #c8c3bb;
    --muted:      #8a9ab5;
    --dim:        #4a5a72;
    --green:      #4ade80;

    /* Legacy compatibility */
    --color-amber: var(--amber);
    --color-amber-dark: var(--amber-dim);
    --color-amber-light: rgba(245,158,11,0.1);
    --color-cream: rgba(245,158,11,0.15);
    --color-brown: var(--terra);
    --color-coffee: var(--navy-light);
}

/* ── RESET ──────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: var(--navy-deep);
    min-height: 100vh;
}

/* ── NDEBELE RIBBON ──────────────────────────────────────── */
.ndebele-ribbon {
    height: 48px;
    background-image: url('../img/ndebele-ribbon.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
}

/* ── TAGLINE BAND ────────────────────────────────────────── */
.tagline-band {
    background: var(--navy-deep);
    border-top: 3px solid var(--terra);
    border-bottom: 3px solid var(--terra);
    padding: 1.25rem 2rem;
    text-align: center;
}

.tagline-band p {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
}

.tagline-band p span { color: var(--amber); }

/* ── NAV ─────────────────────────────────────────────────── */
body > nav {
    background: rgba(15,22,36,0.97);
    border-bottom: 1px solid rgba(46,58,82,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
}

.nav-logo span { color: var(--amber); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--amber);
    color: var(--navy-deep) !important;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    font-weight: 700 !important;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.82rem !important;
}

.nav-cta:hover { background: var(--amber-dim); color: var(--navy-deep) !important; }

.nav-login {
    color: var(--white) !important;
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--navy-light);
    border-radius: 6px;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    transition: all 0.2s;
}

.nav-login:hover {
    border-color: var(--amber);
    color: var(--amber) !important;
}

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── SECTION STYLES ─────────────────────────────────────── */
.section-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--amber);
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

.section-heading span { color: var(--amber); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.65rem 2rem;
    border-radius: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--amber);
    color: var(--navy-deep);
}

.btn-primary:hover {
    background: var(--amber-dim);
}

.btn-secondary {
    background: var(--navy-mid);
    color: var(--white);
    border: 1px solid var(--navy-light);
}

.btn-secondary:hover {
    background: var(--navy-light);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ── FORMS ──────────────────────────────────────────────── */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--navy-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--navy-mid);
    color: var(--white);
    transition: border-color 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.input::placeholder {
    color: var(--dim);
}

.label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--white);
    font-size: 0.875rem;
}

/* ── TIER BUTTONS ─────────────────────────────────────────── */
.tier-btn {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 2px solid var(--navy-light);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--navy-mid);
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    text-decoration: none;
    align-items: stretch;
}

.tier-btn:hover {
    border-color: var(--amber);
    background: rgba(245,158,11,0.05);
}

.tier-btn.selected {
    border-color: var(--amber);
    background: rgba(245,158,11,0.1);
}

.tier-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--amber);
}

.tier-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.tier-desc {
    font-size: 0.72rem;
    color: var(--dim);
}

/* ── PATH CARDS ──────────────────────────────────────────── */
.path-card {
    transition: transform 0.2s, border-color 0.2s;
}

.path-card:hover {
    transform: translateY(-4px);
}

.path-card.creator:hover { border-color: var(--green); }
.path-card.supporter:hover { border-color: var(--amber); }
.path-card.advertiser:hover { border-color: var(--terra); }

/* ── DASHBOARD LAYOUT ───────────────────────────────────── */
.dashboard-layout {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 60px);
}

.dashboard-sidebar {
    background: var(--navy);
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(46,58,82,0.5);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px;
}

.admin-nav a {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #071b35;
    border: 1px solid #f0b323;
    border-radius: 4px;
    color: #f5f5f5;
    font: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-nav a:hover {
    background: #0d294b;
    border-color: #ffd15a;
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.admin-nav a:active {
    transform: translateX(1px);
}

.admin-nav .icon {
    width: 22px;
    flex-shrink: 0;
    text-align: center;
}

.admin-nav .nav-logout {
    margin-top: 0.5rem;
    border-color: rgba(220,38,38,0.5);
    background: rgba(220,38,38,0.15);
    color: #fca5a5;
}

.admin-nav .nav-logout:hover {
    background: rgba(220,38,38,0.3);
    border-color: #ef4444;
    color: #fff;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
}

/* ── ADMIN SEARCH ──────────────────────────────────────── */
.admin-search {
    position: relative;
    max-width: 520px;
}

.admin-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--navy-mid);
    border: 1px solid rgba(46,58,82,0.6);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.admin-search-input::placeholder { color: var(--dim); }
.admin-search-input:focus { border-color: var(--amber); }

.admin-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dim);
    pointer-events: none;
    font-size: 1rem;
}

.admin-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--navy-mid);
    border: 1px solid rgba(46,58,82,0.6);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.admin-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--white);
    border-bottom: 1px solid rgba(46,58,82,0.3);
    transition: background 0.15s;
}

.admin-search-row:last-child { border-bottom: none; }
.admin-search-row:hover { background: rgba(245,158,11,0.1); }

.admin-search-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-search-name {
    font-weight: 600;
    font-size: 0.92rem;
}

.admin-search-sub {
    font-size: 0.78rem;
    color: var(--dim);
}

.admin-search-status {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: capitalize;
    flex-shrink: 0;
}

.admin-search-status.status-active    { background: rgba(74,222,128,0.15); color: #4ade80; }
.admin-search-status.status-pending   { background: rgba(245,158,11,0.15); color: #fbbf24; }
.admin-search-status.status-suspended { background: rgba(239,68,68,0.15);  color: #f87171; }

.admin-search-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--dim);
    font-size: 0.85rem;
}

/* ── PUBLIC LISTINGS ────────────────────────────────────── */
.listing-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.listing-header h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.listing-header p {
    color: var(--muted);
    font-size: 0.95rem;
}

.listing-search {
    max-width: 480px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.listing-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--navy-mid);
    border: 1px solid rgba(46,58,82,0.6);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.listing-search input::placeholder { color: var(--dim); }
.listing-search input:focus { border-color: var(--amber); }

.listing-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dim);
    pointer-events: none;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.listing-card {
    background: var(--navy-mid);
    border: 1px solid rgba(46,58,82,0.5);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.listing-card:hover {
    border-color: var(--amber);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.listing-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.listing-card-placeholder {
    width: 100%;
    height: 140px;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.3;
}

.listing-card-body {
    padding: 1rem;
}

.listing-card-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-card-sub {
    font-size: 0.75rem;
    color: var(--dim);
}

.listing-load-more {
    text-align: center;
    padding: 2rem;
}

.listing-load-more button {
    padding: 12px 36px;
    background: transparent;
    border: 1px solid var(--amber);
    border-radius: 6px;
    color: var(--amber);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.listing-load-more button:hover {
    background: var(--amber);
    color: var(--navy-deep);
}

/* ── TABLES ─────────────────────────────────────────────── */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(46,58,82,0.5);
}

.table th {
    background: var(--navy-mid);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--amber);
}

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

.table tr:hover {
    background: rgba(46,58,82,0.3);
}

/* ── CARDS ──────────────────────────────────────────────── */
.bg-white {
    background: var(--navy);
    border: 1px solid rgba(46,58,82,0.6);
    border-radius: 12px;
    padding: 1.5rem;
}

/* ── FLASH MESSAGES ─────────────────────────────────────── */
.flash-success {
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.3);
    color: var(--green);
    padding: 1rem;
    border-radius: 8px;
}

.flash-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
}

/* ── BADGES ─────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green {
    background: rgba(74,222,128,0.15);
    color: var(--green);
}

.badge-amber {
    background: rgba(245,158,11,0.15);
    color: var(--amber);
}

.badge-red {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

/* ── UTILITY ────────────────────────────────────────────── */
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* ── REVEAL ANIMATION ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    background: var(--navy-deep);
    border-top: 1px solid rgba(46,58,82,0.5);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(46,58,82,0.5);
}

.footer-logo {
    width: 140px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--dim);
    letter-spacing: 0.5px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .dashboard-sidebar {
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid rgba(46,58,82,0.5);
    }
    .admin-nav {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .admin-nav a {
        min-height: auto;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
}

/* ── TAILWIND ALIASES ──────────────────────────────────────
   Minimal compatibility aliases so existing dashboard views
   (authored with Tailwind utility classes) render with the
   iKofi navy/amber/terra palette. Kept intentionally narrow.
   ───────────────────────────────────────────────────────── */

/* Color swatches — map Tailwind grays/ambers to iKofi palette (dark theme) */
:root {
    --t-gray-900: #0f1624;
    --t-gray-800: #1a2340;
    --t-gray-700: #2e3a52;
    --t-gray-600: #4a5a72;
    --t-gray-500: #8a9ab5;
    --t-gray-400: #8a9ab5;
    --t-gray-300: #4a5a72;
    --t-gray-200: rgba(46,58,82,0.5);
    --t-gray-100: rgba(46,58,82,0.3);
    --t-amber-50:  rgba(245,158,11,0.08);
    --t-amber-100: rgba(245,158,11,0.15);
    --t-amber-200: rgba(245,158,11,0.3);
    --t-amber-400: #d97706;
    --t-amber-500: var(--amber);
    --t-amber-600: var(--amber-dim);
    --t-amber-700: #b45200;
    --t-amber-800: #924000;
    --t-green-50:  rgba(74,222,128,0.08);
    --t-green-100: rgba(74,222,128,0.15);
    --t-green-700: #15803d;
    --t-green-800: #14532d;
    --t-red-50:    rgba(239,68,68,0.08);
    --t-red-100:   rgba(239,68,68,0.15);
    --t-red-600:   #dc2626;
    --t-red-800:   #991b1b;
    --t-purple-50:  rgba(139, 92, 246, 0.08);
    --t-purple-200: rgba(139, 92, 246, 0.3);
    --t-blue-600:  #2563eb;
    --t-sky-500:   #0ea5e9;
}

/* Backgrounds */
.bg-white { background: var(--navy); }
.bg-amber-50 { background: var(--t-amber-50); }
.bg-amber-100 { background: var(--t-amber-100); }
.bg-amber-500 { background: var(--amber); }
.bg-amber-600 { background: var(--amber-dim); }
.bg-green-50 { background: var(--t-green-50); }
.bg-green-100 { background: var(--t-green-100); }
.bg-green-600 { background: var(--t-green-700); }
.bg-red-100 { background: var(--t-red-100); }
.bg-red-50 { background: var(--t-red-50); }
.bg-gray-100 { background: rgba(46,58,82,0.3); }
.bg-gray-200 { background: rgba(46,58,82,0.5); }
.bg-gray-700 { background: var(--t-gray-700); }
.bg-gray-900 { background: var(--t-gray-900); }
.bg-purple-50 { background: var(--t-purple-50); }
.bg-purple-200 { background: var(--t-purple-200); }

/* Text colors */
.text-gray-900 { color: #ffffff; }
.text-gray-800 { color: #f5f0e8; }
.text-gray-700 { color: var(--white-dim); }
.text-gray-600 { color: var(--muted); }
.text-gray-500 { color: var(--dim); }
.text-gray-400 { color: var(--dim); }
.text-amber-500 { color: var(--amber); }
.text-amber-600 { color: var(--amber); }
.text-amber-700 { color: #d97706; }
.text-amber-800 { color: var(--amber-dim); }
.text-green-600 { color: var(--t-green-700); }
.text-green-800 { color: var(--t-green-800); }
.text-red-600 { color: var(--t-red-600); }
.text-red-800 { color: var(--t-red-800); }

/* Borders */
.border-gray-100 { border-color: rgba(46,58,82,0.3); }
.border-gray-200 { border-color: rgba(46,58,82,0.5); }
.border-amber-100 { border-color: var(--t-amber-100); }
.border-amber-200 { border-color: var(--t-amber-200); }
.border-purple-200 { border-color: var(--t-purple-200); }
.border { border: 1px solid rgba(46,58,82,0.5); }

/* Shadows */
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); }

/* Sizing / spacing helpers */
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 40rem; }
.w-40 { width: 10rem; }
.h-40 { height: 10rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-full { width: 100%; }
.flex-1 { flex: 1 1 0%; }

/* Display / flex / grid */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* Grids */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Typography */
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xl { font-size: 1.125rem; }
.text-2xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.5rem; }
.text-xs { font-size: 0.625rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.overflow-x-auto { overflow-x: auto; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }

/* Badges / pills (used in status rows) */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.rounded-full { border-radius: 9999px; }

/* Cards & panels */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }

/* Layout blocks */
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* Details/summary */
details[open] summary { color: var(--amber); }

/* Border radius variants */
.border-4 { border-width: 4px; }
.border-2 { border-width: 2px; }

/* Object fit (avatar imgs) */
.object-cover { object-fit: cover; }
.object-center { object-position: center; }

/* Input */
.input.flex-1 { flex: 1 1 0%; }

/* Responsive (matching Tailwind sm: prefix) */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .sm\:flex-row { display: flex; flex-direction: row; }
    .sm\:flex-col { display: flex; flex-direction: column; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:flex-row { display: flex; flex-direction: row; }
}

/* Hover states */
.hover\:bg-amber-50:hover { background: var(--t-amber-50); }
.hover\:bg-amber-600:hover { background: var(--amber-dim); }
.hover\:border-amber-400:hover { border-color: var(--t-amber-400); }
.hover\:text-amber-600:hover { color: var(--amber); }
.hover\:text-amber-800:hover { color: var(--amber-dim); }
.hover\:text-amber-700:hover { color: #d97706; }

/* Transition (used by card hover) */
.transition { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease; }
.transition-border-color { transition: border-color 0.2s ease; }
.transition-shadow { transition: box-shadow 0.2s ease; }
.transition-opacity { transition: opacity 0.2s ease; }

/* Hide element */
.hidden { display: none !important; }

/* Button sizing overrides inside .btn */
.btn-lg.w-full { width: 100%; }
.block.text-center { text-align: center; display: block; }

/* Space between flex cols for dashboard content */
.sm\:flex-row.items-center.gap-6 { gap: 1.5rem; }
.sm\:flex-row.items-start.gap-3 { gap: 0.75rem; }
.sm\:flex-row.items-center.gap-2 { gap: 0.5rem; }

/* ============================================================
   REPORTS & ANALYTICS PAGE
   ============================================================ */

/* Stats grid — 6 cards, 3 cols on desktop, 2 on tablet, 1 on mobile */
.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 1024px) { .report-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .report-stats-grid { grid-template-columns: 1fr; } }

.report-stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid #f3f4f6;
}
.report-stat-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    border-radius: 0.5rem;
    flex-shrink: 0;
}
.report-stat-info {
    display: flex;
    flex-direction: column;
}
.report-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}
.report-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

/* Two-column layout for Revenue + Top Creators */
.report-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 800px) { .report-two-col { grid-template-columns: 1fr; } }

.report-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6;
    margin-bottom: 1.25rem;
}
.report-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Revenue rows */
.report-revenue-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.report-revenue-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f9fafb;
}
.report-revenue-row:last-child { border-bottom: none; }
.report-revenue-total {
    border-top: 2px solid #fbbf24;
    border-bottom: none;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}
.report-revenue-label {
    font-size: 0.85rem;
    color: #6b7280;
}
.report-revenue-value {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Top creators list */
.report-top-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.report-top-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f9fafb;
}
.report-top-item:last-child { border-bottom: none; }
.report-top-rank {
    font-size: 0.75rem;
    font-weight: 700;
    color: #d97706;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}
.report-top-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.report-top-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.report-top-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #fbbf24;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.report-top-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.report-top-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.report-top-handle {
    font-size: 0.75rem;
    color: #9ca3af;
}
.report-top-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}
.report-top-earned {
    font-size: 0.9rem;
    font-weight: 700;
    color: #059669;
}
.report-top-count {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Activity feed */
.report-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.report-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f9fafb;
}
.report-activity-item:last-child { border-bottom: none; }
.report-activity-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.report-activity-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.report-activity-text {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
}
.report-activity-text strong {
    color: #111827;
}
.report-activity-time {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

/* Report queue table */
.report-table-wrap {
    overflow-x: auto;
}
.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.report-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    background: #f9fafb;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e5e7eb;
}
.report-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.report-reason-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Type badges */
.report-type-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.report-type-creator    { background: #dbeafe; color: #1d4ed8; }
.report-type-advertiser { background: #fef3c7; color: #d97706; }
.report-type-transaction { background: #d1fae5; color: #059669; }
.report-type-comment    { background: #ede9fe; color: #7c3aed; }

/* Status badges */
.report-status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.report-status-pending   { background: #fef3c7; color: #d97706; }
.report-status-resolved  { background: #d1fae5; color: #059669; }
.report-status-dismissed { background: #f3f4f6; color: #6b7280; }

/* Empty state */
.report-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #9ca3af;
}
.report-empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}
.report-empty p {
    font-size: 0.9rem;
}

/* ============================================================
   SLIDER MANAGEMENT PAGE
   ============================================================ */

/* Slider list items */
.slider-manage-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.slider-manage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.slider-manage-item:last-child { border-bottom: none; }
.slider-manage-item.slider-inactive { opacity: 0.55; }

.slider-manage-thumb {
    width: 5rem;
    height: 3.2rem;
    border-radius: 0.4rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}
.slider-manage-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-manage-info {
    flex: 1;
    min-width: 0;
}
.slider-manage-headline {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slider-manage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.slider-manage-advertiser {
    font-size: 0.75rem;
    color: #6b7280;
}
.slider-manage-pos {
    font-size: 0.7rem;
    color: #9ca3af;
}
.slider-manage-status {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    text-transform: uppercase;
}
.slider-manage-status.status-active  { background: #d1fae5; color: #059669; }
.slider-manage-status.status-inactive { background: #f3f4f6; color: #6b7280; }
.slider-manage-dates {
    font-size: 0.7rem;
    color: #9ca3af;
}

.slider-manage-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.slider-btn-edit {
    font-size: 0.8rem;
    font-weight: 600;
    color: #d97706;
    padding: 0.35rem 0.7rem;
    border: 1px solid #fbbf24;
    border-radius: 0.35rem;
    text-decoration: none;
    transition: all 0.15s;
}
.slider-btn-edit:hover { background: #fef3c7; }
.slider-btn-delete {
    font-size: 0.8rem;
    font-weight: 600;
    color: #dc2626;
    padding: 0.35rem 0.7rem;
    border: 1px solid #fca5a5;
    border-radius: 0.35rem;
    background: none;
    cursor: pointer;
    transition: all 0.15s;
}
.slider-btn-delete:hover { background: #fef2f2; }

/* Edit page image preview */
.slider-edit-preview {
    margin-top: 0.25rem;
}
.slider-edit-preview img {
    max-width: 280px;
    max-height: 160px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

/* Delete confirmation modal */
.slider-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.slider-modal-box {
    position: relative;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    text-align: center;
}
.slider-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.slider-modal-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.slider-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.slider-modal-cancel {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #d1d5db;
    border-radius: 0.35rem;
    background: #fff;
    color: #374151;
    cursor: pointer;
}
.slider-modal-cancel:hover { background: #f9fafb; }
.slider-modal-confirm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 0.35rem;
    background: #dc2626;
    color: #fff;
    cursor: pointer;
}
.slider-modal-confirm:hover { background: #b91c1c; }

/* ============================================================
   SOCIAL LINKS — Profile Form Rows
   ============================================================ */

.link-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.link-row .link-type {
    width: 160px;
    flex-shrink: 0;
}
.link-row .link-label {
    width: 140px;
    flex-shrink: 0;
}
.link-row .link-url {
    flex: 1;
    min-width: 0;
}
.link-remove {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #fca5a5;
    border-radius: 0.25rem;
    color: #dc2626;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}
.link-remove:hover { background: #fef2f2; }
.link-add-btn {
    background: none;
    border: 1px dashed #d1d5db;
    border-radius: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}
.link-add-btn:hover { border-color: #fbbf24; color: #d97706; }

@media (max-width: 640px) {
    .link-row {
        flex-wrap: wrap;
    }
    .link-row .link-type,
    .link-row .link-label,
    .link-row .link-url {
        width: 100%;
    }
}

/* ============================================================
   CREATOR / ADVERTISER / SUPPORTER DASHBOARD — Quick Links
   ============================================================ */

.creator-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6;
    text-decoration: none;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.15s;
}
.creator-quick-link:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}
.creator-quick-icon {
    font-size: 1.5rem;
}

/* ============================================================
   CREATOR PUBLIC PAGE
   ============================================================ */

.creator-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 8%, rgba(201,79,42,.10), transparent 28rem),
        radial-gradient(circle at 92% 18%, rgba(245,158,11,.07), transparent 24rem),
        var(--navy-deep);
}

.creator-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HERO */
.creator-hero {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: center;
    gap: 5rem;
    padding: 5rem 0 6rem;
    position: relative;
}

.creator-hero::before {
    content: "iKOFI";
    position: absolute;
    right: -2rem;
    top: 3rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(8rem, 19vw, 17rem);
    font-weight: 900;
    line-height: .75;
    letter-spacing: -8px;
    color: rgba(245,158,11,.025);
    pointer-events: none;
}

/* LABELS */
.creator-kicker,
.creator-section-label {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--amber);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.creator-kicker::before,
.creator-section-label::before {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--terra);
}

/* HERO TYPOGRAPHY */
.creator-hero h1 {
    margin: .8rem 0 1rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(4.5rem, 10vw, 8.5rem);
    line-height: .82;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.creator-hero h1 span {
    color: var(--amber);
}

.creator-role {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white-dim);
    margin-bottom: 1.5rem;
}

.creator-lead {
    max-width: 630px;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.55;
    color: var(--white);
}

/* CREATOR META */
.creator-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.8rem;
}

.creator-meta span,
.creator-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .45rem .85rem;
    border: 1px solid var(--navy-light);
    background: rgba(30,45,69,.55);
    border-radius: 999px;
    color: var(--white-dim);
    text-decoration: none;
    font-size: .82rem;
}

.creator-meta a {
    color: var(--amber);
    border-color: rgba(245,158,11,.35);
    transition: .2s ease;
}

.creator-meta a:hover {
    background: var(--amber);
    color: var(--navy-deep);
    border-color: var(--amber);
}

/* SOCIAL LINKS */
.creator-socials {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.4rem;
}

.creator-socials a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    padding: .5rem .85rem;
    border: 1px solid var(--navy-light);
    border-radius: 7px;
    color: var(--white);
    background: var(--navy);
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.creator-socials a:hover {
    transform: translateY(-2px);
    border-color: var(--amber);
    color: var(--amber);
}

/* TRUST */
.creator-trust {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(46,58,82,.65);
    max-width: 650px;
    color: var(--muted);
    font-size: .78rem;
}

/* HERO PORTRAIT */
.creator-portrait {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-portrait::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border: 2px solid var(--terra);
    transform: rotate(8deg);
}

.creator-portrait::after {
    content: "";
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid var(--amber);
    transform: rotate(-7deg);
}

.creator-portrait-frame {
    width: min(100%, 430px);
    aspect-ratio: 4 / 5;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: var(--navy);
    border: 8px solid var(--navy);
    box-shadow: 22px 22px 0 rgba(201,79,42,.8);
}

.creator-portrait-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(.9);
}

.creator-stamp {
    position: absolute;
    z-index: 3;
    right: 2%;
    bottom: 3%;
    width: 110px;
    height: 110px;
    border: 2px solid var(--amber);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy-deep);
    color: var(--amber);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(9deg);
}

/* CREATOR STATEMENT */
.creator-statement {
    padding: 6rem 0;
    border-top: 1px solid rgba(46,58,82,.6);
    border-bottom: 1px solid rgba(46,58,82,.6);
}

.statement-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.statement-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3rem, 6vw, 5.7rem);
    line-height: .88;
    font-weight: 900;
    text-transform: uppercase;
}

.statement-title span { color: var(--amber); }

.statement-copy {
    padding-top: .4rem;
}

.statement-copy p {
    max-width: 700px;
    color: var(--white-dim);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.4rem;
}

/* WORK / GALLERY */
.creator-work {
    padding: 6rem 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-head h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: .85;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: .5rem;
}

.section-head h2 span { color: var(--amber); }

.section-head p {
    max-width: 390px;
    color: var(--muted);
    font-size: .9rem;
    text-align: right;
}

.creator-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    border: 1px solid var(--navy-light);
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.045);
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 3.5rem 1.25rem 1.1rem;
    background: linear-gradient(transparent, rgba(15,22,36,.9));
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.gallery-placeholder {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}

.gallery-placeholder-inner {
    height: 100%;
    display: grid;
    place-items: center;
    padding: 2rem;
    text-align: center;
}

.gallery-placeholder-inner strong {
    display: block;
    margin-top: .7rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: .9;
    text-transform: uppercase;
}

.gallery-placeholder-inner strong span {
    color: var(--amber);
}

/* EVENTS */
.creator-events {
    padding: 5rem 0;
    background: var(--navy);
    border-top: 1px solid rgba(46,58,82,.6);
    border-bottom: 1px solid rgba(46,58,82,.6);
}

.event-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.event-card {
    display: grid;
    grid-template-columns: 105px 1fr;
    min-height: 150px;
    border: 1px solid var(--navy-light);
    background: var(--navy-deep);
    transition: transform .2s ease, border-color .2s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    border-color: var(--amber);
}

.event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--navy-light);
    background: rgba(245,158,11,.06);
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
}

.event-date strong {
    color: var(--amber);
    font-size: 2.5rem;
    line-height: 1;
}

.event-date span {
    margin-top: .3rem;
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: 2px;
}

.event-body {
    padding: 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-body h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-body p {
    color: var(--muted);
    font-size: .8rem;
    margin-top: .35rem;
}

/* SUPPORT */
.creator-support {
    padding: 7rem 0;
    position: relative;
}

.support-intro {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.support-intro h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: .82;
    font-weight: 900;
    text-transform: uppercase;
    margin: .5rem 0 1rem;
}

.support-intro h2 span { color: var(--amber); }

.support-intro p {
    color: var(--muted);
    font-size: 1rem;
}

/* COFFEE TIERS */
.tier-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tier-btn {
    min-height: 205px;
    padding: 1.5rem 1.25rem;
    text-align: left;
    border: 1px solid var(--navy-light);
    border-radius: 0;
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    position: relative;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.tier-btn::after {
    content: "SELECT";
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: var(--dim);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.tier-btn:hover {
    transform: translateY(-5px);
    border-color: var(--amber);
    background: var(--navy-mid);
}

.tier-btn.selected {
    transform: translateY(-5px);
    border: 2px solid var(--amber);
    background: rgba(245,158,11,.08);
    box-shadow: 0 14px 35px rgba(0,0,0,.18);
}

.tier-btn.selected::after {
    content: "SELECTED";
    color: var(--amber);
}

.tier-price {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.65rem;
    line-height: .9;
    font-weight: 900;
    color: var(--amber);
    margin-bottom: .8rem;
}

.tier-name {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tier-desc {
    display: block;
    margin-top: .65rem;
    max-width: 220px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
}

/* CUSTOM AMOUNT */
.custom-tip {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--navy-light);
    background: var(--navy);
}

.custom-tip label {
    color: var(--white-dim);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.custom-amount-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.custom-amount-wrap > span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--amber);
}

#custom-amount {
    width: 125px;
    padding: .7rem .8rem;
    border: 1px solid var(--navy-light);
    border-radius: 0;
    background: var(--navy-mid);
    color: var(--white);
    text-align: center;
    font-size: 1rem;
}

#custom-amount:focus {
    outline: none;
    border-color: var(--amber);
}

/* PAYMENT CTA */
.support-action {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--amber);
}

.support-action-copy strong {
    display: block;
    color: var(--navy-deep);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.support-action-copy span {
    color: rgba(15,22,36,.72);
    font-size: .78rem;
}

.support-action .btn {
    min-width: 270px;
    background: var(--navy-deep);
    color: var(--amber);
}

.support-action .btn:hover {
    background: var(--navy);
}

.support-note {
    margin-top: .75rem;
    text-align: right;
    color: var(--dim);
    font-size: .7rem;
}

/* PROOF STRIP */
.creator-proof {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--navy-light);
    border-bottom: 1px solid var(--navy-light);
}

.proof-item {
    padding: 1.7rem 1rem;
    text-align: center;
    border-right: 1px solid var(--navy-light);
}

.proof-item:last-child { border-right: 0; }

.proof-item strong {
    display: block;
    color: var(--amber);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.proof-item span {
    display: block;
    margin-top: .4rem;
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* FINAL CTA */
.creator-final {
    padding: 7rem 0 8rem;
    text-align: center;
}

.creator-final h2 {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(4rem, 9vw, 8rem);
    line-height: .8;
    font-weight: 900;
    text-transform: uppercase;
}

.creator-final h2 span { color: var(--amber); }

.creator-final p {
    max-width: 540px;
    margin: 1.5rem auto 2rem;
    color: var(--muted);
}

/* PAYMENT MODAL */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15,22,36,.92);
    backdrop-filter: blur(8px);
}

.modal-backdrop.open { display: flex; }

.tip-modal-card {
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 2rem;
    border: 1px solid var(--navy-light);
    background: var(--navy);
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
}

.tip-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.tip-modal-head h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tip-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.7rem;
    cursor: pointer;
}

.tip-summary {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245,158,11,.2);
    background: rgba(245,158,11,.06);
}

.tip-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .45rem;
    font-size: .85rem;
}

.tip-summary-row:last-child { margin-bottom: 0; }

.tip-summary-row span:first-child { color: var(--muted); }
.tip-summary-row span:last-child { font-weight: 600; }
#modal-creator-amount { color: var(--green); }

.tip-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-form .field label {
    display: block;
    margin-bottom: .45rem;
    color: var(--white);
    font-size: .82rem;
    font-weight: 500;
}

.tip-form .input {
    width: 100%;
}

.tip-secure {
    text-align: center;
    color: var(--dim);
    font-size: .7rem;
}

/* REVEAL */
.creator-page .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

.creator-page .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .creator-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 4rem;
    }
    .creator-portrait {
        min-height: 430px;
        order: -1;
    }
    .creator-portrait-frame { width: min(70%, 390px); }
    .statement-grid { grid-template-columns: 1fr; gap: 2rem; }
    .tier-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .creator-wrap { padding: 0 1rem; }
    .creator-hero {
        min-height: auto;
        padding: 3.5rem 0 4.5rem;
    }
    .creator-hero h1 {
        font-size: clamp(4rem, 20vw, 6.5rem);
    }
    .creator-portrait { min-height: 350px; }
    .creator-portrait-frame { width: 76%; }
    .creator-stamp { width: 88px; height: 88px; font-size: .6rem; }
    .section-head { display: block; }
    .section-head p { margin-top: 1rem; text-align: left; }
    .creator-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .event-list { grid-template-columns: 1fr; }
    .tier-list { grid-template-columns: 1fr 1fr; }
    .tier-btn { min-height: 185px; padding: 1.2rem 1rem; }
    .tier-price { font-size: 2.2rem; }
    .custom-tip { align-items: flex-start; flex-direction: column; }
    .custom-amount-wrap { width: 100%; }
    #custom-amount { flex: 1; }
    .support-action { grid-template-columns: 1fr; }
    .support-action .btn { width: 100%; min-width: 0; }
    .support-note { text-align: left; }
    .creator-proof { grid-template-columns: 1fr 1fr; }
    .proof-item:nth-child(2) { border-right: 0; }
    .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--navy-light); }
}

@media (max-width: 480px) {
    .creator-socials a { flex: 1 1 calc(50% - .55rem); justify-content: center; }
    .creator-gallery-grid { grid-template-columns: 1fr; }
    .tier-list { grid-template-columns: 1fr; }
    .creator-proof { grid-template-columns: 1fr; }
    .proof-item,
    .proof-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--navy-light); }
    .proof-item:last-child { border-bottom: 0; }
    .event-card { grid-template-columns: 85px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .creator-page *,
    .creator-page *::before,
    .creator-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
    .creator-page .reveal { opacity: 1; transform: none; }
}
