/* ═══════════════════════════════════════════════════════════════════════════
   CORNERSTONE RIS — SIGNUP PAGE
   Split layout: branded left panel + clean right form panel
   ═══════════════════════════════════════════════════════════════════════════ */

/* Self-hosted fonts — no Google Fonts / external CDN. Files live in
   /css/fonts relative to this stylesheet's own location (/css/signup.css),
   so paths below are relative to /css/. */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sora';
    src: url('fonts/Sora-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sora';
    src: url('fonts/Sora-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sora';
    src: url('fonts/Sora-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --su-brand-bg: #0f172a;
    --su-brand-fg: #f1f5f9;
    --su-brand-muted: #94a3b8;
    --su-accent: #3b82f6;
    --su-accent-2: #06b6d4;
    --su-form-bg: #ffffff;
    --su-page-bg: #f8fafc;
    --su-border: #e2e8f0;
    --su-text: #0f172a;
    --su-text-muted: #64748b;
    --su-error-bg: #fef2f2;
    --su-error-fg: #dc2626;
    --su-error-border: #fecaca;
    --su-radius: 12px;
    --su-input-h: 44px;
}

[data-theme="dark"] {
    --su-form-bg: #1e293b;
    --su-page-bg: #0f172a;
    --su-border: #334155;
    --su-text: #f1f5f9;
    --su-text-muted: #94a3b8;
    --su-error-bg: #3b0000;
    --su-error-fg: #fca5a5;
    --su-error-border: #7f1d1d;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--su-page-bg);
    min-height: 100vh;
    display: flex;
    position: relative;
}

/* Background photo — same image as login */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/images/background2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* Dark overlay on top of photo */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] body::after {
    background: rgba(0, 0, 0, 0.72);
}

/* ── Utilities ── */
.su-hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPLIT LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.su-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── LEFT brand panel ── */
.su-brand {
    width: 380px;
    flex-shrink: 0;
    background: var(--su-brand-bg);
    background-image:
        radial-gradient(ellipse 60% 50% at 30% 20%, rgba(59, 130, 246, .18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(6, 182, 212, .12) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 2;
}

.su-brand-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 48px 40px;
    height: 100%;
}

/* Logo */
.su-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.su-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--su-accent), var(--su-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.su-logo-name {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--su-brand-fg);
    letter-spacing: -0.3px;
}

/* Brand headline */
.su-brand-headline {
    flex: 1;
}

.su-brand-headline h1 {
    font-family: 'Sora', sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--su-brand-fg);
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.su-brand-headline h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--su-accent), var(--su-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.su-brand-headline p {
    font-size: 14px;
    color: var(--su-brand-muted);
    line-height: 1.6;
    max-width: 260px;
}

/* Vertical step timeline */
.su-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.su-step {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.su-step.active,
.su-step.done {
    opacity: 1;
}

.su-step-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 2px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--su-brand-muted);
    flex-shrink: 0;
    transition: all 0.3s;
}

.su-step.active .su-step-node {
    background: linear-gradient(135deg, var(--su-accent), var(--su-accent-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .2);
}

.su-step.done .su-step-node {
    background: #16a34a;
    border-color: transparent;
    color: #fff;
}

.su-step-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--su-brand-muted);
}

.su-step-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--su-brand-fg);
}

.su-step-connector {
    width: 2px;
    height: 28px;
    background: rgba(255, 255, 255, .1);
    margin: 4px 0 4px 17px;
    border-radius: 2px;
    transition: background 0.3s;
}

.su-step-connector.done {
    background: #16a34a;
}

/* Trust signals */
.su-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.su-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--su-brand-muted);
}

.su-trust-item i {
    color: var(--su-accent-2);
    width: 14px;
    text-align: center;
}

/* ── RIGHT form panel ── */
.su-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 48px 24px 80px;
    overflow-y: auto;
    background: transparent;
}

