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

:root {
  --primary:      #2d1054;
  --primary-light: #3d1a6e;
  --accent:       #9b59b6;
  --accent-light: #d4a5f5;
  --text:         #333;
  --text-light:   #7a7a7a;
  --text-muted:   #999;
  --bg:           #ffffff;
  --bg-light:     #f3eef8;
  --bg-gray:      #f5f5f7;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', sans-serif;
  color: var(--text-light);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ── Header / Nav ────────────────────────────────────── */
.site-header {
  background: var(--primary);
  position: relative;
  z-index: 1200;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}

.header-inner .logo {
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 24px;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  font-weight: 500;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-links a.active,
.nav-links a.router-link-exact-active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-weight: 600;
}

/* ── Header Auth ─────────────────────────────────────── */
.header-auth {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 16px;
}

.header-signin-btn {
  background: none;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 8px 22px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.header-signin-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.35);
}

.header-user-initial {
  background: #8b7355;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 2px solid rgba(255,255,255,0.35);
}

.header-user-name {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Sign In Modal ───────────────────────────────────── */
.signin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: signinFadeIn 0.2s ease;
}

@keyframes signinFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.signin-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 64px rgba(45,16,84,0.25);
  animation: signinSlideUp 0.3s ease;
}

@keyframes signinSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.signin-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.signin-close:hover { color: #333; }

.signin-modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.signin-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 12px;
}

.signin-modal-header h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0 6px;
}

.signin-modal-header p {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.signin-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.signin-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8e0f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter Tight', sans-serif;
  -webkit-font-smoothing: auto;
  color: var(--text);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.signin-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.signin-error {
  background: #fff0f0;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}

.signin-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}
.signin-submit:hover { background: #5a3490; }
.signin-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Sign-In Links (Forgot password / username) ──────── */
.signin-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.signin-link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  padding: 4px 0;
}
.signin-link-btn:hover {
  text-decoration: underline;
}

/* ── Sign-In Back Button ─────────────────────────────── */
.signin-back-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  padding: 0 0 12px;
  display: block;
}
.signin-back-btn:hover {
  text-decoration: underline;
}

/* ── Sign-In 2FA Icon ────────────────────────────────── */
.signin-2fa-icon {
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

/* ── Sign-In 2FA OTP Input ───────────────────────────── */
.signin-2fa-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e8e0f0;
  border-radius: 12px;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Inter Tight', sans-serif;
  text-align: center;
  letter-spacing: 12px;
  color: var(--primary);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.signin-2fa-input:focus {
  border-color: var(--accent);
}
.signin-2fa-input::placeholder {
  color: #ddd;
  letter-spacing: 12px;
}

/* ── Sign-In 2FA Sending Spinner ─────────────────────── */
.signin-2fa-sending {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

/* ── Sign-In Resend Button ───────────────────────────── */
.signin-resend-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  padding: 4px;
  text-align: center;
  width: 100%;
}
.signin-resend-btn:hover {
  text-decoration: underline;
}
.signin-resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Sign-In Success Icon ────────────────────────────── */
.signin-success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.signin-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gcSpin 0.7s linear infinite;
}

/* ── Sign Out Confirmation Modal ─────────────────────── */
.signout-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(45,16,84,0.25);
  animation: signinSlideUp 0.3s ease;
}

.signout-icon {
  color: var(--primary);
  margin-bottom: 16px;
}

.signout-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.signout-text {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.signout-actions {
  display: flex;
  gap: 12px;
}

.signout-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.signout-btn--cancel {
  background: #f3f0f7;
  color: var(--text);
}

.signout-btn--cancel:hover {
  background: #e8e3ee;
}

.signout-btn--confirm {
  background: var(--primary);
  color: #fff;
}

.signout-btn--confirm:hover {
  background: #5a3490;
}

.signout-loading {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.signout-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8e0f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gcSpin 0.7s linear infinite;
}

.signout-loading-text {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Site Settings Modal ────────────────────────────── */
.site-settings-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 24px 64px rgba(45,16,84,0.25);
  animation: signinSlideUp 0.3s ease;
}

.site-settings-header {
  text-align: center;
  margin-bottom: 28px;
}

.site-settings-header svg {
  color: var(--primary);
  margin-bottom: 12px;
}

.site-settings-header h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0 6px;
}

.site-settings-header p {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.site-settings-list {
  display: flex;
  flex-direction: column;
}

.site-settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.site-settings-item:last-child {
  border-bottom: none;
}

.site-settings-item-info {
  flex: 1;
  margin-right: 16px;
}

.site-settings-item-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.site-settings-item-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Toggle Switch */
.site-settings-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #ddd;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.site-settings-toggle.active {
  background: var(--primary);
}

.site-settings-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.site-settings-toggle.active .site-settings-toggle-knob {
  transform: translateX(20px);
}

/* ── Hero Section ────────────────────────────────────── */
.hero {
  background: linear-gradient(0deg, #6b3fa0 0%, #2d1054 100%);
  color: #fff;
  padding: 60px 0 0;
  position: relative;
  overflow: visible;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 95px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 30px;
  align-items: center;
  padding-top: 30px;
}

.hero-left p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 30px 0;
}

.hero-reviews {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatars {
  display: flex;
}

.review-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  margin-left: -10px;
  object-fit: cover;
}

.review-avatars img:first-child { margin-left: 0; }

.review-stars {
  color: #f5a623;
  font-size: 0.85rem;
}

.review-text {
  font-size: 0.85rem;
  opacity: 0.8;
}

.hero-customers {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 30px;
}

.hero-download-label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}

.store-buttons {
  display: flex;
  gap: 12px;
}

.store-buttons img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.store-buttons img:hover { opacity: 1; }

.hero-center {
  display: flex;
  justify-content: center;
  align-self: end;
  position: relative;
  overflow: visible;
  z-index: 5;
}

.hero-phone {
  width: 620px;
  max-width: none;
  position: relative;
  z-index: 10;
  transform: translateX(65px);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 60px;
  margin-top: -80px;
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.stat-number {
  font-family: 'Inter Tight', sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.4;
  max-width: 160px;
}

.hero-partners {
  background: #fff;
  border-radius: 50px;
  padding: 16px 36px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hero-partners img {
  height: 28px;
  width: auto;
}

/* Hero curve at bottom */
.hero-curve {
  position: relative;
  margin-top: -2px;
  z-index: 1;
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Introduction Section ────────────────────────────── */
.intro {
  padding: 100px 0;
  background: var(--bg);
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-images {
  position: relative;
}

.intro-images img {
  max-width: 100%;
  border-radius: 16px;
}

.section-badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.intro-text h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 20px;
}

.intro-text > p {
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.intro-video {
  background: var(--bg-gray);
  border-radius: 60px;
  padding: 20px 36px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.intro-video img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.intro-video .play-btn {
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: absolute;
  margin-left: -30px;
  margin-top: 10px;
}

.intro-checklist {
  list-style: none;
}

.intro-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  padding: 3px 0;
}

.intro-checklist .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.intro-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.intro-bottom .phone-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  font-size: 1.6rem;
}

.intro-bottom p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.btn-discover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--primary);
  padding: 15px 30px;
  border-radius: 250px;
  font-weight: 500;
  font-size: 18px;
  font-family: 'Inter Tight', sans-serif;
  white-space: nowrap;
  transition: background 0.25s;
}

.btn-discover:hover {
  background: var(--accent);
  color: #fff;
}

/* ── How It Works ────────────────────────────────────── */
.how-it-works {
  padding: 100px 0 260px;
  background: var(--bg-gray);
}

.how-it-works .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  width: 120px;
  height: 120px;
  border: 2px solid var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
}

.step-icon svg {
  width: 48px;
  height: 48px;
}

.step-card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.5;
  max-width: 240px;
}

/* ── App Showcase (floating phone between sections) ──── */
.app-showcase-inner {
  display: flex;
  justify-content: center;
  margin-top: -216px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.app-phone {
  max-width: 450px;
  width: 100%;
}

/* ── FAQ Section (on dark green bg) ──────────────────── */
.faq-section {
  background: var(--primary);
  color: #fff;
  padding: 1px 0 100px;
}

.faq-section > .container {
  padding-top: 60px;
}

/* Row 1: heading left, description+logos right */
.faq-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 50px;
}

.faq-top-left h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0;
}

.faq-top-right .faq-text {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 30px;
}

.faq-logos {
  display: flex;
  align-items: center;
  gap: 50px;
}

.faq-logos img:first-child {
  height: 74px;
  width: auto;
}

.faq-logos img:last-child {
  height: 41px;
  width: auto;
}

/* Row 2: accordion left, carousel right */
.faq-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.accordion-item {
  margin-bottom: 10px;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
  user-select: none;
  background: var(--bg-light);
  border-radius: 250px;
  transition: background 0.3s;
}

