/* ==========================================================================
   RUVEKA STORE - GLOBAL DESIGN SYSTEM
   Premium White / Royal Blue / Gold Theme
   Ultra-modern SaaS styling with sophisticated animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* === Core White & Blue Palette === */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-blue-subtle: #f8fafc;
  --bg-blue-soft: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-overlay: rgba(15, 23, 42, 0.55);

  /* === Monochrome & Neutral Spectrum === */
  --blue-50: #f8fafc;
  --blue-100: #f1f5f9;
  --blue-200: #e2e8f0;
  --blue-300: #cbd5e1;
  --blue-400: #94a3b8;
  --blue-500: #64748b;
  --blue-600: #475569;
  --blue-700: #334155;
  --blue-800: #1e293b;
  --blue-900: #0f172a;

  /* === Primary & Accent (Obsidian Ink & Modern Precision) === */
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --primary-light: #334155;
  --primary-glow: rgba(15, 23, 42, 0.08);
  --primary-shadow: rgba(15, 23, 42, 0.12);

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;

  --gold: #b45309;
  --gold-light: #d97706;
  --gold-dark: #92400e;
  --gold-glow: rgba(217, 119, 6, 0.12);

  /* === Semantic Colors === */
  --success: #059669;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --info: #0f172a;
  --info-light: #f1f5f9;

  /* === Platform Brand Colors === */
  --brand-amazon: #ad6500;
  --brand-meesho: #d52c72;
  --brand-flipkart: #2875d7;
  --brand-myntra: #ed3b82;
  --brand-ajio: #292929;

  /* === Text === */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-white: #ffffff;

  /* === Borders === */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #3157d5;
  --border-hover: #94a3b8;

  /* === Shadows === */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  --shadow-blue: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-blue-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.06);

  /* === Typography === */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* === Radius === */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* === Timing === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s var(--ease-smooth);
  --transition-normal: 0.25s var(--ease-smooth);
  --transition-slow: 0.4s var(--ease-out);
}

/* ===== Animation Keyframes ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--blue-200); }
  50% { border-color: var(--primary); }
}

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

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

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.4; }
  100% { transform: scale(4); opacity: 0; }
}

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

/* Animation Utility Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.7s var(--ease-out) both;
}
.animate-fade-in-down {
  animation: fadeInDown 0.6s var(--ease-out) both;
}
.animate-fade-in {
  animation: fadeIn 0.5s var(--ease-smooth) both;
}
.animate-slide-left {
  animation: slideInLeft 0.6s var(--ease-out) both;
}
.animate-slide-right {
  animation: slideInRight 0.6s var(--ease-out) both;
}
.animate-scale-in {
  animation: scaleIn 0.5s var(--ease-spring) both;
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1 { font-size: 2.25rem; letter-spacing: -0.03em; }
h2 { font-size: 1.75rem; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; }

p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-primary:active {
  background-color: #020617;
  box-shadow: none;
}

.btn-secondary {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-gold {
  background-color: var(--gold);
  border: 1px solid var(--gold);
  color: #ffffff;
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  color: #ffffff;
}

.btn-danger {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.btn-danger:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-md {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-full { width: 100%; }

/* ===== Forms & Inputs ===== */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
  color: var(--text-subtle);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}

/* ===== Checkbox (DPDP Consent) ===== */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox-text strong {
  color: var(--text-primary);
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-amazon,
.badge-meesho,
.badge-flipkart,
.badge-myntra,
.badge-ajio,
.badge-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #b9e4ca;
}

.badge-amazon { color: #8b5200; background: #fff5df; border-color: #f1d398; }
.badge-meesho { color: #b71e5b; background: #fff0f6; border-color: #f6c5d8; }
.badge-flipkart { color: #1d58a6; background: #edf5ff; border-color: #c8dcf8; }
.badge-myntra { color: #bd245f; background: #fff0f6; border-color: #f6c5d8; }
.badge-ajio { color: #334155; background: #f1f5f9; border-color: #cbd5e1; }

/* ===== Modals ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s var(--ease-spring);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

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

.modal-close {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
}

/* ===== Toast Notifications ===== */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
  pointer-events: auto;
  max-width: 380px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

.toast-info {
  border-left: 4px solid var(--primary);
}

/* ===== Spinners ===== */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.spinner-white {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
}

/* ===== Ruveka Brand Logo ===== */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-logo-text span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 1rem; }
  .modal-content { padding: 1.5rem; }
  h1 { font-size: 2rem; }
}

/* Accessible defaults shared by every page. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.45);
  outline-offset: 3px;
}

button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
img, video, iframe { max-width: 100%; }
pre, code, table { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RUVEKA BILLING & QUOTA STYLES
   ============================================================ */

/* ── Subscription & Quota Banner Card ──────────────────────── */
.subscription-banner-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.sub-banner-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  flex: 1;
}

.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.sub-status-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  flex-wrap: wrap;
}

.sub-status-text strong {
  color: var(--primary);
  font-weight: 800;
}

.sub-expiry-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.sub-expiry-pill.active {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.sub-expiry-pill.expired {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.sub-progress-wrap {
  width: 140px;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.sub-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.sub-queued-alert {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 0.35rem;
}

.sub-queued-alert strong {
  color: #0f172a;
  font-weight: 700;
}

.sub-banner-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Billing Modal Backdrop & Card ─────────────────────────── */
.billing-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}

.billing-modal-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
}

.billing-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.billing-close-btn:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.billing-modal-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.billing-title-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.billing-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.billing-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.billing-reason-alert {
  display: inline-block;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.current-plan-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.sub-validity-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.sub-validity-tag.tag-active {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.sub-validity-tag.tag-expired {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ── Billing Plans Grid (5 Plans) ───────────────────────────── */
.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
  align-items: stretch;
}

.billing-plan-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  padding: 1.5rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.billing-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}

.billing-plan-card.popular-card {
  border: 2px solid #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  white-space: nowrap;
}

.billing-plan-card.current-card {
  border-color: #0f172a;
  background: #f8fafc;
}

.plan-header-col {
  margin-bottom: 1.25rem;
}

.plan-badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--blue-50);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.plan-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.plan-currency {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-amount {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.plan-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-limit-highlight {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.plan-card-tagline {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  min-height: 2.8rem;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.plan-features-list .f-check {
  color: #0f172a;
  font-weight: 800;
  font-size: 0.85rem;
}

.plan-action-col .btn {
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
}

.btn-current {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  cursor: default !important;
}

/* ── Demo Checkout Box ──────────────────────────────────────── */
.checkout-action-box {
  margin-top: 1.5rem;
}

.demo-checkout-card {
  background: var(--blue-50);
  border: 2px dashed var(--primary);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  text-align: center;
}

.demo-badge {
  display: inline-block;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--blue-200);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.demo-checkout-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.demo-checkout-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

.demo-desc-text {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  max-width: 580px;
  margin: 0 auto 1.5rem !important;
  line-height: 1.5;
}

.demo-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.billing-footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .subscription-banner-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .sub-banner-right {
    width: 100%;
  }
  .sub-banner-right .btn {
    width: 100%;
  }
  .billing-modal-card {
    padding: 1.75rem 1.25rem;
  }
  .billing-plans-grid {
    grid-template-columns: 1fr;
  }
}
