/* ============================================
   XIII Vault — Thirteen Co Design System
   ============================================ */

/* --- Reset & Base --- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --green: #10b981;
    --red: #ef4444;
    --yellow: #eab308;
    --cyan: #06b6d4;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(148, 163, 184, 0.3);
    color: #fff;
}

/* --- Scrollbar --- */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== HEADER / NAV ===== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-brand img {
    width: 32px;
    opacity: 0.8;
}

.nav-brand span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== BUTTONS (Thirteen Co) ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
    border: none;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    padding: 14px 32px;
    border-radius: 100px;
    background: #ffffff;
    color: #000000;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 110px rgba(255, 255, 255, 0.18);
}

.btn-primary:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.88);
}

.btn-secondary {
    padding: 14px 32px;
    border-radius: 100px;
    background: transparent;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost {
    padding: 0.5rem 0.75rem;
    border-radius: 100px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-ghost:hover { color: #ffffff; }

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    margin-top: 0.75rem;
}

.btn-green {
    background: transparent;
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
}

.btn-green:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

/* ===== SECTION DIVIDER ===== */

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06) 50%, transparent);
}

/* ===== REVEAL ANIMATIONS ===== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.visible { opacity: 1; }

/* ===== CARDS ===== */

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.card-static {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

/* ===== HERO ===== */

.hero {
    padding: 10rem 1.5rem 5rem;
    position: relative;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    max-width: 650px;
}

.hero-title span { color: rgba(255, 255, 255, 0.35); }

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== SECTION ===== */

.section {
    padding: 5rem 1.5rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-centered {
    text-align: center;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: color-mix(in oklab, #ffffff 45%, transparent);
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 3rem;
}

/* ===== GRID ===== */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* ===== STEP CARDS ===== */

.step-card {
    padding: 2rem;
    text-align: center;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.step-icon {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.step-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* ===== FEATURE CARDS ===== */

.feature-card {
    padding: 1.75rem;
    text-align: center;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */

.cta {
    position: relative;
    max-width: 672px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
    text-align: center;
}

.cta-title {
    font-size: 60px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.cta-subtitle {
    color: color-mix(in oklab, #ffffff 45%, transparent);
    margin-bottom: 2.5rem;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
}

/* ===== FAQ ===== */

.faq-inner {
    max-width: 672px;
    margin: 0 auto;
}

.faq-inner .section-label {
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0.5rem;
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-item[open] {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }

.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: color-mix(in oklab, #ffffff 45%, transparent);
    margin: 0;
}

/* ===== LEGAL PAGES ===== */

.legal-container {
    max-width: 672px;
    margin: 0 auto;
    padding: 10rem 1.5rem 5rem;
}

.legal-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 1.25rem;
}

.legal-title {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.legal-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: color-mix(in oklab, #ffffff 45%, transparent);
    margin-bottom: 3rem;
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 2.5rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: color-mix(in oklab, #ffffff 45%, transparent);
    margin-bottom: 0.75rem;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.legal-content li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.25rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: color-mix(in oklab, #ffffff 45%, transparent);
}

.legal-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.legal-content strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

@media (max-width: 600px) {
    .legal-container { padding: 7rem 1rem 3rem; }
    .legal-title { font-size: 2rem; }
}

/* ===== FOOTER ===== */

.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.footer a:hover { color: rgba(255, 255, 255, 0.5); }

.footer-logo {
    width: 100px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.footer-memorial {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-memorial strong {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== AUTH PAGES ===== */

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-card {
    max-width: 400px;
    width: 100%;
    padding: 2.5rem;
    text-align: center;
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.auth-card .hint {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
}

.auth-card form { text-align: left; }

.auth-link {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.auth-link a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1px;
    transition: all 0.2s;
}

.auth-link a:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== FORMS ===== */

.form-group { margin-bottom: 1rem; }

label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input, textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: var(--font);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.2); }

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

textarea { resize: vertical; line-height: 1.5; }

.error {
    color: var(--red);
    margin-top: 0.75rem;
    font-size: 0.85rem;
    text-align: center;
}

.success {
    color: var(--green);
    margin-top: 0.75rem;
    font-size: 0.85rem;
    text-align: center;
}

/* ===== APP PAGE ===== */

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 1.25rem 4rem;
}

.app-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.app-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

#user-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== SUBSCRIPTION CARDS ===== */

.subscription-card {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.plan-card {
    max-width: 380px;
    width: 100%;
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 2rem 1.5rem;
}

.plan-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.plan-badge-free {
    background: rgba(16, 185, 129, 0.06);
    color: var(--green);
    border-color: rgba(16, 185, 129, 0.15);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
}

.plan-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    align-self: flex-start;
    margin-top: 0.5rem;
}

.plan-amount {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1;
}

.plan-card-free .plan-amount { color: var(--green); }

.plan-period {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.plan-features li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.plan-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ===== SOULSEEK SECTION ===== */

.login-card {
    max-width: 400px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
}

.login-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.login-card .hint { margin-bottom: 1.5rem; }
.login-card form { text-align: left; }

.slsk-help {
    margin-bottom: 1.25rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.slsk-help a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
}

.slsk-help a:hover { color: #ffffff; text-decoration: underline; }

/* ===== PROGRESS TABLE ===== */

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

th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

tr:last-child td { border-bottom: none; }

.status-queued      { color: rgba(255, 255, 255, 0.35); }
.status-searching   { color: var(--yellow); }
.status-found       { color: var(--cyan); }
.status-downloading { color: rgba(255, 255, 255, 0.7); }
.status-complete    { color: var(--green); }
.status-failed      { color: var(--red); }

.progress-bar-cell { width: 140px; }
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 100px;
    transition: width 0.4s ease;
}

.progress-bar-fill.complete { background: var(--green); }
.progress-bar-fill.failed { background: var(--red); }

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-header h2 { margin-bottom: 0; font-size: 1.1rem; }

/* ===== ACTION BUTTONS ===== */

.action-cell { width: 140px; text-align: center; }

.action-buttons {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: transparent;
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-download:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
}

.btn-download-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.btn-download-all:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.btn-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-tag:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ===== MODAL ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-card {
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.modal-header h2 { margin-bottom: 0; font-size: 1.1rem; }

.btn-modal-close {
    font-size: 1.25rem;
    padding: 0.3rem 0.6rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-modal-close:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }

.form-row {
    display: flex;
    gap: 0.75rem;
}

.form-row .form-group { flex: 1; }

/* ===== COVER ART ===== */

.cover-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.music-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-cover-art { text-align: center; margin-bottom: 1rem; }
.tag-cover-art img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

/* ===== SPINNER ===== */

@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.3rem;
}

/* ===== UTILITIES ===== */

.hidden { display: none !important; }
.hint {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.hint strong { color: rgba(255, 255, 255, 0.6); }

h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

/* ===== ANIMATED BACKGROUND ===== */

.bg-animated {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* ===== NOISE OVERLAY ===== */

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .hero { padding: 7rem 1rem 3rem; text-align: center; }
    .hero-title { font-size: 2.25rem; max-width: 100%; }
    .hero-subtitle { max-width: 100%; margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .grid-3 { grid-template-columns: 1fr; gap: 1rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 1rem; }
    .section-title { font-size: 1.6rem; }
    .nav-actions .btn-ghost { display: none; }
    .plan-amount { font-size: 2.75rem; }
    .app-container { padding: 4.5rem 1rem 3rem; }
    .cta-title { font-size: 32px; }
    .cta-subtitle { font-size: 16px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
