:root {
    --bg-1: #071a13;
    --bg-2: #12382b;
    --bg-3: #e8f4ee;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.72);
    --line: rgba(17, 65, 49, 0.08);
    --text: #17332a;
    --text-soft: #567267;
    --green: #15825c;
    --green-dark: #0d5b41;
    --lime: #b5f17a;
    --danger: #d25454;
    --shadow: 0 18px 40px rgba(7, 26, 19, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(181, 241, 122, 0.22), transparent 26%),
        linear-gradient(160deg, #f2f8f4 0%, #edf4f0 45%, #dfeee5 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Fraunces', serif;
    margin: 0;
}

h1 {
    font-size: 1.1rem;
    font-weight: 700;
}

h2 {
    font-size: 1rem;
    font-weight: 700;
}

h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

h5 {
    font-size: 0.85rem;
    font-weight: 700;
}

.app-frame {
    display: grid;
    grid-template-columns: 306px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar-panel {
    color: #effff7;
    background:
        radial-gradient(circle at top left, rgba(181, 241, 122, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(77, 170, 138, 0.18), transparent 30%),
        linear-gradient(180deg, #0a241d 0%, #102e25 48%, #133a2d 100%);
    padding: 1.3rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.brand-block-enterprise {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.95rem;
    align-items: start;
    padding: 0.35rem 0.35rem 0.2rem;
}

.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, rgba(181, 241, 122, 0.22), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(181, 241, 122, 0.28);
    color: #f4fff9;
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
}

.sidebar-context-card {
    padding: 1rem 1rem 1.05rem;
    border-radius: 1.2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
    position: relative;
    overflow: hidden;
}

.sidebar-context-card::after {
    content: '';
    position: absolute;
    top: -28px;
    right: -18px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(181, 241, 122, 0.08);
}

.sidebar-context-label {
    display: block;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(181, 241, 122, 0.78);
}

.sidebar-context-card strong,
.sidebar-context-card small {
    display: block;
}

.sidebar-context-card strong {
    color: #f4fff9;
    font-size: 1rem;
    position: relative;
}

.sidebar-context-card small {
    margin-top: 0.45rem;
    line-height: 1.55;
    color: rgba(239, 255, 247, 0.68);
    position: relative;
}

.brand-block h1,
.auth-hero h1,
.topbar-panel h2,
.hero-banner h3 {
    margin: 0;
}

.brand-block p,
.auth-hero p,
.topbar-panel p,
.hero-banner p,
.auth-card p {
    color: rgba(239, 255, 247, 0.72);
}

.brand-kicker,
.page-kicker,
.nav-group-title,
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
}

.brand-kicker,
.hero-chip,
.page-kicker,
.nav-group-title {
    color: var(--green-dark);
}

.sidebar-panel .brand-kicker,
.sidebar-panel .nav-group-title {
    color: rgba(181, 241, 122, 0.88);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.2rem 0.15rem 0.2rem 0;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-group-collapsible {
    gap: 0;
}

.nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 0.35rem 0.55rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(181, 241, 122, 0.88);
    cursor: pointer;
    transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-group-toggle:hover {
    background: transparent;
    color: #f4fff9;
    transform: none;
}

.nav-group-toggle:active {
    transform: scale(0.99);
}

.nav-group-icon {
    margin-left: auto;
    font-size: 0.95rem;
    transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-group-collapsible.expanded .nav-group-icon {
    transform: rotate(-180deg);
}

.nav-group-menu {
    max-height: 0;
    overflow: visible;
    opacity: 0;
    transition: max-height 250ms ease-out, opacity 250ms ease-out;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.nav-group-collapsible.expanded .nav-group-menu {
    max-height: 1000px;
    opacity: 1;
    padding: 0.3rem 0 0.05rem 0;
}

.nav-group-menu .nav-link-item {
    padding-left: 0.3rem !important;
    font-size: 0.9rem;
    color: rgba(239, 255, 247, 0.8);
}

.nav-group-menu .nav-link-item:hover {
    color: #fff;
    padding-left: 0.3rem !important;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem 0.35rem;
    border-radius: 0.8rem;
    color: rgba(239, 255, 247, 0.86);
    text-decoration: none;
    transition: 180ms ease;
    border: 0;
    position: relative;
    overflow: hidden;
}

.nav-link-item > span:first-child {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.6rem;
    background: transparent;
    color: rgba(239, 255, 247, 0.9);
    flex: 0 0 auto;
}

.nav-link-item > span:last-child {
    min-width: 0;
    font-weight: 600;
}

.nav-link-item:hover,
.nav-link-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(2px);
}

.nav-link-item:hover > span:first-child,
.nav-link-item.active > span:first-child {
    background: rgba(181, 241, 122, 0.12);
    color: #eaffd6;
}

.nav-link-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 999px;
    background: #b5f17a;
}

.main-panel {
    padding: 1.5rem 1.75rem 1.35rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-panel-content {
    flex: 1 0 auto;
    position: relative;
    overflow: visible;
}

.app-footer {
    margin-top: auto;
    padding: 1.2rem 0.2rem 0.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(13, 91, 65, 0.08);
    color: var(--text-soft);
}

.app-footer-copy small {
    display: block;
}

.app-footer-copy small:first-child {
    font-weight: 700;
    color: var(--text);
}

.topbar-panel,
.hero-banner,
.glass-card,
.metric-card,
.auth-card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar-panel,
.hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.topbar-panel {
    padding: 1.35rem 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(23, 81, 58, 0.95), rgba(13, 49, 36, 0.95));
    color: #fff;
    margin-bottom: 1.4rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 20;
    overflow: visible;
}

.topbar-copy {
    min-width: 0;
}

.topbar-subtitle {
    margin: 0.45rem 0 0;
    max-width: 720px;
    color: rgba(239, 255, 247, 0.76);
    font-size: 0.94rem;
    line-height: 1.6;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
    z-index: 21;
}

.topbar-actions .dropdown-menu {
    z-index: 1080;
}

.topbar-identity {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(181, 241, 122, 0.12);
    color: #f4fff9;
    border: 1px solid rgba(181, 241, 122, 0.18);
    font-weight: 700;
}

.pill-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #effff7;
}

.hero-banner {
    padding: 1.5rem 1.6rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(233, 245, 238, 0.95));
    border: 1px solid var(--line);
    border-radius: 1.5rem;
}

.hero-balance {
    min-width: 240px;
    padding: 1rem 1.2rem;
    border-radius: 1.2rem;
    background: linear-gradient(160deg, #123c2d, #1a6b4e);
    color: #fff;
}

.hero-balance small,
.stack-item small,
.metric-card small,
.demo-credentials small {
    display: block;
    color: var(--text-soft);
}

.hero-balance small {
    color: rgba(255, 255, 255, 0.72);
}

.hero-balance strong,
.metric-card strong,
.auth-card h2,
.demo-credentials strong {
    display: block;
    font-size: 1.1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card,
.glass-card,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 1.35rem;
}

.metric-card.success { border-top: 4px solid #14a169; }
.metric-card.danger { border-top: 4px solid #d25454; }
.metric-card.neutral { border-top: 4px solid #5b7a6d; }
.metric-card.accent { border-top: 4px solid #9ccc53; }

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(15, 87, 58, 0.05);
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 1rem;
}

.dashboard-hero-copy,
.hero-balance-card,
.dashboard-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.dashboard-hero-copy {
    padding: 1.6rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.76), rgba(232,245,238,0.94));
}

.dashboard-hero-copy h3 {
    max-width: 780px;
    margin-top: 0.35rem;
    margin-bottom: 0.65rem;
}

.dashboard-hero-copy p {
    color: var(--text-soft);
}

.hero-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.hero-mini-stats div {
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(15, 87, 58, 0.05);
}

.hero-mini-stats small {
    display: block;
    color: var(--text-soft);
    margin-bottom: 0.3rem;
}

.hero-mini-stats strong {
    font-size: 1.05rem;
}

.hero-balance-card {
    padding: 1.6rem;
    background: linear-gradient(160deg, #123c2d, #1b6b4e);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
}

.hero-balance-card small {
    color: rgba(255, 255, 255, 0.72);
}

.hero-balance-card strong {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.status-chip.positive {
    background: rgba(181, 241, 122, 0.18);
    color: #effff7;
}

.status-chip.negative {
    background: rgba(210, 84, 84, 0.18);
    color: #fff3f3;
}

.dashboard-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.executive-card {
    padding-top: 1.45rem;
}

.dashboard-panel .card-body {
    padding: 1.45rem;
}

.dashboard-panel {
    overflow: hidden;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 87, 58, 0.08);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 0.85rem;
}

.cashflow-chart-card {
    padding: 1rem 1.05rem 0.8rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(15, 87, 58, 0.04), rgba(255, 255, 255, 0.55));
    border: 1px solid rgba(13, 91, 65, 0.08);
}

.chart-legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.9rem;
}

.chart-legend-item i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.chart-legend-item.income i {
    background: #1ca56e;
}

.chart-legend-item.expense i {
    background: #d66b52;
}

.cashflow-chart-shell {
    position: relative;
    min-height: 320px;
}


.insight-stack {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.insight-card {
    padding: 1rem;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, rgba(15, 87, 58, 0.05), rgba(15, 87, 58, 0.02));
    border: 1px solid rgba(13, 91, 65, 0.1);
}

.insight-card small {
    display: block;
    color: var(--text-soft);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.insight-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.insight-card p {
    margin: 0;
    color: var(--text-soft);
}

.activity-item {
    background: linear-gradient(145deg, rgba(15, 87, 58, 0.05), rgba(255,255,255,0.5));
}

.empty-panel-state {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(145deg, rgba(15, 87, 58, 0.05), rgba(255,255,255,0.66));
    border: 1px dashed rgba(13, 91, 65, 0.15);
}

.empty-state-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: rgba(19, 135, 95, 0.12);
    color: var(--green-dark);
    font-size: 1.25rem;
}

.empty-panel-state p {
    margin: 0;
    color: var(--text-soft);
    max-width: 420px;
}

.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.platform-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    gap: 1rem;
}

.admin-hero-panel,
.admin-side-panel,
.admin-stat-card,
.admin-action-tile,
.admin-application-card,
.admin-info-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    box-shadow: var(--shadow);
}

.admin-hero-panel {
    padding: 1.6rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(232,245,238,0.95));
}

