:root {
    --dzy-blue: #2563eb;
    --dzy-blue-hover: #1d4ed8;
    --dzy-blue-soft: #eff6ff;
    --dzy-bg: #f6f7f9;
    --dzy-panel: #ffffff;
    --dzy-text: #172033;
    --dzy-muted: #667085;
    --dzy-border: #e4e7ec;
    --dzy-border-strong: #d0d5dd;
    --dzy-success: #067647;
    --dzy-success-soft: #ecfdf3;
    --dzy-warning: #b54708;
    --dzy-warning-soft: #fffaeb;
    --dzy-danger: #b42318;
    --dzy-danger-soft: #fef3f2;
    --dzy-info: #175cd3;
    --dzy-info-soft: #eff8ff;
    --dzy-radius: 8px;
}

html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--dzy-text);
    background: var(--dzy-bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.55;
}
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-page .console-auth-main { flex: 1 0 auto; display: flex; align-items: center; }
.auth-page .console-footer { flex: 0 0 auto; }

a { color: var(--dzy-blue); }
a:hover { color: var(--dzy-blue-hover); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
}
.dzy-skip-link {
    position: fixed;
    top: 8px;
    left: 12px;
    z-index: 2000;
    padding: 9px 14px;
    color: #fff;
    background: var(--dzy-blue);
    border-radius: 7px;
    font-weight: 650;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .15s ease;
}
.dzy-skip-link:focus { color: #fff; transform: translateY(0); }

.console-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 60px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--dzy-border);
    backdrop-filter: blur(8px);
}
.console-topbar-inner {
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}
.console-brand {
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dzy-text);
    text-decoration: none;
}
.console-brand:hover { color: var(--dzy-text); }
.console-brand img { width: 30px; height: 30px; }
.console-brand-copy { display: grid; line-height: 1.05; }
.console-brand-name { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.console-brand-owner { margin-top: 4px; color: var(--dzy-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.console-context { color: var(--dzy-muted); font-size: 13px; }
.console-top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.console-icon-link,
.console-user-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: #344054;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
}
.console-icon-link:hover,
.console-user-button:hover { color: var(--dzy-text); background: #f2f4f7; }

.console-shell { min-height: calc(100vh - 60px); display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.console-shell > .d-flex { min-width: 0; }
.console-sidebar {
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    background: var(--dzy-panel);
    border-right: 1px solid var(--dzy-border);
}
.console-nav { display: grid; gap: 4px; }
.console-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    color: #475467;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
}
.console-nav-link i { width: 18px; text-align: center; }
.console-nav-link:hover { color: var(--dzy-text); background: #f2f4f7; }
.console-nav-link.active { color: var(--dzy-blue); background: var(--dzy-blue-soft); }
.console-sidebar-bottom { margin-top: auto; }
.console-service-health { padding: 12px 10px; color: var(--dzy-muted); font-size: 12px; border-top: 1px solid var(--dzy-border); }
.console-service-health .dot, .dzy-inline-health .dot { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #98a2b3; }
.console-service-health.is-success .dot, .dzy-inline-health.is-success .dot { background: #12b76a; }
.console-service-health.is-warning .dot, .dzy-inline-health.is-warning .dot { background: #f79009; }
.console-service-health.is-danger .dot, .dzy-inline-health.is-danger .dot { background: #d92d20; }
.dzy-inline-health { display: inline-flex; align-items: center; font-weight: 700; color: var(--dzy-text); }
.console-service-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #fecdca; border-radius: var(--dzy-radius-sm); background: #fef3f2; color: #7a271a; }
.console-service-banner > i { margin-top: 3px; }
.console-service-banner strong { display: block; color: #7a271a; }
.console-service-banner p { margin: 3px 0 0; color: #912018; }
.console-service-banner a { color: #b42318; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .console-service-banner { grid-template-columns: auto minmax(0, 1fr); } .console-service-banner a { grid-column: 2; } }

.console-main { box-sizing: border-box; width: 100%; max-width: 1260px; min-width: 0; padding: 32px 36px 56px; margin: 0 auto; }
.console-auth-main { width: 100%; max-width: 1120px; padding: 48px 24px; margin: 0 auto; }

.auth-shell {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
    gap: 24px;
    align-items: stretch;
    margin: 18px auto 0;
}
.auth-shell-compact { max-width: 480px; grid-template-columns: minmax(0, 1fr); }
.auth-intro,
.auth-card { border: 1px solid var(--dzy-border); border-radius: 12px; }
.auth-intro {
    display: flex;
    flex-direction: column;
    padding: 40px;
    color: #eaf2ff;
    background: linear-gradient(150deg, #172554 0%, #1e3a8a 58%, #1d4ed8 100%);
    box-shadow: 0 18px 44px rgba(23, 32, 51, .10);
}
.auth-intro-title { max-width: 420px; margin: 0; font-size: clamp(30px, 4vw, 40px); font-weight: 750; line-height: 1.18; letter-spacing: -.035em; }
.auth-intro-title i { margin-right: 10px; color: #93c5fd; font-size: .55em; vertical-align: .18em; }
.auth-intro-subtitle { max-width: 420px; margin: 18px 0 0; color: #dbeafe; font-size: 17px; line-height: 1.65; }
.auth-trust-list { display: grid; gap: 14px; padding: 0; margin: 32px 0; list-style: none; }
.auth-trust-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: #eff6ff; }
.auth-trust-list i { margin-top: 3px; color: #93c5fd; text-align: center; }
.auth-store-link { margin-top: auto; color: #fff; font-weight: 600; text-decoration: none; }
.auth-store-link:hover { color: #dbeafe; }
.auth-store-link i { margin-left: 5px; font-size: 11px; }

.auth-card { padding: 38px 40px; background: #fff; box-shadow: 0 18px 44px rgba(23, 32, 51, .08); }
.auth-card-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 26px; }
.auth-card-head h1,
.auth-card-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.auth-card-head p { margin: 4px 0 0; color: var(--dzy-muted); }
.auth-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--dzy-blue); background: var(--dzy-blue-soft); border: 1px solid #bfdbfe; border-radius: 10px; }
.auth-field { margin-bottom: 10px; }
.auth-field .form-label { margin-bottom: 7px; color: #344054; font-weight: 600; }
.auth-field .form-control { min-height: 44px; border-color: var(--dzy-border-strong); border-radius: 7px; }
.auth-field .form-control:focus { border-color: var(--dzy-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.auth-field .form-control.is-invalid { border-color: var(--dzy-danger); background-image: none; }
.auth-field-error { min-height: 20px; margin-top: 4px; font-size: 12px; }
.auth-password-wrap { position: relative; }
.auth-password-wrap .form-control { padding-right: 46px; }
.auth-password-toggle { position: absolute; top: 50%; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: var(--dzy-muted); background: transparent; border: 0; border-radius: 6px; transform: translateY(-50%); }
.auth-password-toggle:hover { color: var(--dzy-text); background: #f2f4f7; }
.auth-password-toggle:focus-visible { outline: 3px solid rgba(37, 99, 235, .18); }
.auth-form-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 2px 0 18px; }
.auth-form-row .form-check { min-height: auto; margin: 0; padding-left: 0; color: #475467; }
.auth-form-row .form-check-input { position: static; float: none; margin: 0; }
.auth-form-row a { font-weight: 600; text-decoration: none; }
.auth-submit { width: 100%; min-height: 44px; margin-top: 4px; }
.auth-provider-button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; color: #1d2939; background: #fff; border: 1px solid var(--dzy-border-strong); border-radius: 7px; font-weight: 650; text-decoration: none; }
.auth-provider-list { display: grid; gap: 10px; }
.auth-provider-button:hover { color: #101828; background: #f9fafb; border-color: #98a2b3; }
.auth-provider-button:focus-visible { outline: 3px solid rgba(37, 99, 235, .18); outline-offset: 2px; }
.auth-provider-button .fa-google { color: #4285f4; }
.auth-provider-button .fa-telegram { color: #229ed9; }
.auth-provider-button-secondary { color: var(--dzy-muted-strong); background: #f8fafc; border-style: dashed; font-weight: 600; }
.auth-provider-button-secondary:hover { color: #344054; background: #f2f4f7; }
.auth-provider-button-disabled { color: #667085; background: #f2f4f7; border-color: #d0d5dd; cursor: not-allowed; opacity: .82; }
.auth-provider-button-disabled:hover { color: #667085; background: #f2f4f7; border-color: #d0d5dd; }
.auth-secondary-provider { margin-top: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--dzy-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; content: ''; background: var(--dzy-border); }
.auth-card-foot { padding-top: 22px; margin-top: 24px; color: var(--dzy-muted); text-align: center; border-top: 1px solid var(--dzy-border); }
.auth-card-foot a { margin-left: 4px; font-weight: 650; text-decoration: none; }
.auth-contact-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; color: var(--dzy-muted); font-size: 13px; }
.auth-contact-row a { font-weight: 650; text-decoration: none; }
.auth-confirmation-card { text-align: center; }
.auth-confirmation-card h1 { margin: 0; font-size: 25px; font-weight: 750; letter-spacing: -.03em; }
.auth-confirmation-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--dzy-blue); background: var(--dzy-blue-soft); border: 1px solid #bfdbfe; border-radius: 50%; font-size: 24px; }
.auth-confirmation-lead { margin: 12px 0 0; color: var(--dzy-muted); line-height: 1.7; }
.auth-confirmation-lead strong { color: var(--dzy-text); overflow-wrap: anywhere; }
.auth-confirmation-notes { display: grid; gap: 12px; padding: 18px; margin: 24px 0; color: #475467; background: #f8fafc; border: 1px solid var(--dzy-border); border-radius: 9px; text-align: left; }
.auth-confirmation-notes > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: start; }
.auth-confirmation-notes i { margin-top: 4px; color: var(--dzy-blue); text-align: center; }
.auth-confirmation-primary { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.auth-confirmation-secondary { display: inline-block; margin-top: 18px; font-weight: 650; text-decoration: none; }
.auth-message { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; padding: 11px 12px; margin-bottom: 18px; color: var(--dzy-info); background: var(--dzy-info-soft); border: 1px solid #b2ddff; border-radius: 7px; }
.auth-message-error { color: var(--dzy-danger); background: var(--dzy-danger-soft); border-color: #fecdca; }
.auth-message-warning { color: var(--dzy-warning); background: var(--dzy-warning-soft); border-color: #fedf89; }
.auth-message-success { color: var(--dzy-success); background: var(--dzy-success-soft); border-color: #abefc6; }
.auth-message i { margin-top: 3px; }
.auth-caps-lock { margin: -8px 0 14px; color: var(--dzy-warning); font-size: 12px; }
.auth-turnstile { display: grid; justify-items: center; gap: 6px; padding: 12px; margin: 4px 0 16px; background: #fcfcfd; border: 1px solid var(--dzy-border); border-radius: 8px; }
.auth-turnstile-status { color: var(--dzy-muted); font-size: 12px; text-align: center; }
.auth-turnstile-status[data-tone="success"] { color: var(--dzy-success); }
.auth-turnstile-status[data-tone="warning"],
.auth-turnstile-status[data-tone="error"] { color: var(--dzy-danger); }
.auth-consent { margin: 2px 0 14px; }
.auth-consent > label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; margin: 0; color: #475467; font-size: 13px; line-height: 1.65; cursor: pointer; }
.auth-consent .form-check-input { margin: 3px 0 0; }
.auth-consent a { margin: 0 2px; font-weight: 650; text-decoration: none; }
.auth-consent.is-invalid > label { color: var(--dzy-danger); }
.auth-legal-note { margin: 14px 0 0; color: var(--dzy-muted); font-size: 11px; line-height: 1.6; text-align: center; }
.auth-legal-note a { margin: 0 2px; text-decoration: none; }
.auth-verified-identity { display: flex; justify-content: space-between; gap: 18px; padding: 12px 14px; margin-bottom: 14px; background: #f8fafc; border: 1px solid var(--dzy-border); border-radius: 8px; font-size: 13px; }
.auth-verified-identity span { color: var(--dzy-muted); }
.auth-verified-identity strong { overflow-wrap: anywhere; }
.auth-legal-summary { display: grid; gap: 8px; margin-bottom: 16px; }
.auth-legal-summary > a { display: grid; gap: 3px; padding: 11px 12px; color: var(--dzy-text); background: #f8fafc; border: 1px solid var(--dzy-border); border-radius: 8px; text-decoration: none; }
.auth-legal-summary > a:hover { border-color: #93c5fd; background: #eff6ff; }
.auth-legal-summary span { color: var(--dzy-muted); font-size: 11px; line-height: 1.55; }

@media (max-width: 800px) {
    .auth-shell { max-width: 520px; grid-template-columns: minmax(0, 1fr); margin-top: 0; }
    .auth-intro { display: none; }
}
@media (max-width: 520px) {
    .console-auth-main { padding: 24px 14px 40px; }
    .auth-card { padding: 26px 20px; border-radius: 10px; }
    .auth-form-row { align-items: flex-start; flex-direction: column; gap: 10px; }
}
.console-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.console-page-head h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.console-page-head p { margin: 5px 0 0; color: var(--dzy-muted); }
.console-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dzy-panel {
    background: var(--dzy-panel);
    border: 1px solid var(--dzy-border);
    border-radius: var(--dzy-radius);
}
.dzy-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--dzy-border); }
.dzy-panel-header h2, .dzy-panel-header h3 { margin: 0; font-size: 15px; font-weight: 650; }
.dzy-panel-body { padding: 20px; }
.dzy-guarantee-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; cursor: pointer; list-style: none; }
.dzy-guarantee-disclosure > summary::-webkit-details-marker { display: none; }
.dzy-guarantee-disclosure > summary div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.dzy-guarantee-disclosure > summary strong { font-size: 13px; }
.dzy-guarantee-disclosure > summary div span { color: var(--dzy-muted); font-size: 12px; }
.dzy-guarantee-action { flex: 0 0 auto; color: var(--dzy-blue); font-size: 12px; }
.dzy-guarantee-disclosure[open] > summary { border-bottom: 1px solid var(--dzy-border); }
.dzy-guarantee-disclosure[open] .dzy-guarantee-action i { transform: rotate(180deg); }
.dzy-stack { display: grid; gap: 16px; }
.dzy-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 20px; align-items: start; }

.dzy-action-panel { padding: 22px; border-left: 3px solid var(--dzy-blue); }
.dzy-action-eyebrow { margin-bottom: 8px; color: var(--dzy-blue); font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.dzy-action-panel h2 { margin: 0 0 6px; font-size: 18px; font-weight: 650; }
.dzy-action-panel p { max-width: 720px; margin: 0; color: var(--dzy-muted); }
.dzy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.btn { border-radius: 6px; font-weight: 550; }
.btn-primary { background: var(--dzy-blue); border-color: var(--dzy-blue); box-shadow: none; }
.btn-primary:hover, .btn-primary:focus { background: var(--dzy-blue-hover); border-color: var(--dzy-blue-hover); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.btn-service-warning { color: #fff; background: #b54708; border-color: #b54708; }
.btn-service-warning:hover, .btn-service-warning:focus { color: #fff; background: #934f05; border-color: #934f05; box-shadow: 0 0 0 3px rgba(181,71,8,.14); }
.btn-outline-secondary { color: #344054; border-color: var(--dzy-border-strong); }
.btn-outline-secondary:hover { color: var(--dzy-text); background: #f2f4f7; border-color: #98a2b3; }

.dzy-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--dzy-border); border-radius: 999px; color: #475467; background: #f9fafb; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dzy-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #98a2b3; }
.dzy-status-success { color: var(--dzy-success); background: var(--dzy-success-soft); border-color: #abefc6; }
.dzy-status-success::before { background: #12b76a; }
.dzy-status-warning { color: var(--dzy-warning); background: var(--dzy-warning-soft); border-color: #fedf89; }
.dzy-status-warning::before { background: #f79009; }
.dzy-status-danger { color: var(--dzy-danger); background: var(--dzy-danger-soft); border-color: #fecdca; }
.dzy-status-danger::before { background: #f04438; }
.dzy-status-info { color: var(--dzy-info); background: var(--dzy-info-soft); border-color: #b2ddff; }
.dzy-status-info::before { background: #2e90fa; }
.dzy-status-neutral { color: #475467; background: #f9fafb; border-color: var(--dzy-border); }

.dzy-breadcrumb { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; color: var(--dzy-muted); font-size: 13px; text-decoration: none; }
.dzy-breadcrumb:hover { color: var(--dzy-text); }
.dzy-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.dzy-detail-head h1 { margin: 8px 0 4px; font-size: 26px; font-weight: 650; letter-spacing: -.025em; }
.dzy-state-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dzy-state-cell { min-height: 104px; padding: 18px 20px; border-right: 1px solid var(--dzy-border); }
.dzy-state-cell:last-child { border-right: 0; }
.dzy-state-label { margin-bottom: 9px; color: var(--dzy-muted); font-size: 12px; }
.dzy-state-value { font-weight: 600; }
.dzy-timeline { position: relative; display: grid; gap: 0; }
.dzy-timeline-item { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding-bottom: 22px; }
.dzy-timeline-item:last-child { padding-bottom: 0; }
.dzy-timeline-item::after { content: ""; position: absolute; top: 14px; bottom: 0; left: 5px; width: 1px; background: var(--dzy-border-strong); }
.dzy-timeline-item:last-child::after { display: none; }
.dzy-timeline-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 4px; border: 2px solid #fff; border-radius: 50%; background: #98a2b3; box-shadow: 0 0 0 1px var(--dzy-border-strong); }
.dzy-timeline-dot.success { background: #12b76a; }
.dzy-timeline-dot.info { background: #2e90fa; }
.dzy-timeline-dot.warning { background: #f79009; }
.dzy-timeline-dot.danger { background: #f04438; }
.dzy-timeline-title { font-weight: 600; }
.dzy-timeline-detail { margin-top: 3px; color: var(--dzy-muted); font-size: 13px; }

.dzy-support-thread { display: grid; gap: 12px; max-height: 520px; overflow-y: auto; padding: 4px; scroll-behavior: smooth; }
.dzy-support-thread.is-admin { max-height: 300px; padding: 12px; border: 1px solid var(--dzy-border); border-radius: 12px; background: var(--dzy-bg); }
.dzy-support-message { max-width: min(82%, 680px); padding: 12px 14px; border: 1px solid var(--dzy-border); border-radius: 14px 14px 14px 4px; background: var(--dzy-panel); box-shadow: 0 2px 8px rgba(16, 24, 40, .04); }
.dzy-support-message.is-customer { justify-self: end; border-color: rgba(46, 144, 250, .28); border-radius: 14px 14px 4px 14px; background: rgba(46, 144, 250, .08); }
.dzy-support-message-meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 6px; color: var(--dzy-muted); font-size: 12px; }
.dzy-support-message-meta strong { color: var(--dzy-text); font-weight: 650; }
.dzy-support-message-body { color: var(--dzy-text); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.dzy-support-message.is-internal { max-width: 100%; border-color: #fedf89; background: #fffaeb; }
.dzy-support-message.is-internal .dzy-support-message-meta strong { color: #934f05; }
.support-attachment-list { display: grid; gap: 8px; margin-top: 10px; }
.support-attachment { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: #344054; background: rgba(255,255,255,.8); border: 1px solid var(--dzy-border); border-radius: 7px; text-decoration: none; }
.support-attachment:hover { color: var(--dzy-blue); border-color: #84adff; }
.support-attachment > i { flex: 0 0 auto; color: var(--dzy-blue); }
.support-attachment span { min-width: 0; display: grid; }
.support-attachment strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.support-attachment small { color: var(--dzy-muted); font-size: 10px; }
.support-attachment-image { align-items: flex-start; }
.support-attachment-image img { width: 76px; height: 58px; flex: 0 0 auto; object-fit: cover; border-radius: 5px; background: #f2f4f7; }
.support-internal-note { padding: 10px 12px; border: 1px dashed #fdb022; border-radius: 8px; background: #fffcf5; }
.support-internal-note > summary { color: #934f05; cursor: pointer; font-size: 12px; font-weight: 650; }
.support-resolution-panel { border-left-color: #12b76a; }
.dzy-support-reply { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--dzy-border); }
.dzy-sensitive-warning { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border: 1px solid rgba(247, 144, 9, .28); border-radius: 10px; color: #934f05; background: rgba(247, 144, 9, .08); font-size: 13px; line-height: 1.55; }
.dzy-sensitive-warning i { margin-top: 3px; }
.dzy-secure-submit { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid rgba(18, 183, 106, .28); border-radius: 12px; background: rgba(18, 183, 106, .06); }
.dzy-secret-output { padding: 12px 14px; border-radius: 9px; color: #05603a; background: rgba(18, 183, 106, .12); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }

.dzy-account-table { margin: 0; }
.dzy-account-table > :not(caption) > * > * { padding: 15px 20px; color: var(--dzy-text); background: transparent; border-bottom-color: var(--dzy-border); vertical-align: middle; }
.dzy-account-table thead th { padding-top: 11px; padding-bottom: 11px; color: var(--dzy-muted); background: #fcfcfd; font-size: 12px; font-weight: 600; }
.dzy-account-table tbody tr:last-child td { border-bottom: 0; }
.dzy-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dzy-phone-meta { margin-top: 4px; color: var(--dzy-muted); font-size: 12px; }
.dzy-account-overview-list { display: grid; }
.dzy-account-card { min-width: 0; display: grid; grid-template-columns: minmax(160px, 1.25fr) minmax(95px, .6fr) minmax(130px, .8fr) minmax(190px, auto); gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--dzy-border); }
.dzy-account-card:last-child { border-bottom: 0; }
.dzy-account-identity, .dzy-account-fact { min-width: 0; }
.dzy-account-phone { color: var(--dzy-blue); font-size: 15px; font-weight: 700; text-decoration: none; }
.dzy-account-phone:hover { text-decoration: underline; text-underline-offset: 3px; }
.dzy-account-message { margin-top: 4px; color: var(--dzy-muted); font-size: 12px; }
.dzy-account-message-warning { color: var(--dzy-warning); }
.dzy-account-message-danger { color: var(--dzy-danger); }
.dzy-account-fact { display: grid; gap: 5px; }
.dzy-account-fact > span { color: var(--dzy-muted); font-size: 11px; }
.dzy-account-fact > strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.dzy-account-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.dzy-account-detail-link { color: var(--dzy-muted); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dzy-account-detail-link:hover { color: var(--dzy-blue); }
.dzy-account-detail-link i { margin-left: 2px; font-size: 10px; }
.dzy-account-more { padding: 13px 20px; text-align: right; border-top: 1px solid var(--dzy-border); }
.dzy-account-more a { font-size: 12px; font-weight: 600; text-decoration: none; }
.dzy-account-filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; background: #fcfcfd; border-bottom: 1px solid var(--dzy-border); }
.dzy-account-filter-empty { padding: 32px 20px; color: var(--dzy-muted); text-align: center; }
.dzy-account-tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.dzy-account-tile-grid.is-single { grid-template-columns: minmax(0, 560px); }
.dzy-account-tile { min-width: 0; display: grid; align-content: start; gap: 16px; padding: 18px; border: 1px solid var(--dzy-border); border-radius: 9px; background: var(--dzy-panel); }
.dzy-account-tile-head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dzy-account-tile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 13px 0; border-top: 1px solid var(--dzy-border); border-bottom: 1px solid var(--dzy-border); }
.dzy-account-tile-facts .dzy-account-fact { min-height: 48px; align-content: start; padding: 0 14px; }
.dzy-account-tile-facts .dzy-account-fact:first-child { padding-left: 0; border-right: 1px solid var(--dzy-border); }
.dzy-account-tile-facts .dzy-account-fact:last-child { padding-right: 0; }
.dzy-account-tile .dzy-account-actions { justify-content: flex-start; }
.dzy-account-tile .dzy-account-detail-link { min-height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 5px 10px; color: #344054; border: 1px solid var(--dzy-border-strong); border-radius: 6px; }
.dzy-account-tile .dzy-account-detail-link:hover { color: var(--dzy-text); background: #f2f4f7; border-color: #98a2b3; }
.dzy-code-result { display: grid; justify-items: center; gap: 14px; padding: 24px 18px 8px; margin-top: 14px; border-top: 1px solid var(--dzy-border); text-align: center; }
.dzy-login-code { color: var(--dzy-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(30px, 8vw, 44px); font-weight: 750; letter-spacing: .18em; line-height: 1.1; user-select: all; }
.dzy-code-note { margin: 0; color: var(--dzy-muted); font-size: 12px; }

.dzy-empty { padding: 40px 24px; text-align: center; }
.dzy-empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--dzy-blue); background: var(--dzy-blue-soft); border-radius: 8px; }
.dzy-empty h3 { margin: 0; font-size: 16px; }
.dzy-empty p { max-width: 440px; margin: 7px auto 0; color: var(--dzy-muted); }

.dzy-list { display: grid; }
.dzy-list-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--dzy-border); }
.dzy-list-row > * { min-width: 0; }
.dzy-list-row:first-child { padding-top: 0; }
.dzy-list-row:last-child { padding-bottom: 0; border-bottom: 0; }
.dzy-list-title { font-weight: 600; overflow-wrap: anywhere; }
.dzy-list-meta { margin-top: 3px; color: var(--dzy-muted); font-size: 12px; overflow-wrap: anywhere; }
.dzy-row-side { flex: 0 0 auto; text-align: right; }

.dzy-error-state {
    min-height: max(420px, calc(100vh - 180px));
    display: grid;
    place-items: center;
    padding: 56px 20px;
}
.dzy-error-card { width: min(100%, 620px); text-align: center; }
.dzy-error-icon {
    width: 72px;
    height: 72px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 22px;
    font-size: 30px;
}
.dzy-error-icon.warning { color: var(--dzy-warning); background: var(--dzy-warning-soft); }
.dzy-error-icon.danger { color: var(--dzy-danger); background: var(--dzy-danger-soft); }
.dzy-error-code { color: var(--dzy-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dzy-error-card h1 { margin: 8px 0 10px; color: var(--dzy-text); font-size: clamp(28px, 5vw, 42px); }
.dzy-error-card p { max-width: 520px; margin: 0 auto; color: var(--dzy-muted); font-size: 15px; }
.dzy-error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.dzy-notice { display: flex; gap: 11px; padding: 14px; color: #344054; background: #f8fafc; border: 1px solid var(--dzy-border); border-radius: 6px; }
.dzy-notice i { margin-top: 3px; color: var(--dzy-blue); }
.dzy-notice strong { display: block; margin-bottom: 3px; }
.dzy-notice p { margin: 0; color: var(--dzy-muted); font-size: 13px; }
.official-contact-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.official-contact-links a:not(.btn) { font-weight: 650; text-decoration: none; }
.contact-safety-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding-top: 14px; color: var(--dzy-muted); font-size: 13px; border-top: 1px solid var(--dzy-border); }
.contact-safety-note i { margin-top: 2px; color: var(--dzy-blue); }
.dzy-muted { color: var(--dzy-muted); }
.dzy-meta { color: var(--dzy-muted); font-size: 12px; }
.dzy-keyline { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--dzy-border); }
.dzy-keyline:last-child { border-bottom: 0; }

.alert { border-radius: 6px; border-width: 1px; box-shadow: none; }
.dropdown-menu { border-color: var(--dzy-border); border-radius: 8px; box-shadow: 0 12px 32px rgba(16,24,40,.12); }
.dropdown-item { font-size: 13px; }
.modal-content { color: var(--dzy-text); background: #fff; border: 1px solid var(--dzy-border); border-radius: 10px; box-shadow: 0 20px 40px rgba(16,24,40,.16); }
.modal-header, .modal-footer { border-color: var(--dzy-border); }
.form-control, .form-select { color: var(--dzy-text); background: #fff; border-color: var(--dzy-border-strong); border-radius: 6px; }
.form-control:focus, .form-select:focus { color: var(--dzy-text); background: #fff; border-color: #84adff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.console-footer { padding: 20px 36px; color: var(--dzy-muted); background: var(--dzy-panel); border-top: 1px solid var(--dzy-border); font-size: 12px; }
.console-footer-inner { max-width: 1260px; display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; }
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-links a { color: inherit; text-decoration: none; }
.footer-legal-links a:hover { color: var(--dzy-blue); }

.legal-shell { width: min(880px, calc(100% - 32px)); margin: 54px auto 72px; }
.legal-header { padding: 34px 38px; background: linear-gradient(135deg, #172554, #1d4ed8); border-radius: 14px 14px 0 0; color: #fff; }
.legal-kicker { display: block; margin-bottom: 12px; color: #bfdbfe; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.legal-header h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); letter-spacing: -.04em; }
.legal-header > p { max-width: 680px; margin: 14px 0 0; color: #dbeafe; line-height: 1.75; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; color: #bfdbfe; font-size: 12px; }
.legal-content { padding: 38px; background: #fff; border: 1px solid var(--dzy-border); border-top: 0; }
.legal-content h2 { margin: 32px 0 12px; color: #101828; font-size: 20px; letter-spacing: -.02em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 24px 0 10px; font-size: 16px; }
.legal-content p, .legal-content li { color: #475467; line-height: 1.85; }
.legal-content p { margin: 0 0 15px; }
.legal-content ul, .legal-content ol { display: grid; gap: 7px; padding-left: 24px; margin: 0 0 18px; }
.legal-contact { display: grid; gap: 4px; padding: 20px 38px; color: #475467; background: #f8fafc; border: 1px solid var(--dzy-border); border-top: 0; border-radius: 0 0 14px 14px; font-size: 13px; }

@media (max-width: 1200px) and (min-width: 641px) {
    .dzy-account-card { grid-template-columns: minmax(160px, 1.2fr) minmax(105px, .7fr) minmax(150px, .9fr); }
    .dzy-account-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 900px) {
    .console-shell { grid-template-columns: 1fr; }
    .console-sidebar { position: static; height: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--dzy-border); overflow-x: auto; }
    .console-nav { display: flex; min-width: max-content; }
    .console-sidebar-bottom { display: none; }
    .console-main { padding: 24px 18px 40px; }
    .dzy-grid { grid-template-columns: 1fr; }
    .dzy-account-tile-grid, .dzy-account-tile-grid.is-single { grid-template-columns: 1fr; }
    .console-brand { min-width: 0; }
    .console-context { display: none; }
}

@media (max-width: 640px) {
    .console-topbar-inner { min-height: 56px; padding: 0 14px; }
    .console-brand-owner { display: none; }
    .console-user-button span, .console-icon-link span { display: none; }
    .console-page-head { display: grid; }
    .console-head-actions { width: 100%; gap: 6px; }
    .console-head-actions .btn { flex: 1; padding-inline: 9px; font-size: 13px; white-space: nowrap; }
    .dzy-account-table thead { display: none; }
    .dzy-account-table, .dzy-account-table tbody, .dzy-account-table tr, .dzy-account-table td { display: block; width: 100%; }
    .dzy-account-table tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--dzy-border); }
    .dzy-account-table tbody tr:last-child { border-bottom: 0; }
    .dzy-account-table > :not(caption) > * > * { padding: 5px 0; border: 0; }
    .dzy-account-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 17px 18px; }
    .dzy-account-identity, .dzy-account-actions { grid-column: 1 / -1; }
    .dzy-account-actions { justify-content: flex-start; }
    .dzy-account-actions .btn { flex: 1 1 auto; }
    .dzy-account-detail-link { padding: 7px 2px; }
    .dzy-account-tile-grid { gap: 12px; padding: 14px; }
    .dzy-account-tile { gap: 14px; padding: 16px; }
    .dzy-account-tile .dzy-account-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dzy-account-tile .dzy-account-actions .btn, .dzy-account-tile .dzy-account-detail-link { width: 100%; min-height: 36px; }
    .dzy-detail-head { display: grid; }
    .dzy-state-grid { grid-template-columns: 1fr; }
    .dzy-state-cell { min-height: auto; border-right: 0; border-bottom: 1px solid var(--dzy-border); }
    .dzy-state-cell:last-child { border-bottom: 0; }
    .console-footer { padding: 18px; }
    .console-footer-inner { display: grid; gap: 4px; }
    .legal-shell { width: min(100% - 20px, 880px); margin: 20px auto 40px; }
    .legal-header, .legal-content { padding: 24px 20px; }
    .legal-contact { padding: 18px 20px; }
}

/* Existing-account purchase and login task */
.purchase-page-head { margin-bottom: 20px; }
.purchase-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.purchase-choice-card { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 14px; padding: 18px; color: var(--dzy-text); text-align: left; background: var(--dzy-panel); border: 1px solid var(--dzy-border); border-radius: 10px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.purchase-choice-card > span:nth-child(2) { min-width: 0; }
.purchase-choice-card:hover { border-color: #98a2b3; background: #fcfcfd; }
.purchase-choice-card.active { border-color: #84adff; background: #f8faff; box-shadow: 0 0 0 3px #eff4ff; }
.purchase-choice-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--dzy-blue); background: var(--dzy-blue-soft); border-radius: 9px; }
.purchase-choice-card small, .purchase-choice-card strong, .purchase-choice-card em { display: block; }
.purchase-choice-card small { margin-bottom: 3px; color: var(--dzy-blue); font-size: 11px; font-weight: 650; }
.purchase-choice-card strong { font-size: 16px; }
.purchase-choice-card em { margin-top: 4px; color: var(--dzy-muted); font-size: 12px; font-style: normal; line-height: 1.55; overflow-wrap: anywhere; }
.purchase-choice-arrow { color: #98a2b3; font-size: 12px; }
.purchase-product { margin-bottom: 18px; }
.purchase-plan-panel { overflow: hidden; }
.purchase-plan-heading { align-items: flex-start; }
.purchase-plan-heading h2 { font-size: 18px; }
.purchase-plan-heading p { max-width: 720px; margin: 5px 0 0; color: var(--dzy-muted); font-size: 13px; }
.purchase-step { flex: 0 0 auto; color: var(--dzy-blue); font-size: 12px; font-weight: 650; }
.purchase-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.purchase-plan-card { min-width: 0; min-height: 274px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 19px; border: 1px solid var(--dzy-border); border-radius: 9px; background: #fff; }
.purchase-plan-card.featured { border-color: #84adff; background: linear-gradient(180deg, #f8faff 0%, #fff 58%); box-shadow: 0 0 0 3px #eff4ff; }
.purchase-plan-badge { display: inline-flex; padding: 3px 8px; color: #475467; background: #f2f4f7; border-radius: 999px; font-size: 11px; font-weight: 650; }
.purchase-plan-card.featured .purchase-plan-badge { color: #175cd3; background: #dbeafe; }
.purchase-plan-card.selected { border-color: #2563eb; box-shadow: 0 0 0 3px #eff4ff; }
.purchase-plan-card h3 { margin: 14px 0 3px; font-size: 17px; }
.purchase-plan-price { margin: 4px 0 12px; font-size: 34px; font-weight: 760; letter-spacing: -.04em; }
.purchase-plan-price small { margin-right: 3px; color: var(--dzy-muted); font-size: 14px; }
.purchase-plan-short { display: block; margin-bottom: 5px; font-size: 13px; }
.purchase-plan-card p { margin: 0; color: var(--dzy-muted); font-size: 12px; line-height: 1.65; }
.purchase-plan-button { width: 100%; }
.purchase-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.purchase-explainer { min-height: 92px; }
.purchase-confirmation { margin-top: 18px; }
.purchase-device-notice { margin: 0; }
.service-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-plan { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--dzy-border); border-radius: 10px; }
.service-plan.featured { border-color: #84adff; box-shadow: 0 0 0 3px #eff4ff; }
.service-plan h2 { margin: 12px 0 5px; color: #101828; font-size: 17px; font-weight: 720; }
.service-plan p { margin: 0; color: #667085; font-size: 12px; line-height: 1.65; }
.service-plan-price { color: #101828; font-size: 28px; font-weight: 750; letter-spacing: -.03em; }
.service-plan-price small { color: #667085; font-size: 11px; font-weight: 650; }
.login-flow-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 16px; align-items: start; }
.login-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.login-steps span { display: flex; align-items: center; gap: 7px; color: #98a2b3; font-size: 11px; font-weight: 650; }
.login-steps span::after { height: 1px; flex: 1; content: ''; background: #eaecf0; }
.login-steps span:last-child::after { display: none; }
.login-steps b { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #d0d5dd; border-radius: 50%; font-size: 10px; }
.login-steps span.active { color: #175cd3; }
.login-steps span.active b { color: #fff; background: #155eef; border-color: #155eef; }
.login-flow-form { max-width: 560px; }

@media (max-width: 860px) {
    .purchase-plan-grid { grid-template-columns: 1fr; }
    .purchase-plan-card { min-height: 0; }
    .service-plan-grid { grid-template-columns: 1fr; }
    .service-plan { min-height: 0; }
    .login-flow-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .purchase-choice, .purchase-help-grid { grid-template-columns: 1fr; }
    .purchase-choice-card { padding: 15px; }
    .purchase-plan-grid { padding: 14px; }
    .purchase-plan-heading { display: grid; }
}

/* Account and security */
.account-security { max-width: 1120px; margin: 0 auto; }
.console-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.console-page-header h1 { margin: 3px 0 5px; color: #101828; font-size: 28px; font-weight: 720; letter-spacing: -.025em; }
.console-page-header p { max-width: 720px; margin: 0; color: #667085; }
.console-eyebrow { color: #155eef; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.security-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.security-summary-card { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 17px 18px; background: #fff; border: 1px solid var(--dzy-border); border-radius: 10px; }
.security-summary-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #475467; background: #f2f4f7; border-radius: 9px; }
.security-summary-icon.success { color: #067647; background: #ecfdf3; }
.security-summary-card div { min-width: 0; }
.security-summary-card small, .security-summary-card strong, .security-summary-card div > span { display: block; }
.security-summary-card small { color: #667085; font-size: 11px; }
.security-summary-card strong { margin-top: 2px; overflow: hidden; color: #101828; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.security-summary-card div > span { margin-top: 2px; color: #98a2b3; font-size: 11px; }
.security-pending { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 15px 16px; margin-bottom: 16px; color: #344054; background: #eff8ff; border: 1px solid #b2ddff; border-radius: 10px; }
.security-pending-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #175cd3; background: #d1e9ff; border-radius: 8px; }
.security-pending strong { color: #1849a9; font-size: 13px; }
.security-pending p { margin: 2px 0 0; color: #475467; font-size: 12px; }
.security-pending-actions { display: flex; gap: 7px; }
.security-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.security-panel { background: #fff; border: 1px solid var(--dzy-border); border-radius: 10px; }
.security-panel > header { display: flex; gap: 12px; padding: 18px 19px; border-bottom: 1px solid var(--dzy-border); }
.security-panel-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; color: #344054; background: #f2f4f7; border-radius: 8px; }
.security-panel h2 { margin: 0; color: #101828; font-size: 15px; font-weight: 700; }
.security-panel header p { margin: 3px 0 0; color: #667085; font-size: 11px; }
.security-panel > form { padding: 19px; }
.security-panel .btn-primary { min-width: 132px; margin-top: 4px; }
.security-identities-panel { margin-bottom: 16px; }
.security-identity-list { padding: 0 19px; }
.security-identity-row { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 0; }
.security-identity-row + .security-identity-row { border-top: 1px solid var(--dzy-border); }
.security-provider-icon { width: 36px; height: 36px; display: grid; place-items: center; background: #f8fafc; border: 1px solid var(--dzy-border); border-radius: 9px; }
.security-provider-icon.google { color: #4285f4; }

/* Referral cashback: friendly enough to invite discovery, restrained enough
   to remain consistent with the service console. */
.referral-title-line { display:flex; align-items:center; gap:12px; }
.referral-title-line h1 { margin:0; }
.referral-gift-badge, .referral-nav-icon { display:inline-grid; place-items:center; color:#fff; background:linear-gradient(135deg,#ff7a45,#ff477e); box-shadow:0 8px 20px rgba(255,71,126,.2); }
.referral-gift-badge { width:44px; height:44px; border-radius:14px; font-size:20px; }
.referral-nav-icon { width:25px; height:25px; border-radius:8px; font-size:12px; }
.referral-nav-link { position:relative; }
.referral-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,.8fr); gap:28px; align-items:center; padding:34px; margin-bottom:24px; border-radius:22px; color:#fff; background:radial-gradient(circle at 85% 0,rgba(93,145,255,.45),transparent 38%),linear-gradient(135deg,#14255a,#1e54d8); box-shadow:0 20px 45px rgba(27,64,155,.15); }
.referral-hero h2 { font-size:clamp(26px,3vw,38px); margin:8px 0 12px; }
.referral-hero p { color:rgba(255,255,255,.82); margin:0; max-width:650px; }
.referral-kicker { font-size:13px; letter-spacing:.08em; color:#bcd2ff; }
.referral-share-box { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); border-radius:16px; padding:20px; backdrop-filter:blur(8px); }
.referral-share-box label { display:block; font-weight:700; margin-bottom:9px; }
.referral-share-box small { display:block; color:#d9e5ff; margin-top:10px; }
.referral-copy-row { display:flex; gap:8px; }
.referral-copy-row .form-control { min-width:0; background:#fff; }
.referral-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.referral-stat { padding:22px; display:flex; flex-direction:column; }
.referral-stat span { color:var(--dzy-muted,#667085); font-size:14px; }
.referral-stat strong { font-size:28px; color:#15213a; margin:6px 0; }
.referral-stat small { color:#8490a5; }
.referral-content-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,.72fr); gap:24px; align-items:start; }
.referral-rule-list > div { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 24px; border-bottom:1px solid #edf0f5; }
.referral-rule-list strong { color:#155eef; }
.referral-table th { white-space:nowrap; color:#667085; font-size:13px; }
.referral-withdraw-panel { position:sticky; top:96px; }
.referral-store-panel { margin-bottom:24px; }
.referral-store-balance { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; padding:12px 14px; border-radius:10px; background:#f4f8ff; }
.referral-store-balance strong { color:var(--dzy-primary); font-size:1.15rem; }
.referral-withdraw-tip { margin-top:12px; color:#667085; text-align:center; font-size:13px; }
.referral-withdraw-list > div { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:16px 20px; border-top:1px solid #edf0f5; }
.referral-withdraw-list strong, .referral-withdraw-list small { display:block; }
.referral-withdraw-list small { margin-top:3px; color:#8490a5; }
.referral-withdraw-list p { width:100%; margin:0; color:#b42318; font-size:13px; }
.referral-payout-details summary { cursor:pointer; color:#155eef; }
.referral-payout-details div { margin-top:8px; padding:10px; background:#f7f9fc; border-radius:8px; word-break:break-all; }
.referral-admin-actions { display:grid; gap:8px; min-width:190px; }
.referral-admin-actions form:last-child { display:grid; grid-template-columns:minmax(110px,1fr) auto; gap:6px; }
@media (prefers-reduced-motion:no-preference) {
  .referral-nav-link:not(.active) .referral-nav-icon { animation:referral-gift-nudge 4.8s ease-in-out infinite; transform-origin:50% 80%; }
  @keyframes referral-gift-nudge { 0%,82%,100%{transform:rotate(0)} 86%{transform:rotate(-8deg)} 90%{transform:rotate(8deg)} 94%{transform:rotate(-4deg)} 97%{transform:rotate(3deg)} }
}
@media (max-width:1100px) { .referral-stat-grid{grid-template-columns:repeat(2,1fr)} .referral-content-grid{grid-template-columns:1fr} .referral-withdraw-panel{position:static} }
@media (max-width:760px) { .referral-hero{grid-template-columns:1fr;padding:24px} .referral-stat-grid{grid-template-columns:1fr 1fr} .referral-copy-row{flex-direction:column} .referral-rule-list>div{align-items:flex-start;flex-direction:column;gap:4px} }
.security-provider-icon.telegram { color: #229ed9; }
.security-identity-copy { min-width: 0; }
.security-identity-copy strong, .security-identity-copy span { display: block; }
.security-identity-copy strong { color: #101828; font-size: 13px; }
.security-identity-copy span { margin-top: 2px; overflow: hidden; color: #667085; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.security-identity-manage { position: relative; }
.security-identity-manage > summary { padding: 7px 11px; color: #344054; background: #fff; border: 1px solid var(--dzy-border-strong); border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 650; list-style: none; }
.security-identity-manage > summary::-webkit-details-marker { display: none; }
.security-identity-manage > form { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: min(300px, calc(100vw - 52px)); display: grid; gap: 9px; padding: 14px; background: #fff; border: 1px solid var(--dzy-border); border-radius: 9px; box-shadow: 0 16px 34px rgba(16, 24, 40, .14); }
.security-identity-manage .form-label { margin: 0; font-size: 11px; }
.security-identity-manage .btn { justify-self: start; }
.security-form-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; margin: 4px 0 14px; color: #475467; background: #f8fafc; border-radius: 7px; font-size: 11px; }
.security-form-note i { margin-top: 2px; color: #667085; }
.security-checkbox { display: flex; align-items: flex-start; gap: 9px; padding: 11px; margin: 3px 0 14px; background: #f8fafc; border-radius: 7px; cursor: pointer; }
.security-checkbox .form-check-input { flex: 0 0 auto; margin-top: 3px; }
.security-checkbox strong, .security-checkbox small { display: block; }
.security-checkbox strong { color: #344054; font-size: 12px; }
.security-checkbox small { margin-top: 2px; color: #667085; font-size: 10px; }

@media (max-width: 820px) {
    .security-settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .console-page-header { display: grid; }
    .security-summary-grid { grid-template-columns: 1fr; }
    .security-pending { grid-template-columns: 36px minmax(0, 1fr); }
    .security-pending-actions { grid-column: 1 / -1; padding-top: 4px; }
    .security-identity-row { grid-template-columns: 38px minmax(0, 1fr); }
    .security-identity-row > .btn, .security-identity-manage { grid-column: 2; justify-self: start; }
    .security-identity-manage > form { right: auto; left: 0; }
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        --dzy-bg: #101318;
        --dzy-panel: #171b22;
        --dzy-text: #f2f4f7;
        --dzy-muted: #98a2b3;
        --dzy-border: #2b313b;
        --dzy-border-strong: #475467;
    }
}

/* Admin operations console */
.admin-nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    color: #344054;
    background: #fff;
    border: 1px solid var(--dzy-border);
    border-radius: 6px;
}
.admin-shell {
    min-height: calc(100vh - 60px);
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    background: #f5f7fa;
}
.admin-sidebar {
    position: sticky;
    top: 60px;
    z-index: 1020;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    padding: 18px 14px 16px;
    color: #d0d5dd;
    background: #111827;
    border-right: 1px solid #1f2937;
    overflow-y: auto;
}
.admin-nav { display: grid; gap: 22px; }
.admin-nav-group { display: grid; gap: 4px; }
.admin-nav-label {
    padding: 0 10px 6px;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.admin-nav-link {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    color: #b8c0cc;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 550;
    text-decoration: none;
}
.admin-nav-link i { width: 18px; color: #7d8998; text-align: center; }
.admin-nav-link:hover { color: #fff; background: #1f2937; }
.admin-nav-link:hover i { color: #cbd5e1; }
.admin-nav-link.active { color: #fff; background: #273449; border-color: #34445e; }
.admin-nav-link.active i { color: #84adff; }
.admin-sidebar-foot { margin-top: auto; padding-top: 24px; }
.admin-identity { display: flex; align-items: flex-start; gap: 9px; padding: 12px 10px; border-top: 1px solid #293447; }
.admin-identity-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 5px; background: #32d583; border-radius: 50%; box-shadow: 0 0 0 3px rgba(50,213,131,.12); }
.admin-identity strong, .admin-identity small { display: block; }
.admin-identity strong { color: #e5e7eb; font-size: 12px; font-weight: 600; }
.admin-identity small { max-width: 180px; margin-top: 2px; color: #7d8998; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-signout { display: flex; align-items: center; gap: 9px; padding: 8px 10px; color: #98a2b3; font-size: 12px; text-decoration: none; }
.admin-signout:hover { color: #fff; }
.admin-sidebar-backdrop { display: none; }
.admin-workspace { min-width: 0; display: flex; flex-direction: column; }
.admin-main { width: 100%; max-width: 1480px; min-height: calc(100vh - 112px); padding: 28px 32px 56px; margin: 0 auto; }
.admin-footer { display: flex; justify-content: space-between; gap: 20px; padding: 17px 32px; color: #98a2b3; background: #fff; border-top: 1px solid var(--dzy-border); font-size: 11px; }

.admin-page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.admin-page-header h1 { margin: 2px 0 0; color: #101828; font-size: 25px; font-weight: 680; letter-spacing: -.025em; }
.admin-page-header p { max-width: 760px; margin: 6px 0 0; color: var(--dzy-muted); }
.admin-eyebrow { color: #667085; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-metric-card { min-width: 0; padding: 17px 18px; background: #fff; border: 1px solid var(--dzy-border); border-radius: 8px; }
.admin-metric-label { color: #667085; font-size: 11px; font-weight: 650; }
.admin-metric-value { margin-top: 8px; color: #101828; font-weight: 700; letter-spacing: -.025em; }
.admin-metric-detail { min-height: 34px; margin-top: 5px; color: #667085; font-size: 11px; line-height: 1.5; }
.admin-metric-link { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 650; text-decoration: none; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-kpi {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 17px 18px;
    background: #fff;
    border: 1px solid var(--dzy-border);
    border-radius: 8px;
}
.admin-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #667085; font-size: 12px; }
.admin-kpi-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #475467; background: #f2f4f7; border-radius: 6px; }
.admin-kpi-value { color: #101828; font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.admin-kpi-note { color: #98a2b3; font-size: 11px; }
.admin-kpi.attention { border-color: #fecdca; }
.admin-kpi.attention .admin-kpi-icon { color: var(--dzy-danger); background: var(--dzy-danger-soft); }
.service-health-kpis .admin-kpi { color: inherit; text-decoration: none; }
.service-health-kpis .admin-kpi:hover { border-color: #b8c4d6; background: #fcfcfd; }
.service-health-table { min-width: 920px; }
.service-health-table .service-health-state { max-width: 280px; }
.service-health-actions { min-width: 190px; flex-wrap: wrap; }
.service-health-actions form { margin: 0; }

.admin-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
.admin-stack { min-width: 0; display: grid; gap: 18px; }
.admin-panel { min-width: 0; background: #fff; border: 1px solid var(--dzy-border); border-radius: 8px; }
.admin-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--dzy-border); }
.admin-panel-title { margin: 0; color: #101828; font-size: 14px; font-weight: 680; }
.admin-panel-subtitle { margin-top: 3px; color: #667085; font-size: 11px; }
.admin-panel-body { padding: 18px; }
.legal-version-value { font-size: 24px; }
.legal-editor { min-height: 560px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.7; resize: vertical; }
.admin-count { min-width: 24px; display: inline-flex; justify-content: center; padding: 2px 7px; color: #475467; background: #f2f4f7; border-radius: 999px; font-size: 11px; font-weight: 650; }

.admin-task-list { display: grid; }
.admin-task-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--dzy-border); color: inherit; text-decoration: none; }
.admin-task-row:last-child { border-bottom: 0; }
.admin-task-row:hover { color: inherit; background: #fcfcfd; }
.admin-task-row > :nth-child(2) { min-width: 0; }
.admin-task-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #475467; background: #f2f4f7; border-radius: 6px; }
.admin-task-icon.danger { color: var(--dzy-danger); background: var(--dzy-danger-soft); }
.admin-task-icon.warning { color: var(--dzy-warning); background: var(--dzy-warning-soft); }
.admin-task-icon.info { color: var(--dzy-info); background: var(--dzy-info-soft); }
.admin-task-title { display: block; color: #1d2939; font-size: 13px; font-weight: 620; overflow-wrap: anywhere; }
.admin-task-meta { display: block; margin-top: 2px; color: #667085; font-size: 11px; overflow-wrap: anywhere; }
.admin-task-value { color: #101828; font-size: 18px; font-weight: 700; }

.admin-filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px; margin-bottom: 14px; background: #fff; border: 1px solid var(--dzy-border); border-radius: 8px; }
.admin-filter-field { min-width: 150px; flex: 1 1 170px; }
.admin-filter-field.grow { flex-basis: 300px; }
.admin-filter-field label { display: block; margin-bottom: 5px; color: #667085; font-size: 11px; font-weight: 600; }
.admin-filter-actions { display: flex; gap: 7px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; margin-bottom: 16px; overflow: visible; background: #e9edf3; border-radius: 7px; }
.admin-tab { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; color: #475467; border-radius: 5px; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.admin-tab:hover { color: #1d2939; background: rgba(255,255,255,.55); }
.admin-tab.active { color: #101828; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.07); }

.admin-table-responsive { min-width: 0; max-width: 100%; overflow-x: auto; }
.admin-table { width: 100%; margin: 0; border-collapse: collapse; }
.admin-table th { padding: 10px 14px; color: #667085; background: #fcfcfd; border-bottom: 1px solid var(--dzy-border); font-size: 10px; font-weight: 700; letter-spacing: .035em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 13px 14px; color: #344054; border-bottom: 1px solid var(--dzy-border); font-size: 12px; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #fcfcfd; }
.admin-table-primary { color: #101828; font-weight: 650; }
.admin-table-secondary { margin-top: 2px; color: #667085; font-size: 10px; }
.admin-table-actions { display: flex; justify-content: flex-end; gap: 6px; }

.admin-definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-definition { min-height: 78px; padding: 14px 16px; border-right: 1px solid var(--dzy-border); border-bottom: 1px solid var(--dzy-border); }
.admin-definition:nth-child(2n) { border-right: 0; }
.admin-definition-label { color: #667085; font-size: 10px; font-weight: 650; }
.admin-definition-value { margin-top: 5px; color: #1d2939; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.admin-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-mini-stat { padding: 15px 16px; border-right: 1px solid var(--dzy-border); }
.admin-mini-stat:last-child { border-right: 0; }
.admin-mini-stat span { display: block; color: #667085; font-size: 10px; }
.admin-mini-stat strong { display: block; margin-top: 4px; color: #101828; font-size: 18px; }
.admin-empty { padding: 34px 20px; color: #667085; text-align: center; }
.admin-empty i { display: block; margin-bottom: 9px; color: #98a2b3; font-size: 20px; }
.admin-sensitive-code {
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font: 700 34px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .18em;
}
.admin-code-sample { margin: 0 0 12px; padding: 14px; overflow: auto; border: 1px solid #e4e7ec; border-radius: 8px; background: #f8fafc; color: #344054; font-size: 12px; }
.admin-reference-list { display: grid; gap: 14px; }
.admin-reference-list > div { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid #eaecf0; }
.admin-reference-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.admin-reference-list code { display: block; padding: 8px; overflow-wrap: anywhere; border-radius: 6px; background: #f2f4f7; color: #344054; }
.admin-reference-list span { color: #667085; font-size: 12px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.site-content-version { font-size: 20px; }
.admin-security-note { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; color: #344054; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; }
.admin-security-note > i { margin-top: 3px; color: var(--dzy-blue); }
.admin-security-note strong { display: block; font-size: 13px; }
.admin-security-note p { margin: 3px 0 0; color: var(--dzy-muted); font-size: 12px; }
.site-content-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.site-content-field { min-width: 0; }
.site-content-field-wide, .site-content-checkbox { grid-column: 1 / -1; }
.site-content-import-field { flex: 1 1 480px; max-width: 760px; }
.site-preview-toolbar { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 10px; }
.site-preview-canvas { width: 100%; max-width: 980px; min-height: 520px; margin: 0 auto; padding: 28px; background: #f8fafc; border: 1px solid var(--dzy-border); transition: width .18s ease; }
.site-preview-canvas.is-mobile { width: min(390px, 100%); padding: 18px; }
.site-preview-hero, .site-preview-auth-intro { padding: 32px; color: #eff6ff; background: #1e3a8a; border-radius: 8px; }
.site-preview-hero small { color: #bfdbfe; font-weight: 700; letter-spacing: .06em; }
.site-preview-hero h2 { margin: 18px 0 4px; font-size: 30px; }
.site-preview-hero h3 { margin: 0 0 12px; font-size: 24px; }
.site-preview-hero p { max-width: 680px; color: #dbeafe; }
.site-preview-hero button, .site-preview-auth-card button { padding: 9px 16px; color: #fff; background: var(--dzy-blue); border: 0; border-radius: 6px; font-weight: 700; }
.site-preview-hero > a { margin-left: 12px; color: #fff; font-weight: 650; }
.site-preview-hero ul { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 20px 0 0; list-style: none; font-size: 12px; }
.site-preview-section, .site-preview-contact, .site-preview-auth-card { margin-top: 14px; padding: 22px; background: #fff; border: 1px solid var(--dzy-border); border-radius: 8px; }
.site-preview-section h3, .site-preview-contact h2, .site-preview-auth-card h3 { margin: 0 0 8px; }
.site-preview-section p, .site-preview-contact p, .site-preview-auth-card p { margin: 0; color: var(--dzy-muted); }
.site-preview-auth-intro h2 { margin: 0; }
.site-preview-auth-intro p { margin: 8px 0 20px; color: #dbeafe; }
.site-preview-auth-intro a { color: #fff; font-weight: 700; }
.site-preview-input { height: 38px; margin: 10px 0; background: #f8fafc; border: 1px solid var(--dzy-border-strong); border-radius: 6px; }
.site-preview-auth-card small, .site-preview-contact small { display: block; margin-top: 14px; color: var(--dzy-muted); }
.site-preview-canvas.is-mobile .site-preview-hero { padding: 22px; }
.site-preview-canvas.is-mobile .site-preview-hero ul { display: grid; }
.admin-management-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 24px; }
.admin-management-grid > form + form { padding-left: 24px; border-left: 1px solid #eaecf0; }
.admin-form-title { margin: 0 0 6px; color: #101828; font-size: 15px; font-weight: 700; }
.admin-disclosure-list { display: grid; }
.admin-disclosure { border-bottom: 1px solid #eaecf0; }
.admin-disclosure:last-child { border-bottom: 0; }
.admin-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.admin-disclosure summary::-webkit-details-marker { display: none; }
.admin-disclosure summary span { display: grid; gap: 3px; }
.admin-disclosure summary small { color: #667085; font-size: 12px; }
.admin-disclosure[open] summary i { transform: rotate(180deg); }
.admin-disclosure form { padding: 0 16px 16px; }
.admin-danger-zone { border-color: #fecdca; }
.admin-danger-zone .admin-panel-header { background: #fffafa; }

/* Give legacy admin forms a consistent light surface until each workflow is migrated. */
.admin-main > .d-flex:first-child h1,
.admin-main > h1 { color: #101828; font-size: 24px !important; font-weight: 680; }
.admin-main .card { color: var(--dzy-text); background: #fff; border-color: var(--dzy-border); border-radius: 8px; box-shadow: none !important; }
.admin-main .card-header { color: #344054; background: #fcfcfd; border-color: var(--dzy-border); font-weight: 650; }
.admin-main .bg-dark { color: var(--dzy-text) !important; background: #fff !important; }
.admin-main .text-white { color: var(--dzy-text) !important; }
.admin-main .table-dark { --bs-table-color: #344054; --bs-table-bg: #fff; --bs-table-striped-bg: #fcfcfd; --bs-table-hover-bg: #f9fafb; --bs-table-border-color: var(--dzy-border); }
.admin-main .table-dark thead,
.admin-main thead.table-dark { --bs-table-color: #667085; --bs-table-bg: #fcfcfd; }
.admin-main .list-group-item-dark { color: #344054; background: #fff; border-color: var(--dzy-border); }
.admin-main .btn-outline-light { color: #344054; background: #fff; border-color: var(--dzy-border-strong); }
.admin-main .btn-outline-light:hover { color: #101828; background: #f2f4f7; border-color: #98a2b3; }
.admin-main code { color: #7f56d9; }

/* Native Console checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.checkout-channels { display: grid; gap: 12px; }
.checkout-wallet { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; padding:14px 16px; border:1px solid #b8dcff; border-radius:12px; background:#f3f9ff; }
.checkout-wallet > div { display:flex; align-items:center; gap:12px; }
.checkout-wallet > div > i { color:var(--dzy-primary); font-size:1.25rem; }
.checkout-wallet span { display:flex; flex-direction:column; gap:2px; }
.checkout-wallet small { color:var(--dzy-muted); }
.checkout-channel-wallet { border-color:#9fc8ff; background:#f7fbff; }
.checkout-channel { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 64px; padding: 14px 18px; color: var(--dzy-text); background: #fff; border: 1px solid var(--dzy-border); border-radius: 12px; transition: border-color .16s ease, box-shadow .16s ease; }
.checkout-channel:hover:not(:disabled) { border-color: var(--dzy-primary); box-shadow: 0 6px 20px rgba(31,94,235,.1); }
.checkout-channel span { display: flex; align-items: center; gap: 12px; }
.checkout-payment { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#payment-qr-wrap { flex-basis: 100%; padding: 22px; text-align: center; background: var(--dzy-surface-soft); border-radius: 12px; }
#payment-qr { width: min(240px, 100%); aspect-ratio: 1; object-fit: contain; background: #fff; }
#payment-qr-wrap p { margin: 12px 0 0; color: var(--dzy-muted); }
.checkout-summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--dzy-border); }
.checkout-total { margin: 8px 0 14px; padding: 18px 0; font-size: 1.1rem; border-bottom: 0; }
.checkout-total strong { color: var(--dzy-primary); font-size: 1.45rem; }

@media (max-width: 1180px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { order: -1; }
    .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .admin-nav-toggle { display: grid; }
    .admin-shell { display: block; }
    .admin-sidebar { position: fixed; top: 0; left: 0; z-index: 1060; width: 268px; height: 100vh; transform: translateX(-100%); transition: transform .18s ease; }
    .admin-shell.nav-open .admin-sidebar { transform: translateX(0); }
    .admin-sidebar-backdrop { position: fixed; inset: 0; z-index: 1050; display: block; visibility: hidden; opacity: 0; background: rgba(16,24,40,.46); border: 0; transition: opacity .18s ease, visibility .18s ease; }
    .admin-shell.nav-open .admin-sidebar-backdrop { visibility: visible; opacity: 1; }
    .admin-main { padding: 24px 18px 44px; }
    .admin-footer { padding-inline: 18px; }
}

@media (max-width: 640px) {
    .admin-page-header { display: grid; }
    .admin-metric-grid { grid-template-columns: 1fr; }
    .admin-header-actions { justify-content: flex-start; }
    .admin-header-actions .btn { flex: 1; }
    .admin-kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .admin-kpi { min-height: 104px; padding: 14px; }
    .admin-kpi-value { font-size: 22px; }
    .admin-filter-bar { display: grid; }
    .admin-filter-field { min-width: 0; }
    .admin-filter-actions .btn { flex: 1; }
    .admin-definition-grid { grid-template-columns: 1fr; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .site-content-form-grid { grid-template-columns: 1fr; }
    .admin-management-grid { grid-template-columns: 1fr; }
    .admin-management-grid > form + form { padding: 20px 0 0; border-top: 1px solid #eaecf0; border-left: 0; }
    .admin-definition, .admin-definition:nth-child(2n) { border-right: 0; }
    .admin-mini-grid { grid-template-columns: 1fr; }
    .admin-mini-stat { border-right: 0; border-bottom: 1px solid var(--dzy-border); }
    .admin-mini-stat:last-child { border-bottom: 0; }
    .admin-table-responsive { overflow-x: auto; }
    .admin-table { min-width: 720px; }
    .service-health-table { min-width: 0; }
    .service-health-table thead { display: none; }
    .service-health-table,
    .service-health-table tbody,
    .service-health-table tr,
    .service-health-table td { display: block; width: 100%; }
    .service-health-table tr { padding: 12px 14px; border-bottom: 1px solid var(--dzy-border); }
    .service-health-table tbody tr:last-child { border-bottom: 0; }
    .service-health-table td { max-width: none; padding: 5px 0; border: 0; }
    .service-health-table tbody tr:hover td { background: transparent; }
    .service-health-actions { min-width: 0; justify-content: flex-start; padding-top: 4px; }
}
