:root {
    --background: #0b0d12;
    --sidebar: #10131a;
    --panel: #151922;
    --panel-light: #1b202b;
    --border: #292f3d;
    --text: #f4f5f7;
    --muted: #9299a8;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --green: #34d399;
    --yellow: #fbbf24;
    --red: #fb7185;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.12), transparent 30%),
        var(--background);
    color: var(--text);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

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

button {
    cursor: pointer;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    overflow-y: auto;
    background: rgba(16, 19, 26, 0.97);
    border-right: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 8px 34px;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple), #5b21b6);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.28);
}

nav {
    display: grid;
    gap: 7px;
}

.nav-button {
    width: 100%;
    padding: 12px 14px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    text-align: left;
    font-weight: 600;
    transition: 160ms ease;
}

.nav-button:hover {
    color: var(--text);
    background: var(--panel-light);
}

.nav-button.active {
    color: white;
    background: rgba(139, 92, 246, 0.18);
    box-shadow: inset 3px 0 var(--purple);
}

.artist-selector {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.artist-selector label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.artist-selector input {
    width: 100%;
}

.artist-selector button {
    padding: 9px;
    color: white;
    background: var(--panel-light);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.main-content {
    min-height: 100vh;
    margin-left: 250px;
    padding: 34px 42px 60px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 8px;
    font-size: 27px;
    letter-spacing: -0.03em;
}

h3 {
    margin-bottom: 14px;
    font-size: 17px;
}

.eyebrow {
    margin-bottom: 7px;
    color: var(--purple-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.status-badge {
    padding: 8px 12px;
    color: var(--yellow);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-badge.connected {
    color: var(--green);
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.22);
}

.status-badge.error {
    color: var(--red);
    background: rgba(251, 113, 133, 0.1);
    border-color: rgba(251, 113, 133, 0.22);
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 190px;
    margin-bottom: 22px;
    padding: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 30%, rgba(167, 139, 250, 0.35), transparent 30%),
        linear-gradient(135deg, #20163b, #151922 60%);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 22px;
}

.hero-card h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.hero-card p:last-child {
    max-width: 600px;
    color: #c0c4cf;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card,
.panel {
    background: rgba(21, 25, 34, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-card {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
}

.stat-card strong {
    font-size: 26px;
    letter-spacing: -0.03em;
}

.panel {
    padding: 24px;
}

.panel-heading,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading {
    margin-bottom: 18px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2,
.panel-heading h2,
.panel-heading h3 {
    margin-bottom: 0;
}

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

.primary-button,
.secondary-button,
.danger-button {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 750;
    transition: 160ms ease;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--purple), #6d28d9);
    border: 0;
    box-shadow: 0 8px 22px rgba(109, 40, 217, 0.25);
}

.primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.6;
    transform: none;
}

.secondary-button {
    color: var(--text);
    background: var(--panel-light);
    border: 1px solid var(--border);
}

.danger-button {
    color: var(--red);
    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.2);
}

.form-panel {
    max-width: 900px;
}

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

.form-grid label {
    display: grid;
    gap: 8px;
    color: #c8ccd5;
    font-size: 13px;
    font-weight: 700;
}

.full-width {
    grid-column: 1 / -1;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 13px;
    color: var(--text);
    background: #0f1218;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: 150ms ease;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.card-list {
    display: grid;
    gap: 14px;
}

.list-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: rgba(21, 25, 34, 0.9);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.list-card h3 {
    margin-bottom: 7px;
}

.list-card p {
    margin-bottom: 8px;
    color: var(--muted);
    line-height: 1.55;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.pill {
    padding: 5px 8px;
    background: var(--panel-light);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.empty-state {
    padding: 20px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.metric-history {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.metric-row:last-child {
    border-bottom: 0;
}

.metric-row span {
    color: var(--muted);
    font-size: 13px;
}

.warning-card {
    margin-bottom: 18px;
    padding: 15px 17px;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.09);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
}

.strategy-panel {
    max-width: 1000px;
}

.strategy-content {
    color: #d4d7de;
    line-height: 1.75;
    white-space: pre-wrap;
}

.strategy-content h1,
.strategy-content h2,
.strategy-content h3 {
    color: var(--text);
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    max-width: 420px;
    padding: 13px 16px;
    color: white;
    background: #273142;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.message.success {
    border-color: rgba(52, 211, 153, 0.45);
}

.message.error {
    border-color: rgba(251, 113, 133, 0.55);
}

.usage-admin-heading {
    margin-top: 2rem;
}

.usage-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.usage-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.usage-table th,
.usage-table td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.usage-table th {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.usage-table td {
    font-size: 0.88rem;
}

.usage-table small,
.usage-breakdown-row small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
}

.usage-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.usage-breakdown-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.usage-breakdown-row:last-child {
    border-bottom: 0;
}

.usage-breakdown-row > div:last-child {
    text-align: right;
}

@media (max-width: 760px) {
    .usage-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

.hidden {
    display: none !important;
}

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: 100%;
        padding: 16px;
    }

    .brand {
        margin-bottom: 16px;
    }

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

    .nav-button {
        padding: 10px 8px;
        text-align: center;
        font-size: 12px;
    }

    .artist-selector {
        margin-top: 16px;
    }

    .main-content {
        margin-left: 0;
        padding: 24px 16px 40px;
    }

    .topbar,
    .hero-card,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }
}
.artist-selector {
    display: none;
}

.auth-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(124, 58, 237, 0.18), transparent 38%),
        var(--background);
}

.auth-card {
    width: min(100%, 440px);
    padding: 36px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.auth-brand {
    margin-bottom: 36px;
}

.auth-card h1 {
    margin: 6px 0 10px;
}

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

.auth-form label {
    display: grid;
    gap: 8px;
}

.auth-form button {
    margin-top: 8px;
}

.text-button {
    width: 100%;
    margin-top: 18px;
    padding: 8px;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.text-button:hover {
    color: var(--text);
}

.auth-error {
    margin: 16px 0 0;
    color: #fb7185;
    text-align: center;
}

.account-panel {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.daily-progress-panel {
    margin-bottom: 24px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.12),
            rgba(52, 211, 153, 0.04)
        ),
        var(--panel);
}

.daily-progress-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.daily-progress-heading h2 {
    margin: 4px 0 8px;
}

.xp-badge {
    min-width: 128px;
    padding: 13px 16px;
    text-align: center;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 14px;
}

.xp-badge strong,
.xp-badge span {
    display: block;
}

.xp-badge strong {
    color: var(--yellow);
}

.xp-badge span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.progress-track {
    height: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--purple),
        var(--purple-light),
        var(--green)
    );
    border-radius: inherit;
    transition: width 350ms ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
}

.progress-labels strong {
    color: var(--purple-light);
}

.daily-task-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.daily-task {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 15px;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 13px;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.daily-task:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 92, 246, 0.55);
    background: rgba(139, 92, 246, 0.07);
}

.daily-task.completed {
    background: rgba(52, 211, 153, 0.07);
    border-color: rgba(52, 211, 153, 0.3);
}

.task-check {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #08110d;
    background: transparent;
    border: 2px solid var(--purple-light);
    border-radius: 50%;
}

.daily-task.completed .task-check {
    background: var(--green);
    border-color: var(--green);
}

.task-copy {
    display: grid;
    gap: 5px;
}

.task-copy strong {
    line-height: 1.4;
}

.task-copy small {
    color: var(--muted);
}

.daily-task.completed .task-copy strong {
    color: var(--muted);
    text-decoration: line-through;
}

.task-xp {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .daily-progress-heading {
        flex-direction: column;
    }

    .xp-badge {
        width: 100%;
    }

    .daily-task {
        grid-template-columns: 30px 1fr;
    }

    .task-xp {
        grid-column: 2;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 20px;
    margin-bottom: 22px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: rgba(21, 25, 34, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pricing-card h3,
.pricing-card p {
    margin: 0;
}

.pricing-card > button {
    margin-top: auto;
}

.pricing-card-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.pricing-card-actions button {
    width: 100%;
}

.featured-plan {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.plan-price {
    font-size: 30px;
    font-weight: 800;
}

.plan-price span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.plan-badge {
    padding: 8px 12px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.status-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    color: #ffd7d7;
    background: rgba(190, 45, 45, 0.16);
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 10px;
}

.billing-management-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.billing-management-panel h3,
.billing-management-panel p {
    margin: 0;
}

.billing-management-panel p {
    margin-top: 6px;
    color: var(--muted);
}

@media (max-width: 1000px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .billing-management-panel,
    #billing-view .section-heading {
        align-items: stretch;
        flex-direction: column;
    }
}

.social-score-screen {
    min-height: 100vh;
    padding: 24px clamp(20px, 5vw, 72px) 64px;
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, 100%);
    margin: 0 auto 72px;
}

.public-header .brand {
    margin: 0;
}

.score-landing {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.score-hero {
    max-width: 760px;
    margin-bottom: 36px;
}

.score-hero h1 {
    max-width: 700px;
    margin-bottom: 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
}

.score-hero > p:last-child {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.score-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: start;
    gap: 24px;
}

.score-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.score-checklist legend {
    padding: 0 8px;
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.score-checklist label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
}

.score-checklist input {
    width: auto;
}

.score-result {
    position: sticky;
    top: 24px;
    overflow: hidden;
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.overall-score {
    display: flex;
    align-items: baseline;
    margin: 8px 0 26px;
}

.overall-score strong {
    font-size: clamp(72px, 10vw, 110px);
    line-height: 0.9;
    letter-spacing: -0.08em;
    background: linear-gradient(
        135deg,
        var(--purple-light),
        var(--green)
    );
    background-clip: text;
    color: transparent;
}

.overall-score span {
    margin-left: 10px;
    color: var(--muted);
    font-size: 24px;
    font-weight: 700;
}

.score-breakdown {
    display: grid;
    gap: 11px;
    margin-bottom: 26px;
}

.score-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border);
}

.score-breakdown span {
    color: var(--muted);
}

.score-recommendation {
    margin-bottom: 22px;
    padding: 18px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
}

.score-recommendation h2 {
    font-size: 18px;
}

.score-recommendation p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

#improve-social-score-button {
    width: 100%;
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .public-header {
        margin-bottom: 46px;
    }

    .score-layout {
        grid-template-columns: 1fr;
    }

    .score-result {
        position: static;
    }
}

@media (max-width: 620px) {
    .social-score-screen {
        padding-inline: 16px;
    }

    .score-hero h1 {
        font-size: 44px;
    }

    .score-checklist {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------
   Spotify catalog
---------------------------------------------------------------- */

.spotify-panel {
    margin-bottom: 24px;
}

.spotify-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.spotify-panel-heading h3 {
    margin: 4px 0 6px;
}

.muted-text {
    color: var(--muted-text, #8d93a1);
    margin: 0;
}

.spotify-connect-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.spotify-connect-form label {
    display: grid;
    gap: 8px;
}

.spotify-catalog {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(180px, 1fr)
    );
    gap: 16px;
    margin-top: 22px;
}

.spotify-release-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.spotify-release-card:hover {
    transform: translateY(-3px);
    border-color: rgba(29, 185, 84, 0.55);
    background: rgba(29, 185, 84, 0.08);
}

.spotify-release-card img,
.spotify-artwork-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1;
}

.spotify-release-card img {
    object-fit: cover;
}

.spotify-artwork-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(
        145deg,
        #282828,
        #121212
    );
    color: #1db954;
    font-size: 42px;
}

.spotify-release-details {
    padding: 14px;
}

.spotify-release-details h4 {
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotify-release-details p {
    margin: 0 0 12px;
    color: var(--muted-text, #8d93a1);
    font-size: 0.9rem;
}

.spotify-attribution {
    color: #1ed760;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 700px) {
    .spotify-panel-heading {
        flex-direction: column;
    }

    .spotify-connect-form {
        grid-template-columns: 1fr;
    }

    .spotify-connect-form .primary-button {
        width: 100%;
    }

    .spotify-catalog {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}
/* ---------------------------------------------------------------
   Lyric video generator
---------------------------------------------------------------- */

.lyric-video-workflow {
    display: grid;
    gap: 22px;
}

.lyric-word-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    max-height: 430px;
    margin-top: 22px;
    padding: 18px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.16);
}

.lyric-word-field {
    display: grid;
    gap: 4px;
}

.lyric-word-field span {
    color: var(--muted-text, #8d93a1);
    font-size: 0.68rem;
}

.lyric-word-field input {
    width: auto;
    min-width: 72px;
    max-width: 180px;
    padding: 9px 10px;
    border-color: rgba(255, 255, 255, 0.12);
    font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
    font-size: 1rem;
}

.lyric-word-field input:focus {
    border-color: #8ace00;
    box-shadow: 0 0 0 3px rgba(138, 206, 0, 0.12);
}

.lyric-render-controls {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
}

.lyric-render-controls label {
    display: grid;
    gap: 8px;
    min-width: 180px;
}

.lyric-video-results {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 20px;
    margin-top: 22px;
}

.lyric-video-card {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.lyric-video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #000;
    object-fit: contain;
}

.lyric-video-color {
    padding: 10px 12px;
    border-radius: 10px;
    font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
}

.lyric-video-card .secondary-button {
    display: block;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 900px) {
    .lyric-video-results {
        grid-template-columns: 1fr;
    }

    .lyric-video-card {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .lyric-render-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .lyric-render-controls label {
        min-width: 0;
    }

    .lyric-render-controls .primary-button {
        width: 100%;
    }
}

.social-score-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.social-score-actions button {
    flex: 1 1 220px;
}

@media (max-width: 600px) {
    .social-score-actions {
        flex-direction: column;
    }

    .social-score-actions button {
        width: 100%;
    }
}
.automate-nav-button {
    font-weight: 700;
}

.automate-heading {
    align-items: flex-start;
}

.automate-availability {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    border-color: rgba(89, 140, 255, 0.38);
}

.automate-availability p {
    margin: 8px 0 0;
}

.automate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.automate-campaign-list {
    display: grid;
    gap: 12px;
}

.automate-campaign-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.automate-campaign-card:hover {
    border-color: rgba(89, 140, 255, 0.55);
    transform: translateY(-1px);
}

.automate-campaign-card span:first-child {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.automate-campaign-card small {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#automate-campaign-detail {
    margin-top: 24px;
}

.automate-campaign-summary {
    margin-bottom: 22px;
}

.automate-summary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.automate-plan-notes {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.automate-plan-notes p {
    margin: 0;
    color: var(--muted);
}

.automate-post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.automate-post-card {
    display: grid;
    gap: 16px;
}

.automate-post-card label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.automate-post-card textarea,
.automate-post-card input,
.automate-post-card select {
    width: 100%;
}

.danger-button {
    border: 1px solid rgba(239, 83, 80, 0.55);
    background: rgba(239, 83, 80, 0.1);
    color: #ff9b99;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
}

.danger-button:hover {
    background: rgba(239, 83, 80, 0.18);
}

@media (max-width: 900px) {
    .automate-layout,
    .automate-post-list {
        grid-template-columns: 1fr;
    }

    .automate-availability,
    .automate-campaign-summary .panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .automate-summary-actions {
        justify-content: flex-start;
    }
}

.automate-launch-card {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 28px;
    padding: 48px;
    text-align: center;
}

.automate-launch-copy {
    max-width: 680px;
}

.automate-launch-copy h3 {
    margin: 8px 0 12px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.automate-launch-button {
    min-width: min(360px, 100%);
    padding: 18px 28px;
    font-size: 1.08rem;
    font-weight: 800;
}

.automate-progress {
    width: min(560px, 100%);
    display: grid;
    gap: 12px;
    text-align: left;
}

.automate-progress > [data-automate-step] {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    transition: 180ms ease;
}

.automate-progress > [data-automate-step] > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    font-weight: 800;
}

.automate-progress > [data-automate-step] > p {
    margin: 0;
}

.automate-progress > div.active {
    border-color: rgba(89, 140, 255, 0.65);
    color: var(--text);
    background: rgba(89, 140, 255, 0.08);
}

.automate-progress > div.active span {
    background: #598cff;
    color: white;
}

.automate-progress > div.complete {
    border-color: rgba(67, 190, 126, 0.55);
    color: var(--text);
}

.automate-progress > div.complete span {
    background: #43be7e;
    color: white;
}

.automate-progress > div.error {
    border-color: rgba(239, 83, 80, 0.6);
    color: #ff9b99;
}

.automate-progress > div.error span {
    background: rgba(239, 83, 80, 0.2);
    color: #ff9b99;
}

#automate-launch-status {
    min-height: 24px;
    max-width: 620px;
    margin: 0;
}

@media (max-width: 600px) {
    .automate-launch-card {
        min-height: 360px;
        padding: 28px 18px;
    }
}

.automate-progress-track {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px var(--border);
}

#automate-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #598cff, #43be7e);
    transition: width 420ms ease;
}

.automate-progress-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

#automate-progress-percent {
    color: var(--text);
    font-size: 1.15rem;
}

#automate-progress-label {
    text-align: right;
}

.pricing-chooser-dialog {
    width: min(1100px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 28px;
    overflow-y: auto;
    border: 1px solid rgba(89, 140, 255, 0.45);
    border-radius: 20px;
    color: var(--text);
    background: var(--panel);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.pricing-chooser-dialog::backdrop {
    background: rgba(4, 8, 18, 0.78);
    backdrop-filter: blur(6px);
}

.pricing-chooser-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.pricing-chooser-heading h2 {
    margin: 8px 0 10px;
}

.pricing-chooser-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(210px, 1fr)
    );
    gap: 16px;
}

.pricing-chooser-grid .pricing-card {
    min-height: 330px;
}

.automate-guide-dialog {
    width: min(520px, calc(100% - 32px));
    padding: 34px;
    border: 1px solid rgba(89, 140, 255, 0.45);
    border-radius: 20px;
    color: var(--text);
    background: var(--panel);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.automate-guide-dialog::backdrop {
    background: rgba(4, 8, 18, 0.78);
    backdrop-filter: blur(6px);
}

.automate-guide-dialog h2 {
    margin: 8px 0 12px;
}

.spotify-track-label {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    text-align: left;
    color: var(--text);
    font-weight: 700;
}

.spotify-track-label select {
    width: 100%;
}

.automate-guide-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(145deg, #598cff, #7d5cff);
    font-size: 1.35rem;
    font-weight: 900;
}

.spotify-track-label {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    text-align: left;
    color: var(--text);
    font-weight: 700;
}

.automate-guide-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
}

@media (max-width: 600px) {
    .automate-guide-actions {
        grid-template-columns: 1fr;
    }
}

.automate-details {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.automate-details summary {
    padding: 16px 18px;
    color: var(--text);
    cursor: pointer;
    font-weight: 750;
}

.automate-details[open] summary {
    border-bottom: 1px solid var(--border);
}

.automate-details .automate-post-list {
    padding: 18px;
}

.spotify-release-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.spotify-automate-button {
    width: 100%;
    margin-top: 14px;
}

.automate-optimization-status {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(67, 190, 126, 0.35);
    border-radius: 14px;
    background: rgba(67, 190, 126, 0.08);
}

.automate-optimization-status strong {
    display: block;
    margin: 4px 0 8px;
}

.automate-optimization-status p {
    margin-bottom: 0;
}