/* Customer profile - aligned with storefront light theme */

.scp-profile-page {
    padding: 26px 0 72px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.scp-profile-page .scp-container {
    width: min(100% - 24px, 1320px);
}

.scp-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    padding: 24px 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

.scp-profile-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    font-size: 12px;
    font-weight: 900;
}

.scp-profile-hero h1 {
    margin: 14px 0 0;
    color: #0f172a;
    font-size: clamp(28px, 3.4vw, 50px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.scp-profile-hero p {
    margin: 14px 0 0;
    color: #475569;
    line-height: 1.8;
    font-size: 15px;
    max-width: 760px;
}

.scp-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.scp-profile-actions a,
.scp-profile-actions button,
.scp-profile-submit,
.scp-profile-delete {
    min-height: 44px;
    border-radius: 14px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.scp-profile-actions a:first-child {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: transparent;
}

.scp-profile-user-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid #e5e7eb;
}

.scp-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #ffffff;
    font-size: 30px;
    font-weight: 950;
}

.scp-profile-user-card strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.scp-profile-user-card span,
.scp-profile-user-card small {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    word-break: break-word;
}

.scp-profile-success {
    margin-bottom: 16px;
    border-radius: 18px;
    padding: 14px 16px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 14px;
    font-weight: 900;
}

.scp-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.scp-profile-main,
.scp-profile-sidebar {
    display: grid;
    gap: 18px;
}

.scp-profile-sidebar {
    position: sticky;
    top: 120px;
}

.scp-profile-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    padding: 22px;
}

.scp-profile-card.danger {
    border-color: #fecaca;
}

.scp-profile-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.scp-profile-card-head-tight {
    margin-top: 8px;
    margin-bottom: 12px;
}

.scp-profile-card h2,
.scp-profile-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
}

.scp-profile-card p {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.75;
    font-size: 13px;
    font-weight: 800;
}

.scp-profile-form {
    display: grid;
    gap: 16px;
}

.scp-profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.scp-profile-field {
    display: grid;
    gap: 7px;
}

.scp-profile-field.full {
    grid-column: 1 / -1;
}

.scp-profile-field span {
    color: #334155;
    font-size: 12px;
    font-weight: 950;
}

.scp-profile-field input,
.scp-profile-field textarea,
.scp-profile-field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    font-size: 14px;
    font-weight: 800;
}

.scp-profile-field input,
.scp-profile-field select {
    min-height: 48px;
    padding: 0 14px;
}

.scp-profile-field textarea {
    padding: 14px;
    resize: vertical;
}

.scp-profile-field input:focus,
.scp-profile-field textarea:focus,
.scp-profile-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.scp-profile-error {
    color: #dc2626;
    font-weight: 850;
    font-size: 12px;
}

