:root {
    --bg: #05050a;
    --bg-soft: #0a0a12;
    --panel: #0f0f18;
    --panel-border: #1e1e2b;
    --red: #9b5cff;
    --red-dim: #5f35c7;
    --red-glow: rgba(155, 92, 255, 0.35);
    --cyan: #28e7ff;
    --pink: #ff4fd8;
    --text: #f2f2f5;
    --text-dim: #9a9aab;
    --text-faint: #5c5c6e;
    --green: #22c55e;
    --yellow: #eab308;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: 'Space Grotesk', var(--font);
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(155, 92, 255, 0.16), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(40, 231, 255, 0.10), transparent 45%),
        radial-gradient(circle at 50% 45%, rgba(255, 79, 216, 0.05), transparent 38%),
        radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.5px);
    background-size: auto, auto, 26px 26px;
    min-height: 100vh;
}

h1, h2, h3, .brand, .btn, .step-num, .terminal-title, .stat-card .value {
    font-family: var(--font-display);
}

a { color: var(--red); text-decoration: none; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- NAV ---------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    max-width: 1160px;
    margin: 0 auto;
}

.brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 12px var(--red-glow);
}

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

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    text-decoration: none;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.97); }
.btn:disabled, .btn.is-loading { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dim));
    color: #fff;
    box-shadow: 0 4px 20px var(--red-glow);
    animation: btn-pulse-glow 3s ease-in-out infinite;
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-2px); box-shadow: 0 6px 26px var(--red-glow); }
.btn-primary:active { transform: translateY(0) scale(0.97); }

/* Reflet qui balaye le bouton au survol — petit effet "fun" sans surcharger */
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}
.btn-primary:hover::after { left: 125%; }

