:root {
    --font-sans: "Aptos", "Segoe UI", "Trebuchet MS", "Helvetica Neue", sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-mono: "Aptos Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --bg: #eaf0f7;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --surface-soft: #f4f7fb;
    --surface-tint: rgba(255, 255, 255, 0.78);
    --surface-contrast: #dde7f2;
    --text: #0f172a;
    --muted: #5f6f86;
    --muted-soft: #8da0b8;
    --primary: #174ea6;
    --primary-dark: #123d82;
    --accent: #0f766e;
    --accent-soft: rgba(15, 118, 110, 0.12);
    --danger: #b42318;
    --success: #166534;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);
    --shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.09);
    --topbar: rgba(248, 251, 255, 0.9);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --btn-height: 48px;
    --btn-height-sm: 40px;
    --btn-height-icon: 46px;
    --btn-padding-x: 18px;
    --btn-padding-x-sm: 14px;
    --btn-gap: 8px;
    --btn-radius: 16px;
    --btn-radius-sm: 14px;
    --btn-font-size: 14px;
    --btn-font-size-sm: 13px;
    --btn-shadow: 0 14px 28px rgba(23, 78, 166, 0.18);
    --btn-shadow-hover: 0 18px 32px rgba(23, 78, 166, 0.24);
    --shell-neutral: #edf3fa;
    --shell-secondary: #dfe8f4;
    --shell-accent: var(--accent);
    --shell-card-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --glass-surface: rgba(255, 255, 255, 0.72);
    --glass-surface-strong: rgba(255, 255, 255, 0.84);
    --glass-highlight: rgba(255, 255, 255, 0.64);
    --glass-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
    --glass-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="ocean"] {
    --bg: #ecf4fb;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-soft: #f2f7fd;
    --text: #11243f;
    --muted: #61728a;
    --primary: #0f4c81;
    --primary-dark: #0c3d68;
    --accent: #0f766e;
    --accent-soft: rgba(15, 118, 110, 0.14);
    --border: rgba(17, 36, 63, 0.1);
    --topbar: rgba(248, 252, 255, 0.86);
}

html[data-theme="sunset"] {
    --bg: #fff3ea;
    --surface: rgba(255, 251, 246, 0.86);
    --surface-strong: #fffaf5;
    --surface-soft: #fff0e2;
    --text: #3f2618;
    --muted: #8a6b5d;
    --primary: #c2410c;
    --primary-dark: #9a3412;
    --accent: #ea580c;
    --accent-soft: rgba(234, 88, 12, 0.14);
    --border: rgba(63, 38, 24, 0.1);
    --topbar: rgba(255, 248, 241, 0.82);
}

html[data-theme="forest"] {
    --bg: #edf6ef;
    --surface: rgba(251, 255, 251, 0.88);
    --surface-strong: #fcfffc;
    --surface-soft: #edf8f0;
    --text: #163126;
    --muted: #567363;
    --primary: #166534;
    --primary-dark: #14532d;
    --accent: #ca8a04;
    --accent-soft: rgba(202, 138, 4, 0.16);
    --border: rgba(22, 49, 38, 0.1);
    --topbar: rgba(246, 252, 247, 0.82);
}

html[data-theme="slate"] {
    --bg: #e7eef7;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-soft: #f1f5fb;
    --text: #111b2e;
    --muted: #5f6f86;
    --primary: #174ea6;
    --primary-dark: #123d82;
    --accent: #0f766e;
    --accent-soft: rgba(15, 118, 110, 0.14);
    --border: rgba(17, 27, 46, 0.1);
    --topbar: rgba(250, 252, 255, 0.86);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 30%),
        radial-gradient(circle at top right, rgba(23, 78, 166, 0.1), transparent 24%),
        radial-gradient(circle at 20% 80%, var(--accent-soft), transparent 26%),
        linear-gradient(180deg, var(--shell-neutral) 0%, #edf3fb 54%, #f8fbff 100%);
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

a {
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

p,
li,
td,
th,
input,
select,
textarea,
button {
    font-family: var(--font-sans);
}

::selection {
    background: rgba(15, 118, 110, 0.16);
    color: var(--text);
}

.app-shell {
    position: relative;
    min-height: 100vh;
    --sidebar-width: 312px;
    --sidebar-collapsed-width: 104px;
    --sidebar-offset: var(--sidebar-width);
    --shell-gutter: 18px;
    --shell-gap: 36px;
    --content-max-width: 1180px;
}

.app-layout {
    width: min(calc(var(--content-max-width) + var(--sidebar-width) + 112px), calc(100% - (var(--shell-gutter) * 2)));
    margin: 0 auto;
}

.app-main {
    min-width: 0;
}

.shell-backdrop,
.shell-toggle,
.sidebar-collapse,
.shell-header {
    position: relative;
    z-index: 3;
}

.app-sidebar {
    position: fixed;
    top: var(--shell-gutter);
    left: var(--shell-gutter);
    bottom: var(--shell-gutter);
    width: var(--sidebar-width);
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(230, 239, 250, 0.3)),
        linear-gradient(180deg, rgba(248, 251, 255, 0.88), rgba(223, 232, 244, 0.78)),
        var(--shell-secondary);
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
    backdrop-filter: blur(26px) saturate(150%);
    overflow: hidden;
    z-index: 6;
    transition: width 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.app-sidebar::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0.9;
}

.app-sidebar-inner {
    display: grid;
    align-content: start;
    gap: 14px;
    height: 100%;
    padding: 20px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.app-main,
.shell-header {
    margin-left: calc(var(--sidebar-offset) + var(--shell-gap));
    transition: margin-left 0.24s ease;
}

.sidebar-collapsed {
    --sidebar-offset: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .sidebar-brand-subtitle,
.sidebar-collapsed .sidebar-panel,
.sidebar-collapsed .sidebar-quick-actions,
.sidebar-collapsed .sidebar-logout,
.sidebar-collapsed .sidebar-menu-hint,
.sidebar-collapsed .sidebar-brand-kicker {
    display: none;
}

.sidebar-collapsed .sidebar-brand {
    justify-items: center;
    text-align: center;
}

.sidebar-collapsed .sidebar-brand-title {
    font-size: 14px;
    line-height: 1.2;
}

.sidebar-collapsed .sidebar-menu a {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 60px;
    padding: 12px 10px;
}

.sidebar-collapsed .sidebar-menu-copy {
    display: none;
}

.sidebar-collapsed .sidebar-collapse span {
    transform: rotate(180deg);
}

.sidebar-brand {
    text-decoration: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.sidebar-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(233, 241, 251, 0.88));
    border: 1px solid rgba(23, 78, 166, 0.12);
    box-shadow: 0 12px 24px rgba(19, 32, 51, 0.08);
}

.sidebar-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-brand-copy {
    display: grid;
    gap: 4px;
}

.sidebar-brand-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    font-weight: 700;
}

.sidebar-brand-title {
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.sidebar-brand-subtitle {
    color: var(--muted);
    font-size: 13px;
}

.sidebar-collapsed .sidebar-brand {
    grid-template-columns: 1fr;
    justify-items: center;
}

.sidebar-collapsed .sidebar-brand-copy {
    display: none;
}

.sidebar-collapsed .sidebar-brand-mark {
    width: 48px;
    height: 48px;
}

.sidebar-collapsed .sidebar-brand-logo {
    width: 32px;
    height: 32px;
}

.app-sidebar-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.sidebar-collapse,
.shell-toggle {
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--text);
    border-radius: var(--btn-radius);
    min-height: var(--btn-height-icon);
    min-width: var(--btn-height-icon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    appearance: none;
    touch-action: manipulation;
}

.sidebar-collapse:hover,
.shell-toggle:hover {
    transform: translateY(-1px);
    filter: saturate(1.02);
    box-shadow: 0 12px 24px rgba(19, 32, 51, 0.12);
}

.sidebar-collapse:focus-visible,
.shell-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sidebar-collapse span {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.sidebar-panel {
    display: grid;
    gap: 4px;
    padding: 14px 15px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 252, 0.92));
    border: 1px solid var(--border);
}

.sidebar-panel-current,
.sidebar-panel-theme {
    background: linear-gradient(135deg, rgba(246, 250, 255, 0.98), rgba(231, 239, 249, 0.94));
    border-color: rgba(23, 78, 166, 0.12);
}

.sidebar-panel strong {
    font-size: 15px;
    line-height: 1.2;
}

.sidebar-panel span {
    color: var(--muted);
    font-size: 12px;
}

.sidebar-panel-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-soft);
    font-weight: 700;
}

.sidebar-menu {
    display: grid;
    gap: 8px;
}

.sidebar-menu a {
    text-decoration: none;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 252, 0.9));
    color: var(--muted);
}

.sidebar-menu a:hover,
.sidebar-menu a.is-active {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
}

