:root {
    --bg: #050505;
    --bg-soft: #0d0d0f;
    --panel: rgba(20, 20, 24, 0.78);
    --panel-strong: rgba(18, 18, 22, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5f1e8;
    --muted: #a8a1a1;
    --gold: #d4af37;
    --silver: #c3c8d4;
    --crimson: #b60f2b;
    --electric: #12d5ff;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 25%),
        radial-gradient(circle at bottom right, rgba(18, 213, 255, 0.12), transparent 25%),
        linear-gradient(180deg, #090909 0%, #050505 100%);
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    min-height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button, input, textarea, select {
    font: inherit;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.24;
}

.app-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 18px 16px 100px;
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.brand-mark {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.brand-mark strong {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    letter-spacing: 0.08em;
}

.brand-kicker,
.eyebrow {
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.brand-tagline,
.track-description,
.form-meta,
.hero-text,
.membership-status,
.premium-live {
    color: var(--muted);
}

.topbar-actions,
.hero-actions,
.action-row,
.badge-stack,
.track-stats,
.social-row,
.studio-actions,
.section-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.glass-card,
.studio-module,
.bottom-nav,
.flash {
    background: linear-gradient(180deg, rgba(33,33,39,0.78), rgba(12,12,14,0.92));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.glass-card {
    border-radius: var(--radius);
    padding: 18px;
}

.flash {
    padding: 12px 14px;
    border-radius: 18px;
    margin-bottom: 14px;
}

.flash-success { border-color: rgba(18, 213, 255, 0.4); }
.flash-error { border-color: rgba(182, 15, 43, 0.45); }
.flash-warning { border-color: rgba(212, 175, 55, 0.45); }

.chip,
.pill,
.label-metal {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.04);
}

.accent {
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--gold);
}

.danger {
    border-color: rgba(182, 15, 43, 0.5);
    color: #ff778d;
}

.btn,
.action-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-primary,
.action-btn.highlight {
    background: linear-gradient(90deg, var(--gold), #f6df8f);
    color: #151515;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.28);
}

.btn-secondary,
.action-btn {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--line);
}

.landing,
.page-layout,
.auth-layout {
    display: grid;
    gap: 18px;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.hero-copy,
.hero-card-stack {
    min-height: 100%;
}

.hero-copy {
    padding: 22px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(212,175,55,0.18), transparent 45%),
        linear-gradient(180deg, rgba(19,19,23,0.9), rgba(8,8,10,0.96));
    border: 1px solid rgba(212,175,55,0.14);
}

.hero-copy h1 {
    margin: 10px 0 6px;
    font-size: clamp(3.2rem, 14vw, 6rem);
    line-height: 0.95;
}

.hero-subtitle {
    margin: 0 0 16px;
    color: var(--electric);
    font-size: 1.1rem;
}

.hero-card-stack {
    display: grid;
    gap: 18px;
}

.promo-card {
    min-height: 180px;
}

.promo-card.alt {
    background:
        linear-gradient(135deg, rgba(182, 15, 43, 0.16), transparent 45%),
        linear-gradient(180deg, rgba(20,20,24,0.82), rgba(11,11,14,0.94));
}

.feature-grid,
.stats-grid,
.beats-grid {
    display: grid;
    gap: 16px;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stat-card strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 6px;
    color: var(--gold);
}

.auth-layout {
    place-items: center;
    padding-top: 40px;
}

.auth-card {
    width: min(100%, 780px);
}

.auth-card.wide {
    width: min(100%, 920px);
}

.stack-form {
    display: grid;
    gap: 14px;
}

.grid {
    display: grid;
    gap: 14px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 8px;
    color: var(--silver);
    font-size: 0.92rem;
}

input,
textarea,
select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    padding: 13px 14px;
    outline: none;
}

textarea {
    resize: vertical;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.horizontal-cards,
.feed-list {
    display: grid;
    gap: 16px;
}

.horizontal-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.featured-card,
.track-card,
.track-detail {
    display: grid;
    gap: 16px;
}

.featured-card {
    grid-template-columns: 110px 1fr;
    align-items: center;
}

.featured-card img,
.track-card img,
.beat-card img,
.track-cover-lg {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
}

.track-card {
    grid-template-columns: 110px 1fr;
}

.track-card.compact-card {
    grid-template-columns: 84px 1fr;
}

.track-tags {
    color: var(--electric);
    font-size: 0.9rem;
}

.drop-player {
    width: 100%;
    filter: sepia(0.35) saturate(1.2) hue-rotate(340deg);
}

.track-stats {
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-hero {
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 0;
}

.profile-hero-overlay {
    padding: 22px;
    display: grid;
    gap: 16px;
    align-items: end;
    background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.82));
}

.avatar-xl {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    object-fit: cover;
    border: 2px solid rgba(212,175,55,0.5);
}

.spotlight-panel,
.membership-hero,
.premium-lock-callout {
    background:
        linear-gradient(125deg, rgba(212,175,55,0.12), rgba(182,15,43,0.12) 45%, rgba(255,255,255,0.02));
}

.track-detail {
    grid-template-columns: minmax(0, 360px) 1fr;
}

.track-detail-copy {
    display: grid;
    gap: 14px;
}

.comment-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.comment-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.comment-card img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
}

.premium-card,
.studio-shell {
    display: grid;
    gap: 18px;
}

.benefit-list {
    margin: 0;
    padding-left: 18px;
    color: var(--silver);
    display: grid;
    gap: 8px;
}

.beats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.beat-card {
    overflow: hidden;
    padding: 0;
}

.beat-copy {
    padding: 16px;
    display: grid;
    gap: 10px;
}

.locked {
    position: relative;
}

.locked-overlay {
    min-height: 120px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 18px;
    background: rgba(0,0,0,0.48);
    border: 1px solid rgba(212,175,55,0.2);
}

.studio-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-module {
    border-radius: 22px;
    padding: 18px;
}

.placeholder-stage {
    min-height: 132px;
    border-radius: 18px;
    border: 1px dashed rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.03);
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
    padding: 16px;
}

.layer-strip {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.wave-mini {
    height: 28px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg, rgba(18,213,255,0.9) 0 4px, transparent 4px 8px),
        linear-gradient(90deg, rgba(212,175,55,0.3), rgba(182,15,43,0.3));
}

.checkbox-row {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.checkbox-row input {
    width: auto;
}

.table-panel {
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(calc(100% - 20px), 620px);
    border-radius: 999px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    z-index: 50;
}

.bottom-nav a {
    text-align: center;
    padding: 12px 8px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.88rem;
}

.bottom-nav a.active {
    background: linear-gradient(90deg, rgba(212,175,55,0.18), rgba(182,15,43,0.16));
    color: var(--text);
}

@media (max-width: 900px) {
    .hero-panel,
    .track-detail,
    .studio-grid,
    .feature-grid,
    .grid.three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .grid.two,
    .track-card,
    .featured-card {
        grid-template-columns: 1fr;
    }

    .track-card img,
    .featured-card img,
    .compact-card img {
        max-width: 120px;
    }

    .topbar {
        flex-direction: column;
    }

    .profile-hero-overlay {
        align-items: start;
    }
}