@keyframes btn-pulse-glow {
    0%, 100% { box-shadow: 0 4px 20px var(--red-glow); }
    50% { box-shadow: 0 4px 28px rgba(255, 31, 61, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-primary { animation: none; }
    .btn-primary::after { display: none; }
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--panel-border);
}
.btn-ghost:hover { border-color: var(--red-dim); color: var(--red); transform: translateY(-1px); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-danger { background: #2a0d12; color: #ff6b7d; border-color: #4a1620; }
.btn-danger:hover { background: #3a1018; transform: translateY(-1px); }

/* Petit spinner inline pour l'état "chargement" d'un bouton (ajouter la classe is-loading + un <span class="btn-spinner">) */
.btn-spinner {
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Onde au clic sur n'importe quel bouton (ajoutée dynamiquement par buttonEffects.js) */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: btn-ripple-anim 0.6s ease-out;
    pointer-events: none;
}
@keyframes btn-ripple-anim {
    to { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .btn-ripple { display: none; }
}

/* ---------- HERO ---------- */
.hero {
    padding: 90px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image: repeating-linear-gradient(135deg, rgba(155, 92, 255, 0.07) 0px, rgba(155, 92, 255, 0.07) 1px, transparent 1px, transparent 26px);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 68%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero .tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 31, 61, 0.1);
    border: 1px solid rgba(255, 31, 61, 0.3);
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--red), #ff6b7d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.subtitle {
    color: var(--text-dim);
    font-size: 17px;
    max-width: 480px;
    margin: 0 0 32px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- TERMINAL (illustration du déploiement) ---------- */
.terminal {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #0a0a12;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    background: #111119;
    border-bottom: 1px solid var(--panel-border);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar .dot.red { background: #ff5f57; }
.terminal-bar .dot.yellow { background: #febc2e; }
.terminal-bar .dot.green { background: #28c840; }
.terminal-title {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-faint);
}
.terminal-body {
    padding: 20px 18px 24px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 2;
    color: var(--text-dim);
}
.t-line {
    opacity: 0;
    transform: translateY(4px);
    animation: t-fade 0.4s ease forwards;
    white-space: pre-wrap;
    word-break: break-word;
}
.t-1 { animation-delay: 0.15s; }
.t-2 { animation-delay: 0.65s; }
.t-3 { animation-delay: 1.15s; }
.t-4 { animation-delay: 1.65s; }
.t-5 { animation-delay: 2.25s; }
.t-6 { animation-delay: 2.85s; }
@keyframes t-fade { to { opacity: 1; transform: translateY(0); } }
.t-prompt { color: var(--red); font-weight: 700; margin-right: 6px; }
.t-ok { color: var(--green); margin-right: 4px; }
.t-dim { color: var(--text-faint); }
.t-pair { color: var(--yellow); font-weight: 700; }
.t-success { color: var(--green); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
    .t-line { animation: none; opacity: 1; transform: none; }
}

/* ---------- STATS ---------- */
.stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 60px auto 0;
    max-width: 1000px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--red);
}

.stat-card .label {
    font-size: 12px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* ---------- FEATURES ---------- */
.features {
    padding: 70px 24px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 44px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.15s ease;
}
.feature-card:hover { border-color: var(--red-dim); }

.feature-card .icon {
    font-size: 26px;
    margin-bottom: 14px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.feature-card p {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 40px 24px 60px;
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
    border-top: 1px solid var(--panel-border);
    margin-top: 40px;
}

.footer a { color: var(--text-dim); }

/* ---------- AUTH PAGES ---------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 36px;
}

.auth-card h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
}

.auth-card .sub {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 26px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-weight: 600;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.field input:focus { border-color: var(--red); }

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 31, 61, 0.1);
    border: 1px solid rgba(255, 31, 61, 0.3);
    color: #ff8b98;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}
.alert.show { display: block; }

.alert.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #6ee89a;
}

.auth-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-dim);
}

/* ---------- DASHBOARD ---------- */
.dash-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--panel-border);
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 14px;
}

.dash-body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-header h1 {
    font-size: 26px;
    margin: 0 0 4px;
}
.dash-header p { margin: 0; color: var(--text-dim); font-size: 14px; }

.deploy-box {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.deploy-box h3 {
    margin: 0 0 4px;
    font-size: 16px;
}
.deploy-box .hint {
    color: var(--text-faint);
    font-size: 13px;
    margin: 0 0 16px;
}

.deploy-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.deploy-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.deploy-form input:focus { border-color: var(--red); }

.instances-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instance-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.instance-info { display: flex; align-items: center; gap: 14px; }

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.running { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.status-dot.starting { background: var(--yellow); box-shadow: 0 0 8px rgba(234,179,8,0.6); }
.status-dot.stopped { background: var(--text-faint); }
.status-dot.crashed { background: var(--red); box-shadow: 0 0 8px var(--red-glow); }

.instance-phone { font-weight: 700; font-size: 15px; }
.instance-meta { font-size: 12px; color: var(--text-faint); }

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

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-faint);
}
.empty-state .icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }

.template-warning {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.25);
    color: #f0c85a;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 24px;
}

/* ---------- COMMENT ÇA MARCHE ---------- */
.how-it-works { padding: 70px 24px 20px; max-width: 1160px; margin: 0 auto; }
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    margin-top: 44px;
}
.steps-row::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--panel-border);
    z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    color: var(--red);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p {
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 260px;
}

/* ---------- SÉCURITÉ ---------- */
.security-section { padding: 70px 24px; }
.security-inner {
    max-width: 1160px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 42px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.security-text h2 { font-size: 26px; margin: 0 0 12px; }
.security-text p { color: var(--text-dim); line-height: 1.65; margin: 0; font-size: 14.5px; }
.security-points { display: flex; flex-direction: column; gap: 18px; }
.security-point { display: flex; align-items: flex-start; gap: 14px; }
.security-point > span { font-size: 22px; line-height: 1.3; }
.security-point strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.security-point small { color: var(--text-faint); font-size: 13px; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-section { padding: 70px 24px 80px; max-width: 760px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }
.faq-item {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 2px 20px;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-weight: 600;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 20px;
    color: var(--red);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-ctas { justify-content: center; }
    .hero p.subtitle { margin-left: auto; margin-right: auto; }
    .security-inner { grid-template-columns: 1fr; }
    .security-text { text-align: center; }
}

@media (max-width: 760px) {
    .hero h1 { font-size: 32px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .navbar { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
    .navbar { flex-direction: column; text-align: center; }
    .nav-links { width: 100%; justify-content: center; }
    .steps-row { grid-template-columns: 1fr; gap: 36px; }
    .steps-row::before { display: none; }
}

/* ---------- CONTACT DEV ---------- */
.contact-section { padding: 20px 24px 80px; }
.contact-card { max-width: 1000px; margin: 0 auto; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 18px; padding: 34px; text-align: center; }
.contact-card .tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,31,61,.1); border: 1px solid rgba(255,31,61,.3); color: var(--red); font-size: 13px; font-weight: 700; }
.contact-card h2 { margin: 14px 0 8px; font-size: 28px; }
.contact-card > p { color: var(--text-dim); margin: 0 auto 24px; max-width: 600px; line-height: 1.6; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; background: var(--bg-soft); border: 1px solid var(--panel-border); border-radius: 12px; color: var(--text); }
.contact-item:hover { border-color: var(--red-dim); }
.contact-item > span { font-size: 25px; }
.contact-item strong { display: block; font-size: 14px; }
.contact-item small { display: block; color: var(--text-dim); margin-top: 4px; font-size: 13px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- TOASTS ---------- */
.toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 36px));
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    font-size: 13.5px;
    color: var(--text);
    opacity: 0;
    transform: translateX(24px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(0) scale(1); }
.toast-icon { flex-shrink: 0; line-height: 1.3; }
.toast-msg { line-height: 1.4; word-break: break-word; }
.toast-success { border-color: rgba(34,197,94,0.35); }
.toast-error { border-color: rgba(255,31,61,0.4); }
@media (max-width: 480px) {
    .toast-container { left: 18px; right: 18px; max-width: none; }
}

/* ---------- CONFIRM DIALOG (remplace confirm()) ---------- */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,9,0.65);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 20px;
}
.confirm-overlay.show { opacity: 1; }
.confirm-box {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 26px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    transform: scale(0.95) translateY(6px);
    transition: transform 0.2s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.confirm-overlay.show .confirm-box { transform: scale(1) translateY(0); }
.confirm-box p { margin: 0 0 20px; color: var(--text); line-height: 1.5; font-size: 14.5px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* ---------- Pulse en direct sur le statut "En ligne" ---------- */
.status-dot.running {
    animation: status-pulse-ring 1.8s ease-out infinite;
}
@keyframes status-pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55), 0 0 8px rgba(34,197,94,0.6); }
    70% { box-shadow: 0 0 0 7px rgba(34,197,94,0), 0 0 8px rgba(34,197,94,0.6); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0), 0 0 8px rgba(34,197,94,0.6); }
}
@media (prefers-reduced-motion: reduce) {
    .status-dot.running { animation: none; }
}