.scp-profile-submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.scp-profile-submit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: 0;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.scp-profile-submit.secondary {
    background: linear-gradient(135deg, #111827, #1f2937);
}

.scp-profile-delete {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.scp-profile-summary {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.scp-profile-summary div {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
}

.scp-profile-summary span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
}

.scp-profile-summary strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.6;
}

.scp-profile-field input::placeholder,
.scp-profile-field textarea::placeholder {
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .scp-profile-grid,
    .scp-profile-hero {
        grid-template-columns: 1fr;
    }

    .scp-profile-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {
    .scp-profile-page {
        padding: 18px 0 56px;
    }

    .scp-profile-page .scp-container {
        width: min(100% - 18px, 1320px);
    }

    .scp-profile-hero {
        padding: 18px;
        border-radius: 22px;
    }

    .scp-profile-hero h1 {
        font-size: 28px;
    }

    .scp-profile-card {
        border-radius: 20px;
        padding: 18px;
    }

    .scp-profile-form-grid {
        grid-template-columns: 1fr;
    }

    .scp-profile-field.full {
        grid-column: auto;
    }

    .scp-profile-actions {
        flex-direction: column;
    }

    .scp-profile-actions a,
    .scp-profile-actions button,
    .scp-profile-submit,
    .scp-profile-delete {
        width: 100%;
        justify-content: center;
    }
}

.scp-account-page {
    padding: 26px 0 72px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.scp-account-page .scp-container {
    width: min(100% - 24px, 1320px);
}

.scp-account-page .scp-account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    padding: 24px 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

.scp-account-page .scp-account-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    font-size: 12px;
    font-weight: 900;
}

.scp-account-page .scp-account-hero h1 {
    margin: 14px 0 0;
    color: #0f172a;
    font-size: clamp(28px, 3.4vw, 50px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.scp-account-page .scp-account-hero p {
    margin: 14px 0 0;
    color: #475569;
    line-height: 1.8;
    font-size: 15px;
    max-width: 760px;
}

.scp-account-page .scp-account-profile-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid #e5e7eb;
}

.scp-account-page .scp-account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #ffffff;
    font-size: 30px;
    font-weight: 950;
}

.scp-account-page .scp-account-profile-card strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.scp-account-page .scp-account-profile-card span,
.scp-account-page .scp-account-profile-card small {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    word-break: break-word;
}

.scp-account-page .scp-account-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.scp-account-page .scp-account-stat-card,
.scp-account-page .scp-account-panel,
.scp-account-page .scp-account-empty,
.scp-account-page .scp-account-mini-empty {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.scp-account-page .scp-account-stat-card {
    border-radius: 22px;
    padding: 18px;
}

.scp-account-page .scp-account-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    margin-bottom: 14px;
}

.scp-account-page .scp-account-stat-card span,
.scp-account-page .scp-account-panel-head p,
.scp-account-page .scp-account-empty p,
.scp-account-page .scp-account-mini-empty {
    color: #64748b;
}

.scp-account-page .scp-account-stat-card strong,
.scp-account-page .scp-account-panel-head h2,
.scp-account-page .scp-account-panel-head a,
.scp-account-page .scp-account-order-card strong,
.scp-account-page .scp-account-latest-order strong {
    color: #0f172a;
}

.scp-account-page .scp-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.scp-account-page .scp-account-main,
.scp-account-page .scp-account-sidebar {
    display: grid;
    gap: 18px;
}

.scp-account-page .scp-account-sidebar {
    position: sticky;
    top: 120px;
}

.scp-account-page .scp-account-order-card,
.scp-account-page .scp-account-latest-order,
.scp-account-page .scp-account-actions-list a,
.scp-account-page .scp-account-order-card em {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

.scp-account-page .scp-account-actions-list a:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
}

.scp-account-page .scp-account-view-order,
.scp-account-page .scp-account-primary-btn,
.scp-account-page .scp-account-secondary-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: transparent;
}

.scp-account-page .scp-account-secondary-btn {
    background: #ffffff;
    color: #0f172a;
    border-color: #dbe2ea;
}

.scp-account-page .scp-account-payment-status {
    background: #ecfdf5 !important;
    color: #166534 !important;
}

.scp-account-page .scp-account-logout-action {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.scp-account-page .scp-account-logout-action small {
    color: #64748b;
}

@media (max-width: 1100px) {
    .scp-account-page .scp-account-grid,
    .scp-account-page .scp-account-hero,
    .scp-account-page .scp-account-stats-grid {
        grid-template-columns: 1fr;
    }

    .scp-account-page .scp-account-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {
    .scp-account-page {
        padding: 18px 0 56px;
    }

    .scp-account-page .scp-container {
        width: min(100% - 18px, 1320px);
    }

    .scp-account-page .scp-account-hero,
    .scp-account-page .scp-account-panel,
    .scp-account-page .scp-account-stat-card {
        border-radius: 20px;
    }
}
.scp-security-page {
    padding: clamp(24px, 4vw, 52px) 0;
}

.scp-security-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 22px;
}

.scp-security-card {
    padding: clamp(20px, 3vw, 30px);
}

.scp-security-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: .82rem;
    font-weight: 900;
    background: #f1f5f9;
    color: #64748b;
}

.scp-security-status.is-on {
    background: #dcfce7;
    color: #047857;
}

.scp-security-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.scp-security-form label {
    font-size: .85rem;
    font-weight: 800;
    color: #475569;
}

.scp-security-form input,
.scp-auth-form select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 16px;
    padding: 13px 14px;
    background: rgba(248, 250, 252, .95);
    color: #0f172a;
    font-weight: 800;
}

.scp-security-form button,
.scp-security-copy {
    border: 0;
    border-radius: 16px;
    padding: 13px 18px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(37, 99, 235, .18);
}

