/* ============================================================================
   Bolto — Kinetic Typography Onboarding (css/register.css)
   - Bolto Brand Blue Stage (#132c6e -> #1d4ed8 -> #2563eb)
   - White Underline Password Bar that fills Emerald Green as you type
   - Full Interactive Step 5:
       * Contract / NDA Clause Reader + Interactive Electronic Seal Stamp
       * Invoice Summary + Credit Card Registration + Billing Consent
   ============================================================================ */

[hidden] {
    display: none !important;
}

:root {
    --kb-bg-deep: #132c6e;
    --kb-bg-mid: #1d4ed8;
    --kb-bg-bright: #2563eb;
    --kb-text-white: #ffffff;
    --kb-text-soft: rgba(255, 255, 255, 0.85);
    --kb-emerald: #34d399;
    --kb-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
    --kb-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body.register-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--kb-text-white);
    background:
        radial-gradient(960px 640px at 50% 15%, rgba(96, 165, 250, 0.36) 0%, rgba(37, 99, 235, 0) 68%),
        radial-gradient(760px 520px at 88% 88%, rgba(56, 189, 248, 0.2) 0%, rgba(29, 78, 216, 0) 65%),
        linear-gradient(150deg, #132c6e 0%, #1d4ed8 48%, #2563eb 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============================================================================
   1. OPENING SPLASH & LAUNCH OVERLAY
   ============================================================================ */
.register-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background:
        radial-gradient(800px 500px at 50% 35%, rgba(96, 165, 250, 0.35), transparent 70%),
        linear-gradient(150deg, #102660 0%, #1d4ed8 52%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.45s var(--kb-ease-out), visibility 0.45s;
}

.register-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.rs-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.rs-glow-1 {
    width: 360px;
    height: 360px;
    background: rgba(96, 165, 250, 0.35);
    top: -60px;
    left: -60px;
}
.rs-glow-2 {
    width: 340px;
    height: 340px;
    background: rgba(52, 211, 153, 0.22);
    bottom: -60px;
    right: -60px;
}

.rs-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.rs-vault-mark {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.28));
}
.rs-door {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: rsTrace 0.5s var(--kb-ease-out) forwards;
}
.rs-dial {
    stroke-dasharray: 140;
    stroke-dashoffset: 140;
    animation: rsTrace 0.45s var(--kb-ease-out) 0.1s forwards;
}
.rs-spokes {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: rsFade 0.3s ease-out 0.2s forwards, rsSpin 6s linear 0.2s infinite;
}
.rs-core {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: rsPop 0.3s var(--kb-ease-spring) 0.28s forwards;
}
.rs-bolt {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: rsPop 0.3s var(--kb-ease-spring) var(--d, 0.4s) forwards;
}
.rs-pulse-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: rsPulse 1.8s ease-out 0.35s infinite;
}

.rs-headline {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

@keyframes rsTrace { to { stroke-dashoffset: 0; } }
@keyframes rsFade { to { opacity: 1; } }
@keyframes rsSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rsPop {
    0% { opacity: 0; transform: scale(0); }
    70% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes rsPulse {
    0% { opacity: 0.65; transform: scale(0.82); }
    100% { opacity: 0; transform: scale(1.28); }
}

.vault-launch-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.vlo-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(16, 38, 96, 0.96) 0%, rgba(29, 78, 216, 0.96) 100%);
    backdrop-filter: blur(16px);
}
.vlo-stage {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.vlo-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
}
.vlo-sub {
    margin: 0;
    font-size: 0.92rem;
    color: var(--kb-text-soft);
}

/* ============================================================================
   2. KINETIC SHELL & TOP HEADER
   ============================================================================ */
.kinetic-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kinetic-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.14);
    z-index: 50;
}

.kinetic-top-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #34d399 0%, #60a5fa 55%, #ffffff 100%);
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.7);
    transition: width 0.5s var(--kb-ease-spring);
}

