:root {
    --bg-deep: #030814;
    --bg-navy: #081328;
    --surface: rgba(12, 24, 48, 0.82);
    --surface-solid: #0b1830;
    --surface-soft: rgba(20, 38, 72, 0.62);
    --surface-input: #050e1f;
    --border: rgba(130, 178, 245, 0.18);
    --border-strong: rgba(130, 178, 245, 0.36);
    --ink: #f3f7ff;
    --ink-soft: #cde0fa;
    --muted: #8ea7cb;
    --blue: #2b74ff;
    --blue-bright: #60a5fa;
    --cyan: #22d3ee;
    --violet: #818cf8;
    --green: #10b981;
    --green-soft: #6ee7b7;
    --amber: #f59e0b;
    --amber-soft: #fde68a;
    --red: #f43f5e;
    --red-soft: #fda4af;
    --ro-blue: #2f80ff;
    --ro-yellow: #ffd43b;
    --ro-red: #f03e4d;
    --shadow-lg: 0 30px 80px rgba(1, 6, 18, 0.68);
    --shadow-md: 0 18px 46px rgba(2, 8, 22, 0.48);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 13px;
}

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

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

/* ==================== KEYFRAMES ==================== */
@keyframes auroraFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-2.5%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(2%, -1.5%, 0) scale(0.98); }
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28); opacity: 1; }
    50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.04); opacity: 0.86; }
}

@keyframes radarPing {
    0% { transform: scale(0.88); opacity: 0.65; }
    80%, 100% { transform: scale(1.68); opacity: 0; }
}

@keyframes spinSmooth {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scanSweep {
    0% { transform: translateY(-120%); opacity: 0; }
    18% { opacity: 0.85; }
    82% { opacity: 0.85; }
    100% { transform: translateY(420%); opacity: 0; }
}

@keyframes laserGlide {
    0% { top: 0; opacity: 0; }
    12% { opacity: 0.95; }
    88% { opacity: 0.95; }
    100% { top: 100%; opacity: 0; }
}

@keyframes borderGleam {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(260%); }
}

@keyframes barFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes fadeRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes panelReveal {
    from { opacity: 0; transform: translateY(8px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(43, 116, 255, 0.26), 0 0 18px rgba(34, 211, 238, 0.32); }
    50% { box-shadow: 0 0 0 9px rgba(43, 116, 255, 0.06), 0 0 26px rgba(34, 211, 238, 0.52); }
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ink);
    background: linear-gradient(180deg, #030814 0%, #071226 52%, #040b19 100%);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Drifting Aurora Orbs */
.bg-aurora {
    position: fixed;
    inset: -12% -10% 0 -10%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(620px 440px at 80% 8%, rgba(43, 116, 255, 0.24), transparent 64%),
        radial-gradient(540px 380px at 14% 16%, rgba(34, 211, 238, 0.13), transparent 62%),
        radial-gradient(480px 340px at 50% 88%, rgba(129, 140, 248, 0.10), transparent 66%),
        radial-gradient(420px 300px at 90% 84%, rgba(240, 62, 77, 0.09), transparent 66%);
    animation: auroraFloat 18s ease-in-out infinite alternate;
    will-change: transform;
}

a {
    color: var(--blue-bright);
    text-underline-offset: 3px;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

/* ==================== TRICOLOR & TOP HEADER ==================== */
.tricolor-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--ro-blue) 0 33.33%, var(--ro-yellow) 33.33% 66.66%, var(--ro-red) 66.66% 100%);
}

.top {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(4, 10, 22, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 184, 235, 0.12);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    padding-block: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    display: block;
    height: 32px;
    width: auto;
}

