/* ============================================================
   SUNO GenR V3 — RDR-Inspired Dashboard
   Palette: deep maroon + red accent + cream text
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    /* Palette */
    --page-bg: #e8c4c4;
    --app-bg: #2a1515;
    --card-bg: #3d2020;
    --card-bg-2: #4a2828;
    --card-bg-hover: #5a3131;
    --accent-red: #e74c3c;
    --accent-red-strong: #ff5b45;
    --accent-red-soft: rgba(231, 76, 60, 0.18);
    --accent-red-glow: rgba(255, 107, 91, 0.45);
    --accent-orange: #f59e57;

    --text-primary: #f5e6d3;
    --text-secondary: #c9a894;
    --text-muted: #8a6f62;

    --border-soft: rgba(255, 107, 91, 0.14);
    --border-soft-2: rgba(255, 255, 255, 0.05);
    --success-green: #4ade80;

    /* Legacy accents (still referenced by old JS) */
    --accent-blue: #60a5fa;
    --accent-green: #4ade80;
    --accent-yellow: #fbbf24;
    --accent-cyan: #22d3ee;

    /* Metrics */
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;

    --sidebar-w: 78px;
    --shell-gap: 0;
    --app-pad: 24px;
    --section-gap: 24px;

    --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.25);
    --shadow-elev: 0 10px 40px rgba(231, 76, 60, 0.18);

    /* Legacy for generators.ts inline styles */
    --main-content-padding-default: 0;
    --main-content-padding-with-protrusion: 0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--app-bg);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, button, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--card-bg-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

/* ---------- App Shell ---------- */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    background: var(--app-bg);
    background-image: radial-gradient(circle at 50% -20%, rgba(231, 76, 60, 0.25), transparent 50%);
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
}

/* ============================================================
   LEFT SIDEBAR
============================================================ */
.app-sidebar-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0;
    border-right: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(0,0,0,0.1), transparent);
}
.sidebar-brand {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    color: var(--text-primary);
    background: linear-gradient(135deg, #1a0a0a, #3d1515);
    border: 1px solid var(--border-soft);
    margin-bottom: 18px;
}
.sidebar-nav { flex: 1; width: 100%; }
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sidebar-nav-item { position: relative; }
.sidebar-nav-item > a {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}
.sidebar-nav-item > a svg {
    flex-shrink: 0;
}
.sidebar-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1;
    opacity: 0.85;
    text-align: center;
    white-space: nowrap;
}
.sidebar-nav-item > a:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}
.sidebar-nav-item > a:hover .sidebar-label {
    opacity: 1;
}
.sidebar-nav-item.active > a {
    background: linear-gradient(135deg, var(--accent-red), #b73625);
    color: #fff;
    box-shadow: 0 6px 18px var(--accent-red-glow);
}
.sidebar-nav-item.active > a .sidebar-label {
    opacity: 1;
}
.sidebar-nav-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg-hover);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    border: 1px solid var(--border-soft);
}
.sidebar-footer { padding-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sidebar-footer-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--accent-red);
    letter-spacing: 0.3px;
    opacity: 0.85;
}
.sidebar-quick-add {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px dashed var(--accent-red);
    background: transparent;
    color: var(--accent-red);
    display: grid; place-items: center;
    transition: all 0.2s ease;
}
.sidebar-quick-add:hover {
    background: var(--accent-red);
    color: #fff;
    transform: rotate(90deg);
}

/* ============================================================
   MAIN PANEL
============================================================ */
.app-main {
    display: flex;
    flex-direction: column;
    padding: var(--app-pad) var(--app-pad);
    min-width: 0;
}

/* ---------- Top Header ---------- */
.app-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: var(--section-gap);
}
.app-header-greeting {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}
.greeting-hello {
    color: var(--accent-red);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.greeting-name {
    color: var(--text-primary);
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-size: 22px;
    letter-spacing: 1.5px;
    font-weight: 400;
}
.app-header-search {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}
.app-header-search svg {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.app-header-search input {
    width: 100%;
    height: 42px;
    padding: 0 18px 0 42px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}
.app-header-search input::placeholder { color: var(--text-muted); }
.app-header-search input:focus {
    border-color: var(--accent-red);
    background: var(--card-bg-2);
}
.app-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-key-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--card-bg);
    padding: 4px 4px 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
}
.api-key-wrapper input {
    width: 140px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
}
.api-key-wrapper input::placeholder { color: var(--text-muted); }
.api-key-wrapper button {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}
.api-key-wrapper button:hover { background: var(--accent-red-strong); }

.header-icon-btn, .header-logout-btn {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    display: grid; place-items: center;
    transition: all 0.2s ease;
}
.header-notif-btn { color: var(--accent-red); }
.header-notif-btn:hover { background: var(--accent-red) !important; color: #fff !important; }
.header-icon-btn:hover, .header-logout-btn:hover {
    background: var(--card-bg-2);
    color: var(--text-primary);
}
.header-logout-btn { color: var(--accent-red); }
.header-logout-btn:hover { background: var(--accent-red); color: #fff; }
.header-icon-dot {
    position: absolute;
    top: 9px; right: 9px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-red);
    border: 2px solid var(--card-bg);
}
.header-profile-trigger {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 0 2px var(--app-bg), 0 0 0 4px rgba(231, 76, 60, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}
.header-profile-trigger:hover { transform: scale(1.05); }
.header-profile-trigger img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Content Grid ---------- */
.app-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--section-gap);
    align-items: start;
}
.content-main-col, .content-side-col {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    min-width: 0;
}

/* ---------- Section Header ---------- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0;
    border: none;
    background: transparent;
}
.section-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}
.see-more-link {
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.see-more-link:hover { color: var(--accent-red-strong); }

/* ============================================================
   HERO BANNER
============================================================ */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: 0;
}
.hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(42, 21, 21, 0.96) 0%, rgba(42, 21, 21, 0.7) 55%, rgba(42, 21, 21, 0.2) 100%);
    z-index: 2;
}
.hero-inner {
    position: relative;
    z-index: 3;
    padding: 32px 36px;
    max-width: 60%;
}
.hero-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--accent-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px var(--accent-red-glow);
}
.hero-badge-ico {
    padding: 5px;
    background: rgba(0,0,0,0.45);
    color: var(--accent-orange);
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.08);
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
    margin: 0 0 10px 0;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.hero-title-italic {
    font-style: italic;
    font-weight: 700;
    color: var(--accent-red);
}
.hero-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 22px 0;
    max-width: 460px;
}
.hero-footer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-reviewers {
    display: flex;
}
.hero-reviewers img {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--app-bg);
    object-fit: cover;
    margin-left: -8px;
}
.hero-reviewers img:first-child { margin-left: 0; }
.hero-reviewers-count {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-soft);
}
.hero-reviewers-count svg { color: var(--accent-red); }

