/* ==============================================================================
   KRYSKAFLOW — Creator Dashboard Design System (Pure White Studio)
   ============================================================================== */

/* Local Self-Hosted Fonts (Zero IP Leak) */
@import url('fonts.css');

:root {
  --bg-app: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --accent-red: #FF1E27;
  --accent-red-hover: #E60023;
  --accent-green: #10B981;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-app: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

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

html, body {
  height: 100vh;
  overflow: hidden;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  display: flex;
}

/* Sidebar — Fixed Pinned Navigation */
.dashboard-sidebar {
  width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-app);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  overflow-y: auto;
  z-index: 100;
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.brand-header {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #000000;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 0px;
  line-height: 1;
}

.brand-header span {
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-header .logo-flow {
  color: var(--accent-red);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: var(--bg-app);
  color: var(--accent-red);
}

/* Main Dashboard Area (Independent Scroll Container) */
.dashboard-main {
  flex: 1;
  height: 100vh;
  padding: 36px 40px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.dashboard-main::-webkit-scrollbar {
  width: 6px;
}

.dashboard-main::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 6px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.topbar-title h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #000;
}

.topbar-title p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-badge-connected {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Stats Overview Grid */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.dash-stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-app);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.dash-stat-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #000;
  margin: 8px 0 4px;
}

.dash-stat-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quota-progress-bar {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.quota-progress-fill {
  height: 100%;
  width: 18.2%;
  background: var(--accent-red);
  transition: width 0.3s ease, background 0.3s ease;
}

.quota-progress-fill.warning {
  background: linear-gradient(90deg, #FF1E27 0%, #E11D48 100%);
}

/* Proactive 85% Quota Warning Banner — High-Urgency Red Alert with Breathing Pulse Effect */
@keyframes quotaAlertGlow {
  0% {
    box-shadow: 0 4px 16px rgba(255, 30, 39, 0.12), 0 0 0 0 rgba(255, 30, 39, 0.2);
    border-color: rgba(255, 30, 39, 0.35);
  }
  50% {
    box-shadow: 0 8px 26px rgba(255, 30, 39, 0.22), 0 0 0 5px rgba(255, 30, 39, 0.08);
    border-color: rgba(255, 30, 39, 0.6);
  }
  100% {
    box-shadow: 0 4px 16px rgba(255, 30, 39, 0.12), 0 0 0 0 rgba(255, 30, 39, 0.2);
    border-color: rgba(255, 30, 39, 0.35);
  }
}

@keyframes quotaIconHeartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.quota-warning-banner {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 50%, #FFF5F5 100%);
  border: 1.5px solid rgba(255, 30, 39, 0.35);
  border-left: 5px solid #FF1E27;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(255, 30, 39, 0.12);
  animation: quotaAlertGlow 3s ease-in-out infinite;
  transition: all 0.25s var(--ease-apple);
}

.quota-warning-banner:hover {
  box-shadow: 0 8px 28px rgba(255, 30, 39, 0.28);
  border-color: #FF1E27;
}

.quota-warning-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.quota-warning-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 30, 39, 0.12);
  border: 1px solid rgba(255, 30, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  animation: quotaIconHeartbeat 3s ease-in-out infinite;
}

.quota-warning-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quota-warning-text strong {
  color: #991B1B;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.quota-warning-text span {
  color: #B91C1C;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 500;
}

.btn-quota-topup-action {
  background: linear-gradient(135deg, #FF1E27 0%, #D80F17 100%);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 30, 39, 0.35);
  transition: all 0.2s var(--ease-apple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-quota-topup-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 30, 39, 0.5);
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
}

.quota-warning-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-quota-shield-action {
  background: #FFFFFF;
  color: #0F172A;
  border: 1.5px solid #CBD5E1;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease-apple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-quota-shield-action:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .quota-warning-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .quota-warning-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .btn-quota-topup-action,
  .btn-quota-shield-action {
    width: 100%;
    justify-content: center;
  }
}

/* ==============================================================================
   NEVER-STOP VIRAL SHIELD & HARD SPEND CAP MODAL STYLES
   ============================================================================== */
.modal-overlay,
.dash-modal-overlay,
.dash-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 100000 !important;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

.modal-overlay[style*="display: none"],
.dash-modal-overlay[style*="display: none"],
.dash-modal-backdrop[style*="display: none"],
.modal-overlay.hidden,
.dash-modal-overlay.hidden,
.dash-modal-backdrop.hidden {
  display: none !important;
}

.dash-modal-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: auto !important;
  position: relative !important;
}

.dash-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}

.modal-header-icon-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.dash-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 2px 0;
  letter-spacing: -0.01em;
}

.dash-modal-subtitle {
  font-size: 0.78rem;
  color: #64748B;
  margin: 0;
}

.dash-modal-close {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.dash-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.dash-modal-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 72vh;
  overflow-y: auto;
}

.shield-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  gap: 16px;
}

.shield-toggle-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
}

.shield-toggle-desc {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.4;
}

/* Switch Toggle Slider */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background-color: #CBD5E1;
  border-radius: 34px;
  transition: 0.25s ease;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-toggle input:checked + .switch-slider {
  background-color: #10B981;
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(22px);
}

/* Shield Rate Box */
.shield-rate-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .shield-rate-box {
    grid-template-columns: 1fr;
  }
}

.rate-box-col {
  padding: 14px 16px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
}

.rate-box-col.highlight-box {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.35);
}

.rate-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rate-box-val {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
}

.rate-box-val.text-accent {
  color: #059669;
}

.rate-box-sub {
  font-size: 0.72rem;
  color: #94A3B8;
}

/* Hard Safety Spend Cap Section */
.shield-cap-section {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 16px;
  padding: 18px 20px;
}

.cap-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 3px;
}

.cap-help-text {
  font-size: 0.78rem;
  color: #B45309;
  display: block;
  margin-bottom: 12px;
}

.cap-pill-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn-cap-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #FCD34D;
  background: #FFFFFF;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  color: #78350F;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cap-pill:hover {
  background: #FEF3C7;
}

.btn-cap-pill.active {
  background: #D97706;
  border-color: #D97706;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.cap-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cap-custom-label {
  font-size: 0.78rem;
  color: #78350F;
  font-weight: 600;
}

.cap-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cap-curr-sym {
  position: absolute;
  left: 10px;
  font-weight: 800;
  color: #64748B;
  font-size: 0.85rem;
}

.cap-input {
  width: 100px;
  padding: 6px 10px 6px 24px;
  border: 1.5px solid #FCD34D;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  background: #FFFFFF;
  outline: none;
}

.cap-input:focus {
  border-color: #D97706;
}

.cap-reassurance-note {
  font-size: 0.75rem;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

/* Zero-Drop Viral Vault Card */
.viral-vault-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  gap: 16px;
}

.vault-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vault-icon {
  font-size: 1.5rem;
}

.vault-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0F172A;
}

.vault-desc {
  font-size: 0.74rem;
  color: #64748B;
}

.vault-status-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vault-counter-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: #0F172A;
  background: #E2E8F0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.btn-vault-flush {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.15s;
}

.btn-vault-flush:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Modal Footer */
.dash-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-modal-secondary {
  padding: 9px 18px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.btn-modal-primary {
  padding: 9px 20px;
  border: none;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transition: all 0.15s;
}

.btn-modal-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

/* Zero-Calculator Booster Dashboard Styling */
.booster-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}

.booster-orig-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: line-through;
}

.booster-save-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-pill, 999px);
  letter-spacing: 0.03em;
}

/* Section Header */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header-row h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #000;
}

.btn-add-rule {
  background: var(--accent-red);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 30, 39, 0.3);
}

.btn-add-rule:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
}

/* Automation Rules Table */
.rules-table-card {
  background: var(--bg-white);
  border: 1px solid var(--border-app);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dash-table th, .dash-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-app);
  font-size: 0.92rem;
}

.dash-table th {
  background: #FAFBFD;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Invoice Action Button */
.invoice-download-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  min-width: 140px !important;
  color: #FF1E27 !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  padding: 6px 16px !important;
  border-radius: var(--radius-pill) !important;
  background: rgba(255, 30, 39, 0.08) !important;
  border: 1px solid rgba(255, 30, 39, 0.25) !important;
  transition: all 0.2s var(--ease-apple) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.invoice-download-btn:hover {
  background: #FF1E27 !important;
  color: #FFFFFF !important;
  border-color: #FF1E27 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(255, 30, 39, 0.3) !important;
}

.invoice-download-btn:active {
  transform: translateY(0) !important;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  min-width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: var(--accent-green);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-app);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 30, 39, 0.15);
}

/* ==============================================================================
   7. DASHBOARD TOP-UP & FLASH LAUNCH PASSES
   ============================================================================== */
.btn-stat-topup {
  background: rgba(255, 30, 39, 0.08);
  color: var(--accent-red);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid rgba(255, 30, 39, 0.2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-stat-topup:hover {
  background: var(--accent-red);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Currency Switcher in Dashboard */
.dash-currency-toggle {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dash-curr-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-app);
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dash-curr-btn:hover {
  color: #0F172A;
}

.dash-curr-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Top-Up Cards Partition Sections */
.topup-partition-section {
  margin-bottom: 24px;
}

.topup-partition-header {
  margin-bottom: 14px;
}

.topup-partition-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topup-partition-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.topup-partition-desc {
  font-size: 0.78rem;
  color: #64748B;
  margin: 4px 0 0 28px;
}

.topup-divider-wrap {
  margin: 32px 0 24px;
  border-top: 1.5px dashed #CBD5E1;
  position: relative;
  text-align: center;
}

.topup-divider-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #F8FAFC;
  padding: 2px 14px;
  font-size: 0.70rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
}

/* Top-Up Cards Grid */
.dash-topup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.dash-topup-grid.booster-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  max-width: 1320px;
}

.dash-topup-grid.pass-grid {
  grid-template-columns: repeat(2, minmax(260px, 340px));
  max-width: 1060px;
}

@media (max-width: 900px) {
  .dash-topup-grid.booster-grid,
  .dash-topup-grid.pass-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

.dash-topup-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-app);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.dash-topup-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.dash-topup-card.popular {
  border-color: #FF1E27;
  background: linear-gradient(180deg, rgba(255, 30, 39, 0.02) 0%, #FFFFFF 100%);
  box-shadow: 0 10px 25px -5px rgba(255, 30, 39, 0.1);
}

.dash-topup-card.pass-card {
  border-color: #E2E8F0;
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.02) 0%, #FFFFFF 100%);
}

.dash-topup-card.pass-card.popular {
  border-color: #0284C7;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15);
}

.dash-topup-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #F1F5F9;
  color: #475569;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.dash-topup-badge.badge-popular {
  background: rgba(255, 30, 39, 0.12);
  color: #FF1E27;
}

