/* ============================================================
   Fast Player – Website Stylesheet
   fastplayer.co | Glassmorphism Dark Theme
   ============================================================ */

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

:root {
    --bg:           #0A0A14;
    --bg-card:      rgba(14, 14, 28, 0.60);
    --cyan:         #00D4FF;
    --cyan-glow:    rgba(0, 212, 255, 0.18);
    --purple:       #8B5CF6;
    --purple-glow:  rgba(139, 92, 246, 0.18);
    --pink:         #EC4899;
    --pink-glow:    rgba(236, 72, 153, 0.18);
    --amber:        #F59E0B;
    --green:        #10B981;
    --text:         #E8E8F0;
    --text-muted:   rgba(232, 232, 240, 0.55);
    --text-faint:   rgba(232, 232, 240, 0.28);
    --border:       rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --radius-xl:    24px;
    --radius-lg:    18px;
    --radius-md:    12px;
    --radius-sm:    8px;
    --nav-h:        72px;
    --container:    1160px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Glass Utility --- */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.glass-card:hover {
    border-color: var(--border-hover);
}
.glass-nav {
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-bottom: 1px solid var(--border);
}
.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Typography --- */
.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 60%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 100px;
    background: var(--cyan-glow);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.section-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-large { padding: 15px 30px; font-size: 16px; border-radius: var(--radius-lg); }

.btn-primary {
    background: linear-gradient(135deg, var(--cyan) 0%, #0099CC 100%);
    color: #0A0A14;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
    filter: brightness(1.08);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1.5px solid var(--cyan);
}
.btn-outline:hover {
    background: var(--cyan-glow);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-md);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
}
.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--cyan), #0099CC);
    color: #0A0A14;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.logo-text .accent { color: var(--cyan); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text-muted); border-radius: 2px;
    transition: all 0.25s;
}

/* ============================================================
   BACKGROUND ORBS
   ============================================================ */
.bg-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 400px; background: rgba(0, 212, 255, 0.12); top: -10%; left: -5%; animation-duration: 10s; }
.orb-2 { width: 460px; height: 460px; background: rgba(139, 92, 246, 0.10); top: 30%; right: -8%; animation-duration: 14s; animation-delay: -4s; }
.orb-3 { width: 380px; height: 300px; background: rgba(236, 72, 153, 0.08); bottom: 0; left: 30%; animation-duration: 11s; animation-delay: -7s; }
.orb-4 { width: 280px; height: 280px; background: rgba(16, 185, 129, 0.07); bottom: 20%; right: 20%; animation-duration: 9s; animation-delay: -2s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33%       { transform: translate(40px, -40px) scale(1.08); }
    66%       { transform: translate(-30px, 25px) scale(0.95); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 80px;
}
.badge-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

.hero-title {
    font-size: clamp(36px, 5.5vw, 66px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin: 20px 0;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 36px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.stat { text-align: center; }
.stat-number { display: block; font-size: 26px; font-weight: 800; color: var(--text); }
.stat-label  { font-size: 12px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.5px; }
.stat-sep { width: 1px; height: 40px; background: var(--border); }

/* Phone mockup */
.hero-device { position: relative; z-index: 1; }
.glass-device {
    border-radius: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.10);
    animation: deviceFloat 6s ease-in-out infinite;
}
@keyframes deviceFloat {
    0%,100% { transform: translateY(0px); }
    50%      { transform: translateY(-14px); }
}
.device-screen {
    background: #0D0D1A;
    border-radius: 16px;
    padding: 20px;
    min-height: 340px;
}
.screen-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.screen-logo { font-size: 15px; font-weight: 800; color: var(--cyan); }
.screen-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan); display: block; animation: pulseDot 2s infinite; }
.screen-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.screen-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid;
    font-size: 13px;
}
.cyan-card   { background: rgba(0,212,255,0.08);   border-color: rgba(0,212,255,0.20); }
.purple-card { background: rgba(139,92,246,0.08);  border-color: rgba(139,92,246,0.20); }
.green-card  { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.20); }
.card-title { font-weight: 700; color: var(--text); font-size: 13px; }
.card-sub   { font-size: 11px; color: var(--text-muted); }
.card-icon  { font-size: 20px; }
.screen-pip-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 100px;
    background: rgba(0,212,255,0.10); border: 1px solid rgba(0,212,255,0.25);
    font-size: 11px; font-weight: 600; color: var(--cyan);
    animation: pulseDot 2.5s infinite;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    padding: 110px 0;
    position: relative;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius-xl);
    transition: transform 0.25s, border-color 0.25s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card h3 { font-size: 18px; font-weight: 700; margin: 16px 0 10px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid;
}
.feature-icon svg { width: 22px; height: 22px; }
.cyan-icon   { background: var(--cyan-glow);   border-color: rgba(0,212,255,0.25);   color: var(--cyan); }
.purple-icon { background: var(--purple-glow); border-color: rgba(139,92,246,0.25); color: var(--purple); }
.amber-icon  { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.25); color: var(--amber); }
.pink-icon   { background: var(--pink-glow);   border-color: rgba(236,72,153,0.25); color: var(--pink); }
.green-icon  { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.25); color: var(--green); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { padding: 110px 0; position: relative; }
.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 56px;
}
.step { flex: 1; position: relative; }
.step-num {
    width: 52px; height: 52px;
    border-radius: 50%;
    font-size: 20px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid;
    position: relative; z-index: 1;
}
.cyan-num   { background: var(--cyan-glow);   border-color: rgba(0,212,255,0.4);   color: var(--cyan); }
.purple-num { background: var(--purple-glow); border-color: rgba(139,92,246,0.4); color: var(--purple); }
.pink-num   { background: var(--pink-glow);   border-color: rgba(236,72,153,0.4); color: var(--pink); }
.green-num  { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.4); color: var(--green); }
.step-content {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 0 10px;
}
.step-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-content p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.step-connector {
    flex: 0 0 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--border-hover), var(--border));
    margin-top: 26px;
    position: relative;
}
.step-connector::before {
    content: '';
    position: absolute;
    top: -2px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}
