/* ========================================================
   GOZONKS — Global CSS (UI-Friendly & 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;
  
  /* UI-Friendly Text: Mengurangi pure white agar tidak membuat mata lelah */
  --text: #f1f1f6;
  --muted: #9fa0b0; 
  --line: rgba(255, 255, 255, .06);
  
  /* Semantic Naming: Mengubah nama membingungkan (--red padahal warna hijau) */
  --accent-emerald: #18d38a;   
  --accent-gold: #f7c84b;      
  --brand-danger: #ff2d55;     /* Merah asli untuk tombol bahaya/dana kaget */
  --brand-danger-soft: rgba(255, 45, 85, 0.1);
  
  --glow: rgba(24, 211, 138, .15);
  --shadow: 0 20px 50px rgba(0, 0, 0, .6);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, .4);
  
  /* Border Radius Konstan & Proporsional */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max: 960px;
  
  /* Timing transisi seragam */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2) BASE / RESET */
* { 
  box-sizing: border-box; 
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 16% 10%, rgba(24, 211, 138, .11), transparent 62%),
    radial-gradient(780px 520px at 88% 18%, rgba(247, 200, 75, .08), transparent 60%),
    radial-gradient(520px 340px at 55% 0%, rgba(255, 255, 255, .02), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.5; /* Ditinggikan sedikit agar lebih enak dibaca */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.muted { color: var(--muted); }
.value { font-weight: 800; font-size: 1.35rem; letter-spacing: -.5px; color: #fff; }
.center { text-align: center; }

hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* 3) LAYOUT & CONTAINER */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(650px 260px at 18% 20%, rgba(24, 211, 138, .06), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .005));
  box-shadow: var(--shadow-soft);
}

/* 4) CHIPS / TAGS */
.tag, .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .35rem .75rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer;
}
.tag:hover, .pill:hover { 
  border-color: rgba(24, 211, 138, .4); 
  color: #fff; 
  background: rgba(24, 211, 138, .05);
  box-shadow: 0 0 0 4px rgba(24, 211, 138, .1); 
}

/* 5) NAVBAR */
.nav {
  position: sticky; top: 0; z-index: 9999;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 7, 8, .75);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: .85rem 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand img { height: 36px; filter: drop-shadow(0 4px 12px var(--glow)); }

.wordmark {
  position: relative; font-weight: 900; letter-spacing: 1px; font-size: 19px; color: #ffffff;
}
.wordmark span {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-gold) 60%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 4px 0; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent-gold); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; 
  background: var(--accent-gold); border-radius: 2px;
}
.nav-links .btnnav { 
  padding: .5rem 1rem; border-radius: 999px; 
  border: 1px solid rgba(24, 211, 138, .25); background: rgba(24, 211, 138, .08); 
  font-weight: 700; color: var(--accent-emerald);
}
.nav-links .btnnav:hover {
  background: var(--accent-emerald); color: #070708; box-shadow: 0 0 15px var(--glow);
}

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; align-items: center; justify-content: center; }

/* 6) CARDS / PANELS */
.card, .history, .transfer-history, .redeem-history, .info-box, .transfer-box {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: radial-gradient(520px 200px at 12% 10%, rgba(24,211,138,.04), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .005));
  box-shadow: var(--shadow-soft); padding: 20px; margin-bottom: 20px;
}
.history-item, .history-row { padding: 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, .04); display: flex; justify-content: space-between; align-items: center; }
.history-item:last-child, .history-row:last-child { border-bottom: none; }

/* 7) ALERTS */
.alert, .message { padding: 1rem; border-radius: var(--radius-md); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 14px; }
.alert.ok { border-color: rgba(34, 197, 94, .25); background: rgba(34, 197, 94, .05); color: #4ade80; }
.alert.err { border-color: rgba(239, 68, 68, .25); background: rgba(239, 68, 68, .05); color: #f87171; }

/* 8) BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: .75rem 1.25rem; border-radius: var(--radius-md); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 700; cursor: pointer; font-size: 14px;
}
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .09); border-color: rgba(255,255,255,.2); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }

.btn.primary { 
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-gold)); 
  border: none; color: #070708; font-weight: 800;
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 4px 20px rgba(24, 211, 138, 0.25); }

.btn.danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .25); color: #f87171; }
.btn.danger:hover:not(:disabled) { background: rgba(239, 68, 68, .25); color: #fff; }

.btn:disabled { opacity: .4; cursor: not-allowed; }

/* 9) FORMS */
input, select, textarea { 
  width: 100%; background: #00000050; color: #fff; 
  border: 1px solid var(--line); border-radius: var(--radius-md); 
  padding: .75rem .95rem; outline: none; font-size: 14px;
}
input:focus, select:focus, textarea:focus { 
  border-color: rgba(247, 200, 75, .5); 
  box-shadow: 0 0 0 4px rgba(247, 200, 75, .08); 
  background: #00000080;
}
label { display: block; font-weight: 700; font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

/* 10) TABLES */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-md); overflow-x: auto; background: rgba(0,0,0,0.2); }
table { width: 100%; border-collapse: collapse; min-width: 500px; font-size: 14px; }
thead th { text-align: left; background: rgba(0, 0, 0, .45); padding: 14px; color: var(--muted); font-weight: 700; }
tbody td { padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, .03); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.01); }
.rank { width: 64px; font-weight: 800; color: var(--accent-gold); }