.brand-pill {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(43, 116, 255, 0.16);
    border: 1px solid rgba(92, 160, 255, 0.30);
    color: #b7d7ff;
    font-size: 10.8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.top-nav-link {
    padding: 7px 12px;
    border-radius: 9px;
    color: #c2d4ef;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.top-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.account-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 184, 235, 0.24);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.account-link:hover {
    background: linear-gradient(135deg, #2b74ff, #1956cc);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(43, 116, 255, 0.38);
}

/* ==================== COMPACT MOBILE-FIRST TOP BAR ==================== */
main.shell {
    padding-top: clamp(14px, 2.2vw, 24px);
    padding-bottom: clamp(40px, 5.5vw, 68px);
}

.quick-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    margin-bottom: 16px;
    animation: fadeRise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.quick-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-header h1 {
    margin: 0;
    font-size: clamp(1.38rem, 2.6vw, 1.95rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.quick-header p {
    margin: 0;
    font-size: 13.8px;
    color: var(--muted);
}

.quick-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.13);
    border: 1px solid rgba(52, 211, 153, 0.34);
    color: #86efce;
    font-size: 11.6px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==================== CINEMATIC BANNER (BELOW TOOL FOR MOBILE UX) ==================== */
.intro {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
    gap: clamp(22px, 3.5vw, 44px);
    align-items: center;
    padding: clamp(24px, 3.8vw, 38px) clamp(22px, 3.8vw, 40px);
    border-radius: 26px;
    background:
        radial-gradient(560px 320px at 86% 12%, rgba(43, 116, 255, 0.34), transparent 65%),
        radial-gradient(440px 260px at 8% 95%, rgba(34, 211, 238, 0.16), transparent 65%),
        linear-gradient(140deg, rgba(7, 20, 44, 0.94) 0%, rgba(13, 35, 77, 0.92) 56%, rgba(19, 54, 115, 0.90) 100%);
    border: 1px solid rgba(130, 178, 245, 0.26);
    box-shadow: var(--shadow-lg);
    margin-top: 26px;
    animation: fadeRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.intro h2 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.028em;
    color: #ffffff;
}

.intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse 85% 80% at 75% 40%, #000 30%, transparent 100%);
    pointer-events: none;
}

.intro::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ro-blue) 0 33.33%, var(--ro-yellow) 33.33% 66.66%, var(--ro-red) 66.66% 100%);
}

.intro-copy {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.36);
    color: #86efce;
    font-size: 11.6px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulseGlow 2.2s ease-in-out infinite;
}

.intro h1 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3.6vw, 2.85rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.intro-highlight {
    background: linear-gradient(90deg, #7cc0ff 0%, #22d3ee 38%, #6ee7b7 72%, #93c5fd 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6.5s ease-in-out infinite;
}

.intro-copy p {
    margin: 0 0 18px;
    max-width: 580px;
    font-size: 15.5px;
    line-height: 1.66;
    color: #d0e1fa;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #cfe0fa;
}

.hero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-chips li::before {
    content: "✓";
    color: #34d399;
    font-weight: 900;
}

/* ==================== LIVE REACTIVE TV-SYNC STAGE ==================== */
.hero-art {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tv-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 372px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(8, 20, 44, 0.94), rgba(4, 10, 24, 0.96));
    border: 1px solid rgba(125, 184, 255, 0.30);
    box-shadow: 0 24px 60px rgba(2, 8, 24, 0.60), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.tv-stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #38bdf8, #6ee7b7, transparent);
    animation: borderGleam 4.6s ease-in-out infinite;
    pointer-events: none;
}

.tv-stage:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.52);
    box-shadow: 0 28px 66px rgba(2, 10, 30, 0.68), 0 0 36px rgba(43, 116, 255, 0.18);
}

.tv-stage[data-sync="active"] {
    border-color: rgba(56, 189, 248, 0.62);
    box-shadow: 0 24px 60px rgba(2, 8, 24, 0.60), 0 0 32px rgba(43, 116, 255, 0.28);
}

.tv-stage[data-sync="success"] {
    border-color: rgba(52, 211, 153, 0.64);
    box-shadow: 0 24px 60px rgba(2, 8, 24, 0.60), 0 0 34px rgba(16, 185, 129, 0.30);
}

.tv-stage-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    color: #9ec0ed;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tv-stage-dots {
    display: inline-flex;
    gap: 5px;
}

.tv-stage-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    display: block;
}

