:root {
    --bg: #eef3f8;
    --bg-deep: #0e1b34;
    --surface: rgba(250, 252, 255, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --surface-dark: rgba(14, 27, 52, 0.9);
    --line: rgba(14, 27, 52, 0.1);
    --line-strong: rgba(14, 27, 52, 0.18);
    --text: #11213f;
    --muted: #68748a;
    --accent: #1e7a67;
    --accent-strong: #165f50;
    --accent-soft: rgba(30, 122, 103, 0.12);
    --sun: #d8a12d;
    --sun-soft: rgba(216, 161, 45, 0.18);
    --rose: #c55f56;
    --rose-soft: rgba(197, 95, 86, 0.16);
    --sky: #305ea9;
    --sky-soft: rgba(48, 94, 169, 0.16);
    --shadow: 0 22px 60px rgba(13, 28, 54, 0.14);
    --shadow-soft: 0 12px 30px rgba(13, 28, 54, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(48, 94, 169, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(30, 122, 103, 0.18), transparent 28%),
        linear-gradient(180deg, #f6f9fd 0%, #e8edf5 100%);
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

code {
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(17, 53, 60, 0.08);
    font-size: 0.92rem;
}

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

.backdrop-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.7;
    animation: floatOrb 14s ease-in-out infinite;
}

.orb-a {
    width: 22rem;
    height: 22rem;
    top: -6rem;
    left: -4rem;
    background: radial-gradient(circle, rgba(48, 94, 169, 0.32), transparent 68%);
}

.orb-b {
    width: 26rem;
    height: 26rem;
    right: -9rem;
    top: 10rem;
    background: radial-gradient(circle, rgba(216, 161, 45, 0.2), transparent 68%);
    animation-delay: -4s;
}

.orb-c {
    width: 24rem;
    height: 24rem;
    left: 28%;
    bottom: -12rem;
    background: radial-gradient(circle, rgba(30, 122, 103, 0.24), transparent 68%);
    animation-delay: -8s;
}

.backdrop-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 53, 60, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 53, 60, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 52%, transparent 88%);
}

.auth-view,
.app-view {
    position: relative;
    z-index: 1;
    padding: 32px 24px 48px;
}

.auth-shell,
.app-main,
.topbar {
    width: min(var(--container), 100%);
    margin: 0 auto;
}

.auth-shell {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    align-items: stretch;
}

.auth-shell-simple {
    width: min(460px, 100%);
    min-height: calc(100vh - 80px);
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    align-content: center;
}

.card-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 240, 0.85));
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.card-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 48%);
    pointer-events: none;
}

.auth-hero,
.auth-panel,
.hero-banner,
.section-banner,
.card-panel {
    animation: riseIn 0.75s ease both;
}

.auth-hero {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background:
        linear-gradient(145deg, rgba(14, 27, 52, 0.94), rgba(30, 122, 103, 0.82)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
    color: #f7f4ed;
}

.auth-hero .eyebrow,
.auth-hero h1,
.auth-hero p,
.auth-hero h3,
.auth-hero .hero-stat strong,
.auth-hero .hero-stat span,
.auth-hero code {
    position: relative;
    z-index: 1;
}

.auth-hero h1 {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.hero-copy {
    max-width: 48ch;
    margin: 0;
    color: rgba(247, 244, 237, 0.88);
    font-size: 1.02rem;
    line-height: 1.75;
}

.auth-hero-list {
    display: grid;
    gap: 12px;
    max-width: 34rem;
}

.auth-hero-item {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-hero-item strong {
    font-size: 1rem;
    font-weight: 800;
}

.auth-hero-item span {
    color: rgba(247, 244, 237, 0.82);
    line-height: 1.55;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.auth-hero .eyebrow {
    color: rgba(247, 244, 237, 0.76);
}

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

.hero-stat,
.metric-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-stat strong,
.metric-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.8rem;
    font-weight: 800;
}

.hero-stat span,
.metric-card span {
    display: block;
    font-size: 0.92rem;
    color: inherit;
}

.feature-stack {
    display: grid;
    gap: 14px;
}

.mini-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h3,
.section-head h3,
.section-head h4,
.panel-head h2,
.section-banner h2,
.hero-banner h1,
.hero-banner h2 {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
}

.feature-card p,
.panel-head p,
.section-banner p,
.banner-copy {
    margin: 0;
    color: inherit;
    line-height: 1.65;
}

.feature-icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.25rem;
}

.credential-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(247, 244, 237, 0.14);
    border: 1px solid rgba(247, 244, 237, 0.16);
}

.credential-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #6ff7cb;
    box-shadow: 0 0 0 8px rgba(111, 247, 203, 0.16);
    animation: pulseDot 2.4s ease-in-out infinite;
}