.sidebar-menu a.is-active {
    border-color: rgba(23, 78, 166, 0.18);
    background: linear-gradient(135deg, rgba(23, 78, 166, 0.1), rgba(255, 255, 255, 0.98));
}

.sidebar-menu-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--shell-accent);
    font-weight: 800;
}

.sidebar-menu a.is-active .sidebar-menu-icon {
    background: linear-gradient(135deg, rgba(23, 78, 166, 0.16), rgba(255, 255, 255, 0.94));
    color: var(--primary);
}

.sidebar-menu-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sidebar-menu-title {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 700;
}

.sidebar-menu-hint {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-soft);
}

.sidebar-quick-actions {
    display: grid;
    gap: 8px;
}

.sidebar-quick-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 16px;
    background: rgba(23, 78, 166, 0.08);
    border: 1px solid rgba(23, 78, 166, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.sidebar-quick-link-strong {
    background: linear-gradient(135deg, rgba(23, 78, 166, 0.14), rgba(255, 255, 255, 0.9));
}

.sidebar-logout .btn {
    width: 100%;
}

.shell-header {
    display: none;
    z-index: 7;
}

.shell-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.shell-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.shell-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 100%;
}

.shell-toggle {
    display: none;
    gap: 4px;
    flex-direction: column;
}

.shell-toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.shell-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(19, 32, 51, 0.42);
    touch-action: manipulation;
}

.app-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.app-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.45;
}

.app-orb-a {
    width: 380px;
    height: 380px;
    top: -130px;
    left: -90px;
    background: rgba(15, 118, 110, 0.15);
}

.app-orb-b {
    width: 400px;
    height: 400px;
    top: 160px;
    right: -120px;
    background: rgba(234, 88, 12, 0.11);
}

.app-orb-c {
    width: 320px;
    height: 320px;
    bottom: -90px;
    left: 24%;
    background: rgba(21, 94, 239, 0.08);
}

.container {
    width: min(var(--content-max-width), calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.app-shell-auth .container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: auto;
}

.content-shell {
    padding: 28px 0 48px;
}

.page-title {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3vw, 42px);
    letter-spacing: -0.05em;
    line-height: 0.94;
}

.section-stack {
    display: grid;
    gap: 16px;
}

.card-title-reset {
    margin-top: 0;
}

.paragraph-reset {
    margin-bottom: 0;
}

.section-spaced-top {
    margin-top: 16px;
}

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

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
}

.feature-list li {
    color: var(--muted);
}

.row-actions-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.field-inline-sm {
    max-width: 90px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 18px 0 12px;
    backdrop-filter: blur(20px);
}

.topbar-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.58)),
        var(--topbar);
    box-shadow: var(--shadow);
}

.topbar-brand {
    display: grid;
    gap: 14px;
}

.topbar-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.topbar-context {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.context-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.context-pill-strong {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(15, 118, 110, 0.06));
    color: var(--primary);
    border-color: rgba(15, 118, 110, 0.18);
}

.topbar-utility {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    text-decoration: none;
    display: inline-grid;
    gap: 4px;
}

.brand-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
}

.brand-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 420px;
}

.brand:hover .brand-title {
    color: var(--primary);
}

.topbar-actions {
    display: grid;
    gap: 14px;
    justify-items: end;
    min-width: min(100%, 520px);
    width: 100%;
}

.mobile-nav-head,
.mobile-nav-backdrop,
.mobile-nav-close {
    display: none;
}

.mobile-nav-scroll {
    display: contents;
}

.nav-caption {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid var(--border);
    color: var(--text);
}

.nav-caption-kicker {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.theme-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-strong);
    width: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.theme-picker label {
    display: none;
}

.theme-picker select {
    width: auto;
    min-width: 96px;
    border: 0;
    padding: 0;
    background: transparent;
    min-height: 24px;
    font-weight: 700;
    align-self: center;
    text-align: center;
}

.theme-picker-sidebar {
    width: 100%;
    justify-content: stretch;
    border-radius: 16px;
    min-height: 48px;
    padding: 0 12px;
}

.theme-picker-sidebar select {
    width: 100%;
    min-width: 0;
    text-align: left;
}

.menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.menu a {
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 700;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46));
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
    min-height: 68px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.menu a::after {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.menu a:hover,
.menu a.is-active {
    color: var(--text);
    background: var(--surface-strong);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.menu a:hover::after,
.menu a.is-active::after {
    transform: scaleY(1);
}

.menu a.is-active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(255, 255, 255, 0.96));
    border-color: rgba(15, 118, 110, 0.28);
}

.menu-link-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.menu-link-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.menu-link-title {
    font-size: 15px;
    line-height: 1.1;
}

.menu-link-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-soft);
}

.menu-link-arrow {
    color: var(--muted-soft);
    font-size: 22px;
    line-height: 1;
    justify-self: end;
}

.menu a.is-active .menu-link-subtitle {
    color: var(--primary);
}

.menu a.is-active .menu-link-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.menu a.is-active .menu-link-title {
    color: var(--primary-dark);
}

.menu a.is-active .menu-link-arrow {
    color: var(--primary);
}

.menu a:hover .menu-link-arrow {
    color: var(--text);
    transform: translateX(2px);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.menu-toggle-icon {
    display: inline-grid;
    gap: 4px;
    justify-items: center;
}

.menu-toggle:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
}

.menu-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(255, 255, 255, 0.96));
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: var(--shadow-soft);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon .menu-toggle-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon .menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon .menu-toggle-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

.menu-toggle-line {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-chip {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--surface-strong), var(--surface-soft));
    border: 1px solid var(--border);
    min-width: 190px;
    box-shadow: var(--shadow-soft);
}

.user-chip-level,
.user-chip-streak {
    background: var(--surface-strong);
    border-color: var(--border-strong);
}

.user-chip-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}

.user-name {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.user-name-streak {
    color: #f97316;
}

.user-chip-meta {
    color: var(--muted-soft);
    font-size: 12px;
}

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
}

.alert-error {
    background: #fff0ed;
    color: #9a3412;
    border-color: rgba(154, 52, 18, 0.14);
}

.alert-success {
    background: #edfdf3;
    color: var(--success);
    border-color: rgba(22, 101, 52, 0.14);
}

.alert-level-up {
    background: linear-gradient(to right, #10b981, #059669);
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-renewal {
    background: #eff6ff;
    color: #1e3a5f;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.alert-renewal-copy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.alert-renewal-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12)),
        linear-gradient(180deg, var(--glass-surface-strong), var(--glass-surface));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 18px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08), var(--glass-inner-shadow);
    backdrop-filter: blur(22px) saturate(150%);
    position: relative;
    overflow: hidden;
}

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

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 36%);
    pointer-events: none;
}

.hero-card {
    overflow: hidden;
    position: relative;
    padding: 28px 30px;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(23, 78, 166, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 44%);
    pointer-events: none;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px 18px;
    margin-bottom: 20px;
}

.hero-card .section-head {
    align-items: start;
    gap: 18px 22px;
}

.section-copy,
.muted {
    color: var(--muted);
    max-width: 70ch;
    font-size: 15.5px;
    line-height: 1.72;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(23, 78, 166, 0.1);
    border-radius: 999px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

h1,
h2,
h3 {
    margin: 0 0 8px;
    line-height: 1;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 56px);
    letter-spacing: -0.06em;
    line-height: 0.9;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.4vw, 30px);
    letter-spacing: -0.045em;
    line-height: 0.96;
}

h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.page-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px 18px;
    margin-bottom: 18px;
}

.page-toolbar > div {
    min-width: 0;
}

.page-toolbar > :first-child {
    min-width: 0;
}

.page-toolbar > .actions {
    min-width: 0;
    justify-content: flex-end;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    min-width: 0;
}

.mini-stat {
    min-width: 0;
    padding: 13px 15px;
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.16)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 252, 0.82));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft), var(--glass-inner-shadow);
    position: relative;
    overflow: hidden;
}

.mini-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--shell-accent), var(--primary));
    opacity: 0.75;
}

.mini-stat-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 700;
}

.mini-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 0.96;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.metric-card {
    display: grid;
    gap: 10px;
    min-height: 156px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.9));
    border-color: rgba(23, 78, 166, 0.08);
    align-content: space-between;
}

.executive-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.executive-kpi-card {
    min-width: 0;
    display: grid;
    gap: 10px;
    align-content: space-between;
    min-height: 172px;
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08), var(--glass-inner-shadow);
    position: relative;
    overflow: hidden;
}

.executive-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    opacity: 0.9;
}

.executive-kpi-card > * {
    position: relative;
    z-index: 1;
}

.executive-kpi-card-revenue {
    background:
        radial-gradient(circle at top right, rgba(23, 78, 166, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.26)),
        var(--glass-surface-strong);
}

.executive-kpi-card-revenue::before {
    background: linear-gradient(180deg, #2563eb, #174ea6);
}

.executive-kpi-card-expense {
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.22), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.26)),
        var(--glass-surface-strong);
}

