/* ============================================================
   SPEND MONEY GAME — 2026 CSS
   Brand Colors: #1a56db (Blue) | #29c18e (Green)
   Fonts: System stack only
   Layout: Sticky header + 3-column game area
============================================================ */

/* -------- VARIABLES -------- */
:root {
    --blue:       #1a56db;
    --blue-dark:  #1241b0;
    --blue-light: #dbeafe;
    --green:      #29c18e;
    --green-dark: #1fa073;
    --green-light:#d1fae5;
    --dark:       #0d1117;
    --dark-2:     #161b22;
    --dark-3:     #21262d;
    --slate:      #1e293b;
    --mid:        #475569;
    --muted:      #64748b;
    --border:     #e2e8f0;
    --bg:         #f8fafc;
    --white:      #ffffff;
    --red:        #ef4444;
    --gold:       #f59e0b;
    --purple:     #8b5cf6;
    --orange:     #f97316;
    --pink:       #ec4899;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Courier New', 'Courier Prime', monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
}

/* -------- RESET -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--slate);
    overflow-x: hidden;
}

#sgm-root { position: relative; }

/* ============================================================
   STICKY HEADER
============================================================ */
.sgm-sticky {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    padding: 10px 0;
}

.admin-bar .sgm-sticky { top: 32px; }

.sgm-sticky-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

/* Left: Level + XP */
.sgm-s-left { display: flex; flex-direction: column; gap: 6px; }

.sgm-level-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    width: fit-content;
}
.sgm-level-star { font-size: 14px; }

.sgm-xp-row { display: flex; align-items: center; gap: 8px; }
.sgm-xp-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
#sgm-xp-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--green), #4ade80);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.sgm-xp-val, #sgm-xp-val {
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
}

/* Center: Balance */
.sgm-s-center { text-align: center; }
.sgm-bal-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 1.5px; margin-bottom: 3px; }

.sgm-balance-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    font-family: var(--font-mono);
    transition: color 0.3s;
}

.sgm-prog-track {
    margin-top: 8px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
#sgm-prog-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 3px;
    transition: width 0.4s ease, background 0.5s;
}

/* Right: Stats */
.sgm-s-right { display: flex; gap: 16px; justify-content: flex-end; }
.sgm-s-stat { text-align: center; }
.sgm-s-stat strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.sgm-s-stat small { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 1px; }

/* ============================================================
   HERO SECTION
============================================================ */
.sgm-hero {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding: 40px 20px 60px;
}

.sgm-hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26, 86, 219, 0.15) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.sgm-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Breadcrumbs */
.sgm-crumbs {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sgm-crumbs a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.sgm-crumbs a:hover { color: var(--green); }
.sgm-crumbs span { opacity: 0.4; }
.sgm-crumbs span:last-child { opacity: 1; color: #fff; }

/* Hero Layout */
.sgm-hero-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.sgm-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.sgm-avatar {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid var(--blue);
    display: block;
    position: relative;
    z-index: 2;
}
.sgm-avatar-fallback {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    background: var(--dark-3);
    border: 3px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    z-index: 2;
}
.sgm-avatar-glow {
    position: absolute;
    inset: -8px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    opacity: 0.25;
    filter: blur(12px);
    z-index: 1;
}

.sgm-hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--green);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.sgm-h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.sgm-h1 em { font-style: normal; color: var(--blue); }
.sgm-hero-p {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 24px;
}
.sgm-hero-p strong { color: #fff; }

/* Hero Pills */
.sgm-hero-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.sgm-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 16px;
    text-align: center;
}
.sgm-pill strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}
.sgm-pill span { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 600; }

/* Mission Banner */
.sgm-mission-bar {
    background: linear-gradient(135deg, rgba(26,86,219,0.2), rgba(41,193,142,0.15));
    border: 1px solid rgba(26,86,219,0.35);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}
