/* ==========================================================================
   YOUSAF TRADER (Y.Q.T) - ROYAL MIDNIGHT SAPPHIRE & DEEP COBALT PALETTE
   Unique Rich Dark Aesthetic (Distinctly Blue/Sapphire — NOT Black, NOT White)
   Matches Client's Royal Blue Suit & Luxury Fintech VIP Branding
   ========================================================================== */

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Rich Royal Midnight Sapphire & Cobalt Palette (NOT Black, NOT White) */
  --bg-body: #0a162d;
  --bg-card: #102246;
  --bg-card-hover: #152c5b;
  --bg-inner: #0c1a36;

  /* Luminous Accents */
  --color-blue: #3b82f6;
  --color-cyan: #38bdf8;
  --color-emerald: #10b981;
  --color-gold: #f59e0b;
  --color-red: #ef4444;

  /* Borders & Glowing Edges */
  --border-subtle: rgba(56, 189, 248, 0.2);
  --border-hover: #38bdf8;
  --border-emerald: rgba(16, 185, 129, 0.4);
  --border-gold: rgba(245, 158, 11, 0.4);

  /* Gradients */
  --grad-cyan-blue: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-tg: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --grad-wa: linear-gradient(135deg, #16a34a 0%, #15803d 100%);

  /* High-Contrast Luminous Typography */
  --text-white: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #93c5fd;
  --text-dim: #60a5fa;

  /* Deep Luminous Sapphire Shadows */
  --shadow-card: 0 10px 30px -5px rgba(2, 8, 23, 0.55), 0 0 15px -3px rgba(37, 99, 235, 0.15);
  --shadow-hover: 0 14px 38px -4px rgba(2, 8, 23, 0.7), 0 0 25px rgba(56, 189, 248, 0.35);
  --radius-card: 20px;
  --radius-btn: 14px;
}

/* Reset & Mobile Optimization */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Subtle Background with Deep Sapphire & Cyan Nebulas */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 20% 12%, rgba(37, 99, 235, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(2, 132, 199, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 75%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.15) 0%, transparent 40%);
}

/* ==========================================================================
   Live Ticker Header Bar (Sapphire Glass)
   ========================================================================== */
.ticker-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 45, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(2, 8, 23, 0.4);
}

.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: tickerAnim 32s linear infinite;
}

.ticker-header:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: nowrap;
}

.ticker-sym {
  font-weight: 700;
  color: var(--text-white);
}

.ticker-prc {
  color: #bfdbfe;
}

.ticker-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.ticker-badge.up {
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ticker-badge.down {
  color: #f87171;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  display: inline-block;
  animation: pulseAnim 1.6s infinite;
}

@keyframes tickerAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   Main Portal Container (Max-Width 720px for Clean Conversion Focus)
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* ==========================================================================
   Client Main Header Profile (Deep Royal Sapphire Hero Card)
   ========================================================================== */
.profile-card {
  position: relative;
  background: linear-gradient(180deg, #0e1f40 0%, #0a162d 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 24px;
  padding: 0 0 24px 0;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  text-align: center;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #3b82f6, #10b981);
  z-index: 5;
}

/* Client Official Photo as Full Thumbnail Filling Top Area */
.client-hero-thumbnail-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: clamp(230px, 46vw, 320px);
  overflow: hidden;
  background: #081224;
}

.client-hero-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.thumbnail-fade-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 31, 64, 0) 25%, rgba(14, 31, 64, 0.45) 70%, #0e1f40 100%);
  pointer-events: none;
}

.verified-badge-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 22, 45, 0.88);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  z-index: 4;
}

.profile-details-wrap {
  padding: 0 20px;
  margin-top: -30px;
  position: relative;
  z-index: 3;
}

.profile-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-tagline {
  font-size: 0.88rem;
  color: var(--color-cyan);
  font-weight: 700;
  margin-bottom: 10px;
}

.profile-bio {
  font-size: 0.92rem;
  color: #bfdbfe;
  max-width: 560px;
  margin: 0 auto 16px;
  line-height: 1.55;
}

/* Sleek Educational Compliance Pill Banner */
.edu-pill-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(14, 30, 62, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  color: #bfdbfe;
  line-height: 1.4;
  margin: 0 auto 16px;
  max-width: 100%;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(2, 8, 23, 0.35);
  transition: all 0.2s ease;
}

.edu-pill-banner:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(18, 38, 78, 0.8);
}

.edu-shield-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  flex-shrink: 0;
}

.edu-shield-icon svg {
  width: 12px;
  height: 12px;
}

.edu-pill-text {
  color: #cbd5e1;
}

.edu-pill-text strong {
  color: #38bdf8;
  font-weight: 700;
}

/* Compact Metrics Bar */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 18px;
}

