/* ============================================
   themusic.bio — Design System
   Aesthetic: "Analog Warmth"
   Vinyl warmth meets digital precision
   Syne (display) + Figtree (body)
   ============================================ */

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

/* --- Design Tokens --- */
:root {
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Figtree', sans-serif;

    /* Colors — warm light base */
    --color-bg: #faf9f6;
    --color-surface: #ffffff;
    --color-surface-raised: #f5f4f0;
    --color-text: #1c1917;
    --color-text-secondary: #78716c;
    --color-border: #e7e5e4;
    --color-accent: #ea580c;
    --color-accent-hover: #c2410c;
    --color-accent-soft: rgba(234, 88, 12, 0.08);
    --color-accent-glow: rgba(234, 88, 12, 0.25);
    --color-danger: #dc2626;
    --color-danger-hover: #b91c1c;
    --color-success-bg: #dcfce7;
    --color-success-text: #166534;
    --color-error-bg: #fef2f2;
    --color-error-text: #991b1b;
    --color-info-bg: #eff6ff;
    --color-info-text: #1e40af;

    /* Shape */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --tap-target: 44px;
    --max-width: 640px;
    --bottom-nav-height: 64px;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --transition: 0.2s var(--ease);
}

/* --- Base --- */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes eq {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* --- Platform Icons --- */
.platform-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    overflow: visible;
}

/* --- Flash Messages --- */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s var(--ease) both;
    border: 1px solid transparent;
}
.flash--success { background: var(--color-success-bg); color: var(--color-success-text); border-color: rgba(22, 101, 52, 0.15); }
.flash--error { background: var(--color-error-bg); color: var(--color-error-text); border-color: rgba(153, 27, 27, 0.15); }
.flash--info { background: var(--color-info-bg); color: var(--color-info-text); border-color: rgba(30, 64, 175, 0.15); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap-target);
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
    transition: all var(--transition);
    gap: 8px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn--primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px var(--color-accent-glow);
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    box-shadow: 0 4px 20px var(--color-accent-glow);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn--outline:hover {
    border-color: var(--color-text-secondary);
    background: var(--color-accent-soft);
}

.btn--danger {
    background: var(--color-danger);
    color: #fff;
    border-color: var(--color-danger);
}
.btn--danger:hover {
    background: var(--color-danger-hover);
    border-color: var(--color-danger-hover);
}

.btn--small {
    min-height: var(--tap-target);
    padding: 6px 14px;
    font-size: 13px;
}

.btn--icon {
    min-width: var(--tap-target);
    min-height: var(--tap-target);
    padding: 0;
}

/* --- Forms --- */
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--color-surface);
    color: var(--color-text);
    transition: all var(--transition);
    min-height: var(--tap-target);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.5;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.form-error { color: var(--color-danger); font-size: 13px; margin-top: 6px; font-weight: 500; }
.form-hint { color: var(--color-text-secondary); font-size: 13px; margin-top: 6px; display: block; }

.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.form-actions .btn { width: 100%; }