.accordion-item.open .accordion-header {
  background: var(--accent-light);
}

.accordion-header .arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: 12px;
  transition: transform 0.3s;
}

.accordion-header .arrow svg {
  width: 100%;
  height: 100%;
  fill: var(--primary);
}

.accordion-item.open .accordion-header .arrow {
  transform: rotate(180deg);
}

.accordion-body {
  height: 0;
  overflow: hidden;
}

.accordion-item.open .accordion-body {
  height: auto;
  overflow: visible;
}

.accordion-body-inner {
  padding: 20px;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

/* ── Carousel ────────────────────────────────────────── */
.carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 calc(50% - 8px);
  min-width: calc(50% - 8px);
}

.carousel-slide img {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: contain;
}

/* ── Blog Section ────────────────────────────────────── */
.blog-section {
  padding: 100px 0;
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.blog-card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin: 16px 0 8px;
  line-height: 1.1;
}

.blog-card .blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.blog-card .blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(0deg, #6b3fa0 0%, #2d1054 100%);
  color: #a6a6a6;
  padding: 0;
}

.site-footer > .container:first-child {
  padding-top: 40px;
  padding-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-col h4 {
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #fcfcfc;
}

.footer-email {
  color: var(--accent-light) !important;
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 18px;
  color: #a6a6a6;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-subscribe p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #fcfcfc;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-form input {
  padding: 16px 20px;
  border-radius: 30px;
  border: none;
  background: #ebebeb;
  color: #333;
  font-size: 16px;
  outline: none;
}

.subscribe-form input::placeholder {
  color: #999;
}

.subscribe-form button {
  padding: 16px 20px;
  border-radius: 30px;
  border: none;
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.25s;
}

.subscribe-form button:hover {
  background: var(--accent);
  color: #fff;
}

.subscribe-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.subscribe-msg {
  font-size: 14px;
  margin-top: 4px;
}

.subscribe-msg--err {
  color: #ef5350;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 15px;
  color: #a6a6a6;
}

.footer-bottom a {
  color: var(--accent-light);
}

/* ── Scroll to Top ───────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
  z-index: 999;
}

.scroll-top.visible { opacity: 1; }
.scroll-top.fab-visible { bottom: 104px; }

/* ── Active nav via router-link ─────────────────────── */
/* router-link-exact-active styles are in the header section above */

/* ── Page Hero Banner ───────────────────────────────── */
.page-hero {
  background: linear-gradient(0deg, #6b3fa0 0%, #2d1054 100%);
  color: #fff;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/particle.png');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.page-hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 80px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

/* ── About Page ─────────────────────────────────────── */
.about-intro {
  padding: 100px 0;
  background: var(--bg);
}

.about-intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-content {
  text-align: left;
}

.about-heading {
  font-family: 'Inter Tight', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 24px;
}

.about-intro-content p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 16px;
}

.about-intro-image {
  text-align: center;
}

.about-intro-image img {
  max-width: 100%;
  border-radius: 16px;
}

/* Value Props */
.about-values {
  padding: 80px 0;
  background: var(--bg-gray);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  background: linear-gradient(180deg, rgba(212,165,245,0.2) 0%, rgba(212,165,245,0.05) 100%);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--primary);
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
}

/* Audience - For Consumers */
.about-audience {
  padding: 100px 0;
  background: var(--bg);
}

.audience-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.audience-image {
  text-align: center;
}

.audience-image img {
  max-width: 100%;
}

.audience-text .about-heading {
  font-size: 42px;
}

.audience-text p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* For Retailers */
.about-retailers {
  padding: 100px 0;
  background: var(--primary);
  color: #fff;
}

.retailers-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.retailers-content p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.retailers-content strong {
  color: #fff;
}

/* ── Contact Page ───────────────────────────────────── */
.contact-section {
  padding: 100px 0;
  background: var(--bg);
}

.contact-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-content .about-heading {
  font-size: 42px;
}

.contact-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e8e0f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Inter Tight', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  padding: 16px 32px;
  border-radius: 250px;
  border: none;
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 18px;
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
  transition: background 0.25s;
  align-self: flex-start;
}

.contact-form button:hover {
  background: var(--accent);
  color: #fff;
}

.contact-success {
  padding: 30px;
  background: rgba(212,165,245,0.15);
  border-radius: 16px;
  text-align: center;
}

.contact-success p {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
}

.contact-error {
  padding: 14px 20px;
  background: #fdecea;
  color: #c0392b;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Gift Cards - Page Hero Short ────────────────────── */
.page-hero--short {
  min-height: 300px;
}

.page-hero-sub {
  position: relative;
  z-index: 1;
  font-size: 18px;
  opacity: 0.85;
  margin-top: 12px;
}

/* ── Hero Search Variant ─────────────────────────────── */
.page-hero--search {
  min-height: 380px;
  text-align: center;
}
.page-hero--search .container {
  width: 100%;
}

.page-hero--search h1 {
  font-size: 52px;
}

.page-hero--search .page-hero-sub {
  font-size: 16px;
  margin-bottom: 32px;
}

.hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 24px;
  z-index: 1;
}

.hero-search svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.5);
}

.hero-search input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 15px;
  font-family: 'Inter Tight', sans-serif;
  color: #fff;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s;
}

.hero-search input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.15);
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.5);
}

.hero-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-filter-btn {
  padding: 7px 18px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 250px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.hero-filter-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.hero-filter-btn.active {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
}

/* ── Browse header with toggle ───────────────────────── */
.gc-browse-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.gc-browse-header--hero {
  margin-bottom: 20px;
}

.gc-browse-header__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gc-browse-header__search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: #f0ecf5;
  border-radius: 8px;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gc-browse-header__search-toggle:hover {
  background: #e4ddf0;
}

.gc-browse-header__search-toggle.active {
  background: var(--primary);
  color: #fff;
}

.gc-layout-switch {
  display: flex;
  gap: 2px;
  background: #f0ecf5;
  border-radius: 8px;
  padding: 2px;
  flex-shrink: 0;
}

.gc-layout-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.gc-layout-switch-btn:hover {
  color: var(--accent);
}

.gc-layout-switch-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ── Gift Cards - Section Titles ─────────────────────── */
.gc-section-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.gc-section-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ── Gift Cards - Featured ──────────────────────────── */
.gc-featured {
  padding: 50px 0 20px;
  background: var(--bg);
}

.gc-featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.gc-featured-nav {
  display: flex;
  gap: 8px;
}

.gc-featured-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e0dbe6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.gc-featured-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.gc-featured-arrow:hover:not(.disabled) {
  background: var(--primary);
  border-color: var(--primary);
}

.gc-featured-arrow:hover:not(.disabled) svg {
  color: #fff;
}

.gc-featured-arrow.disabled {
  opacity: 0.35;
  cursor: default;
}

.gc-featured-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.gc-featured-carousel::-webkit-scrollbar {
  display: none;
}

/* ── Gift Card: Unified Component ──────────────────── */

.gift-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.gift-card__visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  aspect-ratio: 1.586;
}

.gift-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 0.4s ease;
}

.gift-card:hover .gift-card__img {
  transform: scale(1.09);
}

.gift-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  padding: 5px 14px;
  border-radius: 250px;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.01em;
}

