/* =====================================================================
   PREMIUM THEME — client portal design system
   Navy + champagne gold, drawn from the Crest Finance crest.
   Loaded after adminlte.min.css so it wins on equal specificity.
   ===================================================================== */

:root {
    /* Brand */
    --ink-950: #061226;
    --ink-900: #0a1b36;
    --ink-800: #11284c;
    --ink-700: #1a3662;
    --navy-600: #24477d;
    --gold-600: #a8843f;
    --gold-500: #c3a15e;
    --gold-400: #d8bd82;
    --gold-100: #f5edde;

    /* Neutrals */
    --bg: #f4f3ef;
    --surface: #ffffff;
    --surface-2: #faf9f6;
    --line: #e7e4dc;
    --line-soft: #f0ede6;
    --text: #0e1a2b;
    --text-2: #4a5568;
    --text-3: #8b93a3;

    /* Semantic */
    --pos: #0f7a55;
    --pos-bg: #e8f4ee;
    --neg: #b3362b;
    --neg-bg: #fbeceb;
    --warn: #93661a;
    --warn-bg: #fbf2df;
    --info: #24477d;
    --info-bg: #ebf0f7;

    /* Shape & depth */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --shadow-xs: 0 1px 2px rgba(14, 26, 43, .04);
    --shadow-sm: 0 1px 2px rgba(14, 26, 43, .04), 0 4px 16px -8px rgba(14, 26, 43, .08);
    --shadow-md: 0 1px 2px rgba(14, 26, 43, .05), 0 12px 32px -12px rgba(14, 26, 43, .16);
    --ring: 0 0 0 4px rgba(195, 161, 94, .18);

    --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    --sb-w: 268px;
    --nav-h: 68px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html, body {
    font-family: var(--font) !important;
    background: var(--bg) !important;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body { font-size: 14px; letter-spacing: -0.005em; }

a { color: var(--navy-600); }
a:hover { color: var(--ink-900); }

.num, .tabular { font-variant-numeric: tabular-nums; }

::selection { background: var(--gold-100); color: var(--ink-900); }

/* ---------------------------------------------------------------------
   App shell
   --------------------------------------------------------------------- */
.wrapper { background: var(--bg); }

.content-wrapper {
    background: var(--bg) !important;
    min-height: calc(100vh - var(--nav-h)) !important;
    padding-bottom: 8px !important;
}

.layout-navbar-fixed .wrapper .content-wrapper { margin-top: var(--nav-h) !important; }

.content-wrapper > .container-fluid,
.content-wrapper > section.content {
    padding: 32px 36px 40px !important;
    max-width: 1440px;
}

@media (min-width: 992px) {
    body .wrapper .content-wrapper,
    body .wrapper .main-footer,
    body .wrapper .main-header { margin-left: var(--sb-w) !important; }
}

@media (max-width: 991.98px) {
    body .wrapper .content-wrapper,
    body .wrapper .main-footer,
    body .wrapper .main-header { margin-left: 0 !important; }
    .content-wrapper > .container-fluid,
    .content-wrapper > section.content { padding: 24px 16px 32px !important; }
}

/* ---------------------------------------------------------------------
   Sidebar
   --------------------------------------------------------------------- */
.pb-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sb-w);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    background: var(--ink-900);
    color: rgba(255, 255, 255, .72);
    border-right: 1px solid rgba(255, 255, 255, .04);
    transition: transform .32s var(--ease);
}

.pb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--nav-h);
    padding: 0 22px;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    flex-shrink: 0;
}

.pb-brand img {
    width: 38px; height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(216, 189, 130, .35);
}

.pb-brand-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.pb-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .12) transparent;
}

.pb-nav-section {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .34);
    padding: 18px 12px 8px;
}

.pb-nav-section:first-child { padding-top: 6px; }

.pb-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .66);
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease;
}

.pb-nav-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }

.pb-nav-link.active {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.pb-nav-link.active::before {
    content: '';
    position: absolute;
    left: -14px; top: 9px; bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--gold-500);
}

.pb-sidebar-foot {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    flex-shrink: 0;
}

.pb-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 2px;
}

