/* Dhun Landing — Premium Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0c0a14;
  --surface: #151222;
  --surface-2: #1e1a2e;
  --border: rgba(124, 58, 237, 0.25);
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --pink: #ec4899;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  --glass: rgba(21, 18, 34, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 58, 237, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(236, 72, 153, 0.12), transparent);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink); }

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(12, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  width: 53px;
  height: 53px;
  border-radius: 14px;
  overflow: hidden;
  white-space: nowrap;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  background: url('../assets/dhun-logo.jpg') center / cover no-repeat;
  clip-path: inset(0 round 14px);
}

.nav-desktop {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-desktop a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--text); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 20, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  list-style: none;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border);
  color: var(--purple-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover { color: #fff; box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

/* Promo visuals */
.promo-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 1s 0.4s ease both;
}

.promo-visual img {
  width: min(100%, 560px);
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), 0 0 60px rgba(124, 58, 237, 0.15);
}

.promo-section {
  padding: 4rem 0;
}

.promo-section-banner {
  padding-top: 0;
}

.promo-showcase,
.promo-banner {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.promo-showcase img,
.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .promo-visual {
    order: -1;
  }

  .promo-visual img {
    width: min(100%, 420px);
  }
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp 1s 0.4s ease both, float 6s ease-in-out infinite;
}

.phone-frame {
  width: min(280px, 70vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(145deg, #2d2640, #1a1528);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(124, 58, 237, 0.2);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0c0a14;
  border-radius: 12px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(40px);
}

/* Sections */
section { padding: 5rem 0; position: relative; z-index: 1; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Glass cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--shadow);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* App Preview */
.preview-carousel {
  position: relative;
  overflow: hidden;
}

.preview-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.preview-track::-webkit-scrollbar { display: none; }

.preview-slide {
  flex: 0 0 min(260px, 75vw);
  scroll-snap-align: center;
}

.preview-phone {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.preview-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.preview-caption {
  text-align: center;
  margin-top: 1rem;
}

.preview-caption h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.preview-caption p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition), border-color var(--transition);
}

.carousel-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--purple);
}

/* Safety */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.safety-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.safety-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Coming Soon */
.coming-soon {
  text-align: center;
}

.coming-soon .glass-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.coming-soon h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s ease infinite;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-item a,
.contact-item p {
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

.contact-entity {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.contact-info {
  max-width: 720px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-topics {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-topics li {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.contact-topics strong {
  color: var(--text);
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
}

#contact-form .form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0.5rem;
}

#contact-form label {
  display: block;
  width: 100%;
}

#contact-form input,
#contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.contact-form-card {
  max-width: 560px;
  margin: 0 auto 2rem;
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.form-group .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-out 0s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(156, 163, 175, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  justify-self: start;
  margin-top: 0.25rem;
}

.contact-footer-info {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  padding: 1.25rem 2rem 0;
}

.contact-footer-info p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-footer-info p:last-child {
  margin-bottom: 0;
}

.contact-footer-info span {
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.contact-footer-info a {
  font-weight: 600;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  min-height: 1.25rem;
}

.form-status.success {
  color: #86efac;
}

.form-status.error {
  color: #fca5a5;
}

.form-status.loading {
  color: var(--text-muted);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-checkbox input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--purple);
}

/* Legal pages */
.page-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p { color: var(--text-muted); }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--purple-light);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-notice {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.legal-notice p {
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 0 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-nav h4,
.footer-contact h4,
.footer-legal h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }

.footer-contact p { margin-bottom: 0.4rem; font-size: 0.9rem; }

.footer-legal {
  border-left: 2px solid var(--purple);
  padding-left: 1.25rem;
}

.legal-entity-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.legal-entity-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.footer-entity {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--purple-light); }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .phone-mockup { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; border-left: none; border-top: 2px solid var(--purple); padding-left: 0; padding-top: 1.25rem; }
}

@media (max-width: 640px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
}

/* Recharge page */
.recharge-page { padding-top: 5rem; }

.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0.5rem 0 1rem;
}

.page-hero-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.recharge-container {
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.status-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  border: 1px solid var(--glass-border);
}

