:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #ec4899;
    --accent: #f59e0b;
    --bg-dark: #0f0f23;
    --bg-darker: #080816;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1e1e35;
    --bg-surface: #16162a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }

.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); }

/* ===== NAV ===== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    height: 64px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(8, 8, 22, 0.72);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.4s, box-shadow 0.4s;
}

.landing-nav.scrolled {
    background: rgba(8, 8, 22, 0.92);
    box-shadow: 0 1px 40px rgba(0,0,0,0.3);
}

.landing-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-mood { color: var(--text-primary); }
.brand-tr {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 14px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-radius: 10px;
    transition: var(--transition);
    letter-spacing: -0.1px;
}

.nav-link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }

.nav-btn-primary {
    padding: 9px 20px;
    background: var(--text-primary);
    color: var(--bg-darker);
    font-weight: 700;
    font-size: 13px;
    border-radius: 10px;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.nav-btn-primary:hover { background: #fff; color: var(--bg-darker); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,255,255,0.15); }

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.lang-switch { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 6px;
    min-width: 160px;
    display: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 100;
}

.lang-dropdown.active { display: block; }

.lang-option {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: 10px;
    transition: var(--transition);
}

.lang-option:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }
.lang-option.active { color: var(--primary-light); font-weight: 600; }

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 22, 0.96);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    padding: 14px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 12px;
    font-size: 15px;
}

.mobile-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }

.mobile-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
}

.mobile-lang a {
    padding: 6px 14px !important;
    font-size: 13px !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
}

.mobile-lang a.active { border-color: var(--primary); color: var(--primary-light); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 30% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 80% 60%, rgba(236, 72, 153, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 70%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px; height: 400px;
    background: rgba(99, 102, 241, 0.2);
    top: 5%; left: 15%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px; height: 300px;
    background: rgba(236, 72, 153, 0.15);
    top: 40%; right: 10%;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 250px; height: 250px;
    background: rgba(245, 158, 11, 0.10);
    bottom: 10%; left: 40%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content { max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

.hero-badge-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 460px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--text-primary);
    color: var(--bg-darker);
    font-weight: 700;
    font-size: 15px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    letter-spacing: 0.1px;
}

.btn-hero-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.15);
    color: var(--bg-darker);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.12);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
}

/* Hero Visual — Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.phone-mockup {
    width: 260px;
    background: linear-gradient(145deg, #1a1a2e, #16162a);
    border-radius: 36px;
    border: 2px solid rgba(255,255,255,0.08);
    padding: 12px;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 0 80px rgba(99,102,241,0.08);
    animation: phoneFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.phone-screen {
    background: var(--bg-darker);
    border-radius: 24px;
    padding: 16px;
    overflow: hidden;
    min-height: 420px;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 0 4px;
}

.phone-status-bar i { font-size: 10px; margin-left: 4px; }

.phone-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.phone-avatar-small {
    width: 24px; height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
}

.phone-artwork {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(236,72,153,0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
}

.phone-artwork i {
    font-size: 40px;
    color: rgba(255,255,255,0.6);
    z-index: 1;
}

.phone-artwork-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.4) 0%, transparent 70%);
    animation: artworkGlow 4s ease-in-out infinite;
}

@keyframes artworkGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.phone-track-info { margin-bottom: 14px; text-align: center; }

.phone-track-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.phone-track-artist {
    font-size: 12px;
    color: var(--text-muted);
}

.phone-platforms {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
}

.phone-platform {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.phone-platform:nth-child(1) { color: #1DB954; }
.phone-platform:nth-child(2) { color: #fc3c44; }
.phone-platform:nth-child(3) { color: #FF0000; }
.phone-platform:nth-child(4) { color: #A238FF; }

.phone-wave {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 24px;
}

.wave-bar {
    width: 3px;
    background: var(--primary);
    border-radius: 3px;
    animation: waveAnim 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 20px; animation-delay: 0.15s; }
.wave-bar:nth-child(5) { height: 16px; animation-delay: 0.3s; }
.wave-bar:nth-child(6) { height: 24px; animation-delay: 0.1s; }
.wave-bar:nth-child(7) { height: 12px; animation-delay: 0.25s; }
.wave-bar:nth-child(8) { height: 18px; animation-delay: 0.05s; }
.wave-bar:nth-child(9) { height: 8px; animation-delay: 0.35s; }
.wave-bar:nth-child(10) { height: 14px; animation-delay: 0.2s; }
.wave-bar:nth-child(11) { height: 20px; animation-delay: 0.15s; }
.wave-bar:nth-child(12) { height: 10px; animation-delay: 0.3s; }

@keyframes waveAnim {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Floating Metrics */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 3;
    animation: floatCard 5s ease-in-out infinite;
}

