/* ============================================================
   Sahil Official — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Baloo+2:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --gold: #f5a623;
  --green: #00b894;
  --light-bg: #f8f9ff;
  --card-bg: #ffffff;
  --text: #2d3436;
  --muted: #636e72;
  --border: #e0e0e0;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --radius: 16px;
  --font: 'Poppins', sans-serif;
  --display: 'Baloo 2', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--light-bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ====== HEADER ====== */
header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  padding: 0 16px;
  position: sticky; top: 0; z-index: 999;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: 480px; margin: 0 auto; }
.logo { font-family: var(--display); font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.logo span { color: var(--gold); }
.header-btns { display: flex; gap: 8px; }
.btn-login { background: var(--accent); color: #fff; border: none; padding: 8px 18px; border-radius: 30px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.btn-admin { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); padding: 8px 14px; border-radius: 30px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: var(--font); }

/* ====== BANNER ====== */
.banner {
  background: linear-gradient(135deg, #e94560, #c0392b);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  max-width: 480px;
  margin: 0 auto;
}
.banner .marquee { white-space: nowrap; overflow: hidden; }

/* ====== HERO ====== */
.hero {
  background: linear-gradient(160deg, #1a1a2e 0%, #0f3460 100%);
  padding: 32px 20px 40px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,166,35,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-badge { display: inline-block; background: rgba(245,166,35,0.15); border: 1px solid var(--gold); color: var(--gold); padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 14px; letter-spacing: 1px; }
.hero h1 { font-family: var(--display); font-size: 30px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 10px; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 10px; justify-content: center; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #c0392b); color: #fff; border: none; padding: 13px 26px; border-radius: 30px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font); box-shadow: 0 4px 15px rgba(233,69,96,0.4); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); padding: 13px 22px; border-radius: 30px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); }

/* ====== TRUST BADGES ====== */
.trust-strip { background: #fff; padding: 16px 20px; max-width: 480px; margin: 0 auto; display: flex; justify-content: space-around; border-bottom: 1px solid var(--border); }
.trust-item { text-align: center; }
.trust-item .num { font-size: 18px; font-weight: 800; color: var(--primary); font-family: var(--display); }
.trust-item .lab { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ====== SECTIONS ====== */
.section { max-width: 480px; margin: 0 auto; padding: 24px 16px; }
.section-title { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.section-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* ====== SERVICE CARDS ====== */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-card { background: var(--card-bg); border-radius: var(--radius); padding: 18px 14px; box-shadow: var(--shadow); border: 1px solid var(--border); text-align: center; cursor: pointer; transition: transform 0.2s; }
.service-card:hover { transform: translateY(-3px); }
.service-icon { font-size: 28px; margin-bottom: 8px; }
.service-name { font-size: 13px; font-weight: 600; color: var(--primary); }
.service-desc { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ====== HOW IT WORKS ====== */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step-item { display: flex; gap: 14px; align-items: flex-start; }
.step-num { min-width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), #c0392b); border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.step-text h4 { font-size: 14px; font-weight: 600; color: var(--primary); }
.step-text p { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ====== REVIEWS ====== */
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--gold)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.review-name { font-size: 14px; font-weight: 600; color: var(--primary); }
.stars { color: var(--gold); font-size: 12px; }
.review-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.verified { font-size: 11px; color: var(--green); font-weight: 600; margin-top: 6px; }

/* ====== CONTACT BUTTONS ====== */
.contact-btns { display: flex; flex-direction: column; gap: 10px; }
.whatsapp-btn { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; padding: 14px 20px; border-radius: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font); width: 100%; }
.telegram-btn { background: linear-gradient(135deg, #0088cc, #005fa3); color: #fff; padding: 14px 20px; border-radius: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font); width: 100%; }

/* ====== FOOTER ====== */
footer { background: var(--primary); color: rgba(255,255,255,0.7); text-align: center; padding: 20px 16px; font-size: 12px; max-width: 480px; margin: 0 auto; }
footer .logo-f { font-family: var(--display); color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
footer .logo-f span { color: var(--gold); }
footer p { margin-top: 4px; }

/* ====== MODAL OVERLAY ====== */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.overlay.active { display: flex; }
.modal { background: #fff; border-radius: 24px; padding: 28px 22px; width: 100%; max-width: 380px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--border); border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal h2 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.modal p.sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* ====== FORM ELEMENTS ====== */
.form-group { margin-bottom: 14px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--primary); display: block; margin-bottom: 6px; }
.form-group input,
.form-group select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; font-family: var(--font); color: var(--text); outline: none; transition: border 0.2s; }
.form-group input:focus { border-color: var(--accent); }
.otp-grid { display: flex; gap: 8px; }
.otp-grid input { text-align: center; font-size: 18px; font-weight: 700; padding: 12px 8px; flex: 1; }
.btn-full { width: 100%; background: linear-gradient(135deg, var(--accent), #c0392b); color: #fff; border: none; padding: 14px; border-radius: 30px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font); margin-top: 8px; }
.btn-full:disabled { opacity: 0.6; cursor: not-allowed; }
.divider { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0; position: relative; }
.divider::before,
.divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.divider::before { left: 0; }
.divider::after { right: 0; }

/* ====== RECEIPT ====== */
.receipt { background: linear-gradient(160deg, #1a1a2e, #0f3460); border-radius: 20px; padding: 22px; color: #fff; margin-top: 16px; }
.receipt-header { text-align: center; margin-bottom: 20px; }
.receipt-logo { font-family: var(--display); font-size: 20px; font-weight: 800; }
.receipt-logo span { color: var(--gold); }
.receipt-tag { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.tracking-num { background: rgba(245,166,35,0.15); border: 1px solid var(--gold); border-radius: 10px; padding: 12px; text-align: center; margin: 16px 0; }
.tracking-num .label { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; }
.tracking-num .value { font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: 3px; margin-top: 4px; }
.receipt-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 13px; }
.receipt-row .key { color: rgba(255,255,255,0.6); }
.receipt-row .val { font-weight: 600; }
.receipt-status { text-align: center; margin-top: 16px; }
.status-badge { display: inline-block; padding: 6px 18px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.status-pending { background: rgba(245,166,35,0.2); border: 1px solid var(--gold); color: var(--gold); }
.status-success { background: rgba(0,184,148,0.2); border: 1px solid var(--green); color: var(--green); }
.status-failed { background: rgba(233,69,96,0.2); border: 1px solid var(--accent); color: var(--accent); }

/* ====== PAYMENT ====== */
.pay-amount { background: var(--light-bg); border-radius: 12px; padding: 16px; text-align: center; margin-bottom: 18px; }
.pay-amount .amt { font-size: 32px; font-weight: 800; color: var(--primary); font-family: var(--display); }
.pay-amount .curr { font-size: 16px; color: var(--muted); font-weight: 500; }
.pay-timer { text-align: center; font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 16px; }

/* ====== POPUP ====== */
.popup-modal { background: linear-gradient(160deg, #1a1a2e, #16213e); border-radius: 24px; color: #fff; }
.popup-icon { font-size: 48px; text-align: center; margin-bottom: 14px; }
.popup-modal h2 { color: #fff; text-align: center; }
.popup-modal p.sub { color: rgba(255,255,255,0.65); text-align: center; }
.joke-box { background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.3); border-radius: 12px; padding: 14px; margin: 16px 0; text-align: center; }
.joke-box p { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.5; font-style: italic; }

/* ====== ADMIN PANEL ====== */
.admin-section { margin-bottom: 20px; }
.admin-section h3 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.admin-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.admin-row input { flex: 1; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: var(--font); }
.btn-sm { padding: 8px 16px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); white-space: nowrap; }
.btn-sm.green { background: var(--green); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.toggle-row label { font-size: 13px; color: var(--text); }
.toggle { width: 42px; height: 24px; background: var(--border); border-radius: 12px; position: relative; cursor: pointer; transition: background 0.2s; }
.toggle.on { background: var(--green); }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: left 0.2s; }
.toggle.on::after { left: 20px; }

/* ====== ID UPLOAD ====== */
.id-upload-box { border: 2px dashed var(--border); border-radius: 12px; padding: 24px; text-align: center; cursor: pointer; background: var(--light-bg); }
.id-upload-box p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.upload-icon { font-size: 32px; }

/* ====== LOADER ====== */
.loader { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== NOTIFICATION ====== */
.notif { position: fixed; top: 70px; right: 12px; background: #1a1a2e; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 500; z-index: 9999; opacity: 0; transition: opacity 0.3s; pointer-events: none; max-width: 260px; border-left: 3px solid var(--green); }
.notif.show { opacity: 1; }
.notif.error { border-left-color: var(--accent); }

/* ====== LAYOUT HELPERS ====== */
.page-wrap { max-width: 480px; margin: 0 auto; }
.divider-line { height: 8px; background: var(--light-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pb-safe { padding-bottom: 72px; }

/* ====== TAB BAR ====== */
.tab-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 900; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); }
.tab-item { flex: 1; padding: 10px 0; text-align: center; cursor: pointer; color: var(--muted); transition: color 0.2s; }
.tab-item.active { color: var(--accent); }
.tab-icon { font-size: 20px; }
.tab-label { font-size: 10px; font-weight: 600; display: block; margin-top: 2px; }