/* ============================================================
   LATEST ACTIVITIES
============================================================ */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.activity-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 160px;
    background: var(--card-bg);
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}
.activity-card:hover { transform: translateY(-3px); }
.activity-card-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.activity-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(42,21,21,0.92) 100%);
    z-index: 2;
}
.activity-card-top {
    position: absolute;
    top: 10px; left: 10px; right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}
.activity-play-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent-red);
    color: #fff;
    border: none;
    display: grid; place-items: center;
    box-shadow: 0 4px 12px var(--accent-red-glow);
}
.activity-save-btn {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    display: grid; place-items: center;
}
.activity-card-body {
    position: relative;
    z-index: 3;
    padding: 12px 14px;
}
.activity-card-title {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-card-sub {
    margin: 0 0 2px 0;
    font-size: 11px;
    color: var(--text-secondary);
}
.activity-card-time {
    margin: 0;
    font-size: 10px;
    color: var(--text-muted);
}
.activity-card.placeholder {
    display: grid;
    place-items: center;
    color: var(--text-muted);
    border: 1px dashed var(--border-soft);
    background: transparent;
    font-size: 12px;
    min-height: 160px;
    cursor: default;
}
.activity-card.placeholder:hover { transform: none; }

/* ============================================================
   CURRENT BUILD CARD
============================================================ */
.current-build-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}
.build-thumb {
    width: 70px; height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.build-info { min-width: 0; }
.build-title {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.build-subtitle {
    margin: 0 0 8px 0;
    font-size: 11px;
    color: var(--text-secondary);
}
.build-progress-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.build-progress-bar-wrap {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.build-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-strong));
    border-radius: 2px;
    transition: width 0.4s ease;
}
.build-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.build-action-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--accent-red);
    color: #fff;
    border: none;
    display: grid; place-items: center;
    box-shadow: 0 4px 12px var(--accent-red-glow);
    transition: all 0.2s ease;
}
.build-action-btn:hover { background: var(--accent-red-strong); transform: scale(1.08); }
.build-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.build-action-btn.build-cancel {
    background: var(--card-bg-hover);
    box-shadow: none;
    color: var(--text-primary);
}
.build-action-btn.build-cancel:hover { background: var(--accent-red); color: #fff; }

/* ============================================================
   FEATURE LIST (right column)
============================================================ */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feature-list .section-header { margin-bottom: 4px; }

.feature-card {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    transition: all 0.2s ease;
    animation: cardFadeIn 0.4s ease backwards;
}
.feature-card:nth-child(2) { animation-delay: 0.05s; }
.feature-card:nth-child(3) { animation-delay: 0.1s; }
.feature-card:nth-child(4) { animation-delay: 0.15s; }
.feature-card:nth-child(5) { animation-delay: 0.2s; }
.feature-card:nth-child(6) { animation-delay: 0.25s; }
.feature-card:hover {
    background: var(--card-bg-2);
    border-color: var(--accent-red-soft);
    transform: translateX(3px);
}
.feature-card-thumb {
    width: 54px; height: 54px;
    border-radius: 10px;
    background-color: var(--card-bg-2);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.feature-card-thumb::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.45), rgba(42,21,21,0.7));
}
.feature-card-icon {
    position: absolute;
    bottom: 6px; right: 6px;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: grid; place-items: center;
}
.feature-card-body { min-width: 0; }
.feature-card-title {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feature-card-sub {
    margin: 0 0 6px 0;
    font-size: 11px;
    color: var(--text-secondary);
}
.feature-card-sub span { color: var(--accent-red); font-weight: 700; }
.feature-progress {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.feature-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
    border-radius: 2px;
    transition: width 0.4s ease;
}
.feature-card-chevron { color: var(--text-muted); flex-shrink: 0; }
.feature-card.card-updated { animation: pulse 0.5s ease; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-red-glow); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* ============================================================
   STATISTICS CARD
============================================================ */
.stats-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.stats-card::after {
    content: "";
    position: absolute;
    bottom: -30px; right: -30px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, var(--accent-red-glow), transparent 60%);
    opacity: 0.3;
    pointer-events: none;
}
.stats-rings-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 12px 0 16px;
}
.stats-ring-wrap {
    position: relative;
    display: grid;
    place-items: center;
}
.stats-ring-wrap.stats-ring-sm {
    width: 120px;
    height: 120px;
}
.stats-ring-sm .stats-ring {
    width: 120px;
    height: 120px;
}
.stats-ring {
    width: 180px;
    height: 180px;
    transform: rotate(0deg);
}
.stats-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 8;
}
.stats-ring-fill {
    fill: none;
    stroke: var(--accent-red);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73; /* 2*PI*52 */
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.6s ease;
    filter: drop-shadow(0 0 6px var(--accent-red-glow));
}
.stats-ring-fill-gen {
    stroke: var(--accent-cyan);
    filter: drop-shadow(0 0 6px rgba(34,211,238,0.45));
}
.stats-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.stats-ring-sm .stats-ring-caption {
    font-size: 9px;
}
.stats-ring-sm .stats-ring-value {
    font-size: 28px;
}
.stats-ring-caption {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}
.stats-ring-value {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-size: 40px;
    color: var(--text-primary);
    line-height: 1;
    margin-top: 4px;
    letter-spacing: 1px;
}
.stats-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
    z-index: 1;
}
.stats-list-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}
.stat-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--card-bg-2);
    color: var(--accent-red);
    display: grid; place-items: center;
    margin-bottom: 4px;
}
.stat-icon-gen {
    color: var(--accent-cyan);
}
.stat-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