.floating-card-1 { top: 8%; left: -20px; animation-delay: 0s; }
.floating-card-2 { top: 55%; right: -10px; animation-delay: -2s; }
.floating-card-3 { bottom: 8%; left: 0; animation-delay: -4s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.fc-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,0.15);
    border-radius: 10px;
    color: var(--primary-light);
    font-size: 14px;
}

.fc-icon-green { background: rgba(34,197,94,0.15); color: #22c55e; }
.fc-icon-pink { background: rgba(236,72,153,0.15); color: #ec4899; }

.fc-info { display: flex; flex-direction: column; }
.fc-value { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--text-primary); letter-spacing: -0.5px; }
.fc-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.3px; }

/* Hero Scroll */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 56px; }
}

/* ===== PLATFORMS STRIP ===== */
.platforms-strip {
    padding: 48px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}

.platforms-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.platforms-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.platform-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.platform-logo:hover { opacity: 1; }
.platform-logo i { font-size: 20px; }

/* ===== SECTION COMMON ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* ===== FEATURES — BENTO GRID ===== */
.features {
    padding: 120px 0;
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bento-card {
    position: relative;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 32px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.bento-card-lg {
    grid-column: span 2;
}

.bento-glow {
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.bento-card:hover .bento-glow { opacity: 1; }
.bento-glow-indigo { background: rgba(99,102,241,0.2); }
.bento-glow-pink { background: rgba(236,72,153,0.2); }

.bento-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 14px;
    color: var(--primary-light);
    font-size: 20px;
    margin-bottom: 20px;
}

.bento-icon-pink { background: rgba(236,72,153,0.1); border-color: rgba(236,72,153,0.12); color: #f472b6; }
.bento-icon-amber { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.12); color: #fbbf24; }
.bento-icon-green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.12); color: #4ade80; }
.bento-icon-teal { background: rgba(20,184,166,0.1); border-color: rgba(20,184,166,0.12); color: #2dd4bf; }
.bento-icon-violet { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.12); color: #a78bfa; }

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Bento previews */
.bento-preview {
    margin-top: 24px;
    padding: 16px;
    background: rgba(0,0,0,0.25);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.04);
}

.bento-link-demo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--text-secondary);
}

.bld { color: var(--text-muted); }
.bld-code { color: var(--primary-light); font-weight: 700; }
.bld-arrow { color: var(--text-muted); font-size: 12px; margin: 0 4px; }
.bld-platforms { display: flex; gap: 8px; margin-left: auto; }
.bld-platforms i { font-size: 18px; opacity: 0.5; }
.bld-platforms i:nth-child(1) { color: #1DB954; }
.bld-platforms i:nth-child(2) { color: #fc3c44; }
.bld-platforms i:nth-child(3) { color: #FF0000; }

/* Mini chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.mc-bar {
    flex: 1;
    height: var(--h, 50%);
    background: rgba(236,72,153,0.2);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-bar-active {
    background: linear-gradient(to top, rgba(236,72,153,0.3), rgba(236,72,153,0.6));
    box-shadow: 0 0 12px rgba(236,72,153,0.3);
}

.bento-card:hover .mc-bar {
    animation: barGrow 0.8s ease-out forwards;
}

@keyframes barGrow {
    from { height: 10%; }
    to { height: var(--h, 50%); }
}

/* ===== HOW IT WORKS — TIMELINE ===== */
.how-it-works {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 50%, var(--bg-dark) 100%);
}

.timeline {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(99,102,241,0.3) 20%,
        rgba(99,102,241,0.3) 80%,
        transparent);
}

.timeline-step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    position: relative;
}

