:root {
    --brand: #ffc531;
    --brand-strong: #e8ab08;
    --brand-soft: #fff6dd;
    --graphite: #23272e;
    --graphite-2: #2d323a;
    --graphite-3: #3a4048;
    --ink: #1d2126;
    --muted: #6b7280;
    --line: #e3e5e9;
    --bg: #f1f2f4;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(29, 33, 38, .10);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, .navbar-brand { font-weight: 700; letter-spacing: -.015em; }
a { text-decoration: none; }
.section { padding: 2.5rem 0; }
.text-brand { color: var(--brand-strong); }
.link-brand { color: var(--graphite); font-weight: 600; border-bottom: 2px solid var(--brand); }
.link-brand:hover { color: var(--brand-strong); border-color: var(--brand-strong); }

/* Navbar: graphite with yellow accents */
.app-navbar {
    background: var(--graphite);
    border-bottom: 3px solid var(--brand);
    padding: .65rem 0;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; color: #fff; }
.brand-mark {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--brand); color: var(--graphite);
    font-size: 1.05rem; box-shadow: 0 4px 12px rgba(255, 197, 49, .35);
}
.brand-mark-sm { width: 26px; height: 26px; font-size: .8rem; border-radius: 8px; box-shadow: none; }
.brand-text { font-size: 1.15rem; color: #fff; letter-spacing: -.02em; }
.brand-accent { color: var(--brand); }
.app-navbar .nav-link { color: #d6d9de; font-weight: 500; }
.app-navbar .nav-link:hover { color: var(--brand); }

/* Buttons */
.btn-brand {
    background: var(--brand); border: 1px solid var(--brand); color: var(--graphite);
    border-radius: 11px; font-weight: 700;
}
.btn-brand:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--graphite); }
.btn-outline-brand {
    border: 1px solid #d8dbe0; color: var(--graphite);
    background: #fff; border-radius: 11px; font-weight: 600;
}
.btn-outline-brand:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--graphite); }
.btn-light { border-radius: 11px; border: 1px solid var(--line); font-weight: 600; }