.input-prefix { display: flex; flex-direction: column; gap: 0; }
.input-prefix span {
    padding: 10px 16px;
    background: var(--color-surface-raised);
    border: 2px solid var(--color-border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
}
.input-prefix input {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
}

/* ============================================
   AUTH PAGES — dramatic dark immersion
   ============================================ */
.page-auth {
    --color-bg: #0c0a09;
    --color-surface: #1c1917;
    --color-text: #fafaf9;
    --color-text-secondary: #a8a29e;
    --color-border: #44403c;
    --color-accent: #fb923c;
    --color-accent-hover: #f97316;
    --color-accent-soft: rgba(251, 146, 60, 0.15);
    --color-accent-glow: rgba(251, 146, 60, 0.35);

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.page-auth::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.4;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s var(--ease) both;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.brand-mark {
    text-align: center;
    margin-bottom: 28px;
}

.eq-bars {
    display: flex;
    gap: 3px;
    height: 28px;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 14px;
}
.eq-bars span {
    width: 4px;
    border-radius: 2px;
    background: var(--color-accent);
}
.eq-bars span:nth-child(1) { height: 50%; animation: eq 1.2s ease-in-out infinite 0s; }
.eq-bars span:nth-child(2) { height: 75%; animation: eq 1.2s ease-in-out infinite 0.15s; }
.eq-bars span:nth-child(3) { height: 100%; animation: eq 1.2s ease-in-out infinite 0.3s; }
.eq-bars span:nth-child(4) { height: 65%; animation: eq 1.2s ease-in-out infinite 0.45s; }
.eq-bars span:nth-child(5) { height: 40%; animation: eq 1.2s ease-in-out infinite 0.6s; }

.brand-mark h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.03em;
}

.auth-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

.auth-form { text-align: left; }
.auth-form .btn { width: 100%; margin-top: 4px; }

.auth-hint {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-top: 24px;
    text-align: center;
    line-height: 1.5;
}

.auth-check-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--color-accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-check-icon svg { color: var(--color-accent); }

.auth-message {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 8px;
}

/* ============================================
   DASHBOARD — warm dark console
   ============================================ */
.page-dashboard {
    --color-bg: #0c0a09;
    --color-surface: #1c1917;
    --color-surface-raised: #292524;
    --color-text: #fafaf9;
    --color-text-secondary: #a8a29e;
    --color-border: #292524;
    --color-accent: #fb923c;
    --color-accent-hover: #f97316;
    --color-accent-soft: rgba(251, 146, 60, 0.1);
    --color-accent-glow: rgba(251, 146, 60, 0.3);
    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;
    --color-success-bg: rgba(34, 197, 94, 0.12);
    --color-success-text: #4ade80;
    --color-error-bg: rgba(239, 68, 68, 0.12);
    --color-error-text: #fca5a5;
    --color-info-bg: rgba(59, 130, 246, 0.12);
    --color-info-text: #93c5fd;
}

/* --- Dashboard Header --- */
.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(12, 10, 9, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--color-text);
    letter-spacing: -0.03em;
    transition: color var(--transition);
}
.nav-brand:hover { text-decoration: none; color: var(--color-accent); }

.nav-view-page {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    min-height: var(--tap-target);
    padding: 0 8px;
    transition: opacity var(--transition);
}
.nav-view-page:hover { text-decoration: none; opacity: 0.75; }

/* Desktop top nav */
.dashboard-nav-top {
    display: none;
    align-items: center;
    gap: 2px;
}
.dashboard-nav-top a {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.dashboard-nav-top a:hover {
    color: var(--color-text);
    background: var(--color-surface);
    text-decoration: none;
}

.nav-logout { display: inline; }
.nav-logout button {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    min-height: var(--tap-target);
}
.nav-logout button:hover { color: var(--color-text); background: var(--color-surface); }

.dashboard-mobile-only { display: flex; }

/* --- Bottom Tab Bar --- */
.dashboard-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: var(--bottom-nav-height);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(12, 10, 9, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    min-height: var(--tap-target);
    padding: 6px 0;
    transition: color var(--transition);
    position: relative;
}
.bottom-nav-form { flex: 1; display: flex; }
.bottom-nav-item:hover { text-decoration: none; }
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item--active { color: var(--color-accent); }
.bottom-nav-item--active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 0 0 3px 3px;
}

/* --- Dashboard Content --- */
.dashboard-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 24px);
    animation: fadeInUp 0.4s var(--ease) both;
}

.dashboard-welcome h1 {
    font-size: 24px;
    margin-bottom: 6px;
}
.dashboard-welcome > p {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
}
.dashboard-welcome > p a { font-weight: 600; }

.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.card {
    display: block;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition);
}
.card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}
.card:hover::after { opacity: 1; }

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-accent);
}
.card-icon svg { width: 20px; height: 20px; }

.card h2 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--color-text);
}
.card p { color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }

.form-container {
    max-width: var(--max-width);
    animation: fadeInUp 0.4s var(--ease) both;
}
.form-container h1 {
    font-size: 24px;
    margin-bottom: 28px;
}

/* ============================================
   LINKS MANAGEMENT
   ============================================ */
.links-container { max-width: 800px; }
.links-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}
.links-header h1 { font-size: 24px; }