.tv-stage-dots i:first-child { background: #34d399; }
.tv-stage-dots i:nth-child(2) { background: #fbbf24; }
.tv-stage-dots i:nth-child(3) { background: #60a5fa; }

.tv-stage-status {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(43, 116, 255, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.34);
    color: #93c5fd;
    font-size: 10.5px;
    transition: all 0.25s ease;
}

.tv-stage[data-sync="success"] .tv-stage-status {
    background: rgba(16, 185, 129, 0.20);
    border-color: rgba(52, 211, 153, 0.42);
    color: #6ee7b7;
}

.tv-stage-screen {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    padding: 18px 16px;
    background:
        radial-gradient(240px 130px at 84% 20%, rgba(43, 116, 255, 0.32), transparent 70%),
        linear-gradient(145deg, #0b1e42 0%, #051026 100%);
    border: 1px solid rgba(148, 184, 235, 0.18);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.tv-stage-screen::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 28%;
    background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.12), transparent);
    animation: scanSweep 5.5s ease-in-out infinite;
    pointer-events: none;
}

.tv-mock-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.tv-mock-mac {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.2px;
    font-weight: 800;
    color: #ffe066;
    letter-spacing: 0.06em;
    background: rgba(255, 212, 59, 0.10);
    border: 1px solid rgba(255, 212, 59, 0.28);
    padding: 5px 9px;
    border-radius: 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-mock-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 184, 235, 0.16);
    overflow: hidden;
    width: 100%;
}

.tv-mock-bar span {
    display: block;
    height: 100%;
    width: 78%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2b74ff, #22d3ee, #34d399, #2b74ff);
    background-size: 200% 100%;
    animation: barFlow 3s linear infinite;
}

.tv-stage[data-sync="success"] .tv-mock-bar span {
    width: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    animation: none;
}

.tv-mock-meta {
    font-size: 11px;
    color: #9ec0ed;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signal-orbit {
    position: relative;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.signal-orbit::before,
.signal-orbit::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1.5px solid rgba(56, 189, 248, 0.42);
    animation: radarPing 2.8s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

.signal-orbit::after {
    animation-delay: 1.4s;
}

.tv-stage[data-sync="active"] .signal-orbit::before,
.tv-stage[data-sync="active"] .signal-orbit::after {
    animation-duration: 1.5s;
    border-color: rgba(34, 211, 238, 0.65);
}

.tv-stage[data-sync="success"] .signal-orbit::before,
.tv-stage[data-sync="success"] .signal-orbit::after {
    border-color: rgba(52, 211, 153, 0.65);
}

.hero-signal {
    position: relative;
    z-index: 2;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: linear-gradient(135deg, #2b74ff, #0ea5e9);
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(43, 116, 255, 0.46);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero-signal-glyph {
    display: inline-block;
    line-height: 1;
}

.tv-stage[data-sync="active"] .hero-signal-glyph {
    animation: spinSmooth 1.1s linear infinite;
}

.tv-stage[data-sync="success"] .hero-signal {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.48);
}

.tv-stage-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.tv-kpi {
    padding: 8px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 184, 235, 0.12);
    text-align: center;
}

.tv-kpi strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
}

.tv-kpi span {
    display: block;
    font-size: 10.5px;
    color: #95b1d8;
    margin-top: 1px;
}

/* ==================== MAIN WORKSPACE GRID ==================== */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.86fr);
    gap: 22px;
    align-items: start;
}

.card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(22px, 3vw, 30px);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    animation: fadeRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.device-card {
    animation-delay: 0.08s;
    border-color: rgba(92, 160, 255, 0.30);
    box-shadow: 0 24px 60px rgba(3, 10, 26, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.device-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #60a5fa, #22d3ee, transparent);
    animation: borderGleam 5.4s ease-in-out infinite;
    pointer-events: none;
}

.guide {
    animation-delay: 0.16s;
}

.device-card:focus-within {
    border-color: rgba(56, 189, 248, 0.52);
    box-shadow: 0 26px 64px rgba(3, 10, 26, 0.62), 0 0 36px rgba(43, 116, 255, 0.15);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 4px;
}

.card h2 {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* ==================== INPUT & PRIMARY SHIMMER CTA ==================== */
#device-entry label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.input-format-hint {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(148, 184, 235, 0.10);
    border: 1px solid rgba(148, 184, 235, 0.18);
    font-size: 11.2px;
    font-weight: 700;
    color: var(--muted);
    transition: all 0.2s ease;
}

.input-format-hint.is-valid {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.38);
    color: #6ee7b7;
}