/* ============================================================
   FINAL PROMPT (Main col output)
============================================================ */
.final-prompt-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 20px;
}
.btn-pill-primary {
    background: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 12px var(--accent-red-glow);
}
.btn-pill-primary:hover { background: var(--accent-red-strong); }
.btn-pill-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.prompt-box {
    position: relative;
    background: var(--card-bg-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
}
.prompt-box-label {
    display: block;
    font-size: 11px;
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.prompt-box-content {
    color: var(--text-primary);
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Inter', monospace;
}
.prompt-box.lyrics-box .prompt-box-content {
    font-family: 'JetBrains Mono', monospace, 'Inter';
    font-size: 12px;
}
.mini-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
}
.mini-copy-btn:hover { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }

/* ============================================================
   COLLECTED PROMPTS SUMMARY
============================================================ */
.collected-section { display: block; /* same styling as content-section, no extra */ }
.collected-display {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px;
    min-height: 80px;
    color: var(--text-primary);
    font-size: 13px;
    max-height: 320px;
    overflow-y: auto;
}
.collected-display .placeholder {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    text-align: center;
    padding: 12px 0;
}
.collected-display dl { margin: 0; }
.collected-display dt {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 10px;
    margin-bottom: 4px;
}
.collected-display dt:first-child { margin-top: 0; }
.collected-display dd {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 12px;
    white-space: pre-wrap;
    padding: 8px 10px;
    background: var(--card-bg-2);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-red);
}

/* ============================================================
   HOME TWO-COLUMN LAYOUT (Komponen + PlayList)
============================================================ */
.home-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 4px;
}
.home-col-left, .home-col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* PlayList Section */
.playlist-section {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.playlist-tabs {
    display: inline-flex;
    background: var(--app-bg);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 3px;
    gap: 3px;
    align-self: flex-start;
}
.playlist-tab-btn {
    padding: 7px 16px;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
}
.playlist-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-red), #b73625);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-red-glow);
}
.playlist-tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: var(--card-bg-hover);
}

.playlist-content {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}
.playlist-empty {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 30px 10px;
    font-size: 13px;
}

/* Playlist Item */
.playlist-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
}
.playlist-item:hover { background: var(--card-bg-hover); }
.playlist-item.playing { background: var(--accent-red-soft); }
.playlist-item-art {
    width: 44px; height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--app-bg);
}
.playlist-item-art-placeholder {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-red), #7b1818);
    display: grid; place-items: center;
}
.playlist-item-art-placeholder svg { color: rgba(255,255,255,0.6); }
.playlist-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.playlist-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playlist-item-tags {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playlist-item-dur {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Player Bar */
.playlist-player-bar {
    background: var(--app-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.player-track-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.player-art {
    width: 36px; height: 36px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--card-bg);
}
.player-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
.player-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-tags {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.player-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.15s ease;
    display: grid; place-items: center;
}
.player-btn:hover { color: var(--text-primary); }
.player-btn-main {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent-red), #b73625);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--accent-red-glow);
}
.player-btn-main:hover { transform: scale(1.08); }
.player-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.player-time {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 32px;
    text-align: center;
}
.player-progress {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
    outline: none;
    cursor: pointer;
}
.player-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-red);
    cursor: pointer;
    box-shadow: 0 0 6px var(--accent-red-glow);
}
.player-progress::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-red);
    cursor: pointer;
    border: none;
}
.player-progress::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}

@media (max-width: 960px) {
    .home-two-col { grid-template-columns: 1fr; }
}

/* ============================================================
   RIGHT SIDEBAR (Genre Shortcuts)
============================================================ */
.app-sidebar-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0;
    border-left: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(0,0,0,0.1), transparent);
    gap: 14px;
}
.sidebar-right-top {
    padding: 0 6px;
}
.sidebar-profile-circle {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-soft);
    cursor: pointer;
    transition: all 0.2s;
}
.sidebar-profile-circle:hover { border-color: var(--accent-red); }
.sidebar-profile-circle img { width: 100%; height: 100%; object-fit: cover; }

.genre-shortcuts-scroll {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    padding: 0 6px;
}
.genre-shortcuts-scroll::-webkit-scrollbar { width: 0; }

.genre-shortcuts-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.genre-shortcut {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    border: none;
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    overflow: visible;
}
.genre-shortcut:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.genre-shortcut-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--success-green);
    border: 2px solid var(--app-bg);
}
.genre-shortcut[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg-hover);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    border: 1px solid var(--border-soft);
}

