/* ==========================================================================
   TikTok Verification Badge Program – Stylesheet
   Light (default) & dark mode via `data-theme` attribute on <html>
   ========================================================================== */

:root,
:root[data-theme="light"] {
    --tiktok-cyan: #00C4BE;
    --tiktok-cyan-soft: #E8FCFB;
    --tiktok-pink: #FE2C55;
    --tiktok-pink-soft: #FFE7EC;
    --tiktok-gradient: linear-gradient(135deg, #25F4EE 0%, #FE2C55 100%);

    --bg: #f5f5f7;
    --bg-radial-1: rgba(254, 44, 85, 0.10);
    --bg-radial-2: rgba(37, 244, 238, 0.10);
    --surface: #ffffff;
    --surface-2: #f3f3f5;
    --surface-3: rgba(0, 0, 0, 0.04);
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --text: #161823;
    --text-muted: #6b7280;
    --text-soft: rgba(22, 24, 35, 0.6);
    --shadow-card: 0 30px 70px -30px rgba(22, 24, 35, 0.25),
                   0 8px 20px -8px rgba(22, 24, 35, 0.12);
    --shadow-pink: 0 8px 24px rgba(254, 44, 85, 0.30);
    --header-bg: rgba(255, 255, 255, 0.78);
    --input-bg: #ffffff;
    --input-bg-focus: #fff;
    --danger: #ef4444;
    --danger-soft: #fee2e2;
}

:root[data-theme="dark"] {
    --tiktok-cyan: #25F4EE;
    --tiktok-cyan-soft: rgba(37, 244, 238, 0.12);
    --tiktok-pink: #FE2C55;
    --tiktok-pink-soft: rgba(254, 44, 85, 0.12);
    --tiktok-gradient: linear-gradient(135deg, #25F4EE 0%, #FE2C55 100%);

    --bg: #000000;
    --bg-radial-1: rgba(254, 44, 85, 0.18);
    --bg-radial-2: rgba(37, 244, 238, 0.14);
    --surface: #161616;
    --surface-2: #1f1f1f;
    --surface-3: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #ffffff;
    --text-muted: #9aa0a6;
    --text-soft: rgba(255, 255, 255, 0.7);
    --shadow-card: 0 30px 70px -30px rgba(0, 0, 0, 0.9),
                   0 8px 30px rgba(0, 0, 0, 0.55);
    --shadow-pink: 0 10px 30px rgba(254, 44, 85, 0.45);
    --header-bg: rgba(0, 0, 0, 0.72);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-bg-focus: rgba(37, 244, 238, 0.05);
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "TikTokFont", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 15% 20%, var(--bg-radial-1), transparent 40%),
        radial-gradient(circle at 85% 80%, var(--bg-radial-2), transparent 40%),
        var(--bg);
}

a { color: inherit; text-decoration: none; }

.i18n-pending [data-i18n], .i18n-pending [data-i18n-html] { visibility: hidden; }

/* ============== HEADER ============== */
.sk-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}