.input-action-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-shell {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.identifier {
    width: 100%;
    min-height: 54px;
    padding: 12px 92px 12px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(130, 178, 245, 0.28);
    background: var(--surface-input);
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.identifier::placeholder {
    color: #5b7499;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.identifier:focus {
    outline: none;
    border-color: #38bdf8;
    background: #061329;
    box-shadow: 0 0 0 4px rgba(43, 116, 255, 0.22), 0 0 24px rgba(34, 211, 238, 0.16);
}

.identifier[readonly] {
    opacity: 0.78;
    cursor: default;
}

.paste-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 11px;
    border-radius: 9px;
    border: 1px solid rgba(130, 178, 245, 0.24);
    background: rgba(255, 255, 255, 0.07);
    color: #cfe0fa;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.paste-btn:hover {
    background: rgba(43, 116, 255, 0.26);
    border-color: rgba(92, 160, 255, 0.52);
    color: #ffffff;
}

.hint {
    margin: 9px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* Buttons with Shimmer Sweep */
.button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none !important;
}

.button.primary {
    min-height: 54px;
    padding: 0 22px;
    background: linear-gradient(135deg, #2b74ff 0%, #0ea5e9 52%, #1d5ee0 100%);
    background-size: 180% auto;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(26, 95, 208, 0.44);
}

.button.primary::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -70%;
    width: 48%;
    height: 140%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    transform: skewX(-24deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.button.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    background-position: right center;
    box-shadow: 0 16px 36px rgba(26, 95, 208, 0.56), 0 0 22px rgba(34, 211, 238, 0.28);
}

.button.primary:hover:not(:disabled)::after {
    left: 130%;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(148, 184, 235, 0.22);
    color: #e6f0ff;
}

.button.secondary:hover:not(:disabled) {
    background: rgba(43, 116, 255, 0.20);
    border-color: rgba(92, 160, 255, 0.48);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 28, 66, 0.42);
}

.button.compact {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
}

/* Detected App Banner */
.device-app {
    margin: 14px 0 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.38);
    color: #86efce;
    font-size: 13.8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: panelReveal 0.28s ease both;
}

.device-app::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
    flex-shrink: 0;
}

/* ==================== CONNECTED 4-STEP PIPELINE TRACKER ==================== */
.reload-flow {
    margin-top: 20px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(5, 14, 31, 0.78);
    border: 1px solid rgba(130, 178, 245, 0.16);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.reload-flow[data-tone="active"] {
    border-color: rgba(56, 189, 248, 0.46);
    box-shadow: 0 0 28px rgba(43, 116, 255, 0.14);
}

.reload-flow[data-tone="success"] {
    border-color: rgba(16, 185, 129, 0.52);
    background: rgba(6, 34, 31, 0.66);
    box-shadow: 0 0 32px rgba(16, 185, 129, 0.18);
}

.reload-flow[data-tone="error"] {
    border-color: rgba(244, 63, 94, 0.48);
    background: rgba(40, 12, 24, 0.58);
}

.reload-flow[data-tone="notice"] {
    border-color: rgba(245, 158, 11, 0.44);
}

.reload-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.reload-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
}

.reload-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 22px);
    width: calc(100% - 38px);
    height: 2px;
    border-radius: 999px;
    background: rgba(148, 184, 235, 0.16);
    transition: background 0.3s ease;
}