.sidebar-right-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 6px;
    align-items: center;
}
.sidebar-pill {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-soft);
    display: grid; place-items: center;
    transition: all 0.2s;
}
.sidebar-pill:hover { background: var(--card-bg-2); color: var(--text-primary); }
.sidebar-pill-accent { background: var(--accent-red); color: #fff; border-color: transparent; }
.sidebar-pill-accent:hover { background: var(--accent-red-strong); color: #fff; }

/* ============================================================
   MODALS
============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.modal.visible {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: var(--app-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-soft);
}
.modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}
.modal-close-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid; place-items: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}
.modal-close-button:hover { background: var(--card-bg); color: var(--accent-red); }
.modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}

.form-group {
    margin-bottom: 16px;
    border: none;
    padding: 0;
}
.form-group > label, .form-group > legend {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    padding: 0;
}
.form-group input[type="text"], .form-group input[type="url"], .form-group textarea, .modal-textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    resize: vertical;
}
.form-group input:focus, .form-group textarea:focus, .modal-textarea:focus {
    border-color: var(--accent-red);
    background: var(--card-bg-2);
}
.form-group input::placeholder, .modal-textarea::placeholder { color: var(--text-muted); }
.input-hint {
    color: var(--text-muted);
    font-size: 11px;
    margin: 6px 0 0 0;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.radio-group label, .checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.radio-group label:hover, .checkbox-group label:hover {
    background: var(--card-bg-2);
    color: var(--text-primary);
}
.radio-group input[type="radio"], .checkbox-group input[type="checkbox"] {
    accent-color: var(--accent-red);
    margin: 0;
}
.radio-group label:has(input:checked), .checkbox-group label:has(input:checked) {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.range-fieldset { display: none; }
.range-fieldset.visible { display: block; }

.modal-action-button {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 12px var(--accent-red-glow);
}
.modal-action-button:hover { background: var(--accent-red-strong); }
.modal-action-button:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.modal-action-button.secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    box-shadow: none;
}
.modal-action-button.secondary:hover { background: var(--card-bg-2); border-color: var(--accent-red); }
.modal-action-button.secondary.sent {
    background: var(--success-green);
    color: #0a2a15;
    border-color: var(--success-green);
}

.output-container {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}
.output-container h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.ai-output-area, .lyric-output-container > div[id$="output-area"], #lyric-output-area {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 13px;
    max-height: 280px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin-bottom: 12px;
    line-height: 1.55;
}
.ai-output-area p, #lyric-output-area p { margin: 0; color: var(--text-secondary); }
.lyric-output-container h4 {
    margin: 16px 0 10px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.modal-button-group {
    display: flex;
    gap: 10px;
}
.modal-button-group .modal-action-button { flex: 1; }

/* Prompt Music Source Preview */
.prompt-music-source-preview {
    background: var(--app-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    max-height: 200px;
    overflow-y: auto;
}
.prompt-music-source-preview .placeholder {
    color: var(--text-muted);
    font-style: italic;
    font-size: 13px;
    margin: 0;
}
.pm-source-item {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid var(--border-soft-2);
    line-height: 1.5;
}
.pm-source-item:last-child { border-bottom: none; }
.pm-source-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Error text */
.error-message {
    color: var(--accent-red);
    font-size: 12px;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.25);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
}

/* Google Login Button */
.google-login-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.google-login-button:hover { transform: translateY(-2px); }

/* ============================================================
   SAVED PROMPTS MODAL — TABS & TABLES
============================================================ */
.tabs-container { padding-bottom: 10px; }
.tab-buttons {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 14px;
}
.tab-button {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}
.tab-button:hover { color: var(--text-primary); }
.tab-button.active {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.table-responsive { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
    font-size: 12px;
}
.data-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border-soft);
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}
.saved-item-row { cursor: pointer; transition: background 0.15s; }
.saved-item-row:hover { background: var(--card-bg); }
.saved-item-detail-row { display: none; background: var(--card-bg); }
.saved-item-detail-row.visible { display: table-row; }
.detail-content-wrapper {
    padding: 14px;
    border-left: 3px solid var(--accent-red);
    background: var(--card-bg-2);
    border-radius: var(--radius-sm);
}
.detail-content-wrapper h5 {
    margin: 0 0 8px 0;
    color: var(--accent-red);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.detail-content-text {
    color: var(--text-primary);
    font-size: 12px;
    white-space: pre-wrap;
    line-height: 1.55;
    font-family: 'JetBrains Mono', monospace, 'Inter';
}
.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============================================================
   APP BLOCK OVERLAY
============================================================ */
.app-block-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 5, 0.88);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    color: var(--text-primary);
}
body.app-locked .app-block-overlay { display: flex; }

/* ============================================================
   Sidebar collapse (legacy states)
============================================================ */
.app-sidebar-left.sidebar-collapsed { display: flex; } /* always visible */
.app-shell.layout-sidebar-collapsed { /* no-op — sidebar always visible */ display: flex; }

/* ============================================================
   RESPONSIVE
============================================================ */
/* Right sidebar removed — no override needed at 1200px */
@media (max-width: 960px) {
    .app-content-grid {
        grid-template-columns: 1fr;
    }
    .content-side-col { order: -1; }
    .hero-inner { max-width: 100%; padding: 24px; }
    .activities-grid { grid-template-columns: repeat(2, 1fr); }
    .app-header { grid-template-columns: 1fr auto; }
    .app-header-search { display: none; }
    .api-key-wrapper { display: none; }
}
@media (max-width: 640px) {
    body { padding: 0; }
    :root { --sidebar-w: 64px; --app-pad: 14px; }
    .app-shell { border-radius: 0; min-height: 100vh; }
    .hero-title { font-size: 36px; }
    .hero-inner { padding: 20px 16px; }
    .activities-grid { grid-template-columns: 1fr; }
    .stats-list { gap: 6px; }
    .header-icon-btn, .header-logout-btn { width: 36px; height: 36px; }
    .header-profile-trigger { width: 38px; height: 38px; }
    .greeting-name { font-size: 18px; }
    .feature-card { padding: 8px; }
    .feature-card-thumb { width: 44px; height: 44px; }
    .hide-mobile { display: none; }
}

/* ============================================================
   MUSIC STUDIO VIEW
============================================================ */
body.view-music-studio .app-content-grid { display: none; }
body:not(.view-music-studio) .music-studio-view { display: none; }

/* ===== Visual Panel View ===== */
body.view-visual-panel .app-content-grid { display: none; }
body:not(.view-visual-panel) .visual-panel-view { display: none; }

.visual-panel-view {
    padding: var(--app-pad);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.visual-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .visual-panel-grid { grid-template-columns: 1fr; }
}
.visual-card { display: flex; flex-direction: column; gap: 14px; }
.visual-output-area { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.visual-option-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.visual-option-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.visual-option-title { font-weight: 700; font-size: 13px; color: var(--text-primary); }
.visual-option-text { font-size: 13px; line-height: 1.5; color: var(--text-secondary); white-space: pre-wrap; }
.visual-copy-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
}
.visual-copy-btn:hover { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }

.api-key-wrapper-crun input { border-color: rgba(231, 76, 60, 0.35); }
.api-key-wrapper-crun input::placeholder { color: rgba(231, 76, 60, 0.7); }

.music-studio-view {
    padding: var(--app-pad);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.music-studio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.music-studio-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.music-studio-subtitle {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 640px;
}
.music-studio-back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 13px;
}
.music-studio-back-btn:hover { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }

.music-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
}

.music-studio-form-col { display: flex; flex-direction: column; gap: 14px; }

.studio-tabs {
    display: inline-flex;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    align-self: flex-start;
}
.studio-tab-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}
.studio-tab-btn:hover { color: var(--text-primary); }
.studio-tab-btn.active {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(231,76,60,0.35);
}
.studio-tab-btn svg { opacity: 0.95; }

.music-form-sublabel { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.music-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
}
.music-card-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.music-card-head h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--text-primary);
}
.music-card-hint { color: var(--text-secondary); font-size: 12px; }