.sk-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sk-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.sk-logo-mark {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sk-logo-mark svg { width: 100%; height: 100%; }

.sk-logo-text {
    background: var(--tiktok-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sk-header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.sk-header-nav .badge-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--tiktok-cyan-soft);
    border: 1px solid color-mix(in srgb, var(--tiktok-cyan) 35%, transparent);
    color: var(--tiktok-cyan);
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sk-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.sk-icon-btn:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
    transform: translateY(-1px);
}
.sk-icon-btn svg { width: 18px; height: 18px; }

.sk-theme-toggle .moon { display: none; }
.sk-theme-toggle .sun { display: inline; }
:root[data-theme="dark"] .sk-theme-toggle .moon { display: inline; }
:root[data-theme="dark"] .sk-theme-toggle .sun { display: none; }

/* ============== LANGUAGE MENU ============== */
.sk-lang-menu { position: relative; }

.sk-lang-toggle {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.sk-lang-toggle .caret { transition: transform 0.2s; opacity: 0.7; }
.sk-lang-menu[data-open="true"] .sk-lang-toggle .caret { transform: rotate(180deg); }

.sk-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    box-shadow: 0 18px 50px -12px rgba(0,0,0,0.25);
    list-style: none;
    padding: 6px;
    z-index: 110;
    overflow: hidden;
    animation: skDropFade 0.18s ease-out both;
}

@keyframes skDropFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.sk-lang-dropdown li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    transition: background 0.15s;
}
.sk-lang-dropdown li:hover { background: var(--surface-2); }
.sk-lang-dropdown li.active { background: var(--tiktok-cyan-soft); color: var(--tiktok-cyan); font-weight: 600; }
.sk-lang-dropdown li.active svg { margin-left: auto; }
.sk-lang-dropdown .lang-code {
    font-weight: 700;
    font-size: 11px;
    background: var(--surface-3);
    color: var(--text-muted);
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.sk-lang-dropdown li.active .lang-code { background: rgba(0,196,190,0.15); color: var(--tiktok-cyan); }
.sk-lang-dropdown .lang-name { flex: 1; }

/* ============== MAIN ============== */
.sk-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.sk-container { width: 100%; max-width: 560px; margin: 0 auto; }
.sk-container--wide { max-width: 720px; }

/* ============== CARD ============== */
.sk-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.sk-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.45), transparent 30%, transparent 70%, rgba(254, 44, 85, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.55;
}

/* ============== TITLES ============== */
.sk-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
    line-height: 1.2;
    color: var(--text);
}
.sk-title .accent {
    background: var(--tiktok-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sk-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}
.sk-subtitle strong { color: var(--text); }

a.link, .sk-subtitle a { color: var(--tiktok-cyan); }
a.link:hover, .sk-subtitle a:hover { text-decoration: underline; }

/* ============== FORM ============== */
.sk-form-group { margin-bottom: 18px; }

.sk-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.sk-label .req { color: var(--tiktok-pink); }

.sk-input-wrap { position: relative; }

.sk-input-wrap .prefix-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.sk-input,
.sk-textarea,
.sk-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1.5px solid var(--border-strong);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.sk-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
:root[data-theme="dark"] .sk-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

.sk-input.has-icon { padding-left: 46px; }
.sk-input.has-suffix { padding-right: 60px; }

.sk-input::placeholder,
.sk-textarea::placeholder { color: var(--text-soft); opacity: 0.55; }

.sk-input:focus,
.sk-textarea:focus,
.sk-select:focus {
    border-color: var(--tiktok-cyan);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tiktok-cyan) 20%, transparent);
}

.sk-textarea { min-height: 130px; resize: vertical; }

.sk-help { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.sk-input-counter { text-align: right; font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.sk-input-row { display: flex; gap: 10px; }
.sk-input-row > .sk-select.dial-select { max-width: 110px; flex: none; }
.sk-input-row > .sk-input { flex: 1; }

.sk-input-suffix {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--tiktok-cyan);
    font-weight: 600;
    font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
}
.sk-input-suffix:hover { background: var(--tiktok-cyan-soft); }

/* ============== OTP / CODE INPUT ============== */
.sk-otp { display: flex; gap: 10px; justify-content: center; margin: 24px 0 8px; }

.sk-otp input {
    width: 56px;
    height: 64px;
    background: var(--input-bg);
    border: 1.5px solid var(--border-strong);
    border-radius: 14px;
    color: var(--text);
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.sk-otp input:focus {
    border-color: var(--tiktok-pink);
    background: var(--tiktok-pink-soft);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tiktok-pink) 22%, transparent);
    transform: translateY(-2px);
}
.sk-otp input.filled {
    border-color: var(--tiktok-cyan);
    background: var(--tiktok-cyan-soft);
}

.sk-otp-meta { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: 13px; }
.sk-otp-meta a { color: var(--tiktok-cyan); font-weight: 600; }
.sk-otp-meta a:hover { text-decoration: underline; }

/* ============== BUTTONS ============== */
.sk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    text-decoration: none;
    user-select: none;
}

.sk-btn--primary {
    background: var(--tiktok-pink);
    color: #fff;
    box-shadow: var(--shadow-pink);
}
.sk-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--tiktok-pink) 55%, transparent);
}
.sk-btn--primary:active { transform: translateY(0); }

