/* ═══════════════════════════════════════════════════════════════
   BUMAGA SERVICE — 2FA Manager
   Namespace: totp-*
   Dependencies: tokens.css (--bp-* variables)
   Design source: labels.css / otc-feed.css rhythm
   ═══════════════════════════════════════════════════════════════ */

.totp-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    color: var(--bp-text);
    font-family: var(--bp-sans);
}

/* ══════════════════════════════════════════════════════════════
   HERO — copied rhythm from labels/otc
   ══════════════════════════════════════════════════════════════ */

.totp-hero {
    text-align: center;
    margin-bottom: 40px;
}

.totp-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--bp-text);
    font-family: var(--bp-sans);
}

.totp-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bp-accent) 0%, #2d7cd6 100%);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow-accent);
    flex-shrink: 0;
}

.totp-hero-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.totp-hero-subtitle {
    color: var(--bp-text-secondary);
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   STATS BAR — copied rhythm from otc-feed
   ══════════════════════════════════════════════════════════════ */

.totp-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--bp-text-secondary);
}

.totp-stats-bar .totp-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.totp-stats-bar .totp-stat-icon {
    font-size: 14px;
}

.totp-stats-bar .totp-stat-value {
    font-weight: 600;
    color: var(--bp-text);
    font-family: var(--bp-mono);
}

.totp-stats-bar .totp-stat-value.green {
    color: var(--bp-success);
}

.totp-stats-bar .totp-stat-divider {
    width: 1px;
    height: 20px;
    background: var(--bp-border);
}

/* ══════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════════════════════ */

.totp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: start;
}

.totp-panel,
.totp-guest-card,
.totp-security {
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 24px;
}

.totp-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.totp-panel-header.compact {
    margin-bottom: 18px;
}