.metric-box {
  background: var(--bg-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px 8px;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.metric-num.emerald { color: #34d399; }
.metric-num.cyan { color: #38bdf8; }
.metric-num.gold { color: #fbbf24; }

.metric-lbl {
  font-size: 0.7rem;
  color: #93c5fd;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================================================
   Clean Action Cards (High Conversion Midnight Sapphire Cards)
   ========================================================================== */
.cards-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
}

.action-card.featured-card {
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, #122852 0%, #0d1e3d 100%);
  box-shadow: 0 10px 30px -4px rgba(2, 8, 23, 0.6), 0 0 20px rgba(56, 189, 248, 0.2);
}

.action-card.gold-card {
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, #1d253d 0%, #0d1e3d 100%);
}

/* Card Header Row */
.card-main-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #08142b;
  border: 2px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(2, 8, 23, 0.5);
  overflow: hidden;
  transition: all 0.25s ease;
}

.action-card:hover .card-icon-box {
  border-color: var(--color-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  transform: scale(1.05);
}

.card-icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.card-content-box {
  flex: 1;
  min-width: 0;
}

.card-header-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 7px;
  border-radius: 4px;
}

.badge-tag.cyan { color: #38bdf8; background: rgba(56, 189, 248, 0.16); }
.badge-tag.emerald { color: #34d399; background: rgba(16, 185, 129, 0.16); }
.badge-tag.gold { color: #fbbf24; background: rgba(245, 158, 11, 0.16); }
.badge-tag.hot { color: #f87171; background: rgba(239, 68, 68, 0.16); }

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  word-break: break-word;
}

.card-subtitle {
  font-size: 0.82rem;
  color: #bfdbfe;
  line-height: 1.38;
  word-break: break-word;
  margin-top: 3px;
}

/* Promo Code In-Card Pill */
.promo-inline-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 20, 43, 0.7);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.8rem;
  color: #e2e8f0;
}

.promo-inline-text {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--color-cyan);
  letter-spacing: 0.5px;
}

.copy-mini-btn {
  background: #1e3a8a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-mini-btn:hover {
  background: var(--color-cyan);
  color: #0a162d;
  border-color: var(--color-cyan);
}

/* Action Button Inside Card */
.btn-card-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-card-action.primary {
  background: var(--grad-cyan-blue);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.btn-card-action.primary:hover {
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.btn-card-action.emerald {
  background: var(--grad-emerald);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-card-action.emerald:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-card-action.gold {
  background: var(--grad-gold);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-card-action.gold:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.btn-card-action.tg {
  background: var(--grad-tg);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.btn-card-action.tg:hover {
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.btn-card-action.wa {
  background: var(--grad-wa);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

.btn-card-action.wa:hover {
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.btn-card-action.card-redot {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
}

.btn-card-action.card-redot:hover {
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   Collapsible Extras (Calculator & Masterclass - Midnight Sapphire Drawers)
   ========================================================================== */
.extra-section {
  margin-top: 24px;
}

.collapsible-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
}

.collapsible-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.collapsible-content {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 20px 18px;
  margin-top: -6px;
  box-shadow: var(--shadow-card);
}

.collapsible-content.open {
  display: block;
}

/* Compounding Calculator inside Collapsible */
.calc-inputs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.calc-box-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-box-item label {
  font-size: 0.72rem;
  color: #93c5fd;
  font-weight: 600;
}

.calc-box-item input {
  width: 100%;
  padding: 8px 10px;
  background: #08142b;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s;
}

.calc-box-item input:focus {
  border-color: var(--color-cyan);
}

.calc-summary-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.calc-sum-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1.2;
}

/* Video Frame inside Collapsible */
.video-responsive-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #08142b;
  border: 1px solid var(--border-subtle);
}

.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Footer & Disclaimer
   ========================================================================== */
.footer-wrap {
  margin-top: 36px;
  text-align: center;
  padding: 20px 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: #93c5fd;
  line-height: 1.6;
}

.footer-wrap a {
  color: var(--color-cyan);
  text-decoration: none;
}

/* ==========================================================================
   Modals & Toast
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 30, 0.85);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0e1f40;
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 24px 20px;
  box-shadow: 0 20px 50px rgba(2, 8, 23, 0.9);
  position: relative;
  transform: scale(0.94);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-inner);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #0e1f40;
  border: 1.5px solid var(--color-cyan);
  color: var(--text-white);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Full Responsive Breakpoints (Mobile First to Desktop)
   ========================================================================== */
/* ==========================================================================
   Full Responsive Breakpoints (Mobile First to Desktop)
   ========================================================================== */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .main-wrapper {
    padding: 12px 12px 60px;
    padding-left: max(12px, env(safe-area-inset-left, 12px));
    padding-right: max(12px, env(safe-area-inset-right, 12px));
    box-sizing: border-box;
  }

  .profile-card {
    padding: 0 0 20px 0;
    border-radius: 20px;
  }

  .client-hero-thumbnail-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 200px;
    max-height: 240px;
  }

  .client-hero-thumbnail-img {
    object-position: center 30%;
  }

  .thumbnail-fade-overlay {
    background: linear-gradient(180deg, rgba(14, 31, 64, 0) 25%, rgba(14, 31, 64, 0.6) 75%, #0e1f40 100%);
  }

  .verified-badge-pill {
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .profile-details-wrap {
    padding: 0 14px;
    margin-top: 10px; /* Clean spacing below thumbnail, zero overlap on screens/laptop */
  }

  .profile-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .profile-tagline {
    font-size: 0.82rem;
    margin-bottom: 8px;
  }

  .edu-pill-banner {
    padding: 6px 12px;
    font-size: 0.72rem;
    gap: 6px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-align: center;
  }

  .profile-bio {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 14px;
    padding: 0 4px;
  }

  .metrics-row {
    gap: 6px;
    margin: 0 auto 14px;
  }

  .metric-box {
    padding: 8px 4px;
    border-radius: 12px;
  }

  .metric-num {
    font-size: 1.05rem;
  }

  .metric-lbl {
    font-size: 0.62rem;
    letter-spacing: 0;
  }

  .action-card {
    padding: 14px 14px;
    border-radius: 16px;
    gap: 10px;
  }

  .card-main-row {
    gap: 12px;
  }

  .card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .card-icon-box img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }

  .card-title {
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .card-subtitle {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .promo-inline-box {
    padding: 7px 10px;
    font-size: 0.76rem;
    gap: 6px;
    flex-wrap: wrap;
  }

  .copy-mini-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .btn-card-action {
    padding: 11px 12px;
    font-size: 0.86rem;
    min-height: 42px;
  }

  .calc-inputs-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calc-sum-value {
    font-size: 1.5rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .main-wrapper {
    padding: 18px 16px 70px;
  }
}