.dash-topup-badge.badge-saver {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.dash-topup-badge.badge-pass {
  background: rgba(2, 132, 199, 0.12);
  color: #0284C7;
}

.dash-topup-badge.badge-mega {
  background: linear-gradient(135deg, rgba(255, 30, 39, 0.15) 0%, rgba(2, 132, 199, 0.15) 100%);
  color: #0F172A;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dash-topup-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.dash-topup-desc {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 16px;
  min-height: 34px;
}

.dash-topup-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.btn-dash-buy {
  margin-top: auto;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-app);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  background: #F1F5F9;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-dash-buy:hover {
  background: #0F172A;
  color: #FFFFFF;
}

.btn-dash-buy:active {
  transform: scale(0.97);
}

.btn-dash-buy.btn-popular {
  background: var(--accent-red);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 30, 39, 0.25);
}

.btn-dash-buy.btn-popular:hover {
  background: #D80F17;
  box-shadow: 0 6px 18px rgba(255, 30, 39, 0.4);
}

/* Pulsing highlight for selected card */
@keyframes dashPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 30, 39, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(255, 30, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 30, 39, 0); }
}

.dash-topup-card.highlight-pulse {
  animation: dashPulseGlow 1.5s infinite;
  border-color: var(--accent-red) !important;
}

/* Floating Toast Notification — iOS 27 Liquid Glass */
.dash-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: radial-gradient(135% 120% at 15% 0%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 45%, transparent 80%),
              linear-gradient(145deg, rgba(17, 25, 44, 0.78) 0%, rgba(8, 13, 25, 0.9) 100%);
  backdrop-filter: blur(28px) saturate(210%) contrast(108%);
  -webkit-backdrop-filter: blur(28px) saturate(210%) contrast(108%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 10px 20px -5px rgba(0, 0, 0, 0.35),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.35),
    0 0 25px rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 999999 !important;
  transform: translateY(120%) scale(0.92);
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.36s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 390px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.dash-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.toast-body h4 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.toast-body p {
  font-size: 0.78rem;
  color: rgba(241, 245, 249, 0.85);
  line-height: 1.4;
}

/* ==============================================================================
   8. CREATOR MILESTONE PLAQUE & STORY FLEX GENERATOR
   ============================================================================== */
.creator-milestone-plaque {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
}

.creator-milestone-plaque::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 30, 39, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.milestone-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.milestone-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #FF1E27 0%, #FF5A60 100%);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.milestone-status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.milestone-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.milestone-heading .highlight-count {
  color: #F87171;
  text-shadow: 0 0 16px rgba(248, 113, 113, 0.4);
}

.milestone-subtext {
  font-size: 0.85rem;
  color: #94A3B8;
  margin: 0;
}

.milestone-subtext strong {
  color: #F1F5F9;
}

.btn-share-story {
  background: #FFFFFF;
  color: #0F172A;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-family: var(--font-app);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  z-index: 1;
}

.btn-share-story:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 30, 39, 0.3);
  color: #FF1E27;
}

.story-format-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Modal Branding Toggle & Live DM Preview */
.rule-branding-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
}

.rule-branding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.rule-branding-header .switch {
  flex-shrink: 0;
  width: 44px;
  min-width: 44px;
  height: 24px;
  margin-left: auto;
}

.badge-referral-perk {
  font-size: 0.65rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.rule-dm-preview-card {
  margin-top: 14px;
  background: #000000;
  border: 1px solid #27272A;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #FFFFFF;
}

.preview-bubble-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: #A1A1AA;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #1F2937;
  padding-bottom: 8px;
}

.preview-bubble-header .ig-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #EC4899, #8B5CF6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.preview-ig-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Instagram Inbound Bot Message Bubble */
.preview-ig-bubble {
  background: #262626;
  border-radius: 18px;
  padding: 12px 14px;
  max-width: 85%;
  align-self: flex-start;
  color: #F4F4F5;
  font-size: 0.84rem;
  line-height: 1.4;
  position: relative;
}

/* Clickable Quick Reply Button inside Instagram DM */
.preview-ig-btn {
  display: block;
  width: 100%;
  background: #3A3A3C;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.preview-ig-btn:hover {
  background: #48484A;
}

/* User's Outbound Reply (Purple Pill Bubble on the right) */
.preview-ig-user-reply {
  background: linear-gradient(135deg, #9333EA 0%, #A855F7 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 75%;
  align-self: flex-end;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.preview-bubble-footer {
  margin-top: 6px;
  padding-top: 6px;
  font-size: 0.7rem;
  color: #A1A1AA;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

@media (max-width: 900px) {
  .creator-milestone-plaque {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-share-story {
    width: 100%;
    justify-content: center;
  }
}

/* Viral Badge & Referral Credits Widget */
.viral-credit-widget {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
  position: relative;
}

.viral-credit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.viral-credit-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.viral-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.viral-status-active {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.viral-credit-title-group h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.viral-credit-title-group p {
  font-size: 0.84rem;
  color: #64748B;
  margin: 0;
}

.viral-credit-link-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 320px;
}

.viral-link-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.viral-link-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viral-link-input-wrap input {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.8rem;
  font-family: monospace;
  color: #0F172A;
  width: 100%;
  outline: none;
}

.btn-copy-ref {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-copy-ref:hover {
  background: var(--accent-red);
}

.viral-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.viral-metric-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.viral-metric-card.highlight-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(5, 150, 105, 0.12) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.viral-metric-icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.viral-metric-data {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.viral-metric-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
}

.viral-metric-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
}

.viral-metric-sub {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 4px;
}

.viral-metric-sub strong {
  color: #059669;
}

.viral-credit-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #059669;
  background: #FFFFFF;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  vertical-align: middle;
}

.viral-credit-badge.badge-yearly {
  color: #2563EB;
  border-color: rgba(37, 99, 235, 0.35);
  background: #EFF6FF;
}

/* Interactive Plan Switcher Pill Group */
.plan-switcher-pill-group {
  display: inline-flex;
  background: #F1F5F9;
  padding: 2px;
  border-radius: var(--radius-pill);
  gap: 2px;
  border: 1px solid #E2E8F0;
}

.btn-plan-pill {
  background: transparent;
  border: none;
  font-family: var(--font-app);
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-plan-pill:hover {
  color: #0F172A;
}

.btn-plan-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Viral Simulator Controls Bar */
.viral-sim-controls-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sim-control-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

/* Stepper for Referrals */
.stepper-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 2px 6px;
}

.btn-stepper {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0F172A;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-stepper:hover {
  background: #0F172A;
  color: #FFFFFF;
}

.stepper-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  min-width: 22px;
  text-align: center;
}

/* Bonus Claim & Validity Policy Card */
.viral-rules-policy-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.viral-rules-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.viral-rules-icon {
  font-size: 1.4rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.viral-rules-header h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 3px 0;
}

.viral-rules-header p {
  font-size: 0.78rem;
  color: #64748B;
  margin: 0;
}

.viral-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.viral-rule-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.viral-rule-item:hover {
  transform: translateY(-1px);
  border-color: #CBD5E1;
}

.rule-badge-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.01em;
}

.rule-badge-pill.rule-gate {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.rule-badge-pill.rule-cycle {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.rule-badge-pill.rule-validity {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.rule-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

.rule-desc strong {
  color: #0F172A;
}

/* Follow-to-Unlock / Follower Growth Engine UI */
.follow-gate-box {
  background: #FAF5FF;
  border: 1.5px solid #E9D5FF;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.follow-gate-box.active {
  border-color: #A855F7;
  background: #F5EEFE;
  box-shadow: 0 4px 12px -2px rgba(168, 85, 247, 0.12);
}

.follow-gate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.badge-growth-boost {
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.28);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.badge-follow-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6D28D9;
  background: #EDE9FE;
  border: 1px solid rgba(109, 40, 217, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: 4px;
}

.badge-instant-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0284C7;
  background: #E0F2FE;
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: 4px;
}

/* ==============================================================================
   DEDICATED FULL-PAGE AUTOMATION RULE STUDIO & PHONE MOCKUP
   ============================================================================== */
.rule-studio-container {
  padding-bottom: 60px;
  animation: studioFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Studio Header Topbar */
.studio-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border-app);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 16px;
  z-index: 40;
}

.studio-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-studio-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-family: var(--font-app);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-studio-back:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.studio-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.02em;
}

.studio-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.studio-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-studio-secondary {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: #475569;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-app);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-studio-secondary:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.btn-studio-primary {
  background: linear-gradient(135deg, #FF1E27 0%, #E11D48 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-app);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 30, 39, 0.3);
  transition: all 0.2s ease;
}

.btn-studio-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 30, 39, 0.4);
}

/* 2-Column Split Workspace Grid */
.studio-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1100px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .studio-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .studio-preview-col {
    order: 2;
    width: 100%;
    margin-top: 16px;
  }
  .phone-mockup-wrapper {
    position: static;
    width: 100%;
    max-width: 100%;
  }
  .phone-mockup {
    width: 100%;
    max-width: 320px;
    height: 540px;
    border-width: 6px;
    border-radius: 28px;
    margin: 0 auto;
  }
}

/* Left Column: Form Cards */
.studio-form-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.studio-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.studio-card:hover {
  border-color: #CBD5E1;
}

.studio-card.highlight-purple {
  background: #FDFBFF;
  border-color: #E9D5FF;
}

.studio-card.highlight-green {
  background: #F8FCF9;
  border-color: #A7F3D0;
}

.studio-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.studio-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.studio-step-num.purple {
  background: #7C3AED;
}

.studio-step-num.green {
  background: #059669;
}

.studio-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.studio-card-header p {
  font-size: 0.84rem;
  color: #64748B;
  margin: 0;
  line-height: 1.45;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

.studio-followgate-expand {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #E9D5FF;
}

.studio-bottom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
}

/* ==============================================================================
   RIGHT COLUMN: STICKY REALISTIC INSTAGRAM PHONE MOCKUP
   ============================================================================== */
.studio-preview-col {
  position: relative;
}

.phone-mockup-wrapper {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-mockup-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 360px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.02em;
}

.phone-mockup {
  width: 100%;
  max-width: 360px;
  height: 640px;
  background: #000000;
  border: 10px solid #1E293B;
  border-radius: 44px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  position: relative;
}

/* Phone Top Speaker & Notch Bar */
.phone-notch-bar {
  height: 34px;
  background: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 10;
}

.phone-notch-island {
  width: 80px;
  height: 18px;
  background: #18181B;
  border-radius: 20px;
}

/* Instagram In-App Header Bar */
.ig-phone-header {
  height: 48px;
  background: #000000;
  border-bottom: 1px solid #27272A;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
  color: #FFFFFF;
}

.ig-phone-back {
  font-size: 1.4rem;
  font-weight: 300;
  color: #FFFFFF;
  cursor: pointer;
  line-height: 1;
}