.kinetic-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.ka-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}
.ka-orb-1 {
    width: 480px;
    height: 480px;
    background: rgba(96, 165, 250, 0.24);
    top: -120px;
    right: -100px;
}
.ka-orb-2 {
    width: 420px;
    height: 420px;
    background: rgba(52, 211, 153, 0.12);
    bottom: -140px;
    left: -100px;
}

.kinetic-header {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 22px 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kh-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}
.kh-logo {
    width: 36px;
    height: 36px;
}
.kh-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.kh-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kh-step-count {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.82);
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
   3. KINETIC STAGE & TYPOGRAPHY ("バババババッと浮かぶ")
   ============================================================================ */
.kinetic-main {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 24px 64px;
}

.kinetic-form {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.kinetic-error-banner {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.k-slide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.kinetic-question {
    margin: 0 0 26px 0;
    font-size: clamp(1.45rem, 3.5vw, 2.15rem);
    font-weight: 900;
    line-height: 1.38;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 8px 28px rgba(10, 25, 70, 0.25);
    perspective: 600px;
}

.kinetic-question .k-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px) scale(0.86) rotateX(-35deg);
    filter: blur(5px);
    animation: kCharPop 0.38s var(--kb-ease-spring) forwards;
    animation-delay: calc(var(--i, 0) * 18ms);
    will-change: transform, opacity, filter;
}

.kinetic-question .k-char-space {
    width: 0.3em;
}

@keyframes kCharPop {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.86) rotateX(-35deg);
        filter: blur(5px);
    }
    70% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02) rotateX(0deg);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

.k-answer-block {
    width: 100%;
    opacity: 0;
    transform: translateY(18px);
    animation: kAnswerRise 0.44s var(--kb-ease-spring) 0.22s forwards;
}

@keyframes kAnswerRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   4. SINGLE-ITEM CLEAN CONFIRMATION CARD (1項目ずつシンプルに確認)
   ============================================================================ */
.k-single-card {
    width: 100%;
    background: #ffffff;
    color: #0f172a;
    border-radius: 20px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 22px 54px -12px rgba(7, 18, 52, 0.35);
    margin-bottom: 22px;
}

.ksc-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.04em;
}

.ksc-value {
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.015em;
    line-height: 1.3;
    word-break: break-word;
}

/* ============================================================================
   5. WRITE ANSWER DIRECTLY UNDERNEATH + GREEN UNDERLINE PASSWORD BAR
   ============================================================================ */