.ts-number {
    flex-shrink: 0;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 2px solid rgba(99,102,241,0.2);
    border-radius: 18px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-light);
    position: relative;
    z-index: 1;
}

.ts-card {
    flex: 1;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 28px;
    transition: all 0.4s;
}

.ts-card:hover {
    border-color: rgba(99,102,241,0.15);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.ts-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,0.1);
    border-radius: 12px;
    color: var(--primary-light);
    font-size: 16px;
    margin-bottom: 14px;
}

.ts-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.ts-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== ARTISTS SHOWCASE ===== */
.artists-showcase {
    padding: 120px 0 80px;
}

/* ===== CTA ===== */
.cta-section {
    padding: 40px 0 120px;
}

.cta-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.04));
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: 28px;
    padding: 80px 40px;
}

.cta-bg-orb {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    top: -200px; right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.landing-footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand-col .nav-brand { display: inline-block; margin-bottom: 12px; }

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links-col h4 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links-col a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-links-col a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-copy { color: var(--text-muted); font-size: 13px; }
.footer-powered { color: var(--text-muted); font-size: 12px; }
.footer-powered a { color: var(--primary-light); }

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LOGIN PAGE ===== */
.page-login {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    animation: fadeUp 0.5s ease;
}

.login-card h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.login-card .subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.login-moodtrue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 24px;
}

.login-moodtrue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.login-footer {
    color: var(--text-muted);
    font-size: 14px;
}

.login-footer a { color: var(--primary-light); font-weight: 500; }

/* ===== APPLY PAGE ===== */
.page-apply { padding-top: 80px; }

.apply-section {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 24px;
}

.apply-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    animation: fadeUp 0.5s ease;
}

.apply-card h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
}

.apply-card .subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 36px;
    text-align: center;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-label .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.form-error.visible { display: block; }

.form-success {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.form-success.visible { display: block; }

.form-success i {
    font-size: 48px;
    color: #22c55e;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-secondary);
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #fca5a5; }
.alert-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); color: #86efac; }

/* ===== DASHBOARD ===== */
.dashboard-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center;
    background: rgba(8, 8, 22, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dashboard-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.dashboard-tabs {
    display: flex;
    gap: 2px;
}

.dashboard-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-tab i { font-size: 13px; }
.dashboard-tab:hover { color: var(--text-secondary); background: rgba(255, 255, 255, 0.04); }
.dashboard-tab.active { color: var(--primary-light); background: rgba(99,102,241,0.1); }

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,0.1);
}

.dashboard-avatar-placeholder {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(99,102,241,0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light); font-size: 12px;
}

.dashboard-username {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.dashboard-logout {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}
.dashboard-logout:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

/* Mobile bottom nav */
.dashboard-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 56px;
    background: rgba(8, 8, 22, 0.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    justify-content: space-around;
    align-items: center;
}

.dmn-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
}
.dmn-item.active { color: var(--primary-light); background: rgba(99,102,241,0.12); }

.dashboard-body {
    padding-top: 76px;
    min-height: 100vh;
    padding-bottom: 24px;
}

.dashboard-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.dashboard-header {
    margin-bottom: 28px;
}

.dashboard-header h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Welcome */
.dash-welcome {
    margin-bottom: 28px;
}

.dash-welcome-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.dash-welcome-sub {
    color: var(--text-muted);
    font-size: 14px;
}

/* URL Banner */
.dash-url-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.04));
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    flex-wrap: wrap;
}

.dash-url-banner-bg {
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dash-url-info { position: relative; z-index: 1; flex: 1; min-width: 200px; }

.dash-url-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.dash-url-value {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-all;
}

.dash-url-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dash-url-copy, .dash-url-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.dash-url-copy {
    background: var(--primary);
    color: #fff;
}
.dash-url-copy:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

.dash-url-visit {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.08);
}
.dash-url-visit:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* Stats Grid */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.dash-stat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition);
}