.mode-toggle {
    display: inline-flex;
    background: var(--app-bg);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
}
.mode-toggle label {
    position: relative;
    cursor: pointer;
}
.mode-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode-toggle span {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.mode-toggle input:checked + span {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(231,76,60,0.35);
}

.music-form-section { display: flex; flex-direction: column; gap: 14px; }
.music-form-group { display: flex; flex-direction: column; gap: 6px; }
.music-form-label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.music-form-group label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.music-form-group input[type="text"],
.music-form-group input[type="password"],
.music-form-group input[type="number"],
.music-form-group select,
.music-form-group textarea {
    width: 100%;
    background: var(--app-bg);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
}
.music-form-group input:focus,
.music-form-group select:focus,
.music-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}
.music-form-group input[type="range"] {
    width: 100%;
    accent-color: var(--accent-red);
}
.music-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.music-form-checkbox-row { margin-top: 4px; }
.music-checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-primary); font-size: 14px; }
.music-checkbox input { accent-color: var(--accent-red); width: 16px; height: 16px; }

.music-ghost-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.music-ghost-btn:hover { background: var(--card-bg-hover, rgba(255,255,255,0.05)); border-color: var(--accent-red); color: var(--accent-red); }
.music-ghost-btn-sm { padding: 4px 8px; font-size: 11px; }

.music-form-actions {
    display: flex; align-items: center; gap: 12px;
    margin-top: 16px; flex-wrap: wrap;
}
.music-primary-btn {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(231,76,60,0.35);
    transition: all 0.2s ease;
}
.music-primary-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(231,76,60,0.45); }
.music-primary-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.music-generate-hint { font-size: 12px; color: var(--text-secondary); }

.music-disclaimer {
    margin-top: 16px;
    padding: 10px 12px;
    background: rgba(231, 76, 60, 0.08);
    border-left: 3px solid var(--accent-red);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex; align-items: flex-start; gap: 8px;
    line-height: 1.5;
}
.music-disclaimer svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-red); }
.music-disclaimer a { color: var(--accent-red); text-decoration: underline; }
.music-disclaimer code { background: rgba(0,0,0,0.3); padding: 1px 5px; border-radius: 3px; font-size: 11px; }

/* Task history / results */
.music-task-history { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; padding-right: 4px; }
.music-studio-history-col { max-height: calc(100vh - 180px); overflow-y: auto; padding-right: 2px; }
.music-empty { color: var(--text-secondary); text-align: center; padding: 40px 20px; font-style: italic; }

.music-task-card {
    background: var(--app-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: visible;
    transition: border-color 0.2s ease;
}
.music-task-card.music-task-success { border-color: rgba(34,211,238,0.3); }
.music-task-card.music-task-failed { border-color: rgba(231,76,60,0.4); }
.music-task-card.music-task-running, .music-task-card.music-task-pending { border-color: rgba(251,191,36,0.3); }

.music-task-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(0,0,0,0.15);
}
.music-task-title-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-bottom: 4px;
}
.music-task-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.music-task-meta { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.music-task-id { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.music-task-id code { background: transparent; color: var(--text-primary); font-family: monospace; }

.music-status-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.music-status-pending { background: rgba(251,191,36,0.15); color: var(--accent-yellow); }
.music-status-running { background: rgba(251,191,36,0.2); color: var(--accent-yellow); animation: pulse-bg 1.8s ease-in-out infinite; }
.music-status-success { background: rgba(34,211,238,0.15); color: var(--accent-cyan); }
.music-status-failed  { background: rgba(231,76,60,0.2); color: var(--accent-red); }

@keyframes pulse-bg { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

.music-task-body { padding: 14px 16px; }
.music-task-progress {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-secondary); font-size: 13px;
}
.music-spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent-red);
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.music-task-error { color: var(--accent-red); font-size: 13px; }

.music-tracks-grid { display: flex; flex-direction: column; gap: 12px; }
.music-track-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
}
.music-track-art {
    width: 84px; height: 84px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--app-bg);
}
.music-track-art-placeholder {
    background: linear-gradient(135deg, var(--accent-red), #7b1818);
}
.music-track-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.music-track-title { font-weight: 700; color: var(--text-primary); font-size: 14px; }
.music-track-dur { color: var(--text-secondary); font-weight: 500; font-size: 12px; }
.music-track-tags { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.music-track-card .plyr--audio {
    width: 100%;
    --plyr-color-main: var(--accent-red);
    --plyr-audio-control-color: var(--text-primary);
    --plyr-audio-control-color-hover: var(--accent-red-strong);
    --plyr-audio-controls-background: var(--app-bg);
    --plyr-range-fill-background: var(--accent-red);
    --plyr-range-thumb-background: var(--accent-red-strong);
    --plyr-range-track-height: 4px;
    --plyr-range-thumb-height: 12px;
    --plyr-audio-progress-buffered-background: rgba(255,107,91,0.2);
    border-radius: 8px;
    overflow: hidden;
    font-size: 12px;
}
.music-track-card .plyr--audio .plyr__controls {
    padding: 6px 10px;
}
/* Fallback for native audio if Plyr fails to load */
.music-track-card audio:not(.plyr--setup) { width: 100%; height: 36px; }
.music-track-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.music-track-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    background: var(--app-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    transition: all 0.15s ease;
}
.music-track-btn:hover { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }

/* Persona button in track card */
.music-track-persona {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}
.music-track-persona:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}

/* Persona section in form */
.music-form-persona-section {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(255, 107, 91, 0.05);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}
.music-form-persona-section select {
    width: 100%;
    padding: 8px 12px;
    background: var(--app-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    margin-top: 6px;
}
.mode-toggle-sm { gap: 6px; }
.mode-toggle-sm label span { font-size: 12px; padding: 4px 10px; }

/* Persona preview */
.persona-preview {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}
.persona-preview-name {
    font-weight: 600;
    color: var(--accent-cyan);
    padding-right: 24px;
}
.persona-preview-desc {
    color: var(--text-secondary);
    font-style: italic;
}
.persona-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}
.persona-delete-btn:hover {
    color: var(--accent-red);
    background: var(--accent-red-soft);
}

/* Persona modal */
.modal-content-sm { max-width: 480px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.persona-source-info {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}
.persona-source-info code {
    color: var(--accent-cyan);
    font-size: 11px;
}
.persona-status {
    margin-top: 8px;
    font-size: 12px;
    min-height: 20px;
}
.modal-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .music-studio-grid { grid-template-columns: 1fr; }
    .music-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .music-studio-title { font-size: 28px; }
    .music-track-card { grid-template-columns: 64px 1fr; }
    .music-track-art { width: 64px; height: 64px; }
}

/* ============================================================
   FULLSCREEN STATUS SCREENS (Pending / Rejected)
============================================================ */
.fullscreen-status-screen {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(20, 8, 8, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.status-screen-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.status-screen-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 20px;
}
.status-screen-icon.pending-icon {
    background: rgba(251, 188, 5, 0.15);
    color: #fbbc05;
    border: 2px solid rgba(251, 188, 5, 0.4);
}
.status-screen-icon.rejected-icon {
    background: rgba(231, 76, 60, 0.15);
    color: var(--accent-red);
    border: 2px solid rgba(231, 76, 60, 0.4);
}
.status-screen-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-primary);
}
.status-screen-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.status-screen-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border-soft);
    border-top-color: #fbbc05;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-screen-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0;
}
.status-screen-reason {
    background: var(--card-bg-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 16px 0;
    text-align: left;
    font-size: 13px;
    color: var(--text-secondary);
}
.status-screen-reason-label {
    font-weight: 600;
    color: var(--accent-red);
    margin-right: 6px;
}
.btn-pill-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--card-bg-2);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-pill-secondary:hover { background: var(--card-bg-hover); color: var(--text-primary); }

