:root{
  --primary:#1abc9c;
  --primary-dark:#16a085;
  --bg-dark:#1c1c1e; 
  --bg-light:#2c2c2e; 
  --text-light:#fff; 
  --text-muted:#aaa;
  --glass-border:rgba(255,255,255,.2);
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#111;color:var(--text-light);padding-bottom:70px;}
.page{display:none;padding:20px;}
.page.active{display:block;}
.page-container{max-width:700px;margin:0 auto;}

/* HEADER */
header{padding:8px;text-align:center;font-size:17px;font-weight:600;
  position:sticky;top:0;z-index:10;
  background:rgba(28,28,30,0.55);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid var(--glass-border);
}

/* FEATURED */
.featured-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 5px 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.featured-card {
  flex: 0 0 75%;
  max-width: 75%;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.featured-info h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
}

.featured-info p {
  margin: 0;
  font-size: 12px;
  color: #d3cece;
}

@media (max-width:600px){
  .featured-card { height: 180px; }
}

/* FEATURED */
/* === Adsterra Card === */
.adsterra-card {
  pointer-events: auto; /* aktif klik */
  cursor: default;
}

.adsterra-card * {
  pointer-events: auto !important;
}

.adsterra-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}


.featured-container{display:flex;gap:12px;overflow-x:auto;padding:10px 5px 20px;scroll-snap-type:x mandatory;scroll-behavior:smooth;}
.featured-card{flex:0 0 75%;max-width:75%;height:160px;border-radius:16px;overflow:hidden;scroll-snap-align:start;cursor:pointer;position:relative;box-shadow:0 4px 16px rgba(0,0,0,0.5);}
.featured-card img{width:100%;height:100%;object-fit:cover;}
.featured-info{position:absolute;bottom:0;left:0;right:0;padding:10px;background:linear-gradient(to top,rgba(0,0,0,0.6),transparent);}
.featured-info h3{margin:0;font-size:25px;font-weight:700;}
.featured-info p{margin:0;font-size:12px;color:#d3cece;}
@media (max-width:600px){
  .featured-card{height:180px;}
}



/* Styling konten artikel dalam modal */
.modal-content article, 
.modal-content body, 
#modalBody {
  max-width: 100%;
  font-size: 15px;
  line-height: 1.6;
  color: #ddd;
}

#modalBody h1 {
  font-size: 20px;
  margin-bottom: 12px;
}

#modalBody h2 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 8px;
}

#modalBody p {
  margin-bottom: 12px;
  font-size: 14px;
}

/* iframe YouTube lebih rapi */
#modalBody iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}
@media (min-width: 600px) {
  #modalBody iframe {
    height: 300px;
  }
}

.article-body {
  font-size: 15px;
  line-height: 1.6;
  color: #eee;
}

.article-body h1, 
.article-body h2, 
.article-body h3 {
  font-size: 18px;
  margin-top: 12px;
  margin-bottom: 6px;
  color: #fff;
}

.article-body p {
  margin: 10px 0;
}

.article-body iframe {
  max-width: 100%;
  border-radius: 10px;
}

/* SUB TABS */
.sub-tabs {
  display: flex;
  justify-content: space-between; /* biar rata semua */
  flex-wrap: nowrap;              /* tetap 1 baris */
  padding: 8px;
  margin-bottom: 20px;
  background: rgba(28,28,30,0.55);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.sub-tab {
  flex: 1;                         /* bagi rata lebar */
  text-align: center;              /* isi ke tengah */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 6px;                /* padding lebih kecil */
  border-radius: 14px;
  background: var(--bg-light);
  font-size: 13px;                 /* font kecil */
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  min-width: 0;                    /* biar flex shrink */
}

.sub-tab.active {
  background: #7d9b95;
  color: #fff;
}

.sub-tab svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;                  /* biar icon gak ketekan */
  fill: currentColor;
}

/* Kalau layar kecil (misalnya iPhone) makin kecil lagi */
@media (max-width: 420px) {
  .sub-tab {
    font-size: 11px;
    padding: 6px 4px;
    gap: 3px;
  }
  .sub-tab svg {
    width: 12px;
    height: 12px;
  }
}