.sk-btn--gradient {
    background: var(--tiktok-gradient);
    color: #fff;
    box-shadow: var(--shadow-pink);
    position: relative;
    overflow: hidden;
}
.sk-btn--gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.sk-btn--gradient:hover::after { transform: translateX(100%); }
.sk-btn--gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px color-mix(in srgb, var(--tiktok-pink) 55%, transparent);
}

.sk-btn--ghost {
    background: var(--surface-3);
    color: var(--text);
    border: 1px solid var(--border);
}
.sk-btn--ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }

.sk-btn--block { width: 100%; }
.sk-btn--lg { padding: 17px 32px; font-size: 16px; }

.sk-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.sk-btn-row { display: flex; gap: 12px; margin-top: 28px; }
.sk-btn-row .sk-btn { flex: 1; }

/* ============== HERO (LANDING) ============== */
.sk-hero { text-align: center; padding: 20px 0; }

.sk-hero-badge-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: var(--tiktok-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(37, 244, 238, 0.40), 0 0 100px rgba(254, 44, 85, 0.30);
    position: relative;
    animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.sk-hero-badge-icon svg {
    width: 60px;
    height: 60px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.sk-hero-badge-icon::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed color-mix(in srgb, var(--text) 25%, transparent);
    animation: spin 18s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.sk-hero h1 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text);
}

.sk-hero p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
.sk-hero p strong { color: var(--text); }

/* ============== FEATURE LIST ============== */
.sk-features {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.sk-feature {
    text-align: left;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.2s;
}
.sk-feature:hover {
    border-color: color-mix(in srgb, var(--tiktok-cyan) 35%, transparent);
    transform: translateY(-3px);
}

.sk-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--tiktok-cyan-soft);
    color: var(--tiktok-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.sk-feature h3 { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.sk-feature p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ============== INFO BOX / NOTICE ============== */
.sk-notice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: var(--tiktok-cyan-soft);
    border: 1px solid color-mix(in srgb, var(--tiktok-cyan) 30%, transparent);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.55;
}
.sk-notice .icon { flex-shrink: 0; color: var(--tiktok-cyan); margin-top: 2px; }
.sk-notice strong { color: var(--text); }

.sk-notice--warn {
    background: var(--tiktok-pink-soft);
    border-color: color-mix(in srgb, var(--tiktok-pink) 30%, transparent);
}
.sk-notice--warn .icon { color: var(--tiktok-pink); }

/* ============== USER PREVIEW ============== */
.sk-user-preview {
    /* Hidden by default – takes ZERO space until .show is added. */
    display: none;
    margin: 0 0 18px;
    padding: 16px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 14px;
    align-items: center;
    gap: 14px;
}
.sk-user-preview.show {
    display: flex;
    animation: skUserPreviewIn 0.28s cubic-bezier(.4,0,.2,1) both;
}
@keyframes skUserPreviewIn {
    0%   { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: none; }
}

.sk-user-preview .avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--tiktok-gradient);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; color: #fff;
}
.sk-user-preview .meta { flex: 1; }
.sk-user-preview .name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; color: var(--text); }
.sk-user-preview .handle { color: var(--text-muted); font-size: 12px; }
.sk-user-preview .preview-tag {
    font-size: 11px;
    color: var(--tiktok-cyan);
    font-weight: 700;
    padding: 4px 10px;
    background: var(--tiktok-cyan-soft);
    border-radius: 999px;
}

/* ============== REASON CHECKBOXES ============== */
.sk-reason-list { display: grid; gap: 10px; margin-bottom: 22px; }

.sk-reason-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.sk-reason-item:hover {
    border-color: color-mix(in srgb, var(--tiktok-cyan) 35%, transparent);
    background: var(--surface-2);
}

.sk-reason-item input { display: none; }

.sk-reason-item .check {
    width: 22px; height: 22px;
    border-radius: 6px;
    border: 1.5px solid var(--border-strong);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}

