/* ===========================
   GOZONKS — Global CSS (Ramadhan & Idul Fitri Vibes)
   =========================== */

/* ===========================
   1) THEME TOKENS
   =========================== */
:root{
  /* base */
  --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);

  /* Ramadhan/Eid palette (tetap pakai nama var lama biar gak perlu ubah HTML) */
  --red:#18d38a;   /* jadi emerald */
  --red2:#f7c84b;  /* jadi 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,
    "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);

  /* Ramadhan night vibe: emerald + gold soft glow, tanpa norak */
  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;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.muted{ color:var(--muted); }
.value{ font-weight:800; }

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

.center{ text-align:center; }

/* ===========================
   3) LAYOUT
   =========================== */
.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%),
    radial-gradient(520px 240px at 92% 12%, rgba(247,200,75,.07), transparent 62%),
    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;
}

.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);

  /* ramadhan accent line */
  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;
}

/* left: brand icon */
.brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}
.brand img{
  height:40px;
  width:auto;
  filter: drop-shadow(0 8px 18px rgba(24,211,138,.18));
}

/* wordmark (kalau masih dipakai teks) */
.wordmark{
  position:relative;
  font-weight: 1000;
  letter-spacing: 1.6px;
  font-size: 18px;
  white-space: nowrap;

  color:#f3f3f7;

  text-shadow:
    0 0 10px rgba(24,211,138,.20),
    0 0 26px rgba(247,200,75,.12),
    0 0 44px rgba(24,211,138,.08);

  filter: drop-shadow(0 6px 14px rgba(0,0,0,.6));
  transition: transform .2s ease, text-shadow .2s ease, opacity .2s ease;
}

.wordmark span{
  position:relative;
  background: linear-gradient(135deg, rgba(24,211,138,1) 0%, rgba(247,200,75,1) 55%, rgba(255,255,255,.92) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

  text-shadow:
    0 0 10px rgba(24,211,138,.30),
    0 0 28px rgba(247,200,75,.16);
}

.wordmark span::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent 42%, rgba(255,255,255,.14), transparent 62%);
  opacity:.12;
  pointer-events:none;
}

@media (hover:hover){
  .wordmark:hover{
    transform: translateY(-1px);
    text-shadow:
      0 0 14px rgba(24,211,138,.34),
      0 0 34px rgba(247,200,75,.18),
      0 0 64px rgba(24,211,138,.12);
  }
}

@media (max-width:760px){
  .wordmark{
    font-size:17px;
    letter-spacing:1.4px;
    opacity:.95;
  }
}

.nav-right{
  display:flex;
  align-items:center;
  gap:14px;
  flex:0 0 auto;
}

/* links desktop */
.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;

  padding: .55rem .25rem;
  border-bottom: 2px solid transparent;

  transition: color .15s ease, border-color .15s ease, text-shadow .15s ease;
}

.nav-links a:hover{
  color: rgba(233,233,240,.98);
  border-color: rgba(24,211,138,.30);
  text-shadow: 0 0 16px rgba(24,211,138,.10);
}

.nav-links a.active{
  color: rgba(233,233,240,.98);
  border-color: rgba(247,200,75,.80);
}

/* nav CTA */
.nav-links .btnnav{
  padding:.55rem .9rem;
  border-radius:999px;
  border:1px solid rgba(24,211,138,.30);
  background: rgba(24,211,138,.10);
  color: rgba(233,233,240,.98);
  font-weight:800;
}
.nav-links .btnnav:hover{
  border-color: rgba(247,200,75,.55);
  box-shadow: 0 0 0 6px rgba(247,200,75,.08);
}

/* toggle button */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;

  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);

  cursor:pointer;
  align-items:center;
  justify-content:center;

  /* little glow */
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.nav-toggle .bar{
  display:block;
  width:20px;
  height:2px;
  background: rgba(233,233,240,.95);
  margin:5px 0;
  border-radius:10px;
  transition: transform .2s ease, opacity .2s ease;
}

/* mobile navbar */
@media (max-width: 760px){
  .nav-toggle{ display:flex; }

  .nav-inner{
    position:relative;
    justify-content:space-between;
  }

  .wordmark{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    max-width:58vw;
    overflow:hidden;
    text-overflow: ellipsis;
    opacity:1;
  }

  .nav-links{
    position:absolute;
    left:0;
    right:0;
    top:100%;

    display:grid;
    gap:0;
    padding:8px 0;

    background: rgba(7,7,8,.94);
    border-bottom: 1px solid rgba(255,255,255,.08);

    /* subtle eid accent */
    box-shadow:
      0 18px 40px rgba(0,0,0,.35),
      inset 0 1px 0 rgba(247,200,75,.14);

    transform: translateY(-8px);
    opacity:0;
    pointer-events:none;

    transition: transform .18s ease, opacity .18s ease;
  }

  .nav-links a{
    padding:14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .nav.open .nav-links{
    transform: translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  /* hamburger -> X (tetap yang lama dulu) */
  .nav.open .nav-toggle[aria-expanded="true"] .bar:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }
  .nav.open .nav-toggle[aria-expanded="true"] .bar:nth-child(2){
    opacity:0;
  }
  .nav.open .nav-toggle[aria-expanded="true"] .bar:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }
}

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