.auth-panel {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.auth-panel-simple {
    padding: 28px;
    gap: 20px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.auth-brand-copy h1 {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.05;
}

.auth-brand-copy p {
    margin: 0;
    color: var(--muted);
}

.panel-head {
    display: grid;
    gap: 8px;
}

.panel-head p {
    color: var(--muted);
}

.auth-context {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(17, 53, 60, 0.05);
    border: 1px solid var(--line);
    display: grid;
    gap: 6px;
}

.auth-context-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 139, 113, 0.12);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-context h3 {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.2rem;
}

.auth-context p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.auth-context-compact {
    gap: 4px;
}

.auth-context-compact h3 {
    font-size: 1.08rem;
}

.auth-toggle,
.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-toggle button,
.nav-pills button {
    border: 0;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(17, 53, 60, 0.07);
    color: var(--text);
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-toggle button:hover,
.nav-pills button:hover {
    transform: translateY(-2px);
    background: rgba(15, 139, 113, 0.12);
}

.auth-toggle button.is-active,
.nav-pills button.is-active {
    color: #f7f4ed;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 16px 28px rgba(15, 139, 113, 0.28);
}

.auth-toggle button {
    flex: 1 1 0;
    text-align: center;
}

.auth-form,
.banking-form {
    display: grid;
    gap: 16px;
}

.auth-form[hidden] {
    display: none !important;
}

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

.field-stack {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span,
.checkbox-field span {
    font-size: 0.92rem;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(15, 139, 113, 0.45);
    box-shadow: 0 0 0 5px rgba(15, 139, 113, 0.12);
    transform: translateY(-1px);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
}

.btn {
    border: 0;
    border-radius: 18px;
    padding: 14px 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #f7f4ed;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 18px 34px rgba(15, 139, 113, 0.22);
}

.btn-secondary {
    color: var(--text);
    background: rgba(17, 53, 60, 0.08);
}

.form-message {
    min-height: 1.3rem;
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.form-note {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.form-message.is-error {
    color: #b24e43;
}

.form-message.is-success {
    color: var(--accent-strong);
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    margin-bottom: 24px;
}

.brand-lockup,
.profile-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark,
.profile-avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(242, 181, 68, 0.9), rgba(214, 106, 90, 0.75));
    color: #132e35;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.brand-lockup h2 {
    margin: 4px 0 0;
    font-size: 1.1rem;
}

.profile-meta {
    display: grid;
    gap: 2px;
}

.profile-meta span {
    color: var(--muted);
    font-size: 0.92rem;
}

.app-main {
    display: grid;
    gap: 24px;
}

.screen-panel {
    display: grid;
    gap: 24px;
}

.screen-panel[hidden] {
    display: none !important;
}

.screen-panel.is-active {
    animation: riseIn 0.55s ease both;
}

.hero-banner,
.section-banner {
    padding: 28px 30px;
}

.hero-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.hero-banner h1,
.hero-banner h2,
.section-banner h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.08;
}

.banner-copy,
.section-banner p {
    max-width: 68ch;
    color: var(--muted);
}

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

.quick-btn {
    border: 0;
    padding: 12px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(17, 53, 60, 0.1), rgba(60, 120, 216, 0.12));
    color: var(--text);
    font-weight: 800;
}

.metric-card {
    padding: 20px;
    border: 1px solid rgba(17, 53, 60, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 246, 236, 0.88));
    box-shadow: var(--shadow-soft);
}

