/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #04080f;
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Boot shell */
.boot-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #04080f;
}
.boot-spinner {
    width: 32px; height: 32px;
    border: 2.5px solid #1e293b;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Blazor error */
#blazor-error-ui {
    display: none;
    background: #1e293b;
    color: #e2e8f0;
    padding: 12px 24px;
    text-align: center;
    font-size: 13px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
}
#blazor-error-ui a { color: #60a5fa; }

/* ═══════════════════════════════════════════════════════════
   LANDING ROBOT
═══════════════════════════════════════════════════════════ */
.lp-robot-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.lp-robot-glow {
    position: absolute;
    top: -30px; left: 50%;
    transform: translateX(-50%);
    width: 280px; height: 280px;
    background: radial-gradient(ellipse, rgba(37,99,235,0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.lp-robot-svg {
    position: relative;
    z-index: 1;
    width: 160px;
    height: 192px;
    filter: drop-shadow(0 0 32px rgba(37,99,235,0.45)) drop-shadow(0 12px 32px rgba(0,0,0,0.7));
    overflow: visible;
    animation: lp-robot-float 4s ease-in-out infinite;
}
#lp-robot-head {
    transform-origin: 100px 88px;
    will-change: transform;
}
@keyframes lp-robot-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ═══════════════════════════════════════════════════════════
   ENROLL WIDGET
═══════════════════════════════════════════════════════════ */
.lp-enroll-widget {
    background: #010a16;
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 24px 64px rgba(0,0,0,0.7), 0 0 48px rgba(0,212,255,0.06);
    width: 100%;
}
.lp-ew-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--mono, monospace);
    color: #00ff88;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.lp-ew-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #00ff88;
    animation: lppulse 1.8s ease infinite;
    flex-shrink: 0;
}
.lp-ew-title {
    font-size: 18px;
    font-weight: 800;
    color: #e8f4ff;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}
.lp-ew-sub {
    font-size: 12px;
    color: #6b8fa8;
    margin-bottom: 18px;
}
.lp-ew-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 13px;
    font-family: var(--mono, monospace);
    color: #e8f4ff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.lp-ew-input:focus {
    border-color: rgba(0,212,255,0.4);
    background: rgba(0,212,255,0.03);
}
.lp-ew-input::placeholder { color: #3d5a70; }
.lp-ew-error {
    font-size: 12px;
    color: #f87171;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.2);
    border-radius: 6px;
}
.lp-ew-btn {
    width: 100%;
    padding: 13px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #0d50cc, #2563eb, #1a4ed8);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
    box-shadow: 0 4px 20px rgba(37,99,235,0.35);
    margin-bottom: 10px;
    text-decoration: none;
}
.lp-ew-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.5);
}
.lp-ew-btn:disabled, .lp-ew-btn.loading { opacity: 0.75; cursor: not-allowed; }
.lp-ew-btn-go { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 4px 20px rgba(16,185,129,0.3); }
.lp-ew-btn-go:hover { box-shadow: 0 8px 28px rgba(16,185,129,0.5); }
.lp-ew-spinner {
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-ew-note {
    text-align: center;
    font-size: 11px;
    color: #3d5a70;
    font-family: var(--mono, monospace);
}

/* Success state */
.lp-ew-success { text-align: center; }
.lp-ew-success-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(0,255,136,0.12);
    border: 2px solid rgba(0,255,136,0.4);
    color: #00ff88;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.lp-ew-success-title {
    font-size: 18px;
    font-weight: 800;
    color: #e8f4ff;
    margin-bottom: 14px;
}
.lp-ew-thumbprint-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3d5a70;
    font-family: var(--mono, monospace);
    margin-bottom: 6px;
}
.lp-ew-thumbprint {
    font-family: var(--mono, monospace);
    font-size: 11px;
    color: #00d4ff;
    background: rgba(0,212,255,0.06);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 8px;
    padding: 8px 12px;
    word-break: break-all;
    margin-bottom: 12px;
    text-align: left;
}
.lp-ew-verify-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}
.lp-ew-badge-allow {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--mono, monospace);
    color: #00ff88;
    background: rgba(0,255,136,0.12);
    border: 1px solid rgba(0,255,136,0.3);
    letter-spacing: 0.06em;
}
.lp-ew-verify-text { font-size: 12px; color: #6b8fa8; }
.lp-ew-code-wrap {
    margin-bottom: 16px;
    text-align: left;
}
.lp-ew-code-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3d5a70;
    font-family: var(--mono, monospace);
    margin-bottom: 6px;
}
.lp-ew-code {
    font-family: var(--mono, monospace);
    font-size: 10.5px;
    color: #7dd3fc;
    background: #000810;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.7;
    margin: 0;
}
.lp-ew-reset {
    background: none;
    border: none;
    color: #3d5a70;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: color 0.15s;
    padding: 4px 8px;
    font-family: inherit;
}
.lp-ew-reset:hover { color: #6b8fa8; }

/* Hero right layout with robot + widget stacked */
.lp-hero-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}