.su-form-card {
    width: 100%;
    max-width: 620px;
    background: var(--su-form-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    border: 1px solid var(--su-border);
}

[data-theme="dark"] .su-form-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}

.su-form-header {
    margin-bottom: 28px;
}

.su-form-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--su-text);
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.su-form-header p {
    font-size: 13px;
    color: var(--su-text-muted);
}

.su-footer {
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.su-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--su-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.su-field {
    margin-bottom: 16px;
}

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

.su-field input,
.su-field select {
    display: block;
    width: 100%;
    height: var(--su-input-h);
    padding: 0 12px;
    border: 1.5px solid var(--su-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--su-form-bg);
    color: var(--su-text);
    transition: border-color 0.18s, box-shadow 0.18s;
    appearance: none;
    -webkit-appearance: none;
}

.su-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.su-field input:focus,
.su-field select:focus {
    outline: none;
    border-color: var(--su-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

[data-theme="dark"] .su-field input,
[data-theme="dark"] .su-field select {
    background-color: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.su-hint {
    font-size: 11px;
    color: var(--su-text-muted);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COUNTRY COMBOBOX — searchable dropdown, styled to match .su-field select
   exactly (same height, border, radius, focus ring) so it reads as part of
   the same form language rather than a bolted-on widget.
   ═══════════════════════════════════════════════════════════════════════════ */
.su-combobox {
    position: relative;
}

.su-combobox-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--su-input-h);
    padding: 0 12px;
    border: 1.5px solid var(--su-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--su-form-bg);
    color: var(--su-text);
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s;
}

/* Compact variant — used for the phone-prefix fields, which sit inline
   next to the phone number input rather than taking a full-width row on
   their own like Country. The trigger stays narrow (just enough for
   "NG +234"), but the dropdown panel is deliberately NOT the same narrow
   width — it's fixed wider so the search box and country names have
   room, the same lesson learned from Country's original cramped-column
   bug. */
.su-combobox--compact {
    flex-shrink: 0;
    width: 118px;
}

.su-combobox--compact .su-combobox-trigger {
    width: 118px;
    padding: 0 8px;
}

.su-combobox--compact .su-combobox-value {
    font-size: 13px;
    font-weight: 600;
}

.su-combobox--compact .su-combobox-panel {
    left: 0;
    right: auto;
    width: 250px;
}

.su-combobox-trigger .su-combobox-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.su-combobox-trigger[data-placeholder="true"] .su-combobox-value {
    color: var(--su-text-muted);
}

.su-combobox-trigger i {
    flex-shrink: 0;
    margin-left: 8px;
    font-size: 11px;
    color: var(--su-text-muted);
    transition: transform 0.18s;
}

.su-combobox-trigger:focus,
.su-combobox-trigger[aria-expanded="true"] {
    outline: none;
    border-color: var(--su-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.su-combobox-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.su-combobox-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--su-form-bg);
    border: 1.5px solid var(--su-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
    overflow: hidden;
    animation: suComboIn 0.14s ease-out;
}

[data-theme="dark"] .su-combobox-panel {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}

@keyframes suComboIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.su-combobox-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--su-border);
}

.su-combobox-search i {
    font-size: 12px;
    color: var(--su-text-muted);
    flex-shrink: 0;
}

.su-combobox-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: var(--su-text);
    min-width: 0;
}

.su-combobox-search input::placeholder {
    color: var(--su-text-muted);
}

/* Fixed to roughly 6.5 rows tall — "a few countries" visible at once,
   the rest reachable by scrolling or narrowed by the search box. */
.su-combobox-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 232px;
    overflow-y: auto;
}

.su-combobox-option {
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--su-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background-color 0.12s, color 0.12s;
}

.su-combobox-option .su-combobox-check {
    font-size: 11px;
    color: var(--su-accent);
    opacity: 0;
    visibility: hidden;
}