/* CARD */
.card{background:var(--bg-dark);border-radius:16px;padding:18px;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between;gap:14px;}
.card .left {
  display: flex;
  align-items: center;
  gap: 12px; /* jarak antara icon dan teks */
}
.card h3{margin:0;font-size:20px;font-weight:600;}
.card small{color:var(--text-muted);font-size:13px;}
.card .rating{font-size:12px;color:#ffcc00;margin-top:4px;}

/* APP ICON */
.app-icon{width:60px;height:60px;border-radius:10px;flex-shrink:0;object-fit:cover;}

/* APP STORE STYLE GET BUTTON */
.badge {
  background: linear-gradient(180deg, #f7f7f7 0%, #e6e6e6 100%);
  color: #007aff; /* biru khas iOS */
  padding: 8px 22px;
  border-radius: 9999px; /* pill shape */
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: all 0.2s ease;
  cursor: pointer;
}

.badge:hover {
  background: linear-gradient(180deg, #ffffff 0%, #dcdcdc 100%);
}

.badge:active {
  background: linear-gradient(180deg, #dcdcdc 0%, #c8c8c8 100%);
}


/* SIGNER */
h1{text-align:center;margin-bottom:20px;}
form{background:var(--bg-dark);border-radius:16px;padding:20px;max-width:700px;margin:0 auto;box-shadow:0 4px 20px rgba(0,0,0,.5);}
label{font-size:14px;font-weight:600;display:block;margin-top:10px;margin-bottom:6px;}
input[type=file],input[type=password],select{width:100%;background:var(--bg-light);border:none;border-radius:10px;padding:10px;color:#fff;font-size:14px;margin-bottom:12px;}
button,.link-btn{width:100%;padding:12px;border:none;border-radius:12px;font-weight:600;font-size:15px;cursor:pointer;margin-top:8px;}
button{background:var(--primary);color:#fff;}
button:hover{background:var(--primary-dark);}
.link-btn{background:#444;color:#fff;text-align:center;text-decoration:none;display:block;}
#loader{text-align:center;display:none;margin-top:10px;}
#progressBar{width:100%;height:6px;background:#333;border-radius:4px;margin-top:10px;display:none;}
#progressBar div{height:100%;width:0;background:var(--primary);border-radius:4px;transition:width .2s;}
#resultBtns{display:none;margin-top:10px;}

/* DROPZONE */
.drop-zone{background:var(--bg-light);border:2px dashed rgba(255,255,255,.25);border-radius:12px;padding:25px;text-align:center;cursor:pointer;margin-bottom:16px;transition:.2s;}
.drop-zone.dragover{border-color:var(--primary);color:var(--primary);}

/* TOGGLE */
.toggle-group{display:flex;justify-content:space-between;align-items:center;margin:15px 0;}
.switch{position:relative;display:inline-block;width:50px;height:28px;}
.switch input{display:none;}
.slider{position:absolute;top:0;left:0;right:0;bottom:0;background:#555;transition:.3s;border-radius:34px;}
.slider:before{content:"";position:absolute;height:20px;width:20px;left:4px;bottom:4px;background:white;transition:.3s;border-radius:50%;}
.switch input:checked + .slider{background:var(--primary);}
.switch input:checked + .slider:before{transform:translateX(22px);}

/* MODAL */
.modal{position:fixed;inset:0;background:rgba(0,0,0,0.6);display:none;align-items:center;justify-content:center;z-index:999;}
.modal-content{position:relative;background:rgba(28,28,30,0.55);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);border:1px solid var(--glass-border);border-radius:14px;padding:16px;max-width:520px;width:90%;max-height:80%;overflow-y:auto;}
.modal-close{position:absolute;top:10px;right:10px;background:var(--primary);border:none;color:#fff;font-size:16px;width:32px;height:28px;border-radius:8px;cursor:pointer;}

/* ==== LIQUID GLASS NAV ==== */
.bottom-nav-glass {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 90%;
  max-width: 420px;
  height: 70px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: background 0.4s ease, transform 0.3s ease;
  z-index: 1000;
}

/* slight glossy reflection line */
.bottom-nav-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

/* each nav icon */
.nav-link {
  flex: 1;
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

/* icon */
.nav-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: all 0.4s ease;
}

/* active glow and bounce */
.nav-link.active {
  color: var(--primary);
  transform: translateY(-5px) scale(1.1);
  text-shadow: 0 0 2px var(--primary);
}

.nav-link.active svg {
  filter: drop-shadow(0 0 2px var(--primary));
}

/* subtle blur transition effect */
.page {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.page.active {
  opacity: 1;
  transform: translateY(0);
}

/* glowing pulse behind active nav */
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.2;
  filter: blur(10px);
  z-index: -1;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.3); opacity: 0.4; }
}


