:root {
    --bg: #eef2f7;
    --surface: #ffffff;
    --surface-soft: #f6f8fc;
    --text: #1f2937;
    --muted: #7b8794;
    --line: #e3e8f0;
    --line-strong: #d6deea;
    --gold: #ffcf4d;
    --gold-soft: #fff7da;
    --blue: #53a7ff;
    --green: #36c78b;
    --violet: #7193ff;
    --rose: #ff7f7f;
    --sidebar: #1f2735;
    --sidebar-soft: #273144;
    --sidebar-line: #334056;
    --sidebar-text: #cfd8e3;
    --sidebar-accent: #35c2c8;
    --shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f4f6fb 0%, #eef2f7 100%);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.sidebar {
    background: var(--sidebar);
    border-right: 1px solid var(--sidebar-line);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    padding: 0 6px 8px;
}

.brand strong,
.profile-meta strong,
.user-chip strong,
.auth-card-header h2,
.feature-card strong,
.mini-card strong,
.metric-list strong,
td strong,
.activity-item strong,
.stat-card strong,
.panel-header h3 {
    display: block;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(83, 167, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand small,
.sidebar small,
.eyebrow,
.tag,
.pill,
.search-box,
.user-chip small,
.stat-card small,
.mini-card span,
.activity-item small,
td small,
.auth-card-header p,
.auth-footer-note p,
.feature-card p,
.form-note,
.hero-panel p,
.panel p,
.category-row,
.metric-list span,
.progress-meta span,
.profile-meta span,
.profile-meta small {
    color: var(--muted);
}

.sidebar-profile,
.topbar,
.hero-panel,
.panel,
.stat-card,
.auth-card,
.feature-card,
.mini-card,
.content-form,
.inline-alert,
.flash {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.sidebar-profile {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--sidebar-soft);
    border-color: var(--sidebar-line);
    box-shadow: none;
}

.profile-meta {
    min-width: 0;
}

.sidebar-profile .profile-meta strong,
.sidebar-profile .profile-meta small,
.sidebar-profile .profile-meta span {
    color: #ffffff;
}

.sidebar-profile .profile-meta span,
.sidebar-profile .profile-meta small {
    opacity: 0.74;
}

.profile-meta strong,
.profile-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-highlights {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.profile-highlights span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.76rem;
}

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

.nav-link,
.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--sidebar-text);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.logout-link:hover,
.nav-link.active {
    background: rgba(53, 194, 200, 0.16);
    color: #ffffff;
    transform: none;
}

.nav-icon {
    width: 18px;
    display: inline-flex;
    justify-content: center;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 14px;
}

.sidebar-note {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.sidebar-note strong,
.sidebar-note span {
    color: #ffffff;
}

.sidebar-note span {
    opacity: 0.72;
}

.main-panel {
    position: relative;
    padding: 22px;
}

.main-panel-dashboard {
    background:
        linear-gradient(180deg, rgba(244, 247, 251, 0.78) 0%, rgba(240, 244, 250, 0.92) 100%),
        radial-gradient(circle at left top, rgba(255, 205, 112, 0.16), transparent 24%),
        url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1200 900%27%3E%3Ccircle cx=%27936%27 cy=%27148%27 r=%2774%27 fill=%27%23f2c35b%27 fill-opacity=%27.18%27/%3E%3Cpath d=%27M0 632c160-54 252-188 430-214 174-24 248 84 382 84 140 0 224-116 388-232v402H0Z%27 fill=%27%2377a5c4%27 fill-opacity=%27.19%27/%3E%3Cpath d=%27M0 700c158-40 286-2 446-44 160-42 236-142 386-132 160 12 246 114 368 102v274H0Z%27 fill=%27%234388bf%27 fill-opacity=%27.12%27/%3E%3Cpath d=%27M96 730c132-38 240-34 366-10 144 28 282 36 458 8 104-16 186-20 280 8%27 stroke=%27%2328577d%27 stroke-opacity=%27.12%27 stroke-width=%2722%27 stroke-linecap=%27round%27/%3E%3Cpath d=%27M112 464c66-76 128-126 206-154%27 stroke=%27%23d0904e%27 stroke-opacity=%27.12%27 stroke-width=%2718%27 stroke-linecap=%27round%27/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 640 480%27%3E%3Cpath d=%27M80 364h488%27 stroke=%27%23c58e55%27 stroke-opacity=%27.14%27 stroke-width=%2714%27 stroke-linecap=%27round%27/%3E%3Cpath d=%27M178 364V248l70-52 72 52v116Z%27 fill=%27%23cc9d6a%27 fill-opacity=%27.16%27/%3E%3Cpath d=%27M390 364V212l54-44 54 44v152Z%27 fill=%27%23ab7140%27 fill-opacity=%27.12%27/%3E%3Cpath d=%27M210 228h76%27 stroke=%27%23785738%27 stroke-opacity=%27.14%27 stroke-width=%2710%27 stroke-linecap=%27round%27/%3E%3Cpath d=%27M414 204h58%27 stroke=%27%23785738%27 stroke-opacity=%27.13%27 stroke-width=%2710%27 stroke-linecap=%27round%27/%3E%3Cpath d=%27M120 364c46-54 94-86 154-98%27 stroke=%27%233b84bf%27 stroke-opacity=%27.12%27 stroke-width=%2716%27 stroke-linecap=%27round%27/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(188, 116, 52, 0.08) 12.5%, transparent 12.5%) 0 0 / 32px 32px,
        linear-gradient(225deg, rgba(188, 116, 52, 0.06) 12.5%, transparent 12.5%) 0 0 / 32px 32px,
        linear-gradient(315deg, rgba(46, 113, 170, 0.06) 12.5%, transparent 12.5%) 16px 16px / 32px 32px,
        linear-gradient(45deg, rgba(88, 141, 108, 0.05) 12.5%, transparent 12.5%) 16px 16px / 32px 32px;
    background-repeat: no-repeat;
    background-size: auto, auto, 1040px auto, 360px auto, 160px 160px, 160px 160px, 160px 160px, 160px 160px;
    background-position: center, left top, right -110px top 10px, left -26px bottom 124px, right 42px top 112px, right 42px top 112px, right 42px top 112px, right 42px top 112px;
    background-attachment: scroll;
}

.topbar {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.topbar h1,
.hero-panel h2,
.auth-visual h1 {
    margin: 6px 0 0;
    line-height: 1.2;
}

.topbar-actions,
.user-chip,
.hero-actions,
.tag-stack,
.form-actions,
.auth-inline-list,
.locale-switch {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    min-width: 340px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
}

.topbar-search {
    padding: 8px;
    gap: 8px;
    flex: 1;
}

.topbar-search input {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 8px 10px;
}

.topbar-search input:focus {
    box-shadow: none;
}

.btn-search {
    padding: 10px 14px;
    white-space: nowrap;
}

.topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

.topbar-pill.active {
    background: #eef7ff;
    border-color: #cfe3ff;
    color: #245e9c;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    flex: none;
}

.user-chip {
    padding: 6px;
    min-width: 52px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    justify-content: center;
    gap: 0;
}

.user-chip-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.user-chip-link:hover {
    transform: translateY(-1px);
    border-color: #d1dced;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9f2ff 0%, #9bd1ff 100%);
    color: #1f4f7a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.avatar-user {
    font-size: 1rem;
    letter-spacing: 0;
}

.avatar-large {
    width: 52px;
    height: 52px;
}

.flash,
.inline-alert {
    padding: 15px 18px;
    margin-top: 18px;
    border-left: 4px solid transparent;
}

.flash-success { border-color: var(--green); }
.flash-error,
.inline-alert { border-color: var(--rose); }

.inline-alert-neutral {
    background: #f8fbff;
    border-color: #d5e6ff;
}

.page-content {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.dashboard-scene {
    display: grid;
    gap: 18px;
}

.main-panel-dashboard .hero-panel,
.main-panel-dashboard .panel,
.main-panel-dashboard .stat-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 252, 255, 0.92) 100%);
    border-color: rgba(221, 229, 240, 0.92);
}

