:root {
  --bg-color: #fcebf4;
  --primary-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #6366f1 100%);
  --banner-gradient: linear-gradient(135deg, #ff3b70 0%, #a855f7 50%, #ff8c42 100%);
  --sidebar-bg: #ffffff;
  --sidebar-text: #1e293b;
  --text-dark: #1e293b;
  --card-bg: #ffffff;
  --input-bg: #f8fafc;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.main-wrapper {
  width: 100%;
  max-width: 480px;
  position: relative;
  padding-bottom: 20px;
}

/* Header */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 15px;
  padding-top: 5px;
}

.hamburger-btn {
  position: absolute;
  left: 0;
  background: var(--input-bg);
  border: none;
  color: var(--text-dark);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-heading {
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  color: #6366f1;
}

/* Support Actions */
.hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.glass-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 30px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.btn-telegram { color: #0088cc; }
.btn-whatsapp { color: #25d366; }

/* Platform Switcher Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.platform-btn {
  height: 45px;
  background: var(--card-bg);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  cursor: pointer;
}

.platform-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Hero Banner */
.hero-banner {
  background: var(--banner-gradient);
  border-radius: 20px;
  padding: 16px;
  color: #ffffff;
  margin-bottom: 15px;
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.2);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hero-logo-box {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.provider-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.hero-banner h2 { font-size: 20px; font-weight: 700; }
.hero-sub { font-size: 12px; opacity: 0.9; margin-bottom: 12px; }

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
}

.stat-card .stat-num { display: block; font-size: 15px; font-weight: 800; }
.stat-card .stat-lbl { font-size: 9px; opacity: 0.9; }

/* Form Card */
.form-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }

/* ==========================================
   GLOWING BORDER EFFECT FOR INPUTS & QR CODE
   ========================================== */

@keyframes glowingBorder {
  0% { border-color: #ec4899; box-shadow: 0 0 8px rgba(236, 72, 153, 0.6); }
  50% { border-color: #8b5cf6; box-shadow: 0 0 12px rgba(139, 92, 246, 0.8); }
  100% { border-color: #6366f1; box-shadow: 0 0 8px rgba(99, 102, 241, 0.6); }
}

/* Category, Service, Link, Profile Quality & UTR Input Boxes */
.form-control, 
.utr-input, 
input[type="text"], 
input[type="number"], 
select.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 2px solid #ec4899;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  animation: glowingBorder 3s infinite alternate;
  transition: all 0.3s ease;
}

/* Average Time Box Glowing Effect */
.time-box {
  background: var(--input-bg);
  border: 2px dashed #ec4899;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  animation: glowingBorder 3s infinite alternate;
}

/* QR Code Border Glowing Effect */
.qr-code-container, 
.qr-code-img, 
.payment-view-box img {
  border: 3px solid #ec4899;
  border-radius: 16px;
  padding: 6px;
  animation: glowingBorder 3s infinite alternate;
  display: inline-block;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.total-display {
  text-align: right;
  font-size: 18px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 12px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.footer-note {
  text-align: center;
  font-size: 11px;
  color: #64748b;
  margin-top: 15px;
}

/* Checkout Page Overlay */
.checkout-page-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-color);
  z-index: 2000;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  justify-content: center;
}

.checkout-content { width: 100%; max-width: 480px; }
.checkout-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }

.back-btn {
  background: var(--card-bg);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  color: #6366f1;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.checkout-heading-text { font-size: 20px; font-weight: 800; color: var(--text-dark); }

.premium-service-card {
  background: var(--banner-gradient);
  border-radius: 20px;
  padding: 16px;
  color: white;
  margin-bottom: 15px;
}

.card-top-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.platform-badge-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.pkg-name-badge {
  background: #facc15;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.price-text { font-size: 24px; font-weight: 800; }
.price-text small { font-size: 12px; font-weight: 400; opacity: 0.9; }

.pay-toggle-tabs { display: flex; gap: 10px; margin: 15px 0; }
.pay-tab {
  flex: 1; padding: 12px; border-radius: 12px; border: none;
  background: var(--card-bg); font-weight: 700; color: var(--text-dark); cursor: pointer;
}
.pay-tab.active { background: var(--primary-gradient); color: white; }

.payment-view-box {
  background: var(--card-bg); border-radius: 20px; padding: 16px;
  text-align: center; margin-bottom: 15px;
}

/* ==========================================
   DOWNLOAD QR CODE BUTTON STYLING
   ========================================== */
.download-qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  background: var(--card-bg);
  color: var(--text-dark);
  border: 2px solid #ec4899;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  animation: glowingBorder 3s infinite alternate;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.download-qr-btn:hover {
  transform: translateY(-2px);
  background: var(--input-bg);
}

.download-qr-btn:active {
  transform: translateY(0);
}

.upi-app-btn-grid { display: flex; gap: 4px; margin-top: 10px; }
.upi-app-card-btn {
  flex: 1; background: var(--input-bg); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 6px 2px; font-size: 11px; font-weight: 700; color: var(--text-dark);
}

.notice-yellow-box {
  background: #fef9c3; border: 1px solid #fde047;
  border-radius: 12px; padding: 10px; font-size: 11px; color: #854d0e; margin-bottom: 15px;
}

.whatsapp-submit-btn {
  width: 100%; padding: 14px; background: #25d366;
  color: white; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer;
}

/* Left Sidebar Menu Drawer */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2999;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.left-sidebar {
  position: fixed;
  top: 0; left: 0; width: 260px; height: 100%;
  background: var(--sidebar-bg);
  z-index: 3000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.left-sidebar.active { transform: translateX(0); }

.sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px;
}
.sidebar-title { font-weight: 800; font-style: italic; color: #6366f1; }
.close-sidebar-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: #64748b; }

.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 12px; }
.sidebar-menu li a {
  text-decoration: none; color: var(--sidebar-text); font-weight: 600;
  font-size: 14px; display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 8px; transition: 0.2s;
}
.search-container {
  margin-bottom: 15px;
}

#search-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.category-container {
  margin-bottom: 15px;
}

#category-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.sidebar-menu li a:hover { background: var(--input-bg); color: #ec4899; }

.hidden { display: none !important; }

/* ==========================================
   AUTO DARK MODE (System & Mobile Theme Sync)
   ========================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0f172a;
    --sidebar-bg: #1e293b;
    --sidebar-text: #f8fafc;
    --text-dark: #f8fafc;
    --card-bg: #1e293b;
    --input-bg: #0f172a;
    --border-color: #334155;
  }

  .form-control, select.form-control {
    color: #ffffff;
  }

  .notice-yellow-box {
    background: #422006;
    border-color: #713f12;
    color: #fef08a;
  }

  .hamburger-btn {
    background: #334155;
  }
}