/* 11) MODAL */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: none; align-items: center; justify-content: center; z-index: 10000; backdrop-filter: blur(4px); }
.modal-content { width: min(520px, 92vw); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #0b0b0f; padding: 24px; box-shadow: var(--shadow); }
.modal-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* 12) ADS */
.ads { margin: 12px auto; display: grid; gap: 8px; justify-content: center; }
.adbox { width: 100%; max-width: 320px; background: rgba(255,255,255,.01); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; font-size: 11px; color: var(--muted); }

/* 13) NAV MOBILE RESPONSIVE */
@media (max-width: 860px) {
  body { padding-top: 60px; }
  .nav { position: fixed !important; top: 0; left: 0; right: 0; }
  .nav-toggle { display: flex; flex-direction: column; gap: 4px; }
  .nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
  .wordmark { position: absolute; left: 50%; transform: translateX(-50%); font-size: 18px; }
  
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; background: rgba(11, 11, 15, .98); padding: 12px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 4px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.03); width: 100%; border-radius: var(--radius-sm); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(247, 200, 75, 0.05); }
  .nav-links .btnnav { text-align: center; margin-top: 8px; padding: 10px; }
  
  .mobile.show { display: grid; gap: 10px; position: fixed; top: 60px; left:0; right:0; background: rgba(7,7,8,.98); padding: 16px; z-index: 9998; border-bottom: 1px solid var(--line); }
}

/* 14) STAT GRIDS */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@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,.02); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; }
.stat-card:hover { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); }

/* 15) FEATURE LIST */
.feature-list { display: grid; gap: 14px; 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: 14px; padding: 16px; 
  background: rgba(255,255,255,.01); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.feature-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 99px; background: linear-gradient(var(--accent-emerald), var(--accent-gold)); }
.fi-ico { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.03); border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--accent-emerald); }
.fi-title { font-weight: 800; margin-bottom: 4px; font-size: 15px; }
.fi-desc { color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* 16) HERO LANDING */
.hero.hero-landing { 
  padding: 64px 20px; text-align: center; margin-bottom: 24px;
  background: radial-gradient(760px 320px at 20% 10%, rgba(24,211,138,.12), transparent), linear-gradient(180deg, #0a0c0b, #0f1216);
  border-bottom: 1px solid var(--line);
}
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(247,200,75,.06); border: 1px solid rgba(247,200,75,.15); font-size: 12px; font-weight: 700; color: var(--accent-gold); margin-bottom: 20px; }
.hero-badge .dot { width: 6px; height: 6px; background: var(--accent-gold); border-radius: 50%; box-shadow: 0 0 8px var(--accent-gold); }
.hero-title { font-size: clamp(28px, 5vw, 46px); font-weight: 900; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px; }
.hero-title-accent { color: var(--accent-emerald); text-shadow: 0 0 20px rgba(24, 211, 138, 0.2); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* 17) NAV ACTIONS & DANA KAGET */
.nav-actions { border-top: 1px solid var(--line); background: rgba(7,7,8,.5); backdrop-filter: blur(10px); }
.nav-actions-inner { max-width: var(--max); margin: 0 auto; padding: 12px 20px; 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 14px; border-radius: var(--radius-sm); 
  background: rgba(255, 255, 255, 0.05); color: var(--text); 
  border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 13px;
}
.chart-controls button:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.chart-controls button.active { background: var(--brand-danger); color: #fff; border: none; }

/* Dana Kaget Alert: Didesain ulang agar terlihat premium, tidak monoton */
.daget-alert {
  max-width: 520px; margin: 20px auto; padding: 14px 18px; border-radius: var(--radius-md); 
  border: 1px solid rgba(255, 45, 85, .25);
  background: linear-gradient(135deg, rgba(255, 45, 85, .08), rgba(255, 77, 109, .03));
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.05);
}
.daget-text { font-size: 14px; font-weight: 600; }
.daget-btn { 
  padding: .6rem 1.1rem; border-radius: var(--radius-md); 
  background: linear-gradient(135deg, var(--brand-danger), #ff4d6d); 
  color: #fff; font-weight: 800; font-size: 13px; border: none; cursor: pointer;
}
.daget-btn:hover { filter: brightness(1.1); box-shadow: 0 4px 15px rgba(255, 45, 85, 0.3); transform: translateY(-1px); }

/* Legacy Hide */
.top-nav { display: none !important; }