/* ==========================================================================
   MSME VYAPARI — Customer Khata & UPI Payment Portal Styles (customer.css)
   ========================================================================== */

:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #ECFDF5;
  --bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-full: 9999px;
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.portal-container {
  max-width: 520px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
  flex-grow: 1;
}

.payment-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  text-align: center;
}

.store-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--border);
}

.store-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.store-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.balance-box {
  background: var(--primary-light);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  margin-bottom: 1.8rem;
}

.balance-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #065F46;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.balance-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #047857;
  line-height: 1.1;
}

/* One-Tap UPI Payment CTA */
.btn-pay-upi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: transform 150ms ease;
}

.btn-pay-upi:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* QR Code Display */
.qr-section {
  padding: 1.5rem 1rem;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 1.8rem;
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 0.75rem auto;
  background: #FFFFFF;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Itemized Receipt breakdown */
.receipt-section {
  text-align: left;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.receipt-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.receipt-row.total {
  font-weight: 800;
  color: var(--text-main);
  font-size: 1.05rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.trust-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