.pb-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink-900);
    background: var(--gold-400);
    overflow: hidden;
    text-decoration: none !important;
}

.pb-avatar img { width: 100%; height: 100%; object-fit: cover; }

.pb-user-meta { min-width: 0; flex: 1; }

.pb-user-name {
    font-size: 13px; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.pb-user-sub {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: rgba(255, 255, 255, .5);
    margin-top: 2px;
    white-space: nowrap;
    min-width: 0;
}

.pb-user-sub span { overflow: hidden; text-overflow: ellipsis; }

.pb-logout {
    display: block;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .75) !important;
    text-decoration: none !important;
    transition: background .18s, color .18s;
}

.pb-logout:hover { background: rgba(255, 255, 255, .06); color: #fff !important; }

.pb-overlay {
    position: fixed; inset: 0;
    background: rgba(6, 18, 38, .5);
    backdrop-filter: blur(2px);
    z-index: 1039;
    opacity: 0; visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

@media (max-width: 991.98px) {
    .pb-sidebar { transform: translateX(-100%); box-shadow: none; }
    body.pb-sidebar-open .pb-sidebar { transform: translateX(0); box-shadow: 24px 0 48px rgba(6, 18, 38, .28); }
    body.pb-sidebar-open .pb-overlay { opacity: 1; visibility: visible; }
    body.pb-sidebar-open { overflow: hidden; }
}

/* ---------------------------------------------------------------------
   Top navigation
   --------------------------------------------------------------------- */
.main-header.pb-topbar {
    height: var(--nav-h);
    min-height: var(--nav-h);
    padding: 0 36px !important;
    display: flex !important;
    align-items: center;
    gap: 16px;
    background: rgba(244, 243, 239, .82) !important;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line) !important;
    box-shadow: none !important;
    z-index: 1034 !important;
}

.pb-menu-btn {
    display: none;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    align-items: center; justify-content: center;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.pb-topbar-title { min-width: 0; }

.pb-topbar-greeting {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-topbar-date { font-size: 12px; color: var(--text-3); margin-top: 1px; }

.pb-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pb-balance-chip {
    display: flex; align-items: center; gap: 10px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color .18s, box-shadow .18s;
}

.pb-balance-chip:hover { border-color: var(--gold-400); box-shadow: var(--shadow-xs); }

.pb-balance-chip .lbl { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.pb-balance-chip .amt { font-size: 13.5px; color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }

.main-header .pb-avatar { width: 40px; height: 40px; }

@media (max-width: 991.98px) {
    .main-header.pb-topbar { padding: 0 16px !important; }
    .pb-menu-btn { display: flex; }
}

@media (max-width: 767.98px) {
    .pb-topbar-date, .pb-balance-chip .lbl { display: none; }
    .pb-topbar-actions .pb-btn { padding: 0 12px; }
}

@media (max-width: 479.98px) {
    .pb-topbar-title { display: none; }
    .pb-topbar-actions { gap: 8px; }
    .pb-topbar-actions .pb-btn-ghost { display: none; }
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.main-footer.pb-footer {
    background: transparent !important;
    border-top: 1px solid var(--line) !important;
    padding: 18px 36px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-3);
    box-shadow: none !important;
}

.pb-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.pb-footer-links a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.pb-footer-links a:hover { color: var(--text); }

@media (max-width: 991.98px) {
    .main-footer.pb-footer { padding: 16px !important; }
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.pb-btn,
.btn-submit, .btn-transfer-submit, .btn-submit-modern,
.btn-deposit, .btn-withdraw, .btn-transfer, .btn-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 11px;
    border: 1px solid var(--ink-900);
    background: var(--ink-900);
    box-shadow: none;
    color: #fff !important;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.005em;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}

.pb-btn:hover,
.btn-submit:hover, .btn-transfer-submit:hover, .btn-submit-modern:hover,
.btn-deposit:hover, .btn-withdraw:hover, .btn-transfer:hover, .btn-print:hover {
    background: var(--ink-700);
    border-color: var(--ink-700);
    color: #fff;
}

.pb-btn:active,
.btn-submit:active, .btn-transfer-submit:active, .btn-submit-modern:active,
.btn-deposit:active, .btn-withdraw:active, .btn-transfer:active { transform: translateY(1px); }

.pb-btn:focus-visible,
.btn-submit:focus-visible, .btn-transfer-submit:focus-visible, .btn-submit-modern:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-submit, .btn-transfer-submit { width: 100%; height: 52px; font-size: 15px; border-radius: 12px; }
.btn-submit { margin-top: 22px; }
.btn-deposit, .btn-withdraw, .btn-transfer { width: 100%; margin-top: auto; }

.pb-btn-ghost {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text) !important;
    box-shadow: none;
}

.pb-btn-ghost:hover { background: var(--surface); border-color: #d6d1c5; box-shadow: var(--shadow-xs); color: var(--text) !important; }

.pb-btn-gold { background: var(--gold-400); border-color: var(--gold-400); color: var(--ink-950) !important; }
.pb-btn-gold:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-950) !important; }

.pb-btn-sm { height: 40px; padding: 0 16px; font-size: 13px; border-radius: 10px; }

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none !important;
    transition: color .15s;
}

.btn-back:hover { color: var(--text); }

/* ---------------------------------------------------------------------
   Page header
   --------------------------------------------------------------------- */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 28px;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-2);
    margin: 6px 0 0;
}

