:root {
    --bg: #0b0e0b;
    --bg-soft: #111611;
    --card: #151b15;
    --card-2: #192019;
    --border: #293329;
    --text: #f4f7f1;
    --muted: #a8b1a3;
    --accent: #8ebf58;
    --accent-strong: #b1e06e;
    --danger: #e47070;
    --shadow: 0 20px 60px rgba(0,0,0,.28);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 75% 0%, rgba(111, 148, 65, .18), transparent 32rem),
        linear-gradient(180deg, #0c100c 0%, var(--bg) 45%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

a {
    color: inherit;
}

.shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.shell.narrow {
    width: min(720px, calc(100% - 36px));
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 14, 11, .82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-strong), #5d7f3a);
    color: #11170b;
    box-shadow: inset 0 1px rgba(255,255,255,.3);
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav > a:not(.button) {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

nav > a:hover {
    color: var(--text);
}

.hero {
    padding: 96px 0 58px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    align-items: center;
    gap: 64px;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: .98;
    letter-spacing: -.055em;
    margin-bottom: 26px;
}

h2 {
    letter-spacing: -.035em;
}

.lead,
.page-heading > p {
    max-width: 760px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
}

.eyebrow {
    color: var(--accent-strong);
    font-size: 12px;
    letter-spacing: .16em;
    font-weight: 900;
    margin-bottom: 14px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 18px;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 800;
    color: #10150c;
    background: var(--accent-strong);
    border: 1px solid transparent;
}

.button.small {
    padding: 9px 13px;
    border-radius: 9px;
}

.button.ghost {
    color: var(--text);
    background: rgba(255,255,255,.04);
    border-color: var(--border);
}

.hero-card,
.card {
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), transparent),
        var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 28px;
}

.hero-card > strong {
    display: block;
    font-size: 34px;
    margin: 5px 0 24px;
}

.hero-card hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: var(--danger);
    margin-right: 8px;
}

.status-dot.online {
    background: var(--accent-strong);
    box-shadow: 0 0 18px rgba(177, 224, 110, .5);
}

.metric {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
}

.metric span,
.muted {
    color: var(--muted);
}

.section {
    padding: 58px 0 86px;
}

.section-heading,
.page-heading {
    margin-bottom: 32px;
}

.section-heading h2,
.page-heading h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    margin-bottom: 14px;
}

.feature-grid,
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    padding: 24px;
}

.card .icon {
    font-size: 28px;
}

.card h3 {
    font-size: 22px;
    margin: 18px 0 10px;
}

.card p {
    color: var(--muted);
    line-height: 1.65;
}

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

.shop-card {
    min-height: 250px;
}

.shop-top,
.card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.pill,
.status-badge {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(177, 224, 110, .1);
    color: var(--accent-strong);
    border: 1px solid rgba(177, 224, 110, .2);
    font-weight: 800;
    font-size: 12px;
}

.price {
    font-weight: 900;
    color: var(--accent-strong);
}

.shop-card h2 {
    margin-top: 28px;
    font-size: 27px;
}

.shop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 28px;
    font-size: 13px;
    color: var(--muted);
}

code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: #d7e9c3;
}

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

.profile-card {
    grid-column: span 2;
}

.status-badge {
    color: #aaa;
    border-color: var(--border);
    background: rgba(255,255,255,.035);
}

.status-badge.online-bg {
    color: var(--accent-strong);
    border-color: rgba(177,224,110,.25);
    background: rgba(177,224,110,.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

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

.stat {
    padding: 18px;
    border-radius: 13px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.05);
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 7px;
}

.stat strong {
    font-size: 22px;
}

.stat .small-value,
.small-value {
    font-size: 13px;
    word-break: break-all;
}

.big-balance {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.big-balance span {
    font-size: 34px;
}

.big-balance strong {
    font-size: 55px;
    letter-spacing: -.05em;
}

.mini-stats {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    color: var(--muted);
}

.mini-stats strong {
    color: var(--text);
    float: right;
}

.dino-strip {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(177,224,110,.15);
    background: rgba(177,224,110,.055);
    border-radius: 13px;
}

.dino-strip > span {
    font-size: 30px;
}

.dino-strip small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.list-row:last-child {
    border-bottom: 0;
}

.list-row span {
    color: var(--muted);
}

.link-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 820px;
}

.link-card .icon {
    font-size: 36px;
}

.alert {
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.alert.danger {
    border-color: rgba(228,112,112,.28);
    background: rgba(228,112,112,.08);
}

.footer {
    border-top: 1px solid rgba(255,255,255,.06);
    color: var(--muted);
    padding: 30px 0;
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 850px) {
    .hero-grid,
    .feature-grid,
    .shop-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        grid-column: auto;
    }

    .hero {
        padding-top: 64px;
    }

    .nav {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    nav {
        gap: 12px;
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: 44px;
    }

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

    .footer-inner {
        flex-direction: column;
    }
}


.wallet-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 0 0 22px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(177,224,110,.18);
    background: rgba(177,224,110,.055);
}

.wallet-strip .eyebrow {
    margin-bottom: 6px;
}

.wallet-strip strong {
    display: block;
    font-size: 24px;
}

.purchase-form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.purchase-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.purchase-form select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0f140f;
    color: var(--text);
}

.button.full {
    width: 100%;
}

.button.disabled,
.button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.receipt-card {
    max-width: 760px;
    margin: 20px auto;
    text-align: center;
}

.receipt-card h1 {
    font-size: clamp(36px, 5vw, 58px);
    margin-left: auto;
    margin-right: auto;
}

.receipt-card .lead {
    margin-left: auto;
    margin-right: auto;
}

.receipt-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    margin: 0 auto 18px;
    font-size: 32px;
    font-weight: 900;
    color: #10150c;
    background: var(--accent-strong);
}

.receipt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 28px 0;
}

.receipt-grid > div {
    padding: 16px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
}

.receipt-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.alert.success {
    border-color: rgba(177,224,110,.28);
    background: rgba(177,224,110,.08);
}

.activity-card {
    padding: 8px 24px;
}

.activity-list {
    display: grid;
}

.activity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

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

.activity-main {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.activity-main > div {
    min-width: 0;
}

.activity-main strong,
.activity-main small,
.activity-main time {
    display: block;
}

.activity-main small,
.activity-main time {
    color: var(--muted);
    margin-top: 3px;
    font-size: 12px;
}

.activity-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
}

.activity-amount {
    text-align: right;
    font-size: 19px;
    font-weight: 900;
}

.activity-amount.positive {
    color: var(--accent-strong);
}

.activity-amount.negative {
    color: #f0b5b5;
}

.activity-amount small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
}

.activity-list.compact .activity-row {
    padding: 13px 0;
}

@media (max-width: 700px) {
    .wallet-strip {
        align-items: flex-start;
        flex-direction: column;
    }

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