.sk-reason-item .check svg { width: 14px; height: 14px; color: #fff; opacity: 0; }

.sk-reason-item input:checked ~ .check {
    background: var(--tiktok-pink);
    border-color: var(--tiktok-pink);
}
.sk-reason-item input:checked ~ .check svg { opacity: 1; }
.sk-reason-item:has(input:checked) {
    border-color: var(--tiktok-pink);
    background: var(--tiktok-pink-soft);
}

.sk-reason-item .label { font-size: 14px; font-weight: 500; color: var(--text); flex: 1; }
.sk-reason-item .label small {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* ============== GEO HINT ============== */
.sk-geo-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--tiktok-cyan);
    font-weight: 600;
}

/* ============== ERROR PAGE ============== */
.sk-error-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6a6a 0%, #FE2C55 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(254, 44, 85, 0.40);
    position: relative;
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97);
}
.sk-error-icon svg { width: 56px; height: 56px; color: #fff; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.sk-error-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--danger-soft);
    border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
    color: var(--danger);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ============== SUCCESS PAGE ============== */
.sk-success-icon {
    width: 130px;
    height: 130px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: var(--tiktok-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2s infinite;
}

.sk-success-icon svg { width: 70px; height: 70px; color: #fff; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.45), 0 0 0 0 rgba(37, 244, 238, 0.45); }
    70% { box-shadow: 0 0 0 30px rgba(254, 44, 85, 0), 0 0 0 50px rgba(37, 244, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0), 0 0 0 0 rgba(37, 244, 238, 0); }
}

.sk-success-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 30px 0;
}
.sk-success-summary .item {
    padding: 18px 12px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: left;
}
.sk-success-summary .item .lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sk-success-summary .item .val {
    font-size: 14px;
    font-weight: 800;
    margin-top: 6px;
    color: var(--text);
}
.sk-success-summary .item .val.ticket { color: var(--tiktok-cyan); letter-spacing: 0.6px; }
.sk-success-summary .item .val.warning { color: #f5a524; }

.sk-confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* ============== FOOTER ============== */
.sk-footer {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.sk-footer a { color: var(--text-muted); margin: 0 8px; }
.sk-footer a:hover { color: var(--text); }

/* ============== EYEBROW (for steps that still want a label) ============== */
.sk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--tiktok-cyan-soft);
    border: 1px solid color-mix(in srgb, var(--tiktok-cyan) 35%, transparent);
    color: var(--tiktok-cyan);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ============== ANIMATIONS ============== */
.sk-fade-in { animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.sk-fade-in-stagger > * { opacity: 0; animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.sk-fade-in-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.sk-fade-in-stagger > *:nth-child(2) { animation-delay: 0.15s; }
.sk-fade-in-stagger > *:nth-child(3) { animation-delay: 0.25s; }
.sk-fade-in-stagger > *:nth-child(4) { animation-delay: 0.35s; }
.sk-fade-in-stagger > *:nth-child(5) { animation-delay: 0.45s; }

/* ============== CHAT WIDGET ============== */
.sk-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
}

.sk-chat-fab {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--tiktok-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(254, 44, 85, 0.40), 0 0 0 0 rgba(37, 244, 238, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(.5,1.6,.4,1);
    animation: chatPulse 2.6s infinite;
}
.sk-chat-fab:hover { transform: scale(1.08); }
.sk-chat-fab svg { width: 26px; height: 26px; transition: opacity 0.2s, transform 0.2s; }
.sk-chat-fab .close-ic { display: none; }
.sk-chat[data-open="true"] .sk-chat-fab .open-ic { display: none; }
.sk-chat[data-open="true"] .sk-chat-fab .close-ic { display: block; }
.sk-chat[data-open="true"] .sk-chat-fab { animation: none; }

@keyframes chatPulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(254, 44, 85, 0.40), 0 0 0 0 rgba(37, 244, 238, 0.5); }
    50% { box-shadow: 0 12px 30px rgba(254, 44, 85, 0.40), 0 0 0 12px rgba(37, 244, 238, 0); }
}

.sk-chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--tiktok-pink);
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--tiktok-pink);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sk-chat-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.30), 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: chatPanelOpen 0.25s cubic-bezier(.4,0,.2,1) both;
}

/* Force-hide when the [hidden] attribute is present – overrides display:flex above. */
.sk-chat-panel[hidden] { display: none !important; }