.steps-cta { text-align: center; }

/* ============================================================
   COMPATIBILITY
   ============================================================ */
.compat { padding: 60px 0 110px; }
.compat-card {
    border-radius: var(--radius-xl);
    padding: 56px;
    position: relative;
    overflow: hidden;
}
.compat-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--cyan-glow) 0%, transparent 50%, var(--purple-glow) 100%);
    pointer-events: none;
}
.compat-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px;
    position: relative;
}
.compat-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.compat-text p  { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; }
.compat-types { display: flex; flex-direction: column; gap: 10px; }
.compat-type {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 500;
}
.type-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.type-dot.cyan   { background: var(--cyan);   box-shadow: 0 0 8px var(--cyan); }
.type-dot.purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.type-dot.green  { background: var(--green);  box-shadow: 0 0 8px var(--green); }
.compat-visual { display: flex; flex-wrap: wrap; gap: 10px; max-width: 280px; }
.provider-badge {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 60px 0 110px; }
.cta-card {
    border-radius: var(--radius-xl);
    padding: 80px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.orb-cta-1 { width: 400px; height: 400px; background: rgba(0,212,255,0.10); top: -20%; left: -10%; }
.orb-cta-2 { width: 350px; height: 350px; background: rgba(139,92,246,0.10); bottom: -20%; right: -5%; }
.cta-card h2 { font-size: 40px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 12px; position: relative; }
.cta-card p  { font-size: 18px; color: var(--text-muted); margin-bottom: 36px; position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-top: 60px; }
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    padding-bottom: 50px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 260px; line-height: 1.65; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.footer-col a  { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--text-faint);
}

/* ============================================================
   ADD PLAYLIST PAGE
   ============================================================ */
.page-header {
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 48px;
    text-align: center;
    position: relative;
}
.page-header h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -0.5px; margin: 16px 0 12px; }
.page-header p   { font-size: 17px; color: var(--text-muted); }