.sgm-mission-icon { font-size: 24px; }
.sgm-mission-text strong {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 3px;
}
.sgm-mission-text p { font-size: 15px; font-weight: 600; color: #fff; margin: 0; }
.sgm-mission-live {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* ============================================================
   GAME LAYOUT (3 COLUMNS)
============================================================ */
.sgm-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px 160px;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    align-items: start;
}

/* ---- PANELS (shared) ---- */
.sgm-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}
.sgm-panel-hd {
    font-size: 13px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sgm-hd-badge {
    font-size: 11px;
    font-weight: 700;
    background: var(--blue-light);
    color: var(--blue);
    padding: 2px 8px;
    border-radius: 20px;
}

/* ============================================================
   LEFT PANEL COMPONENTS
============================================================ */

/* Karma */
.sgm-karma-wrap { }
.sgm-karma-track {
    height: 14px;
    background: linear-gradient(90deg, #29c18e, #f59e0b, #ef4444);
    border-radius: 7px;
    position: relative;
    margin-bottom: 8px;
}
#sgm-karma-fill { display: none; } /* not used — pin moves instead */
#sgm-karma-pin {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 3px solid var(--dark);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left 0.6s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.sgm-karma-ends {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 10px;
}
.sgm-karma-msg {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
    padding: 8px;
    background: var(--bg);
    border-radius: 8px;
}

/* Challenges */
.sgm-challenge-item {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 10px;
    border-left: 3px solid var(--border);
    transition: border-color 0.3s;
}
.sgm-challenge-item.sgm-ch-done {
    border-left-color: var(--green);
    background: var(--green-light);
}
.sgm-ch-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}
.sgm-ch-checkmark { color: var(--green); }
.sgm-ch-bar-track {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.sgm-ch-bar-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s ease;
}
.sgm-challenge-item.sgm-ch-done .sgm-ch-bar-fill { background: var(--green); }
.sgm-ch-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Speed Run Timer */
.sgm-timer-panel { background: var(--dark); border-color: var(--dark-3); }
.sgm-timer-panel .sgm-panel-hd { color: #fff; }
.sgm-timer-desc { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.sgm-timer-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--green);
    text-align: center;
    font-family: var(--font-mono);
    letter-spacing: 2px;
    margin-bottom: 14px;
    line-height: 1;
    transition: color 0.3s;
}
.sgm-timer-num.sgm-timer-danger { color: var(--red); animation: pulse 0.5s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

.sgm-timer-btns { display: flex; gap: 8px; margin-bottom: 10px; }
.sgm-tbtn {
    flex: 1;
    padding: 9px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font);
    transition: opacity 0.2s, transform 0.1s;
}
.sgm-tbtn:active { transform: scale(0.97); }
.sgm-tbtn-go { background: var(--green); color: #fff; }
.sgm-tbtn-reset { background: rgba(255,255,255,0.1); color: #fff; }
.sgm-timer-msg { font-size: 12px; color: rgba(255,255,255,0.5); text-align: center; min-height: 16px; }

/* Achievements */
.sgm-ach-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.sgm-ach {
    aspect-ratio: 1;
    border-radius: 10px;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: default;
    transition: all 0.3s;
    position: relative;
}
.sgm-ach-locked { filter: grayscale(1); opacity: 0.35; }
.sgm-ach-unlocked {
    border-color: var(--gold);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 0 12px rgba(245,158,11,0.3);
}
.sgm-ach-unlocked::after {
    content: '';
    position: absolute;
    top: -4px; right: -4px;
    width: 10px; height: 10px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid #fff;
}
.sgm-ach[title] { cursor: help; }

/* ============================================================
   TOOLBAR
============================================================ */
.sgm-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.sgm-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}
.sgm-cat {
    padding: 7px 14px;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    white-space: nowrap;
}
.sgm-cat:hover { border-color: var(--blue); color: var(--blue); }
.sgm-cat.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.sgm-toolbar-right { display: flex; gap: 8px; align-items: center; }

.sgm-splurge-btn {
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--purple), #a855f6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.1s;
}
.sgm-splurge-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.sgm-splurge-btn:active { transform: scale(0.97); }

.sgm-sort {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate);
    background: var(--white);
    cursor: pointer;
    font-family: var(--font);
}

/* ============================================================
   PRODUCT GRID & CARDS
============================================================ */
.sgm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sgm-no-items {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
}

.sgm-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
.sgm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #c7d2fe;
}
.sgm-goal-card { border-color: var(--gold); }
.sgm-goal-card:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(245,158,11,0.2); }