.pending-app-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 5px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-red), #b73625);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px var(--accent-red-glow);
}
.pending-contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--card-bg-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 8px 0 14px;
    width: 100%;
}
.pending-contact-label {
    font-size: 12px;
    color: var(--text-muted);
}
.btn-wa-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}
.btn-wa-contact:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.pending-contact-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ============================================================
   ADMIN PANEL VIEW (body class toggle)
============================================================ */
.admin-panel-view { display: none; }

body.view-admin-panel .app-content-grid { display: none !important; }
body.view-admin-panel .music-studio-view { display: none !important; }
body.view-admin-panel .visual-panel-view { display: none !important; }
body.view-admin-panel .admin-panel-view { display: block !important; }
body.view-admin-panel .app-header { display: none !important; }

.admin-panel-view {
    padding: var(--app-pad);
    min-height: 100%;
}
.admin-panel-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}
.admin-panel-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-primary);
}
.admin-panel-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   ADMIN PANEL
============================================================ */
.admin-tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--card-bg);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    width: fit-content;
}
.admin-tab-btn {
    padding: 8px 18px;
    border-radius: calc(var(--radius-md) - 2px);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-tab-btn.active {
    background: var(--card-bg-hover);
    color: var(--text-primary);
}
.admin-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(251, 188, 5, 0.2);
    color: #fbbc05;
    font-size: 11px;
    font-weight: 700;
}
.admin-count-badge.approved { background: rgba(52, 168, 83, 0.2); color: #34a853; }
.admin-count-badge.rejected { background: rgba(231, 76, 60, 0.2); color: var(--accent-red); }
.admin-user-list { display: flex; flex-direction: column; gap: 10px; }
.admin-empty { color: var(--text-muted); font-size: 14px; padding: 32px 0; text-align: center; }
.admin-user-card {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: background 0.15s;
}
.admin-user-card:hover { background: var(--card-bg-2); }
.admin-user-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-soft);
}
.admin-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.admin-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-user-email {
    font-size: 12px;
    color: var(--text-muted);
}
.admin-user-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.admin-user-actions { display: flex; align-items: center; gap: 8px; }
.admin-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-btn-approve {
    background: rgba(52, 168, 83, 0.15);
    color: #34a853;
    border: 1px solid rgba(52, 168, 83, 0.3);
}
.admin-btn-approve:hover { background: #34a853; color: #fff; }
.admin-btn-reject {
    background: rgba(231, 76, 60, 0.12);
    color: var(--accent-red);
    border: 1px solid rgba(231, 76, 60, 0.3);
}
.admin-btn-reject:hover { background: var(--accent-red); color: #fff; }
.admin-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.admin-badge.approved { background: rgba(52, 168, 83, 0.15); color: #34a853; }

/* ========== Tour / Tutorial ========== */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 8000;
    backdrop-filter: blur(2px);
    animation: tour-fade-in 0.25s ease forwards;
}
.tour-spotlight {
    position: relative;
    z-index: 8002 !important;
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 4px var(--accent-red), 0 0 0 8px rgba(231, 76, 60, 0.28), 0 0 40px rgba(231, 76, 60, 0.22) !important;
    animation: tour-pulse 2s ease-in-out infinite;
}
.tour-tooltip {
    position: fixed;
    z-index: 8010;
    width: 320px;
    background: #2a1515;
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: var(--radius-lg);
    padding: 22px 20px 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(231, 76, 60, 0.2);
    animation: tour-pop-in 0.28s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}
.tour-skip {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}
.tour-skip:hover { color: var(--text-primary); background: rgba(255,255,255,0.07); }
.tour-step-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-red);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.tour-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.3;
    padding-right: 24px;
}
.tour-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
}
.tour-body strong { color: var(--text-primary); }
.tour-body em { color: var(--accent-cyan); font-style: normal; }
.tour-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 16px;
}
.tour-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    transition: all 0.2s;
}
.tour-dot.active {
    width: 18px;
    border-radius: 3px;
    background: var(--accent-red);
}
.tour-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}
.tour-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
}
.tour-btn:disabled { opacity: 0.38; cursor: not-allowed; }
.tour-btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
}
.tour-btn-ghost:not(:disabled):hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }
.tour-btn-primary {
    background: var(--accent-red);
    color: #fff;
}
.tour-btn-primary:hover { background: var(--accent-red-strong); }
@keyframes tour-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes tour-pop-in {
    from { opacity: 0; transform: scale(0.88) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes tour-pulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--accent-red), 0 0 0 8px rgba(231,76,60,0.28); }
    50%       { box-shadow: 0 0 0 4px var(--accent-red), 0 0 0 14px rgba(231,76,60,0.12); }
}
@media (max-width: 640px) {
    .tour-tooltip { width: calc(100vw - 24px); left: 12px !important; right: 12px; }
}

