/* wallet.css */
/* Styles for Wallet.html */

.wallet-header {
  margin-bottom: 40px;
}

.balance-card {
  background: linear-gradient(135deg, var(--gold-subtle), var(--card));
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  flex-wrap: wrap;
  gap: 40px;
}

.balance-left {
  flex: 1;
  min-width: 250px;
}

.balance-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* BUNDLES GRID */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.bundle-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  text-align: center;
  align-items: center;
}

.bundle-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.bundle-popular {
  border-color: rgba(212, 168, 67, 0.45);
  background: var(--gold-subtle);
}

.bundle-header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}

/* TRANSACTION TABLE */
.transaction-table {
  width: 100%;
  border-collapse: collapse;
}

.transaction-table thead {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.transaction-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.transaction-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink2);
}

.transaction-table tbody tr:last-child td {
  border-bottom: none;
}

.transaction-table tbody tr:hover {
  background: var(--surface);
}

.badge {
  display: inline-block;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-free {
  background: rgba(46, 184, 164, 0.15);
  color: var(--teal);
}

.badge-locked {
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .balance-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .bundles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* bundles-grid handled by horizontal scroll at 700px */

  .transaction-table {
    font-size: 12px;
  }

  .transaction-table th,
  .transaction-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 600px) {
  .balance-card {
    padding: 24px;
  }

  .balance-left {
    min-width: auto;
  }
}

/* Subscriptions Grid */
.subscriptions-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}

.plan-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.plan-card.bundle-popular {
  border-color: rgba(212, 168, 67, 0.45);
  background: var(--gold-subtle);
}

.plan-card.bundle-popular:hover {
  border-color: var(--gold);
}

/* Responsive */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* plans-grid handled by horizontal scroll */
  .subscriptions-grid {
    gap: 40px;
  }
}

/* ════════════════════════════════════════════════════════════
   STORE PLAN CARDS — redesigned premium & creator sections
   ════════════════════════════════════════════════════════════ */

/* Section eyebrow label */
.store-section-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid rgba(212,168,67,0.25);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Premium grid — 2 col on wide, 1 col on small */
.store-premium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Creator grid — 3 col */
.store-creator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.store-creator-subheading {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

/* Plan card base */
.store-plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: all var(--transition);
}
.store-plan-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Featured (Most Popular) */
.store-plan-featured {
  border-color: rgba(212,168,67,0.4);
  background: var(--gold-subtle);
}
.store-plan-featured:hover { border-color: var(--gold); }

/* Best Value */
.store-plan-best {
  border-color: rgba(212,168,67,0.55);
  background: linear-gradient(160deg, var(--gold-subtle), var(--card));
  box-shadow: 0 4px 24px rgba(212,168,67,0.12);
}
.store-plan-best:hover { border-color: var(--gold); box-shadow: 0 8px 32px rgba(212,168,67,0.2); }

/* Top badge */
.spc-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a0e00;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-family: var(--mono);
  white-space: nowrap;
  text-transform: uppercase;
}

/* Card internals */
.spc-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: center;
}
.spc-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 6px;
  text-align: center;
}
.spc-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
  text-align: center;
}
.spc-price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
  text-align: center;
}
.spc-period {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink3);
  font-family: var(--sans, 'DM Sans', sans-serif);
}
.spc-tagline {
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.55;
  margin-bottom: 10px;
  text-align: center;
}
.spc-save-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: rgba(46,184,164,0.13);
  border: 1px solid rgba(46,184,164,0.3);
  color: var(--teal);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  text-align: center;
}
.spc-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* Feature list */
.spc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
  flex: 1; /* push CTA to bottom */
}
.spc-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.45;
  text-align: left;
}
.spc-check {
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.spc-check.teal    { color: var(--teal); }
.spc-check.gold    { color: var(--gold); }
.spc-check.lavender { color: #9b85e0; }
.spc-muted {
  color: var(--ink3);
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA button */
.spc-cta {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

/* Fine print */
.spc-fine {
  font-size: 10.5px;
  color: var(--ink3);
  text-align: center;
  margin-top: 10px;
  font-family: var(--mono);
}

/* Razorpay trust note */
.store-razorpay-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 36px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--ink3);
  line-height: 1.6;
}
.store-razorpay-note strong { color: var(--ink2); }


/* ── Responsive ── */
@media (max-width: 1200px) {
  .store-premium-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .store-creator-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile: horizontal scroll for all card grids ── */
@media (max-width: 700px) {

  /* Shared horizontal scroll behaviour */
  .bundles-grid,
  .store-premium-grid,
  .store-creator-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 16px 24px 20px;
    margin-bottom: 0;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 92%, transparent 100%);
  }
  .bundles-grid::-webkit-scrollbar,
  .store-premium-grid::-webkit-scrollbar,
  .store-creator-grid::-webkit-scrollbar { display: none; }

  /* Card widths — peek ~1.2 cards at a time */
  .bundles-grid      > .bundle-card,
  .store-premium-grid > .store-plan-card,
  .store-creator-grid > .store-plan-card {
    flex: 0 0 78vw;
    max-width: 300px;
    min-width: 240px;
    scroll-snap-align: center;
  }

  /* Trailing spacer so last card isn't flush against edge */
  .bundles-grid::after,
  .store-premium-grid::after,
  .store-creator-grid::after {
    content: '';
    flex: 0 0 8px;
    display: block;
  }

  /* Scroll hint dots — shown by JS */
  .store-scroll-hint {
    display: flex !important;
  }
}

/* Dot indicators — hidden on desktop, shown on mobile by JS */
.store-scroll-hint {
  display: none;
  justify-content: center;
  gap: 6px;
  padding: 4px 0 12px;
}
.store-scroll-hint span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border2);
  display: block;
  transition: width 0.2s ease, background 0.2s ease;
}
.store-scroll-hint span.active {
  background: var(--gold);
  width: 18px;
  border-radius: 3px;
}