/* ============================================================
   QC Design System — Vouchers & Crypto
   ============================================================ */
:root {
  --qc-bg: #f1f5f9;
  --qc-card: #ffffff;
  --qc-border: #e2e8f0;
  --qc-text: #0f172a;
  --qc-muted: #64748b;
  --qc-primary: #0d9488;
  --qc-primary-hover: #0f766e;
  --qc-primary-soft: #ccfbf1;
  --qc-danger: #e11d48;
  --qc-danger-soft: #ffe4e6;
  --qc-success: #059669;
  --qc-success-soft: #d1fae5;
  --qc-radius: 14px;
  --qc-radius-sm: 10px;
  --qc-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --qc-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --qc-font-fa: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family: var(--qc-font);
  font-size: 1rem;
  color: var(--qc-text);
  background: var(--qc-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.rtl { font-family: var(--qc-font-fa); }

/* Force Western Arabic digits (0-9) in RTL pages for numeric UI */
body.rtl .dir-ltr,
body.rtl input[type="number"],
body.rtl input[type="tel"],
body.rtl .qc-num {
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif !important;
}

a { color: var(--qc-primary); text-decoration: none; }
a:hover { text-decoration: none; }

/* ---------- Layout ---------- */
.qc-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.qc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--qc-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.qc-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--qc-text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.qc-brand:hover { text-decoration: none; }

.qc-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.qc-lang {
  display: flex;
  gap: 3px;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px;
}
.qc-lang a {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  color: var(--qc-muted);
  text-decoration: none;
  transition: 0.15s;
  white-space: nowrap;
}
.qc-lang a.active {
  background: #fff;
  color: var(--qc-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.qc-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
}

@media (min-height: 700px) {
  .qc-main { align-items: center; }
}

.qc-shell {
  width: 100%;
  max-width: 420px;
}

.qc-card {
  background: var(--qc-card);
  border-radius: calc(var(--qc-radius) + 2px);
  box-shadow: var(--qc-shadow);
  border: 1px solid var(--qc-border);
  padding: 1.75rem 1.5rem;
}

.qc-card h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.qc-card .qc-hint {
  color: var(--qc-muted);
  font-size: 0.875rem;
  margin-bottom: 1.35rem;
}

.qc-foot {
  text-align: center;
  margin-top: 1.15rem;
  font-size: 0.875rem;
  color: var(--qc-muted);
}
.qc-foot a { font-weight: 600; }

/* ---------- Form ---------- */
.qc-field { margin-bottom: 0.9rem; }
.qc-field label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #334155;
}

.qc-field input[type="text"],
.qc-field input[type="email"],
.qc-field input[type="password"],
.qc-field input[type="tel"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--qc-border);
  border-radius: var(--qc-radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--qc-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  /* Direction handled by lang class / attributes */
}

/* LTR for email & password always (universal formats) */
.qc-field input[type="email"],
.qc-field input[type="password"],
.qc-field input.dir-ltr {
  direction: ltr;
  text-align: left;
}

/* Name fields: inherit page direction */
body.rtl .qc-field input[type="text"]:not(.dir-ltr) {
  direction: rtl;
  text-align: right;
}
body:not(.rtl) .qc-field input[type="text"]:not(.dir-ltr) {
  direction: ltr;
  text-align: left;
}

.qc-field input:focus {
  border-color: var(--qc-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.qc-field input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.qc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* Password toggle — always on the RIGHT (even in RTL) */
.qc-pass-wrap {
  display: flex;
  align-items: stretch;
  direction: ltr;
  border: 1.5px solid var(--qc-border);
  border-radius: var(--qc-radius-sm);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qc-pass-wrap:focus-within {
  border-color: var(--qc-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.qc-pass-wrap input {
  flex: 1;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.7rem 0.85rem !important;
  direction: ltr !important;
  text-align: left !important;
  background: transparent;
}
.qc-pass-wrap input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none;
}
.qc-pass-toggle {
  flex-shrink: 0;
  width: 44px;
  border: none;
  border-left: 1.5px solid var(--qc-border);
  background: #f8fafc;
  color: var(--qc-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.qc-pass-toggle:hover {
  color: var(--qc-text);
  background: #f1f5f9;
}
.qc-pass-toggle svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.qc-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
}
.qc-check input { margin-top: 0.15rem; accent-color: var(--qc-primary); flex-shrink: 0; }

.err-msg {
  font-size: 0.78rem;
  color: var(--qc-danger);
  margin-top: 0.25rem;
  min-height: 1em;
}

/* ---------- Buttons ---------- */
.qc-btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: var(--qc-radius-sm);
  background: var(--qc-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 0.4rem;
  -webkit-tap-highlight-color: transparent;
}
.qc-btn:hover { background: var(--qc-primary-hover); }
.qc-btn:active { transform: scale(0.99); }
.qc-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.qc-btn-text {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.45rem;
  border: none;
  background: transparent;
  color: var(--qc-primary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.qc-btn-text:hover { text-decoration: none; opacity: 0.85; }

/* ---------- Alert ---------- */
.qc-alert {
  display: none;
  padding: 0.7rem 0.85rem;
  border-radius: var(--qc-radius-sm);
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}
.qc-alert.show { display: block; }
.qc-alert.error {
  background: var(--qc-danger-soft);
  color: #9f1239;
  border: 1px solid #fecdd3;
}
.qc-alert.success {
  background: var(--qc-success-soft);
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.qc-alert.info {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

/* ---------- OTP ---------- */
.qc-otp {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin: 1.1rem 0;
  direction: ltr;
}
.qc-otp input {
  width: 46px;
  height: 52px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1.5px solid var(--qc-border);
  border-radius: var(--qc-radius-sm);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  direction: ltr;
}
.qc-otp input:focus {
  border-color: var(--qc-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.qc-timer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--qc-muted);
  margin-bottom: 0.65rem;
}
.qc-timer b { color: var(--qc-text); font-variant-numeric: tabular-nums; }

/* ---------- Dashboard ---------- */
.qc-dash-card {
  background: #fff;
  border-radius: calc(var(--qc-radius) + 2px);
  border: 1px solid var(--qc-border);
  box-shadow: var(--qc-shadow);
  padding: 1.75rem 1.5rem;
}
.qc-dash-card h1 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.qc-dash-card > p {
  color: var(--qc-muted);
  margin-bottom: 1.35rem;
  font-size: 0.875rem;
}
.qc-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  gap: 1rem;
}
.qc-info-row:last-of-type { border-bottom: none; }
.qc-info-label { color: var(--qc-muted); flex-shrink: 0; }
.qc-info-value {
  font-weight: 600;
  text-align: end;
  word-break: break-all;
  direction: ltr;
}

.qc-btn-danger { background: var(--qc-danger); margin-top: 1.35rem; }
.qc-btn-danger:hover { background: #be123c; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .qc-topbar { padding: 0.75rem 1rem; }
  .qc-card, .qc-dash-card { padding: 1.35rem 1.1rem; border-radius: 12px; }
  .qc-card h1 { font-size: 1.2rem; }
  .qc-row { grid-template-columns: 1fr; gap: 0; }
  .qc-otp { gap: 0.35rem; }
  .qc-otp input { width: 42px; height: 48px; font-size: 1.15rem; }
  .qc-main { padding: 1rem 0.75rem 2rem; }
  .qc-shell { max-width: 100%; }
}

@media (max-width: 360px) {
  .qc-otp input { width: 38px; height: 44px; font-size: 1.05rem; }
  .qc-brand span:last-child { font-size: 1.05rem; }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .qc-topbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .qc-main {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* ---------- Home landing ---------- */
.qc-home {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 0 32px;
}
.qc-home-hero {
  text-align: center;
  background: #fff;
  border-radius: var(--qc-radius);
  padding: 36px 24px 28px;
  box-shadow: var(--qc-shadow);
  margin-bottom: 20px;
}
.qc-home-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.qc-home-hero h1 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.35;
}
.qc-home-sub {
  color: var(--qc-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
  line-height: 1.65;
}
.qc-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.qc-home-actions .qc-btn {
  min-width: 140px;
}
.qc-btn-outline {
  background: transparent !important;
  color: var(--qc-primary) !important;
  border: 2px solid var(--qc-primary);
  box-shadow: none !important;
}
.qc-btn-outline:hover {
  background: var(--qc-primary-soft) !important;
  text-decoration: none;
}
.qc-home-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 480px) {
  .qc-home-features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.qc-home-feature {
  background: #fff;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--qc-border);
}
.qc-home-feature-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: var(--qc-primary-soft);
  color: var(--qc-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.qc-home-feature-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--qc-text);
}


/* No underlines on interactive elements (professional look) */
a, a:hover, a:focus, a:active,
button, button:hover,
.qc-btn, .qc-btn:hover, .qc-btn:focus,
.qc-btn-text, .qc-btn-text:hover, .qc-btn-text:focus,
.qc-btn-outline, .qc-btn-outline:hover,
.qc-foot a, .qc-foot a:hover,
.qc-brand, .qc-brand:hover,
.qc-lang a, .qc-lang a:hover,
.qc-nav-item, .qc-nav-item:hover,
.qc-drawer-link, .qc-drawer-link:hover,
.qc-icon-btn, .qc-icon-btn:hover {
  text-decoration: none !important;
}

/* ========== Global responsive foundation (320px → 4K) ========== */
img, svg, video { max-width: 100%; height: auto; }
button, a, input, select, textarea { max-width: 100%; }
.qc-shell { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 12px; box-sizing: border-box; }
.qc-main { width: 100%; overflow-x: hidden; }

/* Tiny phones (legacy / very small) */
@media (max-width: 359px) {
  html { font-size: 14px; }
  .qc-home-hero { padding: 24px 14px 20px; }
  .qc-home-hero h1 { font-size: 1.25rem; }
  .qc-btn { padding: 12px 14px; font-size: 0.9rem; }
  .qc-home-features { grid-template-columns: 1fr !important; }
}

/* Phones */
@media (min-width: 360px) and (max-width: 599px) {
  .qc-home { max-width: 100%; padding: 4px 0 24px; }
  .qc-home-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  /* 3 compact metric chips in a row on wider phones */
  .qc-home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* Large phones / small tablets: 3 feature cards side-by-side */
@media (min-width: 480px) {
  .qc-home-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

/* Tablets */
@media (min-width: 600px) and (max-width: 1023px) {
  .qc-shell { max-width: 820px; padding: 0 20px; }
  .qc-home { max-width: 700px; }
  .qc-home-features { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .qc-home-hero { padding: 44px 32px 36px; }
  .qc-home-hero h1 { font-size: 1.85rem; }
}

/* Laptops / desktops */
@media (min-width: 1024px) {
  .qc-shell { max-width: 960px; padding: 0 24px; }
  .qc-home { max-width: 880px; }
  .qc-home-hero { padding: 52px 40px 40px; }
  .qc-home-hero h1 { font-size: 2.1rem; }
  .qc-home-features { gap: 16px; }
}

/* Wide screens */
@media (min-width: 1440px) {
  .qc-shell { max-width: 1100px; }
}

/* Touch targets */
@media (pointer: coarse) {
  .qc-btn, .qc-nav-item, .qc-lang a, .qc-icon-btn {
    min-height: 44px;
  }
  .qc-qty-chip { min-height: 44px; min-width: 48px; }
}

/* Landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .qc-home-hero { padding: 20px 16px; }
  .qc-home-hero h1 { font-size: 1.2rem; margin-bottom: 6px; }
  .qc-home-sub { margin-bottom: 12px; font-size: 0.85rem; }
}

/* ===== Professional home landing ===== */
.qc-home {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 0 40px;
}
.qc-home-hero {
  position: relative;
  text-align: center;
  background: linear-gradient(165deg, #ffffff 0%, #f0fdfa 55%, #ecfeff 100%);
  border-radius: 20px;
  padding: 36px 24px 28px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  overflow: hidden;
}
.qc-home-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  inset-inline-end: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(13,148,136,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.qc-home-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.2);
  background: #fff;
}
.qc-home-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.qc-home-hero h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.35;
  color: #0f172a;
  position: relative;
}
.qc-home-sub {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0 auto 22px;
  line-height: 1.7;
  max-width: 36em;
  position: relative;
}
.qc-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative;
}
.qc-home-actions .qc-btn {
  min-width: 148px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
}
.qc-home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
  position: relative;
}
.qc-home-stat {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}
.qc-home-stat-val {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0d9488;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: system-ui, sans-serif !important;
}
.qc-home-stat-lbl {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
  font-weight: 600;
}
.qc-home-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.qc-home-feature {
  background: #fff;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--qc-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.qc-home-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.qc-home-feature-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ccfbf1, #e0f2fe);
  color: #0d9488;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.qc-home-feature-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 4px;
}
.qc-home-feature-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}
.qc-home-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  font-size: 0.88rem;
  font-weight: 600;
}
.qc-home-foot-links a { color: #0d9488; }

/* ===== Terms page ===== */
.qc-terms {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 40px;
}
.qc-terms-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
  border: 1px solid #e2e8f0;
}
.qc-terms-card h1 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #0f172a;
}
.qc-terms-updated {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 20px;
  font-weight: 600;
}
.qc-terms-card h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 22px 0 8px;
  color: #0f766e;
}
.qc-terms-card p, .qc-terms-card li {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 10px;
}
.qc-terms-card ul {
  margin: 0 0 12px;
  padding-inline-start: 1.25rem;
}
.qc-terms-card li { margin-bottom: 6px; }
.qc-terms-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0d9488;
}
@media (min-width: 600px) {
  .qc-terms-card { padding: 36px 36px; }
  .qc-terms-card h1 { font-size: 1.7rem; }
}


/* ===== FORCE side-by-side grids (do not stack) ===== */
.qc-home-features {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch;
}
.qc-home-feature {
  min-width: 0 !important;
  padding: 12px 8px !important;
}
.qc-home-feature-title { font-size: 0.78rem !important; }
.qc-home-feature-desc { font-size: 0.68rem !important; line-height: 1.4; }
.qc-home-feature-icon {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.85rem !important;
  margin-bottom: 6px !important;
}

.qc-home-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.qc-home-stat { min-width: 0; padding: 10px 6px !important; }
.qc-home-stat-val { font-size: 0.95rem !important; }
.qc-home-stat-lbl { font-size: 0.65rem !important; }

/* Wider phones / tablets: keep 3 cols, more padding */
@media (min-width: 480px) {
  .qc-home-features { gap: 12px !important; }
  .qc-home-feature { padding: 16px 12px !important; }
  .qc-home-feature-title { font-size: 0.9rem !important; }
  .qc-home-feature-desc { font-size: 0.78rem !important; }
  .qc-home-feature-icon { width: 40px !important; height: 40px !important; }
  .qc-home-stats { gap: 12px !important; }
  .qc-home-stat-val { font-size: 1.05rem !important; }
  .qc-home-stat-lbl { font-size: 0.72rem !important; }
}

@media (min-width: 768px) {
  .qc-home-features { gap: 16px !important; }
  .qc-home-feature { padding: 20px 16px !important; }
  .qc-home-feature-title { font-size: 0.95rem !important; }
  .qc-home-feature-desc { font-size: 0.85rem !important; }
}

/* Never force features/stats to 1 column */
@media (max-width: 359px) {
  .qc-home-features { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .qc-home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
