/* ==========================================================================
   Split2K Design System & Stylesheet
   ========================================================================== */

:root {
  /* Colors - Warm Indian Saffron / High-Trust Fintech */
  --brand-primary: #e0552b;
  --brand-primary-hover: #cc4920;
  --brand-primary-light: #fbeee8;
  --brand-secondary: #0f172a;
  
  --bg-app: #f6f4f0;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-subtle: #f0ece3;
  
  --text-main: #191614;
  --text-muted: #696259;
  --text-light: #948b7e;
  
  --border-color: #e4ddd2;
  --border-focus: #e0552b;
  
  --success-color: #107c41;
  --success-bg: #eaf6ef;
  --danger-color: #c93b2b;
  --danger-bg: #fdf0ed;
  --warning-color: #b45309;
  --warning-bg: #fef3c7;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);

  --font-family: 'Google Sans', 'Google Sans Text', system-ui, -apple-system, sans-serif;
  --font-display: 'Google Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  --brand-primary: #f06a3f;
  --brand-primary-hover: #ff7f54;
  --brand-primary-light: rgba(240, 106, 63, 0.15);
  --brand-secondary: #f8fafc;
  
  --bg-app: #0f1218;
  --bg-card: #181d26;
  --bg-input: #12151d;
  --bg-subtle: #232a37;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  
  --border-color: #2b3342;
  --border-focus: #f06a3f;
  
  --success-color: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.12);
  --danger-color: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 0 16px 80px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-layout {
  max-width: 820px;
  margin: 0 auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  padding: 32px 0 20px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(224, 85, 43, 0.25);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.brand-text h1 span {
  color: var(--brand-primary);
}

.tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.icon-btn svg {
  stroke: currentColor;
  stroke-width: 2;
}

[data-theme="light"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }

.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: var(--brand-primary-light);
  border: 1.5px solid rgba(224, 85, 43, 0.35);
  border-radius: 10px;
  color: var(--brand-primary);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
  user-select: none;
}

[data-theme="dark"] .btn-install {
  background: rgba(240, 106, 63, 0.16);
  border-color: rgba(240, 106, 63, 0.45);
  color: #ff7f54;
}

.btn-install:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(224, 85, 43, 0.3);
}