/* ========== Toast Notifications ========== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: 340px;
    width: calc(100% - 48px);
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #3d2020;
    border: 1px solid rgba(255, 107, 91, 0.22);
    border-left: 4px solid var(--accent-red);
    border-radius: var(--radius-md);
    padding: 13px 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(231,76,60,0.18);
    pointer-events: all;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    animation: toast-in 0.32s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}
.toast.toast-hide {
    animation: toast-out 0.28s ease-in forwards;
}
.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}
.toast-body {
    flex: 1;
    min-width: 0;
}
.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 2px;
}
.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    word-break: break-word;
}
.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-top: -1px;
    transition: color 0.15s;
}
.toast-close:hover { color: var(--text-primary); }
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-red);
    border-radius: 0 0 0 var(--radius-md);
    animation: toast-progress 5s linear forwards;
    transform-origin: left;
}
/* Variants */
.toast.toast-success { border-left-color: var(--success-green); }
.toast.toast-success .toast-progress { background: var(--success-green); }
.toast.toast-warning { border-left-color: var(--accent-orange); }
.toast.toast-warning .toast-progress { background: var(--accent-orange); }
.toast.toast-info { border-left-color: var(--accent-cyan); }
.toast.toast-info .toast-progress { background: var(--accent-cyan); }
@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%) scale(0.92); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0) scale(1); max-height: 120px; margin-bottom: 0; }
    to   { opacity: 0; transform: translateX(110%) scale(0.88); max-height: 0; margin-bottom: -10px; }
}
@keyframes toast-progress {
    from { width: 100%; }
    to   { width: 0%; }
}
@media (max-width: 640px) {
    #toast-container { bottom: 16px; right: 12px; left: 12px; width: auto; max-width: 100%; }
}

/* ============================================================
   SUNO API MANAGER
============================================================ */

/* -- Header Button -- */
.suno-api-manager-wrapper {
    display: flex;
    align-items: center;
}
.suno-api-manager-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--accent-red);
    background: linear-gradient(135deg, rgba(231,76,60,0.15), rgba(231,76,60,0.06));
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    backdrop-filter: blur(6px);
}
.suno-api-manager-btn svg {
    color: var(--accent-red);
    flex-shrink: 0;
    transition: color 0.2s;
}
.suno-api-manager-btn:hover {
    background: linear-gradient(135deg, rgba(231,76,60,0.35), rgba(231,76,60,0.18));
    border-color: var(--accent-red-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-red-glow);
}
.suno-api-manager-btn:hover svg { color: #fff; }
.suno-api-manager-btn:active { transform: scale(0.97); }

/* ============================================================
   GEMINI SETTINGS BUTTON + MODAL
   ============================================================ */
.gemini-settings-wrapper {
    display: flex;
    align-items: center;
}
.gemini-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--accent-orange);
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.06));
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    backdrop-filter: blur(6px);
}
.gemini-settings-btn svg {
    color: var(--accent-orange);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.4s ease;
}
.gemini-settings-btn:hover {
    background: linear-gradient(135deg, rgba(245,158,11,0.32), rgba(245,158,11,0.16));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}
.gemini-settings-btn:hover svg { color: #fff; transform: rotate(45deg); }
.gemini-settings-btn:active { transform: scale(0.97); }

.gemini-settings-modal-content {
    max-width: 520px !important;
    width: 100% !important;
}
.gemini-settings-section { margin-bottom: 24px; }
.gemini-settings-section:last-child { margin-bottom: 0; }
.gemini-settings-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.gemini-api-key-row {
    display: flex;
    gap: 8px;
}
.gemini-api-key-input {
    flex: 1;
    padding: 11px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.gemini-api-key-input::placeholder { color: var(--text-muted); }
.gemini-api-key-input:focus {
    border-color: var(--accent-orange);
    background: var(--card-bg-2);
}
.gemini-api-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--accent-orange), #b97308);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.gemini-api-save-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.gemini-api-save-btn:active { transform: scale(0.97); }
.gemini-settings-hint {
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

.gemini-model-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gemini-model-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.18s ease;
}
.gemini-model-option:hover {
    border-color: var(--accent-orange);
    background: var(--card-bg-2);
}
.gemini-model-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gemini-model-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-soft);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.18s;
}
.gemini-model-option input[type="radio"]:checked ~ .gemini-model-radio {
    border-color: var(--accent-orange);
}
.gemini-model-option input[type="radio"]:checked ~ .gemini-model-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent-orange);
}
.gemini-model-option input[type="radio"]:checked ~ .gemini-model-info .gemini-model-label {
    color: var(--accent-orange);
}
.gemini-model-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gemini-model-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.18s;
}
.gemini-model-id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.suno-api-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: var(--card-bg-hover);
    color: var(--text-muted);
    margin-left: 2px;
}
.suno-api-badge.valid {
    background: rgba(74,222,128,0.2);
    color: var(--success-green);
}
.suno-api-badge.empty {
    background: rgba(231,76,60,0.2);
    color: var(--accent-red);
}

/* -- Modal Overrides -- */
.suno-api-modal-content {
    max-width: 720px !important;
    width: 100% !important;
}

/* -- Input Section -- */
.suno-api-input-section {
    margin-bottom: 24px;
}
.suno-api-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.suno-api-textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace, 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.suno-api-textarea::placeholder { color: var(--text-muted); }
.suno-api-textarea:focus {
    border-color: var(--accent-red);
    background: var(--card-bg-2);
}
.suno-api-input-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.suno-api-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent-red), #b73625);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px var(--accent-red-glow);
}
.suno-api-add-btn:hover {
    background: linear-gradient(135deg, var(--accent-red-strong), var(--accent-red));
    transform: translateY(-1px);
}
.suno-api-add-btn:active { transform: scale(0.97); }

.suno-api-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.suno-api-refresh-btn:hover {
    background: var(--card-bg-2);
    border-color: var(--accent-red-soft);
    color: var(--text-primary);
}