.breadcrumb {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12.5px;
    font-weight: 600;
}

.breadcrumb-item a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.breadcrumb-item a:hover { color: var(--gold-600); }
.breadcrumb-item.active { color: var(--text); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: #c9c4b8; padding: 0 8px; }

@media (max-width: 767.98px) {
    .page-header { flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
    .page-title { font-size: 22px; }
}

/* ---------------------------------------------------------------------
   Surfaces
   --------------------------------------------------------------------- */
.pb-card,
.modern-card, .form-card, .card-modern, .rp-card, .tabs-card,
.profile-card, .account-card, .stat-card, .empty-state, .invoice {
    background: var(--surface);
    border: 1px solid var(--line) !important;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.modern-card, .form-card, .card-modern, .rp-card, .tabs-card { overflow: hidden; }

.modern-card-header, .form-card-header, .card-modern-header, .rp-card-header, .pb-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line-soft);
}

.card-modern-header, .pb-card-header { justify-content: space-between; }

.modern-card-title, .form-card-title, .card-modern-title, .rp-card-title, .pb-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 0;
}

.modern-card-sub, .form-card-sub, .form-card-subtitle, .pb-card-sub {
    font-size: 12.5px;
    color: var(--text-3);
    margin: 3px 0 0;
}

.form-card-body { padding: 28px; }

.card-modern-link, .pb-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-2);
    text-decoration: none !important;
    transition: color .15s;
}

.card-modern-link:hover, .pb-link:hover { color: var(--gold-600); }

@media (max-width: 767.98px) {
    .modern-card-header, .form-card-header, .card-modern-header, .rp-card-header, .pb-card-header { padding: 16px 18px; }
    .form-card-body { padding: 20px 18px; }
}

/* ---------------------------------------------------------------------
   Hero / account banners  (the "metal card" surface)
   --------------------------------------------------------------------- */
.pb-hero, .acc-summary, .acc-banner {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: var(--r-xl);
    padding: 28px 30px;
    margin-bottom: 24px;
    background: var(--ink-900);
    box-shadow: none;
}

.acc-summary::before, .acc-summary::after { content: none; }

.acc-summary-label, .acc-banner-label, .pb-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin: 0;
}

.acc-summary-value, .acc-banner-value {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 6px 0 0;
}

.acc-summary-number, .pb-mono {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .08em;
}

.acc-banner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.acc-banner-divider { width: 1px; height: 40px; background: rgba(255, 255, 255, .12); flex-shrink: 0; }

.acc-balance-pill, .balance-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    white-space: nowrap;
}

.acc-balance-pill { margin-left: auto; text-align: right; }
.balance-pill { flex-direction: row; align-items: baseline; gap: 10px; margin-top: 22px; }