.ig-phone-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.ig-phone-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #EC4899, #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #FFFFFF;
}

.ig-phone-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ig-phone-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ig-phone-status {
  font-size: 0.65rem;
  color: #A1A1AA;
}

.ig-phone-actions {
  display: flex;
  gap: 12px;
  color: #FFFFFF;
}

/* Instagram Chat Body Canvas */
.ig-phone-chat-body {
  flex: 1;
  background: #000000;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ig-phone-chat-body::-webkit-scrollbar {
  width: 4px;
}

.ig-phone-chat-body::-webkit-scrollbar-thumb {
  background: #27272A;
  border-radius: 4px;
}

.ig-chat-post-banner {
  background: #18181B;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.68rem;
  color: #A1A1AA;
  text-align: center;
  margin-bottom: 6px;
  border: 1px solid #27272A;
}

.ig-sim-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Phone Bottom Input Bar */
.ig-phone-footer {
  height: 52px;
  background: #000000;
  border-top: 1px solid #27272A;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  flex-shrink: 0;
}

.ig-input-pill {
  flex: 1;
  height: 34px;
  background: #262626;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #71717A;
  font-size: 0.78rem;
}

.ig-input-icons {
  display: flex;
  gap: 8px;
  font-size: 1rem;
}

.phone-mockup-helper {
  margin-top: 10px;
  font-size: 0.74rem;
  color: #64748B;
  text-align: center;
  max-width: 340px;
  line-height: 1.4;
}

/* Sidebar Section Navigation Pulse Highlight */
@keyframes navTargetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 30, 39, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 30, 39, 0.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 30, 39, 0);
  }
}

.nav-target-pulse {
  animation: navTargetPulse 1.2s ease-out;
  border-radius: var(--radius-md);
}

/* ==============================================================================
   SPA DEDICATED VIEW ARCHITECTURE
   ============================================================================== */
.dashboard-view {
  animation: fadeInView 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.view-header-left h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
}

.view-header-left p {
  color: #64748B;
  font-size: 0.94rem;
  margin-top: 4px;
}

.view-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* Overview Quick Jump Action Cards */
.overview-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 992px) {
  .overview-quick-actions {
    grid-template-columns: 1fr;
  }
}

.quick-action-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.quick-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  border-color: rgba(255, 30, 39, 0.35);
}

.quick-action-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.quick-action-icon.red { background: rgba(255, 30, 39, 0.1); color: #FF1E27; }
.quick-action-icon.blue { background: rgba(2, 132, 199, 0.1); color: #0284C7; }
.quick-action-icon.amber { background: rgba(245, 158, 11, 0.1); color: #D97706; }

.quick-action-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.quick-action-desc {
  font-size: 0.84rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 20px;
}

.btn-quick-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #0F172A;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-quick-action:hover {
  background: #FF1E27;
  color: #FFFFFF;
  border-color: #FF1E27;
}

.btn-quick-action.primary {
  background: #FF1E27;
  color: #FFFFFF;
  border-color: #FF1E27;
}

.btn-quick-action.primary:hover {
  background: #E60023;
}

/* Rules & Logs Filter Strip */
.table-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-pills-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 9999px;
  gap: 2px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.filter-glider {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFC 100%);
  border-radius: 9999px;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.09),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 1.5px rgba(255, 255, 255, 1);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), 
              width 0.38s cubic-bezier(0.22, 1, 0.36, 1), 
              height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.2s ease;
  will-change: transform, width, height, opacity;
}

.btn-filter-pill {
  position: relative;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 9999px;
  border: none;
  background: transparent !important;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.btn-filter-pill:hover {
  color: #0F172A;
}

.btn-filter-pill.active {
  color: #0F172A !important;
  font-weight: 700;
}

.search-filter-input {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  width: 240px;
  outline: none;
  transition: border-color 0.2s;
}

.search-filter-input:focus {
  border-color: #FF1E27;
}

/* Invoices and Plan Details Card */
.billing-history-card {
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   Target Reel Selection Suite (Visual Feed, Paste Link, Next Reel, Global)
   ========================================================================== */
.reel-source-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .reel-source-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.reel-source-tab {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-source-tab:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.reel-source-tab.active {
  background: #FFF5F5;
  border-color: #FF1E27;
  box-shadow: 0 4px 12px rgba(255, 30, 39, 0.12);
}

.reel-source-tab .tab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.reel-source-tab .tab-label-wrap {
  display: flex;
  flex-direction: column;
}

.reel-source-tab .tab-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.reel-source-tab.active .tab-title {
  color: #FF1E27;
}

.reel-source-tab .tab-sub {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 500;
}

.reel-source-tab.active .tab-sub {
  color: #E11D48;
}

/* Feed Filter Bar */
.feed-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.feed-search-wrap {
  position: relative;
  flex: 1;
}

.feed-search-input {
  padding-left: 32px !important;
  font-size: 0.82rem !important;
  height: 38px;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
}

.btn-refresh-feed {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-refresh-feed:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Visual Reels Grid: 4-Columns Default */
.reels-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .reels-visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .reels-visual-grid {
    grid-template-columns: 1fr;
  }
}

.reel-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.reel-card:hover {
  border-color: #94A3B8;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.12);
}

.reel-card.selected {
  border-color: #FF1E27;
  background: #FFFBFB;
  box-shadow: 0 0 0 2px rgba(255, 30, 39, 0.2), 0 8px 24px -4px rgba(255, 30, 39, 0.25);
  transform: translateY(-2px);
}

.reel-card-thumb {
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.reel-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.reel-card:hover .reel-thumb-img {
  transform: scale(1.06);
}

.reel-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

.reel-type-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  font-size: 0.62rem;
  font-weight: 800;
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.reel-thumb-center-icon {
  font-size: 1.8rem;
  opacity: 0.9;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  z-index: 2;
  transition: transform 0.2s ease;
}

.reel-card:hover .reel-thumb-center-icon {
  transform: scale(1.15);
}

.reel-duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reel-views-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reel-selected-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FF1E27;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(255, 30, 39, 0.6);
  z-index: 3;
}

.reel-card.selected .reel-selected-check {
  display: flex;
}

.reel-card-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reel-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px;
  line-height: 1.3;
}

.reel-card.selected .reel-card-title {
  color: #FF1E27;
}

.reel-card-meta {
  font-size: 0.74rem;
  color: #64748B;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-card-date {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 600;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* View All Reels Button in Toolbar */
.btn-view-all-reels {
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  color: #E11D48;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 8px;
  padding: 0 14px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-all-reels:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  color: #BE123C;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.15);
}

/* Bottom Strip: Full Library Trigger */
.reels-view-all-strip {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  padding-top: 10px;
}

.btn-browse-library {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-browse-library:hover {
  background: #FFFFFF;
  border-color: #FF1E27;
  color: #FF1E27;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* All Reels Library Modal */
.reels-library-modal-card {
  width: 95%;
  max-width: 960px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4);
}

.reels-modal-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
}

.reels-modal-toolbar {
  padding: 12px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reels-modal-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.reels-modal-search input {
  padding-left: 32px !important;
  height: 36px;
  font-size: 0.82rem !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
}

.reels-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.reels-filter-chip {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.reels-filter-chip:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.reels-filter-chip.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.reels-modal-grid {
  padding: 20px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-height: calc(88vh - 170px);
}

@media (max-width: 860px) {
  .reels-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .reels-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* Mode 2: Paste Reel URL */
.paste-reel-container {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
}

.btn-paste-reel {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-paste-reel:hover {
  background: #1E293B;
}

.paste-preview-verified {
  margin-top: 12px;
  background: #FFFFFF;
  border: 1.5px solid #10B981;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.paste-verified-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.paste-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.paste-preview-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.paste-preview-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0F172A;
}

.paste-preview-id {
  font-size: 0.74rem;
  color: #64748B;
  font-family: monospace;
}

/* Mode 3 & 4: Info Banners */
.reel-banner-box {
  border-radius: 12px;
  padding: 16px;
  border: 1.5px solid;
}

.reel-banner-box.prelaunch {
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  border-color: #93C5FD;
}

.reel-banner-box.global {
  background: linear-gradient(135deg, #FAF5FF 0%, #F8FAFC 100%);
  border-color: #D8B4FE;
}

.banner-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #2563EB;
  background: rgba(37, 99, 235, 0.1);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 4px;
}

.banner-tag.global {
  color: #7E22CE;
  background: rgba(126, 34, 206, 0.1);
}

/* Quick Add Keywords Bar */
.quick-keywords-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.btn-kw-quick {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-kw-quick:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  transform: scale(1.03);
}

/* Simulation Scenario Switcher */
.sim-scenario-bar {
  position: relative;
  display: flex;
  gap: 4px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 4px;
}

.sim-scenario-glider {
  position: absolute;
  top: 0;
  left: 0;
  background: #FFFFFF;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), 
              width 0.38s cubic-bezier(0.22, 1, 0.36, 1), 
              height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.2s ease;
  will-change: transform, width, height, opacity;
}

.btn-sim-scenario {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 6px 8px;
  border-radius: 7px;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent !important;
  color: #64748B;
  transition: color 0.2s;
  white-space: nowrap;
}

.btn-sim-scenario:hover {
  color: #0F172A;
}

.btn-sim-scenario.active {
  color: #0F172A;
}

/* Natural Follow-up Reminder Bubble in Phone Mockup */
.preview-ig-bubble.reminder-bubble {
  background: #262626 !important;
  border: 1px solid #3F3F46 !important;
  color: #F4F4F5 !important;
}

.preview-ig-btn.reminder-btn {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700 !important;
}

.preview-ig-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* ==============================================================================
   NEW USER (50 FREE DMS) & IN-DASHBOARD UPGRADE SYSTEM
   ============================================================================== */

/* Topbar State Switcher (Demo Toggle) */
.account-state-switcher {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 3px;
  border-radius: var(--radius-pill);
  gap: 3px;
}

.switcher-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-state-pill {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-app);
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-state-pill:hover {
  color: #0F172A;
}

.btn-state-pill.active {
  background: #FFFFFF;
  color: var(--accent-red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Upgrade Buttons */
.btn-topbar-upgrade {
  background: var(--accent-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-app);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255, 30, 39, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-topbar-upgrade:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 30, 39, 0.35);
}

.btn-sidebar-upgrade {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 30, 39, 0.1) 0%, rgba(255, 30, 39, 0.05) 100%);
  border: 1px solid rgba(255, 30, 39, 0.2);
  color: var(--accent-red);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-app);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-sidebar-upgrade:hover {
  background: var(--accent-red);
  color: #FFFFFF;
  border-color: var(--accent-red);
  box-shadow: 0 4px 14px rgba(255, 30, 39, 0.25);
  transform: translateY(-1px);
}

/* Sidebar Footer & Legal Bar (Clean 3-Item Linear/Apple Style) */
.sidebar-footer-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-app, #E2E8F0);
  margin-top: auto;
}

.sidebar-back-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748B;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 4px 6px;
  border-radius: 6px;
  margin-left: -6px;
}

.sidebar-back-link svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.sidebar-back-link:hover {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.04);
}

.sidebar-back-link:hover svg {
  transform: translateX(-3px);
}

.sidebar-legal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  line-height: 1;
  color: #94A3B8;
  padding-left: 2px;
}

.sidebar-legal-link {
  color: #64748B;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  padding: 2px 0;
}

.sidebar-legal-link:hover {
  color: #0F172A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidebar-legal-dot {
  color: #CBD5E1;
  font-size: 0.65rem;
  user-select: none;
}

/* New User 45-Second Onboarding Roadmap Card */
.onboarding-quickstart-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.02);
}