.k-pill-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.k-pill {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.k-pill.is-active {
    background: #ffffff;
    border-color: #ffffff;
    color: #1d4ed8;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.k-line-input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 12px;
    border-bottom: 2.5px solid rgba(255, 255, 255, 0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.k-line-input-wrap:focus-within {
    border-bottom-color: #ffffff;
}

/* Password White Underline that dynamically fills with Emerald Green */
.k-pw-underline-wrap {
    border-bottom-color: rgba(255, 255, 255, 0.45);
}

.k-pw-underline-fill {
    position: absolute;
    left: 0;
    bottom: -2.5px;
    height: 3.5px;
    width: 0%;
    background: #34d399;
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.75);
    transition: width 0.25s var(--kb-ease-spring), background 0.25s ease;
    pointer-events: none;
}

.k-pw-live-hint {
    margin: 12px 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.k-pw-live-hint.is-complete {
    color: #6ee7b7;
}

.k-field-tag {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    padding: 4px 10px;
    border-radius: 8px;
}

.k-line-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    outline: none;
    padding: 4px 0;
}

.k-line-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
    font-weight: 600;
}

.k-inline-action-btn {
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.k-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

/* NTA Suggest Dropdown */
.k-suggest-list {
    margin-top: 10px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(7, 18, 52, 0.38);
}

.corp-suggest-item {
    width: 100%;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    font-family: inherit;
    text-align: left;
    min-height: 44px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.corp-suggest-item:hover,
.corp-suggest-item:focus-visible {
    background: #eff6ff;
    outline: none;
}
.csi-main {
    min-width: 0;
    flex: 1;
}
.csi-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    overflow-wrap: anywhere;
}
.csi-badge-closed {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 4px;
    vertical-align: middle;
}
.csi-meta {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
    overflow-wrap: anywhere;
}
.csi-pick {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ============================================================================
   6. STEP 4 (TERMS) & STEP 5 (INTERACTIVE CONTRACT / SEAL / BILLING CARD)
   ============================================================================ */
.k-terms-box,
.k-branch-card {
    width: 100%;
    background: #ffffff;
    color: #0f172a;
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 22px 54px -12px rgba(7, 18, 52, 0.35);
    margin-bottom: 20px;
}

.ktb-list {
    margin: 0 0 14px 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.55;
}

.ktb-full-btn {
    border: none;
    background: #eff6ff;
    color: #1d4ed8;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
}

/* Step 5 Interactive Contract / NDA Reader & Seal Box */
.kbc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}
.kbc-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 999px;
}
.kbc-title {
    font-size: 1.12rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.kbc-parties {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
}

.kbc-clause-scroll {
    max-height: 190px;
    overflow-y: auto;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #1e293b;
    margin-bottom: 14px;
}
.kbc-clause-scroll p {
    margin: 0 0 10px 0;
}
.kbc-clause-scroll p:last-child {
    margin-bottom: 0;
}
.kbc-clause-scroll strong {
    color: #0f172a;
}

/* Interactive Seal Stamping Arena */
.kbc-seal-arena {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #fffafa;
    border: 1.5px solid #fecdd3;
}

.kbc-seal-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kbc-seal-frame {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: #ffffff;
    border: 1.5px dashed #f43f5e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.kbc-seal-frame:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.kbc-seal-frame.is-stamped {
    border-style: solid;
    border-color: #fecdd3;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.14);
}

.kbc-seal-frame img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.kbc-seal-frame.is-stamped img {
    animation: kSealStampIn 0.42s var(--kb-ease-spring) forwards;
}

@keyframes kSealStampIn {
    0% { opacity: 0; transform: scale(1.6) rotate(-14deg); }
    70% { opacity: 1; transform: scale(0.92) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.kbc-seal-placeholder {
    font-size: 0.68rem;
    font-weight: 900;
    color: #e11d48;
    text-align: center;
    line-height: 1.25;
}

.kbc-seal-meta {
    min-width: 0;
    flex: 1;
}
.kbc-seal-role {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
}
.kbc-seal-comp {
    display: block;
    font-size: 0.84rem;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kbc-seal-status {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #e11d48;
}
.kbc-seal-status.is-done {
    color: #059669;
}

/* Step 5 Interactive Billing & Credit Card Form */
.kbc-invoice-summary {
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.kbc-inv-amount {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
}

.kbc-cc-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.kbc-cc-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 10px;
}
.kbc-cc-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 4px;
}
.kbc-cc-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    outline: none;
}
.kbc-cc-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.kbc-agree-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    min-height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
}
.kbc-agree-label input {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #1d4ed8;
}

/* ============================================================================
   7. OK BUTTONS & SUB NAVIGATION
   ============================================================================ */
.k-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.k-sub-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px 16px;
}

.k-btn-ok {
    width: 100%;
    min-height: 58px;
    padding: 13px 22px;
    border-radius: 16px;
    border: none;
    background: #ffffff;
    color: #1d4ed8;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 18px 40px -10px rgba(7, 18, 52, 0.36);
    transition: transform 0.18s var(--kb-ease-spring), box-shadow 0.18s ease;
}

.k-btn-ok:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px -10px rgba(7, 18, 52, 0.45);
}

.k-btn-ok:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.k-btn-ok-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 10px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
}

.k-btn-launch .k-btn-ok-badge {
    background: #059669;
}

.k-btn-ok-label {
    flex: 1;
    text-align: left;
    font-size: 1.04rem;
    font-weight: 900;
    color: #0f172a;
}

.k-btn-ok-enter {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 8px;
}