/* ===========================
   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%),
    radial-gradient(460px 200px at 96% 18%, rgba(247,200,75,.06), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));

  box-shadow: var(--shadow-soft);
  padding:16px;
}

.history-item,
.history-row{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.history-item:last-child,
.history-row:last-child{
  border-bottom:none;
}

/* ===========================
   7) ALERTS / MESSAGE
   =========================== */
.alert,
.message{
  padding:.85rem 1rem;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.88);
}

.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:hover{
  transform: translateY(-1px);
  border-color: rgba(24,211,138,.35);
  box-shadow: 0 0 0 6px rgba(24,211,138,.08);
}

/* Primary jadi emerald -> gold */
.btn.primary{
  background: linear-gradient(135deg, rgba(24,211,138,.96), rgba(247,200,75,.82));
  border-color: rgba(24,211,138,.45);
  box-shadow: 0 18px 38px rgba(24,211,138,.14);
}

.btn.primary:hover{
  box-shadow:
    0 0 0 6px rgba(247,200,75,.10),
    0 18px 38px rgba(24,211,138,.16);
}

.btn.secondary{ background: rgba(255,255,255,.02); }

.btn.danger{
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.35);
}

.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
}

/* ===========================
   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;
  font-size:14px;
  outline:none;
}

input:focus,
select:focus,
textarea:focus{
  border-color: rgba(247,200,75,.28);
  box-shadow: 0 0 0 6px rgba(247,200,75,.08);
}

textarea{
  resize:vertical;
  min-height:110px;
}

label{
  display:block;
  font-weight:800;
  margin-bottom:6px;
}

/* ===========================
   10) TABLES
   =========================== */
.table-wrap{
  border:1px solid var(--line);
  border-radius:var(--radius2);
  overflow:hidden;
  background: rgba(255,255,255,.01);
}

table{ width:100%; border-collapse:collapse; font-size:14px; }

thead th{
  text-align:left;
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.35);
  border-bottom:1px solid rgba(255,255,255,.08);
  padding:12px 14px;
}

tbody td{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

tbody tr:nth-child(even){ background: rgba(255,255,255,.015); }

.rank{
  width:64px;
  color: rgba(255,255,255,.72);
  font-weight:900;
}

/* ===========================
   11) MODAL
   =========================== */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:70;
}

.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;
  box-shadow: var(--shadow);
}

.modal-actions{
  margin-top:14px;
  display:flex;
  gap:8px;
  justify-content:flex-end;
}

/* ===========================
   12) ADS
   =========================== */
.ad img{
  max-width:100%;
  height:auto;
  display:block;
  margin:10px auto;
}

.ads{
  margin:7px auto 2px;
  display:grid;
  gap:5px;
  justify-content:center;
}

.ads .adbox{
  width:100%;
  max-width:320px;
  margin-inline:auto;

  background: rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;

  padding:6px;
}

.ads .adbox iframe,
.ads .adbox img{
  width:100%;
  height:auto;
  display:block;
}

/* ===========================
   13) NAV MOBILE FIX (STICKY->FIXED)
   =========================== */
@media (max-width: 860px){
  body{ padding-top:66px; }

  .nav{
    position:fixed !important;
    top:0; left:0; right:0;
    z-index:9999;
  }

  .mobile{
    position:fixed;
    top:66px; left:0; right:0;
    z-index:9998;

    padding:10px 18px 16px;
    background: rgba(7,7,8,.92);
    backdrop-filter: blur(10px);
    border-bottom:1px solid rgba(255,255,255,.08);

    max-height: calc(100vh - 66px);
    overflow:auto;
    -webkit-overflow-scrolling: touch;

    display:none;
  }

  .mobile.show{ display:grid; gap:10px; }
}

/* ===========================
   14) GRIDS / COMPONENTS
   =========================== */
.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 rgba(255,255,255,.08);
  border-radius:18px;
  padding:14px;
  box-shadow:0 14px 40px rgba(0,0,0,.35);
}

.value{
  font-weight:900;
  font-size:1.35rem;
  letter-spacing:-.2px;
}

/* ===========================
   15) FEATURE LIST (Tentang)
   =========================== */
.feature-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}