.metric-card .metric-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 53, 60, 0.07);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.metric-card strong {
    color: var(--text);
}

.metric-card .metric-meta {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.content-grid {
    display: grid;
    gap: 24px;
}

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

.banking-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
}

.operations-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.full-span {
    grid-column: 1 / -1;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.section-head.compact {
    margin-bottom: 14px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 139, 113, 0.12);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stack-list,
.timeline-list {
    display: grid;
    gap: 12px;
}

.stack-item,
.timeline-item,
.roster-item,
.summary-card,
.chart-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
}

.stack-item-head,
.timeline-item-head,
.roster-head,
.summary-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.stack-item h4,
.timeline-item h4,
.roster-item h4,
.summary-card h4 {
    margin: 0;
    font-size: 1rem;
}

.meta-line,
.subtle-line,
.timeline-item p,
.stack-item p,
.roster-item p,
.summary-card p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.pill,
.status-pill,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pill {
    background: rgba(17, 53, 60, 0.08);
    color: var(--muted);
}

.pill.is-pinned {
    background: var(--sun-soft);
    color: #8d5b00;
}

.status-pill.present {
    background: rgba(15, 139, 113, 0.14);
    color: var(--accent-strong);
}

.status-pill.late {
    background: rgba(242, 181, 68, 0.18);
    color: #946311;
}

.status-pill.absent {
    background: rgba(214, 106, 90, 0.16);
    color: #a04e42;
}

.status-pill.excused {
    background: rgba(60, 120, 216, 0.14);
    color: #275eb2;
}

.stack-item-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.action-link {
    border: 0;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(17, 53, 60, 0.08);
    color: var(--text);
    font-weight: 700;
}

.action-link.danger {
    background: rgba(214, 106, 90, 0.14);
    color: #9f473c;
}

.table-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

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

.data-table thead {
    background: rgba(17, 53, 60, 0.06);
}

.data-table th {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.data-table tbody tr:hover {
    background: rgba(15, 139, 113, 0.05);
}

.progress-list,
.bar-list,
.mini-stat-grid,
.detail-list {
    display: grid;
    gap: 12px;
}

.progress-row,
.chart-card {
    display: grid;
    gap: 10px;
}

.progress-row-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}

.progress-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(17, 53, 60, 0.08);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #29b690);
    box-shadow: 0 0 22px rgba(15, 139, 113, 0.24);
    animation: expandBar 0.9s ease both;
    transform-origin: left;
}

.grade-chip {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 14px;
    background: rgba(60, 120, 216, 0.12);
    color: #2559af;
    font-weight: 800;
}

.profile-grid {
    display: grid;
    gap: 12px;
}

.profile-highlight {
    padding: 18px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(15, 139, 113, 0.12), rgba(242, 181, 68, 0.16));
    border: 1px solid rgba(15, 139, 113, 0.14);
}

.profile-highlight h4,
.detail-list h4 {
    margin: 0 0 8px;
}

.detail-list div,
.mini-stat-grid div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid var(--line);
}

.detail-list strong,
.mini-stat-grid strong {
    font-size: 0.94rem;
}

.detail-list span,
.mini-stat-grid span {
    color: var(--muted);
    text-align: right;
}

.timeline-item {
    position: relative;
    padding-left: 22px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 8px rgba(15, 139, 113, 0.12);
}

.empty-state {
    padding: 26px;
    border-style: dashed;
    text-align: left;
}

.empty-state h3 {
    margin-top: 0;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
}

.toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20;
    display: grid;
    gap: 12px;
    width: min(340px, calc(100vw - 40px));
}

.toast {
    padding: 14px 16px;
    border-radius: 18px;
    color: #f7f4ed;
    background: rgba(17, 53, 60, 0.92);
    box-shadow: 0 18px 36px rgba(17, 53, 60, 0.25);
    animation: toastIn 0.35s ease both;
}