.sgm-goal-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--gold);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 5px;
    z-index: 5;
    letter-spacing: 0.5px;
}

/* Category dot */
.sgm-card-cat-dot {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 5;
}
.sgm-cat-food       { background: var(--orange); }
.sgm-cat-tech       { background: var(--blue); }
.sgm-cat-luxury     { background: var(--purple); }
.sgm-cat-vehicle    { background: var(--red); }
.sgm-cat-realestate { background: var(--green); }
.sgm-cat-charity    { background: var(--pink); }
.sgm-cat-absurd     { background: var(--gold); }
.sgm-cat-neutral, .sgm-cat-custom { background: var(--muted); }

/* Card image */
.sgm-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg);
    position: relative;
    flex-shrink: 0;
}
.sgm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}
.sgm-card:hover .sgm-card-img img { transform: scale(1.06); }
.sgm-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,86,219,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.sgm-card:hover .sgm-card-overlay { opacity: 1; }
.sgm-card-overlay span {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Card info */
.sgm-card-info {
    padding: 10px 12px 6px;
    flex: 1;
}
.sgm-card-info h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    line-height: 1.3;
}
.sgm-card-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.sgm-card-cat-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.75;
}

/* Controls */
.sgm-card-ctrl {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    gap: 4px;
    padding: 8px 10px 10px;
    border-top: 1px solid var(--bg);
}
.sgm-buy, .sgm-sell {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.sgm-buy {
    background: var(--dark);
    color: #fff;
}
.sgm-buy:hover { background: var(--blue); }
.sgm-buy:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.sgm-buy.sgm-pricey-btn { background: #fee2e2; color: var(--red); font-size: 8px; font-weight: 800; border-radius: 6px; }

.sgm-sell {
    background: var(--bg);
    color: var(--muted);
    border: 1.5px solid var(--border);
}
.sgm-sell:hover:not(:disabled) { background: #fee2e2; color: var(--red); border-color: #fecaca; }
.sgm-sell:disabled { opacity: 0.35; cursor: not-allowed; }

.sgm-qty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sgm-qty {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}
.sgm-qty-box small { font-size: 9px; color: var(--muted); font-weight: 600; }

/* ============================================================
   RIGHT PANEL — CART
============================================================ */
.sgm-cart-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    margin-bottom: 12px;
}
.sgm-cart-empty-msg { font-size: 12px; color: var(--muted); text-align: center; padding: 20px; }
.sgm-cart-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px dashed var(--border);
    font-size: 12px;
}
.sgm-cart-entry-name { color: var(--slate); font-weight: 600; flex: 1; }
.sgm-cart-entry-qty {
    background: var(--blue-light);
    color: var(--blue);
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 11px;
    margin: 0 6px;
}
.sgm-cart-entry-price { color: var(--green-dark); font-weight: 700; }

.sgm-cart-totals { border-top: 1.5px solid var(--border); padding-top: 10px; }
.sgm-ct-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: var(--muted); }
.sgm-ct-row strong { font-weight: 800; color: var(--dark); }
.sgm-remain { color: var(--green) !important; }

/* Combo tracker */
.sgm-combo-wrap { display: flex; gap: 14px; align-items: center; }
.sgm-combo-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s, background 0.3s;
}
.sgm-combo-circle.sgm-combo-active {
    border-color: var(--orange);
    background: #fff7ed;
}
#sgm-combo-num { font-size: 20px; font-weight: 900; color: var(--dark); line-height: 1; }
.sgm-combo-circle small { font-size: 10px; color: var(--muted); font-weight: 600; }
.sgm-combo-info { flex: 1; }
#sgm-combo-msg { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.sgm-combo-track { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
#sgm-combo-fill { height: 100%; width: 0%; background: var(--orange); border-radius: 3px; transition: width 0.4s; }