/* Closing animation – mirror of chatPanelOpen so close looks smooth, not snappy. */
.sk-chat-panel--closing {
    animation: chatPanelClose 0.22s cubic-bezier(.4,0,.2,1) both !important;
    pointer-events: none;
}
@keyframes chatPanelClose {
    0%   { opacity: 1; transform: scale(1)    translateY(0); }
    100% { opacity: 0; transform: scale(0.85) translateY(20px); }
}

@keyframes chatPanelOpen {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.sk-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--tiktok-gradient);
    color: #fff;
}
.sk-chat-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sk-chat-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
}
.sk-chat-avatar svg { width: 20px; height: 20px; }
.sk-chat-title { font-size: 14px; font-weight: 800; line-height: 1.2; }
.sk-chat-status {
    font-size: 11px; opacity: 0.85;
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 2px;
}
.sk-chat-status .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 0 #fff;
}
.sk-chat-status .dot--online { background: #2ecc71; box-shadow: 0 0 8px #2ecc71; }
.sk-chat-status .dot--offline { background: #ff5c5c; }
.sk-chat-status .dot--connecting { background: #ffd166; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.sk-chat-close {
    background: rgba(255,255,255,0.15);
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.sk-chat-close:hover { background: rgba(255,255,255,0.3); }
.sk-chat-close svg { width: 16px; height: 16px; }

.sk-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.sk-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 86%;
    animation: msgIn 0.25s ease-out both;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sk-msg-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--tiktok-cyan-soft);
    color: var(--tiktok-cyan);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sk-msg-avatar svg { width: 14px; height: 14px; }

.sk-msg-bubble {
    padding: 10px 14px;
    background: var(--surface-2);
    border-radius: 14px 14px 14px 4px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.sk-msg--me {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.sk-msg--me .sk-msg-avatar { display: none; }
.sk-msg--me .sk-msg-bubble {
    background: var(--tiktok-pink);
    color: #fff;
    border-radius: 14px 14px 4px 14px;
}

.sk-msg--system .sk-msg-bubble {
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-style: italic;
    border-radius: 0;
    padding: 4px 8px;
    text-align: center;
    width: 100%;
}
.sk-msg--system { align-self: center; max-width: 100%; }
.sk-msg--system .sk-msg-avatar { display: none; }

.sk-chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.sk-chat-input input {
    flex: 1;
    padding: 12px 14px;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.sk-chat-input input:focus { border-color: var(--tiktok-cyan); }
.sk-chat-send {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--tiktok-pink);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}
.sk-chat-send:hover { transform: scale(1.06); box-shadow: var(--shadow-pink); }
.sk-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.sk-chat-send svg { width: 16px; height: 16px; }

/* ============== ADMIN CHAT CONSOLE ============== */
.sk-admin {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 130px);
    box-shadow: var(--shadow-card);
}
.sk-admin-sidebar {
    border-right: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
}
.sk-admin-sidebar header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.sk-admin-sidebar header h2 {
    font-size: 18px;
    color: var(--text);
    margin: 0;
    font-weight: 800;
}
.sk-admin-sidebar header .meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: inline-flex; align-items: center; gap: 6px;
}
.sk-admin-sidebar header .meta .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ffd166;
}
.sk-admin-sidebar header .meta.online .dot { background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }

.sk-admin-userlist {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.sk-admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}
.sk-admin-user:hover { background: var(--surface-3); }
.sk-admin-user.active { background: var(--tiktok-cyan-soft); }
.sk-admin-user .avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--tiktok-gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
    flex-shrink: 0;
}
.sk-admin-user .name { font-weight: 700; font-size: 14px; color: var(--text); }
.sk-admin-user .last { font-size: 12px; color: var(--text-muted); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.sk-admin-user .unread {
    margin-left: auto;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--tiktok-pink); color: #fff;
    font-size: 10px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.sk-admin-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.sk-admin-main {
    display: flex;
    flex-direction: column;
    background: var(--surface);
}
.sk-admin-thread-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.sk-admin-thread-header .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--tiktok-gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.sk-admin-thread-header .info { flex: 1; }
.sk-admin-thread-header .name { font-size: 15px; font-weight: 700; color: var(--text); }
.sk-admin-thread-header .sub { font-size: 12px; color: var(--text-muted); }

.sk-admin-thread {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--surface-2);
    display: flex; flex-direction: column; gap: 10px;
}