/* -- Table Section -- */
.suno-api-table-section {
    background: rgba(0,0,0,0.12);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 16px;
}
.suno-api-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.suno-api-table-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.suno-api-count-label {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--card-bg);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-soft-2);
}
.suno-api-table-wrap {
    overflow-x: auto;
}
.suno-api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.suno-api-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}
.suno-api-table tbody tr {
    border-bottom: 1px solid var(--border-soft-2);
    transition: background 0.15s;
}
.suno-api-table tbody tr:last-child { border-bottom: none; }
.suno-api-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}
.suno-api-row-active {
    background: rgba(231,76,60,0.08) !important;
}
.suno-api-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
}
.suno-api-td-no {
    width: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}
.suno-api-active-marker {
    color: var(--success-green);
    font-size: 10px;
    margin-left: 4px;
    animation: activePulse 2s infinite;
}
@keyframes activePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.suno-api-td-key {
    max-width: 200px;
}
.suno-api-td-key code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace, 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-primary);
    background: var(--card-bg);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.suno-api-td-credit {
    text-align: center;
    white-space: nowrap;
}
.suno-api-credit-value {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
}
.suno-api-credit-value.has-credit {
    color: var(--success-green);
}
.suno-api-td-status {
    text-align: center;
    white-space: nowrap;
}
.suno-api-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.suno-api-status-valid {
    background: rgba(74,222,128,0.15);
    color: var(--success-green);
    border: 1px solid rgba(74,222,128,0.25);
}
.suno-api-status-invalid {
    background: rgba(231,76,60,0.15);
    color: var(--accent-red);
    border: 1px solid rgba(231,76,60,0.25);
}
.suno-api-status-limit {
    background: rgba(251,191,36,0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(251,191,36,0.25);
}
.suno-api-status-checking {
    background: rgba(96,165,250,0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(96,165,250,0.2);
}
.suno-api-spinner {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* -- Action Buttons -- */
.suno-api-td-action {
    white-space: nowrap;
    text-align: center;
}
.suno-api-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 2px;
}
.suno-api-action-btn:hover {
    background: var(--card-bg-2);
    color: var(--text-primary);
    border-color: var(--accent-red-soft);
}
.suno-api-delete-btn:hover {
    background: rgba(231,76,60,0.15) !important;
    color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
}

/* -- Empty State -- */
.suno-api-empty-msg {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================================
   BUY API — Header Button
============================================================ */
.buy-api-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(37, 211, 102, 0.35);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.04));
    color: #25d366;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.buy-api-header-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.25), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.buy-api-header-btn:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.22), rgba(37, 211, 102, 0.08));
    border-color: #25d366;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25);
}
.buy-api-header-btn:hover::before {
    opacity: 1;
}
.buy-api-header-btn:active {
    transform: scale(0.97);
}
.buy-api-header-btn svg {
    position: relative;
    z-index: 1;
}

/* ============================================================
   BUY API — Modal Content Override
============================================================ */
.buy-api-modal-content {
    max-width: 820px;
}
.buy-api-subtitle {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}
.buy-api-footer-note {
    margin: 20px 0 0 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
}

/* ============================================================
   BUY API — Package Cards Row (Horizontal)
============================================================ */
.buy-api-packages-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.buy-api-package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 20px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    overflow: hidden;
}
.buy-api-package-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-soft);
    transition: all 0.3s;
}
.buy-api-package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Trial card accent */
.buy-api-trial::before { background: linear-gradient(90deg, #22d3ee, #60a5fa); }
.buy-api-trial:hover { border-color: rgba(34, 211, 238, 0.3); }
.buy-api-trial .buy-api-package-icon { color: #22d3ee; }

/* Popular card accent */
.buy-api-popular::before { background: linear-gradient(90deg, var(--accent-red), var(--accent-orange)); }
.buy-api-popular:hover { border-color: rgba(231, 76, 60, 0.3); }
.buy-api-popular .buy-api-package-icon { color: var(--accent-red); }
.buy-api-popular {
    border-color: rgba(231, 76, 60, 0.2);
    background: linear-gradient(180deg, rgba(231, 76, 60, 0.06), var(--card-bg));
}

/* Pro card accent */
.buy-api-pro::before { background: linear-gradient(90deg, #fbbf24, #f59e57); }
.buy-api-pro:hover { border-color: rgba(251, 191, 36, 0.3); }
.buy-api-pro .buy-api-package-icon { color: #fbbf24; }

/* Badge Ribbon */
.buy-api-badge-ribbon {
    position: absolute;
    top: 12px;
    right: -28px;
    transform: rotate(45deg);
    background: #22d3ee;
    color: #0a1a2e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 32px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.buy-api-badge-popular {
    background: linear-gradient(135deg, var(--accent-red), #ff5b45);
    color: #fff;
}
.buy-api-badge-pro {
    background: linear-gradient(135deg, #fbbf24, #f59e57);
    color: #1a0a00;
}

/* Package Icon */
.buy-api-package-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    transition: transform 0.3s;
}
.buy-api-package-card:hover .buy-api-package-icon {
    transform: scale(1.08) rotate(-3deg);
}

/* Package Name */
.buy-api-package-name {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* Details */
.buy-api-package-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    width: 100%;
}
.buy-api-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    justify-content: center;
}
.buy-api-detail-item svg {
    color: var(--success-green);
    flex-shrink: 0;
}

/* Price */
.buy-api-price {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.buy-api-price-currency {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}
.buy-api-price-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    letter-spacing: 1px;
    line-height: 1;
}

/* CTA Buttons */
.buy-api-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
    border: none;
    cursor: pointer;
}
.buy-api-cta-trial {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.buy-api-cta-trial:hover {
    background: linear-gradient(135deg, #2be372, #159e8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.buy-api-cta-buy {
    background: linear-gradient(135deg, var(--accent-red), #b73625);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-red-glow);
}
.buy-api-cta-buy:hover {
    background: linear-gradient(135deg, var(--accent-red-strong), var(--accent-red));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-red-glow);
}
.buy-api-cta-btn:active {
    transform: scale(0.97);
}

/* Responsive: Stack on small viewports */
@media (max-width: 720px) {
    .buy-api-packages-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .buy-api-modal-content {
        max-width: 100%;
    }
    .buy-api-badge-ribbon {
        top: 10px;
        right: -30px;
        font-size: 8px;
    }
}
