/* ===========================
   GOZONKS — Global CSS (Full Optimized Edition)
   =========================== */

/* 1) THEME TOKENS */
:root {
  --bg: #070708;
  --bg2: #0b0b0f;
  --panel: rgba(255, 255, 255, .03);
  --panel-2: rgba(255, 255, 255, .02);
  --card: #101015;
  --text: #e9e9f0;
  --muted: #b8b8c7;
  --line: rgba(255, 255, 255, .08);
  --red: #18d38a;   /* Emerald */
  --red2: #f7c84b;  /* Gold */
  --glow: rgba(24, 211, 138, .18);
  --shadow: 0 18px 60px rgba(0, 0, 0, .55);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, .45);
  --radius: 18px;
  --radius2: 22px;
  --max: 960px;
}

/* 2) BASE / RESET */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 16% 10%, rgba(24, 211, 138, .13), transparent 62%),
    radial-gradient(780px 520px at 88% 18%, rgba(247, 200, 75, .10), transparent 60%),
    radial-gradient(520px 340px at 55% 0%, rgba(255, 255, 255, .035), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.value { font-weight: 900; font-size: 1.35rem; letter-spacing: -.2px; }
.center { text-align: center; }

hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* 3) LAYOUT & CONTAINER */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: radial-gradient(650px 260px at 18% 20%, rgba(24, 211, 138, .10), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  box-shadow: var(--shadow-soft);
}

/* 4) CHIPS / TAGS */
.tag, .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .28rem .65rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  color: var(--muted); font-size: 12.5px; font-weight: 700; transition: 0.2s;
}
.tag:hover, .pill:hover { border-color: rgba(24, 211, 138, .35); color: var(--text); box-shadow: 0 0 0 6px rgba(24, 211, 138, .08); }

/* 5) NAVBAR (GOZONKS v2) */
.nav {
  position: sticky; top: 0; z-index: 9999;
  backdrop-filter: blur(12px); background: rgba(7, 7, 8, .62);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(24, 211, 138, .16);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: .75rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand img { height: 40px; filter: drop-shadow(0 8px 18px rgba(24, 211, 138, .18)); }

.wordmark {
  position: relative; font-weight: 1000; letter-spacing: 1.6px; font-size: 18px; color: #f3f3f7;
  text-shadow: 0 0 10px rgba(24, 211, 138, .20), 0 0 26px rgba(247, 200, 75, .12);
}
.wordmark span {
  background: linear-gradient(135deg, var(--red) 0%, var(--red2) 55%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { color: rgba(184, 184, 199, .95); font-weight: 750; font-size: 13.5px; transition: 0.2s; }
.nav-links a.active { border-bottom: 2px solid var(--red2); }
.nav-links .btnnav { padding: .55rem .9rem; border-radius: 999px; border: 1px solid rgba(24, 211, 138, .30); background: rgba(24, 211, 138, .10); font-weight: 800; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bar { display: block; width: 20px; height: 2px; background: #fff; margin: 5px 0; border-radius: 10px; transition: 0.2s; }

/* 6) CARDS / PANELS */
.card, .history, .transfer-history, .redeem-history, .info-box, .transfer-box {
  border: 1px solid var(--line); border-radius: var(--radius2);
  background: radial-gradient(520px 200px at 12% 10%, rgba(24,211,138,.08), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  box-shadow: var(--shadow-soft); padding: 16px; margin-bottom: 16px;
}
.history-item, .history-row { padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.history-item:last-child { border-bottom: none; }

/* 7) ALERTS */
.alert, .message { padding: .85rem 1rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .02); }
.alert.ok { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); }
.alert.err { border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .08); }

/* 8) BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: .75rem 1rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03); color: var(--text); font-weight: 800; cursor: pointer; transition: .2s;
}
.btn.primary { background: linear-gradient(135deg, var(--red), var(--red2)); border-color: rgba(24, 211, 138, .45); }
.btn.danger { background: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .35); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* 9) FORMS */
input, select, textarea { width: 100%; background: rgba(0, 0, 0, .35); color: var(--text); border: 1px solid rgba(255, 255, 255, .10); border-radius: 16px; padding: .75rem .95rem; outline: none; }
input:focus { border-color: var(--red2); box-shadow: 0 0 0 6px rgba(247, 200, 75, .08); }
label { display: block; font-weight: 800; margin-bottom: 6px; }

/* 10) TABLES */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius2); overflow-x: auto; background: rgba(255, 255, 255, .01); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
thead th { text-align: left; background: rgba(0, 0, 0, .35); padding: 12px 14px; color: rgba(255,255,255,.78); }
tbody td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.rank { width: 64px; font-weight: 900; color: rgba(255,255,255,.72); }

/* 11) MODAL */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .8); display: none; align-items: center; justify-content: center; z-index: 10000; }
.modal-content { width: min(520px, 92vw); border: 1px solid var(--line); border-radius: var(--radius2); background: rgba(7, 7, 8, .92); backdrop-filter: blur(10px); padding: 16px; }
.modal-actions { margin-top: 14px; display: flex; gap: 8px; justify-content: flex-end; }

/* 12) ADS */
.ads { margin: 7px auto; display: grid; gap: 5px; justify-content: center; }
.adbox { width: 100%; max-width: 320px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }

/* 13) NAV MOBILE FIX */
@media (max-width: 860px) {
  body { padding-top: 66px; }
  .nav { position: fixed !important; top: 0; left: 0; right: 0; }
  .nav-toggle { display: flex; }
  .wordmark { position: absolute; left: 50%; transform: translateX(-50%); font-size: 17px; }
  
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; background: rgba(7, 7, 8, .96); padding: 10px 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.06); width: 100%; }
  
  /* Bagian .mobile lu gabung ke sini logic-nya */
  .mobile.show { display: grid; gap: 10px; position: fixed; top: 66px; left:0; right:0; background: rgba(7,7,8,.95); padding: 16px; z-index: 9998; }
}