.totp-panel h2,
.totp-guest-card h2,
.totp-security h2 {
    margin: 0;
    color: var(--bp-text);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.totp-panel p,
.totp-guest-card p {
    margin: 8px 0 0;
    color: var(--bp-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.totp-count {
    min-width: 42px;
    height: 34px;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-pill, 999px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bp-accent);
    font-family: var(--bp-mono);
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   ACCOUNT CARDS
   ══════════════════════════════════════════════════════════════ */

.totp-grid {
    display: grid;
    gap: 12px;
}

.totp-card {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 16px;
    transition: border-color var(--bp-transition-fast);
}

.totp-card:hover {
    border-color: var(--bp-border-hover);
}

.totp-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.totp-card-name {
    color: var(--bp-text);
    font-size: 16px;
    font-weight: 800;
}

.totp-card-meta {
    margin-top: 5px;
    color: var(--bp-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.totp-code-placeholder {
    width: 100%;
    margin-top: 14px;
    border: 1px solid var(--bp-border);
    background: rgba(74, 158, 255, 0.06);
    border-radius: var(--bp-radius-sm);
    padding: 14px 16px;
    text-align: center;
    color: var(--bp-accent);
    font-family: var(--bp-mono);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color var(--bp-transition-fast), background var(--bp-transition-fast);
}

.totp-code-placeholder:hover {
    border-color: var(--bp-accent);
    background: var(--bp-accent-dim);
}

.totp-delete-btn {
    border: 1px solid var(--bp-border);
    background: transparent;
    color: var(--bp-red);
    border-radius: var(--bp-radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--bp-sans);
    transition: border-color var(--bp-transition-fast), background var(--bp-transition-fast);
}

.totp-delete-btn:hover {
    border-color: var(--bp-red);
    background: var(--bp-red-dim);
}

/* ══════════════════════════════════════════════════════════════
   FORM
   ══════════════════════════════════════════════════════════════ */

.totp-form {
    display: grid;
    gap: 14px;
}

.totp-form label {
    display: grid;
    gap: 7px;
    color: var(--bp-text);
    font-size: 13px;
    font-weight: 700;
}

.totp-form input,
.totp-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--bp-border);
    background: var(--bp-surface);
    color: var(--bp-text);
    border-radius: var(--bp-radius-sm);
    padding: 12px 13px;
    font-size: 14px;
    font-family: var(--bp-sans);
    outline: none;
    transition: border-color var(--bp-transition-fast), box-shadow var(--bp-transition-fast);
}

.totp-form input::placeholder,
.totp-form textarea::placeholder {
    color: var(--bp-text-muted);
}

.totp-form input:focus,
.totp-form textarea:focus {
    border-color: var(--bp-accent);
    box-shadow: 0 0 0 3px var(--bp-accent-dim);
}

.totp-form textarea {
    resize: vertical;
    min-height: 96px;
}

.totp-form-hint {
    color: var(--bp-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS / ALERTS / EMPTY
   ══════════════════════════════════════════════════════════════ */

.totp-actions,
.totp-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.totp-btn {
    border: 1px solid var(--bp-border);
    background: var(--bp-surface);
    color: var(--bp-text);
    border-radius: var(--bp-radius-sm);
    padding: 11px 16px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--bp-sans);
    transition: border-color var(--bp-transition-fast), background var(--bp-transition-fast);
}

.totp-btn:hover {
    border-color: var(--bp-border-hover);
}

.totp-btn.primary {
    border-color: var(--bp-accent);
    background: var(--bp-accent);
    color: #fff;
}

.totp-btn.primary:hover {
    border-color: var(--bp-accent);
    background: var(--bp-accent-hover, var(--bp-accent));
}

.totp-alert {
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
    padding: 12px;
    margin-bottom: 14px;
    color: var(--bp-text);
    background: var(--bp-surface);
    font-size: 13px;
}

.totp-alert.success {
    border-color: var(--bp-success);
}

.totp-alert.error {
    border-color: var(--bp-red);
}

.totp-empty,
.totp-loading {
    border: 1px dashed var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 26px;
    text-align: center;
    color: var(--bp-text-muted);
}

.totp-empty-title {
    color: var(--bp-text);
    font-weight: 800;
    margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════════════
   SECURITY MODEL
   ══════════════════════════════════════════════════════════════ */

.totp-security {
    margin-top: 24px;
}

.totp-security-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.totp-security-grid > div {
    border: 1px solid var(--bp-border);
    background: var(--bp-surface);
    border-radius: var(--bp-radius);
    padding: 15px;
    color: var(--bp-text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
    .totp-layout {
        grid-template-columns: 1fr;
    }

    .totp-security-grid {
        grid-template-columns: 1fr;
    }

    .totp-hero-title {
        font-size: 32px;
    }

    .totp-hero-icon {
        width: 50px;
        height: 50px;
    }

    .totp-hero-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 600px) {
    .totp-page {
        padding: 32px 16px 48px;
    }

    .totp-hero {
        margin-bottom: 32px;
    }

    .totp-hero-title {
        font-size: 26px;
        gap: 12px;
        flex-direction: column;
    }

    .totp-hero-subtitle {
        font-size: 15px;
    }

    .totp-stats-bar {
        gap: 10px;
    }

    .totp-stats-bar .totp-stat-divider {
        display: none;
    }
}


/* F3.2 — temporary hide non-core info blocks until final info architecture */
.totp-stats-bar,
.totp-security {
    display: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   F3.3 — Compact Vault Row Layout
   Goal: remove empty visual space, make each 2FA account feel like a
   real compact enterprise vault row.
   Uses Bumaga tokens. Hover = border-color only.
   ═══════════════════════════════════════════════════════════════ */

.totp-layout {
    align-items: start;
}

.totp-vault-panel {
    min-height: auto;
}

.totp-add-panel {
    position: sticky;
    top: calc(var(--bp-header-height, 72px) + 24px);
}

.totp-grid {
    gap: 12px;
}

.totp-card--compact {
    padding: 16px;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
}

.totp-card--compact:hover {
    border-color: var(--bp-border-hover);
}

.totp-card-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.totp-card-identity {
    min-width: 0;
}

.totp-card-name {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--bp-text);
    letter-spacing: -0.01em;
}

.totp-card-meta {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--bp-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.totp-delete-btn {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 12px;
    border-radius: var(--bp-radius-sm);
    border: 1px solid var(--bp-border);
    background: transparent;
    color: var(--bp-red);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.totp-delete-btn:hover {
    border-color: var(--bp-red);
    background: transparent;
}

.totp-code-button {
    width: 100%;
    min-height: 58px;
    margin-top: 0;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
    background: var(--bp-card);
    color: var(--bp-accent);
    cursor: pointer;
    font-family: var(--bp-mono);
    transition: border-color var(--bp-transition-fast);
}

.totp-code-button:hover {
    border-color: var(--bp-accent);
}

.totp-code-button:focus {
    outline: none;
    border-color: var(--bp-accent);
    box-shadow: 0 0 0 3px var(--bp-accent-dim);
}

.totp-code-main {
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--bp-accent);
}

.totp-code-timer {
    min-width: 38px;
    padding: 5px 9px;
    border-radius: var(--bp-radius-xs);
    border: 1px solid var(--bp-border);
    background: var(--bp-surface);
    color: var(--bp-text-secondary);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

.totp-code-timer.is-warning {
    color: var(--bp-orange);
    border-color: var(--bp-orange);
}

.totp-code-button.is-error {
    color: var(--bp-red);
    border-color: var(--bp-red);
}

.totp-code-button.is-error .totp-code-main {
    color: var(--bp-red);
    letter-spacing: 0;
    font-size: 14px;
}

.totp-code-button.is-error .totp-code-timer {
    display: none;
}

.totp-count {
    background: transparent;
    border-color: var(--bp-border);
}

@media (max-width: 980px) {
    .totp-add-panel {
        position: static;
    }
}

@media (max-width: 560px) {
    .totp-card-main {
        gap: 12px;
    }

    .totp-code-button {
        min-height: 54px;
        gap: 10px;
        padding: 12px;
    }

    .totp-code-main {
        font-size: 20px;
        letter-spacing: 0.12em;
    }

    .totp-code-timer {
        min-width: 34px;
        padding: 5px 7px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   F3.4 — Vault internal scroll + compact density
   Goal:
   - Keep the page height stable when user has many TOTP accounts.
   - Scroll inside the vault list instead of stretching the whole page.
   - Reduce empty visual weight while preserving Bumaga token-based UI.
   ═══════════════════════════════════════════════════════════════ */

.totp-vault-panel {
    align-self: start;
    min-height: 0;
}

.totp-add-panel {
    align-self: start;
}

.totp-grid {
    max-height: 430px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--bp-border-hover) transparent;
}

.totp-grid::-webkit-scrollbar {
    width: 6px;
}

.totp-grid::-webkit-scrollbar-track {
    background: transparent;
}

.totp-grid::-webkit-scrollbar-thumb {
    background: var(--bp-border-hover);
    border-radius: 999px;
}

.totp-grid::-webkit-scrollbar-thumb:hover {
    background: var(--bp-accent-border);
}

.totp-card--compact {
    padding: 14px 16px;
}

.totp-card--compact + .totp-card--compact {
    margin-top: 10px;
}

.totp-card--compact .totp-card-top {
    align-items: center;
}

.totp-card--compact .totp-card-name {
    font-size: 15px;
    line-height: 1.25;
}

.totp-card--compact .totp-card-meta {
    margin-top: 4px;
    font-size: 12px;
}

.totp-card--compact .totp-delete-btn {
    padding: 7px 10px;
    font-size: 11px;
}

.totp-code-button {
    min-height: 54px;
    padding: 12px 16px;
}

.totp-code-main {
    letter-spacing: 0.18em;
}

.totp-code-timer {
    min-width: 42px;
    height: 26px;
}

@media (max-width: 980px) {
    .totp-grid {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   F3.5 — Vault search filter
   Native Bumaga toolbar pattern based on token CSS.
   ═══════════════════════════════════════════════════════════════ */

.totp-vault-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.totp-search {
    flex: 1;
    min-width: 0;
    position: relative;
}

.totp-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--bp-text-muted);
    pointer-events: none;
}

.totp-search input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
    color: var(--bp-text);
    font-size: 14px;
    font-family: var(--bp-sans);
    transition: border-color var(--bp-transition-fast);
}

.totp-search input:focus {
    outline: none;
    border-color: var(--bp-accent);
    box-shadow: 0 0 0 3px var(--bp-accent-dim);
}

.totp-search input::placeholder {
    color: var(--bp-text-muted);
}

/* F3.9A — Copy UX state without breaking code/timer spans */
.totp-code-button.is-copied {
    border-color: var(--bp-success);
}

.totp-code-button.is-copied .totp-code-main {
    color: var(--bp-success);
}

.totp-code-button.is-copied .totp-code-timer {
    display: none;
}

/* F4.2 — Add-flow submit loading state */
.totp-btn.is-loading,
.totp-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

/* ============================================================
   F4.3 — Add Form Product UX Guide
   Compact helper block, token-based, no layout jump.
   ============================================================ */

.totp-add-guide {
    margin: -4px 0 18px;
    padding: 14px 16px;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
}

.totp-add-guide-title {
    margin: 0 0 10px;
    color: var(--bp-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.totp-add-guide-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    color: var(--bp-text-secondary);
    font-size: 12.5px;
    line-height: 1.45;
}

.totp-add-guide-list li::marker {
    color: var(--bp-accent);
    font-weight: 800;
}

.totp-form label span {
    color: var(--bp-text);
}

.totp-form input,
.totp-form textarea {
    transition: border-color var(--bp-transition-fast), box-shadow var(--bp-transition-fast);
}

.totp-form input:focus,
.totp-form textarea:focus {
    box-shadow: 0 0 0 3px var(--bp-accent-dim);
}

/* ═══════════════════════════════════════════════════════════════
   F4.5 — Bottom info architecture
   Token-based, native Bumaga visual rhythm.
   ═══════════════════════════════════════════════════════════════ */

.totp-info-section {
    margin-top: 28px;
    padding: 28px 24px;
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
}

.totp-info-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 22px;
}

.totp-info-header h2 {
    margin: 0;
    color: var(--bp-text);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-family: var(--bp-sans);
}

.totp-info-header p {
    margin: 8px 0 0;
    color: var(--bp-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.totp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.totp-info-card {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
    padding: 18px;
    min-height: 148px;
    transition: border-color var(--bp-transition-fast);
}

.totp-info-card:hover {
    border-color: var(--bp-border-hover);
}

.totp-info-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: var(--bp-radius-xs);
    background: var(--bp-accent-dim);
    color: var(--bp-accent);
    font-family: var(--bp-mono);
    font-size: 13px;
    font-weight: 800;
}

.totp-info-card h3 {
    margin: 0 0 8px;
    color: var(--bp-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.totp-info-card p {
    margin: 0;
    color: var(--bp-text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .totp-info-grid {
        grid-template-columns: 1fr;
    }

    .totp-info-section {
        padding: 22px 18px;
    }
}

/* F4.6G — MRZ geometry lock for 4 cards
   Goal: exact MRZ-style rhythm, but with 4 cards.
   Important: grid is intentionally narrower so each card keeps MRZ-like size.
*/
.totp-page .totp-info-section {
    max-width: 1220px;
    margin: 150px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.totp-page .totp-info-section .totp-info-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.totp-page .totp-info-section .totp-info-head {
    max-width: 760px;
    margin: 0 auto 58px;
    padding: 0;
    text-align: center;
}

.totp-page .totp-info-section .totp-info-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 18px;
    color: var(--bp-accent);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.38em;
    text-transform: uppercase;
}

.totp-page .totp-info-section .totp-info-eyebrow::before,
.totp-page .totp-info-section .totp-info-eyebrow::after {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(74, 158, 255, 0.42);
}

.totp-page .totp-info-section h2 {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 28px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.totp-page .totp-info-section .totp-info-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.38);
    font-size: 16px;
    line-height: 1.58;
    font-weight: 500;
}

.totp-page .totp-info-section .totp-info-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 805px;
    margin: 0 auto;
}

.totp-page .totp-info-section .totp-info-card {
    position: relative;
    min-height: 205px;
    padding: 22px 20px 20px;
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    overflow: visible;
}

.totp-page .totp-info-section .totp-info-card:hover {
    border-color: rgba(74, 158, 255, 0.32);
    transform: none;
    box-shadow: none;
}

.totp-page .totp-info-section .totp-info-card::before {
    display: none;
}

.totp-page .totp-info-section .totp-info-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 74px;
    right: -13px;
    width: 14px;
    height: 2px;
    background: var(--bp-accent);
    opacity: 0.9;
    z-index: 2;
}

.totp-page .totp-info-section .totp-info-num {
    margin: 0 0 16px;
    color: var(--bp-accent);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.totp-page .totp-info-section .totp-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 0 18px;
    border-radius: 9px;
    color: var(--bp-accent);
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.24);
    box-shadow: none;
}

.totp-page .totp-info-section .totp-info-icon svg {
    width: 17px;
    height: 17px;
}

.totp-page .totp-info-section .totp-info-card h3 {
    margin: 0 0 9px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.totp-page .totp-info-section .totp-info-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.34);
    font-size: 13px;
    line-height: 1.48;
    font-weight: 500;
}

.totp-page .totp-info-section .totp-info-pills {
    max-width: 980px;
    margin: 38px auto 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.totp-page .totp-info-section .totp-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 17px;
    border-radius: 999px;
    color: rgba(72, 214, 91, 0.88);
    background: rgba(72, 214, 91, 0.08);
    border: 1px solid rgba(72, 214, 91, 0.24);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
}

.totp-page .totp-info-section .totp-info-pill::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(72, 214, 91, 0.95);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

/* Tablet */
@media (max-width: 1100px) {
    .totp-page .totp-info-section {
        max-width: 760px;
        margin-top: 90px;
    }

    .totp-page .totp-info-section .totp-info-head {
        margin-bottom: 42px;
    }

    .totp-page .totp-info-section .totp-info-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 620px;
        gap: 12px;
    }

    .totp-page .totp-info-section .totp-info-card {
        min-height: 190px;
    }

    .totp-page .totp-info-section .totp-info-card::after {
        display: none;
    }

    .totp-page .totp-info-section .totp-info-pills {
        max-width: 680px;
        flex-wrap: wrap;
    }
}

/* Mobile */
@media (max-width: 720px) {
    .totp-page .totp-info-section {
        max-width: 100%;
        margin-top: 56px;
        padding: 0;
    }

    .totp-page .totp-info-section .totp-info-head {
        max-width: 100%;
        margin-bottom: 30px;
        padding: 0 2px;
    }

    .totp-page .totp-info-section .totp-info-eyebrow {
        gap: 10px;
        margin-bottom: 14px;
        font-size: 9px;
        letter-spacing: 0.28em;
    }

    .totp-page .totp-info-section .totp-info-eyebrow::before,
    .totp-page .totp-info-section .totp-info-eyebrow::after {
        width: 26px;
    }

    .totp-page .totp-info-section h2 {
        font-size: 24px;
        line-height: 1.14;
    }

    .totp-page .totp-info-section .totp-info-subtitle {
        font-size: 14px;
        line-height: 1.55;
    }

    .totp-page .totp-info-section .totp-info-steps {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 10px;
    }

    .totp-page .totp-info-section .totp-info-card {
        min-height: auto;
        padding: 20px 18px 18px;
        border-radius: 10px;
    }

    .totp-page .totp-info-section .totp-info-card::after {
        display: none;
    }

    .totp-page .totp-info-section .totp-info-card h3 {
        font-size: 15px;
    }

    .totp-page .totp-info-section .totp-info-card p {
        font-size: 13px;
        line-height: 1.48;
    }

    .totp-page .totp-info-section .totp-info-pills {
        margin-top: 26px;
        justify-content: flex-start;
        gap: 9px;
        flex-wrap: wrap;
    }

    .totp-page .totp-info-section .totp-info-pill {
        padding: 9px 15px;
        font-size: 12px;
        white-space: normal;
    }
}
/* END F4.6G */

/* F4.7B — usage notes closing section
   Compact explanatory block before footer.
   Uses totp-usage-* namespace to avoid legacy .totp-security conflicts.
*/
.totp-page .totp-usage-notes {
    max-width: 980px;
    margin: 70px auto 0;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
}

.totp-page .totp-usage-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
}

.totp-page .totp-usage-head {
    max-width: 680px;
    margin: 0 auto 28px;
    text-align: center;
}

.totp-page .totp-usage-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--bp-accent);
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.18);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.totp-page .totp-usage-head h2 {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 24px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.totp-page .totp-usage-head p {
    max-width: 660px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.38);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
}

.totp-page .totp-usage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.totp-page .totp-usage-card {
    min-height: 158px;
    padding: 20px 18px 18px;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.totp-page .totp-usage-card:hover {
    border-color: rgba(74, 158, 255, 0.28);
    transform: none;
    box-shadow: none;
}

.totp-page .totp-usage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 0 16px;
    border-radius: 9px;
    color: var(--bp-accent);
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.20);
}

.totp-page .totp-usage-icon svg {
    width: 16px;
    height: 16px;
}

.totp-page .totp-usage-card h3 {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.totp-page .totp-usage-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.36);
    font-size: 13px;
    line-height: 1.48;
    font-weight: 500;
}

@media (max-width: 980px) {
    .totp-page .totp-usage-notes {
        max-width: 720px;
        margin-top: 58px;
    }

    .totp-page .totp-usage-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .totp-page .totp-usage-card {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .totp-page .totp-usage-notes {
        margin-top: 44px;
        padding-bottom: 0;
    }

    .totp-page .totp-usage-head {
        margin-bottom: 22px;
    }

    .totp-page .totp-usage-head h2 {
        font-size: 22px;
    }

    .totp-page .totp-usage-head p {
        font-size: 13px;
    }

    .totp-page .totp-usage-card {
        padding: 18px 16px 16px;
    }
}
/* END F4.7B */

/* F4.8B — final CTA closing strip
   Closing action layer before footer.
   Purpose: finish the page with a clear next step without adding a heavy FAQ.
*/
.totp-page .totp-final-cta {
    max-width: 980px;
    margin: 58px auto 0;
    padding: 0 0 18px;
    background: transparent;
    border: 0;
}

.totp-page .totp-final-cta-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 26px;
    border-radius: 16px;
    background: rgba(26, 26, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.totp-page .totp-final-cta-content {
    min-width: 0;
}

.totp-page .totp-final-cta-eyebrow {
    margin: 0 0 8px;
    color: var(--bp-accent);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.totp-page .totp-final-cta h2 {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 22px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.totp-page .totp-final-cta p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.totp-page .totp-final-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.totp-page .totp-final-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.totp-page .totp-final-cta-btn:hover {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(74, 158, 255, 0.32);
    transform: none;
    box-shadow: none;
}

.totp-page .totp-final-cta-btn.primary {
    color: #fff;
    background: var(--bp-accent);
    border-color: var(--bp-accent);
}

.totp-page .totp-final-cta-btn.primary:hover {
    color: #fff;
    border-color: var(--bp-accent);
    filter: brightness(1.04);
}

@media (max-width: 900px) {
    .totp-page .totp-final-cta {
        max-width: 720px;
        margin-top: 48px;
    }

    .totp-page .totp-final-cta-shell {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        max-width: 620px;
    }

    .totp-page .totp-final-cta-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .totp-page .totp-final-cta {
        margin-top: 40px;
        padding-bottom: 0;
    }

    .totp-page .totp-final-cta-shell {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .totp-page .totp-final-cta h2 {
        font-size: 20px;
    }

    .totp-page .totp-final-cta p {
        font-size: 13px;
    }

    .totp-page .totp-final-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .totp-page .totp-final-cta-btn {
        width: 100%;
    }
}
/* END F4.8B */