.quickstart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.quickstart-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 30, 39, 0.08);
  color: var(--accent-red);
  font-family: var(--font-app);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.quickstart-title {
  font-family: var(--font-app);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}

.quickstart-desc {
  font-size: 0.88rem;
  color: #64748B;
  margin: 0;
}

.btn-quickstart-cta {
  background: var(--accent-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-family: var(--font-app);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 30, 39, 0.28);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-quickstart-cta:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 30, 39, 0.38);
}

.quickstart-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quickstart-step {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s ease;
}

.quickstart-step:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
}

.step-num-pill {
  display: inline-block;
  font-family: var(--font-app);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-red);
  background: rgba(255, 30, 39, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.step-title {
  font-family: var(--font-app);
  font-size: 0.96rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.5;
}

.step-desc code {
  background: #F1F5F9;
  color: #0F172A;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
}

/* In-Dashboard Plan Upgrade Modal */
.modal-pricing-card {
  max-width: 1260px !important;
  width: 96% !important;
}

.modal-cycle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  width: 100%;
}

.modal-cycle-group.billing-cycle-pill-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  padding: 6px;
  border-radius: 9999px !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.04);
  gap: 4px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-cycle-group .cycle-glider {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(6px, 6px);
  width: 90px;
  height: 40px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFC 100%);
  border-radius: 9999px !important;
  box-shadow: 
    0 6px 20px -2px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.04),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 1);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1), 
              width 0.44s cubic-bezier(0.22, 1, 0.36, 1), 
              height 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width, height;
}

.modal-cycle-group .cycle-pill {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent !important;
  padding: 9px 18px;
  border-radius: 9999px !important;
  font-family: var(--font-app);
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  user-select: none;
}

.modal-cycle-group .cycle-pill:hover {
  color: #000000;
}

.modal-cycle-group .cycle-pill:active {
  transform: scale(0.97);
}

.modal-cycle-group .cycle-pill.active {
  color: #000000;
  font-weight: 700;
}

.modal-cycle-group .cycle-save-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 9999px !important;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.modal-cycle-group .cycle-save-tag.tag-best-value {
  background: linear-gradient(135deg, #FF1E27 0%, #E11D48 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(255, 30, 39, 0.35);
  border-radius: 9999px !important;
}

.modal-plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.modal-plan-tier {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.modal-plan-tier:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.modal-plan-tier.tier-popular {
  border-color: rgba(255, 30, 39, 0.5);
  box-shadow: 0 10px 30px rgba(255, 30, 39, 0.1);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 100%);
}

.modal-plan-tier.tier-agency {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
}

.modal-plan-tier.tier-agency:hover {
  border-color: #10B981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
}

.modal-plan-tier.tier-agency .btn-tier-select {
  border-color: #10B981;
  color: #059669;
}

.modal-plan-tier.tier-agency .btn-tier-select:hover {
  background: #10B981;
  color: #FFFFFF;
}

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

@media (max-width: 820px) {
  .modal-plans-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .modal-plans-grid {
    grid-template-columns: 1fr;
  }
}

.tier-tag {
  font-family: var(--font-app);
  font-size: 0.68rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.tier-tag.tag-popular {
  color: var(--accent-red);
}

.tier-title {
  font-family: var(--font-app);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.tier-desc {
  font-size: 0.76rem;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 14px;
  min-height: 32px;
}

.tier-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.tier-price {
  font-family: var(--font-app);
  font-size: 1.8rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.03em;
}

.tier-period {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 600;
}

.tier-billed-sub {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 500;
  margin-top: -3px;
  margin-bottom: 6px;
  min-height: 32px;
  line-height: 1.25;
}

.tier-billed-sub.is-annual-cta {
  cursor: pointer;
  color: #64748B;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  padding: 1px 0;
  border-radius: 4px;
}

.tier-billed-sub .sub-billed-total {
  display: block;
  color: #475569;
  font-weight: 600;
}

.tier-billed-sub .sub-annual-nudge {
  display: block;
  margin-top: 1px;
  color: #64748B;
  font-weight: 500;
}

.tier-billed-sub.is-annual-cta:hover {
  color: #0F172A;
}

.tier-billed-sub.is-annual-cta .annual-cta-link {
  color: #0284C7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(2, 132, 199, 0.45);
  transition: all 0.2s ease;
}

.tier-billed-sub.is-annual-cta:hover .annual-cta-link {
  color: #0369A1;
  text-decoration-color: #0369A1;
}

.tier-billed-sub.is-annual-cta:focus-visible {
  outline: 2px solid #0284C7;
  outline-offset: 1px;
}

.tier-contacts {
  font-family: var(--font-app);
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
  background: #F0FDF4;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
  color: #475569;
  font-weight: 600;
  flex: 1;
}

.tier-features li {
  line-height: 1.4;
}

.btn-tier-select {
  width: 100%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-app);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tier-select:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.btn-tier-popular {
  background: var(--accent-red);
  color: #FFFFFF;
  border-color: var(--accent-red);
  box-shadow: 0 4px 14px rgba(255, 30, 39, 0.28);
}

.btn-tier-popular:hover {
  background: var(--accent-red-hover);
  border-color: var(--accent-red-hover);
  box-shadow: 0 6px 20px rgba(255, 30, 39, 0.38);
}

.modal-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .quickstart-steps-grid {
    grid-template-columns: 1fr;
  }
  .modal-plans-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Empty State Card (Automation Rules & Activity Logs for New Users) */
.rules-empty-state-card {
  background: #FFFFFF;
  border: 2px dashed #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.03);
  margin-top: 16px;
  animation: fadeInEmpty 0.3s ease-out;
}

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

.empty-state-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FFF5F5;
  border: 1px solid rgba(255, 30, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(255, 30, 39, 0.1);
}

.empty-state-title {
  font-family: var(--font-app);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.empty-state-desc {
  font-size: 0.92rem;
  color: #64748B;
  max-width: 520px;
  margin: 0 0 26px 0;
  line-height: 1.55;
}

.empty-state-desc code {
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.88em;
}

.btn-empty-state-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-red);
  color: #FFFFFF;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-app);
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 30, 39, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-empty-state-cta:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 30, 39, 0.38);
}

/* ==============================================================================
   NEW CREATOR ESSENTIALS: SIMULATOR, META HEALTH, TEMPLATES, TYPO & LEADS
   ============================================================================== */

/* Topbar Simulator & Meta Health Badges */
.btn-topbar-sim {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-family: var(--font-app);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-topbar-sim:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: var(--accent-red);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.account-badge-connected {
  transition: all 0.2s ease;
}

.account-badge-connected:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.15);
}

.meta-status-chip {
  font-size: 0.68rem;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 9999px;
  padding: 1px 7px;
  margin-left: 4px;
}

/* KPI Card: Link Clicks & CTR */
.stat-ctr-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 9999px;
  padding: 2px 7px;
}

.badge-ctr-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0369A1;
  background: #E0F2FE;
  border: 1px solid #BAE6FD;
  border-radius: 9999px;
  padding: 2px 8px;
  margin-left: 6px;
}

.badge-ctr-pill.high {
  color: #059669;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

/* 1-Click Recipe Templates in Rule Studio */
.studio-templates-section {
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF7ED 100%);
  border: 1.5px solid #FED7AA;
  margin-bottom: 20px;
}

.studio-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.studio-template-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.studio-template-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 30, 39, 0.12);
}

.studio-template-card.active {
  border-color: var(--accent-red);
  background: #FFF5F5;
  box-shadow: 0 4px 14px rgba(255, 30, 39, 0.15);
}

.studio-template-card .template-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.studio-template-card .template-info strong {
  display: block;
  font-size: 0.84rem;
  color: #0F172A;
  margin-bottom: 2px;
}

.studio-template-card .template-info span {
  display: block;
  font-size: 0.72rem;
  color: #64748B;
  line-height: 1.35;
}

/* Smart Typo & Hinglish Tolerance Box */
.typo-matcher-box {
  margin-top: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 14px;
}

.typo-matcher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.typo-preview-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #CBD5E1;
}

.typo-preview-chips .chip-label {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
}

.chip-variant {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  padding: 2px 8px;
}

/* Export Leads CSV Button */
.btn-export-csv {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-app);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-export-csv:hover {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #16A34A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

/* Simulator Modal Specifics */
.modal-dialog-sim {
  max-width: 960px;
  width: 95%;
  position: relative;
  z-index: 100001;
}

.sim-card-wrap {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  position: relative;
  padding: 28px 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.sim-header {
  text-align: center;
  margin-bottom: 24px;
}

.sim-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #10B981;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 9999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.sim-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.sim-header p {
  font-size: 0.86rem;
  color: #64748B;
  max-width: 620px;
  margin: 0 auto;
}

.sim-split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .sim-split-layout {
    grid-template-columns: 1fr;
  }
}

.sim-form-group {
  margin-bottom: 18px;
}

.sim-form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 6px;
}

.sim-scenario-pills {
  display: flex;
  gap: 8px;
}

.sim-pill {
  flex: 1;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.sim-input-row {
  display: flex;
  gap: 8px;
}

.btn-sim-send {
  background: var(--accent-red);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sim-send:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
}

.sim-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.sim-chip {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-chip:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.sim-diagnostics-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
}

.sim-diag-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  margin-bottom: 10px;
}

.sim-diag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 4px 0;
  border-bottom: 1px dashed #E2E8F0;
}

.sim-diag-row:last-child {
  border-bottom: none;
}

.sim-diag-row span:first-child {
  color: #64748B;
}

.sim-badge-ok {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0369A1;
  background: #E0F2FE;
  padding: 2px 7px;
  border-radius: 9999px;
}

/* Phone Screen in Simulator */
.sim-phone-screen {
  background: #000000;
  border: 8px solid #1E293B;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  color: #FFFFFF;
  min-height: 480px;
}