.executive-kpi-card-expense::before {
    background: linear-gradient(180deg, #64748b, #334155);
}

.executive-kpi-card-profit {
    background:
        radial-gradient(circle at top right, rgba(21, 94, 239, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.26)),
        var(--glass-surface-strong);
}

.executive-kpi-card-profit::before {
    background: linear-gradient(180deg, #0f766e, #115e59);
}

.executive-kpi-card-growth {
    background:
        radial-gradient(circle at top right, rgba(202, 138, 4, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.26)),
        var(--glass-surface-strong);
}

.executive-kpi-card-growth::before {
    background: linear-gradient(180deg, #ca8a04, #b45309);
}

.executive-kpi-card-growth.is-positive::before {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.executive-kpi-card-growth.is-negative::before {
    background: linear-gradient(180deg, #f97316, #c2410c);
}

.executive-kpi-card-label {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.14em;
    font-weight: 800;
}

.executive-kpi-card-value {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.value-revenue {
    color: #174ea6;
}

.value-income {
    color: #174ea6;
}

.value-expense {
    color: #b42318;
}

.value-balance-positive {
    color: #15803d;
}

.value-balance-negative {
    color: #b42318;
}

.executive-kpi-card-meta {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.metric-card-compact {
    min-height: 0;
}

.metric-label {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.metric-value {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 44px);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.metric-trend {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.quick-actions-card {
    margin-bottom: 18px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-action-tile {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46)),
        var(--surface-soft);
    border: 1px solid var(--border);
    box-shadow: var(--glass-inner-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.quick-action-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(19, 32, 51, 0.08), var(--glass-inner-shadow);
}

.quick-action-tile strong {
    font-size: 16px;
    line-height: 1.1;
}

.quick-action-tile span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
}

.table-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.14)),
        var(--glass-surface-strong);
    box-shadow: var(--glass-inner-shadow);
    backdrop-filter: blur(16px) saturate(150%);
}

.table-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 14px;
}

.table-section-head h2 {
    margin-bottom: 4px;
}

.table-section-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: transparent;
}

.table th,
.table td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.86);
    position: sticky;
    top: 0;
    z-index: 1;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: rgba(15, 118, 110, 0.035);
}

.table-primary {
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.table-amount {
    font-weight: 800;
}

.table-meta {
    display: block;
    margin-top: 3px;
    color: var(--muted-soft);
    font-size: 12px;
}

.inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(19, 32, 51, 0.05);
}

.type-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.type-receita {
    background: rgba(22, 101, 52, 0.12);
    color: #166534;
}

.type-despesa {
    background: rgba(194, 65, 12, 0.12);
    color: #c2410c;
}

.row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.row-actions > form,
.row-actions > .btn,
.row-actions > a {
    min-width: 0;
}

.row-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.link-action {
    display: inline-flex;
    align-items: center;
    padding: 9px 11px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(23, 78, 166, 0.08);
    color: var(--primary);
    font-weight: 700;
    border: 1px solid rgba(23, 78, 166, 0.08);
}

.link-action:hover {
    background: rgba(23, 78, 166, 0.14);
}

.link-action-strong {
    color: #0f766e;
    font-weight: 700;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link,
.page-current {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-current {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.actions-centered {
    justify-content: center;
}

.actions-spaced-top {
    margin-top: 24px;
}

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

.form-row {
    margin-bottom: 14px;
}

.form-row.form-row-full {
    grid-column: 1 / -1;
}

label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 700;
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28)),
        rgba(255, 255, 255, 0.68);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--glass-inner-shadow);
    backdrop-filter: blur(14px) saturate(150%);
    font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(23, 78, 166, 0.4);
    box-shadow: 0 0 0 4px rgba(23, 78, 166, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--btn-gap);
    appearance: none;
    border: 0;
    min-height: var(--btn-height);
    padding: 0 var(--btn-padding-x);
    border-radius: var(--btn-radius);
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 800;
    font-size: var(--btn-font-size);
    line-height: 1;
    letter-spacing: 0.015em;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow: var(--btn-shadow-hover);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(23, 78, 166, 0.12), var(--btn-shadow);
}

.btn-light {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    color: var(--text);
    box-shadow: var(--glass-inner-shadow);
    border: 1px solid var(--border);
}

.btn-danger {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 14px 28px rgba(194, 65, 12, 0.18);
}

.btn-warning {
    background: #ca8a04;
    color: #ffffff;
    box-shadow: none;
}

.btn-inline {
    min-height: var(--btn-height-sm);
    padding: 0 var(--btn-padding-x-sm);
    border-radius: var(--btn-radius-sm);
    font-size: var(--btn-font-size-sm);
}

.btn-full-width {
    width: 100%;
}

.btn-space-between {
    justify-content: space-between;
}

.btn[disabled],
.btn.is-disabled,
.btn[aria-disabled="true"] {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn.is-loading,
.btn[aria-busy="true"] {
    position: relative;
    pointer-events: none;
    color: transparent !important;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.btn.is-loading::after,
.btn[aria-busy="true"]::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: currentColor;
    animation: btnSpin 0.7s linear infinite;
    color: #fff;
}

.btn-light.is-loading::after,
.btn-light[aria-busy="true"]::after {
    border-color: rgba(19, 32, 51, 0.18);
    border-top-color: var(--text);
}

.btn-danger.is-loading::after,
.btn-danger[aria-busy="true"]::after,
.btn-warning.is-loading::after,
.btn-warning[aria-busy="true"]::after {
    border-color: rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
}

.filters {
    margin-bottom: 18px;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.34)),
        rgba(255, 255, 255, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.filters-compact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 16px;
}

.summary-grid {
    margin-bottom: 18px;
}

.insight-card {
    background:
        radial-gradient(circle at top right, rgba(234, 88, 12, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.26)),
        linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(248, 241, 231, 0.9));
    padding: 28px 30px;
}

.insight-score {
    min-width: 180px;
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
    align-self: start;
}

.insight-score strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.insight-score-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.insight-score-meta {
    color: var(--muted-soft);
    font-size: 12px;
}

.insight-score-ok strong {
    color: #166534;
}

.insight-score-warn strong {
    color: #b45309;
}

.insight-score-risk strong {
    color: #c2410c;
}

.insight-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    min-height: 128px;
}

.insight-item h3 {
    margin: 6px 0 6px;
    font-size: 18px;
}

.insight-item .link-action {
    white-space: nowrap;
}