.admin-hero-panel h3,
.admin-side-panel h4,
.admin-section-title,
.admin-action-tile strong,
.admin-application-card strong,
.admin-info-panel h4 {
    margin: 0;
}

.admin-hero-panel p,
.admin-side-panel p,
.admin-action-tile p,
.admin-application-card p,
.admin-info-panel p {
    margin: 0;
    color: var(--text-soft);
}

.admin-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 87, 58, 0.07);
    color: var(--green-dark);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.admin-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.35rem;
}

.admin-hero-meta article {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(15, 87, 58, 0.05);
}

.admin-hero-meta small,
.admin-stat-card small,
.admin-side-panel small,
.admin-info-panel small {
    display: block;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 700;
}

.admin-hero-meta strong,
.admin-stat-card strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.35rem;
}

.admin-side-panel {
    padding: 1.5rem;
    background: linear-gradient(160deg, #123c2d, #1b6b4e);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-side-panel small,
.admin-side-panel p {
    color: rgba(255, 255, 255, 0.74);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-stat-card {
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--green);
}

.admin-stat-card.success::before { background: #17a36b; }
.admin-stat-card.info::before { background: #25a7c8; }
.admin-stat-card.warning::before { background: #e3aa24; }
.admin-stat-card.primary::before { background: #356ef5; }

.admin-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 1rem;
    margin-top: 1rem;
}

.admin-panel-body {
    padding: 1.35rem;
}

.admin-section-title {
    font-family: 'Fraunces', serif;
    font-size: 1.28rem;
}

.admin-applications-list,
.admin-action-grid,
.admin-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-application-card {
    padding: 1rem 1.05rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(145deg, rgba(15, 87, 58, 0.04), rgba(255, 255, 255, 0.72));
}

.admin-application-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.55rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

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

.admin-action-tile {
    padding: 1.15rem;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(145deg, rgba(255,255,255,0.84), rgba(232,245,238,0.94));
    transition: transform 180ms ease, border-color 180ms ease;
}

.admin-action-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 91, 65, 0.18);
}

.admin-action-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 0.9rem;
    background: rgba(15, 87, 58, 0.08);
    color: var(--green-dark);
    margin-bottom: 0.9rem;
}

.admin-info-panel {
    padding: 1.35rem;
}

.admin-info-grid article {
    padding: 0.95rem 0;
    border-top: 1px solid rgba(13, 91, 65, 0.08);
}

.admin-info-grid article:first-child {
    border-top: 0;
    padding-top: 0;
}

.admin-info-grid strong {
    display: block;
    margin-top: 0.28rem;
}

.auth-shell {
    background:
        radial-gradient(circle at left top, rgba(181, 241, 122, 0.22), transparent 18%),
        linear-gradient(135deg, #081c15 0%, #0f2f24 44%, #123e2f 100%);
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.45fr 1.55fr;
    position: relative;
    align-items: stretch;
}

.auth-wrapper-register {
    grid-template-columns: 0.4fr 1.6fr;
}

.auth-hero,
.auth-card-panel {
    padding: 3rem;
}

.auth-hero {
    color: #effff7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.85rem;
    position: relative;
}

.auth-hero-minimal {
    padding: 2.5rem 2rem;
    justify-content: flex-start;
    gap: 2.5rem;
}

.auth-hero-minimal-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.auth-hero-showcase {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: start;
}

.auth-hero h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    line-height: 1.04;
    max-width: 720px;
}

.auth-hero p {
    max-width: 640px;
    font-size: 1rem;
    line-height: 1.7;
}

.auth-brand-minimal {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.auth-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    background: rgba(181, 241, 122, 0.12);
    color: #b5f17a;
    font-size: 1.1rem;
    border: 1.5px solid rgba(181, 241, 122, 0.22);
}

.auth-brand-minimal h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #effff7;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.auth-hero-tagline {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(239, 255, 247, 0.75);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.auth-hero-process {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.process-step {
    font-size: 0.8rem;
    color: rgba(181, 241, 122, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.process-step::before {
    content: '';
    width: 4px;
    height: 4px;
    background: rgba(181, 241, 122, 0.6);
    border-radius: 50%;
}

.hero-mark {
    width: 92px;
    height: 92px;
    border-radius: 1.6rem;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(231, 244, 237, 0.1), rgba(181, 241, 122, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.hero-mark span {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    color: #f5fff9;
}

.enterprise-rail {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compact-rail {
    max-width: 760px;
}

.hero-scorecard {
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.hero-scorecard small,
.auth-context-strip small {
    display: block;
    margin-bottom: 0.32rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(181, 241, 122, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
}

.hero-scorecard strong,
.auth-context-strip strong {
    color: #fff;
    font-size: 0.98rem;
}

.compact-scorecard {
    max-width: 860px;
}

.enterprise-panel {
    padding: 1.25rem 1.35rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.enterprise-panel-primary {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

.enterprise-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.section-label {
    display: block;
    color: rgba(181, 241, 122, 0.88);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.76rem;
    font-weight: 700;
}

.enterprise-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(181, 241, 122, 0.12);
    color: #effff7;
    font-size: 0.8rem;
    font-weight: 600;
}

.enterprise-metrics,
.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.enterprise-metrics article,
.enterprise-grid article {
    min-height: 100%;
}

.enterprise-metrics article {
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.enterprise-panel strong,
.enterprise-metrics article strong {
    display: block;
    color: #fff;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.enterprise-panel p,
.enterprise-metrics article p {
    margin: 0;
    color: rgba(239, 255, 247, 0.72);
}

.enterprise-footnote {
    max-width: 860px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-footnote-single {
    grid-template-columns: 1fr;
    max-width: 760px;
}

.enterprise-footnote > div {
    padding: 1rem 1.15rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.enterprise-footnote small {
    display: block;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(181, 241, 122, 0.82);
}

.enterprise-footnote strong,
.demo-credentials strong {
    color: #fff;
}

.auth-card-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(480px, 100%);
    padding: 1.4rem;
    background: linear-gradient(180deg, rgba(250, 252, 251, 0.99), rgba(244, 248, 246, 0.97));
    border: 1px solid rgba(13, 91, 65, 0.06);
    border-radius: 1.3rem;
    box-shadow: 0 12px 32px rgba(8, 28, 21, 0.12), 0 2px 6px rgba(8, 28, 21, 0.06);
}

.auth-card-wide {
    width: min(580px, 100%);
}

.auth-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(13, 91, 65, 0.08);
    color: var(--text-soft);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-card-status span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.auth-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.auth-card-top > div:first-child {
    flex: 1;
}

.auth-card-top h2 {
    margin: 0.25rem 0 0.4rem 0;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.auth-card-top .page-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.auth-card-top p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-soft);
}

.auth-seal {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(19, 135, 95, 0.14), rgba(13, 91, 65, 0.22));
    color: var(--green-dark);
    font-size: 1.1rem;
    border: 1px solid rgba(13, 91, 65, 0.08);
}

.auth-alert {
    border-radius: 1rem;
    font-size: 0.93rem;
}

.auth-context-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem 0 0.85rem;
    border-top: 1px solid rgba(13, 91, 65, 0.05);
    border-bottom: 1px solid rgba(13, 91, 65, 0.05);
    margin-bottom: 0.9rem;
}

.auth-context-strip > div {
    padding: 0.75rem 0.85rem;
    border-radius: 0.8rem;
    background: rgba(21, 130, 92, 0.03);
    border: 1px solid rgba(13, 91, 65, 0.05);
}

.auth-context-strip strong {
    color: var(--green-dark);
}

.auth-form-grid .form-label {
    font-weight: 700;
    color: var(--green-dark);
    font-size: 0.84rem;
    margin-bottom: 0.45rem;
}

.form-section-title {
    display: block;
    margin: 1.2rem 0 0.8rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    background: rgba(13, 91, 65, 0.12);
    color: var(--green-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-left: 3px solid var(--green);
    line-height: 1.3;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.input-shell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.12rem 0.75rem;
    border: 1px solid rgba(13, 91, 65, 0.1);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 2px rgba(8, 28, 21, 0.04);
    min-height: 45px;
    transition: all 150ms ease;
}

textarea.input-plated,
.textarea-plated {
    width: 100%;
    border: 1px solid rgba(13, 91, 65, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 0.95rem 1rem;
    resize: vertical;
}

textarea.input-plated:focus,
.textarea-plated:focus {
    outline: none;
    border-color: rgba(19, 135, 95, 0.4);
    box-shadow: 0 0 0 4px rgba(19, 135, 95, 0.08);
    background: #fff;
}

.input-shell > span {
    color: var(--green);
    font-size: 0.85rem;
}

.input-plated {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-left: 0;
}

.auth-input {
    font-size: 0.9rem;
    line-height: 1.4;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    letter-spacing: 0.01em;
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    font-size: 0.9rem !important;
}

.form-label,
label {
    font-size: 0.85rem !important;
}

.input-plated:focus {
    box-shadow: none;
    background: transparent;
}

.input-shell:focus-within {
    border-color: rgba(19, 135, 95, 0.3);
    box-shadow: inset 0 1px 2px rgba(8, 28, 21, 0.04), 0 0 0 3px rgba(19, 135, 95, 0.1);
}

.demo-credentials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding-top: 0.7rem;
    margin-top: 0.7rem;
    border-top: 1px solid rgba(13, 91, 65, 0.05);
}

.credential-card {
    padding: 0.75rem 0.8rem;
    border-radius: 0.8rem;
    background: rgba(21, 130, 92, 0.02);
    border: 1px solid rgba(13, 91, 65, 0.05);
}

.credential-card small {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.credential-card strong {
    font-size: 0.85rem;
    margin-top: 0.2rem;
    display: block;
}

.credential-card span {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-soft);
    font-size: 0.75rem;
    line-height: 1.3;
}

.auth-inline-link {
    color: var(--green);
    font-weight: 600;
    font-size: 0.87rem;
    text-decoration: none;
    transition: all 150ms ease;
}

.auth-submit-btn {
    min-height: 46px;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-inline-link:hover {
    color: #0f6c4d;
    text-decoration: underline;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(239, 255, 247, 0.8);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.register-steps-grid {
    max-width: 860px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.register-step-card {
    padding: 1.1rem 1.15rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.register-step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.8rem;
    border-radius: 999px;
    background: rgba(181, 241, 122, 0.16);
    color: #effff7;
    font-size: 0.88rem;
    font-weight: 800;
}

.register-step-card strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #fff;
    font-size: 0.95rem;
}

.register-step-card p {
    margin: 0;
    color: rgba(239, 255, 247, 0.74);
    font-size: 0.88rem;
}

.credential-card {
    min-height: 122px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-emerald {
    background: linear-gradient(135deg, #15825c, #0f6c4d);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(15, 108, 77, 0.2);
}

.btn-emerald:hover {
    color: #fff;
    background: linear-gradient(135deg, #0f6c4d, #0a4833);
    box-shadow: 0 4px 12px rgba(15, 108, 77, 0.3);
    transform: translateY(-1px);
    transition: all 200ms ease;
}

.auth-submit-btn {
    padding: 0.65rem 1.2rem;
}

.table thead th {
    color: var(--text-soft);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.content-card {
    padding: 1.4rem;
}

.form-card {
    padding: 1.5rem;
}

@media (max-width: 1100px) {
    .app-frame,
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar-panel {
        position: static;
        height: auto;
    }

    .sidebar-nav {
        overflow: visible;
    }

    .summary-grid,
    .enterprise-footnote,
    .enterprise-metrics,
    .enterprise-grid,
    .platform-dashboard-grid,
    .admin-section-grid,
    .demo-credentials,
    .register-steps-grid,
    .auth-context-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero,
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-hero-meta,
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cashflow-chart-shell {
        min-height: 280px;
    }

    .auth-brand-row,
    .enterprise-metrics,
    .enterprise-grid,
    .enterprise-footnote,
    .auth-metrics-grid,
    .register-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-panel,
    .auth-hero,
    .auth-card-panel,
    .sidebar-panel {
        padding: 1.25rem;
    }

    .topbar-panel,
    .hero-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-grid,
    .enterprise-footnote,
    .enterprise-metrics,
    .enterprise-grid,
    .platform-dashboard-grid,
    .admin-section-grid,
    .admin-action-grid,
    .demo-credentials,
    .register-steps-grid,
    .auth-context-strip {
        grid-template-columns: 1fr;
    }

    .admin-hero-meta,
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .auth-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-card {
        padding: 1.35rem;
    }

    .auth-card-status {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-brand-row {
        grid-template-columns: 1fr;
    }

    .hero-scorecard {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-footer {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-application-card,
    .topbar-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}