:root {
    --font-sans: "Nunito Sans", "Segoe UI", sans-serif;
    --color-bg: #fcfaf5;
    --color-panel: rgba(255, 255, 255, 0.72);
    --color-panel-border: #e3e1da;
    --color-text: #111111;
    --color-muted: #5f6b63;
    --color-primary: #6acc6f;
    --color-primary-strong: #36c98e;
    --color-primary-deep: #1d694a;
    --color-danger: #e04b50;
    --shadow-panel: 0 12px 28px rgba(17, 17, 17, 0.08), 0 1px 6px rgba(17, 17, 17, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    --shadow-control: 0 10px 20px rgba(17, 17, 17, 0.08), 0 1px 4px rgba(17, 17, 17, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.94);
    --shadow-cta: 0 14px 24px rgba(106, 204, 111, 0.18), 0 3px 10px rgba(17, 17, 17, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --radius-panel: 24px;
    --radius-control: 12px;
    --radius-pill: 10px;
    --radius-sm: 8px;
    --transition-fast: 160ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
}

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

button {
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

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

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

.dashboard-body {
    position: relative;
    overflow-x: clip;
}

.dashboard-body::before,
.dashboard-body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    filter: blur(34px);
    opacity: 0.8;
    z-index: 0;
}

.dashboard-body::before {
    width: 72rem;
    height: 72rem;
    top: -30rem;
    left: -28rem;
    background: radial-gradient(circle at center, rgba(106, 204, 111, 0.16), rgba(106, 204, 111, 0) 68%);
}

.dashboard-body::after {
    width: 62rem;
    height: 62rem;
    right: -18rem;
    top: 16rem;
    background: radial-gradient(circle at center, rgba(214, 234, 218, 0.45), rgba(214, 234, 218, 0) 70%);
}

.app-shell {
    position: relative;
    z-index: 1;
}

.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.14);
    backdrop-filter: blur(2px);
    z-index: 25;
}

.glass-panel {
    background: var(--color-panel);
    border: 1px solid var(--color-panel-border);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-panel);
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.icon--nav {
    width: 24px;
    height: 24px;
    color: #202226;
}

.icon--chevron {
    width: 18px;
    height: 18px;
}

.icon--action {
    width: 48px;
    height: 48px;
}

.icon--summary-medal,
.icon--summary-wallet,
.icon--summary-trophy {
    width: 82px;
    height: 82px;
}

.icon--detail-account,
.icon--detail-transaction {
    width: 64px;
    height: 64px;
}

.icon--status {
    width: 18px;
    height: 18px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #6acc6f;
}

.brand-mark--mobile {
    display: none;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(227, 225, 218, 0.95);
    box-shadow: var(--shadow-control);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-control);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.icon-button--menu {
    border: 1px solid rgba(106, 204, 111, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 248, 242, 0.9) 100%);
    box-shadow:
        0 12px 22px rgba(17, 17, 17, 0.08),
        0 2px 6px rgba(17, 17, 17, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    color: var(--color-text);
}

.icon-button--menu[aria-expanded="true"] {
    border-color: rgba(54, 201, 142, 0.28);
    background: linear-gradient(180deg, rgba(211, 249, 216, 0.96) 0%, rgba(183, 245, 188, 0.96) 100%);
    box-shadow:
        0 14px 24px rgba(106, 204, 111, 0.18),
        0 3px 10px rgba(17, 17, 17, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.icon-button--menu .icon {
    width: 32px;
    height: 32px;
}

.icon-button:hover,
.icon-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(17, 17, 17, 0.1), var(--shadow-control);
}

.icon-button--ghost {
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    color: rgba(17, 17, 17, 0.6);
}

.icon-button--ghost:hover,
.icon-button--ghost:focus-visible {
    transform: none;
    box-shadow: none;
    color: var(--color-text);
}

.icon-button:focus-visible,
.cta-button:focus-visible,
.profile-chip:focus-visible,
.pill-tab:focus-visible,
.filter-button:focus-visible,
.quick-action:focus-visible,
.sidebar-nav__link:focus-visible,
.sidebar-subnav__link:focus-visible,
.pagination__page:focus-visible,
.pagination__edge:focus-visible,
.sidebar-logout:focus-visible {
    outline: 2px solid rgba(106, 204, 111, 0.85);
    outline-offset: 3px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: var(--radius-control);
    border: 1px solid rgba(106, 204, 111, 0.28);
    background: linear-gradient(180deg, #b7f5bc 0%, #98eea1 100%);
    box-shadow: var(--shadow-cta);
    color: var(--color-text);
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(106, 204, 111, 0.2), 0 6px 14px rgba(17, 17, 17, 0.08);
}

.cta-button--block {
    width: 100%;
}

.cta-button--support {
    width: 104px;
    min-height: 48px;
    padding: 8px 16px;
    align-self: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(106, 204, 111, 0.22);
    background: linear-gradient(180deg, #b7f5bc 0%, #98eea1 100%);
    box-shadow:
        0 10px 20px rgba(106, 204, 111, 0.16),
        0 2px 8px rgba(17, 17, 17, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    color: #111111;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

.cta-button--support .icon {
    color: #2d2f34;
}

.cta-button--support:hover,
.cta-button--support:focus-visible {
    box-shadow: 0 12px 18px rgba(17, 17, 17, 0.12), var(--shadow-control);
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 16px;
    min-width: 176px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(227, 225, 218, 0.95);
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-panel);
    white-space: nowrap;
}

.profile-avatar {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff3c0, #ffb27d);
    border: 1px solid rgba(227, 225, 218, 0.92);
    color: #77402a;
    font-size: 0.875rem;
    font-weight: 800;
}

.pill-tabs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(227, 225, 218, 0.95);
    border-radius: 14px;
}

.pill-tab {
    min-height: 40px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    color: var(--color-text);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.pill-tab.is-active {
    border: 1px solid rgba(106, 204, 111, 0.22);
    background: linear-gradient(180deg, #e2fbe4 0%, #ccf7d1 100%);
    box-shadow: 0 6px 14px rgba(106, 204, 111, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.filter-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: var(--radius-control);
    background: rgba(240, 239, 236, 0.9);
    border: 1px solid rgba(227, 225, 218, 0.95);
    box-shadow: var(--shadow-control);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.table-action {
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

@media (max-width: 991px) {
    body.has-sidebar-open {
        overflow: hidden;
    }
}