.form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 100px;
    position: relative;
    z-index: 1;
}

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}
.step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    transition: all 0.3s;
    border: 1.5px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    position: relative;
}
.step-dot.active {
    background: var(--cyan-glow);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}
.step-dot.done {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #0A0A14;
}
.step-dot.done::after { content: '✓'; }
.step-dot.done span   { display: none; }
.step-line {
    height: 1.5px; width: 80px;
    background: var(--border);
    transition: background 0.3s;
}
.step-line.active { background: var(--cyan); opacity: 0.5; }
.step-label {
    position: absolute;
    bottom: -24px;
    left: 50%; transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: 0.3px;
}
.step-dot.active .step-label { color: var(--cyan); }

/* Form card */
.form-card {
    border-radius: var(--radius-xl);
    padding: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Step panels */
.step-panel { display: none; animation: fadeSlideUp 0.3s ease; }
.step-panel.visible { display: block; }
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-panel h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.step-panel p  { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }

/* Input fields */
.input-group { margin-bottom: 20px; }
.input-label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 13px 18px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}
.input-field::placeholder { color: var(--text-faint); }
.input-field:focus {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}
.input-field.error { border-color: #EF4444; }
.input-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.input-error { font-size: 12px; color: #EF4444; margin-top: 6px; display: none; }
.input-error.visible { display: block; }

/* MAC address special input */
.mac-input {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    padding: 18px;
}

/* Type selection cards */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.type-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.type-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.05); }
.type-card.selected {
    border-color: var(--cyan);
    background: var(--cyan-glow);
    box-shadow: 0 0 0 1px var(--cyan), 0 0 30px rgba(0,212,255,0.12);
}
.type-card-icon {
    font-size: 28px; margin-bottom: 10px; display: block;
}
.type-card-title {
    font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.type-card-sub {
    font-size: 12px; color: var(--text-muted);
}

/* Nav buttons */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}
.form-nav .btn { flex: 1; max-width: 200px; }
.form-nav .btn:only-child { margin-left: auto; }

/* Success screen */
.success-screen {
    text-align: center;
    padding: 20px 0 10px;
}
.success-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
    margin: 0 auto 24px;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes successPop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.success-screen h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.success-screen p  { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; font-size: 15px; }
.success-detail {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 28px;
    text-align: left;
}
.success-detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0;
    font-size: 14px;
}
.success-detail-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.detail-key   { color: var(--text-muted); }
.detail-value { font-weight: 600; color: var(--text); font-family: monospace; }

/* Error message */
.form-error {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: #EF4444;
    margin-bottom: 20px;
    display: none;
}
.form-error.visible { display: block; }

/* Loading spinner on button */
.btn-loading { opacity: 0.7; pointer-events: none; }
.btn-loading::after {
    content: '';
    width: 14px; height: 14px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: rgba(0,0,0,0.8);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible, .reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-actions { justify-content: center; }
    .hero-stats   { justify-content: center; }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-device { max-width: 360px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .compat-inner  { grid-template-columns: 1fr; gap: 32px; }
    .compat-visual { max-width: 100%; }
    .footer-inner  { grid-template-columns: 1fr; gap: 40px; }
    .footer-links  { gap: 40px; }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-links.open, .nav-links.nav-open {
        display: flex; flex-direction: column;
        position: fixed; inset: 0; top: var(--nav-h);
        background: rgba(10,10,20,0.97);
        padding: 32px 24px; gap: 24px;
        z-index: 999;
    }
    .nav-links.open a, .nav-links.nav-open a { font-size: 18px; }
    .hamburger { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; align-items: center; gap: 12px; }
    .step { width: 100%; }
    .step-num { margin-left: 0; }
    .step-connector { width: 2px; height: 30px; background: linear-gradient(var(--border), var(--border)); margin: 0 auto; }
    .step-connector::before { top: 50%; left: -2px; }
    .compat-card { padding: 32px 24px; }
    .cta-card    { padding: 48px 28px; }
    .cta-card h2 { font-size: 28px; }
    .footer-links { flex-direction: column; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .type-grid { grid-template-columns: 1fr; }
    .form-card { padding: 28px 20px; }
    .step-line { width: 40px; }
}

/* ============================================================
   FORM PAGE (add-playlist.html) — additional styles
   ============================================================ */
.form-page {
    min-height: 100vh;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
}
.form-header {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}
.form-header h1 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.form-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Step indicator (redesigned) */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
    transition: color 0.3s;
}
.step-item.active { color: var(--cyan); }
.step-item.done   { color: var(--green); }
.step-circle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: rgba(255,255,255,0.04);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
}
.step-item.active .step-circle {
    border-color: var(--cyan);
    background: var(--cyan-glow);
    color: var(--cyan);
    box-shadow: 0 0 20px rgba(0,212,255,0.2);
}
.step-item.done .step-circle {
    border-color: var(--green);
    background: rgba(16,185,129,0.12);
    color: var(--green);
}
.step-item.done .step-circle::before { content: '✓'; }
.step-indicator .step-line {
    height: 1.5px; width: 70px;
    background: var(--border);
    margin-bottom: 24px;
    flex-shrink: 0;
}

