/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ===== BASE ===== */
body {
  background: #eef1f5;
  font-family: 'Poppins', sans-serif;
  color: #222;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #fffdf5 0px, #ffffff 200px, #ffffff 100%);
  box-shadow: 0 0 24px rgba(0,0,0,0.06);
  position: relative;
}

/* ================================================
   HEADER
   ================================================ */
.header {
  height: 60px;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0e0002, #050400, #0b0002, transparent);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 36px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}
.logo-text-white { font-size: 0.95rem; color: #fff; font-weight: 800; }
.logo-text-gold { font-size: 1rem; color: #ffd700; font-weight: 900; }
.hamburger-menu {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.05rem;
  transition: background 0.2s;
}
.hamburger-menu:hover { background: rgba(255,255,255,0.2); }

/* ================================================
   SIDEBAR — Smooth slide, no jump
   ================================================ */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  max-width: 82vw;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
  will-change: transform;
}
.sidebar.active { transform: translateX(0); }

.sidebar-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  flex-shrink: 0;
}
.sidebar-header .logo-img { height: 30px; }
.close-sidebar {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  padding: 4px;
}
.close-sidebar:hover { color: #fff; }

.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}
.sidebar-nav ul li a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px;
  color: #444; font-weight: 600; font-size: 0.85rem;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.sidebar-nav ul li a:hover {
  background: #f0f4ff;
  color: #0f3460;
  border-left-color: #e94560;
}
.sidebar-nav ul li a i { width: 18px; text-align: center; color: #0f3460; font-size: 0.85rem; }

/* ================================================
   NOTICE BAR
   ================================================ */
.notice-bar {
  background: linear-gradient(90deg, #fff8e1, #fff3cd);
  padding: 6px 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #bf360c;
}

/* ================================================
   HERO SECTION
   ================================================ */
.featured-hero { padding: 14px 14px 6px; }
.top-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
}
.top-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  transition: box-shadow 0.25s, transform 0.25s;
}
.top-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
.top-card-primary {
  transform: translateY(-10px);
  border-color: #ffd700;
  box-shadow: 0 8px 24px rgba(255,215,0,0.15);
  background: linear-gradient(180deg, #fffdf0, #fff);
}
.top-card-primary:hover { transform: translateY(-13px); box-shadow: 0 12px 30px rgba(255,215,0,0.25); }
.top-rank {
  position: absolute; top: 6px; left: 6px;
  width: 20px; height: 20px; border-radius: 5px;
  font-size: 0.55rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.top-rank.r1 { background: linear-gradient(135deg, #ffd700, #f0a500); }
.top-rank.r2 { background: linear-gradient(135deg, #b0b0b0, #888); }
.top-rank.r3 { background: linear-gradient(135deg, #cd7f32, #a0622e); }
.top-card-icon {
  width: 68px; height: 68px;
  border-radius: 16px;
  margin-bottom: 6px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background: #f5f5f5;
}
.top-card-primary .top-card-icon { width: 74px; height: 74px; }
.top-card-badge { font-size: 0.52rem; font-weight: 700; color: #e94560; display: flex; align-items: center; gap: 2px; }
.top-card-name {
  font-size: 0.7rem; font-weight: 700; color: #222; line-height: 1.2; margin-bottom: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.top-card-primary .top-card-name { font-size: 0.75rem; }
.top-card-bonus { font-size: 0.62rem; color: #e94560; font-weight: 700; }
.top-card-dl {
  display: inline-block; margin-top: 5px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff; font-size: 0.55rem; font-weight: 700; border-radius: 5px;
  text-transform: uppercase; letter-spacing: 0.3px;
}

/* ================================================
   SEARCH
   ================================================ */
.search-container { padding: 10px 14px 8px; }
.search-wrapper { position: relative; }
.search-input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: 0.82rem; font-family: inherit; color: #333;
  background: #fafafa; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus { border-color: #0f3460; background: #fff; box-shadow: 0 0 0 3px rgba(15,52,96,0.08); }
.search-input::placeholder { color: #bbb; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #bbb; font-size: 0.8rem; }

/* ================================================
   TABS
   ================================================ */
.tab-menu { display: flex; padding: 0 14px 10px; gap: 8px; }
.tab-btn {
  flex: 1; padding: 9px 4px; text-align: center;
  font-size: 0.8rem; font-weight: 700;
  background: #f0f0f0; color: #888; border-radius: 10px;
  transition: all 0.2s;
}
.tab-btn.active {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff; box-shadow: 0 3px 10px rgba(15,52,96,0.25);
}

/* ================================================
   APP LIST & CARDS
   ================================================ */
.app-list { padding: 0 14px 14px; }
.app-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; margin-bottom: 6px;
  background: #fff; border: 1px solid #f0f0f0; border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.app-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }

/* Colorful app numbers */
.app-number {
  font-size: 0.7rem; font-weight: 800; min-width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.app-card:nth-child(3n+1) .app-number { background: linear-gradient(135deg, #e94560, #c62828); }
.app-card:nth-child(3n+2) .app-number { background: linear-gradient(135deg, #0f3460, #1a73e8); }
.app-card:nth-child(3n+3) .app-number { background: linear-gradient(135deg, #ff9800, #f57c00); }

.app-icon {
  width: 68px; height: 68px; border-radius: 14px; flex-shrink: 0;
  object-fit: cover; background: #f5f5f5; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.app-details { flex: 1; min-width: 0; }
.app-title { font-size: 0.82rem; font-weight: 700; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.app-desc { font-size: 0.65rem; color: #999; line-height: 1.3; }
.app-desc i { color: #ff9800; font-size: 0.58rem; }
.app-bonus { font-size: 0.72rem; color: #e94560; font-weight: 700; line-height: 1.3; }
.app-withdraw { font-size: 0.6rem; color: #2e7d32; font-weight: 600; line-height: 1.4; }
.download-btn {
  background: linear-gradient(135deg, #e94560, #c62828);
  color: #fff; padding: 8px 12px; border-radius: 8px;
  font-size: 0.65rem; font-weight: 700; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(233,69,96,0.2);
  flex-shrink: 0;
}
.download-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(233,69,96,0.25); }
.download-btn i { font-size: 0.58rem; }

/* ================================================
   DETAIL PAGE — Fully mobile responsive
   ================================================ */
.detail-page { padding: 14px; }
.detail-card {
  background: #fff; border-radius: 16px; padding: 24px 14px;
  text-align: center; border: 1px solid #f0f0f0; margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.detail-app-icon {
  width: 90px; height: 90px; border-radius: 22px;
  margin: 0 auto 12px; object-fit: cover; background: #f5f5f5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.detail-card h1 { font-size: 1.1rem; font-weight: 800; color: #222; margin-bottom: 2px; word-break: break-word; }
.detail-sub { color: #999; font-size: 0.72rem; margin-bottom: 14px; }
.detail-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; background: #f8f9fa; border-radius: 12px;
  padding: 12px 4px; margin-bottom: 14px;
}
.detail-stat { text-align: center; }
.stat-label { font-size: 0.52rem; color: #aaa; display: block; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.stat-value { font-size: 0.72rem; font-weight: 700; color: #333; display: flex; align-items: center; justify-content: center; gap: 2px; }
.stat-value i { color: #ff9800; font-size: 0.6rem; }
.bonus-val { color: #e94560 !important; }
.detail-download-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff; padding: 13px 10px; border-radius: 10px;
  font-size: 0.82rem; font-weight: 800; margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(15,52,96,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer; word-break: break-word;
  text-align: center; line-height: 1.3;
}
.detail-download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,52,96,0.35); }
.detail-telegram-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: #fff; color: #0088cc;
  padding: 11px 10px; border: 1.5px solid #0088cc; border-radius: 10px;
  font-size: 0.78rem; font-weight: 700; transition: all 0.2s;
  word-break: break-word; text-align: center;
}
.detail-telegram-btn:hover { background: #0088cc; color: #fff; }

.breadcrumb { padding: 10px 0 0; font-size: 0.7rem; color: #999; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: #0f3460; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.45rem; }

.app-description-section, .app-features-section {
  background: #fff; border: 1px solid #f0f0f0; border-radius: 14px;
  padding: 18px 14px; margin-bottom: 14px;
}
.app-description-section h2, .app-features-section h2 {
  font-size: 0.85rem; font-weight: 700; color: #222; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.app-description-section h2 i, .app-features-section h2 i { color: #0f3460; }
.app-description-section p { font-size: 0.78rem; color: #555; line-height: 1.7; word-break: break-word; }
.features-list li {
  padding: 7px 0; font-size: 0.78rem; color: #444;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #f8f8f8;
}
.features-list li:last-child { border-bottom: none; }
.features-list li i { color: #2e7d32; font-size: 0.7rem; flex-shrink: 0; }

.related-section { margin-top: 16px; }
.related-section h2 {
  font-size: 0.8rem; font-weight: 700; padding: 9px 14px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff; border-radius: 10px; margin: 0 0 10px; text-align: center;
}

/* ================================================
   CONTENT SECTION
   ================================================ */
.content-section {
  background: #fff; border: 1px solid #f0f0f0; border-radius: 14px;
  padding: 20px 14px; margin: 14px 14px;
}
.content-section h2 {
  font-size: 0.88rem; font-weight: 800; color: #222; margin-bottom: 10px;
  padding-left: 10px; border-left: 3px solid #e94560;
}
.content-section p { font-size: 0.76rem; color: #555; line-height: 1.7; margin-bottom: 8px; word-break: break-word; }
.content-section p:last-child { margin-bottom: 0; }

/* ================================================
   FAQ SECTION
   ================================================ */
.faq-section { padding: 14px 14px; }
.faq-section > h2 { font-size: 0.85rem; font-weight: 700; color: #222; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.faq-section > h2 i { color: #0f3460; }
.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-item { background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; overflow: hidden; }
.faq-question {
  width: 100%; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.faq-question span { font-size: 0.76rem; font-weight: 600; color: #333; flex: 1; }
.faq-icon { font-size: 0.6rem; color: #999; transition: transform 0.3s; flex-shrink: 0; }
.faq-question.active .faq-icon { transform: rotate(180deg); color: #0f3460; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.active { max-height: 400px; padding: 0 14px 12px; }
.faq-answer div { font-size: 0.73rem; color: #666; line-height: 1.65; word-break: break-word; }

/* ================================================
   FLOATING SOCIAL
   ================================================ */
.social-float {
  position: fixed; right: 12px; bottom: 20px;
  display: flex; flex-direction: column; gap: 8px; z-index: 50;
}
.float-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 1.3rem; color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn.whatsapp { background: #25d366; }
.float-btn.telegram { background: #0088cc; }

/* ================================================
   FOOTER — Clean attractive
   ================================================ */
.footer-notice {
  background: #1a1a2e; padding: 6px 0;
  font-size: 0.62rem; color: rgba(255,255,255,0.7);
}
.footer {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 20px 14px; text-align: center;
}
/* Smaller, elegant share button */
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 22px; border-radius: 20px;
  background: linear-gradient(135deg, #ffd700, #f0a500);
  color: #1a1a2e; font-size: 0.7rem; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,215,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 14px; letter-spacing: 0.3px;
}
.share-btn i { font-size: 0.65rem; }
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,215,0,0.35); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 10px 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 10px; }
.footer-links a {
  display: flex; align-items: center; gap: 3px;
  padding: 5px 10px; font-size: 0.65rem; font-weight: 600;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; transition: all 0.2s;
}
.footer-links a:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.footer-links a i { font-size: 0.55rem; }
.footer-copy { font-size: 0.65rem; color: rgba(255,255,255,0.25); }

/* ================================================
   CONTACT FORM
   ================================================ */
.contact-form-card {
  background: #fff; border: 1px solid #f0f0f0; border-radius: 14px;
  padding: 20px 14px; margin-bottom: 14px;
}
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 0.73rem; font-weight: 600; color: #444; display: flex; align-items: center; gap: 6px; }
.form-group label i { color: #0f3460; font-size: 0.68rem; }
.form-group input, .form-group textarea {
  padding: 10px 12px; border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: 0.8rem; font-family: inherit; color: #333; background: #fafafa;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: #0f3460; background: #fff; box-shadow: 0 0 0 3px rgba(15,52,96,0.08);
}
.form-group textarea { resize: vertical; min-height: 90px; }

.alert {
  padding: 12px 14px; border-radius: 10px; font-size: 0.76rem;
  font-weight: 600; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px;
  word-break: break-word;
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

.page-heading {
  font-size: 1rem; font-weight: 800; color: #222; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.page-heading i { color: #0f3460; }

/* ================================================
   STATIC PAGES — Mobile responsive
   ================================================ */
.static-page { word-break: break-word; }
.static-content h2 {
  font-size: 0.85rem; font-weight: 700; color: #222;
  margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #f0f0f0;
}
.static-content h2:first-child { margin-top: 0; }
.static-content p { font-size: 0.76rem; color: #555; line-height: 1.7; margin-bottom: 8px; word-break: break-word; }
.static-content ul { padding-left: 18px; margin-bottom: 10px; }
.static-content ul li { font-size: 0.76rem; color: #555; line-height: 1.7; list-style: disc; margin-bottom: 3px; }
.static-content a { color: #0f3460; font-weight: 600; }
.static-content a:hover { text-decoration: underline; }

/* ================================================
   404 PAGE
   ================================================ */
.error-page {
  padding: 50px 14px; text-align: center; min-height: 50vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.error-code {
  font-size: 4.5rem; font-weight: 900;
  background: linear-gradient(135deg, #1a1a2e, #0f3460, #e94560);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; margin-bottom: 8px;
}
.error-page h1 { font-size: 1.1rem; font-weight: 700; color: #333; margin-bottom: 6px; }
.error-page p { font-size: 0.8rem; color: #999; margin-bottom: 20px; }
.error-page .detail-download-btn { display: inline-flex; width: auto; padding: 11px 24px; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 360px) {
  .detail-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .top-apps-grid { gap: 5px; }
  .top-card { padding: 10px 4px; }
  .top-card-icon { width: 56px; height: 56px; }
  .top-card-primary .top-card-icon { width: 60px; height: 60px; }
  .top-card-name { font-size: 0.62rem; }
  .download-btn { padding: 6px 8px; font-size: 0.6rem; }
  .detail-download-btn { font-size: 0.75rem; padding: 12px 8px; }
  .detail-telegram-btn { font-size: 0.72rem; padding: 10px 8px; }
  .app-icon { width: 56px; height: 56px; }
}
@media (min-width: 768px) {
  .wrap { max-width: 520px; }
}
@media (min-width: 1024px) {
  body { background: #dfe4ea; }
  .wrap { border-radius: 16px; margin-top: 16px; margin-bottom: 16px; overflow: hidden; }
}