/* What-if calculator */
.sgm-calc-intro { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.sgm-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sgm-calc-cell {
    background: var(--bg);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.sgm-calc-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.sgm-calc-cell strong { display: block; font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.sgm-calc-cell small { font-size: 10px; color: var(--muted); font-weight: 600; }

/* ============================================================
   DOCK
============================================================ */
.sgm-dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8000;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 60px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    width: calc(100% - 40px);
    max-width: 560px;
}
.sgm-dock-stats { display: flex; gap: 20px; flex: 1; }
.sgm-ds { text-align: center; }
.sgm-ds strong { display: block; font-size: 15px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.sgm-ds small { font-size: 10px; color: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: 0.5px; }

.sgm-checkout-btn {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(26,86,219,0.4);
}
.sgm-checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26,86,219,0.5); }

/* ============================================================
   CONTENT / SEO SECTION
============================================================ */
.sgm-content {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 70px 20px;
}
.sgm-content-inner {
    max-width: 820px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}
.sgm-content-inner h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.sgm-content-inner h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin: 40px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--blue);
}
.sgm-content-inner p { margin-bottom: 18px; }
.sgm-content-inner strong { color: var(--dark); }

/* Stat Grid */
.sgm-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 28px 0;
}
.sgm-stat-box {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 14px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.sgm-stat-box:hover { border-color: var(--blue); transform: translateY(-2px); }
.sgm-stat-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.sgm-stat-box strong { display: block; font-size: 22px; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.sgm-stat-box p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* Comparison table */
.sgm-compare-table {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0;
}
.sgm-ctr {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    align-items: center;
}
.sgm-ctr:last-child { border-bottom: none; }
.sgm-ctr-head { background: var(--bg); font-weight: 800; font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }
.sgm-win { color: var(--green-dark); font-weight: 700; font-size: 12px; }
.sgm-lose { color: var(--red); font-weight: 700; font-size: 12px; }

/* FAQ */
.sgm-faq { margin-top: 20px; }
.sgm-faq-item { border-bottom: 1px solid var(--border); }
.sgm-faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    font-family: var(--font);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
}
.sgm-faq-q:hover { color: var(--blue); }
.sgm-faq-ico { font-size: 20px; font-weight: 400; color: var(--blue); flex-shrink: 0; transition: transform 0.3s; }
.sgm-faq-item.open .sgm-faq-ico { transform: rotate(45deg); }
.sgm-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.sgm-faq-item.open .sgm-faq-a { max-height: 400px; }
.sgm-faq-a p { color: var(--mid); padding-bottom: 18px; font-size: 15px; line-height: 1.7; }

/* Disclaimer */
.sgm-disclaimer {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 14px 40px 14px 14px;
    border-radius: var(--radius);
    margin-top: 32px;
    font-size: 13px;
    position: relative;
    line-height: 1.6;
}
.sgm-disc-x {
    position: absolute;
    top: 10px; right: 10px;
    background: none; border: none;
    font-size: 16px; cursor: pointer; color: #ef4444; font-weight: 700;
}

/* ============================================================
   RELATED GAMES
============================================================ */
.sgm-related {
    background: var(--dark);
    padding: 60px 20px 100px;
    text-align: center;
}
.sgm-related-inner { max-width: 1100px; margin: 0 auto; }
.sgm-related h3 {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
}
.sgm-related-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.sgm-rel-card {
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    width: 260px;
    transition: border-color 0.2s, transform 0.2s;
}
.sgm-rel-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.sgm-rel-img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.sgm-rel-img img { width: 100%; height: 100%; object-fit: cover; }
.sgm-rel-ph { width: 56px; height: 56px; border-radius: 12px; background: var(--dark-3); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.sgm-rel-info { flex: 1; text-align: left; }
.sgm-rel-info h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.sgm-rel-amt { display: block; font-size: 12px; color: var(--green); font-weight: 700; margin-bottom: 3px; }
.sgm-rel-cta { font-size: 11px; color: var(--blue); font-weight: 700; }

/* ============================================================
   MODAL
============================================================ */
.sgm-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.sgm-hidden { display: none !important; }

.sgm-modal {
    background: #fff;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 28px;
    overflow-y: auto;
    position: relative;
    font-family: var(--font);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.sgm-modal-x {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--bg);
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--muted);
}

/* Quiz */
.sgm-quiz-head { margin-bottom: 20px; }
.sgm-quiz-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}
#sgm-quiz-fill { height: 100%; background: var(--blue); width: 10%; transition: width 0.4s; }
.sgm-quiz-head small { font-size: 11px; color: var(--muted); font-weight: 600; }