.btn-install svg {
  stroke: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   Info Banner
   ========================================================================== */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--brand-primary-light);
  border: 1px solid rgba(224, 85, 43, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.info-banner strong {
  color: var(--brand-primary);
}

.info-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Card & Form Components
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s ease;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-indicator {
  color: var(--brand-primary);
}

/* Currency Input Styling */
.currency-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

/* Remove browser default spin buttons from number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.currency-input-wrapper input {
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  padding: 12px 48px 12px 38px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.currency-input-wrapper.sm .currency-symbol {
  font-size: 1.1rem;
  left: 12px;
}

.currency-input-wrapper.sm input {
  font-size: 1.1rem;
  font-family: var(--font-family);
  font-weight: 600;
  padding: 8px 12px 8px 28px;
}

.currency-input-wrapper input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-light);
}

.clear-input-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.clear-input-btn:hover {
  color: var(--text-main);
}

/* Quick Chips */
.quick-chips-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.chips-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

.chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.chip:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* Merchant Profile Section */
.merchant-section {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.muted-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.btn-text-action {
  background: transparent;
  border: none;
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.btn-text-action:hover {
  background: var(--brand-primary-light);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

input[type="text"] {
  width: 100%;
  font-family: var(--font-family);
  font-size: 0.95rem;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}

input[type="text"]:focus {
  border-color: var(--brand-primary);
}

.profile-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.saved-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success-color);
}

/* Advanced Settings Accordion */
.advanced-settings {
  margin-top: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: var(--bg-card);
}

.advanced-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
}

.advanced-toggle::-webkit-details-marker {
  display: none;
}

.advanced-toggle .chevron {
  transition: transform 0.2s ease;
}

.advanced-settings[open] .chevron {
  transform: rotate(180deg);
}

.advanced-content {
  padding-top: 14px;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Segmented Control */
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.segment-btn {
  border: none;
  background: transparent;
  padding: 6px 8px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
}

.segment-btn strong {
  font-size: 0.78rem;
  color: var(--text-main);
}

.segment-btn small {
  font-size: 0.68rem;
  color: var(--text-light);
}

.segment-btn.active {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.segment-btn.active strong {
  color: var(--brand-primary);
}

/* Primary Button */
.btn-primary {
  width: 100%;
  margin-top: 18px;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(224, 85, 43, 0.3);
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

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

/* ==========================================================================
   Results & Stats Overview
   ========================================================================== */
.result-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

@media (max-width: 580px) {
  .stats-overview {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card.highlight {
  background: linear-gradient(145deg, var(--success-bg), rgba(16, 124, 65, 0.04));
  border-color: rgba(16, 124, 65, 0.35);
  box-shadow: 0 4px 16px rgba(16, 124, 65, 0.08);
}

[data-theme="dark"] .stat-card.highlight {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
  border-color: rgba(34, 197, 94, 0.35);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.stat-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stat-badge.danger {
  background: var(--danger-bg);
  color: var(--danger-color);
  border-color: rgba(201, 59, 43, 0.2);
}

.stat-badge.success {
  background: rgba(16, 124, 65, 0.12);
  color: var(--success-color);
  border-color: rgba(16, 124, 65, 0.25);
}

[data-theme="dark"] .stat-badge.success {
  background: rgba(34, 197, 94, 0.18);
  color: var(--success-color);
  border-color: rgba(34, 197, 94, 0.3);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-value.danger {
  color: var(--danger-color);
}

.stat-value.success {
  color: var(--success-color);
}

.stat-subtext {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Collection Progress Tracker */
.collection-tracker {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tracker-label-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tracker-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tracker-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.84rem;
}

.tracker-status-pill {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tracker-amt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--brand-primary);
}

.progress-bar-track {
  height: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 12px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-primary), var(--success-color));
  transition: width 0.35s ease;
}

/* Results Toolbar */
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-left h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.count-pill {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-toolbar {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}

.btn-toolbar:hover {
  background: var(--bg-subtle);
  border-color: var(--text-light);
  transform: translateY(-1px);
}

.btn-toolbar.btn-kiosk {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-color: rgba(224, 85, 43, 0.3);
}

.btn-toolbar.btn-kiosk:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.btn-toolbar.btn-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

/* Chunks Grid */
.chunks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.chunk-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.chunk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chunk-card.is-paid {
  opacity: 0.55;
  border-color: var(--success-color);
  background: var(--success-bg);
}

.chunk-card.is-paid .chunk-amt {
  text-decoration: line-through;
  color: var(--text-muted);
}

.chunk-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.chunk-step {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.chunk-amt {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.chunk-qr-container {
  width: 176px;
  height: 176px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chunk-qr-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chunk-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.chunk-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-upi-app {
  width: 100%;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1.5px solid rgba(224, 85, 43, 0.25);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-upi-app:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(224, 85, 43, 0.25);
}

.chunk-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.btn-chunk-action {
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  min-height: 38px;
  transition: all 0.18s ease;
  user-select: none;
}

.btn-chunk-action .btn-icon {
  flex-shrink: 0;
}

.btn-chunk-action:hover {
  background: #ffffff;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .btn-chunk-action:hover {
  background: var(--bg-card);
}

.btn-chunk-action.btn-copy.copied {
  background: var(--success-bg) !important;
  border-color: var(--success-color) !important;
  color: var(--success-color) !important;
}

.btn-chunk-action.btn-paid {
  background: var(--bg-card);
}

.btn-chunk-action.btn-paid:hover {
  border-color: var(--success-color);
  color: var(--success-color);
  background: var(--success-bg);
}

.btn-chunk-action.btn-paid.is-paid {
  background: var(--success-color) !important;
  border-color: var(--success-color) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 124, 65, 0.25) !important;
}

.btn-chunk-action.btn-paid.is-paid:hover {
  filter: brightness(0.92);
}

/* ==========================================================================
   FAQ & Disclaimers
   ========================================================================== */
.info-accordion {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-accordion h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.faq-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.faq-item p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.legal-disclaimer {
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  line-height: 1.4;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 36px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==========================================================================
   Modals (Kiosk & Scanner)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

/* Kiosk Specific */
.kiosk-container {
  background: var(--bg-card);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.kiosk-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.kiosk-step {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
}

.kiosk-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.kiosk-close-btn {
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
}

.kiosk-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  width: 100%;
}

.kiosk-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.kiosk-payee {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kiosk-qr-box {
  width: 240px;
  height: 240px;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.kiosk-qr-box svg {
  width: 100%;
  height: 100%;
}

.kiosk-note {
  font-size: 0.8rem;
  color: var(--text-light);
}

.kiosk-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.kiosk-actions button {
  flex: 1;
}

.kiosk-progress-dots {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  transition: all 0.2s ease;
}

.dot.active {
  background: var(--brand-primary);
  width: 20px;
}

.dot.paid {
  background: var(--success-color);
}

/* Scanner Specific */
.scanner-container {
  max-width: 420px;
  width: 100%;
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.scanner-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  flex: 1;
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-input);
  gap: 8px;
}

.drop-zone:hover {
  border-color: var(--brand-primary);
}

.drop-zone span {
  font-size: 0.88rem;
  font-weight: 600;
}

.drop-zone small {
  font-size: 0.75rem;
  color: var(--text-light);
}

.camera-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.camera-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-target-box {
  position: absolute;
  inset: 20%;
  border: 2px solid var(--brand-primary);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

.scan-status {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

/* Confetti Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

/* Helper Classes */
.hidden { display: none !important; }
.mt-2 { margin-top: 8px; }

/* ==========================================================================
   Print Stylesheet
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }

  .site-header,
  .info-banner,
  .form-card,
  .results-toolbar,
  .info-accordion,
  .site-footer,
  .modal-overlay,
  .btn-upi-app,
  .chunk-secondary-actions,
  .collection-tracker {
    display: none !important;
  }

  .result-section {
    display: block !important;
    margin: 0 !important;
  }

  .stats-overview {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-bottom: 20px !important;
  }

  .chunks-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    page-break-inside: avoid;
  }

  .chunk-card {
    border: 1px solid #999 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    page-break-inside: avoid;
  }

  .chunk-card.is-paid .chunk-amt {
    text-decoration: none !important;
  }
}