/* Form container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px 100px;
    position: relative;
    z-index: 1;
}

/* Form step visibility */
.form-step { display: none; }
.form-step.active {
    display: block;
    animation: fadeSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-step.slide-in {
    animation: fadeSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Form card (inside form-step) */
.form-step .form-card {
    border-radius: var(--radius-xl);
    padding: 40px;
}
.form-step .form-card h2 {
    font-size: 22px; font-weight: 800;
    margin-bottom: 8px; letter-spacing: -0.3px;
}
.form-card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    border: 1px solid;
}
.form-card-icon svg { width: 22px; height: 22px; }
.form-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
}

/* MAC input wrapper */
.mac-input-wrapper { margin-bottom: 28px; }
.mac-input-wrapper label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.mac-input {
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
    text-transform: uppercase;
    padding: 18px 20px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    outline: none;
    transition: all 0.2s;
    -webkit-appearance: none;
}
.mac-input::placeholder {
    color: var(--text-faint);
    font-size: 16px;
    letter-spacing: 2px;
}
.mac-input:focus {
    border-color: var(--cyan);
    background: rgba(0,212,255,0.04);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.input-hint { font-size: 12px; color: var(--text-faint); margin-top: 8px; min-height: 18px; }
.hint-ok   { color: var(--green); }
.hint-warn { color: var(--amber); }

/* Form actions row */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.form-actions .btn { flex: 1; min-width: 120px; }
.form-actions .btn:only-child { margin-left: auto; flex: 0 1 auto; }

/* Type selection cards */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.type-card {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 14px;
    position: relative;
}
.type-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.05); }
.type-card.selected {
    border-color: var(--cyan);
    background: var(--cyan-glow);
    box-shadow: 0 0 0 1px var(--cyan), 0 0 28px rgba(0,212,255,0.10);
}
.type-icon { font-size: 26px; flex-shrink: 0; }
.type-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.type-info p  { font-size: 12px; color: var(--text-muted); }
.type-check {
    position: absolute; top: 10px; right: 12px;
    width: 20px; height: 20px;
    border-radius: 50%; background: var(--cyan);
    color: #0A0A14;
    font-size: 11px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.type-card.selected .type-check { opacity: 1; }

/* Below ~720px the two-column grid leaves each card too narrow for its
   icon + title + description, so everything wraps into a cramped mess.
   Must come after the unscoped .type-grid rule above to actually win. */
@media (max-width: 720px) {
    .type-grid { grid-template-columns: 1fr; }
}

/* Fields inside Xtream/M3U step */
.fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-group { display: flex; flex-direction: column; gap: 7px; }
.field-group label {
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.field-optional { font-weight: 400; opacity: 0.6; }
.field-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    -webkit-appearance: none;
}
.field-input::placeholder { color: var(--text-faint); }
.field-input:focus {
    border-color: var(--cyan);
    background: rgba(0,212,255,0.04);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}

/* Error box */
.error-box {
    background: rgba(239,68,68,0.10);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: #EF4444;
    margin-top: 16px;
}

/* Loading spinner */
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: rgba(0,0,0,0.8);
    border-radius: 50%;
    animation: spinAnim 0.65s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spinAnim { to { transform: rotate(360deg); } }

/* Success screen */
.success-screen {
    text-align: center;
    padding: 40px;
}
.success-screen .success-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.success-screen .success-icon svg {
    width: 36px; height: 36px;
    color: var(--green);
    stroke: var(--green);
}
@keyframes successPop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.success-screen h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.success-screen p  { color: var(--text-muted); font-size: 15px; line-height: 1.7; max-width: 420px; margin: 0 auto 28px; }
.success-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}
.success-step {
    display: flex; align-items: center; gap: 14px;
    font-size: 14px; color: var(--text-muted);
}
.success-step strong { color: var(--text); }
.success-step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--cyan-glow);
    border: 1px solid rgba(0,212,255,0.25);
    color: var(--cyan);
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .fields-row { grid-template-columns: 1fr; }
    .form-step .form-card { padding: 24px 16px; }
    .success-screen { padding: 28px 16px; }
    .mac-input { font-size: 16px; letter-spacing: 2px; }
}