.acc-balance-pill .bal-label, .balance-pill-label { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.acc-balance-pill .bal-amount, .balance-pill-amount { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

@media (max-width: 767.98px) {
    .pb-hero, .acc-summary, .acc-banner { padding: 22px 20px; border-radius: var(--r-lg); }
    .acc-banner-divider { display: none; }
    .acc-balance-pill { margin-left: 0; width: 100%; text-align: left; }
}

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.section-divider {
    display: flex; align-items: center; gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 4px 0 18px;
    padding: 0;
    border: 0;
}

.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

.field-label, .form-label-modern, .amount-label, .pb-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-2);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 8px;
}

.field-input, .form-input-modern, .field-readonly, .pb-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    appearance: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field-readonly { display: flex; align-items: center; background: var(--surface-2); color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.field-input:hover, .form-input-modern:hover, .pb-input:hover { border-color: #d6d1c5; }

.field-input:focus, .form-input-modern:focus, .pb-input:focus, .amount-input:focus {
    border-color: var(--gold-500) !important;
    box-shadow: var(--ring) !important;
}

.form-input-modern[readonly] { background: var(--surface-2); color: var(--text-3); }

.field-input::placeholder, .form-input-modern::placeholder, .pb-input::placeholder { color: #a8afbc; font-weight: 400; }

.field-hint, .amount-hint { font-size: 12px; color: var(--text-3); margin: 8px 0 0; }
.field-hint strong, .amount-hint strong { color: var(--text); font-weight: 700; }

.form-row-modern { margin-bottom: 20px; }

.amount-wrap { position: relative; }

.amount-prefix, .amount-wrap .currency-symbol {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-600);
    pointer-events: none;
}

.amount-input, .amount-wrap .field-input {
    width: 100%;
    height: 64px;
    padding: 0 18px 0 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.amount-input:focus, .amount-wrap .field-input:focus { background: var(--surface); }
.amount-input::placeholder, .amount-wrap .field-input::placeholder { color: #c3c8d1; font-weight: 600; }

.file-input-modern {
    width: 100%;
    padding: 14px;
    border-radius: var(--r-md);
    border: 1px dashed #d6d1c5;
    background: var(--surface-2);
    color: var(--text-2);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .18s;
}

.file-input-modern:hover { border-color: var(--gold-500); }

.file-input-modern::file-selector-button {
    height: 34px;
    margin-right: 12px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 26px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
}

.info-item-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 5px; }
.info-item-value { font-size: 14px; font-weight: 700; color: var(--text); margin: 0; overflow-wrap: anywhere; }

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

/* ---------------------------------------------------------------------
   Alerts
   --------------------------------------------------------------------- */
.modern-alert, .alert-success-box, .alert-error-box, .alert-info-box, .pb-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}


.modern-alert-success, .alert-success-box { background: var(--pos-bg); border-color: #cfe7db; color: var(--pos); }
.modern-alert-error, .alert-error-box { background: var(--neg-bg); border-color: #f2d3d0; color: var(--neg); }
.alert-info-box { background: var(--info-bg); border-color: #d6e0ee; color: var(--info); }

/* ---------------------------------------------------------------------
   Badges & amounts
   --------------------------------------------------------------------- */
.tx-badge, .acc-status-badge, .wc-status-badge, .pb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
    white-space: nowrap;
}

.tx-deposit, .badge-deposit, .badge-active, .status-active { background: var(--pos-bg); color: var(--pos); }
.tx-withdrawal, .badge-withdrawal, .badge-frozen { background: var(--neg-bg); color: var(--neg); }
.tx-transfer, .badge-transfer { background: var(--info-bg); color: var(--info); }
.badge-inactive, .status-inactive, .badge-pending { background: var(--warn-bg); color: var(--warn); }

.pb-hero .status-active { background: rgba(15, 122, 85, .22); color: #8fe0bd; }
.pb-hero .status-inactive { background: rgba(216, 189, 130, .16); color: var(--gold-400); }

.tx-code {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-3);
    letter-spacing: .02em;
}

.tx-amount, .tx-amount-positive, .tx-amount-negative {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tx-amount, .tx-amount.positive, .tx-amount-positive { color: var(--pos); }
.tx-amount.negative, .tx-amount-negative { color: var(--text); }

/* ---------------------------------------------------------------------
   Tables (plain + DataTables)
   --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tx-table, #txTable, #exportTable {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13.5px;
    margin: 0 !important;
}

.tx-table thead th, #txTable thead th, #exportTable thead th {
    background: var(--surface-2) !important;
    color: var(--text-3) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 20px !important;
    border: 0 !important;
    border-top: 1px solid var(--line-soft) !important;
    border-bottom: 1px solid var(--line-soft) !important;
    white-space: nowrap;
    text-align: left;
}

.tx-table tbody td, #txTable tbody td, #exportTable tbody td {
    padding: 15px 20px !important;
    color: var(--text-2);
    border: 0 !important;
    border-bottom: 1px solid var(--line-soft) !important;
    vertical-align: middle !important;
    background: transparent !important;
}

.tx-table tbody tr:last-child td, #txTable tbody tr:last-child td, #exportTable tbody tr:last-child td { border-bottom: 0 !important; }
.tx-table tbody tr, #txTable tbody tr, #exportTable tbody tr { background: transparent !important; transition: background .15s; }
.tx-table tbody tr:hover td, #txTable tbody tr:hover td, #exportTable tbody tr:hover td { background: var(--surface-2) !important; }

.cell-muted { color: var(--text-3) !important; white-space: nowrap; }
.cell-strong { color: var(--text) !important; font-weight: 600; }

.dataTables_wrapper { padding: 18px 0 18px; }
.dataTables_wrapper > .row { margin: 0 !important; padding: 0 20px; }
.dataTables_wrapper > .row:first-child { padding-bottom: 14px; }
.dataTables_wrapper > .row:last-child { padding-top: 14px; }
.dataTables_wrapper > .row > [class*="col-"] { padding: 0; }

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_info { font-size: 12.5px; color: var(--text-3) !important; font-weight: 600; padding-top: 0 !important; }

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    height: 38px;
    border-radius: 10px !important;
    border: 1px solid var(--line) !important;
    background-color: var(--surface) !important;
    font-family: var(--font);
    font-size: 13px !important;
    color: var(--text);
    box-shadow: none !important;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input { width: 240px !important; padding: 0 14px !important; margin-left: 0 !important; }

.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--gold-500) !important; box-shadow: var(--ring) !important; }
.dataTables_wrapper .dataTables_length select { width: auto !important; min-width: 72px; padding: 0 30px 0 12px !important; margin: 0 8px; background-position: right 10px center !important; }

.pagination { gap: 4px; margin: 0 !important; }
.page-item .page-link {
    min-width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 10px;
    border-radius: 9px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--text-2) !important;
    font-size: 13px; font-weight: 600;
    box-shadow: none !important;
}
.page-item .page-link:hover { background: var(--surface-2) !important; border-color: var(--line) !important; }
.page-item.active .page-link { background: var(--ink-900) !important; border-color: var(--ink-900) !important; color: #fff !important; }
.page-item.disabled .page-link { color: #c3c8d1 !important; }

.dataTables_wrapper .dataTables_paginate .paginate_button { border: 0 !important; background: transparent !important; padding: 0 !important; }

.dt-buttons .btn {
    height: 36px;
    padding: 0 12px !important;
    margin: 0 6px 6px 0;
    border-radius: 9px !important;
    border: 1px solid var(--line) !important;
    background: var(--surface) !important;
    color: var(--text-2) !important;
    font-size: 12.5px !important;
    font-weight: 700;
    box-shadow: none !important;
}
.dt-buttons .btn:hover { color: var(--text) !important; border-color: #d6d1c5 !important; }

table.dataTable thead .sorting::before, table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before, table.dataTable thead .sorting_desc::after { bottom: .85em !important; font-size: .75em; }

@media (max-width: 767.98px) {
    .dataTables_wrapper > .row { padding: 0 16px; }
    .dataTables_wrapper .dataTables_filter { text-align: left !important; margin-top: 10px; }
    .dataTables_wrapper .dataTables_filter input { width: 100% !important; }
    .dataTables_wrapper .dataTables_filter label { width: 100%; }
    .dataTables_wrapper .dataTables_paginate { margin-top: 10px; }
    .tx-table thead th, #txTable thead th, #exportTable thead th,
    .tx-table tbody td, #txTable tbody td, #exportTable tbody td { padding: 12px 14px !important; }
}

/* ---------------------------------------------------------------------
   Account cards (deposit / withdraw / transfer pickers, My Accounts)
   --------------------------------------------------------------------- */
.account-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 22px;
    transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease;
}

.account-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #ddd8cc !important; }

.acc-type-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 0; }
.acc-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.015em; margin: 6px 0 4px; }
.acc-number { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: var(--text-2); margin: 0 0 22px; }

.acc-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.acc-meta-item { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.acc-meta-item strong { display: block; margin-top: 3px; font-size: 13.5px; color: var(--text); font-weight: 700; }

.empty-state { text-align: center; padding: 64px 24px; }
.empty-state p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ---------------------------------------------------------------------
   Profile
   --------------------------------------------------------------------- */
.profile-card { padding: 28px 22px 10px; text-align: center; margin-bottom: 24px; }

.profile-avatar-wrap { margin-bottom: 14px; }

.profile-avatar {
    width: 84px; height: 84px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800;
    color: var(--ink-900);
    background: var(--gold-100);
    object-fit: cover;
}

.profile-name { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin: 0 0 4px; }
.profile-role { font-size: 12.5px; color: var(--text-3); margin: 0 0 18px; }

.profile-info-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.profile-info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.profile-info-label { color: var(--text-3); font-weight: 600; flex-shrink: 0; }
.profile-info-value { color: var(--text); font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.tabs-header { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }

.tab-btn {
    position: relative;
    padding: 16px 12px;
    margin: 0 4px -1px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--text-3);
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color .18s, border-color .18s;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--gold-500); }
.tab-btn:focus { outline: none; }

.tab-pane-content { display: none; padding: 28px; }
.tab-pane-content.active { display: block; animation: pbFade .25s ease; }

@keyframes pbFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 767.98px) {
    .tab-pane-content { padding: 20px 18px; }
    .tabs-header { padding: 0 8px; }
    .tab-btn { flex: 1; }
}

/* ---------------------------------------------------------------------
   Dashboard
   --------------------------------------------------------------------- */
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.dash-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.pb-hero.dash-hero { margin: 0; padding: 30px 32px 0; }

.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

.hero-balance-label { display: flex; align-items: center; gap: 10px; }

.hero-toggle {
    height: 26px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: transparent;
    color: rgba(255, 255, 255, .7);
    font-family: var(--font);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color .18s, border-color .18s;
}

.hero-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }

.hero-balance {
    margin: 12px 0 0;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.hero-balance .cents { color: rgba(255, 255, 255, .5); font-weight: 700; }
.hero-balance .ccy { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .5); margin-left: 10px; vertical-align: 6px; }

.hero-account { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .6); }
.hero-account .pb-mono { font-size: 13px; color: rgba(255, 255, 255, .85); }
.hero-account .sep { color: rgba(255, 255, 255, .3); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero-action {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .18s, border-color .18s;
}

.hero-action:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .32); }
.hero-action.primary { background: #fff; border-color: #fff; color: var(--ink-900) !important; }
.hero-action.primary:hover { background: var(--gold-100); border-color: var(--gold-100); }

.hero-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 28px -32px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.hero-strip > div { padding: 16px 32px 18px; }
.hero-strip > div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.hero-strip .k { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .5); }
.hero-strip .v { margin-top: 4px; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hero-strip .v.up { color: #8fe0bd; }

/* Stat tiles */
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.stat-card { padding: 18px 20px; }
.stat-card-label { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.stat-card-value { margin-top: 8px; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.stat-card-foot { margin-top: 8px; font-size: 12px; color: var(--text-3); font-weight: 600; }

.meter { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-top: 12px; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--gold-500); }

/* Activity list */
.tx-list { list-style: none; margin: 0; padding: 4px 0; }

.tx-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 13px 24px;
    transition: background .15s;
}

.tx-row + .tx-row { border-top: 1px solid var(--line-soft); }
.tx-row:hover { background: var(--surface-2); }

.tx-title { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.tx-sub .tx-code { font-size: 11px; }
.tx-right { text-align: right; }
.tx-right .tx-amount { font-size: 14.5px; display: block; }
.tx-right .tx-date { font-size: 11.5px; color: var(--text-3); margin-top: 3px; white-space: nowrap; }

.tx-empty { text-align: center; padding: 48px 24px; color: var(--text-3); font-size: 14px; }

/* Side lists */
.kv-list { list-style: none; margin: 0; padding: 4px 0; }
.kv-list li { display: flex; align-items: center; gap: 12px; padding: 12px 22px; }
.kv-list li + li { border-top: 1px solid var(--line-soft); }
.kv-list .k { flex: 1; font-size: 13px; color: var(--text-2); font-weight: 600; }
.kv-list .v { font-size: 13.5px; color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }

.link-list { list-style: none; margin: 0; padding: 4px 0; }
.link-list a { display: block; padding: 12px 22px; text-decoration: none !important; transition: background .15s; }
.link-list li + li a { border-top: 1px solid var(--line-soft); }
.link-list a:hover { background: var(--surface-2); }
.link-list .t { font-size: 13.5px; font-weight: 700; color: var(--text); }
.link-list .s { font-size: 12px; color: var(--text-3); margin-top: 1px; }

.support-card {
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--gold-100);
    border: 1px solid #eadcbf;
}

.support-card h4 { font-size: 15px; font-weight: 800; color: var(--ink-900); margin: 0 0 4px; letter-spacing: -0.01em; }
.support-card p { font-size: 13px; color: #6b5a3a; margin: 0 0 16px; line-height: 1.55; }

@media (max-width: 1199.98px) {
    .dash-grid { grid-template-columns: minmax(0, 1fr); }
    .dash-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
}

@media (max-width: 767.98px) {
    .pb-hero.dash-hero { padding: 24px 20px 0; }
    .hero-balance { font-size: 34px; }
    .hero-actions { gap: 8px; }
    .hero-action { flex: 1 1 calc(50% - 4px); justify-content: center; }
    .hero-strip { margin: 22px -20px 0; }
    .hero-strip > div { padding: 14px 12px 16px 20px; }
    .hero-strip .v { font-size: 13.5px; }
    .stats-row { grid-template-columns: 1fr; gap: 12px; }
    .tx-row { padding: 12px 18px; }
}

@media (max-width: 419.98px) {
    .hero-strip { grid-template-columns: 1fr; }
    .hero-strip > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------------------------------------------------------------------
   Balance statement
   --------------------------------------------------------------------- */
.statement-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 18px 20px;
    border-radius: var(--r-md);
    background: var(--ink-900);
    color: #fff;
    margin-top: 8px;
}

.statement-total .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.statement-total .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

@media print {
    .pb-sidebar, .main-header, .main-footer, .no-print, .page-header nav { display: none !important; }
    body .wrapper .content-wrapper { margin: 0 !important; }
    .pb-card, .modern-card { box-shadow: none; }
}

/* ---------------------------------------------------------------------
   SweetAlert (v1 + v2) polish
   --------------------------------------------------------------------- */
.swal-modal, .swal2-popup { border-radius: var(--r-xl) !important; font-family: var(--font) !important; }
.swal-title, .swal2-title { color: var(--text) !important; font-weight: 800 !important; letter-spacing: -0.02em; }
.swal-text, .swal2-html-container, .swal2-content { color: var(--text-2) !important; }
.swal-button, .swal2-styled.swal2-confirm { background: var(--ink-900) !important; border-radius: 10px !important; font-weight: 700 !important; box-shadow: none !important; }
.swal-lead { color: var(--text-2); font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; }
.swal-contact { display: grid; gap: 10px; text-align: left; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.swal-contact div { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text); }
.swal2-styled.swal2-cancel { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--line) !important; border-radius: 10px !important; font-weight: 700 !important; }

/* =====================================================================
   AUTH PAGES (sign in, sign up, password reset)
   ===================================================================== */
.auth-body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    font-family: var(--font);
}

.auth-shell { display: flex; min-height: 100vh; }

.auth-aside {
    position: relative;
    width: 46%;
    max-width: 640px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 44px 56px;
    color: #fff;
    overflow: hidden;
    background: var(--ink-900);
}

.auth-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.auth-brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(216, 189, 130, .35); }
.auth-brand-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }

.auth-aside-body { margin: auto 0; padding: 48px 0; max-width: 440px; }

.auth-headline {
    margin: 0 0 14px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #fff;
}

.auth-lead { font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .66); margin: 0; }

.auth-aside-foot { font-size: 12px; color: rgba(255, 255, 255, .4); }

.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.auth-card { width: 100%; max-width: 420px; }
.auth-card.wide { max-width: 640px; }

.auth-mobile-brand { display: none; margin-bottom: 32px; }
.auth-mobile-brand .auth-brand-name { color: var(--text); }

.auth-title { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; color: var(--text); margin: 0 0 8px; }
.auth-subtitle { font-size: 14.5px; color: var(--text-2); margin: 0 0 32px; line-height: 1.6; }

.auth-field { margin-bottom: 18px; }
.auth-field-row { display: flex; justify-content: space-between; align-items: baseline; }

.auth-input-wrap { position: relative; }
.auth-input, .auth-input-wrap .pb-input { height: 52px; background: var(--surface); }
.auth-input-wrap .pb-input.has-toggle { padding-right: 72px; }

.auth-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    height: 34px;
    padding: 0 10px;
    border: 0; border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s, background .15s;
}

.auth-toggle:hover { color: var(--text); background: var(--surface-2); }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 26px; gap: 12px; }