@media (min-width: 860px){
  .feature-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-item{
  position:relative;
  overflow:hidden;

  display:grid;
  grid-template-columns: 44px 1fr;
  gap:12px;
  align-items:start;

  padding:14px 14px 14px 12px;
  border-radius:16px;

  background:
    radial-gradient(240px 120px at 20% 10%, rgba(24,211,138,.12), transparent 60%),
    radial-gradient(220px 120px at 92% 22%, rgba(247,200,75,.08), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));

  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.feature-item::before{
  content:"";
  position:absolute;
  left:0; top:10px; bottom:10px;
  width:4px;
  border-radius:999px;
  background: linear-gradient(180deg, rgba(24,211,138,.95), rgba(247,200,75,.65));
  box-shadow: 0 0 18px rgba(24,211,138,.20);
}

.fi-ico{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:14px;

  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);

  font-size:20px;
  line-height:1;
}

.fi-body{ min-width:0; }

.fi-title{
  font-weight:900;
  letter-spacing:-.2px;
  margin:2px 0 6px;
  line-height:1.2;
}

.fi-desc{
  color: var(--muted);
  line-height:1.45;
  font-size:14.5px;
}

@media (max-width: 520px){
  .feature-item{
    grid-template-columns: 42px 1fr;
    padding:14px 12px;
  }
  .fi-ico{ width:42px; height:42px; }
  .fi-title{ font-size:16px; }
  .fi-desc{ font-size:14px; }
}

/* ===========================
   16) HERO LANDING
   =========================== */
.hero.hero-landing{
  padding: 56px 16px;
  text-align: center;

  /* Eid night sky vibes */
  background:
    radial-gradient(760px 320px at 20% 10%, rgba(24,211,138,.16), transparent 62%),
    radial-gradient(640px 320px at 84% 26%, rgba(247,200,75,.12), transparent 60%),
    radial-gradient(520px 300px at 50% 0%, rgba(255,255,255,.035), transparent 62%),
    linear-gradient(180deg, #0a0c0b, #0f1216);

  border-bottom: 1px solid rgba(255,255,255,.06);
}

.hero-landing .hero-inner{
  max-width: 880px;
  margin: 0 auto;
}

.hero-landing .hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius: 999px;

  border:1px solid rgba(247,200,75,.28);
  background: rgba(247,200,75,.08);

  color: rgba(233,233,240,.92);
  font-weight: 800;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.hero-landing .hero-badge .dot{
  width:8px; height:8px; border-radius: 99px;
  background: rgba(247,200,75,1);
  box-shadow: 0 0 0 6px rgba(247,200,75,.14);
}

.hero-landing .hero-title{
  margin: 0 0 10px;
  font-size: clamp(26px, 4.2vw, 44px);
  letter-spacing: -.6px;
  line-height: 1.08;
}

.hero-landing .hero-title-accent{
  display:inline-block;
  margin-left: 8px;
  color: rgba(24,211,138,.95);
  text-shadow: 0 0 18px rgba(24,211,138,.16);
}

.hero-landing .hero-desc{
  margin: 0 auto 14px;
  max-width: 72ch;
  font-size: 15.5px;
}

.hero-landing .hero-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin: 14px 0 18px;
}

.hero-landing .chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius: 999px;

  border:1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.03);

  color: rgba(233,233,240,.92);
  font-weight: 800;
  font-size: 12.5px;
}

.hero-landing .hero-cta{
  margin-top: 6px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.hero-landing .hero-footnote{
  margin-top: 14px;
  font-size: 13.5px;
  opacity: .9;
}

/* ===========================
   17) NAV ACTIONS (UNDER NAV)
   =========================== */
.nav-actions{
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(7,7,8,.35);
  backdrop-filter: blur(10px);

  /* subtle gold inner line */
  box-shadow: inset 0 1px 0 rgba(247,200,75,.10);
}

.nav-actions-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px 12px;

  display:flex;
  gap:10px;
  align-items:center;

  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
}
.nav-actions-inner::-webkit-scrollbar{ display:none; }

.nav-actions .btn{
  padding: .55rem .75rem;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  flex: 0 0 auto;
}
.chart-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.chart-controls button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background-color: #f43f5e;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}
.chart-controls button:hover {
  background-color: #d63349;
}
.chart-controls button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(244,63,94,0.4);
}

/* ===== Dana Kaget Alert ===== */
.daget-alert{
  max-width:520px;
  margin:14px auto 6px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,45,85,.35);
  background:
    radial-gradient(420px 180px at 20% 10%, rgba(255,45,85,.18), transparent 60%),
    linear-gradient(135deg, rgba(255,45,85,.08), rgba(255,77,109,.05));
  box-shadow: 0 10px 30px rgba(255,45,85,.18);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.daget-text{
  font-weight:800;
  font-size:13.5px;
}

.daget-text span{
  display:block;
  font-weight:600;
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.daget-btn{
  padding:.6rem .9rem;
  border-radius:12px;
  font-size:12.5px;
  font-weight:900;
  background:linear-gradient(135deg, #ff2d55, #ff4d6d);
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
}