.insight-level {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.insight-level-alto,
.insight-item-alto {
    border-color: rgba(194, 65, 12, 0.18);
}

.insight-level-alto {
    background: #fff1eb;
    color: #c2410c;
}

.insight-level-medio,
.insight-item-medio {
    border-color: rgba(180, 83, 9, 0.18);
}

.insight-level-medio {
    background: #fff7ed;
    color: #b45309;
}

.insight-level-baixo,
.insight-item-baixo {
    border-color: rgba(22, 101, 52, 0.18);
}

.insight-level-baixo {
    background: #ecfdf3;
    color: #166534;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.8;
}

.status-pago {
    background: #dcfce7;
    color: #166534;
}

.status-pendente {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-atrasado {
    background: #ffedd5;
    color: #c2410c;
}

.status-cancelado {
    background: #e5e7eb;
    color: #374151;
}

.chart {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    box-shadow: var(--shadow-soft), var(--glass-inner-shadow);
    backdrop-filter: blur(16px) saturate(145%);
    animation: chartFadeIn 0.42s ease-out both;
}

.chart-row {
    display: grid;
    gap: 8px;
}

.chart-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.chart-bars {
    display: grid;
    gap: 8px;
}

.chart-bar {
    min-height: 32px;
    border-radius: 14px;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform-origin: left center;
    animation: chartGrowX 0.55s ease-out both;
}

.chart-bar-positive {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.chart-bar-negative {
    background: linear-gradient(90deg, #c2410c, #fb923c);
}

.chart-bar-mid {
    background: linear-gradient(90deg, #123d82, #174ea6);
}

.chart-bar-neutral {
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.executive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.executive-card {
    min-width: 0;
    display: grid;
    gap: 18px;
    align-content: start;
}

.executive-head {
    margin-bottom: 0;
}

.executive-kpi {
    min-width: 140px;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    box-shadow: var(--glass-inner-shadow);
}

.executive-kpi-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.executive-kpi strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.executive-kpi-contrast.is-positive strong {
    color: #15803d;
}

.executive-kpi-contrast.is-negative strong {
    color: #c2410c;
}

.executive-chart-shell {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    box-shadow: var(--shadow-soft), var(--glass-inner-shadow);
    backdrop-filter: blur(16px) saturate(145%);
    animation: chartFadeIn 0.42s ease-out both;
}

.executive-chart-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.executive-grid-line {
    fill: none;
    stroke: rgba(19, 32, 51, 0.09);
    stroke-width: 0.75;
    stroke-dasharray: 2.5 3;
}

.executive-area {
    stroke: none;
}

.executive-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: chartFadeIn 0.55s ease-out both;
}

.executive-line-revenue {
    stroke: #0f766e;
}

.executive-line-cash {
    stroke: #ea580c;
}

.executive-dot {
    stroke: #fff;
    stroke-width: 1.2;
    animation: chartDotIn 0.45s ease-out both;
}

.executive-dot-revenue {
    fill: #0f766e;
}

.executive-dot-cash {
    fill: #ea580c;
}

.executive-axis-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.executive-axis-labels span {
    min-width: 0;
    text-align: center;
}

.executive-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 260px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    box-shadow: var(--shadow-soft), var(--glass-inner-shadow);
    backdrop-filter: blur(16px) saturate(145%);
    animation: chartFadeIn 0.42s ease-out both;
}

.executive-simple-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 260px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    box-shadow: var(--shadow-soft), var(--glass-inner-shadow);
    backdrop-filter: blur(16px) saturate(145%);
    animation: chartFadeIn 0.42s ease-out both;
}

.executive-simple-bar-group {
    min-width: 0;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.executive-simple-bar-shell {
    width: 100%;
    min-height: 220px;
    display: grid;
    align-items: end;
    padding: 16px 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(19, 32, 51, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.12)),
        rgba(255, 255, 255, 0.34);
}

.executive-simple-bar {
    display: block;
    width: 100%;
    min-height: 12px;
    border-radius: 999px 999px 12px 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
    transform-origin: center bottom;
    animation: chartGrowY 0.55s ease-out both;
}

.executive-simple-bar-revenue {
    background: linear-gradient(180deg, #14b8a6, #0f766e);
}

.executive-simple-bar-positive {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.executive-simple-bar-negative {
    background: linear-gradient(180deg, #fb923c, #c2410c);
}

.executive-bar-group {
    min-width: 0;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.executive-bar-stack {
    width: 100%;
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    padding: 16px 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(19, 32, 51, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.12)),
        rgba(255, 255, 255, 0.34);
}

.executive-bar {
    width: 100%;
    min-height: 12px;
    border-radius: 999px 999px 12px 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
    transform-origin: center bottom;
    animation: chartGrowY 0.55s ease-out both;
}

.executive-bar-revenue {
    background: linear-gradient(180deg, #14b8a6, #0f766e);
}

.executive-bar-expense {
    background: linear-gradient(180deg, #fb923c, #c2410c);
}

.executive-bar-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.executive-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.executive-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.legend-swatch-revenue {
    background: #0f766e;
}

.legend-swatch-expense {
    background: #ea580c;
}

.executive-pie-layout {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    box-shadow: var(--shadow-soft), var(--glass-inner-shadow);
    backdrop-filter: blur(16px) saturate(145%);
    animation: chartFadeIn 0.42s ease-out both;
}

.executive-pie-svg {
    width: 100%;
    height: auto;
}

.executive-pie-track,
.executive-pie-segment {
    fill: none;
    stroke-width: 32;
}

.executive-pie-track {
    stroke: rgba(19, 32, 51, 0.08);
}

.executive-pie-segment {
    transform: rotate(-90deg);
    transform-origin: 110px 110px;
    stroke-linecap: butt;
    animation: chartFadeIn 0.55s ease-out both;
}

@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chartGrowX {
    from {
        opacity: 0;
        transform: scaleX(0.92);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes chartGrowY {
    from {
        opacity: 0;
        transform: scaleY(0.82);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes chartDotIn {
    from {
        opacity: 0;
        transform: scale(0.72);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes skeletonShimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chart,
    .chart-bar,
    .executive-chart-shell,
    .executive-line,
    .executive-dot,
    .executive-bars,
    .executive-bar,
    .executive-pie-layout,
    .executive-pie-segment,
    .charts-skeleton-line::after,
    .charts-skeleton-graphic::after {
        animation: none !important;
        transform: none !important;
    }
}

.executive-pie-hole {
    fill: rgba(255, 255, 255, 0.82);
}

.executive-pie-total-label {
    fill: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.executive-pie-total-value {
    fill: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.executive-legend-list {
    display: grid;
    justify-content: stretch;
    gap: 10px;
}

.executive-legend-list span {
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.28);
}

.executive-compare-card {
    grid-column: 1 / -1;
}

.executive-compare-bars {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    box-shadow: var(--shadow-soft), var(--glass-inner-shadow);
    backdrop-filter: blur(16px) saturate(145%);
}

.executive-compare-row {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.executive-compare-copy {
    display: grid;
    gap: 2px;
}

.executive-compare-copy strong {
    font-size: 14px;
    line-height: 1.2;
}

.executive-compare-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.executive-compare-track {
    position: relative;
    min-width: 0;
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: rgba(19, 32, 51, 0.08);
    overflow: hidden;
}

.executive-compare-bar {
    display: block;
    height: 100%;
    min-width: 12px;
    border-radius: inherit;
    transform-origin: left center;
    animation: chartGrowX 0.55s ease-out both;
}

.executive-compare-bar.is-positive {
    background: linear-gradient(90deg, #22c55e, #15803d);
}

.executive-compare-bar.is-negative {
    background: linear-gradient(90deg, #fb923c, #c2410c);
}

.executive-compare-value {
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
}

.executive-compare-value.is-positive {
    color: #15803d;
}

.executive-compare-value.is-negative {
    color: #c2410c;
}

.executive-forecast-card {
    grid-column: 1 / -1;
}

.executive-forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    box-shadow: var(--shadow-soft), var(--glass-inner-shadow);
    backdrop-filter: blur(16px) saturate(145%);
}

.executive-forecast-item {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12)),
        rgba(255, 255, 255, 0.26);
}

.executive-forecast-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.executive-forecast-value {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.executive-forecast-value.is-positive {
    color: #15803d;
}

.executive-forecast-value.is-negative {
    color: #c2410c;
}

.executive-forecast-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(19, 32, 51, 0.08);
    overflow: hidden;
}

.executive-forecast-bar {
    display: block;
    height: 100%;
    min-width: 12px;
    border-radius: inherit;
    transform-origin: left center;
    animation: chartGrowX 0.55s ease-out both;
}

.executive-forecast-bar.is-positive {
    background: linear-gradient(90deg, #22c55e, #15803d);
}

.executive-forecast-bar.is-negative {
    background: linear-gradient(90deg, #fb923c, #c2410c);
}

.executive-forecast-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.chart-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    min-width: 180px;
    max-width: 280px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(19, 32, 51, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64)),
        var(--glass-surface-strong);
    box-shadow: var(--shadow), var(--glass-inner-shadow);
    backdrop-filter: blur(16px) saturate(150%);
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-9999px, -9999px, 0);
    transition: opacity 0.14s ease;
}

.chart-tooltip.is-visible {
    opacity: 1;
}

.chart-tooltip-title {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.chart-tooltip-description {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.chart-tooltip-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chart-tooltip-value {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.chart-tooltip-percent {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.budget-track {
    width: 100%;
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(19, 32, 51, 0.08);
    overflow: hidden;
}

.budget-track-fill {
    height: 100%;
    border-radius: 999px;
}

.budget-track-fill-pago {
    background: linear-gradient(90deg, #166534, #22c55e);
}

.budget-track-fill-pendente {
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.budget-track-fill-atrasado {
    background: linear-gradient(90deg, #c2410c, #fb923c);
}

.empty-state {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 20px;
    background: var(--surface-soft);
    color: var(--muted);
    border: 1px dashed var(--border-strong);
}

.empty-state strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.3;
}

.empty-state .actions {
    margin-top: 4px;
}

.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.status-summary-item,
.detail-list-item {
    display: grid;
    gap: 6px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32)),
        var(--surface-soft);
    box-shadow: var(--glass-inner-shadow);
}

.status-summary-label,
.detail-list-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.card-compact {
    padding: 18px;
}

.card-spaced-top {
    margin-top: 14px;
}

.paragraph-reset {
    margin-bottom: 0;
}

.break-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.form-reset {
    margin: 0;
}

.pagination-spaced-top {
    margin-top: 12px;
}

.onboarding-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(23, 78, 166, 0.08);
    overflow: hidden;
    margin-bottom: 14px;
}

.onboarding-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #174ea6);
}

.onboarding-list {
    display: grid;
    gap: 10px;
}

.onboarding-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.88));
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
}

.onboarding-item.is-done {
    background: rgba(22, 101, 52, 0.08);
    border-color: rgba(22, 101, 52, 0.14);
}

.onboarding-check {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(23, 78, 166, 0.12);
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-stage {
    display: grid;
    grid-template-columns: 1.2fr 0.95fr;
    gap: 18px;
    align-items: stretch;
}

.auth-promo {
    min-height: 100%;
    display: grid;
    align-content: space-between;
    gap: 18px;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(23, 78, 166, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
    color: #fff;
}

.auth-promo .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.auth-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    align-self: start;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.auth-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px;
}

.auth-brand-copy {
    display: grid;
    gap: 2px;
}

.auth-brand-copy strong {
    font-size: 20px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.auth-brand-copy span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.auth-promo h1,
.auth-promo h2,
.auth-promo p,
.auth-promo li {
    color: #fff;
}

.auth-points {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.auth-points li {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.auth-hero-copy {
    display: grid;
    gap: 12px;
}

.auth-form-card {
    display: grid;
    align-content: start;
    gap: 8px;
}

.offer-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.offer-label,
.trust-kicker {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    opacity: 0.78;
}

.offer-band strong {
    font-size: 24px;
    line-height: 1;
}

.offer-meta {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 700;
}

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

.trust-item {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item strong {
    font-size: 18px;
    letter-spacing: -0.03em;
}

.trust-item span:last-child {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}

.auth-callout {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(23, 78, 166, 0.08), rgba(23, 78, 166, 0.03));
    border: 1px solid rgba(23, 78, 166, 0.12);
    margin-bottom: 6px;
}

.auth-inline-proof {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.auth-inline-proof span {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.pricing-grid-plans {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

.billing-option-stack {
    display: grid;
    gap: 10px;
}

.marketing-shell {
    display: grid;
    gap: 24px;
}

.marketing-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(23, 78, 166, 0.9));
    color: #fff;
}

.marketing-hero .section-copy,
.marketing-hero h1,
.marketing-hero h2,
.marketing-hero strong,
.marketing-hero span,
.marketing-hero li {
    color: #fff;
}

.marketing-hero .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.marketing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.92fr);
    gap: 26px;
    align-items: stretch;
}

.marketing-copy {
    display: grid;
    gap: 20px;
    align-content: start;
}

.trust-inline-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.trust-inline-item,
.pricing-summary-item,
.checkout-trust-item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
        rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.trust-inline-kicker,
.pricing-summary-kicker,
.checkout-trust-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    opacity: 0.78;
}

.trust-inline-item strong,
.pricing-summary-item strong,
.checkout-trust-item strong {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.marketing-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.marketing-proof {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.marketing-proof span {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.marketing-panel {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.marketing-price-card {
    display: grid;
    gap: 14px;
    width: min(360px, 100%);
    padding: 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 36px rgba(15, 23, 42, 0.12);
}

.marketing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.marketing-card-note,
.pricing-plan-note {
    color: rgba(71, 85, 105, 0.96);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

.marketing-hero .marketing-price-card,
.marketing-hero .marketing-price-card strong,
.marketing-hero .marketing-price-card .marketing-price-label {
    color: #172033;
}

.marketing-hero .marketing-price-card .marketing-price-meta {
    color: #475569;
}

.marketing-hero .marketing-price-card .marketing-list li {
    color: #172033;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(23, 32, 51, 0.1);
}

.marketing-price-label,
.pricing-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    opacity: 0.82;
}

.marketing-price-card strong {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 58px);
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.marketing-price-meta,
.pricing-caption {
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.6;
}

.marketing-list,
.feature-stack,
.faq-stack {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.marketing-list li,
.feature-item,
.faq-item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.feature-item strong,
.faq-item strong,
.marketing-list li strong {
    font-family: var(--font-sans);
    font-size: 15px;
    letter-spacing: -0.02em;
}

.pricing-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.44)),
        var(--surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-summary-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.pricing-summary-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34)),
        var(--glass-surface-strong);
}

.pricing-main {
    display: grid;
    gap: 12px;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(23, 78, 166, 0.08), rgba(23, 78, 166, 0.025));
    border: 1px solid rgba(23, 78, 166, 0.1);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.pricing-plan-footer {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.pricing-value {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 60px);
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.pricing-details {
    display: grid;
    gap: 10px;
}

.pricing-detail {
    padding: 15px 16px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    font-weight: 700;
}

.checkout-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.checkout-trust-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
        rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.cta-card {
    display: grid;
    align-content: start;
}

.marketing-stat-card {
    min-height: 0;
}

.legal-card {
    max-width: 920px;
}

.legal-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.legal-item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.footer small + small {
    opacity: 0.85;
}

.footer {
    padding: 0 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 4px;
    color: var(--muted);
}

.footer-brand {
    display: grid;
    gap: 8px;
}

.footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 14px;
    padding: 6px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(233, 241, 251, 0.86));
    border: 1px solid rgba(23, 78, 166, 0.12);
    box-shadow: 0 10px 20px rgba(19, 32, 51, 0.06);
}

.footer-brand-copy {
    display: grid;
    gap: 2px;
}

.footer-brand-copy strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.1;
}

.footer-brand-copy small {
    font-size: 12px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--primary);
}

.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 12px;
    width: min(420px, calc(100vw - 24px));
    z-index: 40;
    pointer-events: none;
}

.toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    color: var(--text);
    pointer-events: auto;
    animation: toastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.is-hiding {
    animation: toastOut 0.22s ease forwards;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    background: rgba(19, 32, 51, 0.08);
}

.toast-copy {
    display: grid;
    gap: 2px;
}

.toast-copy strong {
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.toast-copy span {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.toast-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.toast-success {
    border-color: rgba(22, 101, 52, 0.16);
}

.toast-success .toast-icon {
    background: rgba(22, 101, 52, 0.12);
    color: var(--success);
}

.toast-info {
    border-color: rgba(21, 94, 239, 0.16);
}

.toast-info .toast-icon {
    background: rgba(21, 94, 239, 0.12);
    color: #155eef;
}

.toast-warning {
    border-color: rgba(194, 65, 12, 0.16);
}

.toast-warning .toast-icon {
    background: rgba(194, 65, 12, 0.12);
    color: #c2410c;
}

.toast-error {
    border-color: rgba(154, 52, 18, 0.16);
    background: rgba(255, 247, 245, 0.98);
}

.toast-error .toast-icon {
    background: rgba(154, 52, 18, 0.12);
    color: #9a3412;
}

.toast-level-up {
    border-color: rgba(16, 185, 129, 0.22);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.08)), rgba(255, 255, 255, 0.96);
}

.toast-level-up .toast-icon {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.toast-streak {
    border-color: rgba(249, 115, 22, 0.2);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(234, 88, 12, 0.08)), rgba(255, 255, 255, 0.96);
}

.toast-streak .toast-icon {
    background: rgba(249, 115, 22, 0.16);
    color: #c2410c;
}

.ajax-indicator {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    background: rgba(19, 32, 51, 0.9);
    color: #fff;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 35;
}

.ajax-indicator.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ajax-indicator-spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    animation: btnSpin 0.7s linear infinite;
    flex: 0 0 auto;
}

.footer-support {
    text-align: right;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.filter-summary {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
        var(--surface-soft);
    box-shadow: var(--glass-inner-shadow);
}

.filter-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-summary-head strong {
    font-size: 13px;
    letter-spacing: 0.02em;
}

.dashboard-filters-card {
    margin-bottom: 18px;
}

.report-hero-card {
    margin-bottom: 18px;
}

.report-filter-card {
    margin-bottom: 18px;
}

.report-filter-head {
    margin-bottom: 18px;
}

.report-panel-grid {
    align-items: start;
}

.report-chart {
    background:
        linear-gradient(180deg, rgba(240, 246, 255, 0.86), rgba(255, 255, 255, 0.72)),
        var(--glass-surface-strong);
}

.report-month-card {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(23, 78, 166, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 246, 255, 0.78)),
        var(--surface-strong);
    box-shadow: var(--glass-inner-shadow);
}

.report-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-month-metrics {
    display: grid;
    gap: 12px;
}

.report-month-metric {
    display: grid;
    gap: 8px;
}

.report-month-metric-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.report-month-metric-top span {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.report-month-metric-top strong {
    font-size: 15px;
    color: var(--primary-dark);
}

.report-month-track {
    position: relative;
    overflow: hidden;
    min-height: 12px;
    border-radius: 999px;
    background: rgba(23, 78, 166, 0.08);
}

.report-month-fill {
    min-height: 12px;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    animation: chartGrowX 0.55s ease-out both;
}

.report-month-fill-receita {
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.report-month-fill-despesa {
    background: linear-gradient(90deg, #123d82, #174ea6);
}

.report-month-fill-saldo-positive {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.report-month-fill-saldo-negative {
    background: linear-gradient(90deg, #c2410c, #fb923c);
}

.report-rank-card {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(23, 78, 166, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(240, 246, 255, 0.74)),
        var(--surface-strong);
}

.report-rank-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.report-rank-header strong {
    font-size: 15px;
    color: var(--primary-dark);
}

.report-rank-track {
    position: relative;
    overflow: hidden;
    min-height: 12px;
    border-radius: 999px;
    background: rgba(23, 78, 166, 0.08);
}

.report-rank-fill {
    min-height: 12px;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    animation: chartGrowX 0.55s ease-out both;
}

.report-rank-fill-receita {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.report-rank-fill-despesa {
    background: linear-gradient(90deg, #c2410c, #fb923c);
}

.report-rank-fill-neutral {
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.report-rank-meta {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.report-projection-grid {
    margin-bottom: 18px;
}

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

.report-status-card {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(23, 78, 166, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(240, 246, 255, 0.78)),
        var(--surface-strong);
    box-shadow: var(--glass-inner-shadow);
}

.report-status-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.report-status-card strong {
    font-size: 26px;
    line-height: 1;
    color: var(--primary-dark);
}

.report-status-card span {
    font-size: 14px;
    color: var(--text);
}

.report-status-card small {
    color: var(--muted);
    line-height: 1.5;
}

.dashboard-filters-head {
    margin-bottom: 0;
}

.dashboard-filter-groups {
    display: grid;
    gap: 12px;
    justify-items: end;
}

.dashboard-filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--glass-inner-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(23, 78, 166, 0.18);
    color: var(--text);
}

.filter-chip.is-active {
    border-color: rgba(23, 78, 166, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.dashboard-executive-grid,
#dashboard-executive-grid {
    transition: opacity 0.2s ease;
}

.dashboard-filters-card.is-loading,
#dashboard-executive-grid.is-loading {
    opacity: 0.76;
}

.charts-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.charts-skeleton-card {
    min-width: 0;
    display: grid;
    gap: 12px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
        var(--glass-surface-strong);
    box-shadow: var(--shadow-soft), var(--glass-inner-shadow);
    overflow: hidden;
}

.charts-skeleton-card-wide {
    grid-column: 1 / -1;
}

.charts-skeleton-line,
.charts-skeleton-graphic {
    position: relative;
    overflow: hidden;
    background: rgba(19, 32, 51, 0.08);
}

.charts-skeleton-line::after,
.charts-skeleton-graphic::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
    animation: skeletonShimmer 1.2s ease-in-out infinite;
}

.charts-skeleton-line {
    display: block;
    border-radius: 999px;
}

.charts-skeleton-line-pill {
    width: 110px;
    height: 28px;
}

.charts-skeleton-line-title {
    width: min(260px, 72%);
    height: 20px;
}

.charts-skeleton-line-copy {
    width: min(360px, 88%);
    height: 14px;
}

.charts-skeleton-graphic {
    border-radius: 18px;
}

.charts-skeleton-graphic-line,
.charts-skeleton-graphic-bars {
    min-height: 220px;
}

.charts-skeleton-graphic-pie {
    min-height: 260px;
}

.charts-skeleton-graphic-rows {
    min-height: 180px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.chip-clear {
    color: var(--primary);
    border-color: rgba(15, 118, 110, 0.18);
    background: rgba(15, 118, 110, 0.08);
}

@media (max-width: 920px) {
    .topbar-inner,
    .panel-grid,
    .auth-stage {
        grid-template-columns: 1fr;
        display: grid;
    }

    .trust-inline-band,
    .pricing-summary-band,
    .checkout-trust-grid {
        grid-template-columns: 1fr;
    }

    .topbar-hero {
        flex-direction: column;
    }

    .topbar-actions {
        justify-items: start;
        min-width: 0;
    }

    .section-head,
    .page-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .page-toolbar > *,
    .section-head > * {
        width: 100%;
    }

    .nav-caption {
        display: none;
    }

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

    .page-toolbar {
        align-items: stretch;
    }

    .actions {
        width: 100%;
    }

    .actions > .btn,
    .actions > .btn-light,
    .actions > a,
    .actions > form {
        width: 100%;
    }

    .actions > form .btn {
        width: 100%;
    }

    .marketing-actions,
    .row-links,
    .pagination {
        width: 100%;
    }

    .filters-compact {
        align-items: stretch;
    }

    .filters-compact > * {
        width: 100%;
    }

    .mini-stats {
        width: 100%;
    }

    .mini-stat,
    .insight-score,
    .admin-dashboard .card {
        min-width: 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .offer-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-support {
        text-align: left;
    }

    .marketing-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid-plans,
    .admin-dashboard {
        grid-template-columns: 1fr;
    }

    .executive-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charts-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .marketing-panel {
        justify-content: stretch;
    }

    .marketing-price-card,
    .pricing-main {
        width: 100%;
    }

    .executive-grid,
    .executive-pie-layout {
        grid-template-columns: 1fr;
    }

    .executive-bars {
        grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    }

    .executive-simple-bars {
        grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    }

    .executive-legend {
        justify-content: flex-start;
    }

    .executive-compare-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .executive-compare-value {
        justify-self: start;
    }

    .executive-forecast-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-groups,
    .dashboard-filter-group {
        justify-items: stretch;
        justify-content: flex-start;
    }

    .insight-list {
        grid-template-columns: 1fr;
    }

    .table-section-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .table-section-meta {
        justify-content: flex-start;
    }

    .detail-list,
    .status-summary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 34%),
            linear-gradient(180deg, #f4ede4 0%, #fbf8f3 42%, #fffdfa 100%);
    }

    .container {
        width: min(100% - 20px, 1180px);
    }

    .app-layout {
        width: min(100% - 20px, 1380px);
    }

    .content-shell {
        padding-top: 14px;
        padding-bottom: 32px;
    }

    .section-head,
    .page-toolbar {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
    }

    .section-head > *,
    .page-toolbar > * {
        width: 100%;
    }

    .topbar {
        padding-top: 10px;
    }

    .topbar {
        z-index: 20;
    }

    .topbar-inner {
        padding: 14px;
        border-radius: 24px;
        gap: 14px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8)),
            var(--topbar);
        box-shadow: 0 18px 40px rgba(19, 32, 51, 0.12);
    }

    .card {
        padding: 18px;
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72)),
            var(--surface);
        box-shadow: 0 16px 36px rgba(19, 32, 51, 0.08);
    }

    .executive-card {
        gap: 14px;
    }

    .quick-actions-grid,
    .detail-list,
    .status-summary {
        grid-template-columns: 1fr;
    }

    .quick-action-tile {
        padding: 16px;
    }

    .table-wrap {
        border-radius: 20px;
    }

    .row-actions,
    .row-links {
        width: 100%;
    }

    .row-actions > form,
    .row-actions > form .btn,
    .row-actions > a,
    .row-links > a {
        width: 100%;
    }

    .executive-head {
        gap: 10px;
    }

    .executive-kpi-strip {
        grid-template-columns: 1fr;
    }

    .executive-kpi-card {
        min-height: 0;
        padding: 18px;
        border-radius: 22px;
    }

    .executive-kpi,
    .executive-legend-list span,
    .executive-bar-stack {
        border-radius: 16px;
    }

    .executive-kpi {
        min-width: 0;
        padding: 12px 14px;
    }

    .executive-kpi strong {
        font-size: 22px;
    }

    .chart,
    .executive-chart-shell,
    .executive-bars,
    .executive-simple-bars,
    .executive-pie-layout,
    .executive-compare-bars,
    .executive-forecast-grid,
    .charts-skeleton-card {
        padding: 14px;
        border-radius: 18px;
    }

    .executive-chart-svg {
        min-height: 120px;
    }

    .executive-axis-labels {
        gap: 6px;
        font-size: 10px;
        letter-spacing: 0.05em;
    }

    .executive-axis-labels span:nth-child(odd) {
        opacity: 0.72;
    }

    .executive-bars {
        gap: 10px;
        min-height: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .executive-simple-bars {
        gap: 10px;
        min-height: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .executive-bar-stack {
        min-height: 148px;
        padding: 12px 8px 8px;
        gap: 6px;
    }

    .executive-simple-bar-shell {
        min-height: 148px;
        padding: 12px 8px 8px;
    }

    .executive-bar-label {
        font-size: 10px;
        letter-spacing: 0.05em;
    }

    .executive-pie-layout {
        gap: 14px;
        justify-items: center;
    }

    .executive-pie-svg {
        max-width: 200px;
    }

    .executive-legend-list {
        width: 100%;
    }

    .executive-legend-list span {
        gap: 10px;
        font-size: 12px;
    }

    .executive-compare-bars {
        gap: 12px;
        padding: 14px;
    }

    .executive-compare-row {
        gap: 10px;
    }

    .executive-compare-copy strong {
        font-size: 13px;
    }

    .executive-compare-track {
        height: 14px;
    }

    .executive-forecast-item {
        gap: 8px;
        padding: 14px;
        border-radius: 16px;
    }

    .executive-forecast-value {
        font-size: 24px;
    }

    .dashboard-filter-group {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-chip {
        width: 100%;
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }

    .filters,
    .pricing-main,
    .marketing-price-card,
    .auth-promo,
    .auth-form-card {
        padding: 18px;
        border-radius: 24px;
    }

    body.menu-open {
        overflow: hidden;
    }

    .brand-title {
        font-size: 24px;
    }

    .brand-subtitle {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .topbar-utility {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .topbar-context {
        display: none;
    }

    .topbar-brand {
        gap: 8px;
    }

    .theme-picker {
        min-width: 0;
        width: 100%;
        padding: 0 12px;
        min-height: 46px;
        border-radius: 16px;
    }

    .theme-picker label {
        display: none;
    }

    .theme-picker select {
        min-width: 0;
        font-size: 14px;
        font-weight: 700;
    }

    .menu-toggle {
        min-height: 46px;
        min-width: 52px;
        padding: 10px 12px;
        border-radius: 16px;
        justify-content: center;
        box-shadow: none;
        position: relative;
        z-index: 40;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .topbar-actions {
        display: none;
        width: 100%;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 12px;
        position: fixed;
        inset: 0;
        height: 100dvh;
        padding: max(12px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 249, 244, 0.98)),
            var(--surface-strong);
        z-index: 30;
    }

    .topbar-actions.is-open {
        display: grid;
        animation: mobileMenuEnter 0.18s ease;
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 4px 12px;
        border-bottom: 1px solid var(--border);
    }

    .mobile-nav-head::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 50%;
        width: 46px;
        height: 5px;
        border-radius: 999px;
        background: rgba(100, 116, 139, 0.26);
        transform: translateX(-50%);
    }

    .mobile-nav-head strong {
        display: block;
        font-size: 16px;
        line-height: 1.1;
    }

    .mobile-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--surface-strong);
        color: var(--text);
        font-weight: 700;
    }

    .mobile-nav-scroll {
        display: grid;
        align-content: start;
        gap: 12px;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding: 4px 2px 12px;
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        padding: 0;
        background: rgba(19, 32, 51, 0.44);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 29;
    }

    .mobile-nav-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .menu {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .grid,
    .compact-grid,
    .filter-grid,
    .insight-list {
        grid-template-columns: 1fr;
    }

    .btn,
    .menu a {
        width: 100%;
    }

    .btn {
        justify-content: center;
        text-align: center;
    }

    .menu a {
        text-align: left;
    }

    .menu a {
        min-height: 74px;
        padding: 14px 15px;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 237, 0.9));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .menu-link-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.95));
    }

    .menu-link-title {
        font-size: 16px;
    }

    .menu-link-subtitle {
        font-size: 11px;
        letter-spacing: 0.05em;
    }

    .btn,
    input,
    select,
    textarea {
        min-height: 48px;
    }

    .auth-block,
    .actions {
        width: 100%;
    }

    .auth-block {
        gap: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
        justify-items: stretch;
    }

    .user-chip {
        width: 100%;
        min-width: 0;
        padding: 12px;
        border-radius: 18px;
        box-shadow: none;
    }

    .user-chip-level {
        display: none;
    }

    .user-chip-workspace {
        display: none;
    }

    .user-chip-streak {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .user-chip-streak .user-chip-meta {
        display: none;
    }

    .user-shortcuts {
        display: grid;
        gap: 8px;
    }

    .user-shortcuts .link-action {
        min-height: 46px;
        border-radius: 16px;
        background: rgba(15, 118, 110, 0.06);
    }

    .alert-renewal {
        align-items: stretch;
    }

    .alert-renewal-copy {
        width: 100%;
    }

    .mini-stats,
    .pagination,
    .row-links,
    .user-shortcuts,
    .marketing-actions,
    .marketing-proof,
    .auth-inline-proof,
    .footer-links,
    .filter-chips {
        width: 100%;
    }

    .actions,
    .row-links,
    .footer-inner {
        justify-content: flex-start;
        align-items: stretch;
    }

    .mini-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .mini-stat,
    .link-action,
    .page-link,
    .page-current,
    .footer-links a,
    .chip {
        width: 100%;
        justify-content: center;
    }

    .section-copy,
    .muted {
        max-width: none;
        font-size: 14px;
        line-height: 1.55;
    }

    .metric-card {
        min-height: 0;
        gap: 8px;
    }

    .metric-value,
    .pricing-value,
    .marketing-price-card strong,
    .insight-score strong {
        font-size: clamp(28px, 9vw, 40px);
    }

    .section-head {
        margin-bottom: 16px;
    }

    .eyebrow {
        padding: 7px 10px;
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    h1 {
        line-height: 1;
        margin-bottom: 10px;
    }

    h2 {
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .insight-item,
    .offer-band {
        flex-direction: column;
    }

    .insight-item,
    .onboarding-item,
    .offer-band,
    .footer-inner {
        gap: 10px;
    }

    .pricing-grid-plans {
        gap: 16px;
    }

    .auth-stage,
    .marketing-shell {
        gap: 14px;
    }

    .hero-card::after,
    .hero-card::before {
        opacity: 0.7;
    }

    .auth-promo,
    .marketing-hero {
        padding: 20px 18px;
        background:
            radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 28%),
            linear-gradient(145deg, rgba(20, 33, 61, 0.96), rgba(15, 118, 110, 0.9));
    }

    .auth-points li,
    .trust-item,
    .feature-item,
    .faq-item,
    .pricing-detail {
        border-radius: 16px;
        padding: 14px;
    }

    .offer-band {
        padding: 14px;
        border-radius: 18px;
    }

    .marketing-price-card,
    .pricing-main {
        border-radius: 22px;
    }

    .marketing-price-card {
        background: rgba(255, 255, 255, 0.16);
    }

    .pricing-main {
        background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.96));
    }

    .marketing-proof span,
    .auth-inline-proof span {
        min-height: 40px;
        border-radius: 14px;
    }

    .mini-stat {
        padding: 12px 13px;
        border-radius: 18px;
    }

    .mini-stat-value {
        font-size: 20px;
    }

    .insight-score {
        padding: 12px 14px;
        border-radius: 18px;
    }

    .insight-item {
        padding: 14px;
        border-radius: 18px;
    }

    .insight-item h3 {
        font-size: 17px;
        line-height: 1.2;
    }

    .onboarding-item {
        align-items: flex-start;
        padding: 14px;
        border-radius: 18px;
    }

    .onboarding-check {
        min-width: 34px;
        height: 34px;
    }

    .report-status-grid {
        grid-template-columns: 1fr;
    }

    .chart {
        gap: 12px;
    }

    .chart-row {
        gap: 6px;
    }

    .chart-label {
        font-size: 11px;
    }

    .chart-bar {
        min-height: 36px;
        border-radius: 12px;
        padding: 9px 10px;
        font-size: 12px;
    }

    .filters {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 239, 0.88)),
            rgba(255, 255, 255, 0.92);
        padding: 16px;
    }

    .filters-compact {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-grid {
        gap: 10px;
    }

    .filter-chips {
        gap: 6px;
    }

    .filter-summary {
        padding: 14px;
        border-radius: 18px;
    }

    .filter-summary-head {
        align-items: stretch;
    }

    .filter-summary-head .link-action {
        width: 100%;
        justify-content: center;
    }

    .chip {
        min-height: 34px;
        padding: 7px 10px;
        border-radius: 14px;
        font-size: 11px;
    }

    .table-wrap {
        background: rgba(255, 255, 255, 0.82);
        box-shadow: none;
    }

    .insight-item .link-action,
    .marketing-actions .btn,
    .auth-inline-proof span,
    .marketing-proof span,
    .billing-option-stack .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .row-actions {
        align-items: stretch;
    }

    .row-actions form,
    .row-actions .btn {
        width: 100%;
    }

    .table-wrap {
        margin: 0 -4px;
        border-radius: 18px;
    }

    .table th,
    .table td {
        padding: 12px;
    }

    .table-meta {
        font-size: 11px;
    }

    .table-responsive {
        min-width: 0;
    }

    .table-responsive thead {
        display: none;
    }

    .table-responsive,
    .table-responsive tbody,
    .table-responsive tr,
    .table-responsive td {
        display: block;
        width: 100%;
    }

    .table-responsive tbody {
        padding: 10px;
    }

    .table-responsive tr {
        margin-bottom: 12px;
        border-radius: 18px;
        border: 1px solid var(--border);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 237, 0.9)),
            var(--surface-strong);
        box-shadow: var(--glass-inner-shadow);
        overflow: hidden;
    }

    .table-responsive tbody tr:last-child {
        margin-bottom: 0;
    }

    .table-responsive td {
        border-bottom: 1px solid rgba(19, 32, 51, 0.08);
        padding: 11px 12px;
    }

    .table-responsive td:last-child {
        border-bottom: 0;
    }

    .table-responsive td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        font-weight: 800;
    }

    .inline-pill,
    .status-badge,
    .type-pill {
        font-size: 11px;
    }

    .auth-callout,
    .empty-state,
    .legal-item {
        padding: 14px;
        border-radius: 18px;
    }

    .footer {
        padding-bottom: 18px;
    }

    .footer-inner {
        gap: 10px;
    }

    .admin-dashboard {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-dashboard .card {
        width: 100%;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .shell-header-inner {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .shell-header-actions {
        width: 100%;
    }

    .theme-picker {
        width: 100%;
        justify-content: stretch;
        border-radius: 16px;
    }

    .theme-picker select {
        min-width: 0;
        width: 100%;
    }

    .topbar-inner {
        padding: 12px;
        border-radius: 22px;
    }

    .card,
    .filters,
    .pricing-main,
    .marketing-price-card,
    .auth-promo,
    .auth-form-card {
        padding: 16px;
        border-radius: 20px;
    }

    .brand-title {
        font-size: 22px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 18px;
    }

    .mini-stats {
        grid-template-columns: 1fr;
    }

    .topbar-utility {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
    }

    .pricing-main {
        padding-top: 22px;
    }

    .badge-recommended,
    .badge-current-plan {
        position: static;
        width: fit-content;
    }

    .topbar-utility {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-toggle {
        justify-content: center;
    }

    .pagination {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-link,
    .page-current {
        min-width: 0;
    }

    .table {
        min-width: 760px;
    }

    .marketing-proof span,
    .auth-inline-proof span,
    .offer-meta {
        font-size: 11px;
    }

    .section-copy,
    .muted {
        font-size: 13px;
    }

    .streak-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        padding: 14px 16px;
    }

    .topbar-actions {
        padding: max(10px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom));
    }

    .topbar-context .context-pill:not(.context-pill-strong) {
        display: none;
    }

    .menu-link-arrow {
        display: none;
    }

    .mini-stats,
    .actions,
    .row-links {
        grid-template-columns: 1fr;
    }

    .auth-promo,
    .marketing-hero,
    .marketing-price-card,
    .pricing-main,
    .filters {
        padding: 16px;
    }

    .menu a {
        min-height: 70px;
        padding: 13px 14px;
    }

    .menu-link-title {
        font-size: 15px;
    }

    .menu-link-subtitle {
        font-size: 10px;
    }

    .auth-points li,
    .trust-item,
    .feature-item,
    .faq-item,
    .pricing-detail,
    .insight-item,
    .onboarding-item,
    .empty-state,
    .auth-callout {
        padding: 13px;
    }

    .mini-stat {
        padding: 11px 12px;
    }

    .metric-value,
    .pricing-value,
    .marketing-price-card strong,
    .insight-score strong {
        font-size: clamp(26px, 10vw, 34px);
    }
}

@keyframes mobileMenuEnter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes btnSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}

/* Admin Area Styles */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.admin-dashboard .card {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 239, 229, 0.9));
    border-radius: var(--radius-md);
    box-shadow: var(--shell-card-shadow);
    padding: 24px;
    min-width: 0;
    font-size: 1.2rem;
    border: 1px solid rgba(194, 65, 12, 0.08);
}

.admin-dashboard-spaced {
    gap: 24px;
    margin-top: 24px;
}

.admin-kpi-card {
    min-width: 0;
    display: grid;
    gap: 8px;
    align-content: start;
}

.admin-kpi-card strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #8c3712;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-ativa { background: #16a34a; }
.badge-teste { background: #0ea5e9; }
.badge-vencida { background: #f59e42; }
.badge-cancelada { background: #dc2626; }

.admin-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--surface-soft);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--muted);
}

.admin-table tr:hover td {
    background: var(--surface-soft);
}

.btn-inline {
    width: auto !important;
    vertical-align: middle;
}
.btn-danger-inline {
    color: var(--danger) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
}

/* Pricing Page Styles */
.pricing-main {
    padding: 28px 24px;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--border);
}

.pricing-main.is-recommended {
    border: 2px solid var(--primary);
}

.badge-recommended {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-current-plan {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-main h2 {
    margin: 8px 0 6px;
}

.pricing-main .section-copy {
    margin: 0;
}

.pricing-main .marketing-list {
    text-align: left;
    margin: 0;
    flex-grow: 1;
}

/* Checkout Page Styles */
.my-20 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mt-12 {
    margin-top: 12px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

@media (min-width: 961px) {
    .app-shell-auth .app-layout {
        display: block;
        width: 100%;
        margin: 0;
        min-width: 0;
    }

    .app-shell-auth .app-main,
    .app-shell-auth .shell-header {
        width: auto;
        margin-right: var(--shell-gutter);
        min-width: 0;
    }

    .app-shell-auth .shell-header-inner,
    .app-shell-auth .content-shell,
    .app-shell-auth .footer .container {
        width: auto;
        max-width: none;
        margin-left: 0;
        margin-right: auto;
        min-width: 0;
    }

    .app-shell-auth .content-shell,
    .app-shell-guest .content-shell,
    .app-shell-auth .footer,
    .app-shell-guest .footer {
        padding-left: 0;
    }

    .shell-header {
        display: none;
    }

    .app-shell-auth .hero-card,
    .app-shell-auth .table-wrap {
        min-width: 0;
    }

    .app-shell-auth .page-toolbar {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        align-items: start;
    }

    .app-shell-auth .page-toolbar > div {
        min-width: 0;
    }

    .app-shell-auth .page-toolbar > .actions {
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        align-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }

    .app-shell-auth .actions > .mini-stats {
        flex: 1 1 420px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-shell-auth .actions > .btn,
    .app-shell-auth .actions > .btn-light,
    .app-shell-auth .actions > a,
    .app-shell-auth .actions > form {
        flex: 0 0 auto;
    }
}

@media (max-width: 960px) {
    .app-shell-auth .app-layout {
        width: min(100% - 20px, 1380px);
        margin: 0 auto;
    }

    .app-shell-auth .container,
    .app-shell-auth .shell-header-inner,
    .app-shell-auth .content-shell,
    .app-shell-auth .footer .container {
        margin-left: auto;
        margin-right: auto;
    }

    .app-sidebar {
        top: 10px;
        left: 10px;
        bottom: 10px;
        width: min(360px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        transform: translateX(calc(-100% - 24px));
        opacity: 0;
        pointer-events: none;
        will-change: transform, opacity;
    }

    .sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-mobile-open .shell-backdrop {
        display: block;
        z-index: 5;
    }

    .app-main,
    .shell-header {
        margin-left: 0;
    }

    .shell-toggle {
        display: inline-flex;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 8;
    }

    .sidebar-collapse {
        display: none;
    }

    .app-sidebar-inner {
        padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    }

    .sidebar-menu a,
    .sidebar-quick-link,
    .sidebar-logout .btn {
        min-height: 48px;
    }

    .theme-picker {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .toast-stack {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }

    .toast {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 13px 14px;
        border-radius: 16px;
    }

    .ajax-indicator {
        left: 10px;
        right: 10px;
        bottom: 96px;
        width: auto;
        justify-content: center;
    }

    .app-layout,
    .container {
        width: min(100% - 20px, 1180px);
    }

    .shell-toggle {
        top: 10px;
        left: 10px;
    }

    .theme-picker {
        min-height: 40px;
        padding: 0 10px;
        border-radius: 12px;
    }

    .theme-picker select {
        min-width: 82px;
        font-size: 12px;
    }

    .panel-grid,
    .marketing-grid,
    .form-grid,
    .auth-stage,
    .pricing-grid,
    .pricing-grid-plans,
    .admin-dashboard,
    .trust-grid,
    .insight-list {
        grid-template-columns: 1fr;
    }

    .marketing-panel {
        justify-content: stretch;
    }

    .mini-stats {
        grid-template-columns: 1fr;
    }

    .table {
        min-width: 720px;
    }

    .sidebar-brand-title {
        font-size: 28px;
    }

    .sidebar-menu a {
        min-height: 62px;
    }

    .sidebar-menu-title {
        font-size: 14px;
    }

    .sidebar-panel,
    .sidebar-menu a {
        border-radius: 18px;
    }
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-12 {
    gap: 12px;
}

a.is-free-plan {
    opacity: 0.7;
}

.text-left {
    text-align: left;
}

/* Payment Pages Styles */
.payment-card {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
    padding: 32px 24px;
}

.payment-card h2 {
    margin-top: 0;
}

.payment-card .section-copy {
    margin-bottom: 24px;
}

.payment-card img {
    width: 250px;
    height: 250px;
    margin: 24px auto;
}

.payment-card-input-label {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 600;
    text-align: left;
    display: block;
    margin-bottom: 24px;
}

.payment-card-input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--surface-soft);
}

.payment-status-text {
    font-size: 0.875rem;
    color: var(--text);
}

.payment-status-text.is-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.payment-status-text.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(15, 118, 110, 0.18);
    border-top-color: var(--primary);
    animation: btnSpin 0.7s linear infinite;
    flex: 0 0 auto;
}

.payment-status-text .approved {
    color: var(--success);
    font-weight: bold;
    font-size: 1rem;
}