.sgm-quiz-question {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}
.sgm-quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.sgm-quiz-opt {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}
.sgm-quiz-opt:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }

/* Result */
.sgm-result-top { text-align: center; margin-bottom: 20px; }
.sgm-result-icon { font-size: 50px; margin-bottom: 10px; display: block; }
.sgm-result-top h2 { font-size: 24px; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.sgm-result-top p { font-size: 15px; color: var(--muted); }

.sgm-pers-card {
    background: linear-gradient(135deg, var(--blue-light), #ede9fe);
    border: 1.5px solid #c7d2fe;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}
.sgm-pers-card small { font-size: 10px; font-weight: 800; color: var(--blue); letter-spacing: 1.5px; display: block; margin-bottom: 6px; }
#sgm-pers-name { font-size: 22px; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
#sgm-pers-desc { font-size: 13px; color: var(--mid); line-height: 1.5; margin: 0; }

/* Receipt */
.sgm-receipt-wrap {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}
.sgm-receipt-items {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 14px;
    max-height: 160px;
    overflow-y: auto;
    background: #fff;
}
#sgm-receipt-hd { text-align: center; padding: 14px; background: var(--bg); }
#sgm-receipt-hd h3 { font-size: 16px; font-weight: 900; letter-spacing: 2px; margin-bottom: 4px; }
#sgm-receipt-hd p { font-size: 12px; color: var(--muted); }
#sgm-receipt-hd hr { border: none; border-top: 1px dashed var(--border); margin: 10px 0; }

.sgm-act-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    margin-bottom: 10px;
    transition: opacity 0.2s, transform 0.1s;
}
.sgm-act-btn:active { transform: scale(0.98); }
.sgm-act-download { background: var(--dark); color: #fff; }

/* Share */
.sgm-share-box { border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 16px; }
.sgm-share-lbl { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 1.5px; margin-bottom: 10px; display: block; text-align: center; }
.sgm-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sgm-sb {
    padding: 11px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: opacity 0.2s;
}
.sgm-sb:hover { opacity: 0.88; }
.sgm-sb-wa { background: #25D366; }
.sgm-sb-tw { background: #000; }
.sgm-sb-fb { background: #1877F2; }
.sgm-sb-tg { background: #0088cc; }
.sgm-sb-cp { background: var(--muted); grid-column: span 2; }

.sgm-modal-footer { display: flex; gap: 10px; }
.sgm-btn-keep {
    flex: 1;
    padding: 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    color: var(--muted);
}
.sgm-btn-restart {
    flex: 1;
    padding: 12px;
    background: var(--red);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    color: #fff;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
    .sgm-layout { grid-template-columns: 240px 1fr 240px; }
}

@media (max-width: 1024px) {
    .sgm-layout { grid-template-columns: 1fr; }
    .sgm-left, .sgm-right { display: none; }
    .sgm-grid { grid-template-columns: repeat(2, 1fr); }
    .sgm-sticky-inner { grid-template-columns: 1fr auto; }
    .sgm-s-left { display: none; }
}

@media (max-width: 768px) {
    .sgm-hero-layout { flex-direction: column; text-align: center; }
    .sgm-avatar { width: 100px; height: 100px; }
    .sgm-avatar-fallback { width: 100px; height: 100px; }
    .sgm-hero-pills { justify-content: center; }
    .sgm-hero-p { margin: 0 auto 20px; }
    .sgm-balance-num { font-size: 22px; }
    .sgm-sticky-inner { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
    .sgm-s-right { display: none; }
    .sgm-s-center { width: 100%; }
    .sgm-toolbar { flex-direction: column; align-items: stretch; }
    .sgm-cats { justify-content: flex-start; }
    .sgm-toolbar-right { justify-content: space-between; }
}

@media (max-width: 480px) {
    .sgm-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sgm-dock { bottom: 10px; padding: 10px 14px; gap: 10px; }
    .sgm-dock-stats { gap: 12px; }
    .sgm-checkout-btn { font-size: 12px; padding: 10px 14px; }
    .sgm-hero { padding: 24px 14px 40px; }
    .sgm-h1 { font-size: 24px; }
    .sgm-modal { padding: 20px 16px; }
    .sgm-quiz-question { font-size: 17px; }
}