/* ============================================================
   MANAGE PAGE STYLES
   ============================================================ */

/* Manage header bar */
.manage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.manage-mac {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 1.5px;
}

/* Playlist card */
.playlist-card {
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.playlist-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.playlist-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-left: 8px;
}
.playlist-actions {
    display: flex;
    gap: 6px;
}
.reveal-btn, .delete-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}
.reveal-btn svg, .delete-btn svg { width: 16px; height: 16px; }
.reveal-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-glow); }
.delete-btn:hover { border-color: #EF4444; color: #EF4444; background: rgba(239,68,68,0.08); }

/* Type badges */
.type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}
.xtream-badge { background: var(--cyan-glow); color: var(--cyan); border: 1px solid rgba(0,212,255,0.25); }
.m3u-badge    { background: var(--purple-glow); color: var(--purple); border: 1px solid rgba(139,92,246,0.25); }

/* Credential grid */
.cred-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
.cred-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
}
.cred-label {
    color: var(--text-faint);
    font-weight: 600;
    min-width: 72px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cred-val {
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    flex: 1;
}
.cred-val.locked {
    color: var(--text-faint);
    letter-spacing: 2px;
}

/* Modal overlay */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-card {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    animation: fadeSlideIn 0.25s ease;
}
.modal-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .manage-header { flex-direction: column; align-items: flex-start; }
    .modal-card { padding: 24px 18px; }
}

/* ============================================================
   PROTECT TOGGLE (add-playlist.html step 3)
   ============================================================ */
.protect-toggle {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-top: 20px;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.toggle-check { display: none; }
.toggle-slider {
    position: relative;
    flex-shrink: 0;
    width: 42px; height: 24px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    transition: background 0.2s;
}
.toggle-slider::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-check:checked + .toggle-slider { background: var(--cyan); }
.toggle-check:checked + .toggle-slider::after { transform: translateX(18px); }
.toggle-text { font-size: 14px; font-weight: 600; color: var(--text); }
.toggle-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}
.pin-fields {
    margin-top: 14px;
    animation: fadeSlideIn 0.25s ease;
}

/* ============================================================
   MANAGE PAGE — per-playlist protected badge & PIN reveal
   ============================================================ */
.protected-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 9px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(245,158,11,0.12);
    color: var(--amber);
    border: 1px solid rgba(245,158,11,0.25);
}
.protected-notice {
    font-size: 12px;
    color: var(--text-faint);
    font-style: italic;
    padding: 4px 0;
}
.reveal-pin-inline {
    margin-top: 12px;
    animation: fadeSlideIn 0.2s ease;
}
.reveal-pin-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.reveal-pin-row .field-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
}
.reveal-pin-row .btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.reveal-pin-error {
    color: #EF4444;
    font-size: 12px;
    margin-top: 6px;
}
