:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-subtle: #eff1f5;
  --text: #111318;
  --text-muted: #5e6673;
  --border: #e2e5eb;
  --border-strong: #cdd3de;
  --accent: #0c7a59;
  --accent-hover: #096146;
  --accent-soft: #e9f5f0;
  --danger: #c62828;
  --danger-soft: #fdecec;
  --warning: #9a5b00;
  --warning-soft: #fef5e7;
  --radius: 12px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --bg: #0b0c0f;
  --surface: #13151a;
  --surface-subtle: #1c1f26;
  --text: #f3f4f6;
  --text-muted: #8b92a0;
  --border: #232730;
  --border-strong: #343a47;
  --accent: #10a37f;
  --accent-hover: #0d8a6a;
  --accent-soft: rgba(16, 163, 127, 0.12);
  --danger: #ef5350;
  --danger-soft: rgba(239, 83, 80, 0.12);
  --warning: #e5a00d;
  --warning-soft: rgba(229, 160, 13, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.app-shell {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 520px) {
  .app-shell {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* Completely disable decorative glow elements */
.ambient-orb,
.vault-glow {
  display: none !important;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 60px;
  padding: 0 16px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
}

.brand-name {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-balance-pill {
  padding: 5px 10px;
  border-radius: 6px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.icon-btn.sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.icon-btn:hover {
  background-color: var(--surface-subtle);
  border-color: var(--border-strong);
}

/* Main */
.app-main {
  flex: 1;
  padding: 18px 16px 88px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Matte Executive Balance Card */
.vault-card {
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  background-color: #14171f;
  border: 1px solid #262b36;
  color: #f9fafb;
}

.vault-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vault-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.vault-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.vault-sub {
  margin-top: 8px;
  font-size: 12.5px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.vault-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #242833;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10a37f;
}

/* Clean Architectural Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.premium-card {
  border-color: var(--border);
}

.label-sm {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.balance-amount.sm {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.dot {
  opacity: 0.45;
}

/* Sections */
.section-block {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.section-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Pills / Badges */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-accent {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.pill-muted {
  background-color: var(--surface-subtle);
  color: var(--text-muted);
}

.pill-warning {
  background-color: var(--warning-soft);
  color: var(--warning);
}

/* Ad & Promo Cards */
.ad-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ad-icon-box.alt {
  background-color: var(--surface-subtle);
  border-color: var(--border);
  color: var(--text);
}

.promo-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.promo-row:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-subtle);
}

.arrow-chip {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.item-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Dedicated Survey Hub */
.survey-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.stat-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: left;
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-box strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.survey-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.survey-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.survey-item:hover:not(.completed) {
  border-color: var(--border-strong);
  background-color: var(--surface-subtle);
}

.survey-item.completed {
  opacity: 0.5;
  cursor: default;
}

.survey-reward {
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.reward-rupee {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent);
}

.reward-coins {
  font-size: 11px;
  color: var(--text-muted);
}

/* Crisp Authoritative Buttons (Zero Glow, Zero Bounce) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

.btn-primary,
.btn-glow {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover,
.btn-glow:hover {
  background-color: var(--accent-hover);
  box-shadow: none;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-glass {
  height: 36px;
  padding: 0 14px;
  background-color: #ffffff;
  border: 1px solid #ffffff;
  color: #111318;
  font-size: 13px;
}

.btn-glass:hover {
  background-color: #e5e7eb;
  border-color: #e5e7eb;
}

.btn-secondary {
  background-color: var(--surface-subtle);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background-color: var(--border);
}

/* Quiz */
.quiz-card {
  margin-top: 4px;
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.quiz-question {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.45;
  color: var(--text);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-opt {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quiz-opt:hover:not(:disabled) {
  border-color: var(--border-strong);
  background-color: var(--surface-subtle);
}

.quiz-opt.correct {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.quiz-opt.wrong {
  border-color: var(--danger);
  background-color: var(--danger-soft);
  color: var(--danger);
}

.quiz-feedback {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
}

.quiz-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disclaimer-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Wallet & Withdraw */
.withdraw-card {
  margin-bottom: 24px;
}

.withdraw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.progress-wrap {
  margin-bottom: 18px;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background-color: var(--surface-subtle);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.progress-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.withdraw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input {
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus {
  border-color: var(--text);
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  background-color: var(--danger-soft);
  padding: 9px 11px;
  border-radius: var(--radius-sm);
}

/* Filter Row & History */
.filter-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn.active {
  background-color: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-right {
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.amt-plus {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.amt-minus {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 62px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 25;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.nav-btn.active {
  color: var(--text);
}

.nav-btn.active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 2px;
  background-color: var(--text);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-head h3 {
  font-size: 15.5px;
  font-weight: 700;
}

.ad-stage {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 14px;
}

.ad-placeholder-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ad-stage-text {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 14px;
}

.survey-q-block {
  margin-bottom: 14px;
}

.survey-q-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.survey-radio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.survey-radio-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}

.policy-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.policy-body strong {
  color: var(--text);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background-color: var(--text);
  color: var(--bg);
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hidden {
  display: none !important;
}
/* ===== Auth & Cloud Sync Styles ===== */
.boot-loader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pm-spin 0.7s linear infinite;
}

@keyframes pm-spin {
  to { transform: rotate(360deg); }
}

.auth-screen {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg);
}

.auth-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.btn-google {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-google:hover {
  background-color: var(--surface-subtle);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background-color: var(--surface-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.auth-tab-btn {
  height: 34px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab-btn.active {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  padding: 2px 0;
}

.verify-banner {
  background-color: var(--warning-soft);
  border: 1px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--text);
}

.verify-banner-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}