.sim-tabs-header {
  display: flex;
  background: #111827;
  border-bottom: 1px solid #1F2937;
}

.sim-view-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #9CA3AF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 10px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.sim-view-tab.active {
  color: #FFFFFF;
  border-bottom-color: var(--accent-red);
  background: rgba(255, 30, 39, 0.08);
}

.sim-comments-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sim-comment-item.bot-reply {
  margin-left: 28px;
  position: relative;
}

.sim-comment-item.bot-reply::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 10px;
  width: 10px;
  height: 14px;
  border-left: 2px solid #374151;
  border-bottom: 2px solid #374151;
  border-bottom-left-radius: 6px;
}

.sim-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sim-comment-avatar.user {
  background: #4B5563;
  color: #FFFFFF;
}

.sim-comment-avatar.creator {
  background: linear-gradient(135deg, #FF1E27 0%, #FF6B00 100%);
  color: #FFFFFF;
}

.sim-comment-bubble {
  background: #1F2937;
  padding: 8px 12px;
  border-radius: 12px;
  flex: 1;
}

.sim-comment-bubble.creator {
  background: #111827;
  border: 1px solid #374151;
}

.sim-comment-author {
  font-size: 0.74rem;
  font-weight: 700;
  color: #F3F4F6;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-badge {
  background: #374151;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  color: #9CA3AF;
}

.sim-comment-time {
  font-size: 0.68rem;
  color: #6B7280;
  font-weight: 400;
}

.sim-comment-text {
  font-size: 0.82rem;
  color: #E5E7EB;
  line-height: 1.35;
}

/* DM View */
.sim-dm-header {
  padding: 10px 16px;
  border-bottom: 1px solid #1F2937;
  display: flex;
  align-items: center;
}

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

.sim-dm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF1E27 0%, #FF6B00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-dm-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sim-ig-check {
  color: #38BDF8;
  font-size: 0.75rem;
}

.sim-dm-status {
  font-size: 0.68rem;
  color: #10B981;
}

.sim-dm-body {
  padding: 16px;
}

.sim-dm-post-ref {
  background: #111827;
  border: 1px solid #1F2937;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: #9CA3AF;
  margin-bottom: 12px;
}

.sim-dm-msg-bubble {
  background: #262626;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #FFFFFF;
  line-height: 1.4;
  margin-bottom: 10px;
}

.sim-dm-link-card {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-dm-btn {
  display: block;
  text-align: center;
  background: #FFFFFF;
  color: #000000;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sim-dm-btn:hover {
  background: #E5E7EB;
  transform: scale(1.02);
}

.sim-dm-watermark {
  text-align: center;
  font-size: 0.68rem;
  color: #6B7280;
  margin-top: 14px;
}

/* Meta Health Modal Metrics */
.health-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.health-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
}

.health-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  margin-bottom: 4px;
}

.health-card-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.health-card-val.ok {
  color: #059669;
}

.health-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.health-card-sub {
  display: block;
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 4px;
}

/* ==============================================================================
   MULTI-BUTTON INTERACTIVE ACTION BUTTON BUILDER (MAX 5)
   ============================================================================== */
.badge-button-counter {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 10px;
  border-radius: 9999px;
}

.studio-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-btn-row {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.studio-btn-row:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.btn-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.btn-num-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  background: #E2E8F0;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-del-action-button {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-del-action-button:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.btn-row-fields {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.btn-field-half {
  flex: 1;
}

.btn-field-half label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.btn-add-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  color: #2563EB;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.btn-add-action-button:hover {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
}

/* Instagram Native DM Multi-Button Stack (Matching the exact provided screenshot) */
.preview-ig-card-bubble {
  background: #262626 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 16px 14px 14px !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  margin-top: 8px;
}

.preview-ig-card-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.4;
  margin-bottom: 12px;
  word-break: break-word;
}

.preview-ig-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-ig-action-btn {
  display: block !important;
  width: 100% !important;
  background: #363636 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 11px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

.preview-ig-action-btn:hover,
.preview-ig-action-btn:active {
  background: #484848 !important;
  transform: scale(0.99) !important;
}

.badge-multi-links {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==============================================================================
   CHECKOUT MODAL, TAX INVOICE & RETENTION SURVEY STYLES
   ============================================================================== */
/* ==============================================================================
   APPLE & PHOTOSHOP LEVEL ULTRA-CLEAN CHECKOUT MODAL STYLING
   ============================================================================== */
.checkout-modal-card {
  animation: modalCardPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 920px !important;
  width: 95% !important;
  max-height: 88vh !important;
  margin: auto !important;
  border-radius: 28px !important;
  box-shadow: 0 32px 84px -16px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #FFFFFF !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif !important;
}

.ps-ambient-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  height: 200px;
  background: radial-gradient(circle at 100% 0%, rgba(199, 210, 254, 0.45) 0%, rgba(224, 231, 255, 0.22) 40%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.ps-modal-header {
  position: relative;
  z-index: 1;
  padding: 22px 28px 16px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  background: transparent !important;
}

.ps-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.ps-header-pill {
  background: #F3E8FF;
  color: #7C3AED;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.ps-modal-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}

.ps-modal-subtitle {
  font-size: 0.80rem !important;
  color: #64748B !important;
  font-weight: 500 !important;
  margin: 2px 0 0 !important;
}

.ps-close-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #F1F5F9 !important;
  border: none !important;
  color: #475569 !important;
  font-size: 0.90rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.ps-close-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  transform: scale(1.05) !important;
}

.ps-grid {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
  padding: 20px 28px 12px !important;
  border-bottom: none !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  .ps-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 16px 18px !important;
  }
}

.ps-order-summary-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.ps-item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ps-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ps-icon-chart { background: #F1F5F9; }
.ps-icon-lightning { background: #FAF5FF; }
.ps-icon-tag { background: #ECFDF5; }

.ps-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ps-pill-gray {
  background: #F1F5F9;
  color: #475569;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ps-pill-green {
  background: #ECFDF5;
  color: #059669;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ps-item-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.ps-item-sub {
  font-size: 0.73rem;
  color: #64748B;
  line-height: 1.35;
}

.ps-item-price-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.ps-item-price {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ps-item-period {
  font-size: 0.68rem;
  color: #64748B;
}

.ps-combo-container {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ps-quota-card {
  background: #FAF5FF;
  border: 1px solid #F3E8FF;
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-quota-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EDE9FE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ps-quota-label {
  font-size: 0.70rem;
  font-weight: 700;
  color: #7C3AED;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ps-quota-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  display: block;
}

.ps-quota-sub {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 500;
}

.ps-breakdown-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.ps-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748B;
  font-size: 0.80rem;
}

.ps-breakdown-val {
  font-weight: 700;
  color: #0F172A;
}

.ps-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1.5px solid #E2E8F0;
  margin-top: 2px;
}

.ps-total-label {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0F172A;
}

.ps-total-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.ps-total-subtext {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 2px;
}

.ps-micro-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.ps-micro-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 9px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ps-micro-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0F172A;
}

.ps-micro-sub {
  font-size: 0.62rem;
  color: #64748B;
  font-weight: 500;
}

/* Right Column */
.ps-payment-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-tabs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ps-tab {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ps-tab:hover {
  border-color: #94A3B8;
}

.ps-tab.active {
  border-color: #2563EB;
  box-shadow: 0 0 0 1px #2563EB, 0 4px 12px rgba(37, 99, 235, 0.08);
}

.ps-tab-paypal-logo {
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 2px;
}

.ps-tab-sub {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 500;
  display: block;
}

.ps-btn-paypal-dark {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: #1E293B;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.2);
}

.ps-btn-paypal-dark:hover {
  background: #0F172A;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}

.ps-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 6px 0 8px;
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 600;
}

.ps-divider::before,
.ps-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.ps-divider span {
  padding: 0 10px;
}

.ps-card-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ps-form-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

.ps-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ps-input-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: #64748B;
}

.ps-input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  padding: 8px 12px 8px 36px;
  font-size: 0.84rem;
  color: #0F172A;
  background: #FFFFFF;
  font-family: inherit;
  transition: all 0.2s ease;
}

.ps-input:focus {
  border-color: #0F172A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.ps-card-brand-strip {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.ps-brand-badge {
  font-size: 0.58rem;
  font-weight: 800;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 2px 5px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.ps-brand-badge.active {
  color: #FFFFFF !important;
  background: #0F172A !important;
  border-color: #0F172A !important;
  transform: scale(1.05);
}

.brand-visa { color: #1A1F71; }
.brand-mc { color: #EB001B; }
.brand-amex { color: #0077A6; }
.brand-jcb { color: #0E4C92; }

.ps-form-row {
  display: flex;
  gap: 10px;
}

.ps-input-right-icon {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #94A3B8;
}

.ps-btn-submit {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.90rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
  margin-top: 2px;
}

.ps-btn-submit:hover {
  background: #020617;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.ps-btn-submit:active {
  transform: translateY(0);
}

.ps-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.ps-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.25;
}

.ps-clickwrap {
  text-align: center;
  padding: 10px 20px 16px;
  font-size: 0.70rem;
  color: #64748B;
  line-height: 1.4;
  border-top: 1px solid #F8FAFC;
}

.ps-clickwrap a {
  color: #0F172A;
  text-decoration: underline;
  font-weight: 600;
}

.checkout-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px 18px;
  border-bottom: 1px solid #F1F5F9;
  background: #FFFFFF;
}

.checkout-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkout-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.checkout-modal-title {
  font-size: 1.20rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.25;
}

.checkout-modal-subtitle {
  font-size: 0.80rem;
  color: #64748B;
  font-weight: 500;
  margin: 3px 0 0 0;
  line-height: 1.35;
}

.checkout-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.05);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 26px;
  padding: 24px 28px !important;
  border-bottom: 1px solid #F1F5F9;
  background: #FFFFFF;
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 18px 20px !important;
  }
}

/* Left: Order Summary (Apple Clean Line Items) */
.checkout-order-summary {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 18px !important;
  padding: 22px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-summary-label {
  font-size: 0.70rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-security-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

/* Single Item View */
.checkout-single-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
}

.checkout-single-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checkout-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.checkout-item-subtitle {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.35;
  margin-bottom: 6px;
}

.checkout-item-perks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: #475569;
}

.checkout-item-perks span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-item-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Combo Line Items List */
.checkout-combo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
}

.checkout-line-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
}

.checkout-line-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout-line-title {
  font-size: 0.90rem;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-line-desc {
  font-size: 0.74rem;
  color: #64748B;
  line-height: 1.35;
}

.checkout-line-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
}

.checkout-line-item.discount-item .checkout-line-title,
.checkout-line-item.discount-item .checkout-line-price {
  color: #059669;
}

.checkout-line-item.discount-item .checkout-line-desc {
  color: #047857;
}

/* Apple-style Quota Metric Pill */
.checkout-quota-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 4px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.quota-icon-dot {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.08);
  color: #7C3AED;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quota-text-wrap {
  display: flex;
  flex-direction: column;
}

.quota-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
}