.status-banner.status-info {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.35);
}

.status-banner.status-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.status-banner.status-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.status-banner.status-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 2rem;
}

.auth-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.btn-google span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-weight: 700;
  font-size: 0.9rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.phone-form .form-group,
.otp-group .form-group {
  margin-bottom: 1rem;
}

.phone-form label,
.otp-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.phone-form input,
.otp-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.otp-group {
  margin-top: 1rem;
}

.auth-error {
  margin-top: 1rem;
  color: #fca5a5;
  font-size: 0.9rem;
}

#recaptcha-container {
  margin-top: 1rem;
}

.recharge-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wallet-summary {
  padding: 1.75rem;
}

.wallet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.wallet-header h2 {
  font-size: 1.25rem;
}

.user-uid {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  word-break: break-all;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.wallet-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.wallet-stat {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--glass-border);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.pack-card {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.pack-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pack-coins {
  font-size: 1.05rem;
  font-weight: 600;
}

.pack-bonus {
  font-size: 0.85rem;
  color: #6ee7b7;
  font-weight: 500;
}

.pack-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.history-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
}

.history-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.history-coins {
  font-weight: 600;
}

.history-amount {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.history-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

.history-status.status-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.history-status.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.history-status.status-failed {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.history-empty,
.history-loading {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.payment-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0 0;
  margin-top: 0.5rem;
}

.uid-lookup-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem;
}

.uid-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.uid-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.uid-input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.uid-error {
  margin-top: 0.75rem;
  color: #fca5a5;
  font-size: 0.9rem;
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.profile-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem;
}

.profile-card-inner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.recharge-contact-card {
  max-width: 560px;
  margin: 1rem auto;
  padding: 1.5rem;
}

.recharge-contact-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.recharge-contact-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.recharge-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.recharge-contact-grid label {
  display: grid;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.recharge-contact-grid input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
}

.profile-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
}

.profile-avatar[hidden],
.profile-avatar-fallback[hidden] {
  display: none !important;
}

.uid-error[hidden],
.auth-error[hidden] {
  display: none !important;
}

.profile-details {
  flex: 1;
  min-width: 0;
}

.profile-details h2 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.profile-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}

.profile-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.85rem;
}

.profile-stat .stat-label {
  font-size: 0.72rem;
}

.profile-stat .stat-value {
  font-size: 1.1rem;
}

.packs-section {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.packs-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pack-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.pack-list-coins {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pack-list-coins .coin-icon {
  font-size: 1.5rem;
}

.pack-list-coins strong {
  display: block;
  font-size: 1.05rem;
}

.pack-list-bonus {
  display: block;
  font-size: 0.8rem;
  color: #6ee7b7;
  margin-top: 0.1rem;
}

.pack-price-btn {
  min-width: 5.5rem;
  padding: 0.65rem 1.1rem;
  white-space: nowrap;
}

.weekend-offer-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(250, 204, 21, 0.62);
  border-radius: var(--radius);
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.9), rgba(126, 34, 206, 0.82));
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.raksha-bandhan-offer-banner {
  color: #fff7d1;
  background: linear-gradient(135deg, #5b147d, #be185d 58%, #c2410c);
  border-color: #f6cf68;
  box-shadow: 0 12px 26px rgba(91, 20, 125, 0.24);
}

.pack-list-bonus.raksha-bandhan {
  color: #be185d;
}

.pack-list-item.is-selected {
  border-color: #a855f7;
}

.pack-price-btn.is-selected {
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.32);
}

.payment-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.payment-action .btn {
  min-width: 10rem;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.auth-modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 1.5rem 1.5rem;
  z-index: 1;
}

.auth-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.25rem 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover {
  color: var(--text-primary);
}

.auth-modal-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  padding-right: 1.5rem;
}

@media (max-width: 640px) {
  .uid-row {
    flex-direction: column;
  }

  .uid-row .btn {
    width: 100%;
  }

  .profile-card-inner {
    flex-direction: column;
    text-align: center;
  }

  .recharge-contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    justify-content: center;
  }
}