/* Admin view: visitor messages get a hard, contrasting white card so the
 * operator can scan them at a glance. Mirror of .sk-msg--me but inverted. */
.sk-admin-thread .sk-msg--agent .sk-msg-bubble {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] .sk-admin-thread .sk-msg--agent .sk-msg-bubble {
    background: #ffffff;
    color: #111827;
    border-color: transparent;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .sk-admin-thread .sk-msg--agent .sk-msg-avatar {
    background: #ffffff;
    color: #25F4EE;
}

/* Highlight a forceadmin row when WS pushes an update. */
@keyframes faRowFlash {
    0%   { background: rgba(254, 44, 85, 0.18); }
    100% { background: transparent; }
}
tr.fa-flash td { animation: faRowFlash 1.6s ease-out both; }

/* ============== RESPONSIVE ============== */
@media (max-width: 720px) {
    .sk-admin {
        grid-template-columns: 1fr;
        height: calc(100vh - 90px);
    }
    .sk-admin-sidebar { display: none; }
    .sk-admin[data-show-sidebar="true"] .sk-admin-sidebar { display: flex; }
    .sk-admin[data-show-sidebar="true"] .sk-admin-main { display: none; }
}

@media (max-width: 600px) {
    .sk-card { padding: 28px 22px; border-radius: 20px; }
    .sk-title { font-size: 22px; }
    .sk-hero h1 { font-size: 30px; }
    .sk-otp { gap: 6px; }
    .sk-otp input { width: 44px; height: 54px; font-size: 22px; }
    .sk-features { grid-template-columns: 1fr; }
    .sk-success-summary { grid-template-columns: 1fr; }
    .sk-btn-row { flex-direction: column-reverse; }
    .sk-header-nav .badge-pill { display: none; }

    .sk-chat { right: 14px; bottom: 14px; }
    .sk-chat-fab { width: 46px; height: 46px; }
    .sk-chat-fab svg { width: 22px; height: 22px; }
    .sk-chat-badge { min-width: 16px; height: 16px; font-size: 10px; }
    .sk-chat-panel {
        width: calc(100vw - 28px);
        height: calc(100vh - 100px);
        bottom: 56px;
    }
}

/* ============== HELPERS ============== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-8 { gap: 8px; }
.flex-row { display: flex; align-items: center; }

/* ============== INLINE FORM ERROR (h-pages) ==============
 * Sits directly below the input on the error variants of each step.
 * Same look in light & dark themes — driven by --danger tokens. */
.sk-form-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: var(--danger-soft, #fee2e2);
    color: #b91c1c;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    animation: skFormErrorIn 360ms cubic-bezier(.2,.7,.2,1) both;
}
:root[data-theme="dark"] .sk-form-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}
.sk-form-error .icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sk-form-error .icon svg { width: 14px; height: 14px; }
@keyframes skFormErrorIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============== FULL-PAGE LOADING OVERLAY ==============
 * Triggered by window.SkShowLoading() after a step's form is submitted
 * via the WS pipeline. Holds the visitor here until the admin pushes
 * a navigate event back through the WebSocket. */
.sk-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 17, 24, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}
:root[data-theme="light"] .sk-loading-overlay {
    background: rgba(245, 245, 247, 0.72);
}
.sk-loading-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}
.sk-loading-card {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: skLoadingPop 320ms cubic-bezier(.2,.8,.2,1) both;
}
.sk-loading-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(0,0,0,0.08);
    border-top-color: var(--tiktok-pink);
    border-right-color: var(--tiktok-cyan);
    animation: spin 0.85s linear infinite;
}
:root[data-theme="dark"] .sk-loading-ring {
    border-color: rgba(255,255,255,0.10);
    border-top-color: var(--tiktok-pink);
    border-right-color: var(--tiktok-cyan);
}
@keyframes skLoadingPop {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}