.quota-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F172A;
}

/* Subtle Pill Badges */
.checkout-pill-badge {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
}

.badge-neutral {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.badge-booster {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* Price Breakdown Table */
.checkout-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}

.checkout-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748B;
}

.checkout-breakdown-row.discount-row {
  color: #059669;
  font-weight: 700;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1.5px solid #E2E8F0;
}

.checkout-total-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.checkout-total-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.checkout-sub-note {
  font-size: 0.72rem;
  color: #64748B;
  line-height: 1.4;
  margin-top: 2px;
}

/* Right: Dedicated Payment Rail Tabs (Apple / Stripe Minimalist) */
.checkout-rail-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.checkout-rail-tab {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.checkout-rail-tab:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.checkout-rail-tab.active {
  background: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.checkout-rail-tab .rail-tab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.checkout-rail-tab .rail-tab-label-wrap {
  display: flex;
  flex-direction: column;
}

.checkout-rail-tab .rail-tab-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.checkout-rail-tab .rail-tab-sub {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 500;
}

.checkout-rail-tab.active .rail-tab-title {
  color: #0F172A;
}

.checkout-rail-tab.active .rail-tab-sub {
  color: #475569;
}

/* Inputs & Form Groups */
.checkout-input-group {
  margin-bottom: 14px;
}

.checkout-input-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 5px;
}

.checkout-field {
  height: 44px;
  border-radius: 10px !important;
  border: 1.5px solid #CBD5E1 !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
  color: #0F172A !important;
  background: #FFFFFF !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  width: 100%;
}

.checkout-field:focus {
  border-color: #0F172A !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
  outline: none !important;
}

.card-brand-pills {
  display: flex;
  gap: 5px;
}

.brand-pill {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Modern Apple/Stripe-grade Payment Method Hero Cards */
.checkout-method-hero-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}

.method-hero-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.method-hero-icon-apple {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(0, 113, 227, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.razorpay-badge-apple {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0284C7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.method-hero-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.015em;
}

.method-hero-sub {
  font-size: 0.76rem;
  color: #64748B;
  margin: 2px 0 0 0;
  line-height: 1.35;
}

/* Apple-style Interactive Payment Methods Grid */
.apple-pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 16px;
}

@media (max-width: 580px) {
  .apple-pay-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.apple-pay-method-tile {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  user-select: none;
}

.apple-pay-method-tile:hover {
  border-color: #0F172A;
  background: #FAFBFD;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.apple-pay-method-tile:active {
  transform: translateY(0);
}

.apple-pay-method-tile span {
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Apple-grade Security Perks Strip */
.apple-security-perks {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.apple-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.apple-perk-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.apple-perk-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0F172A;
  display: block;
  line-height: 1.25;
}

.apple-perk-desc {
  font-size: 0.70rem;
  color: #64748B;
  display: block;
  line-height: 1.35;
}

.apple-check-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* PayPal Rail & Box Styling */
.checkout-paypal-box {
  background: #FDFDFD;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.paypal-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.paypal-logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  font-style: italic;
  color: #003087;
  letter-spacing: -0.04em;
  line-height: 1;
}

.paypal-logo-text span {
  color: #0079C1;
}

.paypal-verified-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

.paypal-desc {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.45;
  margin: 0;
  max-width: 320px;
}

.btn-paypal-golden {
  width: 100%;
  max-width: 290px;
  height: 46px;
  background: #FFC439;
  border: 1px solid #E0A800;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 196, 57, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.btn-paypal-golden:hover {
  background: #F4B92E;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 196, 57, 0.45);
}

.btn-paypal-golden:active {
  transform: translateY(0);
}

.paypal-test-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.paypal-perks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.74rem;
  color: #475569;
  text-align: left;
  width: 100%;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.paypal-perks-list span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   PAYPAL CHECKOUT SIMULATOR (#modal-paypal-simulator)
   Authentic PayPal-grade popup aesthetics with 100% zero-charge safety
   ========================================================================= */
.paypal-simulator-card {
  max-width: 480px;
  width: 95%;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 48, 135, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.paypal-sim-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #E2E8F0;
  background: #FAFBFD;
}

.paypal-sim-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.paypal-sim-logo-txt {
  font-size: 1.55rem;
  font-weight: 900;
  font-style: italic;
  color: #003087;
  letter-spacing: -0.04em;
  line-height: 1;
}

.paypal-sim-logo-txt span {
  color: #0079C1;
}

.paypal-sim-env-tag {
  font-size: 0.64rem;
  font-weight: 800;
  color: #0284C7;
  background: #E0F2FE;
  border: 1px solid #BAE6FD;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.06em;
}

.paypal-sim-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.paypal-sim-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.paypal-sim-merchant-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 22px;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
  gap: 14px;
}

.paypal-sim-merchant-info {
  display: flex;
  flex-direction: column;
}

.paypal-sim-merchant-label {
  font-size: 0.68rem;
  color: #94A3B8;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.paypal-sim-merchant-name {
  font-size: 1.02rem;
  color: #0F172A;
  font-weight: 800;
  margin: 2px 0;
}

.paypal-sim-order-desc {
  font-size: 0.78rem;
  color: #64748B;
}

.paypal-sim-amount-box {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.paypal-sim-amount-label {
  font-size: 0.68rem;
  color: #94A3B8;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.paypal-sim-amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: #003087;
  letter-spacing: -0.02em;
}

.paypal-sim-safe-alert {
  margin: 14px 22px 4px;
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.76rem;
  color: #166534;
  line-height: 1.45;
}

.safe-shield-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.paypal-sim-body {
  padding: 14px 22px 20px;
}

.paypal-sim-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.paypal-sim-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.paypal-sim-method.active,
.paypal-sim-method:hover {
  border-color: #0070BA;
  background: #F8FAFC;
}

.paypal-sim-method-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.method-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #0F172A;
}

.balance-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 7px;
  border-radius: 9999px;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
}

.method-sub {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 2px;
}

.paypal-sim-fineprint {
  font-size: 0.72rem;
  color: #64748B;
  line-height: 1.45;
  margin: 14px 0 16px;
}

.paypal-sim-fineprint strong {
  color: #0F172A;
}

.paypal-sim-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-paypal-sim-submit {
  width: 100%;
  height: 48px;
  background: #0070BA;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 112, 186, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-paypal-sim-submit:hover {
  background: #003087;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 48, 135, 0.4);
}

.btn-paypal-sim-submit:active {
  transform: translateY(0);
}

.btn-paypal-sim-cancel {
  width: 100%;
  height: 34px;
  background: transparent;
  color: #64748B;
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.btn-paypal-sim-cancel:hover {
  color: #0F172A;
}

.paypal-sim-footer {
  background: #FAFBFD;
  border-top: 1px solid #F1F5F9;
  padding: 12px 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Legal Text Row */
.checkout-legal-row {
  margin: 14px 28px 4px;
  text-align: center;
  font-size: 0.72rem;
  color: #64748B;
  line-height: 1.45;
}

.checkout-legal-row a {
  color: #0F172A;
  text-decoration: underline;
  font-weight: 600;
}

/* Footer & Buttons */
.checkout-modal-footer {
  padding: 14px 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.checkout-trust-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #64748B;
  font-weight: 500;
}

.trust-shield-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.trust-sep {
  color: #CBD5E1;
}

.checkout-action-btns {
  display: flex;
  gap: 10px;
}

.btn-checkout-secondary {
  background: transparent;
  color: #64748B;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-checkout-secondary:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
}

.btn-checkout-primary {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 12px 26px;
  font-size: 0.90rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-checkout-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

.btn-checkout-primary:active {
  transform: translateY(0);
}

.retention-modal-card {
  animation: modalCardPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 540px !important;
  width: 95% !important;
  margin: auto !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 70px -10px rgba(15, 23, 42, 0.45) !important;
  background: #FFFFFF !important;
  overflow: hidden !important;
}

.invoice-viewer-card {
  animation: modalCardPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 760px !important;
  width: 95% !important;
  margin: auto !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 70px -10px rgba(15, 23, 42, 0.45) !important;
  background: #FFFFFF !important;
}

.payment-success-card {
  animation: modalCardPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 500px !important;
  width: 95% !important;
  margin: auto !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 70px -10px rgba(15, 23, 42, 0.45) !important;
  background: #FFFFFF !important;
}

@media (max-width: 660px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 16px !important;
  }
}

.survey-option-item:hover {
  background: #F8FAFC !important;
  border-color: #94A3B8 !important;
}

.survey-option-item input[type="radio"]:checked + div strong {
  color: #FF1E27 !important;
}

@media print {
  body * {
    visibility: hidden;
  }
  #printable-invoice-sheet,
  #printable-invoice-sheet * {
    visibility: visible;
  }
  #printable-invoice-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ==============================================================================
   COMBO BUILDER STUDIO & CUSTOM BUNDLE ENGINE
   ============================================================================== */
.combo-ai-match-card {
  background: linear-gradient(135deg, #FFF5F5 0%, #F8FAFC 100%);
  border: 1.5px solid rgba(255, 30, 39, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 4px 14px rgba(255, 30, 39, 0.05);
}

.btn-combo-apply-match {
  background: #FFFFFF;
  border: 1.5px solid #FF1E27;
  color: #FF1E27;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-combo-apply-match:hover {
  background: #FF1E27;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 30, 39, 0.25);
  transform: translateY(-1px);
}

.btn-combo-apply-match.combo-applied-active {
  background: #ECFDF5;
  border-color: #059669;
  color: #059669;
}

.btn-combo-apply-match.combo-applied-active:hover {
  background: #D1FAE5;
  color: #047857;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
  transform: translateY(-1px);
}

.combo-studio-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .combo-studio-grid {
    grid-template-columns: 1fr;
  }
}

.combo-step-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.combo-step-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.combo-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF1E27 0%, #7C3AED 100%);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255, 30, 39, 0.3);
}

.combo-step-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 2px;
}

.combo-step-desc {
  font-size: 0.78rem;
  color: #64748B;
  margin: 0;
}

/* Step 1: Base Plan Cards */
.combo-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.combo-plan-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.combo-plan-card:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
  transform: translateY(-2px);
}

.combo-plan-card.active {
  background: #FFFFFF;
  border: 2px solid #FF1E27;
  box-shadow: 0 0 0 3px rgba(255, 30, 39, 0.12), 0 4px 14px rgba(255, 30, 39, 0.08);
}

.cplan-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.cplan-badge.popular {
  color: #2563EB;
}

.cplan-badge.best {
  color: #FF1E27;
}

.cplan-badge.fleet {
  color: #7C3AED;
}

.cplan-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0F172A;
}

.cplan-contacts {
  font-size: 0.76rem;
  font-weight: 700;
  color: #059669;
  margin: 3px 0 6px;
}

.cplan-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0F172A;
}

.cplan-mo {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
}

.cplan-feat {
  font-size: 0.68rem;
  color: #64748B;
  margin-top: 6px;
  line-height: 1.25;
}

/* Step 2: Booster Selector */
.combo-boosters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.combo-booster-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 10px;
}