/* ---------- Code de pairing copiable ---------- */
.pairing-code {
    cursor: pointer;
    user-select: all;
    border-bottom: 1px dashed currentColor;
    transition: filter 0.15s ease;
}
.pairing-code:hover { filter: brightness(1.2); }
.pairing-code::after { content: "  📋"; font-size: 11px; }

/* ---------- Neon fun / nouveau look ---------- */
.hero::after {
    content: "✦  ⚡  ◈  ✦  ◇  ⚡";
    position: absolute;
    top: 18px;
    right: 7%;
    color: rgba(40,231,255,.28);
    letter-spacing: 14px;
    font-size: 18px;
    animation: float-fun 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes float-fun {
    0%,100% { transform: translateY(0) rotate(0deg); opacity:.55; }
    50% { transform: translateY(10px) rotate(2deg); opacity:1; }
}
.feature-card, .stat-card, .instance-card, .auth-card, .deploy-box {
    box-shadow: 0 12px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(155,92,255,.02);
}
.feature-card:hover {
    border-color: rgba(40,231,255,.55);
    transform: translateY(-5px);
    box-shadow: 0 18px 50px rgba(40,231,255,.10);
}
.feature-card .icon {
    filter: drop-shadow(0 0 10px rgba(40,231,255,.25));
}
.pairing-box {
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(40,231,255,.25);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(40,231,255,.07), rgba(155,92,255,.07));
}
.pairing-box .pairing-code {
    display: inline-block;
    margin: 6px 0 4px;
    font-family: var(--font-mono);
    font-size: 17px;
    letter-spacing: 2px;
    color: var(--cyan);
    text-shadow: 0 0 14px rgba(40,231,255,.35);
}
.pairing-box small { display:block; color:var(--text-faint); font-size:11px; line-height:1.4; }
.instance-waiting { color: #d6bfff; margin-top:7px; }
.status-dot.waiting_pairing { background: var(--cyan); box-shadow: 0 0 12px rgba(40,231,255,.65); animation: pairing-pulse 1.5s ease-in-out infinite; }
@keyframes pairing-pulse { 50% { transform: scale(1.45); opacity:.55; } }

.bot-config-modal {
    backdrop-filter: blur(18px);
    border: 1px solid rgba(155, 92, 255, 0.35);
    box-shadow: 0 0 40px rgba(155, 92, 255, 0.18);
}
.config-row {
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:12px 0; border-bottom:1px solid var(--panel-border);
    color:var(--text); font-size:14px; font-weight:600;
}
.config-row input[type="checkbox"] { width:20px; height:20px; accent-color:var(--red); }
.config-inputs { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.config-inputs label { color:var(--text-dim); font-size:12px; font-weight:700; }
.config-inputs input { width:100%; margin-top:6px; padding:10px 12px; border-radius:9px; border:1px solid var(--panel-border); background:var(--bg-soft); color:var(--text); outline:none; }
.config-inputs input:focus { border-color:var(--red); box-shadow:0 0 0 3px var(--red-glow); }
@media (max-width: 620px) { .config-inputs { grid-template-columns:1fr; } }