.dash-stat-card:hover {
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dash-stat-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

.dash-stat-icon-indigo { background: rgba(99,102,241,0.12); color: var(--primary-light); }
.dash-stat-icon-pink { background: rgba(236,72,153,0.12); color: #f472b6; }
.dash-stat-icon-amber { background: rgba(245,158,11,0.12); color: #fbbf24; }
.dash-stat-icon-green { background: rgba(34,197,94,0.12); color: #4ade80; }

.dash-stat-body { flex: 1; min-width: 0; }

.dash-stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.dash-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.dash-stat-badge {
    position: absolute;
    top: 12px; right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-green { background: rgba(34,197,94,0.12); color: #4ade80; }
.badge-red { background: rgba(239,68,68,0.12); color: #f87171; }

/* Dashboard Cards */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dash-card-header h2 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.dash-card-badge {
    padding: 4px 10px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: 6px;
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 600;
}

/* 2-col row */
.dash-row-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dash-row-2 > .dash-card { margin-bottom: 0; }

/* Chart */
.dash-chart-wrap {
    position: relative;
    height: 180px;
}

.dash-chart-wrap-lg {
    height: 260px;
}

.dash-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.dash-empty-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.dash-empty-chart i { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }
.dash-empty-chart p { font-size: 14px; }

/* Insights */
.dash-insight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.dash-insight-item:last-of-type { border-bottom: none; }

.dash-insight-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(245,158,11,0.12);
    color: #fbbf24;
    border-radius: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.dash-insight-icon-pink { background: rgba(236,72,153,0.12); color: #f472b6; }
.dash-insight-icon-teal { background: rgba(20,184,166,0.12); color: #2dd4bf; }

.dash-insight-body { flex: 1; min-width: 0; }

.dash-insight-label {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-insight-value {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-insight-meta {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.dash-insight-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: 10px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}
.dash-insight-link:hover { background: rgba(99,102,241,0.12); color: var(--primary-light); }

/* Links Table */
.dash-links-table { display: flex; flex-direction: column; gap: 8px; }

.dash-link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    transition: var(--transition);
}

.dash-link-row:hover { border-color: rgba(255,255,255,0.08); }

.dash-link-rank {
    width: 24px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    flex-shrink: 0;
}

.dash-link-art {
    width: 44px; height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.dash-link-art-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 16px;
}

.dash-link-info { flex: 1; min-width: 0; }
.dash-link-info h4 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-link-sub { font-size: 12px; color: var(--text-muted); }

.dash-link-clicks {
    text-align: right;
    flex-shrink: 0;
}

.dash-link-click-val {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    color: var(--text-primary);
}

.dash-link-click-label {
    font-size: 11px;
    color: var(--text-muted);
}

.dash-link-copy-sm {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.dash-link-copy-sm:hover { background: rgba(99,102,241,0.1); color: var(--primary-light); border-color: rgba(99,102,241,0.15); }

/* Activity list */
.dash-activity-list { display: flex; flex-direction: column; }

.dash-activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dash-activity-row:last-child { border-bottom: none; }

.dash-activity-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}

.dash-activity-info { flex: 1; min-width: 0; }
.dash-activity-title { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-activity-meta { display: block; font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.dash-activity-time {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Empty states */
.dash-empty-state {
    text-align: center;
    padding: 40px 20px;
}
.dash-empty-state i { font-size: 36px; color: var(--text-muted); opacity: 0.4; margin-bottom: 12px; display: block; }
.dash-empty-state p { color: var(--text-muted); font-size: 14px; }

.dash-empty-state-sm {
    padding: 24px 16px;
    text-align: center;
}
.dash-empty-state-sm p { color: var(--text-muted); font-size: 13px; }

/* Breakdown bars (analytics) */
.dash-breakdown-list { display: flex; flex-direction: column; gap: 14px; }

.dash-breakdown-row { display: flex; flex-direction: column; gap: 6px; }

.dash-breakdown-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-breakdown-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.dash-breakdown-meta {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.dash-breakdown-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
    overflow: hidden;
}

.dash-breakdown-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
}

.dash-fill-pink { background: linear-gradient(90deg, #ec4899, #f472b6); }
.dash-fill-teal { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.dash-fill-amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dash-fill-purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

/* ===== MUSIC PAGE ===== */
.dash-music-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dash-music-desc {
    color: var(--text-muted);
    font-size: 14px;
}

.dash-fetch-status {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}
.dash-fetch-success { background: rgba(34,197,94,0.1); color: #22c55e; }
.dash-fetch-info { background: rgba(99,102,241,0.1); color: #a5b4fc; }
.dash-fetch-error { background: rgba(239,68,68,0.1); color: #ef4444; }

.dash-music-empty {
    text-align: center;
    padding: 60px 20px !important;
}
.dash-music-empty i { font-size: 48px; color: var(--text-muted); opacity: 0.3; margin-bottom: 16px; display: block; }
.dash-music-empty h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.dash-music-empty p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.dash-music-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dash-music-count {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-music-moods {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dash-mood-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    white-space: nowrap;
}

/* Music list (row-based) */
.dash-music-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.dash-music-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: background 0.15s;
}
.dash-music-item:hover { background: rgba(255,255,255,0.02); }

.dash-music-rank {
    width: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.dash-music-art {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.dash-music-art-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 16px;
}

.dash-music-info {
    flex: 1;
    min-width: 0;
}
.dash-music-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-music-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.dash-mood-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    white-space: nowrap;
    flex-shrink: 0;
}
.dash-mood-text { display: inline; }

.dash-music-platforms {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.dash-platform-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.15s, transform 0.15s;
    text-decoration: none;
}
.dash-platform-icon:hover { opacity: 1; transform: scale(1.1); }
.dash-platform-apple { background: rgba(255,255,255,0.08); }
.dash-platform-spotify { background: rgba(30,215,96,0.15); color: #1ed760; }
.dash-platform-youtube { background: rgba(255,0,0,0.12); color: #ff4444; }

.dash-music-stats {
    flex-shrink: 0;
}
.dash-music-clicks {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.dash-music-copy {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}
.dash-music-copy:hover { border-color: var(--primary); color: var(--primary); }

/* Mood distribution grid (overview) */
.dash-mood-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-mood-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-mood-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-mood-item-emoji {
    font-size: 18px;
    flex-shrink: 0;
}

.dash-mood-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.dash-mood-item-count {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Profile sections */
.dash-profile-section {
    font-size: 15px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-profile-section::before {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    order: 2;
}

.dash-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.dash-profile-grid .form-label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dash-profile-grid .form-label i {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
}

/* ===== THEME CUSTOMIZATION (Dashboard) ===== */
.dash-profile-subsection {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    margin-top: 4px;
}

.theme-presets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.theme-preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}
.theme-preset-btn:hover { border-color: var(--border-light); }
.theme-preset-btn.active { border-color: var(--primary); background: var(--primary-glow); }

.theme-preset-preview {
    display: flex;
    gap: 3px;
}
.theme-preset-preview span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

.theme-preset-name {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.theme-custom-section {
    margin-bottom: 20px;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-input {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
    background: var(--bg-surface);
    flex-shrink: 0;
}
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch { border: none; border-radius: 5px; }

.color-hex {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
    text-transform: uppercase;
}

/* Theme Live Preview */
.theme-preview {
    margin: 20px 0;
}

.theme-preview-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-preview-frame {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px 24px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 200px;
}

.theme-preview-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--primary);
    margin: 0 auto 12px;
}

.theme-preview-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.theme-preview-song {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    text-align: left;
}

.theme-preview-song-art {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--primary);
    opacity: 0.3;
    flex-shrink: 0;
}

.theme-preview-song-text { flex: 1; }
.theme-preview-song-text .t-line {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-bottom: 4px;
    width: 80%;
}
.theme-preview-song-text .t-line.short { width: 50%; }

@media (max-width: 600px) {
    .theme-presets {
        grid-template-columns: repeat(3, 1fr);
    }
    .color-input-wrapper {
        flex-direction: row;
    }
}

/* ===== THEME PAGE LAYOUT ===== */
.theme-page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.theme-settings-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.theme-section {
    margin-bottom: 28px;
}

.theme-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.theme-section-title i {
    color: var(--text-muted);
    font-size: 13px;
}

.theme-color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.theme-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.theme-save-btn {
    width: 100%;
    margin-top: 8px;
}

/* Layout Options (header style selector) */
.theme-subsection {
    margin-bottom: 0;
}
.layout-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.layout-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}
.layout-option:hover {
    border-color: var(--text-muted);
}
.layout-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

/* Layout option mini-previews */
.layout-option-preview {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.lo-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    flex-shrink: 0;
}
.lo-avatar.small {
    width: 14px;
    height: 14px;
}
.lo-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.lo-line {
    height: 4px;
    background: var(--text-muted);
    opacity: 0.3;
    border-radius: 2px;
    width: 100%;
}
.lo-line.short { width: 60%; }
.lo-line.tiny { height: 3px; width: 80%; }
.lo-line.tiny.short { width: 50%; }
.lo-card {
    height: 6px;
    background: var(--text-muted);
    opacity: 0.2;
    border-radius: 3px;
    width: 100%;
}

/* Stacked preview */
.lo-stacked {
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.lo-stacked .lo-lines { align-items: center; }
.lo-stacked .lo-line { width: 60%; }
.lo-stacked .lo-line.short { width: 40%; }
.lo-stacked .lo-cards {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 70%;
}

/* Two-column preview */
.lo-two-col {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.lo-col-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 0 0 36%;
}
.lo-col-right {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

/* Section Sortable (drag-drop) */
.section-sortable {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.section-sort-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: default;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    user-select: none;
}
.section-sort-item:hover {
    border-color: var(--text-muted);
}
.section-sort-item.dragging {
    opacity: 0.7;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    border-color: var(--primary);
    z-index: 10;
}
.sort-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 14px;
    padding: 2px;
}
.sort-handle:active {
    cursor: grabbing;
}
.sort-icon {
    color: var(--text-secondary);
    font-size: 13px;
    width: 16px;
    text-align: center;
}
.sort-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}
.sort-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
}
.sort-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
    cursor: pointer;
}
.sort-toggle-text {
    white-space: nowrap;
}
.section-sort-placeholder {
    height: 42px;
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    opacity: 0.4;
}

/* Preview inner layout */
.tp-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Stacked (centered) preview */
.tp-inner.tp-stacked {
    align-items: center;
    text-align: center;
}
.tp-inner.tp-stacked .tp-col-profile,
.tp-inner.tp-stacked .tp-col-songs {
    width: 100%;
}
.tp-inner.tp-stacked .theme-preview-avatar {
    margin: 0 auto 10px;
}
.tp-inner.tp-stacked .tp-socials {
    justify-content: center;
}

/* Split (2-column) preview */
.tp-inner.tp-split {
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
}
.tp-inner.tp-split .tp-col-profile {
    flex: 0 0 110px;
    text-align: center;
}
.tp-inner.tp-split .tp-col-profile .theme-preview-avatar {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
}
.tp-inner.tp-split .tp-col-profile .theme-preview-name {
    font-size: 11px;
    margin-bottom: 4px;
    word-break: break-word;
}
.tp-inner.tp-split .tp-col-profile .theme-preview-bio {
    font-size: 9px;
    margin-bottom: 6px;
}
.tp-inner.tp-split .tp-col-profile .tp-socials {
    gap: 4px;
    justify-content: center;
}
.tp-inner.tp-split .tp-col-profile .tp-social-dot {
    width: 6px;
    height: 6px;
}
.tp-inner.tp-split .tp-col-songs {
    flex: 1;
    min-width: 0;
}
.tp-inner.tp-split .tp-col-songs .theme-preview-song {
    padding: 8px;
    gap: 8px;
}
.tp-inner.tp-split .tp-col-songs .theme-preview-song-art {
    width: 28px;
    height: 28px;
}
.tp-inner.tp-split-reverse .tp-col-profile {
    order: 2;
}
.tp-inner.tp-split-reverse .tp-col-songs {
    order: 1;
}

/* Preview socials dots */
.tp-socials {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
}
.tp-social-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
}

.theme-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}
.theme-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}
.theme-toggle-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* Professional switch toggle */
.theme-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.theme-switch input {
    display: none;
}
.theme-switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.theme-switch-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}
.theme-switch input:checked + .theme-switch-slider {
    background: var(--primary);
}
.theme-switch input:checked + .theme-switch-slider::after {
    transform: translateX(20px);
    background: #fff;
}
.theme-switch-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.theme-preview-panel {
    position: relative;
}

.theme-preview-sticky {
    position: sticky;
    top: 90px;
}

.theme-preview-bio {
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.theme-preview-link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.7;
}
.theme-preview-link-btn .t-line {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.theme-preview-visit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
}
.theme-preview-visit:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ===== COLLAPSIBLE PROFILE SECTIONS ===== */
.dash-section-toggle {
    cursor: pointer;
    user-select: none;
}
.dash-section-toggle:hover {
    color: var(--primary);
}

.dash-toggle-icon {
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    margin-left: auto;
}

.dash-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.dash-collapsible.expanded {
    max-height: 800px;
    opacity: 1;
}

/* ===== COMPACT ACTIVITY LIST ===== */
.dash-activity-compact .dash-activity-row {
    padding: 8px 0;
}
.dash-activity-compact .dash-activity-time {
    font-size: 11px;
    min-width: 32px;
    text-align: right;
}

/* Mood + Activity side by side row */
.dash-mood-activity-row {
    grid-template-columns: 1.2fr 0.8fr;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-header h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

/* ===== LINKS LIST ===== */
.link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
}

.link-item:hover { border-color: var(--border-light); }

.link-artwork {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-card);
}

.link-info { flex: 1; min-width: 0; }
.link-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-info .link-urls { display: flex; gap: 12px; flex-wrap: wrap; }

.link-url {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.link-url:hover { background: rgba(99, 102, 241, 0.1); color: var(--primary-light); }

.link-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.link-actions {
    display: flex;
    gap: 8px;
}

.link-actions button, .link-actions a {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.link-actions button:hover, .link-actions a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* ===== ARTIST PUBLIC PAGE ===== */
.artist-page {
    min-height: 100vh;
    padding: 48px 24px 0;
    display: flex;
    flex-direction: column;
}

.artist-header {
    text-align: center;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.artist-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    margin-bottom: 20px;
}

.artist-header h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.artist-header .bio {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.artist-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.artist-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition);
}

.artist-socials a:hover { background: var(--primary-glow); color: var(--primary-light); border-color: rgba(99, 102, 241, 0.3); }

.artist-songs-list {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 0;
}

.song-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.song-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.song-artwork {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-surface);
}

.song-info { flex: 1; }
.song-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.song-info p { color: var(--text-secondary); font-size: 13px; }

.song-play-icon {
    color: var(--primary-light);
    font-size: 18px;
}

/* ===== SONG PAGE ===== */
.song-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 0;
}

.song-page-card {
    text-align: center;
    max-width: 420px;
    width: 100%;
    animation: fadeUp 0.5s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.song-page .public-footer {
    flex-shrink: 0;
    width: 100%;
    max-width: 420px;
}

.song-page-artwork {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.song-page-card h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.song-page-card .artist-link {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    display: block;
}

.platform-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    text-decoration: none;
}

.platform-link:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    color: var(--text-primary);
}

.platform-link i { font-size: 22px; width: 28px; text-align: center; }
.platform-link .fa-spotify { color: #1DB954; }
.platform-link .fa-apple { color: #fc3c44; }
.platform-link .fa-youtube { color: #FF0000; }

/* ===== PUBLIC FOOTER (artist & song pages) ===== */
.public-footer {
    width: 100%;
    padding: 24px 16px 16px;
    margin-top: 32px;
}

.public-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.public-footer-brand {
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.public-footer-brand:hover { opacity: 0.7; }

.public-footer-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.public-footer-links a {
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.public-footer-links a:hover { opacity: 1; }

.public-footer-dot {
    color: rgba(255,255,255,0.1);
    font-size: 11px;
    user-select: none;
}

.public-footer-copy {
    display: none;
}

/* ===== CHART CONTAINER ===== */
.chart-container {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeUp 0.3s ease;
}

.modal h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* ===== ERROR PAGES ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.error-page h1 {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.error-page h2 { font-size: 24px; margin-bottom: 12px; }
.error-page p { color: var(--text-secondary); margin-bottom: 32px; }

/* ===== SEARCH RESULTS ===== */
.search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-surface);
    display: none;
}

.search-results.active { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255, 255, 255, 0.04); }

.search-result-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.search-result-item .sr-info { flex: 1; }
.search-result-item .sr-title { font-size: 14px; font-weight: 600; }
.search-result-item .sr-artist { font-size: 12px; color: var(--text-muted); }

/* ===== COPY TOOLTIP ===== */
.copy-tooltip {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #22c55e;
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.copy-tooltip.visible { transform: translateX(-50%) translateY(0); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== LOADING ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; margin: 0 auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { min-height: 400px; margin-top: 20px; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-row-2 { grid-template-columns: 1fr; }
    .dash-mood-activity-row { grid-template-columns: 1fr; }
    .theme-page-layout { grid-template-columns: 1fr; }
    .theme-preview-sticky { position: static; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }

    .hero { padding: 90px 0 40px; min-height: auto; }
    .hero-visual { min-height: 360px; }
    .floating-card-1, .floating-card-3 { display: none; }
    .floating-card-2 { right: 0; top: auto; bottom: 5%; }

    .platforms-logos { gap: 20px; }
    .platform-logo { font-size: 12px; }

    .features { padding: 80px 0; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card-lg { grid-column: span 1; }

    .how-it-works { padding: 80px 0; }
    .timeline-line { left: 26px; }
    .timeline-step { gap: 20px; }
    .ts-number { width: 48px; height: 48px; font-size: 16px; }

    .cta-section { padding: 40px 0 80px; }
    .cta-card { padding: 48px 24px; border-radius: 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .login-card { padding: 36px 24px; margin: 24px; }
    .apply-card { padding: 36px 24px; }

    .dashboard-tabs { display: none; }
    .dashboard-mobile-nav { display: flex; }
    .dashboard-body { padding-top: 70px; padding-bottom: 72px; }
    .dashboard-content { padding: 0 16px; }
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .dash-url-banner { flex-direction: column; align-items: flex-start; }
    .dash-url-actions { width: 100%; }
    .dash-url-copy, .dash-url-visit { flex: 1; justify-content: center; }

    .dash-music-item { gap: 8px; padding: 10px 12px; }
    .dash-music-art { width: 40px; height: 40px; }
    .dash-mood-text { display: none; }
    .dash-music-platforms { gap: 4px; }
    .dash-platform-icon { width: 24px; height: 24px; font-size: 11px; }
    .dash-profile-grid { grid-template-columns: 1fr; }
    .theme-color-grid { grid-template-columns: 1fr; }
    .theme-options-grid { grid-template-columns: 1fr; }
    .theme-page-layout { grid-template-columns: 1fr; }
    .theme-preview-sticky { position: static; }
    .layout-options { grid-template-columns: 1fr; gap: 8px; }
    .layout-option { flex-direction: row; padding: 10px 12px; }
    .layout-option-preview { width: 60px; height: 30px; }

    .link-item { flex-direction: column; align-items: flex-start; }
    .link-stats { margin-top: 8px; }

    .song-page-artwork { width: 240px; height: 240px; }

    .modal { padding: 24px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; letter-spacing: -1px; }
    .hero-subtitle { font-size: 15px; }
    .phone-mockup { width: 220px; }
    .section-title { font-size: 26px; }
    .timeline-step { flex-direction: column; }
    .timeline-line { display: none; }
    .platforms-strip { padding: 32px 0; }
    .platforms-logos { gap: 12px; }
    .dash-stats { grid-template-columns: 1fr; }
    .dash-stat-value { font-size: 22px; }
    .dash-link-row { flex-wrap: wrap; }
    .dash-link-info { min-width: 0; flex-basis: calc(100% - 60px); }
    .dash-link-clicks { margin-left: auto; }
    .dash-url-value { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .dash-music-rank { display: none; }
    .dash-mood-badge { padding: 2px 6px; font-size: 10px; }
}
