:root {
    --bg: #070707;
    --bg-elev: rgba(255, 255, 255, 0.04);
    --panel: rgba(16, 16, 16, 0.72);
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.74);
    --border: rgba(255, 255, 255, 0.12);
    --accent: #d90429;
    --accent-2: #ff2a4f;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --hero-gradient:
        radial-gradient(circle at top left, rgba(217, 4, 41, 0.32), transparent 32%),
        radial-gradient(circle at right center, rgba(255, 42, 79, 0.18), transparent 28%),
        linear-gradient(180deg, #090909 0%, #0f0f0f 100%);
}

html[data-theme="light"] {
    --bg: #f5f5f5;
    --bg-elev: rgba(255, 255, 255, 0.8);
    --panel: rgba(255, 255, 255, 0.78);
    --text: #111111;
    --text-soft: rgba(17, 17, 17, 0.7);
    --border: rgba(17, 17, 17, 0.1);
    --accent: #c40024;
    --accent-2: #ef233c;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    --hero-gradient:
        radial-gradient(circle at top left, rgba(217, 4, 41, 0.16), transparent 32%),
        radial-gradient(circle at right center, rgba(239, 35, 60, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.25s ease, color 0.25s ease;
}

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

input,
select,
button {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 32px;
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Syne", sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 18px rgba(217, 4, 41, 0.6);
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.nav a {
    color: var(--text-soft);
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

.theme-toggle-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
}

.flash-wrap {
    padding: 20px 32px 0;
    display: grid;
    gap: 12px;
}

.flash {
    border-radius: 18px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    background: var(--panel);
}

.flash-success {
    border-color: rgba(50, 205, 50, 0.35);
}

.flash-error {
    border-color: rgba(255, 42, 79, 0.45);
}

.flash-info {
    border-color: rgba(255, 255, 255, 0.2);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
    min-height: 88vh;
    padding: 64px 32px 32px;
    background: var(--hero-gradient);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.18)),
        url("https://images.unsplash.com/photo-1501612780327-45045538702b?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
    mix-blend-mode: soft-light;
    opacity: 0.35;
    pointer-events: none;
}

.hero-content,
.hero-panel {
    position: relative;
    z-index: 2;
}

.hero-content {
    align-self: end;
    max-width: 760px;
    padding-bottom: 32px;
}

.eyebrow {
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero h1,
.section h2,
.cta-card h2,
.auth-card h1,
.dashboard-card h1 {
    margin: 0;
    font-family: "Syne", sans-serif;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero h1 {
    font-size: clamp(3.6rem, 8vw, 7rem);
    max-width: 8ch;
}

.hero-text {
    max-width: 640px;
    margin: 22px 0 0;
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: 0.22s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 14px 40px rgba(217, 4, 41, 0.25);
}

.btn-secondary {
    border-color: var(--border);
    background: var(--bg-elev);
    color: var(--text);
}

.hero-panel {
    align-self: end;
    display: grid;
    gap: 14px;
}

.hero-stat,
.card,
.artist-card,
.service-card,
.cta-card,
.auth-card,
.dashboard-card,
.user-row {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-stat {
    background: var(--panel);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 22px;
}

.hero-stat span {
    display: block;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.hero-stat strong {
    font-size: 1.1rem;
}

.section,
.auth-page,
.dashboard-page {
    padding: 92px 32px;
}

.section-head {
    max-width: 780px;
    margin-bottom: 34px;
}

.section h2,
.cta-card h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.about-grid,
.artists-grid,
.services-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.glass,
.artist-card,
.service-card,
.cta-card,
.auth-card,
.dashboard-card,
.user-row {
    background: var(--panel);
    backdrop-filter: blur(12px);
    border-radius: 24px;
}

.card {
    padding: 26px;
}

.card h3,
.artist-body h3,
.service-card h3,
.user-row h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.card p,
.artist-body p,
.split-content p,
.cta-card p,
.muted,
.user-row p {
    color: var(--text-soft);
    line-height: 1.75;
}

.artist-card {
    overflow: hidden;
}

.artist-image {
    height: 320px;
    background-size: cover;
    background-position: center;
}

.artist-body {
    padding: 22px;
}

.artist-body a {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-2);
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: stretch;
}

.split-visual {
    min-height: 520px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        url("https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=1500&q=80") center/cover no-repeat;
    box-shadow: var(--shadow);
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 8px;
}

.service-card {
    position: relative;
    padding: 26px;
    min-height: 160px;
}

.service-index {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--accent-2);
    font-weight: 800;
    font-size: 1.1rem;
}

.cta-section {
    padding-top: 20px;
}

.cta-card {
    padding: 34px;
    text-align: center;
}

.auth-page,
.dashboard-page {
    display: flex;
    justify-content: center;
}

.auth-card,
.dashboard-card {
    width: min(100%, 980px);
    padding: 32px;
}

.auth-card {
    max-width: 620px;
}

.auth-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0 16px;
    outline: none;
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select {
    background: rgba(17, 17, 17, 0.03);
}

.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-create-wrap {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 16px;
}

.check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
}

.checkbox-line.small {
    font-size: 0.92rem;
}

.users-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.user-row {
    padding: 20px;
}

.user-row-main {
    margin-bottom: 18px;
}

.role-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(217, 4, 41, 0.16);
    color: var(--accent-2);
    font-weight: 700;
}

.user-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.user-form-inline select {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0 12px;
}

html[data-theme="light"] .user-form-inline select {
    background: rgba(17, 17, 17, 0.03);
}

.footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px 42px;
    border-top: 1px solid var(--border);
}

.footer h3 {
    margin-top: 0;
    font-family: "Syne", sans-serif;
}

.footer p,
.footer-links a {
    color: var(--text-soft);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 1080px) {
    .hero,
    .split-section,
    .about-grid,
    .artists-grid,
    .services-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .hero h1 {
        max-width: none;
    }

    .hero-panel {
        align-self: start;
    }
}

@media (max-width: 760px) {
    .topbar {
        flex-wrap: wrap;
        padding: 16px 18px;
    }

    .hero,
    .section,
    .auth-page,
    .dashboard-page,
    .footer,
    .flash-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }

    .artist-image {
        height: 260px;
    }

    .footer {
        flex-direction: column;
    }

    .auth-card,
    .dashboard-card {
        padding: 22px;
    }
}