.su-combobox-option:hover,
.su-combobox-option.su-combobox-active {
    background: rgba(59, 130, 246, .1);
}

/* Selected row — solid accent fill + white text/check, matching the
   reference: the selected country isn't just checkmarked, the whole row
   is highlighted so it's unmistakable at a glance while scrolling. */
.su-combobox-option[aria-selected="true"] {
    background: var(--su-accent);
    color: #fff;
    font-weight: 600;
}

.su-combobox-option[aria-selected="true"] .su-combobox-check {
    opacity: 1;
    visibility: visible;
    color: #fff;
}

.su-combobox-option[aria-selected="true"]:hover {
    background: var(--su-accent);
}

.su-combobox-empty {
    padding: 18px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--su-text-muted);
}

[data-theme="dark"] .su-combobox-trigger {
    background-color: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .su-combobox-panel {
    background-color: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .su-combobox-search {
    border-bottom-color: #334155;
}

[data-theme="dark"] .su-combobox-option:hover,
[data-theme="dark"] .su-combobox-option.su-combobox-active {
    background: rgba(59, 130, 246, .18);
}

.su-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .su-row {
        grid-template-columns: 1fr;
    }
}

/* ── Phone prefix selector ──
   Two independent controls side by side (the compact combobox + the tel
   input), each with its own border/radius — not a single merged pill
   like the old native-<select> version. The tel input needs no special
   rule here: it's a normal .su-field input and already gets that
   styling for free just by being nested inside a .su-field ancestor;
   flex:1 is the only thing it needs on top of that, to fill the
   remaining row width next to the fixed-width prefix combobox. */
.su-phone-wrap {
    display: flex;
    gap: 8px;
    width: 100%;
}

.su-phone-wrap input[type="tel"] {
    flex: 1 1 0;
    min-width: 0;
}

/* ── Password eye toggle ── */
.su-password-wrap {
    position: relative;
}

.su-eye {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: none;
    border: none;
    color: var(--su-text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

.su-eye:hover {
    color: var(--su-accent);
}

/* ── Trial banner ── */
.su-trial-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.5;
}

[data-theme="dark"] .su-trial-banner {
    background: rgba(59, 130, 246, .1);
    border-color: #1e3a8a;
    color: #bfdbfe;
}

.su-trial-banner i {
    color: var(--su-accent);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Primary button ── */
.su-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--su-accent), #2563eb);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .35);
    transition: all 0.2s;
    letter-spacing: -0.2px;
}

.su-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, .45);
}

.su-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Back/link buttons ── */
.su-back-link,
.su-back-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--su-accent);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.su-back-link:hover,
.su-back-btn:hover {
    text-decoration: underline;
}

/* ── Error box ── */
.su-error {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--su-error-bg);
    border: 1px solid var(--su-error-border);
    border-radius: 10px;
    color: var(--su-error-fg);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* ── Panel slide animations ── */
.su-slide-forward {
    animation: suSlideIn 0.26s ease;
}

.su-slide-back {
    animation: suSlideBack 0.26s ease;
}

@keyframes suSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes suSlideBack {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   OTP OVERLAY — modern full-screen modal
   ═══════════════════════════════════════════════════════════════════════════ */
.su-otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.su-otp-card {
    width: 100%;
    max-width: 520px;
    background: var(--su-form-bg);
    border-radius: 24px;
    padding: 52px 52px 44px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
    border: 1px solid var(--su-border);
    text-align: center;
    animation: suOtpIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes suOtpIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Shield SVG */
.su-otp-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
}

.su-otp-ring {
    stroke-dashoffset: 239;
    animation: suRingDraw 1.2s ease forwards 0.3s;
}

@keyframes suRingDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.su-otp-check {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: suCheckDraw 0.4s ease forwards 1.1s;
}

@keyframes suCheckDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.su-otp-card h2 {
    font-family: 'Sora', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--su-text);
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}