/* Hero */
.hero {
    background:
        radial-gradient(900px 380px at 88% -30%, rgba(255, 197, 49, .30) 0%, rgba(255, 197, 49, 0) 65%),
        linear-gradient(155deg, var(--graphite) 0%, var(--graphite-2) 55%, var(--graphite-3) 100%);
    color: #fff;
}
.hero-inner { padding: 4rem 0 3.25rem; max-width: 940px; }
.hero-eyebrow {
    display: inline-block; padding: .35rem .85rem; border-radius: 999px;
    background: var(--brand); color: var(--graphite);
    font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
}
.hero-title { font-size: clamp(2rem, 4.4vw, 3.25rem); margin: 1.1rem 0 .75rem; color: #fff; }
.hero-title::after {
    content: ""; display: block; width: 74px; height: 4px;
    background: var(--brand); border-radius: 4px; margin-top: 1rem;
}
.hero-subtitle { color: #c9ced6; font-size: 1.08rem; max-width: 640px; }
.search-panel {
    background: #fff; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .28); padding: 1rem; margin-top: 1.85rem;
}
.search-panel .form-control, .search-panel .form-select, .search-panel .input-group-text { border-radius: 11px; }

/* Page head */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 2rem 0 1.5rem; }

/* Section heads */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title { font-size: 1.45rem; margin: 0; }
.section-title::before {
    content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px;
    background: var(--brand); margin-right: .55rem; vertical-align: middle;
}

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.category-tile {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 1.1rem; display: flex; flex-direction: column; gap: .35rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.category-icon {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-strong); margin-bottom: .35rem;
}
.category-name { font-weight: 700; color: var(--ink); }
.category-count { font-size: .8rem; color: var(--muted); }

/* Featured band: premium, paid placement */
.featured-band {
    background:
        radial-gradient(700px 260px at 12% 0%, rgba(255, 197, 49, .22) 0%, rgba(255, 197, 49, 0) 70%),
        linear-gradient(150deg, var(--graphite) 0%, var(--graphite-2) 100%);
    border-top: 3px solid var(--brand);
    border-bottom: 3px solid var(--brand);
    padding: 2.5rem 0 2.75rem;
    margin: 1rem 0;
}
.featured-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.featured-eyebrow {
    display: inline-block; background: var(--brand); color: var(--graphite);
    border-radius: 999px; padding: .28rem .8rem;
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
}
.featured-title { color: #fff; margin: .65rem 0 .3rem; font-size: 1.7rem; }
.featured-subtitle { color: #bfc5cd; font-size: .95rem; }
.featured-grid .ad-card { border-color: rgba(255, 197, 49, .55); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.featured-empty {
    display: flex; align-items: center; gap: 1rem; color: #e7e9ec;
    background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 197, 49, .5);
    border-radius: var(--radius); padding: 1.5rem;
}
.featured-empty i { font-size: 1.8rem; color: var(--brand); }

/* Ad cards */
.ad-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.ad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ad-card.is-featured { border-color: var(--brand); }
.ad-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #eceef1; overflow: hidden; }
.ad-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ad-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #9aa1ab; font-size: 2rem; }
.media-flags { position: absolute; top: .65rem; left: .65rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.flag { border-radius: 999px; padding: .22rem .6rem; font-size: .71rem; font-weight: 800; letter-spacing: .02em; }
.flag-featured { background: var(--brand); color: var(--graphite); }
.flag-verified { background: var(--graphite); color: var(--brand); }
.ad-card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ad-card-title { font-size: 1.05rem; margin: 0; }
.ad-card-title a { color: var(--ink); }
.ad-card-title a:hover { color: var(--brand-strong); }
.ad-card-text { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.ad-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .35rem; border-top: 1px solid var(--line); }

/* Verified + ratings */
.verified-inline { color: var(--brand-strong); font-size: .85em; margin-left: .15rem; }
.rating-stars { color: var(--brand-strong); font-size: .84rem; letter-spacing: .04em; white-space: nowrap; }
.rating-stars .bi-star { color: #cdd1d7; }
.rating-row { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.rating-value { font-weight: 800; font-size: .88rem; }
.rating-count { color: var(--muted); font-size: .8rem; }
.verified-note {
    display: flex; gap: .6rem; align-items: flex-start;
    background: var(--brand-soft); border: 1px solid var(--brand);
    border-radius: 12px; padding: .75rem .85rem; font-size: .85rem;
}
.verified-note i { color: var(--brand-strong); }
.rating-form .star-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; font-size: 1.6rem; }
.rating-form .star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-form .star-input label { color: #cdd1d7; cursor: pointer; line-height: 1; }
.rating-form .star-input label:hover,
.rating-form .star-input label:hover ~ label,
.rating-form .star-input input:checked ~ label { color: var(--brand); }
.rating-form .star-input input:focus-visible + label { outline: 2px solid var(--graphite); border-radius: 4px; }
.review-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item { border-left: 3px solid var(--brand); background: #fafbfc; border-radius: 10px; padding: .75rem .9rem; }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { background: #eef0f3; color: #4b5563; border-radius: 999px; padding: .22rem .6rem; font-size: .75rem; font-weight: 600; }
.chip-primary { background: var(--brand-soft); color: #8a6400; }
.chip-accent { background: var(--brand); color: var(--graphite); }
.chip-verified { background: var(--graphite); color: var(--brand); }
.chip-link {
    border: 1px solid var(--line); background: #fff; color: #4b5563;
    border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; font-weight: 600;
}
.chip-link.active, .chip-link:hover { background: var(--brand); border-color: var(--brand); color: var(--graphite); }

/* Filter bar */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: 0 4px 14px rgba(29,33,38,.04); }
.filter-bar .form-control, .filter-bar .form-select, .filter-bar .input-group-text { border-radius: 11px; }

/* Detail page */
.detail-card, .contact-card, .panel, .auth-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(29,33,38,.04);
}
.detail-card { overflow: hidden; }
.gallery-main { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #eceef1; }
.gallery-empty { display: grid; place-items: center; color: #9aa1ab; font-size: 2.5rem; }
.gallery-thumbs { display: flex; gap: .5rem; padding: .75rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.gallery-thumb { border: 2px solid transparent; border-radius: 11px; padding: 0; background: none; width: 84px; height: 62px; overflow: hidden; flex: 0 0 auto; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--brand); }
.detail-body { padding: 1.5rem; }
.detail-description { color: #3f4650; white-space: pre-line; }
.contact-card { padding: 1.5rem; position: sticky; top: 90px; }
.contact-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.contact-label { color: var(--muted); font-weight: 600; }

/* Panels, stats, tables */
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem;
    display: flex; flex-direction: column; gap: .2rem; height: 100%;
    border-left: 4px solid var(--brand);
}
.stat-card.stat-warning { background: var(--brand-soft); border-color: var(--brand); }
.stat-card.stat-accent { background: var(--graphite); border-color: var(--graphite); }
.stat-card.stat-accent .stat-label, .stat-card.stat-accent .stat-hint { color: #b9bfc8; }
.stat-card.stat-accent .stat-value { color: var(--brand); }
.stat-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 1.85rem; font-weight: 800; line-height: 1.1; }
.stat-hint { font-size: .78rem; color: var(--muted); }
.table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.table td { border-color: #f0f1f3; }

/* Status badges */
.status-badge {
    display: inline-block; border-radius: 999px; padding: .2rem .6rem;
    font-size: .73rem; font-weight: 700; background: #eef0f3; color: #4b5563;
}
.status-approved { background: #dcf5e3; color: #166534; }
.status-pendingapproval { background: var(--brand-soft); color: #8a6400; }
.status-rejected { background: #fde4e4; color: #b3261e; }
.status-draft { background: #e5e7eb; color: #4b5563; }
.status-inactive { background: #eef0f3; color: #6b7280; }
.status-featured { background: var(--brand); color: var(--graphite); }
.status-verified { background: var(--graphite); color: var(--brand); }

/* Admin nav */
.admin-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-nav-link {
    background: #fff; border: 1px solid var(--line); border-radius: 11px;
    padding: .5rem .9rem; color: #3f4650; font-weight: 600; font-size: .92rem;
}
.admin-nav-link:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--graphite); }

/* Manage cards */
.manage-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.manage-media { position: relative; aspect-ratio: 16 / 10; background: #eceef1; }
.manage-media img { width: 100%; height: 100%; object-fit: cover; }
.manage-media .status-badge { position: absolute; top: .6rem; left: .6rem; }
.manage-body { padding: 1rem; }
.metric-row { display: flex; gap: 1rem; font-size: .83rem; color: var(--muted); }

/* Forms and image tiles */
.form-narrow { max-width: 560px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(255, 197, 49, .25); }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.preview-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 11px; border: 1px solid var(--line); }
.image-tile { position: relative; border: 2px solid var(--line); border-radius: 13px; overflow: hidden; background: #f7f8f9; }
.image-tile.is-primary { border-color: var(--brand); }
.image-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.image-tile-flag { position: absolute; top: .4rem; left: .4rem; background: var(--brand); color: var(--graphite); border-radius: 999px; font-size: .68rem; font-weight: 800; padding: .15rem .5rem; }
.image-tile-actions { display: flex; gap: .3rem; padding: .45rem; }
.image-tile-actions .btn { font-size: .72rem; padding: .15rem .45rem; }

/* Auth */
.auth-card { max-width: 440px; margin: 0 auto; padding: 2rem; border-top: 4px solid var(--brand); }

/* Empty state and CTA */
.empty-state { background: #fff; border: 1px dashed #c8ccd2; border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.empty-state i { font-size: 2.4rem; color: var(--brand-strong); }
.empty-state h3 { color: var(--ink); font-size: 1.2rem; margin: .75rem 0 .35rem; }
.cta-panel {
    background: linear-gradient(135deg, var(--brand-soft), #ffffff);
    border: 1px solid var(--brand); border-left: 6px solid var(--brand); border-radius: var(--radius);
    padding: 2rem; display: flex; flex-wrap: wrap; gap: 1.25rem;
    align-items: center; justify-content: space-between;
}

/* Footer */
.app-footer { background: var(--graphite); border-top: 3px solid var(--brand); color: #d6d9de; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: #fff; }
.footer-note { color: #9aa1ab; font-size: .85rem; }

@media (max-width: 991.98px) {
    .contact-card { position: static; }
    .hero-inner { padding: 3rem 0 2.25rem; }
}


/* Google sign-in button + auth divider */
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    background: #fff; border: 1px solid #d8dbe0; color: #23272e;
    border-radius: 11px; font-weight: 600; padding: .6rem 1rem;
}
.btn-google:hover { background: #f7f8f9; border-color: #b9bec6; color: #23272e; }
.google-mark { width: 18px; height: 18px; flex: 0 0 18px; }
.auth-divider {
    display: flex; align-items: center; gap: .75rem;
    margin: 1.25rem 0; color: #9aa1ab; font-size: .8rem;
    text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
    content: ""; flex: 1; height: 1px; background: #e3e5e9;
}