.k-btn-ghost {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    min-height: 36px;
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.k-btn-ghost:hover {
    color: #ffffff;
}

/* ============================================================================
   8. TERMS MODAL & MOBILE
   ============================================================================ */
.k-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(10, 25, 65, 0.72);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ktm-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ktm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 14px;
}
.ktm-close {
    border: none;
    background: #f1f5f9;
    color: #334155;
    font-weight: 800;
    font-size: 0.82rem;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}
.ktm-body {
    font-size: 0.84rem;
    line-height: 1.65;
    color: #334155;
    max-height: 55vh;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .kinetic-header {
        padding: 16px 16px 0;
    }
    .kinetic-main {
        padding: 18px 16px 40px;
    }
    .kinetic-question {
        font-size: 1.38rem;
        margin-bottom: 20px;
    }
    .k-single-card,
    .k-terms-box,
    .k-branch-card {
        padding: 18px 16px;
    }
    .k-name-grid,
    .kbc-seal-arena,
    .kbc-cc-row2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .k-line-input,
    .kbc-cc-input,
    #reg-self-otp-code {
        font-size: 16px !important;
        min-width: 0;
    }
    #btn-search-corp {
        flex-shrink: 0;
    }
    .kbc-seal-col {
        min-width: 0;
    }
    #existing-login-invite-meta,
    .kbc-invoice-summary,
    #existing-login-company,
    #confirm-company-meta,
    .corp-suggest-item .csi-meta {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .kbc-card-mode-row label {
        width: 100%;
    }
    .k-line-input-wrap {
        flex-wrap: wrap;
        gap: 8px 10px;
    }
    #reg-company-name,
    #reg-corp-number,
    #reg-invoice-number {
        flex: 1 1 100%;
        min-width: 0;
        font-size: 16px !important;
    }
    .corp-suggest-item .csi-name {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .corp-suggest-item .csi-pick {
        flex-shrink: 0;
    }
    .k-line-input {
        font-size: 1.15rem !important;
    }
    #btn-resend-self-otp,
    #btn-search-corp,
    .branch-seal-style-btn,
    #branch-seal-upload-btn {
        min-height: 44px;
    }
    .kbc-title,
    .kbc-parties,
    .kbc-clause-scroll,
    .kbc-seal-comp,
    .kbc-badge,
    #self-otp-target-email,
    #invalid-token-desc,
    .ksc-value,
    .kinetic-question {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .kbc-seal-comp {
        white-space: normal;
    }
    #reg-self-otp-code {
        min-width: 0 !important;
        flex: 1 1 180px !important;
    }
    #btn-resend-self-otp {
        flex: 1 1 auto;
    }
    .ktb-full-btn {
        width: 100%;
        min-height: 44px;
    }
    .k-pill {
        min-height: 44px;
    }
    .k-btn-ghost {
        min-height: 44px;
    }
    .k-terms-box a {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }
    .kbc-clause-scroll {
        -webkit-overflow-scrolling: touch;
    }
    .kbc-invoice-summary > div:last-child {
        text-align: left !important;
    }
    #branch-stripe-card-element {
        min-width: 0;
        max-width: 100%;
    }
    .ktm-card {
        padding: 18px 16px;
    }
    .ktm-head {
        gap: 10px;
        flex-wrap: wrap;
    }
    .ktm-close {
        min-height: 42px;
        flex-shrink: 0;
    }
    .kbc-card-mode-row label {
        min-height: 42px;
    }
    .k-inline-action-btn {
        min-height: 44px;
    }
    .ktm-body {
        max-height: 60dvh;
    }
    .k-btn-ok {
        padding: 12px 16px;
    }
    .k-btn-ok-label {
        font-size: 0.96rem;
    }
    .k-btn-ok-enter {
        display: none;
    }
    .k-pill-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .kbc-header {
        flex-wrap: wrap;
        gap: 6px 10px;
    }
    .kbc-seal-arena {
        gap: 12px;
    }
    .kbc-seal-col,
    .k-line-input-wrap,
    .kbc-seal-meta {
        min-width: 0;
        max-width: 100%;
    }
    #branch-stripe-pm-status {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .k-suggest-list {
        max-height: 220px;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    #self-otp-verify-box,
    #self-otp-status-msg {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