.reload-steps li[data-state="done"]:not(:last-child)::after {
    background: linear-gradient(90deg, #10b981, #22d3ee);
}

.step-number {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    background: rgba(13, 25, 48, 0.95);
    border: 1.5px solid rgba(148, 184, 235, 0.24);
    color: var(--muted);
    transition: all 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    transition: color 0.22s ease;
}

.reload-steps li[data-state="current"] .step-number {
    background: linear-gradient(135deg, #2b74ff, #22d3ee);
    border-color: transparent;
    color: #ffffff;
    animation: stepPulse 2.4s ease-in-out infinite;
}

.reload-steps li[data-state="current"] .step-label {
    color: #ffffff;
}

.reload-steps li[data-state="done"] .step-number {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: #ffffff;
    transform: scale(1.04);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.reload-steps li[data-state="done"] .step-label {
    color: var(--green-soft);
}

#reload-progress {
    width: 100%;
    height: 7px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(148, 184, 235, 0.14);
}

#reload-progress::-webkit-progress-bar {
    background: rgba(148, 184, 235, 0.14);
    border-radius: 999px;
}

#reload-progress::-webkit-progress-value {
    background: linear-gradient(90deg, #2b74ff, #22d3ee, #10b981);
    border-radius: 999px;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#reload-progress::-moz-progress-bar {
    background: linear-gradient(90deg, #2b74ff, #22d3ee, #10b981);
    border-radius: 999px;
}

.flow-status {
    margin: 12px 0 0;
    font-size: 13.8px;
    font-weight: 700;
    color: #d6e6ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flow-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-bright);
    flex-shrink: 0;
}

.reload-flow[data-tone="active"] .flow-status::before {
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.24);
}

.reload-flow[data-tone="success"] .flow-status { color: var(--green-soft); }
.reload-flow[data-tone="success"] .flow-status::before { background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.24); }
.reload-flow[data-tone="error"] .flow-status { color: var(--red-soft); }
.reload-flow[data-tone="error"] .flow-status::before { background: var(--red); }
.reload-flow[data-tone="notice"] .flow-status { color: var(--amber-soft); }
.reload-flow[data-tone="notice"] .flow-status::before { background: var(--amber); }

#retry-reload {
    margin-top: 12px;
}

.feedback {
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 13.8px;
    font-weight: 700;
    animation: panelReveal 0.24s ease both;
}

.feedback.is-ok {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: var(--green-soft);
}

.feedback.is-error {
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(251, 113, 133, 0.35);
    color: var(--red-soft);
}

.wait-help {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 184, 235, 0.10);
    font-size: 12.5px;
    color: #93accf;
    font-weight: 600;
}

/* ==================== OCR PHOTO SCANNER WITH LASER BEAM ==================== */
.scanner {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(16, 34, 68, 0.65), rgba(6, 15, 32, 0.88));
    border: 1.5px dashed rgba(92, 160, 255, 0.34);
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.scanner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22d3ee, #60a5fa, transparent);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.85);
    opacity: 0;
    pointer-events: none;
}

.scanner:hover,
.scanner.is-dragover,
.scanner.is-scanning {
    border-color: rgba(34, 211, 238, 0.62);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.10);
}

.scanner.is-dragover {
    background: rgba(34, 211, 238, 0.10);
}

.scanner.is-scanning::after,
.scanner.is-dragover::after {
    animation: laserGlide 2s ease-in-out infinite;
}

.scan-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
}

.camera {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(43, 116, 255, 0.24), rgba(34, 211, 238, 0.22));
    border: 1px solid rgba(92, 160, 255, 0.36);
    color: #7cc4ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.scanner:hover .camera {
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}

.camera svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scan-head h3 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.scan-head p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.scan-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.scan-actions .button svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ocr-progress {
    width: 100%;
    height: 6px;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(148, 184, 235, 0.16);
}

#ocr-progress::-webkit-progress-bar { background: rgba(148, 184, 235, 0.16); border-radius: 999px; }
#ocr-progress::-webkit-progress-value { background: linear-gradient(90deg, #22d3ee, #2b74ff); border-radius: 999px; }

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.choices .button {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    min-height: 38px;
    padding: 0 12px;
    border-color: rgba(92, 160, 255, 0.38);
    background: rgba(43, 116, 255, 0.16);
    animation: panelReveal 0.25s ease both;
}

