/* =========================================================
   HeyPedidos — Área do Cliente
   Sistema visual local, sem bibliotecas ou fontes externas
   ========================================================= */

:root {
    --brand: #5b35c9;
    --brand-dark: #4725a7;
    --brand-darker: #351879;
    --brand-soft: #f0ebff;
    --brand-soft-2: #e5dcff;
    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface-soft: #fafafe;
    --text: #292638;
    --text-strong: #201d2d;
    --muted: #767285;
    --muted-2: #9793a3;
    --border: #e8e6ee;
    --border-strong: #dad7e3;
    --success: #138a52;
    --success-soft: #e9f8f0;
    --warning: #b86d00;
    --warning-soft: #fff4d8;
    --danger: #cf3c4d;
    --danger-dark: #aa2939;
    --danger-soft: #ffebee;
    --info: #2876ca;
    --info-soft: #eaf3ff;
    --orange: #d56b18;
    --orange-soft: #fff0e4;
    --sidebar-width: 268px;
    --topbar-height: 76px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(36, 29, 58, .045), 0 7px 18px rgba(36, 29, 58, .025);
    --shadow-md: 0 10px 30px rgba(43, 33, 79, .10);
    --transition: 180ms ease;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { outline: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img, svg { display: block; }
svg { flex: 0 0 auto; }
[hidden] { display: none !important; }
::selection { background: var(--brand-soft-2); color: var(--brand-darker); }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 9999; padding: 10px 16px; background: #fff; color: var(--brand); border-radius: 8px; font-weight: 700; box-shadow: var(--shadow-md); transition: top var(--transition); }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .icon-button:focus-visible, .table-action:focus-visible, .sidebar-link:focus-visible { box-shadow: 0 0 0 3px rgba(91, 53, 201, .20); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(91, 53, 201, .17); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 8px 20px rgba(91, 53, 201, .23); }
.btn-secondary { background: #fff; color: #5d586b; border-color: var(--border-strong); }
.btn-secondary:hover { color: var(--brand); border-color: #c8baf2; background: #fbfaff; }
.btn-warning { background: #bd7100; color: #fff; }
.btn-warning:hover { background: #9d5d00; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 6px 15px rgba(207, 60, 77, .16); }
.btn-danger:hover { background: var(--danger-dark); }
.btn-danger-soft { background: #fff; color: var(--danger-dark); border-color: #f1b8bf; }
.btn-danger-soft:hover { background: var(--danger-soft); border-color: #e89aa5; }
.btn-danger-outline { color: var(--danger); background: #fff; border-color: #efb6bd; }
.btn-danger-outline:hover { background: var(--danger-soft); }
.btn-whatsapp { color: #fff; background: #198d57; }
.btn-whatsapp:hover { background: #117447; }
.btn-block { width: 100%; }
.btn-lg { min-height: 50px; padding: 12px 19px; font-size: 14px; border-radius: 10px; }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-button { display: inline-grid; place-items: center; border: 0; background: transparent; padding: 5px; border-radius: 7px; cursor: pointer; }
.text-button, .text-link { border: 0; background: transparent; color: var(--brand); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 0; }
.text-link:hover, .text-button:hover { color: var(--brand-dark); }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }

/* Badges */
.status-badge {
    width: max-content;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .035em;
    font-weight: 800;
    white-space: nowrap;
}
.status-success { color: #117b49; background: var(--success-soft); }
.status-warning { color: #9a5b00; background: var(--warning-soft); }
.status-danger { color: #bd3243; background: var(--danger-soft); }
.status-info { color: #2168ad; background: var(--info-soft); }
.status-purple { color: var(--brand); background: var(--brand-soft); }
.status-neutral { color: #686473; background: #efeff3; }

/* Flash messages */
.flash-message {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    animation: slideDown .25s ease both;
}
.flash-message > span:nth-child(2) { flex: 1; }
.flash-icon { display: grid; place-items: center; }
.flash-success { background: var(--success-soft); border-color: #c7ead6; color: #146d43; }
.flash-danger { background: var(--danger-soft); border-color: #f2c5ca; color: #a72d3c; }
.flash-warning { background: var(--warning-soft); border-color: #f1daa2; color: #8b5503; }
.flash-info { background: var(--info-soft); border-color: #cadff8; color: #2865a4; }
.flash-message.is-leaving { opacity: 0; transform: translateY(-6px); transition: .2s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

/* Brand */
.brand-mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 11px;
    color: #fff;
    flex: 0 0 auto;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { color: #fff; font-size: 19px; letter-spacing: -.6px; font-weight: 800; }
.brand-copy strong span, .mobile-page-brand strong span, .invoice-brand strong span { color: #d6cbff; }
.brand-copy small { color: rgba(255,255,255,.58); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; margin-top: 6px; font-weight: 700; }

/* =========================================================
   Authentication
   ========================================================= */
.auth-body { background: #fff; min-height: 100vh; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(410px, 46%) 1fr; }
.auth-brand-panel {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #5730c2;
    padding: clamp(22px, 3.5vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}
.auth-brand-content { position: relative; z-index: 2; max-width: 560px; }
.auth-logo { display: inline-flex; align-items: center; gap: 12px; }
.auth-hero-copy { margin-top: clamp(28px, 6vh, 72px); }
.eyebrow { width: max-content; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #e4ddff; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 7px 10px; }
.auth-hero-copy h1 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -2.4px; margin: 16px 0 14px; font-weight: 760; }
.auth-hero-copy h1 em { font-style: normal; color: #d9cdff; }
.auth-hero-copy p { max-width: 505px; margin: 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.6; }
.auth-benefits { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; }
.auth-benefits li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.83); font-size: 12px; }
.auth-benefits li span { width: 24px; height: 24px; display: grid; place-items: center; color: #fff; border-radius: 7px; background: rgba(255,255,255,.12); }
.auth-security-note { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.52); font-size: 11px; font-weight: 600; }
.auth-orb { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; pointer-events: none; }
.auth-orb::after { content: ""; position: absolute; inset: 20%; border: inherit; border-radius: inherit; }
.auth-orb-one { width: 420px; height: 420px; right: -180px; top: -130px; }
.auth-orb-two { width: 340px; height: 340px; left: -170px; bottom: -140px; }
.auth-form-panel { min-height: 100vh; padding: 22px clamp(28px, 7vw, 110px) 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: #fff; }
.auth-form-wrap { width: min(100%, 440px); }
.auth-mobile-brand { display: none; }
.auth-heading { margin-bottom: 18px; }
.auth-heading.centered { text-align: center; }
.auth-section-tag { color: var(--brand); font-weight: 800; font-size: 9px; letter-spacing: .15em; }
.auth-heading h2 { margin: 5px 0 5px; color: var(--text-strong); font-size: 26px; line-height: 1.2; letter-spacing: -.7px; }
.auth-heading p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 13px; }
.auth-form { display: grid; gap: 13px; }
.field-group { min-width: 0; }
.field-group > label, .field-label-row label { display: block; color: #4f4b5b; font-size: 11px; font-weight: 800; margin-bottom: 5px; }
.field-group label i { color: var(--danger); font-style: normal; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-label-row a { color: var(--brand); font-size: 11px; font-weight: 700; margin-bottom: 5px; }
.field-label-row small { color: var(--muted-2); font-size: 10px; margin-bottom: 5px; }
.input-with-icon { min-height: 44px; position: relative; display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.input-with-icon:focus-within { border-color: #9c83e7; box-shadow: 0 0 0 3px rgba(91,53,201,.10); }
.input-with-icon > span { width: 42px; display: grid; place-items: center; color: #9a96a7; }
.input-with-icon input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; padding: 0 13px 0 0; color: var(--text); }
.input-with-icon input::placeholder, .form-input::placeholder, textarea::placeholder { color: #b0acb9; }
.password-input button { width: 43px; height: 41px; border: 0; background: transparent; color: #8d8999; display: grid; place-items: center; cursor: pointer; }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: #696576; font-size: 12px; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border: 1.5px solid #c7c3cf; border-radius: 5px; color: transparent; margin-top: 1px; transition: var(--transition); }
.check-row input:checked + .custom-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.check-row input:focus-visible + .custom-check { box-shadow: 0 0 0 3px rgba(91,53,201,.16); }
.auth-remember { margin-top: -2px; }
.demo-credentials { margin-top: 24px; padding: 12px 13px; display: flex; align-items: center; gap: 10px; background: #f7f5fd; border: 1px dashed #d5caef; border-radius: 10px; color: #615b72; }
.demo-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; background: #eae3fb; color: var(--brand); }
.demo-credentials > div { min-width: 0; flex: 1; }
.demo-credentials strong, .demo-credentials small { display: block; }
.demo-credentials strong { color: #4b455c; font-size: 11px; margin-bottom: 3px; }
.demo-credentials small { font-size: 10px; color: #7a7488; overflow-wrap: anywhere; }
.copy-demo { border: 0; color: var(--brand); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; padding: 5px; }
.operational-login-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); }
.operational-login-note > svg { color: var(--info); margin-top: 2px; }
.operational-login-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.operational-login-note strong { color: #555061; }
.auth-copyright { position: absolute; bottom: 14px; margin: 0; color: #aaa6b2; font-size: 10px; }
.auth-back-link { display: inline-flex; align-items: center; gap: 7px; color: #686374; font-size: 12px; font-weight: 700; margin-bottom: 22px; }
.auth-back-link:hover { color: var(--brand); }
.auth-state-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--brand); background: var(--brand-soft); border-radius: 18px; }
.auth-state-icon.success { color: var(--success); background: var(--success-soft); }
.auth-state-icon.danger { color: var(--danger); background: var(--danger-soft); }
.auth-info-box { display: flex; gap: 10px; align-items: flex-start; padding: 13px; margin: 22px 0 18px; border: 1px solid #d9e6f5; background: #f4f8fd; border-radius: 9px; color: #54708e; font-size: 11px; line-height: 1.55; }
.demo-only-note { text-align: center; color: #a07c31; font-size: 9px; line-height: 1.45; margin: 8px 8px 15px; }
.auth-support-line { text-align: center; color: var(--muted); font-size: 11px; margin: 16px 0 0; }
.auth-support-line a { color: var(--brand); font-weight: 700; }
.password-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.password-strength > span { height: 3px; background: #e8e6ec; border-radius: 4px; transition: .2s; }
.password-strength small { grid-column: 1 / -1; color: var(--muted-2); font-size: 9px; margin-top: 2px; }
.password-strength[data-level="1"] span:nth-child(1) { background: var(--danger); }
.password-strength[data-level="2"] span:nth-child(-n+2) { background: #d78b19; }
.password-strength[data-level="3"] span:nth-child(-n+3) { background: #52a56d; }
.password-strength[data-level="4"] span { background: var(--success); }

/* =========================================================
   App shell, sidebar and top bar
   ========================================================= */
.app-body { min-height: 100vh; overflow-x: hidden; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #5933c3;
    color: #fff;
    z-index: 900;
    padding: 0 14px 17px;
    box-shadow: 8px 0 24px rgba(51, 25, 118, .08);
}
.sidebar-head { height: var(--topbar-height); padding: 0 9px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-logo { display: flex; align-items: center; gap: 11px; }
.sidebar-mobile-close { display: none; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 8px; background: rgba(255,255,255,.10); color: #fff; cursor: pointer; }
.sidebar-account-label { padding: 25px 13px 10px; color: rgba(255,255,255,.42); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-link { position: relative; min-height: 47px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border-radius: 9px; color: rgba(255,255,255,.70); font-size: 12px; font-weight: 600; transition: background var(--transition), color var(--transition), transform var(--transition); }
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(1px); }
.sidebar-link.active { color: #fff; background: rgba(255,255,255,.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,.035); }
.sidebar-link.active::before { content: ""; position: absolute; left: -14px; width: 4px; height: 24px; background: #fff; border-radius: 0 5px 5px 0; }
.sidebar-link-icon { width: 27px; height: 27px; display: grid; place-items: center; }
.sidebar-link.active .sidebar-link-icon { color: #fff; }
.nav-dot { width: 7px; height: 7px; border: 2px solid #6b48c9; border-radius: 50%; background: #ffbd4a; margin-left: auto; box-sizing: content-box; }
.sidebar-spacer { flex: 1; min-height: 20px; }
.sidebar-help-card { margin: 0 1px 13px; min-height: 63px; padding: 11px; display: flex; align-items: center; gap: 9px; border-radius: 10px; background: rgba(255,255,255,.105); border: 1px solid rgba(255,255,255,.09); }
.sidebar-help-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.11); border-radius: 8px; }
.sidebar-help-card > div { min-width: 0; flex: 1; }
.sidebar-help-card strong, .sidebar-help-card small { display: block; }
.sidebar-help-card strong { font-size: 10px; }
.sidebar-help-card small { font-size: 8px; color: rgba(255,255,255,.55); margin-top: 3px; }
.sidebar-help-card > a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: rgba(255,255,255,.75); }
.sidebar-help-card > a:hover { color: #fff; background: rgba(255,255,255,.1); }
.sidebar-security { height: 30px; display: flex; align-items: center; justify-content: center; gap: 7px; color: rgba(255,255,255,.37); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.app-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { height: var(--topbar-height); position: sticky; top: 0; z-index: 700; padding: 0 29px; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(300px, 480px) minmax(250px, 1fr); align-items: center; gap: 20px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.topbar-left { display: flex; align-items: center; }
.topbar-icon-btn { width: 39px; height: 39px; border: 1px solid transparent; background: transparent; color: #6f6b79; border-radius: 9px; display: grid; place-items: center; cursor: pointer; transition: var(--transition); }
.topbar-icon-btn:hover { color: var(--brand); background: var(--brand-soft); }
.hamburger { display: none; }
.mobile-page-brand { display: none; align-items: center; gap: 8px; }
.mobile-page-brand .brand-mark { width: 32px; height: 32px; background: var(--brand); border: 0; border-radius: 9px; }
.mobile-page-brand strong { font-size: 16px; color: var(--text-strong); letter-spacing: -.4px; }
.mobile-page-brand strong span { color: var(--brand); }
.global-search { height: 42px; position: relative; display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: #f8f8fb; transition: var(--transition); }
.global-search:focus-within { background: #fff; border-color: #b3a1e8; box-shadow: 0 0 0 3px rgba(91,53,201,.08); }
.search-leading { width: 42px; color: #918d9c; display: grid; place-items: center; }
.global-search > input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 12px; }
.global-search > input::placeholder { color: #9995a4; }
.global-search > kbd, .help-search kbd { margin-right: 9px; padding: 3px 6px; color: #8f8b99; background: #fff; border: 1px solid #e3e0e8; border-radius: 5px; box-shadow: 0 1px 1px rgba(0,0,0,.03); font: 9px/1.1 inherit; }
.global-search-panel { position: absolute; top: calc(100% + 9px); left: 0; right: 0; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 17px 45px rgba(39,31,65,.15); }
.search-panel-label { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .12em; padding: 7px 8px; }
.global-search-panel a { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 8px; }
.global-search-panel a:hover, .global-search-panel a.is-focused { background: #f7f5fc; }
.search-result-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.search-result-icon.purple { color: var(--brand); background: var(--brand-soft); }
.search-result-icon.blue { color: var(--info); background: var(--info-soft); }
.search-result-icon.orange { color: var(--orange); background: var(--orange-soft); }
.search-result-icon.green { color: var(--success); background: var(--success-soft); }
.global-search-panel a > span:nth-child(2) { flex: 1; min-width: 0; }
.global-search-panel strong, .global-search-panel small { display: block; }
.global-search-panel strong { color: #403b4c; font-size: 11px; }
.global-search-panel small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.search-go { color: #aaa5b3; }
.search-empty { padding: 22px 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.dropdown { position: relative; }
.notification-button { position: relative; }
.notification-badge { position: absolute; right: 2px; top: 1px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 10px; background: #dc3f50; color: #fff; font-size: 8px; font-weight: 800; }
.topbar-divider { width: 1px; height: 27px; background: var(--border); margin: 0 4px; }
.user-menu-button { display: flex; align-items: center; gap: 9px; border: 0; padding: 4px 5px; border-radius: 10px; background: transparent; cursor: pointer; }
.user-menu-button:hover { background: #f7f6fa; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.avatar-purple { color: #fff; background: var(--brand); box-shadow: inset 0 0 0 2px rgba(255,255,255,.16); }
.avatar.large { width: 43px; height: 43px; font-size: 12px; }
.user-menu-copy { min-width: 0; text-align: left; line-height: 1.15; }
.user-menu-copy strong, .user-menu-copy small { display: block; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu-copy strong { color: #484452; font-size: 11px; }
.user-menu-copy small { color: #9894a1; font-size: 8px; margin-top: 4px; }
.user-chevron { color: #a29eaa; margin-left: 2px; transition: transform var(--transition); }
.user-menu-button[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }
.dropdown-panel { position: absolute; top: calc(100% + 10px); right: 0; min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 17px 45px rgba(39,31,65,.15); z-index: 30; animation: dropdownIn .15s ease both; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.notification-panel { width: min(390px, calc(100vw - 30px)); }
.dropdown-head { min-height: 59px; padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dropdown-head > div > strong, .dropdown-head > div > span { display: block; }
.dropdown-head > div > strong { font-size: 13px; }
.dropdown-head > div > span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.notification-list { max-height: 358px; overflow-y: auto; }
.notification-item { position: relative; display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f0eef3; transition: background var(--transition); }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover, .notification-item.unread { background: #faf9fd; }
.notification-type { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; flex: 0 0 auto; }
.notification-type.warning { color: var(--warning); background: var(--warning-soft); }
.notification-type.info { color: var(--info); background: var(--info-soft); }
.notification-type.success { color: var(--success); background: var(--success-soft); }
.notification-copy { flex: 1; min-width: 0; }
.notification-copy strong, .notification-copy small, .notification-copy em { display: block; }
.notification-copy strong { color: #464150; font-size: 10px; }
.notification-copy small { color: var(--muted); font-size: 9px; line-height: 1.45; margin-top: 2px; }
.notification-copy em { color: #aaa6b3; font-size: 8px; font-style: normal; margin-top: 5px; }
.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 4px; }
.user-panel { width: 255px; }
.user-panel-head { display: flex; align-items: center; gap: 10px; padding: 15px; border-bottom: 1px solid var(--border); }
.user-panel-head > div { min-width: 0; }
.user-panel-head strong, .user-panel-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-panel-head strong { font-size: 11px; }
.user-panel-head small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.user-panel-links { padding: 7px; border-bottom: 1px solid var(--border); }
.user-panel-links a, .logout-form button { width: 100%; min-height: 37px; padding: 0 9px; display: flex; align-items: center; gap: 9px; color: #5c5767; border: 0; border-radius: 7px; background: transparent; font-size: 10px; font-weight: 600; cursor: pointer; }
.user-panel-links a:hover { color: var(--brand); background: var(--brand-soft); }
.logout-form { padding: 7px; }
.logout-form button { color: var(--danger); }
.logout-form button:hover { background: var(--danger-soft); }
.mobile-backdrop { display: none; position: fixed; inset: 0; z-index: 850; background: rgba(26,19,42,.48); backdrop-filter: blur(2px); }
.mobile-backdrop.visible { display: block; }
.main-content { min-height: calc(100vh - var(--topbar-height)); display: flex; flex-direction: column; }
.content-container { width: min(100%, 1510px); margin: 0 auto; padding: 25px clamp(20px, 2.4vw, 36px) 34px; flex: 1; }
.app-footer { min-height: 54px; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--border); color: #9c98a5; font-size: 9px; padding: 0 clamp(20px, 2.4vw, 36px); }
.app-footer a:hover { color: var(--brand); }
.footer-separator { color: #d1ced6; }
.footer-security { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #aaa6b2; }

/* Page heading */
.page-heading { min-height: 72px; margin-bottom: 22px; padding: 0 2px 19px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.page-heading-main { display: flex; align-items: center; gap: 11px; }
.heading-accent { width: 4px; height: 42px; background: var(--brand); border-radius: 4px; }
.heading-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.page-heading h1 { margin: 0; color: var(--text-strong); font-size: 20px; line-height: 1.2; letter-spacing: -.35px; }
.page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; color: #9b97a5; font-size: 10px; white-space: nowrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb strong { color: #5f5a6b; font-weight: 700; }
.page-back-link { width: max-content; display: inline-flex; align-items: center; gap: 7px; color: #716c7c; font-size: 11px; font-weight: 700; margin: -6px 0 18px; }
.page-back-link:hover { color: var(--brand); }

/* Generic cards and banners */
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { min-height: 69px; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { margin: 0; color: #373341; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.card-header h2 svg, .card-header h3 svg { color: var(--brand); }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.alert-banner { min-height: 74px; padding: 14px 16px; margin: 19px 0; border: 1px solid; border-radius: 11px; display: flex; align-items: center; gap: 13px; }
.alert-banner-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.alert-banner-copy { flex: 1; min-width: 0; }
.alert-banner-copy strong, .alert-banner-copy p { display: block; }
.alert-banner-copy strong { font-size: 12px; }
.alert-banner-copy p { margin: 4px 0 0; font-size: 10px; line-height: 1.45; }
.alert-banner.warning { border-color: #efd497; background: #fff9e9; color: #79500e; }
.alert-banner.warning .alert-banner-icon { color: #b26a00; background: #ffecc0; }
.alert-banner.danger { border-color: #f0c0c5; background: #fff2f3; color: #932f3b; }
.alert-banner.danger .alert-banner-icon { color: var(--danger); background: #ffe0e4; }
.alert-banner.success { border-color: #c5e7d3; background: #f1fbf5; color: #216f47; }
.alert-banner.success .alert-banner-icon { color: var(--success); background: #dff5e9; }
.alert-banner.info { border-color: #cbdff4; background: #f2f8ff; color: #315f8f; }
.alert-banner.info .alert-banner-icon { color: var(--info); background: #deedff; }
.alert-banner.slim { min-height: 66px; margin-top: 0; }
.alert-banner.compact { min-height: 64px; }

/* =========================================================
   Dashboard
   ========================================================= */
.welcome-row { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 17px; }
.welcome-row h2 { margin: 0; color: var(--text-strong); font-size: 17px; letter-spacing: -.25px; display: flex; align-items: center; gap: 6px; }
.welcome-spark { color: #d59613; }
.welcome-row p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.last-update { display: flex; align-items: center; gap: 6px; color: #9a96a3; font-size: 9px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.summary-card { min-height: 170px; position: relative; overflow: hidden; padding: 17px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.summary-card:hover { transform: translateY(-2px); border-color: #dbd5eb; box-shadow: 0 9px 25px rgba(43,33,79,.07); }
.summary-card-top { display: flex; align-items: center; justify-content: space-between; }
.summary-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; }
.summary-icon.purple { color: var(--brand); background: var(--brand-soft); }
.summary-icon.green { color: var(--success); background: var(--success-soft); }
.summary-icon.blue { color: var(--info); background: var(--info-soft); }
.summary-icon.orange { color: var(--orange); background: var(--orange-soft); }
.summary-card-body { position: relative; z-index: 2; margin-top: 15px; }
.summary-label { display: block; color: var(--muted); font-size: 9px; font-weight: 600; margin-bottom: 4px; }
.summary-value { display: block; color: #302c3c; font-size: 23px; line-height: 1.25; letter-spacing: -.55px; }
.summary-value small { font-size: 13px; color: #5f5a6a; letter-spacing: 0; }
.summary-caption { min-height: 19px; display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #918c9b; font-size: 9px; }
.summary-caption b { color: var(--brand); font-size: 10px; }
.summary-status { min-height: 32px; display: flex; align-items: center; margin-top: 5px; }
.summary-status .status-badge { min-height: 30px; padding: 7px 11px; font-size: 11px; }
.tiny-indicator { display: flex; align-items: center; gap: 5px; color: #8f8a99; font-size: 8px; }
.tiny-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.summary-mini-date { color: var(--info); background: var(--info-soft); border-radius: 7px; padding: 4px 7px; font-size: 8px; font-weight: 800; }
.card-brand-mini { color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.payment-value { font-size: 17px; line-height: 1.45; }
.summary-link { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 9px; font-weight: 700; margin-top: 6px; }
.summary-link:hover { color: var(--brand-dark); }
.card-watermark { position: absolute; right: -10px; bottom: -12px; color: var(--brand); opacity: .025; transform: rotate(-8deg); }
.dashboard-columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 15px; margin-top: 15px; }
.subscription-detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 7px 18px; }
.detail-item { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 8px 4px; border-bottom: 1px solid #f0eef3; }
.detail-item:nth-last-child(-n+2) { border-bottom: 0; }
.detail-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.detail-icon.purple { color: var(--brand); background: var(--brand-soft); }
.detail-icon.blue { color: var(--info); background: var(--info-soft); }
.detail-icon.green { color: var(--success); background: var(--success-soft); }
.detail-icon.orange { color: var(--orange); background: var(--orange-soft); }
.detail-item > span:last-child { min-width: 0; }
.detail-item small, .detail-item strong { display: block; }
.detail-item small { color: #96919f; font-size: 8px; }
.detail-item strong { color: #4a4654; font-size: 10px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cycle-progress { margin: 2px 19px 18px; padding: 13px; background: #f8f7fb; border-radius: 9px; }
.cycle-progress-head, .cycle-progress-dates { display: flex; justify-content: space-between; gap: 15px; font-size: 8px; color: var(--muted); }
.cycle-progress-head strong { color: var(--brand); }
.progress-track { height: 6px; margin: 9px 0 7px; border-radius: 10px; background: #e7e2f1; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.cycle-progress-dates { color: #aaa6b1; }
.recent-payment-list { padding: 3px 17px; }
.recent-payment-item { min-height: 66px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f0eef3; transition: padding var(--transition), background var(--transition); }
.recent-payment-item:last-child { border-bottom: 0; }
.recent-payment-item:hover { padding-left: 4px; }
.recent-payment-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.recent-payment-icon.success { color: var(--success); background: var(--success-soft); }
.recent-payment-icon.danger { color: var(--danger); background: var(--danger-soft); }
.recent-payment-icon.warning { color: var(--warning); background: var(--warning-soft); }
.recent-payment-info { flex: 1; min-width: 0; }
.recent-payment-info strong, .recent-payment-info small { display: block; }
.recent-payment-info strong { color: #4a4653; font-size: 10px; }
.recent-payment-info small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.recent-payment-value { text-align: right; }
.recent-payment-value > strong { display: block; color: #403c49; font-size: 10px; margin-bottom: 4px; }
.recent-payment-value .status-badge { min-height: 19px; padding: 4px 6px; font-size: 7px; }
.recent-payment-arrow { color: #aaa6b1; }
.mobile-card-action { display: none; }
.quick-actions-section { margin-top: 23px; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 12px; }
.section-title-row h2, .section-title-row h3 { margin: 0; color: #383441; font-size: 14px; }
.section-title-row p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.quick-actions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-action-card { min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 13px; background: #fff; border: 1px solid var(--border); border-radius: 10px; transition: var(--transition); }
.quick-action-card:hover { border-color: #cfc3ee; box-shadow: 0 6px 17px rgba(43,33,79,.06); transform: translateY(-1px); }
.quick-action-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.quick-action-icon.purple { color: var(--brand); background: var(--brand-soft); }
.quick-action-icon.blue { color: var(--info); background: var(--info-soft); }
.quick-action-icon.green { color: var(--success); background: var(--success-soft); }
.quick-action-icon.orange { color: var(--orange); background: var(--orange-soft); }
.quick-action-card > span:nth-child(2) { flex: 1; min-width: 0; }
.quick-action-card strong, .quick-action-card small { display: block; }
.quick-action-card strong { color: #45414e; font-size: 10px; }
.quick-action-card small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.quick-action-card > svg { color: #aaa6b1; }

/* =========================================================
   Payments table
   ========================================================= */
.payment-mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.mini-stat { min-height: 70px; display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.mini-stat-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; }
.mini-stat-icon.green { color: var(--success); background: var(--success-soft); }
.mini-stat-icon.purple { color: var(--brand); background: var(--brand-soft); }
.mini-stat-icon.red { color: var(--danger); background: var(--danger-soft); }
.mini-stat small, .mini-stat strong { display: block; }
.mini-stat small { color: var(--muted); font-size: 8px; }
.mini-stat strong { color: #3d3946; font-size: 15px; margin-top: 3px; }
.table-card { overflow: visible; }
.table-toolbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.table-title h2 { margin: 0; font-size: 14px; color: #36323e; }
.table-title p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.table-tools { display: flex; align-items: center; gap: 8px; }
.table-search { width: min(330px, 28vw); height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; transition: var(--transition); }
.table-search:focus-within { border-color: #a890e6; box-shadow: 0 0 0 3px rgba(91,53,201,.08); }
.table-search > svg { color: #9692a0; }
.table-search input { flex: 1; min-width: 0; height: 36px; border: 0; background: transparent; font-size: 10px; }
.table-search button { border: 0; background: #f0eef3; color: #898592; border-radius: 5px; padding: 3px; cursor: pointer; }
.filter-button { min-height: 39px; }
.filter-button [data-active-filter-count]:not(:empty) { width: 16px; height: 16px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-size: 8px; }
.filter-panel { width: 190px; min-width: 190px; padding: 11px; }
.filter-panel > strong { display: block; padding: 3px 4px 8px; color: #55515e; font-size: 9px; }
.filter-panel label { min-height: 33px; display: flex; align-items: center; gap: 8px; padding: 0 6px; border-radius: 7px; color: #666170; font-size: 10px; cursor: pointer; }
.filter-panel label:hover { background: #f7f5fb; }
.filter-panel input { accent-color: var(--brand); }
.filter-dot { width: 7px; height: 7px; border-radius: 50%; }
.filter-dot.success { background: var(--success); }
.filter-dot.warning { background: #dc960e; }
.filter-dot.danger { background: var(--danger); }
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.data-table th { height: 43px; padding: 0 15px; text-align: left; color: #8b8795; background: #faf9fc; border-bottom: 1px solid var(--border); font-size: 8px; letter-spacing: .055em; text-transform: uppercase; font-weight: 800; }
.data-table td { height: 67px; padding: 9px 15px; color: #5a5663; border-bottom: 1px solid #efedf2; font-size: 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: #fbfafd; }
.table-primary-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.row-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; flex: 0 0 auto; }
.row-avatar.success { color: var(--success); background: var(--success-soft); }
.row-avatar.danger { color: var(--danger); background: var(--danger-soft); }
.row-avatar.warning { color: var(--warning); background: var(--warning-soft); }
.row-avatar.info { color: var(--info); background: var(--info-soft); }
.table-primary-cell strong, .table-primary-cell small { display: block; }
.table-primary-cell strong { color: #413d49; font-size: 10px; }
.table-primary-cell small { color: #96919e; font-size: 8px; margin-top: 3px; }
.table-date-extra { display: none; }
.payment-method-cell { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.payment-method-cell svg { color: #928d9a; }
.action-column { width: 90px; text-align: right !important; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.table-action { width: 31px; height: 31px; display: grid; place-items: center; color: #827d8c; border: 1px solid var(--border); border-radius: 7px; background: #fff; transition: var(--transition); }
.table-action:hover { color: var(--brand); border-color: #c8b8ee; background: var(--brand-soft); }
.table-empty { min-height: 260px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.table-empty > span { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 15px; color: #9a94a5; background: #f1eff4; }
.table-empty h3 { margin: 14px 0 5px; color: #46414f; font-size: 13px; }
.table-empty p { margin: 0 0 15px; color: var(--muted); font-size: 10px; }
.table-footer { min-height: 48px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--border); color: #8c8794; font-size: 9px; }
.table-security-note { display: flex; align-items: center; gap: 6px; }
.page-note { display: flex; align-items: flex-start; gap: 9px; margin: 14px 4px 0; color: #817c89; }
.page-note > svg { color: var(--info); margin-top: 1px; }
.page-note p { margin: 0; font-size: 9px; }
.page-note a { color: var(--brand); font-weight: 700; }

/* =========================================================
   Payment method
   ========================================================= */
.payment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 15px; align-items: stretch; }
.current-payment-card { overflow: hidden; }
.bank-card-wrap { display: grid; grid-template-columns: minmax(280px, 390px) 1fr; align-items: center; gap: clamp(25px, 4vw, 55px); padding: 27px; }
.bank-card { min-height: 214px; position: relative; overflow: hidden; padding: 23px; border-radius: 16px; color: #fff; background: #5430ba; box-shadow: 0 18px 30px rgba(69,36,154,.23); isolation: isolate; }
.bank-card-top, .bank-card-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; }
.bank-card-chip { width: 38px; height: 29px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 5px; border-radius: 6px; background: #e5be67; border: 1px solid rgba(255,255,255,.35); }
.bank-card-chip i { border: 1px solid rgba(107,75,25,.33); border-radius: 2px; }
.bank-card-brand { font-size: 15px; font-weight: 900; font-style: italic; letter-spacing: .04em; }
.bank-card-number { position: relative; z-index: 2; display: flex; gap: 14px; margin: 41px 0 29px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: 2px; text-shadow: 0 1px 1px rgba(0,0,0,.15); }
.bank-card-number strong { font-weight: 700; }
.bank-card-bottom { align-items: end; }
.bank-card-bottom span { min-width: 0; }
.bank-card-bottom small, .bank-card-bottom strong { display: block; }
.bank-card-bottom small { color: rgba(255,255,255,.55); font-size: 7px; letter-spacing: .13em; }
.bank-card-bottom strong { max-width: 220px; margin-top: 5px; font-size: 10px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bank-card-orb { position: absolute; z-index: 0; border-radius: 50%; background: rgba(255,255,255,.06); }
.bank-card-orb.one { width: 230px; height: 230px; right: -105px; top: -115px; }
.bank-card-orb.two { width: 180px; height: 180px; left: -80px; bottom: -100px; border: 1px solid rgba(255,255,255,.08); background: transparent; }
.payment-details dl { margin: 0 0 19px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 25px; }
.payment-details dl div { min-width: 0; }
.payment-details dt { color: var(--muted); font-size: 8px; }
.payment-details dd { margin: 4px 0 0; color: #45414f; font-size: 11px; font-weight: 700; }
.payment-effective-note { display: flex; align-items: center; gap: 6px; color: #918c99; font-size: 8px; margin: 10px 0 0; }
.security-card { padding: 24px; background: linear-gradient(180deg, #fff 0%, #fbfaff 100%); }
.security-card-icon { width: 49px; height: 49px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 14px; }
.security-card h3 { margin: 15px 0 7px; color: #3c3747; font-size: 14px; }
.security-card > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.security-card ul { list-style: none; padding: 0; margin: 17px 0; display: grid; gap: 9px; }
.security-card li { display: flex; align-items: center; gap: 7px; color: #5f5a68; font-size: 9px; }
.security-card li svg { color: var(--success); }
.processed-by { padding-top: 14px; border-top: 1px solid var(--border); }
.processed-by span, .processed-by strong { display: block; }
.processed-by span { color: #aaa6b2; font-size: 7px; letter-spacing: .1em; }
.processed-by strong { color: #4b8a43; font-size: 15px; margin-top: 4px; }
.how-payment-works { margin-top: 15px; }
.steps-row { min-height: 128px; display: flex; align-items: center; gap: 14px; padding: 22px; }
.step-item { flex: 1; display: flex; align-items: flex-start; gap: 10px; }
.step-number { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; color: var(--brand); background: var(--brand-soft); border-radius: 9px; font-size: 10px; font-weight: 800; }
.step-item strong { color: #484451; font-size: 10px; }
.step-item p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.step-arrow { color: #c1bdc8; }
.billing-address-card { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; padding: 15px 19px; }
.billing-address-head { display: flex; align-items: center; gap: 11px; }
.billing-address-head h3 { margin: 0; font-size: 11px; color: #46414e; }
.billing-address-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.pix-current-method { min-height: 230px; padding: 25px; display: flex; align-items: center; gap: 18px; }
.pix-symbol { width: 72px; height: 72px; display: grid; place-items: center; color: #087c73; background: #e4f8f6; border-radius: 20px; font-size: 20px; font-weight: 800; }
.pix-current-method > div { flex: 1; }
.pix-current-method h3 { margin: 0; font-size: 15px; }
.pix-current-method p { color: var(--muted); font-size: 10px; }

/* Dialog */
.app-dialog { width: min(540px, calc(100% - 28px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 15px; background: transparent; color: var(--text); box-shadow: 0 25px 80px rgba(25,18,47,.28); }
.app-dialog::backdrop { background: rgba(28,21,45,.55); backdrop-filter: blur(3px); }
.dialog-content { background: #fff; border-radius: 15px; overflow: hidden; }
.dialog-header { min-height: 79px; display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.dialog-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; }
.dialog-icon.purple { color: var(--brand); background: var(--brand-soft); }
.dialog-header > div { flex: 1; }
.dialog-header h2 { margin: 0; font-size: 15px; }
.dialog-header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.dialog-close { color: #8d8996; }
.dialog-body { padding: 19px; }
.password-dialog-body { display: grid; gap: 16px; }
.gateway-preview { display: flex; align-items: center; gap: 11px; padding: 14px; color: #315f8e; background: #eff6fe; border: 1px solid #cfe0f3; border-radius: 10px; }
.gateway-lock { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: var(--info); background: #fff; border-radius: 10px; }
.gateway-preview strong { font-size: 11px; }
.gateway-preview p { margin: 3px 0 0; color: #6481a0; font-size: 9px; }
.change-summary { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 16px 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.change-summary div { min-width: 0; }
.change-summary span, .change-summary strong { display: block; }
.change-summary div > span { color: var(--muted); font-size: 8px; }
.change-summary strong { margin-top: 4px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.change-summary-arrow { color: var(--brand); }
.dialog-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dialog-check-list li { display: flex; align-items: center; gap: 7px; color: #66616f; font-size: 9px; }
.dialog-check-list svg { color: var(--success); }
.prototype-notice { display: flex; gap: 7px; align-items: flex-start; margin-top: 14px; color: #8b6b25; background: #fff9ea; padding: 9px; border-radius: 7px; font-size: 8px; }
.dialog-footer { min-height: 69px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--border); background: #fbfafd; }

/* =========================================================
   Profile forms
   ========================================================= */
.profile-section { margin-bottom: 15px; overflow: hidden; }
.profile-card-header { min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 16px 19px; border-bottom: 1px solid var(--border); }
.profile-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; }
.profile-card-icon.purple { color: var(--brand); background: var(--brand-soft); }
.profile-card-icon.blue { color: var(--info); background: var(--info-soft); }
.profile-card-header > div { flex: 1; }
.profile-card-header h2 { margin: 0; color: #3d3946; font-size: 14px; }
.profile-card-header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.required-note { color: #9995a1; font-size: 8px; }
.required-note i { color: var(--danger); font-style: normal; }
.profile-form { padding: 22px 20px 0; }
.form-grid { display: grid; gap: 17px 18px; }
.form-grid.two-columns { grid-template-columns: 1fr 1fr; }
.form-input { width: 100%; height: 43px; padding: 0 12px; color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: 9px; font-size: 11px; transition: var(--transition); }
textarea.form-input { height: auto; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.form-input:focus { border-color: #a48de5; box-shadow: 0 0 0 3px rgba(91,53,201,.08); }
.standard-input { min-height: 43px; border-radius: 9px; }
.standard-input input { height: 41px; font-size: 11px; }
.standard-input > span { width: 40px; }
.standard-input.read-only { background: #f7f7f9; }
.standard-input.read-only input { color: #817c89; cursor: not-allowed; }
.field-help { min-height: 15px; display: flex; align-items: center; gap: 4px; color: #9894a1; font-size: 8px; margin-top: 5px; }
.field-help.warning-text { color: #9a6a17; }
.form-footer { min-height: 72px; margin: 22px -20px 0; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--border); background: #fbfafd; }
.form-security-hint { display: flex; align-items: center; gap: 6px; color: #96919f; font-size: 8px; }
.form-subsection h3 { margin: 0 0 16px; color: #514c5a; font-size: 11px; }
.form-divider { height: 1px; background: var(--border); margin: 22px 0; }
.address-grid { grid-template-columns: 145px 1fr 105px 1fr 1fr 1fr 85px; }
.zip-field { grid-column: span 1; }
.street-field { grid-column: span 4; }
.number-field { grid-column: span 1; }
.complement-field { grid-column: span 1; }
.district-field { grid-column: span 2; }
.city-field { grid-column: span 3; }
.state-field { grid-column: span 1; }
.account-security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.compact-settings-card { min-height: 94px; display: flex; align-items: center; gap: 13px; padding: 16px; }
.settings-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.settings-icon.purple { color: var(--brand); background: var(--brand-soft); }
.settings-icon.red { color: var(--danger); background: var(--danger-soft); }
.compact-settings-card > div { min-width: 0; flex: 1; }
.compact-settings-card h3 { margin: 0; color: #403c48; font-size: 11px; }
.compact-settings-card p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.danger-zone { border-color: #f0d4d7; }

/* =========================================================
   Help center
   ========================================================= */
.help-hero { min-height: 222px; position: relative; overflow: hidden; padding: 32px; color: #fff; background: #5933c3; border-radius: 14px; display: grid; grid-template-columns: auto 1fr minmax(300px, 430px); align-items: center; gap: 16px; }
.help-hero-icon { width: 57px; height: 57px; position: relative; z-index: 2; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; }
.help-hero-copy { position: relative; z-index: 2; }
.help-hero-copy > span { color: #d9d0f9; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.help-hero h2 { margin: 7px 0 5px; font-size: 20px; letter-spacing: -.4px; }
.help-hero p { margin: 0; color: rgba(255,255,255,.66); font-size: 10px; }
.help-search { height: 50px; position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: #8d8899; background: #fff; border-radius: 10px; box-shadow: 0 9px 25px rgba(36,19,83,.18); }
.help-search input { min-width: 0; flex: 1; height: 46px; border: 0; background: transparent; font-size: 11px; }
.help-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.help-orb.one { width: 250px; height: 250px; top: -150px; right: 30%; }
.help-orb.two { width: 190px; height: 190px; bottom: -130px; left: 21%; }
.help-categories { margin-top: 23px; }
.help-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.help-category-card { min-height: 156px; padding: 17px; background: #fff; border: 1px solid var(--border); border-radius: 11px; transition: var(--transition); }
.help-category-card:hover { border-color: #d0c4ef; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43,33,79,.06); }
.help-category-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; }
.help-category-icon.purple { color: var(--brand); background: var(--brand-soft); }
.help-category-icon.blue { color: var(--info); background: var(--info-soft); }
.help-category-icon.green { color: var(--success); background: var(--success-soft); }
.help-category-card h3 { margin: 12px 0 4px; color: #3d3946; font-size: 12px; }
.help-category-card p { margin: 0; color: var(--muted); font-size: 9px; }
.help-category-card a { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 9px; font-weight: 700; margin-top: 13px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 15px; margin-top: 25px; align-items: start; }
.faq-main { min-width: 0; }
.faq-group { margin-bottom: 18px; }
.faq-group > header { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.faq-group-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; }
.faq-group-icon.blue { color: var(--info); background: var(--info-soft); }
.faq-group-icon.purple { color: var(--brand); background: var(--brand-soft); }
.faq-group-icon.green { color: var(--success); background: var(--success-soft); }
.faq-group h2 { margin: 0; color: #3e3a47; font-size: 12px; }
.faq-group header p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.accordion-list { display: grid; gap: 7px; }
.accordion-item { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 9px; }
.accordion-item > button { width: 100%; min-height: 50px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #494552; border: 0; background: #fff; font-size: 10px; font-weight: 700; text-align: left; cursor: pointer; }
.accordion-item > button:hover { color: var(--brand); background: #fbfafd; }
.accordion-item > button svg { color: #9b97a3; transition: transform var(--transition); }
.accordion-item > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion-content { padding: 0 15px 14px; color: #6f6b78; font-size: 9px; line-height: 1.65; }
.accordion-content p { margin: 0; padding-top: 12px; border-top: 1px solid var(--border); }
.accordion-content a { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-weight: 700; margin-top: 9px; }
.support-aside { position: sticky; top: calc(var(--topbar-height) + 18px); display: grid; gap: 12px; }
.support-card { padding: 20px; text-align: center; }
.support-card-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto; color: var(--brand); background: var(--brand-soft); border-radius: 14px; }
.support-card h3 { margin: 13px 0 6px; font-size: 12px; }
.support-card p { margin: 0 0 16px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.support-card .btn + .btn { margin-top: 7px; }
.support-card > small { display: block; color: #aaa6b2; font-size: 8px; margin-top: 13px; }
.docs-card { padding: 17px; }
.docs-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--info); background: var(--info-soft); border-radius: 10px; }
.docs-card h3 { margin: 11px 0 4px; font-size: 11px; }
.docs-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.docs-card a { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 9px; font-weight: 700; margin-top: 12px; }
.help-no-results { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 11px; }
.help-no-results > span { width: 52px; height: 52px; display: grid; place-items: center; color: #9b96a4; background: #f1eff4; border-radius: 14px; }
.help-no-results h3 { margin: 13px 0 4px; font-size: 12px; }
.help-no-results p { margin: 0 0 14px; color: var(--muted); font-size: 9px; }

/* =========================================================
   Cancellation
   ========================================================= */
.cancellation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 15px; align-items: start; }
.cancellation-main { min-width: 0; display: grid; gap: 15px; }
.cancellation-impact-card { overflow: hidden; }
.cancellation-timeline { padding: 22px 22px 5px; }
.timeline-item { display: flex; align-items: flex-start; gap: 12px; }
.timeline-marker { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; color: var(--info); background: var(--info-soft); border-radius: 10px; }
.timeline-item.active .timeline-marker { color: var(--success); background: var(--success-soft); }
.timeline-item.danger .timeline-marker { color: var(--danger); background: var(--danger-soft); }
.timeline-item > div > span { color: #9a95a2; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.timeline-item strong { display: block; color: #484451; font-size: 10px; margin-top: 2px; }
.timeline-item p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.timeline-line { height: 21px; width: 1px; background: #dcd8e2; margin: 3px 0 3px 16px; }
.data-retention-note { display: flex; gap: 10px; margin: 17px 21px 20px; padding: 13px; color: #5f6981; background: #f5f7fb; border: 1px solid #e1e5ee; border-radius: 9px; }
.data-retention-note > svg { color: var(--info); }
.data-retention-note strong { font-size: 9px; }
.data-retention-note p { margin: 3px 0 0; font-size: 8px; line-height: 1.5; }
.cancellation-form { overflow: hidden; }
.cancellation-form .card-header h2 span { color: var(--muted); font-size: 8px; font-weight: 500; }
.cancel-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 20px 5px; }
.reason-option { min-height: 43px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; color: #625e6b; font-size: 9px; cursor: pointer; transition: var(--transition); }
.reason-option:hover { border-color: #c9baeb; background: #fbfaff; }
.reason-option input { position: absolute; opacity: 0; }
.reason-radio { width: 14px; height: 14px; flex: 0 0 auto; border: 1.5px solid #bbb7c3; border-radius: 50%; }
.reason-option input:checked + .reason-radio { border: 4px solid var(--brand); }
.reason-option:has(input:checked) { border-color: #bdaae9; background: var(--brand-soft); color: var(--brand-dark); }
.reason-icon { color: #908b98; }
.reason-option:has(input:checked) .reason-icon { color: var(--brand); }
.cancel-notes { padding: 15px 20px 0; }
.cancellation-acknowledgement { margin: 18px 20px 0; padding: 13px; background: #fff8e8; border: 1px solid #edd59d; border-radius: 9px; }
.cancellation-acknowledgement .check-row { color: #715f38; font-size: 9px; line-height: 1.5; }
.cancellation-form-footer { min-height: 71px; display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; padding: 14px 20px; border-top: 1px solid var(--border); background: #fbfafd; }
.cancellation-summary { position: sticky; top: calc(var(--topbar-height) + 18px); overflow: hidden; padding: 20px; }
.cancel-summary-label { color: #9994a1; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.cancel-plan-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 14px 0 17px; border-bottom: 1px solid var(--border); }
.cancel-plan-head strong, .cancel-plan-head small { display: block; }
.cancel-plan-head strong { color: #413d49; font-size: 10px; }
.cancel-plan-head small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.cancellation-summary dl { margin: 8px 0; }
.cancellation-summary dl div { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #f1eff3; }
.cancellation-summary dt { color: var(--muted); font-size: 8px; }
.cancellation-summary dd { margin: 0; color: #4f4a58; font-size: 9px; font-weight: 700; text-align: right; }
.cancel-summary-safe { display: flex; align-items: flex-start; gap: 7px; margin: 13px 0; padding: 10px; color: #66718a; background: #f3f6fb; border-radius: 8px; font-size: 8px; line-height: 1.5; }
.cancel-summary-safe svg { color: var(--info); }
.cancellation-summary > a { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--brand); font-size: 9px; font-weight: 700; padding-top: 5px; }
.cancellation-complete { max-width: 750px; margin: 10px auto 30px; padding: 34px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow-sm); }
.complete-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 15px; color: var(--success); background: var(--success-soft); border-radius: 20px; }
.complete-eyebrow { color: var(--success); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.cancellation-complete > h2 { margin: 8px 0; font-size: 21px; color: #34303d; }
.cancellation-complete > p { max-width: 510px; margin: 0 auto 22px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.cancellation-confirmation-card { max-width: 560px; margin: 0 auto; text-align: left; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.confirmation-row { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 14px; border-bottom: 1px solid var(--border); font-size: 9px; }
.confirmation-row:last-child { border-bottom: 0; }
.confirmation-row > span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.confirmation-row > span svg { color: var(--brand); }
.confirmation-row strong { color: #4b4654; text-align: right; }
.reactivation-box { max-width: 610px; min-height: 78px; margin: 20px auto 0; padding: 13px; display: flex; align-items: center; gap: 11px; text-align: left; border-radius: 10px; color: #55436f; background: var(--brand-soft); border: 1px solid #d9cef5; }
.reactivation-box > span { width: 39px; height: 39px; display: grid; place-items: center; color: var(--brand); background: #fff; border-radius: 10px; }
.reactivation-box > div { flex: 1; }
.reactivation-box strong { font-size: 10px; }
.reactivation-box p { margin: 3px 0 0; font-size: 8px; }
.cancellation-complete-actions { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 20px; }

/* =========================================================
   Invoice
   ========================================================= */
.invoice-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.invoice-status-summary { display: flex; align-items: center; gap: 9px; }
.invoice-status-summary small { display: block; color: var(--muted); font-size: 8px; margin-bottom: 4px; }
.invoice-actions { display: flex; gap: 7px; }
.invoice-document { max-width: 1000px; margin: 0 auto; overflow: hidden; }
.invoice-document-head { min-height: 105px; padding: 23px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: #5933c3; }
.invoice-brand { display: flex; align-items: center; gap: 10px; }
.invoice-brand > div { line-height: 1.1; }
.invoice-brand strong { display: block; font-size: 19px; }
.invoice-brand small { display: block; color: rgba(255,255,255,.58); font-size: 8px; margin-top: 5px; }
.invoice-number { text-align: right; }
.invoice-number small { color: rgba(255,255,255,.52); font-size: 7px; letter-spacing: .12em; }
.invoice-number strong, .invoice-number span { display: block; }
.invoice-number strong { font-size: 13px; margin-top: 4px; }
.invoice-number span { color: rgba(255,255,255,.58); font-size: 8px; margin-top: 4px; }
.invoice-parties { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 25px; padding: 25px 28px; border-bottom: 1px solid var(--border); }
.invoice-parties div > small { color: #9b97a4; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.invoice-parties strong, .invoice-parties span { display: block; }
.invoice-parties strong { color: #423e4b; font-size: 10px; margin-top: 7px; }
.invoice-parties span { color: var(--muted); font-size: 8px; margin-top: 4px; }
.invoice-line-table { margin: 25px 28px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.invoice-line-head, .invoice-line { display: grid; grid-template-columns: 1fr 145px 120px; align-items: center; }
.invoice-line-head { min-height: 36px; padding: 0 14px; color: #8f8a98; background: #faf9fc; font-size: 7px; font-weight: 800; letter-spacing: .07em; }
.invoice-line-head span:last-child { text-align: right; }
.invoice-line { min-height: 66px; padding: 10px 14px; border-top: 1px solid var(--border); color: #5e5967; font-size: 9px; }
.invoice-line > span:first-child strong, .invoice-line > span:first-child small { display: block; }
.invoice-line > span:first-child strong { color: #44404c; }
.invoice-line > span:first-child small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.invoice-line > strong { text-align: right; color: #38343f; }
.invoice-total-area { display: grid; grid-template-columns: 1fr 300px; gap: 25px; align-items: end; padding: 0 28px 27px; }
.invoice-payment-info p { margin: 8px 0 0; color: var(--muted); font-size: 8px; }
.paid-seal, .failed-seal, .pending-seal { width: max-content; min-height: 31px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 7px; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.paid-seal { color: var(--success); background: var(--success-soft); }
.failed-seal { color: var(--danger); background: var(--danger-soft); }
.pending-seal { color: var(--warning); background: var(--warning-soft); }
.invoice-total-area dl { margin: 0; }
.invoice-total-area dl div { min-height: 32px; display: flex; align-items: center; justify-content: space-between; color: #746f7c; font-size: 9px; }
.invoice-total-area dd { margin: 0; color: #46424e; font-weight: 700; }
.invoice-grand-total { min-height: 47px !important; margin-top: 4px; border-top: 2px solid #3f3a47; color: #312d39 !important; font-size: 14px !important; font-weight: 800; }
.invoice-grand-total dd { font-size: 17px; color: var(--brand); }
.invoice-document-footer { min-height: 55px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #9995a1; background: #faf9fc; border-top: 1px solid var(--border); font-size: 7px; }
.invoice-document-footer span:first-child { display: flex; align-items: center; gap: 6px; }
.invoice-help-line { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 14px 0; color: var(--muted); font-size: 8px; }
.invoice-help-line a { color: var(--brand); font-weight: 700; }

/* Empty states */
.empty-page-state { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.empty-state-code { color: #e0daef; font-size: 72px; font-weight: 900; line-height: 1; }
.empty-state-icon { width: 57px; height: 57px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 16px; margin-bottom: 12px; }
.empty-page-state h1, .empty-page-state h2 { margin: 0 0 6px; color: #3e3947; font-size: 20px; }
.empty-page-state p { margin: 0 0 18px; color: var(--muted); font-size: 10px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1220px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .summary-card { min-height: 154px; }
    .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
    .payment-layout { grid-template-columns: minmax(0, 1fr) 300px; }
    .bank-card-wrap { grid-template-columns: minmax(270px, 350px) 1fr; gap: 25px; }
    .bank-card { min-height: 195px; }
    .bank-card-number { margin: 33px 0 24px; }
    .address-grid { grid-template-columns: 130px 1fr 90px 1fr 1fr 80px; }
    .street-field { grid-column: span 4; }
    .number-field { grid-column: span 1; }
    .complement-field { grid-column: span 2; }
    .district-field { grid-column: span 2; }
    .city-field { grid-column: span 3; }
}

@media (max-width: 1060px) {
    .sidebar { transform: translateX(-102%); transition: transform .24s ease; box-shadow: 12px 0 30px rgba(31,19,62,.25); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-mobile-close { display: grid; }
    .app-shell { margin-left: 0; }
    .hamburger { display: grid; }
    .mobile-page-brand { display: flex; }
    .topbar { grid-template-columns: minmax(160px, .7fr) minmax(280px, 450px) minmax(230px, .7fr); padding-inline: 20px; }
    .payment-layout { grid-template-columns: 1fr; }
    .security-card { display: grid; grid-template-columns: auto 1fr; column-gap: 15px; }
    .security-card-icon { grid-row: span 4; }
    .security-card h3 { margin-top: 0; }
    .security-card ul { grid-column: 2; grid-template-columns: repeat(3, 1fr); }
    .processed-by { grid-column: 2; }
}

@media (max-width: 900px) {
    .auth-shell { display: block; }
    .auth-brand-panel { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 90px 26px 50px; justify-content: flex-start; }
    .auth-mobile-brand { display: block; position: absolute; top: 24px; left: 26px; }
    .auth-mobile-brand a { display: flex; align-items: center; gap: 9px; }
    .auth-mobile-brand .brand-mark { background: var(--brand); }
    .auth-mobile-brand .brand-copy strong { color: var(--text-strong); }
    .auth-mobile-brand .brand-copy strong span { color: var(--brand); }
    .auth-mobile-brand .brand-copy small { color: var(--muted); }
    .auth-copyright { position: static; margin-top: 35px; }
    .topbar { grid-template-columns: minmax(160px, 1fr) minmax(270px, 380px) auto; gap: 13px; }
    .user-menu-copy, .user-chevron { display: none; }
    .dashboard-columns { grid-template-columns: 1fr; }
    .payment-layout { grid-template-columns: 1fr; }
    .bank-card-wrap { grid-template-columns: minmax(280px, 400px) 1fr; }
    .help-hero { grid-template-columns: auto 1fr; min-height: 260px; }
    .help-search { grid-column: 1 / -1; }
    .faq-layout { grid-template-columns: 1fr; }
    .support-aside { position: static; grid-template-columns: 1fr 1fr; }
    .cancellation-layout { grid-template-columns: 1fr; }
    .cancellation-summary { position: static; grid-row: 1; }
    .cancellation-summary dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
    .address-grid { grid-template-columns: repeat(6, 1fr); }
    .zip-field { grid-column: span 2; }
    .street-field { grid-column: span 4; }
    .number-field { grid-column: span 1; }
    .complement-field { grid-column: span 2; }
    .district-field { grid-column: span 3; }
    .city-field { grid-column: span 4; }
    .state-field { grid-column: span 1; }
}

@media (max-width: 720px) {
    :root { --topbar-height: 66px; }
    .topbar { padding: 0 14px; grid-template-columns: 1fr auto; }
    .global-search { display: none; }
    .topbar-actions { grid-column: 2; }
    .content-container { padding: 18px 14px 28px; }
    .app-footer { padding: 0 14px; }
    .page-heading { min-height: 65px; align-items: flex-start; margin-bottom: 18px; padding-bottom: 15px; }
    .heading-accent { height: 38px; }
    .heading-icon { width: 36px; height: 36px; }
    .page-heading h1 { font-size: 18px; }
    .page-heading p { max-width: 390px; line-height: 1.4; }
    .breadcrumb { display: none; }
    .summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .summary-card { min-height: 158px; padding: 14px; }
    .summary-value { font-size: 20px; }
    .alert-banner { align-items: flex-start; flex-wrap: wrap; }
    .alert-banner .btn, .alert-banner > form { margin-left: 52px; }
    .alert-banner > form .btn { margin-left: 0; }
    .quick-actions-grid { grid-template-columns: 1fr 1fr; }
    .payment-mini-stats { grid-template-columns: 1fr; gap: 8px; }
    .mini-stat { min-height: 61px; }
    .table-toolbar { align-items: stretch; flex-direction: column; }
    .table-tools { width: 100%; }
    .table-search { width: 100%; flex: 1; }
    .table-responsive { overflow: visible; }
    .data-table { min-width: 0; display: block; }
    .data-table thead { display: none; }
    .data-table tbody { display: grid; padding: 0 12px 12px; }
    .data-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .data-table tr:last-child { border-bottom: 0; }
    .data-table td { min-height: 39px; height: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 5px; border: 0; text-align: right; }
    .data-table td::before { content: attr(data-label); color: #96919f; font-size: 8px; font-weight: 700; text-transform: uppercase; }
    .data-table td:first-child { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
    .data-table td:first-child::before { display: none; }
    .data-table td:nth-child(4), .data-table td:nth-child(5) { grid-column: 1 / -1; }
    .table-primary-cell { width: 100%; min-width: 0; text-align: left; }
    .action-column { width: auto; grid-column: 1 / -1; }
    .row-actions { margin-left: auto; }
    .table-footer { margin-top: 0; }
    .table-security-note { display: none; }
    .bank-card-wrap { grid-template-columns: 1fr; }
    .bank-card { width: min(100%, 410px); }
    .payment-details dl { grid-template-columns: 1fr 1fr; }
    .security-card { display: block; }
    .security-card-icon { margin-bottom: 13px; }
    .security-card ul { display: grid; grid-template-columns: 1fr; }
    .steps-row { align-items: flex-start; flex-direction: column; }
    .step-arrow { margin-left: 7px; transform: rotate(90deg); }
    .billing-address-card { align-items: flex-start; flex-direction: column; }
    .form-grid.two-columns { grid-template-columns: 1fr; }
    .form-footer { align-items: flex-start; flex-direction: column; }
    .form-footer .btn { width: 100%; }
    .form-security-hint { order: 2; }
    .address-grid { grid-template-columns: 1fr 1fr; }
    .zip-field, .number-field, .state-field { grid-column: span 1; }
    .street-field, .complement-field, .district-field, .city-field { grid-column: 1 / -1; }
    .account-security-grid { grid-template-columns: 1fr; }
    .help-hero { padding: 24px; }
    .help-category-grid { grid-template-columns: 1fr; }
    .support-aside { grid-template-columns: 1fr; }
    .cancel-reasons { grid-template-columns: 1fr; }
    .invoice-parties { grid-template-columns: 1fr; gap: 17px; }
    .invoice-total-area { grid-template-columns: 1fr; }
    .invoice-payment-info { order: 2; }
    .invoice-line-head, .invoice-line { grid-template-columns: 1fr 90px; }
    .invoice-line-head span:nth-child(2), .invoice-line > span:nth-child(2) { display: none; }
    .invoice-document-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 520px) {
    .sidebar { width: min(84vw, 310px); }
    .mobile-page-brand strong { display: none; }
    .topbar-divider { display: none; }
    .user-menu-button { padding-left: 1px; }
    .notification-panel { right: -53px; }
    .welcome-row .last-update { display: none; }
    .summary-grid { grid-template-columns: 1fr; }
    .summary-card { min-height: 148px; }
    .quick-actions-grid { grid-template-columns: 1fr; }
    .subscription-detail-list { grid-template-columns: 1fr; }
    .detail-item:nth-last-child(-n+2) { border-bottom: 1px solid #f0eef3; }
    .detail-item:last-child { border-bottom: 0; }
    .cycle-progress-dates span:first-child { display: none; }
    .cycle-progress-dates { justify-content: flex-end; }
    .recent-payments-card .card-header .text-link { display: none; }
    .mobile-card-action { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--brand); border-top: 1px solid var(--border); font-size: 9px; font-weight: 700; }
    .alert-banner .btn, .alert-banner > form { width: 100%; margin-left: 0; }
    .alert-banner > form .btn { width: 100%; }
    .table-tools { flex-wrap: wrap; }
    .filter-dropdown, .filter-button { width: 100%; }
    .filter-panel { left: 0; right: auto; width: 100%; }
    .data-table tr { grid-template-columns: 1fr; }
    .data-table td, .data-table td:nth-child(4), .data-table td:nth-child(5) { grid-column: 1; }
    .data-table td:first-child, .data-table .action-column { grid-column: 1; }
    .bank-card-wrap { padding: 18px; }
    .bank-card { min-height: 185px; padding: 19px; }
    .bank-card-number { font-size: 15px; gap: 9px; margin: 29px 0 23px; }
    .payment-details dl { grid-template-columns: 1fr; }
    .payment-details .btn { width: 100%; }
    .pix-current-method { align-items: flex-start; flex-direction: column; }
    .dialog-footer { flex-direction: column-reverse; }
    .dialog-footer .btn { width: 100%; }
    .profile-card-header { align-items: flex-start; flex-wrap: wrap; }
    .profile-card-header .required-note, .profile-card-header > .status-badge { margin-left: 54px; }
    .compact-settings-card { align-items: flex-start; flex-wrap: wrap; }
    .compact-settings-card .btn { width: 100%; margin-left: 53px; }
    .help-hero { display: flex; align-items: flex-start; flex-direction: column; }
    .help-search { width: 100%; }
    .help-search kbd { display: none; }
    .cancellation-summary dl { grid-template-columns: 1fr; }
    .cancellation-form-footer { flex-direction: column-reverse; }
    .cancellation-form-footer .btn { width: 100%; }
    .cancellation-complete { padding: 25px 16px; }
    .confirmation-row { align-items: flex-start; flex-direction: column; gap: 5px; padding: 11px 13px; }
    .confirmation-row strong { padding-left: 25px; text-align: left; }
    .reactivation-box { align-items: flex-start; flex-wrap: wrap; }
    .reactivation-box form, .reactivation-box .btn { width: 100%; }
    .cancellation-complete-actions { flex-direction: column; }
    .invoice-toolbar { align-items: flex-start; flex-direction: column; }
    .invoice-actions, .invoice-actions .btn { width: 100%; }
    .invoice-document-head { align-items: flex-start; flex-direction: column; }
    .invoice-number { text-align: left; }
    .invoice-line-table { margin-inline: 16px; }
    .invoice-parties, .invoice-total-area { padding-inline: 17px; }
    .invoice-document-footer { padding-inline: 17px; }
    .app-footer .footer-separator, .app-footer a { display: none; }
}

@media (max-width: 380px) {
    .auth-form-panel { padding-inline: 18px; }
    .demo-credentials { align-items: flex-start; flex-wrap: wrap; }
    .copy-demo { margin-left: 43px; }
    .topbar { padding-inline: 9px; }
    .content-container { padding-inline: 10px; }
    .notification-panel { right: -48px; width: calc(100vw - 18px); }
    .bank-card-number { font-size: 13px; letter-spacing: 1px; }
}

/* Print only the invoice content */
@media print {
    .sidebar, .topbar, .page-heading, .page-back-link, .invoice-toolbar, .alert-banner, .invoice-help-line, .app-footer, .flash-message { display: none !important; }
    body, .app-body, .main-content { background: #fff !important; }
    .app-shell { margin: 0 !important; }
    .content-container { width: 100%; max-width: none; padding: 0; }
    .invoice-document { max-width: none; border: 0; box-shadow: none; }
    .invoice-document-head { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ============================================================
   ⬆ AJUSTE DE LEGIBILIDADE — fontes maiores em toda a área
   (overrides aplicados ao final do arquivo)
   ============================================================ */
body { font-size: 16px; }

/* Cabeçalhos de página e cartões */
.page-heading h1 { font-size: 24px; }
.page-heading p { font-size: 13px; line-height: 1.55; }
.breadcrumb { font-size: 12px; }
.page-back-link { font-size: 13px; }
.card-header h2, .card-header h3, .section-title-row h2, .section-title-row h3,
.table-title h2, .profile-card-header h2 { font-size: 17px; }
.card-header p, .section-title-row p, .table-title p, .profile-card-header p { font-size: 12px; line-height: 1.5; }
.content-card p { line-height: 1.55; }

/* Alertas / banners */
.alert-banner-copy strong { font-size: 15px; }
.alert-banner-copy p { font-size: 12.5px; line-height: 1.55; }

/* Boas-vindas */
.welcome-row h2 { font-size: 21px; }
.welcome-row p { font-size: 13px; }
.last-update { font-size: 11px; }

/* Cards de resumo (Visão Geral) */
.summary-label { font-size: 11px; }
.summary-value { font-size: 27px; }
.summary-value small { font-size: 15px; }
.summary-caption { font-size: 11.5px; }
.summary-caption b { font-size: 12.5px; }
.summary-status .status-badge { font-size: 13px; }
.tiny-indicator { font-size: 10px; }
.summary-mini-date { font-size: 10px; }
.card-brand-mini { font-size: 11px; }
.payment-value { font-size: 20px; }
.summary-link { font-size: 12px; }

/* Detalhes da assinatura / ciclo */
.detail-item small { font-size: 10.5px; }
.detail-item strong { font-size: 13px; }
.cycle-progress-head, .cycle-progress-dates { font-size: 10.5px; }

/* Últimos pagamentos / ações rápidas */
.recent-payment-info strong { font-size: 13px; }
.recent-payment-info small { font-size: 10.5px; }
.recent-payment-value > strong { font-size: 13px; }
.recent-payment-value .status-badge { font-size: 9.5px; }
.quick-action-card strong { font-size: 13px; }
.quick-action-card small { font-size: 10.5px; }
.mini-stat small { font-size: 10.5px; }
.mini-stat strong { font-size: 18px; }
.page-note p { font-size: 12px; }
.table-footer { font-size: 11.5px; }

/* Tabelas (pagamentos/históricos) */
.data-table th { font-size: 10.5px; }
.data-table td { font-size: 13px; }
.table-primary-cell strong { font-size: 13px; }
.table-primary-cell small { font-size: 10.5px; }
.table-empty h3 { font-size: 15px; }
.table-empty p { font-size: 12px; }
.table-search input { font-size: 12.5px; }
.filter-panel label { font-size: 12.5px; }
.filter-panel > strong { font-size: 11.5px; }

/* Forma de pagamento */
.payment-details dt { font-size: 10.5px; }
.payment-details dd { font-size: 14px; }
.payment-effective-note { font-size: 11px; line-height: 1.5; }
.security-card h3 { font-size: 17px; }
.security-card > p { font-size: 13px; }
.security-card li { font-size: 12px; }
.step-item strong { font-size: 13px; }
.step-item p { font-size: 11px; }
.billing-address-head h3 { font-size: 14px; }
.billing-address-head p { font-size: 12px; }
.pix-current-method h3 { font-size: 18px; }
.pix-current-method p { font-size: 13px; line-height: 1.55; }

/* Modais / diálogos */
.dialog-header h2 { font-size: 18px; }
.dialog-header p { font-size: 12px; }
.gateway-preview strong { font-size: 14px; }
.gateway-preview p { font-size: 12px; }
.change-summary div > span { font-size: 10.5px; }
.change-summary strong { font-size: 13px; }
.dialog-check-list li { font-size: 12px; }
.prototype-notice { font-size: 11px; line-height: 1.5; }
.renew-section > strong { font-size: 14px; }
.renew-option strong { font-size: 13.5px; }
.renew-option small { font-size: 12px; line-height: 1.45; }

/* Meus dados / formulários */
.field-group > label, .field-label-row label { font-size: 13px; }
.field-label-row a { font-size: 13px; }
.field-label-row small { font-size: 12px; }
.form-input { font-size: 14px; }
.standard-input input { font-size: 14px; }
.field-help { font-size: 10.5px; }
.form-security-hint { font-size: 10.5px; }
.form-subsection h3 { font-size: 14px; }
.required-note { font-size: 10.5px; }
.compact-settings-card h3 { font-size: 14px; }
.compact-settings-card p { font-size: 11px; }
.profile-section .text-muted, .text-muted { font-size: 12px; }

/* Cancelamento */
.timeline-item > div > span { font-size: 10px; }
.timeline-item strong { font-size: 13.5px; }
.timeline-item p { font-size: 11.5px; }
.data-retention-note strong { font-size: 12px; }
.data-retention-note p { font-size: 11px; }
.reason-option { font-size: 12.5px; }
.cancellation-acknowledgement .check-row { font-size: 12.5px; line-height: 1.55; }
.cancel-summary-label { font-size: 10px; }
.cancel-plan-head strong { font-size: 13px; }
.cancel-plan-head small { font-size: 11px; }
.cancellation-summary dt { font-size: 10.5px; }
.cancellation-summary dd { font-size: 12.5px; }
.cancel-summary-safe { font-size: 11px; }
.cancellation-summary > a { font-size: 12px; }
.complete-eyebrow { font-size: 11px; }
.cancellation-complete > h2 { font-size: 24px; }
.cancellation-complete > p { font-size: 13.5px; }
.confirmation-row { font-size: 12.5px; }
.reactivation-box strong { font-size: 13px; }
.reactivation-box p { font-size: 11px; }

/* Fatura */
.invoice-status-summary small { font-size: 11px; }
.invoice-number strong { font-size: 16px; }
.invoice-number span { font-size: 11px; }
.invoice-parties div > small { font-size: 10px; }
.invoice-parties strong { font-size: 13.5px; }
.invoice-parties span { font-size: 11px; }
.invoice-line-head { font-size: 10px; }
.invoice-line { font-size: 12.5px; }
.invoice-line > span:first-child small { font-size: 11px; }
.invoice-payment-info p { font-size: 11.5px; }
.invoice-total-area dl div { font-size: 12.5px; }
.invoice-grand-total { font-size: 16px !important; }
.invoice-grand-total dd { font-size: 19px; }
.paid-seal, .failed-seal, .pending-seal { font-size: 11px; }
.bank-card-bottom small { font-size: 10px; }
.bank-card-bottom strong { font-size: 13px; }

/* Ajuda */
.help-hero h2 { font-size: 24px; }
.help-hero p { font-size: 13px; }
.help-category-card h3 { font-size: 15px; }
.help-category-card p { font-size: 12px; }
.help-category-card a { font-size: 12px; }
.faq-group h2 { font-size: 15px; }
.accordion-item > button { font-size: 13px; }
.accordion-content { font-size: 12.5px; }
.support-card h3 { font-size: 15px; }
.support-card p { font-size: 12px; }
.docs-card h3 { font-size: 14px; }
.docs-card p { font-size: 11px; }
.help-no-results h3 { font-size: 15px; }
.help-no-results p { font-size: 12px; }

/* Área de login/autenticação */
.auth-heading h2 { font-size: 30px; }
.auth-heading p { font-size: 15.5px; }
.auth-hero-copy p { font-size: 17px; }
.auth-benefits li { font-size: 14px; }
.auth-security-note { font-size: 12.5px; }
.auth-back-link { font-size: 14px; }
.auth-info-box { font-size: 13px; }
.auth-support-line { font-size: 13px; }
.operational-login-note p { font-size: 13px; }