.empty-state {
    color: var(--color-text-secondary);
    text-align: center;
    padding: 64px 0;
    font-size: 15px;
}

.link-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.link-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all var(--transition);
    animation: fadeInUp 0.4s var(--ease) both;
    animation-delay: calc(0.04s * var(--i, 0));
}
.link-item:hover { border-color: var(--color-accent); }
.link-item--disabled { opacity: 0.4; }
.link-item--dragging { opacity: 0.25; border-color: var(--color-accent); }

.link-item__handle {
    grid-row: 1;
    grid-column: 1;
    cursor: grab;
    color: var(--color-text-secondary);
    user-select: none;
    display: flex;
    align-items: center;
    font-size: 18px;
    opacity: 0.35;
    transition: opacity var(--transition);
}
.link-item:hover .link-item__handle { opacity: 0.7; }

.link-item__info {
    grid-row: 1;
    grid-column: 2;
    min-width: 0;
}
.link-item__info strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 15px;
}
.link-item__platform {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.link-item__platform .platform-icon { width: 18px; height: 18px; }
.link-item__url {
    display: block;
    color: var(--color-text-secondary);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.6;
}

.link-item__stats {
    grid-row: 1;
    grid-column: 3;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.link-item__actions {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    gap: 6px;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.link-item__reorder {
    display: flex;
    gap: 4px;
    margin-right: auto;
}

.inline-form { display: inline; }

#save-order-btn { margin-top: 16px; }

/* ============================================
   PUBLIC PAGE — the artist's stage
   ============================================ */
.public-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
}

.public-container {
    width: 100%;
    max-width: var(--max-width);
    text-align: center;
    animation: fadeInUp 0.5s var(--ease) both;
}

.public-avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid var(--color-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.public-avatar--placeholder {
    background: var(--color-accent);
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: transparent;
    box-shadow: 0 4px 24px var(--color-accent-glow);
}

.public-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.verified-badge {
    display: inline;
    cursor: help;
    color: var(--color-accent);
}
.verified-badge svg {
    display: inline;
    vertical-align: -2px;
}
.verified-badge--unverified {
    color: var(--color-text-secondary);
    opacity: 0.35;
}

.public-bio {
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    line-height: 1.65;
}

.public-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.public-links li {
    animation: fadeInUp 0.5s var(--ease-out) both;
    animation-delay: calc(0.06s * var(--i, 0));
}

.public-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    transition: all 0.2s var(--ease);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}
.public-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-accent);
    transform: scaleY(0);
    transition: transform 0.25s var(--ease);
}
.public-link:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.public-link:hover::before { transform: scaleY(1); }

.public-link__platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    flex-shrink: 0;
    min-width: 100px;
    text-align: left;
}
.public-link__platform .platform-icon { width: 22px; height: 22px; }
.public-link__title { font-weight: 600; }

.public-footer {
    margin-top: 56px;
    font-size: 13px;
    color: var(--color-text-secondary);
}
.public-footer a {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    transition: color var(--transition);
}
.public-footer a:hover { color: var(--color-accent); text-decoration: none; }