.privacy {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #84a0c8;
}

.privacy svg {
    width: 14px;
    height: 14px;
    stroke: #34d399;
    fill: none;
    stroke-width: 2.2;
    flex-shrink: 0;
}

/* ==================== RIGHT GUIDE & INTERACTIVE APP BROWSER ==================== */
.guide {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guide-default {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(6, 16, 34, 0.62);
    border: 1px solid rgba(130, 178, 245, 0.16);
    font-size: 13.8px;
    color: var(--ink-soft);
    line-height: 1.58;
}

.app-browser {
    padding: 15px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(130, 178, 245, 0.15);
}

.app-browser-title {
    margin: 0 0 10px;
    font-size: 11.8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ec0ed;
}

.app-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(130, 178, 245, 0.22);
    background: rgba(6, 16, 34, 0.72);
    color: #cbdcf7;
    font-family: inherit;
    font-size: 12.2px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.app-chip img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.app-chip:hover {
    transform: translateY(-1px);
    border-color: var(--cyan);
    color: #ffffff;
    background: rgba(43, 116, 255, 0.20);
}

.app-chip.is-active {
    background: linear-gradient(135deg, #2b74ff, #0ea5e9);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(26, 95, 208, 0.38);
}

/* Real MAC Photo & Screen Guide inside each app guide */
.mac-photo-wrap {
    margin: 12px 0 2px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mac-photo-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(125, 184, 255, 0.32);
    border-radius: 13px;
    overflow: hidden;
    background: #040b18;
    cursor: zoom-in;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mac-photo-btn:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 14px 32px rgba(2, 10, 28, 0.62);
}

.mac-photo-btn img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 235px;
    object-fit: contain;
    background: #040b18;
}

.mac-photo-zoom {
    position: absolute;
    right: 9px;
    bottom: 9px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(4, 10, 24, 0.84);
    border: 1px solid rgba(125, 184, 255, 0.36);
    color: #e6f2ff;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.mac-photo-tag {
    position: absolute;
    left: 9px;
    top: 9px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: #091326;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.mac-photo-cap {
    margin: 0;
    font-size: 11.8px;
    color: #93aed4;
    line-height: 1.4;
}

/* Visual TV Screen Mockup for apps without static photo */
.mac-visual-card {
    margin: 12px 0 2px;
    padding: 14px;
    border-radius: 13px;
    background:
        radial-gradient(240px 110px at 88% 12%, rgba(43, 116, 255, 0.24), transparent 70%),
        linear-gradient(155deg, #07142b 0%, #040b1a 100%);
    border: 1px solid rgba(125, 184, 255, 0.28);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mac-visual-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mac-visual-top img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.mac-visual-top strong {
    display: block;
    font-size: 13.5px;
    color: #ffffff;
    line-height: 1.2;
}

.mac-visual-top span {
    display: block;
    font-size: 11.5px;
    color: #8eb2e0;
}

.mac-visual-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 212, 59, 0.10);
    border: 1.5px solid rgba(255, 212, 59, 0.56);
    box-shadow: 0 0 18px rgba(255, 212, 59, 0.12);
}

.mac-visual-field small {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fde68a;
}

.mac-visual-field code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.06em;
}

/* Native Full-Screen Lightbox Dialog */
.mac-lightbox {
    width: min(940px, calc(100vw - 24px));
    max-height: calc(100vh - 28px);
    padding: 14px;
    border: 1px solid rgba(130, 178, 245, 0.34);
    border-radius: 20px;
    background: #071226;
    color: #ffffff;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.80);
}

.mac-lightbox::backdrop {
    background: rgba(2, 7, 18, 0.84);
    backdrop-filter: blur(8px);
}

.mac-lightbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.mac-lightbox-head strong {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
}