/* 14) STAT GRIDS */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }

/* 15) FEATURE LIST */
.feature-list { display: grid; gap: 12px; list-style: none; padding: 0; }
@media (min-width: 860px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-item { 
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; 
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 16px;
}
.feature-item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: linear-gradient(var(--red), var(--red2)); }
.fi-ico { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.03); border-radius: 14px; border: 1px solid var(--line); }
.fi-title { font-weight: 900; margin-bottom: 4px; }
.fi-desc { color: var(--muted); font-size: 14px; }

/* 16) HERO LANDING */
.hero.hero-landing { 
  padding: 56px 16px; text-align: center; margin-bottom: 20px;
  background: radial-gradient(760px 320px at 20% 10%, rgba(24,211,138,.16), transparent), linear-gradient(180deg, #0a0c0b, #0f1216);
  border-bottom: 1px solid var(--line);
}
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(247,200,75,.1); border: 1px solid rgba(247,200,75,.2); font-size: 12px; font-weight: 800; margin-bottom: 16px; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--red2); border-radius: 50%; box-shadow: 0 0 10px var(--red2); }
.hero-title { font-size: clamp(26px, 5vw, 44px); font-weight: 1000; line-height: 1.1; margin-bottom: 15px; }
.hero-title-accent { color: var(--red); text-shadow: 0 0 15px var(--glow); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* 17) NAV ACTIONS & DANA KAGET */
.nav-actions { border-top: 1px solid var(--line); background: rgba(7,7,8,.35); backdrop-filter: blur(10px); }
.nav-actions-inner { max-width: var(--max); margin: 0 auto; padding: 10px 16px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.nav-actions-inner::-webkit-scrollbar { display: none; }

.chart-controls { display: flex; gap: 8px; margin-bottom: 12px; }
.chart-controls button { padding: 6px 12px; border-radius: 6px; background: #f43f5e; color: #fff; border: none; cursor: pointer; }

.daget-alert {
  max-width: 520px; margin: 14px auto; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,45,85,.35);
  background: linear-gradient(135deg, rgba(255,45,85,.1), rgba(255,77,109,.05));
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.daget-btn { padding: .6rem .9rem; border-radius: 12px; background: linear-gradient(135deg, #ff2d55, #ff4d6d); color: #fff; font-weight: 900; }

/* Legacy Hide */
.top-nav { display: none !important; }
