/* =========================================================
   RO GAMES — design tokens
   Concept: "charging up" — top-up as literal energy/charge.
   Signature: notch-cut cards + diagonal charge-stripe accents.
========================================================= */
:root {
    --bg: #0b0c10;
    --surface: #15171f;
    --surface-2: #1c1f2a;
    --line: #262a36;
    --text: #f2f3f7;
    --text-muted: #8a8f9f;
    --ember: #ff5a1f;
    --ember-2: #ff8a3d;
    --volt: #c6ff3d;
    --danger: #ff4d6d;
    --radius: 10px;
    --notch: 14px;
    --font-display: "Rajdhani", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Notch-cut shape used on cards, buttons, banner frame — the page's signature */
.notch {
    clip-path: polygon(
        0 0, calc(100% - var(--notch)) 0, 100% var(--notch),
        100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch))
    );
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 12, 16, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 34px; width: auto; }
.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: var(--text);
}
.logo-text span { color: var(--ember); }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color .15s ease;
    display: flex; align-items: center; gap: 6px;
}
.nav-links a:hover { color: var(--volt); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(90deg, var(--ember), var(--ember-2));
    color: #17110b;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }

/* ---------- Hero / Banner slider ---------- */
.hero {
    padding: 28px 0 8px;
    position: relative;
}
.hero-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 21 / 8;
    background: var(--surface);
    border: 1px solid var(--line);
}
.hero-frame::after {
    /* diagonal charge stripe */
    content: "";
    position: absolute;
    left: -10%;
    bottom: -30%;
    width: 55%;
    height: 160%;
    background: linear-gradient(100deg, transparent 40%, rgba(198,255,61,0.10) 48%, transparent 56%);
    pointer-events: none;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-empty {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-display);
    gap: 8px;
    text-align: center;
    padding: 20px;
}
.hero-dots {
    display: flex; gap: 6px; justify-content: center; margin-top: 12px;
}
.hero-dots button {
    width: 24px; height: 4px; border: none; background: var(--line); cursor: pointer;
}
.hero-dots button.active { background: var(--volt); }

/* ---------- Section headers ---------- */
.section { padding: 34px 0; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-bottom: 18px;
    border-left: 3px solid var(--ember);
    padding-left: 12px;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
}
.section-head .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ---------- Grids / product cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--ember); }
.card .thumb {
    aspect-ratio: 1/1;
    background: var(--surface-2);
    overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .name {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    color: var(--text);
}

/* ---------- Trust / feature strip ---------- */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.feature-item {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 18px;
}
.feature-item .icon {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,90,31,0.12);
    color: var(--ember);
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
}
.feature-item h4 {
    font-family: var(--font-display);
    margin: 0 0 6px;
    font-size: 16px;
}
.feature-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Admin shared look ---------- */
.admin-body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    margin: 0;
}
.admin-shell { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.admin-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 24px;
    margin-bottom: 20px;
}
.admin-card h2 {
    font-family: var(--font-display);
    margin-top: 0;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--ember);
    padding-left: 10px;
}
label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; margin-top: 14px; }
input[type=text], input[type=password], input[type=file] {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 14px;
}
input:focus { outline: 2px solid var(--volt); outline-offset: 1px; }
.alert {
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    border-left: 3px solid var(--volt);
    background: rgba(198,255,61,0.08);
}
.alert.error { border-color: var(--danger); background: rgba(255,77,109,0.08); }
.banner-manage-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    margin-bottom: 8px;
    background: var(--surface-2);
}
.banner-manage-item img { width: 90px; height: 40px; object-fit: cover; }
.banner-manage-item .grow { flex: 1; font-size: 13px; color: var(--text-muted); word-break: break-all; }
.login-wrap {
    max-width: 380px; margin: 90px auto; padding: 30px;
    background: var(--surface); border: 1px solid var(--line);
}
.login-wrap h1 {
    font-family: var(--font-display); text-align: center;
    letter-spacing: 0.5px;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--text-muted); font-size: 13px; }
.footer-social a:hover { color: var(--volt); }

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C4A);
    color: #08150e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    z-index: 60;
}
.wa-float:hover { filter: brightness(1.08); }

/* ---------- Admin: stat cards ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 16px;
}
.stat-card .num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--volt);
    line-height: 1;
}
.stat-card .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}
.stat-card.warn .num { color: var(--ember); }

/* ---------- Admin: tab navigation ---------- */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}
.admin-tab-btn {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 9px 16px;
    cursor: pointer;
}
.admin-tab-btn:hover { color: var(--text); }
.admin-tab-btn.active { color: #17110b; background: linear-gradient(90deg, var(--ember), var(--ember-2)); border-color: transparent; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Admin: product manager table ---------- */
.product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    margin-bottom: 8px;
}
.product-row img { width: 46px; height: 46px; object-fit: cover; }
.product-row .grow { flex: 1; }
.product-row .grow .pname { font-weight: 600; font-size: 14px; }
.product-row .grow .ptype {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.badge {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    text-transform: uppercase;
    color: var(--text-muted);
}
.badge.on { color: var(--volt); border-color: var(--volt); }
.badge.off { color: var(--danger); border-color: var(--danger); }

.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 160px; }

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .section-head { flex-direction: column; align-items: flex-start; }
}