.scp-security-form button.danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.scp-security-setup {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    margin-top: 18px;
    align-items: start;
}

.scp-security-qr {
    display: grid;
    place-items: center;
    border-radius: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .25);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.scp-security-setup code,
.scp-recovery-codes code {
    display: block;
    direction: ltr;
    text-align: left;
    border-radius: 12px;
    padding: 10px 12px;
    background: #0f172a;
    color: #f8fafc;
    font-weight: 900;
    letter-spacing: .06em;
}

.scp-recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.scp-security-muted {
    color: #64748b;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
}

@media (max-width: 760px) {
    .scp-security-grid,
    .scp-security-setup {
        grid-template-columns: 1fr;
    }

    .scp-recovery-codes {
        grid-template-columns: 1fr;
    }
}

/* Account security production polish */
.scp-security-page .scp-account-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(37, 99, 235, .10), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, .12), transparent 26%),
        linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid rgba(226, 232, 240, .92);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .08);
}

.scp-security-page .scp-account-hero h1 {
    color: #0f172a;
    letter-spacing: -.03em;
}

.scp-security-page .scp-account-hero p,
.scp-security-card p {
    color: #64748b;
    line-height: 1.85;
}

.scp-security-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .95);
    background:
        radial-gradient(circle at 0 0, rgba(37, 99, 235, .06), transparent 28%),
        #ffffff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .07);
}

.scp-security-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -58px;
    bottom: -58px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(245, 158, 11, .08);
    pointer-events: none;
}

.scp-security-card > * {
    position: relative;
    z-index: 1;
}

.scp-security-form input {
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 850;
    color: #0f172a;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.scp-security-form input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}

.scp-security-form button,
.scp-security-copy {
    min-height: 52px;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.scp-security-form button:hover,
.scp-security-copy:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
}

.scp-security-qr svg {
    width: min(100%, 180px);
    height: auto;
}

.scp-security-setup h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 950;
}

.scp-recovery-codes code {
    text-align: center;
}

@media (max-width: 760px) {
    .scp-security-page .scp-account-hero {
        gap: 16px;
        text-align: center;
    }

    .scp-security-page .scp-account-secondary-link {
        width: 100%;
        justify-content: center;
    }

    .scp-security-page .scp-account-panel-head {
        gap: 14px;
        align-items: flex-start;
    }

    .scp-security-status {
        align-self: flex-start;
    }

    .scp-security-qr {
        max-width: 240px;
        margin-inline: auto;
    }
}

/* Stage 2FA security page hardening - cache bust 2026-07-08 */
.scp-storefront .scp-security-page .scp-security-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr) !important;
    gap: 22px !important;
    align-items: stretch !important;
}

.scp-storefront .scp-security-page .scp-security-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 260px !important;
    border-radius: 28px !important;
}

.scp-storefront .scp-security-page .scp-account-panel-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

.scp-storefront .scp-security-page .scp-security-form {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 12px !important;
    align-items: end !important;
    width: 100% !important;
}

.scp-storefront .scp-security-page .scp-security-form label {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
}

.scp-storefront .scp-security-page .scp-security-form input {
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
    padding: 0 16px !important;
    color: #0f172a !important;
    font: inherit !important;
    font-weight: 850 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(15,23,42,.04) !important;
}

.scp-storefront .scp-security-page .scp-security-form button,
.scp-storefront .scp-security-page .scp-security-copy {
    height: 54px !important;
    border: 0 !important;
    border-radius: 18px !important;
    padding: 0 22px !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    font: inherit !important;
    font-weight: 950 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 16px 32px rgba(37,99,235,.20) !important;
}

.scp-storefront .scp-security-page .scp-security-form button.danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    box-shadow: 0 16px 32px rgba(239,68,68,.18) !important;
}

.scp-storefront .scp-security-page .scp-security-status {
    min-width: 88px !important;
    border-radius: 999px !important;
    padding: 10px 14px !important;
    text-align: center !important;
}

@media (max-width: 900px) {
    .scp-storefront .scp-security-page .scp-security-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 620px) {
    .scp-storefront .scp-security-page .scp-security-form {
        grid-template-columns: 1fr !important;
    }

    .scp-storefront .scp-security-page .scp-security-form button,
    .scp-storefront .scp-security-page .scp-security-copy {
        width: 100% !important;
    }
}