.su-otp-subtitle {
    font-size: 13px;
    color: var(--su-text-muted);
    line-height: 1.55;
    margin-bottom: 28px;
}

/* 8-digit split input */
.su-otp-digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.su-otp-digit {
    width: 48px;
    height: 62px;
    border: 2px solid var(--su-border);
    border-radius: 10px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: var(--su-text);
    background: var(--su-form-bg);
    transition: border-color 0.18s, box-shadow 0.18s;
    caret-color: var(--su-accent);
    font-family: 'Inter', monospace;
}

.su-otp-digit:focus {
    outline: none;
    border-color: var(--su-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.su-otp-digit.su-otp-filled {
    border-color: var(--su-accent);
    background: rgba(59, 130, 246, .04);
}

[data-theme="dark"] .su-otp-digit {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.su-otp-sep {
    font-size: 18px;
    color: var(--su-text-muted);
    font-weight: 300;
    margin: 0 2px;
    user-select: none;
}

.su-otp-error {
    text-align: left;
    margin-bottom: 4px;
}

.su-otp-submit {
    margin-top: 8px;
}

.su-otp-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.su-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-family: inherit;
    color: var(--su-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.su-link-btn:hover {
    text-decoration: underline;
}

.su-link-btn:disabled {
    color: var(--su-text-muted);
    cursor: not-allowed;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WEBHOOK SECRET OVERLAY — reuses .su-otp-overlay/.su-otp-card as the base
   ═══════════════════════════════════════════════════════════════════════════ */
.su-webhook-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--su-accent), #2563eb);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, .35);
}

.su-otp-subtitle code {
    background: rgba(59, 130, 246, .1);
    color: var(--su-accent);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 12px;
    font-family: 'Inter', monospace;
}

.su-webhook-secret-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.su-webhook-secret-input {
    flex: 1;
    height: 46px;
    padding: 0 14px;
    border: 2px solid var(--su-border);
    border-radius: 10px;
    background: var(--su-form-bg);
    color: var(--su-text);
    font-family: 'Inter', monospace;
    font-size: 13px;
    letter-spacing: 0.2px;
    text-align: left;
    overflow-x: auto;
}

.su-webhook-secret-input:focus {
    outline: none;
    border-color: var(--su-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.su-webhook-copy-btn {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--su-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.18s;
}

.su-webhook-copy-btn:hover {
    background: #2563eb;
}

.su-webhook-copy-btn.su-copied {
    background: #16a34a;
}

.su-webhook-copy-status {
    min-height: 16px;
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: left;
}

.su-webhook-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    padding: 10px 12px;
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .3);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--su-text-muted);
    margin-bottom: 4px;
}

.su-webhook-warning i {
    color: #f59e0b;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ── DICOM setup downloads (below warning, above continue) ──────────── */
.su-webhook-divider {
    height: 1px;
    background: var(--su-border);
    margin: 16px 0 14px;
}

.su-webhook-downloads-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--su-text);
    margin-bottom: 4px;
    text-align: left;
}

.su-webhook-downloads-label i {
    color: var(--su-accent);
    font-size: 12px;
}

.su-webhook-downloads-desc {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--su-text-muted);
    text-align: left;
    margin: 0 0 12px;
}

.su-webhook-downloads-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.su-webhook-download-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border: 2px solid var(--su-border);
    border-radius: 10px;
    background: var(--su-form-bg);
    color: var(--su-text);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.su-webhook-download-btn:hover {
    border-color: var(--su-accent);
    color: var(--su-accent);
    background: rgba(59, 130, 246, .06);
}

.su-webhook-download-btn i {
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .su-brand {
        display: none;
    }

    .su-form-panel {
        padding: 32px 16px 60px;
    }

    .su-form-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .su-otp-digits {
        gap: 5px;
    }

    .su-otp-digit {
        width: 34px;
        height: 46px;
        font-size: 18px;
    }

    .su-otp-card {
        padding: 28px 20px;
    }
}