.combo-booster-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.combo-booster-card.active {
  background: #FFFFFF;
  border: 2px solid #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.cboost-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.combo-booster-card.active .cboost-radio {
  border-color: #10B981;
  background: #10B981;
  box-shadow: inset 0 0 0 3px #FFFFFF;
}

.cboost-info {
  flex: 1;
}

.cboost-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cboost-tag {
  font-size: 0.62rem;
  font-weight: 800;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 1px 6px;
  border-radius: 4px;
}

.cboost-sub {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 1px;
}

.cboost-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
}

/* Step 3: Billing Cycle Pills */
.combo-cycle-pills {
  display: flex;
  gap: 8px;
}

.combo-cycle-pill {
  flex: 1;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.combo-cycle-pill:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.combo-cycle-pill.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.combo-cycle-pill .cycle-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: inherit;
}

.combo-cycle-pill .cycle-note {
  font-size: 0.68rem;
  color: #64748B;
}

.combo-cycle-pill.active .cycle-note {
  color: #94A3B8;
}

.combo-cycle-pill .cycle-save {
  font-size: 0.66rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 1px 5px;
  border-radius: 4px;
}

.combo-cycle-pill.active .cycle-save {
  background: #10B981;
  color: #FFFFFF;
}

/* Right Column: Live Sticky Cart & Quota Gauge */
.combo-cart-sidebar {
  position: sticky;
  top: 20px;
}

.combo-cart-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.combo-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.combo-live-indicator {
  font-size: 0.68rem;
  font-weight: 800;
  color: #10B981;
  background: #ECFDF5;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

/* Gauge Meter */
.combo-gauge-wrap {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.combo-gauge-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.combo-gauge-track {
  height: 12px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
}

.combo-gauge-base {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6 0%, #1D4ED8 100%);
  transition: width 0.3s ease;
}

.combo-gauge-booster {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  transition: width 0.3s ease;
}

.combo-gauge-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
}

.combo-gauge-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.combo-gauge-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.combo-gauge-legend .dot.base {
  background: #2563EB;
}

.combo-gauge-legend .dot.booster {
  background: #10B981;
}

/* Breakdown List */
.combo-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E2E8F0;
}

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

.combo-savings-pill-wrap {
  margin-top: 2px;
}

.combo-savings-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.combo-total-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1.5px dashed #CBD5E1;
}

.combo-total-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.combo-total-header-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.combo-total-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.combo-savings-calc-box {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 12px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.combo-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.combo-calc-label {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
}

.combo-calc-orig-val {
  font-size: 0.95rem;
  color: #0F172A;
  font-weight: 800;
}

.combo-calc-discount-row {
  border-top: 1px dashed #E2E8F0;
  padding-top: 5px;
}

.combo-calc-discount-row .combo-calc-label {
  color: #059669;
  font-weight: 700;
}

.combo-calc-discount-val {
  font-size: 1.05rem;
  color: #059669;
  font-weight: 900;
}

.combo-save-pill-wrap {
  margin-top: 6px;
}

.combo-save-pill-text {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  padding: 4px 11px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
}

.combo-orig-strikethrough {
  display: none;
}

.combo-total-discount-tag {
  display: none;
}

.combo-total-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
}

.combo-total-display {
  font-size: 1.85rem;
  font-weight: 900;
  color: #FF1E27;
  letter-spacing: -0.02em;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.combo-total-display.price-animating {
  color: #10B981;
  transform: scale(1.08);
}

.combo-period-unit {
  font-size: 0.95rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: -0.01em;
}

.combo-billed-subtext {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  margin-top: 4px;
  line-height: 1.35;
}

.combo-billed-subtext strong {
  color: #0F172A;
  font-weight: 800;
}

.combo-billed-subtext .highlight-save {
  color: #059669;
  font-weight: 800;
}

.combo-discount-save-note {
  display: none;
}

.combo-total-right {
  text-align: right;
}

.combo-cycle-note {
  font-size: 0.72rem;
  color: #64748B;
  line-height: 1.35;
}


/* Trust List */
.combo-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.75rem;
  color: #475569;
}

.combo-trust-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Big Checkout Button */
.btn-combo-checkout {
  width: 100%;
  background: linear-gradient(135deg, #FF1E27 0%, #E11D48 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 30, 39, 0.3);
}

.btn-combo-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 30, 39, 0.45);
  background: linear-gradient(135deg, #E11D48 0%, #FF1E27 100%);
}

/* Duration Lock Checkbox Card (Quarterly, 6 Months, Annual) */
.combo-lock-toggle-wrap {
  margin-top: 14px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.25s ease;
}

.combo-lock-toggle-wrap.locked-active {
  background: #F0FDF4;
  border-color: #10B981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.combo-lock-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

.combo-lock-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #10B981;
  margin-top: 2px;
  cursor: pointer;
}

.combo-lock-text-group {
  flex: 1;
}

.combo-lock-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.combo-lock-icon {
  font-size: 1rem;
}

.combo-lock-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
}

.combo-lock-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: #10B981;
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

.combo-lock-desc {
  font-size: 0.76rem;
  color: #64748B;
  margin-top: 3px;
  line-height: 1.35;
}

/* Transparent Math Explainer Box in Cart */
.combo-math-explainer {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.combo-explainer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #475569;
}

.combo-explainer-row .explainer-label {
  font-weight: 600;
  color: #64748B;
}

.combo-explainer-row .explainer-val {
  font-weight: 700;
  color: #0F172A;
  text-align: right;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.combo-explainer-row.combo-explainer-combined {
  padding-top: 6px;
  border-top: 1px dashed #CBD5E1;
}

.combo-explainer-row.combo-explainer-combined .explainer-label {
  color: #0F172A;
  font-weight: 800;
}

.combo-explainer-row.combo-explainer-combined .explainer-val {
  color: #2563EB;
  font-weight: 800;
  font-size: 0.82rem;
}

.combo-explainer-row.combo-explainer-quota {
  color: #059669;
  font-size: 0.72rem;
  background: #ECFDF5;
  padding: 4px 7px;
  border-radius: 6px;
  margin-top: 2px;
  border: 1px solid #A7F3D0;
}

.combo-explainer-row.combo-explainer-quota .explainer-label {
  color: #059669;
  font-weight: 700;
}

.combo-explainer-row.combo-explainer-quota .explainer-val {
  color: #047857;
  font-weight: 800;
}

.combo-explainer-row.combo-explainer-discount {
  color: #059669;
}

.combo-explainer-row.combo-explainer-discount .explainer-label {
  color: #059669;
  font-weight: 700;
}

.combo-explainer-row.combo-explainer-discount .explainer-val {
  color: #059669;
  font-weight: 800;
}

.combo-discount-highlight-row {
  background: #ECFDF5;
  border: 1px dashed #10B981;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==============================================================================
   COMBO STUDIO DISCOVERY TOUCHPOINTS (OVERVIEW, TOP-UP, UPGRADE MODAL)
   ============================================================================== */

/* 1. Overview Hero Discovery Banner */
.overview-combo-hero-banner {
  background: linear-gradient(135deg, rgba(255, 30, 39, 0.04) 0%, rgba(255, 107, 0, 0.08) 50%, rgba(16, 185, 129, 0.04) 100%);
  border: 1.5px solid rgba(255, 30, 39, 0.25);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 20px -4px rgba(255, 30, 39, 0.08);
  position: relative;
  overflow: hidden;
}

.overview-combo-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.combo-hero-left {
  flex: 1;
  min-width: 0;
}

.combo-hero-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.combo-hero-pill {
  font-size: 0.68rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF1E27 0%, #FF6B00 100%);
  color: #FFFFFF;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}

.combo-hero-save-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 2px 8px;
  border-radius: 6px;
}

.combo-hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.combo-hero-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #475569;
  margin: 0;
  max-width: 680px;
}

.combo-hero-desc strong {
  color: #0F172A;
}

.combo-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.combo-hero-price-preview {
  text-align: right;
}

.combo-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  display: block;
}

.combo-preview-rate {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.1;
}

.combo-preview-rate .per-mo {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
}

.combo-preview-savings {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  display: block;
}

.btn-combo-hero-cta {
  background: linear-gradient(135deg, #FF1E27 0%, #E01921 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-family: var(--font-app);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 30, 39, 0.28);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-combo-hero-cta:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(255, 30, 39, 0.38);
}

/* 2. Top-Up View Combo Duration Lock Discovery Card */
.topup-combo-recommend-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #ECFDF5 100%);
  border: 1.5px solid #FCD34D;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
}

.topup-combo-left {
  flex: 1;
  min-width: 0;
}

.topup-combo-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.topup-combo-pill {
  font-size: 0.68rem;
  font-weight: 800;
  background: #D97706;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.topup-combo-discount-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: #FFFFFF;
  color: #B45309;
  border: 1px solid #FDE68A;
  padding: 2px 7px;
  border-radius: 6px;
}

.topup-combo-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #78350F;
  margin: 0 0 4px 0;
}

.topup-combo-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #451A03;
  margin: 0;
}

.topup-combo-desc strong {
  color: #78350F;
}

.btn-topup-combo-cta {
  background: #D97706;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: var(--font-app);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(217, 119, 6, 0.28);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-topup-combo-cta:hover {
  background: #B45309;
  transform: translateY(-1.5px);
  box-shadow: 0 5px 16px rgba(217, 119, 6, 0.35);
}

/* 3. In-Dashboard Upgrade Modal Combo Nudge Card (Apple-Grade Minimalist Card) */
.modal-combo-nudge-card {
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 18px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.modal-combo-nudge-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.modal-combo-nudge-left {
  flex: 1;
  min-width: 0;
}

.modal-combo-nudge-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0071E3;
  background: rgba(0, 113, 227, 0.08);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.modal-combo-nudge-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.015em;
  margin: 0 0 3px 0;
}

.modal-combo-nudge-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748B;
  margin: 0;
}

.modal-combo-nudge-desc strong {
  color: #0F172A;
  font-weight: 700;
}