/* --- Platform Colors --- */
.public-link[data-platform="spotify"] .public-link__platform { color: #1DB954; }
.public-link[data-platform="spotify"]:hover { border-color: #1DB954; }
.public-link[data-platform="spotify"]::before { background: #1DB954; }

.public-link[data-platform="apple_music"] .public-link__platform { color: #FC3C44; }
.public-link[data-platform="apple_music"]:hover { border-color: #FC3C44; }
.public-link[data-platform="apple_music"]::before { background: #FC3C44; }

.public-link[data-platform="youtube"] .public-link__platform,
.public-link[data-platform="youtube_music"] .public-link__platform { color: #FF0000; }
.public-link[data-platform="youtube"]:hover,
.public-link[data-platform="youtube_music"]:hover { border-color: #FF0000; }
.public-link[data-platform="youtube"]::before,
.public-link[data-platform="youtube_music"]::before { background: #FF0000; }

.public-link[data-platform="soundcloud"] .public-link__platform { color: #FF5500; }
.public-link[data-platform="soundcloud"]:hover { border-color: #FF5500; }
.public-link[data-platform="soundcloud"]::before { background: #FF5500; }

.public-link[data-platform="tidal"] .public-link__platform { color: #000000; }

.public-link[data-platform="deezer"] .public-link__platform { color: #A238FF; }
.public-link[data-platform="deezer"]:hover { border-color: #A238FF; }
.public-link[data-platform="deezer"]::before { background: #A238FF; }

.public-link[data-platform="bandcamp"] .public-link__platform { color: #1DA0C3; }
.public-link[data-platform="bandcamp"]:hover { border-color: #1DA0C3; }
.public-link[data-platform="bandcamp"]::before { background: #1DA0C3; }

.public-link[data-platform="amazon_music"] .public-link__platform { color: #25D1DA; }
.public-link[data-platform="amazon_music"]:hover { border-color: #25D1DA; }
.public-link[data-platform="amazon_music"]::before { background: #25D1DA; }

/* ============================================
   THEME: Dark
   ============================================ */
.theme-dark {
    --color-bg: #0c0a09;
    --color-surface: #1c1917;
    --color-text: #fafaf9;
    --color-text-secondary: #a8a29e;
    --color-border: #292524;
    --color-accent: #fb923c;
    --color-accent-glow: rgba(251, 146, 60, 0.2);
}
.theme-dark .public-avatar {
    border-color: #44403c;
}
.theme-dark .public-avatar--placeholder {
    box-shadow: 0 4px 32px rgba(251, 146, 60, 0.25);
}
.theme-dark .public-link {
    border-color: var(--color-border);
    background: var(--color-surface);
}
.theme-dark .public-link:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.theme-dark .public-link[data-platform="tidal"] .public-link__platform { color: #fafaf9; }

/* ============================================
   THEME: Minimal
   ============================================ */
.theme-minimal {
    --color-accent: #1c1917;
    --color-accent-glow: rgba(28, 25, 23, 0.1);
}
.theme-minimal .public-link {
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    padding: 14px 0;
}
.theme-minimal .public-link::before { display: none; }
.theme-minimal .public-link:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-text);
}
.theme-minimal .public-link__platform {
    color: var(--color-text-secondary) !important;
}
.theme-minimal .public-avatar {
    border: none;
    box-shadow: none;
}
.theme-minimal .public-avatar--placeholder {
    background: var(--color-text);
    box-shadow: none;
}
.theme-minimal .public-footer a { color: var(--color-text); }

/* ============================================
   480px — large phones
   ============================================ */
@media (min-width: 480px) {
    .input-prefix {
        flex-direction: row;
        align-items: center;
    }
    .input-prefix span {
        border-bottom: 2px solid var(--color-border);
        border-right: none;
        border-radius: var(--radius-sm) 0 0 var(--radius-sm);
        padding: 12px 16px;
    }
    .input-prefix input {
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    }
    .form-actions { flex-direction: row; }
    .form-actions .btn { width: auto; }
    .auth-card { padding: 48px 36px; }
    .brand-mark h1 { font-size: 28px; }
}

/* ============================================
   768px — tablets
   ============================================ */
@media (min-width: 768px) {
    .dashboard-bottom-nav { display: none; }
    .dashboard-nav-top { display: flex; }
    .dashboard-mobile-only { display: none !important; }

    .dashboard-main {
        padding: 36px 24px;
        padding-bottom: 36px;
    }
    .dashboard-header { padding: 0 24px; }

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

    .link-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 18px;
    }
    .link-item__info { flex: 1; min-width: 0; }
    .link-item__actions {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        flex-wrap: nowrap;
        width: auto;
        flex-shrink: 0;
    }
    .link-item__reorder { display: none; }
    .links-header h1 { font-size: 26px; }

    .form-group input,
    .form-group textarea,
    .form-group select { font-size: 15px; }

    .public-name { font-size: 32px; }
}

/* ============================================
   1024px — desktop
   ============================================ */
@media (min-width: 1024px) {
    .dashboard-main { max-width: 900px; }
    .public-page { padding: 64px 24px; }
    .public-avatar { width: 116px; height: 116px; }
    .public-name { font-size: 36px; }
}