.main-panel-dashboard .hero-panel::before,
.main-panel-dashboard .story-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    width: 180px;
    height: 8px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        90deg,
        rgba(202, 129, 56, 0.82) 0 18px,
        rgba(45, 112, 170, 0.76) 18px 36px,
        rgba(93, 143, 110, 0.74) 36px 54px,
        rgba(125, 84, 154, 0.72) 54px 72px,
        rgba(235, 188, 76, 0.8) 72px 90px
    );
    box-shadow: 0 8px 18px rgba(202, 129, 56, 0.12);
}

.main-panel-dashboard .story-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 251, 255, 0.94) 100%),
        radial-gradient(circle at right top, rgba(77, 140, 198, 0.08), transparent 34%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-panel,
.form-header {
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-panel.compact { padding-bottom: 24px; }

.admin-hero h2 {
    margin-bottom: 6px;
    font-size: 1.7rem;
}

.stats-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 18px;
}

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

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

.small-gap { gap: 14px; }

.stat-card {
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 4px;
    background: var(--blue);
}

.accent-gold::before { background: var(--gold); }
.accent-blue::before { background: var(--blue); }
.accent-green::before { background: var(--green); }
.accent-violet::before { background: var(--violet); }
.accent-rose::before { background: var(--rose); }

.stat-card strong {
    margin: 6px 0 2px;
    font-size: 1.8rem;
    line-height: 1.1;
}

.stat-card-clean {
    display: grid;
    gap: 6px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 6px;
}

.stat-icon-green { background: #eaf9f1; color: #148050; }
.stat-icon-blue { background: #edf5ff; color: #2f80ed; }
.stat-icon-gold { background: #fff8e3; color: #946b00; }
.stat-icon-rose { background: #fff0f0; color: #c65555; }

.stat-link {
    margin-top: 6px;
    color: #5f6b7a;
    font-size: 0.84rem;
    font-weight: 500;
}

.stat-card-feature {
    display: grid;
    gap: 24px;
    align-content: space-between;
}

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

.mini-stat {
    padding: 14px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.mini-stat strong {
    margin-top: 6px;
    font-size: 1rem;
}

.stat-ring-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.progress-ring {
    --progress: 50%;
    --ring-color: var(--blue);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color) 0 var(--progress), #edf1f8 var(--progress) 100%);
    display: grid;
    place-items: center;
    position: relative;
}

.progress-ring::before {
    content: '';
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
}

.progress-ring span {
    position: absolute;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.ring-copy strong {
    margin-bottom: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 18px;
}

.panel,
.content-form {
    padding: 20px;
}

.panel-wide,
.table-panel {
    grid-column: 1 / -1;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.tag,
.pill,
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    font-size: 0.85rem;
}

.pill {
    color: #7a5c00;
    background: var(--gold-soft);
    border-color: #f5e29a;
    width: fit-content;
}

.bar-chart {
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 12px;
}

.bar-col {
    display: grid;
    justify-items: center;
    gap: 10px;
    height: 100%;
}

.bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #8cbcff 0%, var(--blue) 100%);
    min-height: 18%;
}

.progress-list,
.category-list,
.metric-list,
.activity-list,
.feature-stack,
.insight-grid {
    display: grid;
    gap: 16px;
}

.progress-meta,
.category-row,
.metric-list li,
.activity-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.progress-track {
    height: 8px;
    border-radius: 999px;
    background: #eef2f8;
    overflow: hidden;
    margin-top: 8px;
}

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

.summary-tile {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}

.summary-tile strong {
    display: block;
    margin-top: 6px;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--blue));
}

.metric-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.activity-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.story-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.funding-card {
    padding: 18px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.funding-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.funding-list li + li {
    margin-top: 8px;
}

.activity-dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    flex: none;
    background: var(--blue);
}

.badge-approved { background: #e8f7f0; color: #166143; border-color: #cceedd; }
.badge-pending { background: #fff6df; color: #8a6200; border-color: #f2dea0; }
.badge-rejected { background: #fff0f0; color: #a13e3e; border-color: #f2c5c5; }

.status-badge.badge-approved,
.status-badge.badge-pending,
.status-badge.badge-rejected {
    padding: 7px 11px;
}

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

.mini-card,
.feature-card,
.auth-footer-note {
    padding: 18px;
}

.auth-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f4f7fb 0%, #e9eef6 100%);
}

.auth-shell {
    min-height: 100vh;
    padding: 28px;
    display: grid;
    align-items: center;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 48px;
    align-items: center;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

.auth-visual {
    padding: 36px;
    border-radius: 18px;
    background: linear-gradient(180deg, #1f2735 0%, #283246 100%);
    color: #ffffff;
    box-shadow: 0 18px 35px rgba(31, 39, 53, 0.12);
}

.auth-visual h1 {
    max-width: 620px;
    font-size: clamp(2.4rem, 4vw, 4.1rem);
    margin: 18px 0 16px;
}

.auth-visual p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.02rem;
}

.auth-inline-list {
    margin: 26px 0 18px;
}

.about-archive-card {
    margin: 26px 0 0;
    padding: 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-archive-card h3 {
    margin: 10px 0 12px;
    color: #ffffff;
}

.about-archive-card p {
    margin: 0;
}

.about-archive-points {
    margin: 16px 0 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.82);
    display: grid;
    gap: 10px;
}

.auth-inline-list span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.92rem;
}

.auth-panel {
    display: grid;
}

.auth-card {
    padding: 30px;
}

.auth-card-minimal {
    max-width: 430px;
    justify-self: end;
}

.credentials-hint {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: none;
}

.feature-card strong,
.feature-card p {
    color: #ffffff;
}

.feature-card p {
    opacity: 0.7;
}

.credentials-hint p {
    margin: 6px 0 0;
    color: var(--muted);
}

.credentials-hint span {
    color: var(--text);
    font-weight: 600;
}

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

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

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

.flow-step,
.form-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: none;
}

.flow-step {
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.flow-step.active {
    border-color: #cae8eb;
    background: #f7fcfc;
}

.flow-step span,
.section-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: #7a5c00;
    font-weight: 700;
    flex: none;
}

.flow-step small {
    display: block;
    color: var(--muted);
}

.flow-form {
    display: grid;
    gap: 18px;
}

.form-section {
    padding: 22px;
}

.form-section-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.form-section-header h3 {
    margin: 2px 0 6px;
}

.form-section-header p {
    margin: 0;
    color: var(--muted);
}

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

label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: #fcfdff;
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: #c8d7f3;
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.08);
}

textarea { resize: vertical; }

.btn {
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.btn-primary {
    background: var(--gold);
    color: #3f2d00;
}

.btn-secondary {
    background: var(--surface-soft);
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-note {
    margin: 20px 0;
    padding: 16px 18px;
    background: #fbfcff;
    border: 1px dashed #d7dfec;
    border-radius: 12px;
}

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

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

thead th {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--surface-soft);
}

tbody tr:hover {
    background: #fbfcff;
}

@media (max-width: 1180px) {
    .stat-grid,
    .insight-grid,
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .stat-card-feature,
    .about-grid,
    .flow-steps {
        grid-column: 1 / -1;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .main-panel-dashboard {
        background-size: auto, auto, 760px auto, 300px auto, 140px 140px, 140px 140px, 140px 140px, 140px 140px;
        background-position: center, left top, right -150px top 30px, left -48px bottom 128px, right 24px top 124px, right 24px top 124px, right 24px top 124px, right 24px top 124px;
    }

    .panel-wide,
    .table-panel,
    .full-width,
    .auth-card,
    .auth-panel,
    .auth-visual {
        grid-column: 1 / -1;
    }

    .auth-card-minimal {
        justify-self: start;
        max-width: none;
    }

    .auth-visual {
        padding-right: 0;
    }
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding-bottom: 20px;
    }

    .dashboard-grid,
    .stat-grid,
    .insight-grid,
    .form-grid,
    .flow-steps,
    .stat-grid-visual,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .main-panel,
    .auth-shell {
        padding: 20px;
    }

    .main-panel-dashboard {
        background-size: auto, auto, 520px auto, 220px auto, 108px 108px, 108px 108px, 108px 108px, 108px 108px;
        background-position: center, left top, right -180px top 70px, left -82px bottom 152px, right 12px top 132px, right 12px top 132px, right 12px top 132px, right 12px top 132px;
    }

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

    .search-box,
    .user-chip,
    .topbar-actions {
        width: 100%;
    }

    .topbar-search {
        min-width: 100%;
    }
}