.btn-modal-combo-cta {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-modal-combo-cta:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .overview-combo-hero-banner,
  .topup-combo-recommend-card,
  .modal-combo-nudge-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .combo-hero-right {
    align-items: flex-start;
    width: 100%;
  }
  .combo-hero-price-preview {
    text-align: left;
  }
  .btn-combo-hero-cta,
  .btn-topup-combo-cta,
  .btn-modal-combo-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ==============================================================================
   MIMETIC TIER PROGRESSION & STATUS BADGE SYSTEM (RENÉ GIRARD & ZERO TO ONE)
   Clean White-Label Architecture • Identity Milestones • Goal-Gradient Engine
   ============================================================================== */
.creator-mimetic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.creator-mimetic-chip:hover {
  transform: translateY(-1px);
}

.badge-tier-seed {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.badge-tier-verified {
  background: rgba(2, 132, 199, 0.12);
  color: #0284C7;
  border: 1px solid rgba(2, 132, 199, 0.35);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.15);
}

.badge-tier-elite {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14) 0%, rgba(124, 58, 237, 0.2) 100%);
  color: #7C3AED;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

.badge-tier-authority {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(220, 38, 38, 0.22) 100%);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.badge-tier-syndicate {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 185, 129, 0.18) 100%);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.28);
}

.badge-tier-founding {
  background: linear-gradient(135deg, rgba(255, 30, 39, 0.16) 0%, rgba(15, 23, 42, 0.22) 100%);
  color: #FF1E27;
  border: 1px solid rgba(255, 30, 39, 0.45);
  box-shadow: 0 0 16px rgba(255, 30, 39, 0.25);
}

/* Goal-Gradient Progression Card */
.mimetic-progression-card {
  background: #FFFFFF;
  border: 1px solid var(--border-app);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.mimetic-progression-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #A855F7 0%, #FF1E27 100%);
}

.progression-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.progression-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progression-status-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.btn-progression-upgrade {
  background: linear-gradient(135deg, #FF1E27 0%, #D80F17 100%);
  color: #FFFFFF;
  border: none;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(255, 30, 39, 0.25);
  transition: all 0.15s ease;
}

.btn-progression-upgrade:hover {
  transform: translateY(-1px);
}

.progression-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.progression-fill {
  height: 100%;
  background: linear-gradient(90deg, #38BDF8 0%, #A855F7 50%, #FF1E27 100%);
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progression-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-share-flex-card {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-share-flex-card:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

/* Modal for Instagram Story Flex Card */
#modal-story-flex {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.story-flex-card-wrap {
  width: 100%;
  max-width: 440px;
  background: #090D16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.story-preview-container {
  width: 240px;
  height: 426px;
  background: #111827;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  position: relative;
}

.story-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-download-story {
  width: 100%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* ==============================================================================
   CREATOR NOTIFICATION CENTER STYLES
   ============================================================================== */
.btn-topbar-notif {
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-topbar-notif:hover {
  transform: scale(1.05);
  background-color: #F1F5F9 !important;
}
.btn-topbar-notif:active {
  transform: scale(0.96);
}

.notif-badge-dot {
  animation: pulseNotifBadge 2s infinite;
}

@keyframes pulseNotifBadge {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 30, 39, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(255, 30, 39, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 30, 39, 0); }
}

.notif-dropdown-panel {
  animation: notifDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

@keyframes notifDropdownFade {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.notif-item {
  transition: background-color 0.15s ease;
}
.notif-item:hover {
  background-color: #F8FAFC !important;
}
.notif-item.unread {
  background-color: #F0FDF4 !important;
}

/* ==============================================================================
   REAL-TIME DOPAMINE ENGINE: SPEEDOMETER & VIRAL RADAR
   ============================================================================== */
.topbar-speedometer-pill {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.topbar-speedometer-pill:hover {
  transform: translateY(-1px);
  border-color: #CBD5E1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.topbar-speedometer-pill.viral-surge {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%) !important;
  border-color: #F87171 !important;
  color: #991B1B !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
  animation: surgePulse 1.2s infinite ease-in-out;
}
@keyframes surgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.speedometer-pulse-dot {
  animation: dotBlink 1.8s infinite ease-in-out;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ==============================================================================
   DAILY AUTOMATION STREAKS 🔥 PILL
   ============================================================================== */
.topbar-streak-pill {
  transition: all 0.25s ease;
}
.topbar-streak-pill:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
  border-color: #FB923C !important;
}

/* ==============================================================================
   DUAL-METRIC LEADERBOARD VIEW & VEDIC PRABHAV BADGES
   ============================================================================== */
.leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.leaderboard-hero-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 20px;
  padding: 26px 30px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.leaderboard-hero-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.leaderboard-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.filter-pills-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-leaderboard-pill {
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-leaderboard-pill:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}
.btn-leaderboard-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.btn-dev-preview-toggle {
  background: #FEF3C7;
  border: 1.5px solid #F59E0B;
  color: #92400E;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-dev-preview-toggle.preview-active {
  background: #F59E0B;
  color: #FFFFFF;
}

/* Rank Badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}
.rank-gold {
  background: linear-gradient(135deg, #FEF08A 0%, #F59E0B 100%);
  color: #78350F;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}
.rank-silver {
  background: linear-gradient(135deg, #F1F5F9 0%, #94A3B8 100%);
  color: #1E293B;
  box-shadow: 0 3px 10px rgba(148, 163, 184, 0.3);
}
.rank-bronze {
  background: linear-gradient(135deg, #FED7AA 0%, #EA580C 100%);
  color: #7C2D12;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}
.rank-standard {
  background: #F1F5F9;
  color: #475569;
}

/* Vedic Tier Badges */
.badge-vedic {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tier-shikhar {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border: 1px solid #D8B4FE;
  color: #7E22CE;
}
.tier-veer {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #93C5FD;
  color: #1D4ED8;
}
.tier-rathi {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #6EE7B7;
  color: #047857;
}
.tier-arya {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FCD34D;
  color: #B45309;
}

/* Sticky Personal Creator Rank Bar */
.sticky-personal-rank-bar {
  position: sticky;
  bottom: 16px;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px 22px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.45);
}

/* Action Buttons */
.btn-table-action {
  border: none;
  background: #F1F5F9;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-table-action:hover {
  background: #E2E8F0;
  color: #0F172A;
}
.btn-table-gift {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  color: #E11D48;
  border: 1px solid #FECDD3;
}
.btn-table-gift:hover {
  background: #E11D48;
  color: #FFFFFF;
  border-color: #E11D48;
}

/* Story Flex Card Canvas Modal */
.story-preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: #0B0F19;
  border-radius: 16px;
}
.story-canvas-scaled {
  max-width: 290px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  aspect-ratio: 9 / 16;
}

/* ==========================================================================
   Dashboard Leaderboard Segmented Controls & Smooth Glider Animation
   ========================================================================== */
.lb-segmented-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 9999px;
  padding: 4px;
  gap: 3px;
  user-select: none;
}

.lb-glider {
  position: absolute;
  top: 0;
  left: 0;
  background: #FFFFFF;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
              width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
              height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, width, height;
}

.lb-segment-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent !important;
  color: #64748B;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  user-select: none;
  outline: none;
}

.lb-segment-btn svg {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.lb-segment-btn:hover {
  color: #0F172A;
}

.lb-segment-btn:hover svg {
  opacity: 1;
}

.lb-segment-btn.active {
  color: #0F172A;
  font-weight: 700;
}

.lb-segment-btn.active svg {
  opacity: 1;
  color: #FF1E27;
}

/* YouTube-Style Skeleton Loading Shimmer */
@keyframes ytShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.yt-skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: ytShimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: 8px;
}

.yt-skeleton-dark {
  background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
  background-size: 200% 100%;
  animation: ytShimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: 8px;
}

/* Gift Category Switcher Tabs */
.gift-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748B;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gift-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Dynamic Top 10 Tournament Prize Tray & Micro-Pills
   ========================================================================== */
.lb-prizes-tray-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition: opacity 0.18s ease;
}

.lb-prizes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.lb-prizes-header-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 7px;
}

.lb-prizes-header-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.lb-prizes-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .lb-prizes-podium-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.lb-podium-card {
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  background: #FAFAFA;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
}

.lb-podium-card.podium-gold {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.5) 0%, rgba(255, 251, 235, 0.9) 100%);
  border: 1.5px solid #F59E0B;
  box-shadow: 0 6px 18px -4px rgba(245, 158, 11, 0.18);
}

.lb-podium-card.podium-silver {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.7) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1.5px solid #94A3B8;
  box-shadow: 0 6px 18px -4px rgba(148, 163, 184, 0.16);
}

.lb-podium-card.podium-bronze {
  background: linear-gradient(135deg, rgba(254, 237, 226, 0.5) 0%, rgba(255, 247, 242, 0.9) 100%);
  border: 1.5px solid #D97706;
  box-shadow: 0 6px 18px -4px rgba(217, 119, 6, 0.16);
}

.lb-podium-rank-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lb-podium-card.podium-gold .lb-podium-rank-tag { color: #B45309; }
.lb-podium-card.podium-silver .lb-podium-rank-tag { color: #475569; }
.lb-podium-card.podium-bronze .lb-podium-rank-tag { color: #9A3412; }

.lb-podium-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 3px;
  line-height: 1.25;
}

.lb-podium-desc {
  font-size: 0.74rem;
  color: #64748B;
  margin: 0;
  line-height: 1.35;
}

.lb-runner-strip {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lb-runner-strip::-webkit-scrollbar { display: none; }

.lb-runner-strip-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.lb-runner-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.rank-prize-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.02em;
}
.rank-prize-pill.prize-gold {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #92400E;
}
.rank-prize-pill.prize-silver {
  background: #F1F5F9;
  border: 1px solid #94A3B8;
  color: #334155;
}
.rank-prize-pill.prize-bronze {
  background: #FFEDD5;
  border: 1px solid #F97316;
  color: #9A3412;
}
.rank-prize-pill.prize-contacts {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  color: #6D28D9;
}

/* ==============================================================================
   OFFICIAL META BUSINESS PARTNER BADGE STYLING (Vector High-Precision)
   ============================================================================== */
.badge-meta-partner {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  user-select: none;
  vertical-align: middle;
  flex-shrink: 0;
}

.badge-meta-partner:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 100, 224, 0.16);
}

.badge-meta-partner img {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.badge-meta-partner.sm img {
  height: 32px;
}

.badge-meta-partner.lg img {
  height: 48px;
}

/* ==============================================================================
   iOS 27 LIQUID GLASS TOOLTIP SYSTEM FOR DASHBOARD
   ============================================================================== */
.info-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px;
  -webkit-tap-highlight-color: transparent;
}

.info-tip-btn {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.7);
  color: #64748B;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.2s ease;
}

.info-tip-wrap:hover .info-tip-btn,
.info-tip-wrap.active .info-tip-btn {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  transform: scale(1.15);
}

.info-tip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 250px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FFFFFF !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
  z-index: 9999;
  text-align: left;
}

.info-tip-wrap:hover .info-tip-content,
.info-tip-wrap.active .info-tip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