.mac-lightbox-close {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 10px;
    border: 1px solid rgba(148, 184, 235, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mac-lightbox-close:hover {
    background: var(--blue);
    border-color: transparent;
}

.mac-lightbox img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 12px;
    background: #030814;
}

.guide-app {
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(16, 36, 72, 0.88), rgba(8, 19, 40, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.40);
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(3, 12, 32, 0.42);
    animation: panelReveal 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.guide-app summary {
    list-style: none;
    cursor: pointer;
    font-size: 15.5px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-app summary::-webkit-details-marker {
    display: none;
}

.guide-app ol {
    margin: 12px 0 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13.8px;
    color: var(--ink-soft);
    line-height: 1.56;
}

.guide-app ol li::marker {
    color: var(--cyan);
    font-weight: 800;
}

.guide-app p {
    margin: 10px 0 0;
    font-size: 13.8px;
    color: var(--ink-soft);
}

.guide-help {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(130, 178, 245, 0.16);
}

.guide-help strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
}

.guide-help p {
    margin: 0 0 12px;
    font-size: 13.2px;
    color: var(--muted);
    line-height: 1.55;
}

.guide-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guide-help-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 9px;
    background: rgba(43, 116, 255, 0.14);
    border: 1px solid rgba(92, 160, 255, 0.28);
    color: #9bc8ff;
    font-size: 12.8px;
    font-weight: 700;
    text-decoration: none;
}

.guide-help-links a:hover {
    background: linear-gradient(135deg, #2b74ff, #1652cc);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==================== HOW IT WORKS WITH HOVER GLOW ==================== */
.how-section {
    margin-top: 28px;
    animation: fadeRise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.how-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.how-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2b74ff, #22d3ee, #34d399);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.how-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 20px 44px rgba(2, 10, 28, 0.56);
}

.how-card:hover::before {
    opacity: 1;
}

.how-num {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(43, 116, 255, 0.26), rgba(34, 211, 238, 0.22));
    border: 1px solid rgba(92, 160, 255, 0.36);
    color: #7cc4ff;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.how-card:hover .how-num {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.32);
}

.how-card h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    color: #ffffff;
}

.how-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
}

/* ==================== COMPATIBLE APPS BAR & FOOTER ==================== */
.apps-strip {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(9, 20, 42, 0.74);
    border: 1px solid rgba(130, 178, 245, 0.14);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
}

.apps-strip-label {
    font-size: 11.8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

.apps-strip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.apps-strip-list span {
    padding: 4.5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 184, 235, 0.15);
    color: #c2d6f5;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.apps-strip-list span:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(43, 116, 255, 0.16);
    color: #ffffff;
    transform: translateY(-1px);
}

.page-footer {
    border-top: 1px solid rgba(130, 178, 245, 0.12);
    background: rgba(3, 8, 18, 0.80);
    padding-block: 22px;
    font-size: 13px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: #b7cceb;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ==================== RESPONSIVE & REDUCED MOTION ==================== */
@media (max-width: 980px) {
    .intro,
    .layout {
        grid-template-columns: 1fr;
    }
    .hero-art {
        justify-content: flex-start;
    }
    .tv-stage {
        max-width: 100%;
    }
    .how-grid {
        grid-template-columns: 1fr;
    }
    .top-nav {
        display: none;
    }
}

@media (max-width: 620px) {
    .shell {
        width: calc(100% - 20px);
    }
    .top-inner {
        min-height: 54px;
        padding-block: 7px;
    }
    .brand img {
        height: 27px;
    }
    .brand-pill,
    .quick-header-pill {
        display: none;
    }
    .card {
        padding: 18px 16px;
        border-radius: 20px;
    }
    .input-action-row {
        flex-direction: column;
    }
    .button.primary {
        width: 100%;
    }
    .scan-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .scan-actions .button {
        padding: 0 10px;
        font-size: 13px;
    }
    .app-chip-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .app-chip-grid::-webkit-scrollbar {
        display: none;
    }
    .app-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .reload-steps {
        gap: 4px;
    }
    .reload-steps li:not(:last-child)::after {
        display: none;
    }
    .step-label {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