.toast.is-success {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.toast.is-error {
    background: linear-gradient(135deg, #c25b4b, #9f473c);
}

.toast.is-info {
    background: linear-gradient(135deg, #305ea9, #254c87);
}

.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(14, 27, 52, 0.55);
    backdrop-filter: blur(10px);
}

.modal-card {
    width: min(420px, 100%);
    padding: 24px;
    display: grid;
    gap: 14px;
}

.modal-card h2 {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.5rem;
}

.modal-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.modal-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(30, 122, 103, 0.12);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.roster-item.is-selected {
    border-color: rgba(15, 139, 113, 0.4);
    background: rgba(15, 139, 113, 0.09);
}

.roster-tag-list,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.muted-note {
    color: var(--muted);
    line-height: 1.6;
}

.summary-grid {
    display: grid;
    gap: 12px;
}

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

.kpi-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.status-outline {
    display: inline-flex;
    padding: 9px 12px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.56);
    font-weight: 700;
}

.banking-hero-panel {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 34rem;
}

.banking-hero-chip {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(216, 161, 45, 0.18);
    color: #fff3cf;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(247, 250, 255, 0.88));
}

.account-balance {
    margin-top: 10px;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.card-tile {
    background:
        linear-gradient(145deg, rgba(14, 27, 52, 0.96), rgba(48, 94, 169, 0.88));
    color: #f5f8ff;
    border-color: rgba(255, 255, 255, 0.12);
}

.card-tile .meta-line,
.card-tile .subtle-line,
.card-tile .pill {
    color: rgba(245, 248, 255, 0.82);
}

.card-digits {
    margin-top: 14px;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.money-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 14px;
    font-weight: 800;
}

.money-pill.credit,
.table-amount.credit {
    color: var(--accent-strong);
    background: rgba(30, 122, 103, 0.14);
}

.money-pill.debit,
.table-amount.debit {
    color: #a04e42;
    background: rgba(197, 95, 86, 0.14);
}

.table-amount {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 12px;
    font-weight: 800;
}

.status-pill.completed,
.status-pill.active {
    background: rgba(30, 122, 103, 0.14);
    color: var(--accent-strong);
}

.status-pill.frozen {
    background: rgba(197, 95, 86, 0.16);
    color: #9f473c;
}

.notice-item.important {
    border-color: rgba(216, 161, 45, 0.28);
    background: rgba(255, 251, 242, 0.86);
}

.notice-item.pinned {
    border-color: rgba(48, 94, 169, 0.2);
    background: rgba(244, 248, 255, 0.92);
}

.activity-filters {
    margin-bottom: 18px;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 18px, 0) scale(1.04);
    }
}

@keyframes pulseDot {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(111, 247, 203, 0.18);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 10px rgba(111, 247, 203, 0.08);
    }
}

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

@keyframes expandBar {
    from {
        transform: scaleX(0.2);
        opacity: 0.6;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .auth-shell,
    .banking-layout,
    .operations-layout,
    .two-column,
    .hero-stat-grid,
    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .auth-shell {
        min-height: auto;
    }

    .auth-shell-simple {
        min-height: calc(100vh - 80px);
        grid-template-columns: minmax(0, 1fr);
    }

    .topbar {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 820px) {
    .auth-view,
    .app-view {
        padding: 18px 14px 32px;
    }

    .auth-shell,
    .hero-stat-grid,
    .metric-grid,
    .field-grid,
    .two-column,
    .banking-layout,
    .operations-layout {
        grid-template-columns: 1fr;
    }

    .auth-hero,
    .auth-panel,
    .hero-banner,
    .section-banner,
    .topbar,
    .card-panel {
        border-radius: 24px;
    }

    .auth-hero,
    .auth-panel,
    .hero-banner,
    .section-banner {
        padding: 24px 20px;
    }

    .auth-shell-simple {
        width: 100%;
        min-height: calc(100vh - 50px);
    }

    .auth-brand {
        align-items: flex-start;
    }

    .hero-banner {
        align-items: stretch;
    }

    .profile-lockup {
        flex-wrap: wrap;
    }

    .nav-pills {
        width: 100%;
    }

    .nav-pills button {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }

    .hero-actions,
    .stack-item-actions,
    .row-actions {
        width: 100%;
    }

    .quick-btn,
    .btn {
        width: 100%;
    }

    .modal {
        padding: 14px;
    }

    .modal-card {
        padding: 20px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
