/* Payment page (/account): the app's package, offer and wallet screens in the browser.
   Colours follow the app: primary #E91E63 / #C2185B, offer gradient #FF512F → #DD2476,
   bKash #E2136E, cards on #F8F9FA. Mobile first; one phone-width column on desktop. */

/* Always keep the scrollbar track, so switching between a tall tab (REGULAR) and a short one
   (OFFER) does not change the viewport width and shift the column on desktop. */
html { overflow-y: scroll; scrollbar-gutter: stable; }
.account-body { background: #F3F4F6; margin: 0; font-family: Inter, 'Hind Siliguri', sans-serif; color: #2C3E50; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.account-body * { box-sizing: border-box; }
.account-page { padding: 14px 0 40px; min-height: calc(100vh - 56px); }
.account-root { max-width: 480px; margin: 0 auto; padding: 0 12px; }

/* Header bar: full width, white, stays at the top; the content column is centred in it */
.acc-header { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 0 #E5E7EB, 0 2px 12px rgba(17, 24, 39, 0.06); }
.acc-header-inner { max-width: 480px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Brand bar (the page has no site header): 2x logo, a hairline, the title; all centred on the same line */
.acc-brand { display: flex; align-items: center; height: 36px; min-width: 0; }
/* The logo's heart sits above the word "বিবাহ", so the words' visual centre is ~3px below
   the image's centre at 28px: the logo is lifted by that much (owner), the divider and
   title stay centred on the bar, level with the language toggle. */
.acc-brand img { height: 28px; width: auto; display: block; flex-shrink: 0; position: relative; top: -3px; }
.acc-brand-sep { width: 1px; height: 18px; background: #E5E7EB; margin: 0 10px; flex-shrink: 0; }
.acc-brand .acc-brand-name { font-size: 15px; font-weight: 700; line-height: 1; color: #2B2B2B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Login sheet (an overlay like the app's modal) */
.acc-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.acc-sheet { background: #fff; width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: 10px 16px 24px; max-height: 92vh; overflow-y: auto; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18); animation: acc-up 0.22s ease-out; }
.acc-sheet .acc-handle { width: 44px; height: 5px; border-radius: 3px; background: #E5E7EB; margin: 0 auto 12px; }
.acc-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.acc-sheet-head h2 { font-size: 18px; font-weight: 800; margin: 0; color: #111827; }
.acc-sheet-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #F3F4F6; color: #4B5563; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
@keyframes acc-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 600px) {
  .acc-overlay { align-items: center; padding: 20px; }
  .acc-sheet { border-radius: 22px; }
}

/* Logged-out header card */
.acc-head-guest { background: linear-gradient(135deg, #E91E63, #C2185B); color: #fff; border-radius: 18px; padding: 16px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(233, 30, 99, 0.25); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acc-head-guest .acc-hg-title { font-size: 16px; font-weight: 800; }
.acc-head-guest .acc-hg-sub { font-size: 12px; opacity: 0.92; margin-top: 2px; }
.acc-head-guest .acc-login-btn { background: #fff; color: #C2185B; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; white-space: nowrap; }

.acc-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
}
.acc-center { text-align: center; }
.acc-muted { color: #6B7280; font-size: 13px; }
.acc-small { font-size: 12px; }
.acc-row { display: flex; align-items: center; gap: 10px; }
.acc-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-mt8 { margin-top: 8px; }
.acc-mt12 { margin-top: 12px; }
.acc-mt16 { margin-top: 16px; }

/* Fallback bar when the page has no #account-header: the same bar as a first card */
.acc-topbar { display: flex; align-items: center; justify-content: space-between; height: 52px; margin: 0 0 14px; padding: 0 12px 0 14px; background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06); }
.acc-lang { display: inline-flex; align-items: center; height: 32px; border: 1px solid #E5E7EB; border-radius: 999px; overflow: hidden; background: #fff; }
.acc-lang button { border: 0; background: transparent; height: 100%; padding: 0 12px; font-size: 13px; font-weight: 600; line-height: 1; color: #6B7280; cursor: pointer; font-family: inherit; }
.acc-lang button.active { background: #E91E63; color: #fff; }

/* Spinner */
.acc-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #FCE4EC; border-top-color: #E91E63; animation: acc-spin 0.8s linear infinite; margin: 20px auto; }
@keyframes acc-spin { to { transform: rotate(360deg); } }
.acc-spinner-sm { width: 18px; height: 18px; border-width: 2px; margin: 0 auto; display: inline-block; vertical-align: middle; }

/* Inputs */
.acc-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin: 12px 0 6px; }
.acc-input {
  width: 100%; padding: 13px 14px; border: 1.5px solid #E5E7EB; border-radius: 12px;
  font-size: 17px; font-family: inherit; color: #111827; background: #fff; outline: none;
  transition: border-color 0.2s;
}
.acc-input:focus { border-color: #E91E63; }
.acc-input.error { border-color: #DC2626; }
.acc-input-otp { letter-spacing: 8px; text-align: center; font-size: 24px; font-weight: 700; }
.acc-amount { display: flex; align-items: center; border: 1.5px solid #E5E7EB; border-radius: 12px; padding: 0 14px; background: #fff; }
.acc-amount:focus-within { border-color: #E91E63; }
.acc-amount .acc-currency { font-size: 22px; font-weight: 700; color: #E91E63; margin-right: 6px; }
.acc-amount input { border: 0; outline: none; flex: 1; font-size: 26px; font-weight: 700; padding: 12px 0; font-family: inherit; color: #111827; background: transparent; min-width: 0; }

/* Buttons */
.acc-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px 16px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: opacity 0.2s, transform 0.1s; color: #fff;
  background: linear-gradient(90deg, #E91E63, #C2185B);
}
.acc-btn:active { transform: scale(0.99); }
.acc-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.acc-btn-bkash { background: #E2136E; }
.acc-btn-balance { background: #16A34A; }
.acc-btn-outline { background: #fff; color: #E91E63; border: 1.5px solid #E91E63; }
.acc-btn-ghost { background: transparent; color: #6B7280; font-weight: 600; padding: 10px; }
.acc-btn-sm { padding: 9px 14px; font-size: 14px; width: auto; }
.acc-link { background: none; border: 0; color: #C2185B; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; }

/* Messages */
.acc-msg { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.acc-msg .acc-ic { margin-top: 2px; }
.acc-msg-error { background: #FEF2F2; color: #B91C1C; }
.acc-msg-ok { background: #ECFDF5; color: #047857; }
.acc-msg-info { background: #EFF6FF; color: #1D4ED8; }
.acc-msg-warn { background: #FFFBEB; color: #B45309; }

/* Account header */
.acc-head { background: linear-gradient(135deg, #E91E63, #C2185B); color: #fff; border-radius: 18px; padding: 18px 16px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(233, 30, 99, 0.25); }
.acc-head .acc-name { font-size: 17px; font-weight: 700; }
.acc-head .acc-id { font-size: 12px; opacity: 0.9; }
.acc-head .acc-balance-label { font-size: 12px; opacity: 0.9; margin-top: 12px; }
.acc-head .acc-balance { font-size: 32px; font-weight: 800; line-height: 1.1; }
.acc-head .acc-logout { background: rgba(255, 255, 255, 0.18); color: #fff; border: 0; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.acc-pkg-status { margin-top: 12px; background: rgba(255, 255, 255, 0.16); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.acc-pkg-status strong { font-weight: 700; }

/* Main tabs */
.acc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 14px; padding: 5px; gap: 5px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06); }
.acc-tabs.acc-tabs-2 { grid-template-columns: repeat(2, 1fr); }
.acc-tabs.acc-tabs-2 button { flex-direction: row; justify-content: center; gap: 8px; padding: 12px 14px; font-size: 14px; }
.acc-tabs button { border: 0; background: transparent; padding: 10px 4px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #6B7280; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.acc-tabs button .acc-ic { font-size: 16px; }
.acc-tabs button.active { background: #E91E63; color: #fff; }

/* Regular | Offer tab bar (as in the app) */
.acc-subtabs { display: flex; background: #F3F4F6; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.acc-subtabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 700; font-size: 14px; color: #6B7280; cursor: pointer; font-family: inherit; }
.acc-subtabs button.active { background: #fff; color: #DD2476; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }

/* Duration filter */
.acc-filter-title { font-size: 14px; font-weight: 700; color: #374151; margin-bottom: 8px; }
.acc-durations { display: flex; gap: 8px; margin-bottom: 14px; }
.acc-duration { flex: 1; border: 1.5px solid #E5E7EB; border-radius: 12px; padding: 10px 6px; background: #fff; cursor: pointer; text-align: center; font-family: inherit; }
.acc-duration.active { border-color: #E91E63; background: #FFF5F7; }
.acc-duration .acc-dur-label { font-size: 13px; font-weight: 700; color: #111827; }
.acc-duration .acc-dur-badge { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #fff; background: #FF9800; border-radius: 999px; padding: 2px 8px; }
.acc-duration .acc-dur-badge.none { background: #9CA3AF; }

/* Package cards */
.acc-pkg { border: 1.5px solid #F1F5F9; border-radius: 16px; padding: 16px; margin-bottom: 14px; background: #fff; }
.acc-pkg.selected { border-color: #E91E63; }
.acc-pkg-header { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #111827; }
.acc-pkg-header .acc-ic { color: #FF4B6A; font-size: 22px; }
.acc-price-box { margin: 12px 0; }
.acc-price-label { font-size: 13px; color: #6B7280; }
.acc-price { font-size: 32px; font-weight: 800; color: #E91E63; line-height: 1.1; }
.acc-price-sub { font-size: 13px; color: #6B7280; }
.acc-price-strike { text-decoration: line-through; color: #9CA3AF; font-size: 15px; margin-left: 8px; }
.acc-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.acc-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #374151; }
.acc-feature .acc-ic { color: #4CAF50; font-size: 18px; }
.acc-savings { display: flex; align-items: center; gap: 8px; background: #FFF8E1; color: #B45309; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }

/* Payment method selector */
.acc-methods { display: flex; gap: 8px; margin: 10px 0; }
.acc-method { flex: 1; border: 1.5px solid #E5E7EB; border-radius: 12px; padding: 10px; background: #fff; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px; color: #374151; display: flex; align-items: center; justify-content: center; gap: 8px; }
.acc-method.active-bkash { border-color: #E2136E; background: #FDF2F8; color: #E2136E; }
.acc-method.active-balance { border-color: #16A34A; background: #F0FDF4; color: #15803D; }
.acc-method:disabled { opacity: 0.5; cursor: not-allowed; }
.acc-bkash-badge { background: #E2136E; color: #fff; border-radius: 6px; padding: 2px 7px; font-size: 12px; font-weight: 800; }

/* Offer card (OfferTab) */
.acc-offer { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #FCE7F3; margin-bottom: 14px; }
.acc-offer-hero { background: linear-gradient(135deg, #FF512F, #DD2476); color: #fff; padding: 20px 16px 18px; position: relative; }
.acc-ribbon { display: inline-block; background: rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.acc-bestvalue { position: absolute; top: 14px; right: 14px; background: #FFD54F; color: #7C2D12; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; }
.acc-offer-title { font-size: 20px; font-weight: 800; margin: 12px 0 4px; }
.acc-offer-daily { font-size: 14px; opacity: 0.95; }
.acc-offer-price { font-size: 36px; font-weight: 800; margin-top: 10px; line-height: 1.1; }
.acc-offer-price small { font-size: 14px; font-weight: 600; opacity: 0.9; }
.acc-offer-perday { font-size: 13px; opacity: 0.95; margin-top: 2px; }
.acc-offer-body { padding: 14px 16px 16px; }
.acc-offer-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #374151; margin-bottom: 8px; }
.acc-offer-feature .acc-fi { width: 28px; height: 28px; border-radius: 50%; background: #FCE7F3; color: #DD2476; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.acc-offer-feature .acc-fi.hot { background: #DD2476; color: #fff; }
.acc-offer-feature.hot { font-weight: 700; color: #111827; }
.acc-value { display: flex; gap: 10px; align-items: center; background: #FFF5F7; border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.acc-value .acc-ic { color: #C2185B; }
.acc-value .acc-value-label { font-size: 13px; font-weight: 700; color: #111827; }
.acc-value .acc-value-sub { font-size: 12px; color: #6B7280; }
.acc-validity { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #6B7280; margin-top: 10px; }
.acc-validity .acc-ic { color: #4CAF50; }

/* Wallet */
.acc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.acc-chip { border: 1.5px solid #E5E7EB; border-radius: 999px; padding: 8px 14px; background: #fff; font-weight: 700; font-size: 14px; color: #374151; cursor: pointer; font-family: inherit; }
.acc-chip.active { border-color: #E91E63; background: #FFF5F7; color: #C2185B; }
.acc-hint { font-size: 12px; color: #6B7280; margin-top: 6px; }
.acc-hint.error { color: #DC2626; }
.acc-coupon-row { display: flex; gap: 8px; }
.acc-coupon-row .acc-input { text-transform: uppercase; }
.acc-coupon-ok { display: flex; align-items: center; gap: 10px; background: #ECFDF5; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.acc-coupon-ok .acc-ic { color: #15803D; }
.acc-coupon-ok .acc-ct { flex: 1; font-size: 13px; color: #065F46; }
.acc-coupon-ok .acc-ct strong { display: block; font-size: 14px; }
.acc-gets { text-align: center; font-size: 13px; color: #15803D; font-weight: 700; margin: 10px 0 4px; }
.acc-offer-banner { background: linear-gradient(135deg, #FFF3E0, #FFE0EC); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 13px; color: #7C2D12; }
.acc-offer-banner strong { display: block; font-size: 14px; color: #111827; margin-bottom: 2px; }

/* History */
.acc-history-title { font-size: 15px; font-weight: 700; color: #111827; margin: 6px 0 10px; }
.acc-hist { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F3F4F6; }
.acc-hist:last-child { border-bottom: 0; }
.acc-hist .acc-hi { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F3F4F6; color: #6B7280; flex-shrink: 0; }
.acc-hist .acc-hi.topup { background: #ECFDF5; color: #15803D; }
.acc-hist .acc-hi.package { background: #FCE7F3; color: #DD2476; }
.acc-hist .acc-hi.contact { background: #EFF6FF; color: #1D4ED8; }
.acc-hist .acc-ht { flex: 1; min-width: 0; }
.acc-hist .acc-ht .acc-h1 { font-size: 14px; font-weight: 600; color: #111827; }
.acc-hist .acc-ht .acc-h2 { font-size: 12px; color: #6B7280; }
.acc-hist .acc-ha { font-weight: 700; font-size: 15px; color: #111827; text-align: right; }
.acc-hist .acc-ha .acc-hs { display: block; font-size: 11px; font-weight: 600; }
.acc-hs.paid { color: #15803D; }
.acc-hs.unpaid { color: #B45309; }

/* Profile card (one contact) */
.acc-profile { display: flex; align-items: center; gap: 12px; }
.acc-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #F3F4F6; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #9CA3AF; font-size: 22px; }
.acc-profile .acc-pn { font-size: 16px; font-weight: 700; color: #111827; }
.acc-profile .acc-pid { font-size: 12px; color: #6B7280; }

/* Result screen */
.acc-result-icon { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; margin: 6px auto 12px; }
.acc-result-icon.ok { background: #ECFDF5; color: #15803D; }
.acc-result-icon.bad { background: #FEF2F2; color: #B91C1C; }
.acc-result-icon.warn { background: #FFFBEB; color: #B45309; }
.acc-result h2 { font-size: 20px; font-weight: 800; color: #111827; margin: 0 0 6px; }
.acc-app-note { background: #F8F9FA; border-radius: 12px; padding: 12px; font-size: 14px; color: #374151; margin: 14px 0; display: flex; gap: 10px; align-items: flex-start; }
.acc-app-note .acc-ic { color: #E91E63; margin-top: 2px; }

.acc-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #6B7280; margin-top: 10px; }
.acc-secure .acc-ic { color: #16A34A; }

@media (min-width: 600px) {
  .account-page { padding: 28px 0 60px; }
}

/* Inline SVG icons (public/js/account.js icon()): sized by the surrounding font size */
.acc-ic { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; display: inline-block; }
.acc-btn .acc-ic { width: 18px; height: 18px; }
.acc-tabs button .acc-ic { width: 18px; height: 18px; }
.acc-msg .acc-ic { width: 18px; height: 18px; margin-top: 1px; }
.acc-pkg-header .acc-ic { width: 22px; height: 22px; }
.acc-feature .acc-ic { width: 18px; height: 18px; }
.acc-offer-feature .acc-fi .acc-ic { width: 14px; height: 14px; }
.acc-result-icon .acc-ic { width: 34px; height: 34px; stroke-width: 2.6; }
.acc-sheet-close .acc-ic { width: 16px; height: 16px; }
.acc-avatar .acc-ic { width: 24px; height: 24px; }
.acc-hist .acc-hi .acc-ic { width: 16px; height: 16px; }
.acc-logout .acc-ic, .acc-login-btn .acc-ic, .acc-link .acc-ic { width: 15px; height: 15px; }