.auth-check { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; margin: 0; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--ink-900); cursor: pointer; margin: 0; }

.auth-link { font-size: 13px; font-weight: 700; color: var(--ink-700) !important; text-decoration: none !important; border-bottom: 1px solid transparent; transition: border-color .15s, color .15s; }
.auth-link:hover { color: var(--gold-600) !important; border-bottom-color: currentColor; }

.auth-card .pb-btn.block { width: 100%; height: 52px; font-size: 15px; border-radius: 12px; }

.auth-foot { margin-top: 28px; text-align: center; font-size: 13.5px; color: var(--text-2); }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--text-3); font-size: 12px; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.auth-brand-light { margin-bottom: 40px; }
.auth-brand-light .auth-brand-name { color: var(--text); }

.auth-steps { list-style: none; margin: 0 0 20px; padding: 6px 0; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.auth-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.auth-steps li + li { border-top: 1px solid var(--line-soft); }
.auth-steps li span { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--gold-100); color: var(--gold-600); font-size: 11.5px; font-weight: 800; }
.auth-steps em { font-style: normal; color: var(--text); }

.auth-hint { font-size: 13px; color: var(--text-3); margin: 0 0 22px; }

.auth-dev-note { margin: 0 0 22px; padding: 14px 16px; border-radius: var(--r-md); background: var(--warn-bg); border: 1px dashed #e3c98f; color: #6b5a3a; font-size: 12.5px; line-height: 1.6; }
.auth-dev-note strong { display: block; color: var(--warn); margin-bottom: 4px; }
.auth-title.is-success { color: var(--pos); }
.auth-dev-note a { display: block; margin-top: 8px; font-weight: 800; color: var(--ink-900); }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.pw-meter span { height: 4px; border-radius: 999px; background: var(--line); transition: background .2s; }
.pw-meter span.on.s1 { background: var(--neg); }
.pw-meter span.on.s2 { background: #d59a2c; }
.pw-meter span.on.s3 { background: var(--gold-500); }
.pw-meter span.on.s4 { background: var(--pos); }

.pw-rules { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; }
.pw-rules li { font-size: 12px; font-weight: 600; color: var(--text-3); transition: color .2s; }
.pw-rules li.ok { color: var(--pos); }

.alert-error { background: var(--neg-bg); border: 1px solid #f2d3d0; color: var(--neg); border-radius: var(--r-md); padding: 13px 16px; font-size: 13.5px; font-weight: 600; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }

@media (max-width: 1023.98px) {
    .auth-aside { display: none; }
    .auth-mobile-brand { display: flex; }
}

@media (max-width: 519.98px) {
    .auth-main { padding: 32px 18px; justify-content: flex-start; }
    .auth-title { font-size: 26px; }
}
