:root {
    --bg: #0b0f1a;
    --surface: #141b2d;
    --surface2: #1c2540;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --primary: #7c3aed;
    --accent: #06b6d4;
    --ok: #22c55e;
    --warn: #f59e0b;
    --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: radial-gradient(ellipse at top, #1a1040 0%, var(--bg) 55%);
    color: var(--text);
    min-height: 100vh;
}

.gs-container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.gs-header {
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11,15,26,.85);
}
.gs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}
.gs-logo {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.gs-logo-icon { font-size: 1.4rem; }

.gs-hero { padding: 3rem 0 2rem; text-align: center; }
.gs-badge {
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: rgba(124,58,237,.2);
    color: #c4b5fd;
    font-size: .85rem;
    margin-bottom: 1rem;
}
.gs-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; }
.gs-hero-sub { color: var(--muted); margin-top: .75rem; max-width: 520px; margin-inline: auto; }

.gs-main { padding-bottom: 4rem; }
.gs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.gs-card {
    background: linear-gradient(160deg, var(--surface2), var(--surface));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.gs-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.gs-card-featured { border-color: rgba(124,58,237,.45); }
.gs-card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: .7rem;
    background: var(--primary);
    padding: .2rem .55rem;
    border-radius: 6px;
    font-weight: 600;
    z-index: 2;
}
.gs-card-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2.25rem 1.5rem 1.5rem;
    background: radial-gradient(ellipse at center, rgba(124,58,237,.12) 0%, transparent 70%);
}
.gs-card-logo {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    background: rgba(0,0,0,.35);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 1rem;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.gs-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gs-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .65rem;
    padding: 0 1.25rem 1.25rem;
    flex: 1;
}
.gs-card-body h2 { font-size: 1.25rem; }
.gs-card-tagline { color: var(--accent); font-size: .9rem; }
.gs-card-desc { color: var(--muted); font-size: .9rem; flex: 1; line-height: 1.45; max-width: 100%; }
.gs-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .35rem;
}
.gs-price { font-size: 1.5rem; font-weight: 700; }
.gs-duration { color: var(--muted); font-size: .9rem; }
.gs-stock { font-size: .85rem; }
.gs-stock.in { color: var(--ok); }
.gs-stock.out { color: var(--warn); }

.gs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .95rem;
}
.gs-btn-primary { background: linear-gradient(135deg, var(--primary), #5b21b6); color: #fff; }
.gs-btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.15); color: var(--text); }
.gs-card-body .gs-btn-block { width: 100%; margin-top: .25rem; }
.gs-btn-block { width: 100%; margin-top: .25rem; }
.gs-btn:disabled { opacity: .5; cursor: not-allowed; }

.gs-footer {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.5rem 0;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}
.gs-empty {
    text-align: center;
    padding: 3rem;
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--muted);
}

.gs-header-nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.gs-balance-pill {
    background: rgba(34,197,94,.15);
    color: var(--ok);
    padding: .4rem .75rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}
.gs-btn-sm-admin { font-size: .8rem; opacity: .7; }
.gs-buy-form { width: 100%; }
.gs-card-body .gs-btn-ghost { margin-top: .35rem; }

.gs-alert {
    padding: .85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.gs-alert-ok { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.gs-alert-err { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }

.gs-auth-page { padding: 2rem 0 4rem; display: flex; justify-content: center; }
.gs-auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.gs-auth-box h1 { margin-bottom: .5rem; }
.gs-auth-foot { margin-top: 1.25rem; text-align: center; color: var(--muted); font-size: .9rem; }
.gs-auth-foot a { color: var(--accent); }
.gs-muted { color: var(--muted); }
.gs-hint { margin-bottom: 1.5rem; font-size: .9rem; }

.gs-form label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .85rem; }
.gs-form input {
    width: 100%;
    padding: .65rem .75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: #111827;
    color: var(--text);
    font-family: inherit;
}

.gs-account-page { padding-bottom: 4rem; }
.gs-account-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 1.5rem 0 1rem;
}
.gs-balance-card {
    background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(6,182,212,.2));
    border: 1px solid rgba(124,58,237,.4);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    text-align: center;
    min-width: 200px;
}
.gs-balance-card span { display: block; color: var(--muted); font-size: .85rem; }
.gs-balance-card strong { display: block; font-size: 2rem; margin: .35rem 0 1rem; }
.gs-account-page h2 { margin: 2rem 0 1rem; font-size: 1.15rem; }
.gs-table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08); }
.gs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.gs-table th, .gs-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.gs-table th { color: var(--muted); font-weight: 500; }
.gs-amt-plus { color: var(--ok); }
.gs-amt-minus { color: #f87171; }

@media (max-width: 600px) {
    .gs-header-inner { flex-direction: column; gap: .75rem; align-items: stretch; }
    .gs-header-nav { justify-content: center; }
}