.gift-card__info {
  padding: 12px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gift-card__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.gift-card__subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Badge variants */
.gift-card__badge--accent {
  background: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  letter-spacing: 0.3px;
}

.gift-card__badge--popular {
  background: #f59e0b;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
}

.gift-card__badge--glass {
  background: rgba(45, 16, 84, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gift-card__badge--glass-green {
  background: rgba(46, 125, 50, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gift-card__badge--glass-gray {
  background: rgba(100, 100, 100, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Variant: featured ── */
.gift-card--featured {
  flex: 0 0 calc((100% - 48px) / 3);
}

/* ── Variant: browse ── */
.gift-card--browse {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gift-card--browse:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.gift-card--browse .gift-card__visual {
  aspect-ratio: auto;
  height: 180px;
  border-radius: 0;
  border: none;
}

.gift-card--browse .gift-card__badge {
  top: 10px;
  right: 10px;
}

.gift-card--browse .gift-card__info {
  padding: 16px 18px 18px;
  gap: 0;
}

.gift-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.gift-card--browse .gift-card__title {
  color: var(--primary);
  margin-bottom: 3px;
  line-height: 1.25;
}

.gift-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gift-card__price {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.gift-card__select-btn {
  padding: 6px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.gift-card--browse:hover .gift-card__select-btn {
  background: var(--primary);
}

/* ── Variant: wallet-merchant ── */
.gift-card--wallet-merchant .gift-card__visual {
  background: var(--bg-gray);
}

.gift-card__title-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.gift-card__balance {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.gift-card__detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gift-card__status {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.gift-card__expiry {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.gift-card__sender {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Gift Cards - Listing ────────────────────────────── */
.gc-listing {
  padding: 20px 0 100px;
  background: var(--bg);
}
.gc-listing--no-featured {
  padding-top: 50px;
}

.gc-toolbar {
  margin-bottom: 40px;
}

.gc-search {
  position: relative;
  max-width: 480px;
  margin-bottom: 20px;
}

.gc-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.gc-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid #e8e0f0;
  border-radius: 250px;
  font-size: 16px;
  font-family: 'Inter Tight', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.gc-search input:focus {
  border-color: var(--accent);
}

.gc-search input::placeholder {
  color: var(--text-muted);
}

.gc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-filter-btn {
  padding: 8px 18px;
  border: 1px solid #e0dbe6;
  border-radius: 250px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter Tight', sans-serif;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.gc-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gc-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.gc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Card View Grid (featured-style cards in grid) ───── */
.gc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gc-card-grid .gift-card--featured {
  flex: none;           /* override carousel flex sizing */
  width: auto;
}

.gc-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 18px;
}

/* ── Loading Spinner ────────────────────────────────── */
.gc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 24px;
}

.gc-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #e8e0f0;
  border-top-color: var(--accent);
  animation: gcSpin 0.7s linear infinite;
}

@keyframes gcSpin {
  to { transform: rotate(360deg); }
}

.gc-loading-text {
  color: var(--text-muted);
  font-size: 15px;
  animation: gcPulse 1.5s ease-in-out infinite;
}

@keyframes gcPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Skeleton cards while loading */
.gc-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.gc-skeleton-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.gc-skeleton-img {
  height: 180px;
  background: linear-gradient(90deg, #f0ecf5 25%, #e8e0f0 50%, #f0ecf5 75%);
  background-size: 200% 100%;
  animation: gcShimmer 1.5s ease-in-out infinite;
}

.gc-skeleton-body {
  padding: 16px 18px 18px;
}

.gc-skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #f0ecf5 25%, #e8e0f0 50%, #f0ecf5 75%);
  background-size: 200% 100%;
  animation: gcShimmer 1.5s ease-in-out infinite;
  margin-bottom: 10px;
}

.gc-skeleton-line--title {
  width: 70%;
  height: 18px;
}

.gc-skeleton-line--sub {
  width: 50%;
  height: 12px;
}

.gc-skeleton-line--price {
  width: 40%;
  height: 14px;
  margin-top: 16px;
  margin-bottom: 0;
}

@keyframes gcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton for featured section (carousel) */
.gc-skeleton-featured {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.gc-skeleton-featured-card {
  flex: 0 0 calc((100% - 48px) / 3);
  aspect-ratio: 1.586;
  border-radius: 14px;
  background: linear-gradient(90deg, #f0ecf5 25%, #e8e0f0 50%, #f0ecf5 75%);
  background-size: 200% 100%;
  animation: gcShimmer 1.5s ease-in-out infinite;
}

@media (max-width: 1200px) {
  .gc-skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .gc-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-skeleton-featured-card { flex: 0 0 calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
  .gc-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-skeleton-featured-card { flex: 0 0 85%; }
}

/* ── Gift Cards - Combined Detail + Purchase ─────────── */
.gc-detail {
  padding: 60px 0 100px;
  background: var(--bg);
}

/* Breadcrumb */
.gc-detail-breadcrumb {
  background: var(--bg-gray);
  padding: 16px 0;
  border-bottom: 1px solid #ece6f3;
}

.gc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.gc-breadcrumb-link {
  color: var(--accent) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.gc-breadcrumb-link:hover {
  text-decoration: underline;
}

.gc-breadcrumb-sep {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.gc-breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* Product page layout */
.gc-product {
  padding: 48px 0 100px;
  background: var(--bg);
}

.gc-product-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}

/* Left column: card visual + details */
.gc-product-left {}

.gc-product-card-visual {
  background: linear-gradient(145deg, #f8f4fc 0%, #ede6f5 100%);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}

.gc-product-card-frame {
  max-width: 480px;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(45,16,84,0.15);
}

.gc-product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.gc-product-valid {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.gc-product-valid svg {
  flex-shrink: 0;
}

/* Details section */
.gc-product-details {
  background: #fff;
  border: 1px solid #f0ecf5;
  border-radius: 16px;
  padding: 32px;
}

.gc-product-details-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.gc-product-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 24px;
}

.gc-product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gc-product-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gc-product-meta-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.gc-product-meta-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.gc-product-meta-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent) !important;
  word-break: break-all;
}

.gc-product-meta-link:hover {
  text-decoration: underline;
}

/* Right column: purchase panel */
.gc-product-right {
  position: sticky;
  top: 92px;
}

.gc-purchase-panel {
  background: #fff;
  border: 1px solid #f0ecf5;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(45,16,84,0.06);
}

.gc-purchase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.gc-purchase-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #f0ecf5;
}
.gc-purchase-logo--fade-in {
  animation: avatarFadeIn 0.7s ease both;
}
@keyframes avatarFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.gc-purchase-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.gc-purchase-cat {
  font-size: 14px;
  color: var(--text-muted);
}

.gc-purchase-section {
  margin-bottom: 24px;
}

.gc-purchase-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.gc-purchase-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gc-purchase-label-row .gc-purchase-label {
  margin-bottom: 0;
}

.gc-amount-view-toggle {
  display: flex;
  gap: 2px;
  background: #f0ecf5;
  border-radius: 8px;
  padding: 2px;
}

.gc-view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gc-view-toggle-btn:hover {
  color: var(--accent);
}

.gc-view-toggle-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Amount chips */
.gc-amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-amount-chip {
  padding: 10px 20px;
  border: 2px solid #e8e0f0;
  border-radius: 10px;
  background: none;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.gc-amount-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gc-amount-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Custom amount input row */
.gc-custom-amount-wrap {
  margin-top: 10px;
}

.gc-custom-amount-field {
  position: relative;
  display: flex;
  align-items: center;
}

.gc-custom-amount-prefix {
  position: absolute;
  left: 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

/* Override left padding for currency prefix */
.gc-custom-amount-field .gc-purchase-input {
  padding-left: 40px;
  -moz-appearance: textfield;
}

.gc-custom-amount-field .gc-purchase-input::-webkit-outer-spin-button,
.gc-custom-amount-field .gc-purchase-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gc-custom-amount-error {
  margin: 6px 0 0;
  font-size: 12px;
  font-family: 'Inter Tight', sans-serif;
  color: #d32f2f;
}

.gc-custom-amount-hint {
  margin: 6px 0 0;
  font-size: 12px;
  font-family: 'Inter Tight', sans-serif;
  color: var(--text-muted);
}

/* ── Select Amount 2: Premium Slider ─────────────────── */
.gc-slider-container {
  position: relative;
  padding: 20px 0 0;
}

/* Animated Amount Display */
.gc-slider-display {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
  padding: 16px 0;
}

.gc-slider-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.25) 0%, rgba(155, 89, 182, 0) 70%);
  animation: gc-slider-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

.gc-slider-currency {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  font-family: 'Inter Tight', sans-serif;
}

.gc-slider-value {
  font-size: 56px;
  font-weight: 800;
  font-family: 'Inter Tight', sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gc-slider-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
  letter-spacing: -2px;
}

/* Track Wrapper */
.gc-slider-track-wrap {
  position: relative;
  height: 8px;
  background: #e8e0f0;
  border-radius: 10px;
}

.gc-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 60%, var(--accent-light) 100%);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.gc-slider-fill-glow {
  position: absolute;
  top: -4px;
  left: 0;
  height: calc(100% + 8px);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(45, 16, 84, 0.15) 0%, rgba(155, 89, 182, 0.3) 60%, rgba(212, 165, 245, 0.2) 100%);
  filter: blur(6px);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

/* Range Input */
.gc-slider-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}

.gc-slider-input::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border-radius: 10px;
}

.gc-slider-input::-moz-range-track {
  height: 8px;
  background: transparent;
  border: none;
  border-radius: 10px;
}

/* Custom Thumb -- WebKit */
.gc-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, var(--accent-light) 40%, var(--accent) 100%);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px var(--accent),
    0 0 16px rgba(155, 89, 182, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.15);
  margin-top: -10px;
  cursor: grab;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gc-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow:
    0 0 0 4px var(--accent),
    0 0 24px rgba(155, 89, 182, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.gc-slider-input:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.05);
  box-shadow:
    0 0 0 5px var(--accent),
    0 0 30px rgba(155, 89, 182, 0.7),
    0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Custom Thumb -- Firefox */
.gc-slider-input::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, var(--accent-light) 40%, var(--accent) 100%);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px var(--accent),
    0 0 16px rgba(155, 89, 182, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: grab;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gc-slider-input::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow:
    0 0 0 4px var(--accent),
    0 0 24px rgba(155, 89, 182, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.gc-slider-input:focus {
  outline: none;
}

.gc-slider-input:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 3px var(--accent),
    0 0 0 6px rgba(155, 89, 182, 0.3),
    0 0 16px rgba(155, 89, 182, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Tick Marks */
.gc-slider-ticks {
  position: relative;
  height: 44px;
  margin: 0 0 16px;
}

.gc-slider-tick {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding-top: 18px;
}

.gc-slider-tick-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0c4dc;
  transition: all 0.3s ease;
}

.gc-slider-tick.passed .gc-slider-tick-dot {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(155, 89, 182, 0.4);
}

.gc-slider-tick.active .gc-slider-tick-dot {
  background: var(--primary);
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(45, 16, 84, 0.5);
}

.gc-slider-tick-label {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
  color: var(--text-muted);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.gc-slider-tick.active .gc-slider-tick-label {
  color: var(--primary);
  font-weight: 700;
  transform: scale(1.1);
}

.gc-slider-tick.passed .gc-slider-tick-label {
  color: var(--accent);
}

.gc-slider-tick:hover .gc-slider-tick-label {
  color: var(--primary);
}

/* Keyframe Animations */
@keyframes gc-slider-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.2;
  }
}

@keyframes gc-slider-pop {
  0% {
    transform: scale(0.7);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Toggle group */
.gc-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gc-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 2px solid #e8e0f0;
  border-radius: 10px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter Tight', sans-serif;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.gc-toggle-btn:hover {
  border-color: var(--accent);
}

.gc-toggle-btn.active {
  border-color: var(--accent);
  background: rgba(155,89,182,0.06);
  color: var(--primary);
  font-weight: 600;
}

.gc-toggle-btn svg {
  flex-shrink: 0;
}

/* Friend fields */
.gc-friend-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gc-purchase-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8e0f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter Tight', sans-serif;
  -webkit-font-smoothing: auto;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.gc-purchase-input:focus {
  border-color: var(--accent);
}

.gc-purchase-input::placeholder {
  color: var(--text-muted);
}

/* Textarea */
.gc-purchase-textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 160px;
  line-height: 1.5;
}

/* Message character counter */
.gc-message-counter {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Optional label modifier */
.gc-purchase-label-optional {
  font-weight: 400;
  text-transform: none;
  font-size: 11px;
  color: var(--text-muted);
}

/* Schedule fields */
.gc-schedule-fields {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gc-schedule-preview {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}

/* Divider */
.gc-purchase-divider {
  height: 1px;
  background: #f0ecf5;
  margin-bottom: 24px;
}

/* Order summary rows */
.gc-order-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 15px;
  color: var(--text-light);
}

.gc-order-total {
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  border-top: 1px solid #f0ecf5;
  padding-top: 12px;
  margin-top: 6px;
}

/* Payment card */
.gc-payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 2px solid #e8e0f0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.gc-payment-card.active {
  border-color: var(--accent);
}

.gc-payment-card input { display: none; }

.gc-payment-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gc-payment-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.gc-payment-card-left strong {
  font-size: 15px;
  color: var(--primary);
  display: block;
}

.gc-payment-bal {
  font-size: 13px;
  color: var(--text-muted);
}

.gc-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.gc-payment-card.active .gc-radio {
  border-color: var(--accent);
}

.gc-payment-card.active .gc-radio::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

/* Credit card wrapper — positions the hover × */
.gc-cc-wrap {
  position: relative;
}

/* Delete card × — top-right corner, visible on hover */
.gc-card-delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  z-index: 2;
}
.gc-cc-wrap:hover .gc-card-delete-btn { opacity: 1; }
.gc-card-delete-btn:hover { background: #d32f2f; color: #fff; }
.gc-card-delete-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.gc-btn-spinner-sm {
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gcSpin 0.7s linear infinite;
  display: inline-block;
}

.gc-btn-spinner-xs {
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gcSpin 0.7s linear infinite;
  display: inline-block;
}

/* Add new card button */
.gc-add-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 2px dashed #d4cce0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.gc-add-card-btn:hover { border-color: var(--accent); background: #faf7ff; }

.gc-payment-icon--add {
  background: #f3eef9;
  color: var(--accent);
}

/* Add card form */
.gc-add-card-form {
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  background: #fdfcff;
}

.gc-add-card-form-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gc-add-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.gc-add-card-save {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-add-card-save:hover:not(:disabled) { opacity: 0.9; }
.gc-add-card-save:disabled { opacity: 0.5; cursor: not-allowed; }

.gc-add-card-cancel {
  height: 42px;
  padding: 0 20px;
  border: 2px solid #e8e0f0;
  border-radius: 10px;
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gc-add-card-cancel:hover:not(:disabled) { border-color: #ccc; }
.gc-add-card-cancel:disabled { opacity: 0.5; cursor: not-allowed; }

/* Purchase button */
.gc-purchase-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.gc-purchase-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.gc-purchase-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gc-purchase-btn-loading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gc-btn-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: gcSpin 0.7s linear infinite;
}

.gc-purchase-error {
  text-align: center;
  color: #d32f2f;
  font-size: 14px;
  margin: 8px 0 12px;
  padding: 10px 16px;
  background: #fdecea;
  border-radius: 8px;
}

/* ── Mobile validation error ── */
.gc-input-error {
  border-color: #d32f2f !important;
  background: #fff5f5;
}

.gc-field-error {
  color: #d32f2f;
  font-size: 12.5px;
  margin: 4px 0 0;
  line-height: 1.3;
}

/* ── Terms & Conditions checkbox ── */
.gc-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 4px 0 14px;
  user-select: none;
}

.gc-terms-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gc-terms-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 5px;
  background: #fff;
  transition: all 0.2s;
  position: relative;
  margin-top: 1px;
}

.gc-terms-checkbox:checked + .gc-terms-check {
  background: var(--primary);
  border-color: var(--primary);
}

.gc-terms-checkbox:checked + .gc-terms-check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.gc-terms-checkbox:focus-visible + .gc-terms-check {
  box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.2);
}

.gc-terms-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.gc-terms-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.gc-terms-link:hover {
  color: var(--primary-light);
}

.gc-purchase-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
  -webkit-user-select: none;
}

.gc-purchase-secure svg {
  flex-shrink: 0;
}

/* ── Guest Purchase: Purchaser Info ───────────────────── */
.gc-guest-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gc-guest-signin-prompt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.gc-guest-signin-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: 'Inter Tight', sans-serif;
}

.gc-guest-signin-link:hover {
  color: var(--primary);
}

/* ── Guest Purchase: Credit Card Form ─────────────────── */
.gc-guest-cc-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gc-stripe-card-element {
  padding: 14px 16px;
  border: 2px solid #e8e0f0;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.gc-stripe-card-element.StripeElement--focus {
  border-color: var(--accent);
  outline: none;
}
.gc-stripe-card-element.StripeElement--invalid {
  border-color: #d32f2f;
}

/* ── Guest Purchase: OTP Modal ────────────────────────── */
.gc-otp-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 24px 64px rgba(45,16,84,0.25);
  animation: signinSlideUp 0.3s ease;
  text-align: center;
}

.gc-otp-header {
  margin-bottom: 28px;
}

.gc-otp-icon {
  color: var(--primary);
  margin-bottom: 12px;
}

.gc-otp-header h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0 8px;
}

.gc-otp-header p {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.gc-otp-header strong {
  color: var(--primary);
}

.gc-otp-sending {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.gc-otp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gc-otp-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e8e0f0;
  border-radius: 12px;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Inter Tight', sans-serif;
  text-align: center;
  letter-spacing: 12px;
  color: var(--primary);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.gc-otp-input:focus {
  border-color: var(--accent);
}

.gc-otp-input::placeholder {
  color: #ddd;
  letter-spacing: 12px;
}

.gc-otp-error {
  background: #fff0f0;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.gc-otp-resend {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  padding: 4px;
}

.gc-otp-resend:hover {
  text-decoration: underline;
}

.gc-otp-resend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Order success */
.gc-order-success {
  text-align: center;
  padding: 80px 0;
  max-width: 520px;
  margin: 0 auto;
}

.gc-success-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.gc-success-check svg {
  width: 100%;
  height: 100%;
}

.gc-order-success h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.gc-order-success p {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

.gc-order-success strong {
  color: var(--primary);
}

.gc-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.gc-success-btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.gc-success-btn--outline {
  border: 2px solid var(--accent);
  color: var(--accent) !important;
  background: none;
}

.gc-success-btn--outline:hover {
  background: var(--accent);
  color: #fff !important;
}

.gc-success-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}
.gc-success-link:hover { opacity: 0.7; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1200px) {
  .gc-grid { grid-template-columns: repeat(3, 1fr); }
  .gc-card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 60px; }
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-left, .hero-right { max-width: 600px; margin: 0 auto; padding: 0 15px; }
  .hero-right { flex-direction: row; flex-wrap: wrap; justify-content: center; padding-bottom: 30px; margin-top: 0; }
  .hero-center { order: -1; }
  .hero-phone { transform: none; width: 100%; max-width: 420px; }
  .hero-reviews { justify-content: center; }
  .store-buttons { justify-content: center; }
  .hero-partners { margin: 0 auto; flex-wrap: wrap; justify-content: center; }
  .stat-item { justify-content: center; }
  .intro-layout { grid-template-columns: 1fr; }
  .intro-images { text-align: center; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-top { grid-template-columns: 1fr; }
  .faq-bottom { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .cta-layout { flex-direction: column; gap: 30px; text-align: center; }
  .cta-stores { align-items: center; flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-intro .container { grid-template-columns: 1fr; }
  .about-intro-content { text-align: center; }
  .values-grid { grid-template-columns: 1fr; }
  .audience-layout { grid-template-columns: 1fr; }
  .audience-text { text-align: center; }
  .gift-card--featured { flex: 0 0 calc((100% - 24px) / 2); }
  .gc-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-card-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-product-grid { grid-template-columns: 1fr; }
  .gc-product-right { position: static; }
}

/* ── Header Shopping Bag ─────────────────────────────── */
.header-bag-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  padding: 4px;
}
.header-bag-link:hover { color: #fff; }

/* ── Header User Dropdown ────────────────────────────── */
.header-user-dropdown-wrap {
  position: relative;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  color: inherit;
}

.header-user-chevron {
  color: rgba(255,255,255,0.5);
  transition: transform 0.2s;
}
.header-user-chevron.open { transform: rotate(180deg); }

.header-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-width: 200px;
  padding: 6px;
  z-index: 1001;
  animation: dropdown-fade 0.15s ease;
}

@keyframes dropdown-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.header-dropdown-item:hover { background: var(--bg-light); }
.header-dropdown-signout { color: #d32f2f; }
.header-dropdown-signout:hover { background: #fef2f2; }

.header-dropdown-user {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 10px;
}
.header-dropdown-user-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-dropdown-admin-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #e67e22;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
  top: -1px;
}
.header-dropdown-user-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-dropdown-user-detail svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.header-dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 4px 10px;
}

/* ── My Purchases Page ───────────────────────────────── */
.purchases-section {
  padding: 60px 0 100px;
  background: #fdfdfe;
}

.purchases-empty {
  text-align: center;
  padding: 60px 0;
}
.purchases-empty-icon {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.purchases-empty h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.purchases-empty p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ── Summary tiles ── */
.purchases-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 36px;
}
.purchases-tile {
  background: #fff;
  border-radius: 14px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.purchases-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}
.purchases-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.purchases-tile-icon--spent  { background: #f0e6ff; color: #7c3aed; }
.purchases-tile-icon--cards  { background: #e0f2fe; color: #0284c7; }
.purchases-tile-icon--gifted { background: #fce7f3; color: #db2777; }
.purchases-tile-icon--fav    { background: #fef3c7; color: #d97706; }
.purchases-tile-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.purchases-tile-value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.purchases-tile-value--text {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.purchases-tile-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* ── Browser notice ── */
.purchases-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  background: var(--bg-light);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-light);
}
.purchases-notice svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.purchases-notice strong {
  color: var(--primary);
  font-weight: 600;
}
.purchases-notice a,
.purchases-empty a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.purchases-notice a:hover,
.purchases-empty a:hover {
  color: var(--accent);
}

/* ── Warning variant (API fallback) ── */
.purchases-notice--warn {
  background: #fff8e1;
  color: #8d6e00;
}
.purchases-notice--warn svg {
  color: #f9a825;
}

/* ── Loading state ── */
.purchases-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 24px;
  color: var(--text-muted);
  font-size: 15px;
}
.purchases-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8e0f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gcSpin 0.7s linear infinite;
}

/* ── Retry link ── */
.purchases-retry-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.purchases-retry-link:hover {
  color: #6d5300;
}

/* ── Date group headings ── */
.purchases-date-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.purchases-date-group + .purchases-date-group {
  margin-top: 12px;
}
.purchases-date-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 12px 4px;
}

.purchases-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.purchases-load-more {
  text-align: center;
  margin-top: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.purchases-load-more-btn {
  padding: 14px 40px;
  border-radius: 250px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.purchases-load-more-btn:hover {
  background: var(--accent);
  color: #fff;
}

.purchases-anim-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.purchase-card-anim-enter-active {
  animation: purchaseSlideIn 0.4s ease both;
}

@keyframes purchaseSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.purchase-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.purchase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}

.purchase-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.purchase-card-img {
  width: 86px;
  aspect-ratio: 1.586;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.purchase-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-card-main {
  flex: 1;
  min-width: 0;
}

.purchase-card-store {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.purchase-card-value {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
  padding: 2px 8px;
  background: #f3eef8;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.purchase-card-total-col {
  text-align: right;
  flex-shrink: 0;
}
.purchase-card-total {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.purchase-card-total-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.purchase-card-details {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.purchase-card-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}
.purchase-card-detail svg {
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

.purchase-card-buyagain {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-left: auto;
  transition: color 0.2s;
}
.purchase-card-buyagain:hover { color: var(--primary); }
.purchase-card-buyagain svg {
  opacity: 0.7;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .header-user-name { display: none; }
  .header-user-chevron { display: none; }
  .mobile-toggle span { width: 28px; height: 3px; margin: 5px 0; }
  .signin-modal { margin: 16px; padding: 28px; }
  .gc-otp-modal { margin: 16px; padding: 28px; }
  .gc-otp-input { font-size: 22px; letter-spacing: 8px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 16px 24px;
    gap: 2px;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
  }
  .nav-links.open a {
    padding: 12px 16px;
    font-size: 16px;
  }
  .hero h1 { font-size: 36px; }
  .hero { padding: 30px 0 0; }
  .hero-layout { gap: 20px; }
  .hero-left p { font-size: 15px; }
  .hero-phone { max-width: 320px; }
  .hero-right { flex-direction: column; align-items: center; gap: 20px; }
  .stat-item { flex-direction: column; text-align: center; }
  .stat-number { font-size: 32px; }
  .stat-label { max-width: 240px; }
  .hero-partners { padding: 12px 20px; gap: 16px; }
  .hero-partners img { height: 20px; }
  .store-buttons img { height: 38px; }
  .hero-left, .hero-right { padding: 0 10px; }
  .section-header h2,
  .intro-text h2,
  .faq-top-left h2 { font-size: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 40px; }
  .cta-heading { font-size: 48px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero { min-height: 300px; }
  .about-heading { font-size: 32px; }
  .about-intro, .about-audience, .about-retailers, .contact-section { padding: 60px 0; }
  .about-values { padding: 50px 0; }
  .audience-text .about-heading { font-size: 30px; }
  .contact-form button { align-self: stretch; }
  .gift-card--featured { flex: 0 0 85%; }
  .gc-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-card-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-featured { padding: 30px 0 10px; }
  .gc-listing { padding: 30px 0 60px; }
  .gc-product { padding: 30px 0 60px; }
  .gc-product-card-visual { padding: 24px; }
  .gc-purchase-panel { padding: 24px; }
  .gc-product-meta { grid-template-columns: 1fr; }
  .page-hero--short { min-height: 200px; }

  /* Hero search variant — mobile */
  .page-hero--search { min-height: auto; padding-top: 40px; padding-bottom: 32px; }
  .page-hero--search h1 { font-size: 32px; margin-bottom: 4px; }
  .page-hero--search .page-hero-sub { font-size: 13px; margin-bottom: 20px; }
  .page-hero--search .container { padding: 0 20px; }
  .hero-search { max-width: 100%; margin-bottom: 18px; }
  .hero-search input { padding: 12px 18px 12px 44px; font-size: 14px; }
  .hero-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .hero-filters::-webkit-scrollbar { display: none; }
  .hero-filter-btn { flex: 0 0 auto; font-size: 12px; padding: 7px 14px; }

  .gc-order-success h2 { font-size: 32px; }
  .header-bag-link svg { width: 20px; height: 20px; }
  .purchases-summary { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
  .purchases-tile { padding: 16px 12px; gap: 8px; }
  .purchases-tile-icon { width: 36px; height: 36px; border-radius: 10px; }
  .purchases-tile-icon svg { width: 18px; height: 18px; }
  .purchases-tile-value { font-size: 17px; }
  .purchases-tile-value--text { font-size: 12px; }
  .purchases-tile-label { font-size: 11px; }
  .purchases-grid { gap: 12px; }
  .purchase-card { padding: 14px 16px; }
  .purchase-card-img { width: 67px; }
  .purchase-card-store { font-size: 14px; }
  .purchase-card-total { font-size: 16px; }
  .purchase-card-details { flex-direction: column; gap: 8px; }
  .purchase-card-buyagain {
    margin-left: 0;
    align-self: stretch;
    justify-content: center;
    padding: 8px 0 0;
    margin-top: 4px;
    border-top: 1px solid #f0f0f0;
  }
  .header-dropdown { min-width: 180px; }
}

/* ── My Wallet Page ─────────────────────────────────── */

.wallet-section {
  padding: 40px 0 80px;
  min-height: 50vh;
}

/* Two-column layout: sidebar (left) + main (right) */
.wallet-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

.wallet-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
  border: 1px solid #f0ecf5;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(45, 16, 84, 0.06);
  min-width: 0;
}

.wallet-main {
  min-width: 0;
}

.wallet-sidebar__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 -12px;
}

/* Stats — compact vertical card in sidebar */
.wallet-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(135deg, #f5f0fa 0%, #ede4f7 100%);
  border-radius: 16px;
  overflow: hidden;
}

.wallet-stat {
  padding: 16px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  position: relative;
}

.wallet-stat:not(:last-child) {
  border-bottom: 1px solid rgba(155, 89, 182, 0.1);
}

.wallet-stat__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wallet-stat__icon--wallet,
.wallet-stat__icon--gift,
.wallet-stat__icon--cashback,
.wallet-stat__icon--cards,
.wallet-stat__icon--merchants {
  background: rgba(155, 89, 182, 0.12);
  color: var(--accent);
}

.wallet-stat__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wallet-stat-value {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wallet-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Clickable stat (e.g. Total Cashback) */
.wallet-stat--clickable {
  cursor: pointer;
  transition: background 0.2s ease;
}
.wallet-stat--clickable:hover {
  background: rgba(155, 89, 182, 0.06);
}
.wallet-stat__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.wallet-stat__arrow {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.wallet-stat--clickable:hover .wallet-stat__arrow {
  transform: translateX(3px);
}

/* Cashback panel */
.wallet-cb {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 80px;
}

/* Summary card */
.wallet-cb__summary {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #f5f0fa 0%, #ede4f7 60%, #e8def8 100%);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 36px;
}
.wallet-cb__summary-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.wallet-cb__summary-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.wallet-cb__summary-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wallet-cb__summary-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wallet-cb__summary-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: #fff;
  padding: 6px 14px;
  border-radius: 250px;
  white-space: nowrap;
}

/* Section title */
.wallet-cb__section-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* Merchant card grid */
.wallet-cb__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.wallet-cb__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.wallet-cb__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(155, 89, 182, 0.25);
}
.wallet-cb__card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.wallet-cb__card-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.wallet-cb__card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f0fa 0%, #ede4f7 100%);
  color: var(--primary);
  font-weight: 700;
  font-size: 17px;
}
.wallet-cb__card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wallet-cb__card-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wallet-cb__card-cat {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.wallet-cb__card-bottom {
  display: flex;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.wallet-cb__card-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wallet-cb__card-stat-value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.wallet-cb__card-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Merchant drill-down header */
.wallet-cb__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.wallet-cb__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}
.wallet-cb__subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.wallet-cb__total {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wallet-cb__merchant-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}
.wallet-cb__merchant-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}
.wallet-cb__merchant-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f0fa 0%, #ede4f7 100%);
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}
.wallet-cb__merchant-info {
  display: flex;
  flex-direction: column;
}
.wallet-tx__item-avatar--cashback {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}

/* Cashback responsive */
@media (max-width: 640px) {
  .wallet-cb__grid {
    grid-template-columns: 1fr;
  }
  .wallet-cb__summary {
    flex-wrap: wrap;
    padding: 22px 20px;
    gap: 14px;
  }
  .wallet-cb__summary-count {
    order: -1;
    margin-left: auto;
  }
  .wallet-cb__summary-value {
    font-size: 24px;
  }
}

/* Wallet view header */
.wallet-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.wallet-view-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.wallet-view-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hide zero-balance toggle */
.wallet-zero-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 250px;
  background: transparent;
  color: var(--text-muted, #888);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.wallet-zero-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.wallet-zero-toggle.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.wallet-zero-toggle svg {
  flex-shrink: 0;
}

/* ── Payment Cards (Stacca Pay + Credit Cards) ─────── */
.wallet-payment-cards {
  margin-bottom: 0;
}

.wallet-payment-cards .wallet-view-title {
  margin-bottom: 12px;
  font-size: 16px;
}

.wallet-payment-cards__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-pay-card {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* Stacca Pay Card */
.wallet-pay-card--stacca {
  background: #120d2e;
  box-shadow: 0 6px 24px rgba(26, 16, 64, 0.35);
}

.wallet-pay-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.wallet-payment-cards__hint {
  text-align: center;
  padding: 16px 0 0;
}
.wallet-payment-cards__hint span {
  font-size: 13px;
  color: var(--text-muted);
}

.wallet-pay-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 20px 24px;
}

.wallet-pay-card__balance {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wallet-pay-card__label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Credit Card */
.wallet-pay-card--cc {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.wallet-pay-card__cc-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 22px 24px;
}

.wallet-pay-card__cc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wallet-pay-card__cc-holder {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.wallet-pay-card__cc-type {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wallet-pay-card__cc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.wallet-pay-card__cc-number {
  font-family: 'Inter Tight', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
}

.wallet-pay-card__cc-expiry {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .wallet-payment-cards__list {
    gap: 14px;
  }

  .wallet-pay-card {
    width: 280px;
  }

  .wallet-pay-card__balance {
    font-size: 19px;
  }

  .wallet-pay-card__content {
    padding: 16px 18px;
  }

  .wallet-pay-card__cc-content {
    padding: 16px 18px;
  }
}

/* Clickable pay card */
.wallet-pay-card--clickable {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wallet-pay-card--clickable:hover {
  transform: translateY(-3px);
}

.wallet-pay-card--stacca.wallet-pay-card--clickable:hover {
  box-shadow: 0 14px 40px rgba(26, 16, 64, 0.55);
}

.wallet-pay-card--cc.wallet-pay-card--clickable:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}

/* ── Wallet Transaction History ─────────────────────── */
.wallet-tx {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 0 80px;
}

.wallet-tx__header {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.wallet-tx__card-mini {
  width: 320px;
}

.wallet-pay-card--mini {
  aspect-ratio: 1.586 / 1;
}

.wallet-tx__list {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wallet-tx__loading,
.wallet-tx__empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.wallet-tx__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wallet-tx__group {
  padding-top: 24px;
}

.wallet-tx__group-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.wallet-tx__items {
  display: flex;
  flex-direction: column;
}

.wallet-tx__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wallet-tx__item:last-child {
  border-bottom: none;
}

.wallet-tx__item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.wallet-tx__item-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0ecf5;
  color: var(--primary);
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.wallet-tx__item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-tx__item-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-tx__item-desc {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-tx__item-date {
  font-size: 12px;
  color: var(--text-muted);
}

.wallet-tx__item-amount {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.wallet-tx__item-amount--negative {
  color: var(--text);
}

.wallet-tx__load-more {
  text-align: center;
  padding: 24px 0;
}

.wallet-tx__load-more-btn {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: 1.5px solid var(--primary);
  border-radius: 250px;
  padding: 10px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.wallet-tx__load-more-btn:hover {
  background: var(--primary);
  color: #fff;
}

.wallet-tx__load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Merchant card grid */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Stacked View: Apple Wallet Style ───────────────── */
.wallet-cascade-container {
  background: #f8f6fa;
  border-radius: 20px;
  padding: 24px;
}

.wallet-cascade {
  max-width: 416px;
  margin: 0 auto;
}

.wallet-cascade__card {
  position: relative;
  aspect-ratio: 1.586 / 1;       /* credit-card ratio */
  width: 100%;
  margin-top: calc(-100% / 1.586 + 70px);   /* overlap: show ~70px strip per card */
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, margin 0.3s ease;
}

.wallet-cascade__card:first-child {
  margin-top: 0;
}

.wallet-cascade__card:hover {
  transform: translateX(100px); /* was: translateX(20px) translateY(-4px) */
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
  z-index: 100 !important;
}

.wallet-cascade__card:last-child {
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

/* Full-bleed background image */
.wallet-cascade__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

/* Dark gradient overlay for text legibility */
.wallet-cascade__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

/* Text content on top */
.wallet-cascade__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 22px;
  height: 100%;
  gap: 12px;
}

.wallet-cascade__left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wallet-cascade__name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.wallet-cascade__cat {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.wallet-cascade__right {
  flex-shrink: 0;
}

.wallet-cascade__balance {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ── Blur non-hovered cards ────────────────────────── */
.wallet-cascade:hover .wallet-cascade__card:not(:hover) .wallet-cascade__bg {
  filter: blur(2px) brightness(0.85);
  transition: filter 0.35s ease;
}

.wallet-cascade:hover .wallet-cascade__card:not(:hover) .wallet-cascade__overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.3) 100%);
  transition: background 0.35s ease;
}

.wallet-cascade__bg,
.wallet-cascade__overlay {
  transition: filter 0.35s ease, background 0.35s ease;
}

/* ── View switch animations ────────────────────────── */

/* Stack entrance: cards cascade in from left */
.wallet-cascade.wallet-view--enter .wallet-cascade__card {
  animation: cascadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cascadeIn {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Grid entrance: cards pop in from center */
.wallet-grid.wallet-view--enter > * {
  animation: gridPopIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gridPopIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Expanded merchant view */
.wallet-expanded {
  animation: walletFadeIn 0.3s ease;
}

@keyframes walletFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Expanded hero section */
.wallet-expanded-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 36px;
  padding: 36px 32px;
  background: linear-gradient(135deg, #f5f0fa 0%, #ede4f7 100%);
  border-radius: 20px;
}

.wallet-expanded-hero-img {
  width: 200px;
  aspect-ratio: 1.586;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(45, 16, 84, 0.18);
}
.wallet-expanded-hero-img--avatar {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(45, 16, 84, 0.15);
}

.wallet-expanded-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.wallet-hero-avatar--fade-in {
  animation: avatarFadeIn 0.7s ease both;
}

.wallet-expanded-hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wallet-expanded-hero-info h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
  font-family: 'Inter Tight', sans-serif;
}

.wallet-expanded-hero-cat {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.wallet-expanded-hero-meta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.wallet-expanded-hero-balance {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: 'Inter Tight', sans-serif;
}

.wallet-expanded-hero-balance-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.wallet-expanded-hero-chips {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

/* Card list header */
.wallet-card-list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wallet-card-list-header h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.wallet-card-list-header span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Card list */
.wallet-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-card-item {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wallet-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}

.wallet-card-item__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallet-card-item__img {
  width: 86px;
  aspect-ratio: 1.586;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.wallet-card-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-card-item__main {
  flex: 1;
  min-width: 0;
}

.wallet-card-item__name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.wallet-card-item__chips {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.wallet-card-item__value {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  padding: 2px 8px;
  background: #f3eef8;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.wallet-card-item__status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  font-family: 'Inter Tight', sans-serif;
}
.wallet-card-item__status--active {
  background: #e8f5e9;
  color: #2e7d32;
}
.wallet-card-item__status--expired {
  background: #fff3e0;
  color: #e65100;
}
.wallet-card-item__status--used {
  background: #f0f0f0;
  color: #888;
}

.wallet-card-item__balance-col {
  text-align: right;
  flex-shrink: 0;
}
.wallet-card-item__balance {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.wallet-card-item__balance-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-card-item__details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.wallet-card-item__detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}
.wallet-card-item__detail svg {
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

.wallet-card-item__buy {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-left: auto;
  transition: color 0.2s;
}
.wallet-card-item__buy:hover { color: var(--primary); }
.wallet-card-item__buy svg {
  opacity: 0.7;
  flex-shrink: 0;
}


/* Empty / loading states */
.wallet-empty {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 0 20px;
}

.wallet-empty-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.wallet-empty-icon--error {
  background: #fef0f0;
  color: #e74c3c;
}

.wallet-empty h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.wallet-empty p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.wallet-signin-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}

.wallet-signin-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.wallet-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.wallet-loading p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
  /* Collapse two-column layout to single column */
  .wallet-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wallet-sidebar {
    gap: 20px;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  /* Stats revert to horizontal row with individual card backgrounds */
  .wallet-stats {
    flex-direction: row;
    gap: 12px;
    background: none;
    border-radius: 0;
  }

  .wallet-stat {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f5f0fa 0%, #ede4f7 100%);
    border-radius: 16px;
    padding: 20px 22px;
    gap: 10px;
  }

  .wallet-stat:not(:last-child) {
    border-bottom: none;
  }

  .wallet-stat-value {
    font-size: 17px;
  }

  /* Payment cards revert to horizontal scroll */
  .wallet-payment-cards {
    margin-bottom: 8px;
  }

  .wallet-payment-cards__list {
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .wallet-pay-card {
    width: 300px;
  }

  .wallet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

}

@media (max-width: 768px) {
  .wallet-stats {
    flex-direction: column;
    gap: 12px;
  }

  .wallet-stat {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 18px 20px;
  }

  .wallet-stat-value {
    font-size: 15px;
  }

  .wallet-expanded-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .wallet-expanded-hero-img {
    width: 120px;
  }
  .wallet-expanded-hero-img--avatar {
    width: 96px;
  }

  .wallet-expanded-hero-info {
    align-items: center;
  }

  .wallet-expanded-hero-pills,
  .wallet-expanded-hero-chips {
    justify-content: center;
  }

  .wallet-card-item {
    padding: 16px 18px;
  }

  .wallet-card-item__img {
    width: 70px;
  }

  .wallet-card-item__name {
    font-size: 14px;
  }

  .wallet-card-item__balance {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .wallet-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wallet-cascade__card {
    margin-top: calc(-100% / 1.586 + 60px);   /* slightly tighter on mobile */
  }

  .wallet-cascade__card:first-child {
    margin-top: 0;
  }

  .wallet-cascade__content {
    padding: 14px 16px;
  }

  .wallet-cascade__name {
    font-size: 15px;
  }

  .wallet-cascade__balance {
    font-size: 16px;
  }

  .wallet-cascade__card:hover {
    transform: translateY(-8px);
  }

  .wallet-section {
    padding: 24px 0 60px;
  }

  .wallet-card-item {
    padding: 14px 16px;
  }

  .wallet-card-item__details {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .wallet-card-item__buy {
    margin-left: 0;
    align-self: stretch;
    justify-content: center;
    width: 100%;
    padding: 8px 0 0;
    margin-top: 4px;
    border-top: 1px solid #f0f0f0;
  }

  .wallet-expanded-hero {
    padding: 20px 16px;
  }

  .wallet-expanded-hero-info h2 {
    font-size: 22px;
  }

  .wallet-expanded-hero-balance {
    font-size: 20px;
  }
}

/* ── CMS Edit Mode ───────────────────────────────────── */

/* CMS Floating Edit Button */
.cms-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(107, 63, 160, 0.45);
  z-index: 1050;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cms-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(107, 63, 160, 0.6);
}

.cms-toolbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: linear-gradient(135deg, #1a1a2e, #2d1054);
  border-bottom: 2px solid var(--accent);
  padding: 10px 0;
}
.cms-toolbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cms-toolbar-label {
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.cms-toolbar-hint {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  flex: 1;
}
.cms-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cms-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  transition: background 0.2s, transform 0.1s;
}
.cms-btn:active { transform: scale(0.97); }
.cms-btn--cancel {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.cms-btn--cancel:hover { background: rgba(255,255,255,0.25); }
.cms-btn--save {
  background: #27ae60;
  color: #fff;
}
.cms-btn--save:hover { background: #219a52; }
.cms-btn--save:disabled { opacity: 0.6; cursor: not-allowed; }

/* Editable element indicators */
.cms-editable {
  outline: 2px dashed var(--accent) !important;
  outline-offset: 3px;
  cursor: text;
  border-radius: 4px;
  transition: outline-color 0.2s, background 0.2s;
  min-height: 1em;
}
.cms-editable:hover {
  outline-color: #e67e22;
  background: rgba(155, 89, 182, 0.06);
}
.cms-editable:focus {
  outline: 2px solid var(--accent) !important;
  background: rgba(155, 89, 182, 0.1);
}

/* Image edit overlay */
.cms-image-wrap {
  position: relative;
  display: inline-block;
}
.cms-image-wrap.cms-editable {
  cursor: pointer;
  outline-offset: 6px;
}
.cms-image-edit-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-family: 'Inter Tight', sans-serif;
  white-space: nowrap;
  z-index: 2;
}
.cms-image-edit-btn:hover { opacity: 1; }

/* Image editor modal */
.cms-image-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cms-image-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.cms-image-modal h3 {
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--primary);
}
.cms-image-url-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e8e0f0;
  border-radius: 10px;
  font-size: 14px;
  margin: 8px 0 12px;
  font-family: 'Inter Tight', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.cms-image-url-input:focus { border-color: var(--accent); }
.cms-image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  margin: 8px 0;
  object-fit: contain;
  display: block;
}
.cms-image-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cms-image-modal-actions .cms-btn--cancel {
  background: #eee;
  color: var(--text);
}
.cms-image-modal-actions .cms-btn--cancel:hover {
  background: #ddd;
}

/* CMS Toast */
.cms-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #2e7d32;
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
  z-index: 2100;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  white-space: nowrap;
}
.cms-toast-enter-active { animation: cmsToastIn 0.3s ease; }
.cms-toast-leave-active { animation: cmsToastOut 0.3s ease; }
@keyframes cmsToastIn { from { opacity: 0; transform: translateX(-50%) translateY(-16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes cmsToastOut { from { opacity: 1; transform: translateX(-50%) translateY(0); } to { opacity: 0; transform: translateX(-50%) translateY(-16px); } }

/* Responsive CMS toolbar */
@media (max-width: 768px) {
  .cms-toolbar-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cms-toolbar-hint { display: none; }
  .cms-toolbar-actions { width: 100%; }
  .cms-toolbar-actions .cms-btn { flex: 1; text-align: center; }
  .site-settings-modal { padding: 28px 20px; margin: 0 16px; }
}

/* ── Notification Bell (Header) ─────────────────────────── */
.header-notif-btn {
  position: relative;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-notif-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.header-notif-dot {
  position: absolute;
  top: 2px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

/* ── Notification Push Panel ─────────────────────────────── */
.notif-app-wrap {
  transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
}
.notif-app-wrap.notif-open {
  margin-right: 420px;
}

.notif-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(45,16,84,0.2);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.notif-panel.open {
  transform: translateX(0);
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f0edf4;
}
.notif-panel-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.notif-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}
.notif-panel-close:hover {
  background: var(--bg-gray);
  color: var(--text);
}

.notif-unread-banner {
  padding: 12px 24px;
  background: var(--bg-light);
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid #f0edf4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notif-mark-all-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
  font-family: 'Inter Tight', sans-serif;
  transition: color 0.2s;
}
.notif-mark-all-btn:hover { color: var(--primary); }

.notif-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.notif-panel-body::-webkit-scrollbar { width: 4px; }
.notif-panel-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* Group label */
.notif-group-label {
  padding: 16px 24px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Notification item */
.notif-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  transition: background 0.15s;
  cursor: default;
}
.notif-item:hover {
  background: var(--bg-gray);
}
.notif-item.unread {
  background: #faf8fc;
}
.notif-item.unread:hover {
  background: #f3eef8;
}

/* Avatar */
.notif-item-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}
.notif-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.notif-item-avatar-initial {
  width: 100%;
  height: 100%;
  background: #8b7355;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

/* Content */
.notif-item-content {
  flex: 1;
  min-width: 0;
}
.notif-item-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}
.notif-item-title strong {
  font-weight: 700;
}
.notif-item-message {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Actions */
.notif-item-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.notif-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  flex-shrink: 0;
}
.notif-item-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  font-family: 'Inter Tight', sans-serif;
}
.notif-item-btn--view {
  background: none;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.notif-item-btn--view:hover {
  background: var(--bg-light);
}
/* Loading / Empty */
.notif-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.notif-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8e0f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gcSpin 0.7s linear infinite;
}
.notif-spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}
.notif-loading-more {
  display: flex;
  justify-content: center;
  padding: 16px;
}
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 24px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ── Notification Panel Responsive ──────────────────────── */
@media (max-width: 720px) {
  .notif-app-wrap.notif-open { margin-right: 0; }
  .notif-panel { width: 100vw; }
}
@media (max-width: 480px) {
  .notif-panel-header { padding: 20px 16px 14px; }
  .notif-panel-header h2 { font-size: 20px; }
  .notif-unread-banner { padding: 10px 16px; }
  .notif-group-label { padding: 14px 16px 6px; }
  .notif-item { padding: 12px 16px; gap: 12px; }
  .notif-item-avatar { width: 40px; height: 40px; }
}

/* ── Gift Card View Modal ──────────────────────────────── */
.gift-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 24px 64px rgba(45,16,84,0.25);
  animation: signinSlideUp 0.3s ease;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.gift-modal::-webkit-scrollbar { display: none; }

.gift-modal .signin-close {
  color: rgba(255,255,255,0.7);
  z-index: 2;
}
.gift-modal .signin-close:hover { color: #fff; }

/* Loading */
.gift-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 40px;
  color: var(--text-muted);
  font-size: 15px;
}

/* Error */
.gift-modal-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 40px;
  text-align: center;
  color: var(--text-muted);
}
.gift-modal-error svg { color: #ccc; }
.gift-modal-error p { font-size: 15px; margin: 0; }
.gift-modal-retry-btn {
  margin-top: 8px;
  padding: 10px 28px;
  border-radius: 10px;
  border: 1.5px solid #e0dae8;
  background: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  transition: border-color 0.2s, background 0.2s;
}
.gift-modal-retry-btn:hover { border-color: var(--accent); background: #faf7ff; }

/* Gradient Header */
.gift-modal-header {
  background: linear-gradient(135deg, #2d1054 0%, #5a2d82 50%, #7b3fa0 100%);
  padding: 48px 32px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gift-modal-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.gift-modal-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.gift-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.gift-modal-amount {
  font-family: 'Inter Tight', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}
.gift-modal-merchant {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* Card Image */
.gift-modal-card-visual {
  background: linear-gradient(145deg, #f8f4fc 0%, #ede6f5 100%);
  padding: 28px;
  display: flex;
  justify-content: center;
}
.gift-modal-card-frame {
  max-width: 360px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(45,16,84,0.15);
}
.gift-modal-card-img {
  width: 100%;
  aspect-ratio: 1.586;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

/* Sender Row */
.gift-modal-sender {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid #f0edf4;
}
.gift-modal-sender-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gift-modal-sender-initial {
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.gift-modal-sender-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gift-modal-sender-label {
  font-size: 12px;
  color: var(--text-muted);
}
.gift-modal-sender-info strong {
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}

/* Personal Message */
.gift-modal-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid #f0edf4;
  background: linear-gradient(135deg, rgba(155,89,182,0.04), rgba(108,52,165,0.02));
}
.gift-modal-message-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(155,89,182,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gift-modal-message-text {
  font-size: 15px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  padding-top: 6px;
}

/* Details Grid */
.gift-modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 24px 28px;
  border-bottom: 1px solid #f0edf4;
}
.gift-modal-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gift-modal-detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.gift-modal-detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.gift-modal-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.gift-modal-status--active {
  background: #e8f5e9;
  color: #2e7d32;
}
.gift-modal-status--used {
  background: #f0f0f0;
  color: #888;
}
.gift-modal-status--expired {
  background: #fff3e0;
  color: #e65100;
}

/* Description */
.gift-modal-desc {
  padding: 20px 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  border-bottom: 1px solid #f0edf4;
}

/* Redemption History */
.gift-modal-history {
  padding: 20px 28px;
  border-bottom: 1px solid #f0edf4;
}
.gift-modal-history-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.gift-modal-history-list {
  display: flex;
  flex-direction: column;
}
.gift-modal-history-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f2f8;
}
.gift-modal-history-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.gift-modal-history-item:first-child {
  padding-top: 0;
}
.gift-modal-history-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: #fef2f2;
  color: #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gift-modal-history-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.gift-modal-history-amount {
  font-size: 14px;
  font-weight: 700;
  color: #e74c3c;
}
.gift-modal-history-address {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gift-modal-history-date {
  font-size: 12px;
  color: var(--text-muted);
}
/* Actions */
.gift-modal-actions {
  padding: 20px 28px 28px;
}
.gift-modal-done-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.gift-modal-done-btn:hover { background: #3d1a6e; }

/* Gift Modal Responsive */
@media (max-width: 480px) {
  .gift-modal { max-width: 100%; margin: 12px; border-radius: 16px; }
  .gift-modal-header { padding: 40px 24px 24px; }
  .gift-modal-amount { font-size: 34px; }
  .gift-modal-card-visual { padding: 20px; }
  .gift-modal-sender { padding: 16px 20px; }
  .gift-modal-message { padding: 16px 20px; }
  .gift-modal-details { padding: 20px; gap: 14px; }
  .gift-modal-desc { padding: 16px 20px; }
  .gift-modal-history { padding: 16px 20px; }
  .gift-modal-actions { padding: 16px 20px 24px; }
}
