/* =========================================================
   Quick Discount — Pitch Deck Styles
   Business Khana brand
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --green: #278664;
  --green-700: #1c6149;
  --green-900: #0F5A44;
  --green-50: #E8F3EE;
  --gold: #FED80B;
  --gold-700: #C7A800;
  --navy: #2C2F46;
  --navy-800: #1E2034;
  --navy-700: #383C58;
  --cream: #FAF6EC;
  --bg-light: #F7F8FA;
  --white: #FFFFFF;
  --gray: #666666;
  --gray-2: #9AA0AE;
  --line: rgba(44,47,70,0.08);

  /* Type scale (1920x1080) */
  --type-display: 96px;
  --type-title: 64px;
  --type-subtitle: 40px;
  --type-h3: 32px;
  --type-body: 26px;
  --type-small: 22px;
  --type-xs: 18px;
  --type-mega: 160px;

  /* Spacing */
  --pad-x: 100px;
  --pad-y: 80px;

  /* Fonts */
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-display: "Fredoka", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Base ---------- */
html, body { margin: 0; padding: 0; background: #000; font-family: var(--font-body); color: var(--navy); -webkit-font-smoothing: antialiased; }

deck-stage section {
  overflow: hidden;
  background: var(--bg-light);
  color: var(--navy);
  font-family: var(--font-body);
}

/* ---------- Slide chrome ---------- */
.chrome-logo {
  position: absolute;
  top: 56px;
  left: 56px;
  height: 44px;
  z-index: 10;
}
.chrome-logo.right { left: auto; right: 56px; }
.chrome-page-num {
  position: absolute;
  bottom: 44px;
  right: 56px;
  font-size: 18px;
  font-family: var(--font-body);
  color: var(--gray-2);
  letter-spacing: 0.04em;
  font-weight: 500;
  z-index: 10;
}
.chrome-page-num.on-dark { color: rgba(255,255,255,0.42); }
.chrome-tag {
  position: absolute;
  bottom: 44px;
  left: 56px;
  font-size: 18px;
  font-family: var(--font-body);
  color: var(--gray-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 10;
}
.chrome-tag.on-dark { color: rgba(255,255,255,0.4); }
.chrome-tag .dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  margin: 0 12px 2px 0;
  vertical-align: middle;
}
.chrome-tag.on-dark .dot { background: var(--gold); }

/* ---------- Backgrounds ---------- */
.bg-dark { background: var(--navy); color: var(--white); }
.bg-dark-grad { background: linear-gradient(135deg, #2C2F46 0%, #1E2034 100%); color: var(--white); }
.bg-green { background: var(--green); color: var(--white); }
.bg-green-grad { background: linear-gradient(135deg, #278664 0%, #0F5A44 100%); color: var(--white); }
.bg-cream { background: var(--cream); }
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--white); }

/* Subtle hex pattern overlay (cover/closing) */
.pattern-hex {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 30%, var(--green) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, var(--gold) 0, transparent 35%);
  pointer-events: none;
}
.pattern-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* ---------- Typography helpers ---------- */
.kicker {
  font-size: 24px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
}
.kicker.on-dark { color: var(--gold); }
.kicker .bullet { color: var(--gold); margin: 0 10px; }

.h-display { font-family: var(--font-display); font-weight: 700; font-size: var(--type-display); line-height: 1.02; letter-spacing: -0.02em; }
.h-title { font-weight: 700; font-size: var(--type-title); line-height: 1.08; letter-spacing: -0.01em; }
.h-subtitle { font-weight: 500; font-size: var(--type-subtitle); line-height: 1.18; }
.h-body { font-weight: 400; font-size: var(--type-body); line-height: 1.45; }
.h-small { font-weight: 400; font-size: var(--type-small); line-height: 1.5; color: var(--gray); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray); }
.text-muted-dark { color: rgba(255,255,255,0.62); }

.ar { direction: rtl; }
.en { direction: ltr; }

/* ---------- Gold rule ---------- */
.rule-gold { height: 4px; width: 120px; background: var(--gold); border-radius: 2px; }
.rule-thin { height: 1px; width: 100%; background: rgba(255,255,255,0.1); }
.rule-thin.on-light { background: rgba(44,47,70,0.1); }

/* ---------- Slide-level padding wrapper ---------- */
.slide {
  position: absolute;
  inset: 0;
  padding: var(--pad-y) var(--pad-x);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* ===================================================
   PHONE / DEVICE MOCKUPS
   =================================================== */
.phone {
  position: relative;
  width: 320px;
  height: 660px;
  background: #0B0D17;
  border-radius: 44px;
  padding: 14px;
  box-sizing: border-box;
  box-shadow:
    0 4px 0 rgba(255,255,255,0.06) inset,
    0 30px 80px rgba(0,0,0,0.45),
    0 0 0 2px #1a1d2c;
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
}
.phone .notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #0B0D17;
  border-radius: 16px;
  z-index: 5;
}
.phone .statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.phone .statusbar .right-icons { display: flex; gap: 6px; align-items: center; }
.phone .statusbar svg { display: block; }
.phone.scale-sm { transform: scale(0.78); transform-origin: top center; }
.phone.scale-lg { transform: scale(1.15); transform-origin: top center; }

/* App-specific screen contents */
.user-screen { padding: 0 16px 12px; box-sizing: border-box; height: 100%; font-size: 11px; }

/* ===================================================
   FEATURE CARDS
   =================================================== */
.feature-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green);
}
.feature-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h4 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--navy);
}
.feature-card p {
  font-size: 18px;
  line-height: 1.45;
  color: var(--gray);
  margin: 0;
}

/* ---------- Step circle (numbered) ---------- */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 36px;
  font-family: var(--font-mono);
}
.step-num.gold { background: var(--gold); color: var(--navy); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
}
.pill.on-dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: var(--white); }
.pill.green { background: var(--green-50); color: var(--green-700); border-color: rgba(39,134,100,0.15); }
.pill.gold { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }

/* ---------- Check / X bullets ---------- */
.bullet-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: 24px;
}
.bullet-row .ic {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.bullet-row.check .ic { background: var(--green); color: var(--white); }
.bullet-row.xmark .ic { background: rgba(220,53,69,0.15); color: #e25d6d; }

/* ---------- Card chips ---------- */
.kpi-card {
  background: var(--white);
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
}
.kpi-card .v { font-size: 36px; font-weight: 700; color: var(--navy); line-height: 1; }
.kpi-card .l { font-size: 16px; color: var(--gray); margin-top: 6px; }

/* ===================================================
   MEMBERSHIP CARD MOCKUP
   =================================================== */
.member-card {
  width: 720px;
  height: 460px;
  border-radius: 32px;
  background: linear-gradient(135deg, #278664 0%, #0F5A44 100%);
  padding: 40px;
  box-sizing: border-box;
  color: var(--white);
  position: relative;
  box-shadow:
    0 60px 120px -30px rgba(15,90,68,0.6),
    0 30px 60px -20px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.15);
  overflow: hidden;
}
.member-card::after {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 100%; height: 200%;
  background: linear-gradient(70deg, transparent 35%, rgba(255,255,255,0.08) 50%, transparent 65%);
  pointer-events: none;
}
.member-card .mc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.member-card .mc-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.01em;
}
.member-card .mc-brand .sub { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.18em; opacity: 0.7; margin-top: 2px; text-transform: uppercase; font-family: var(--font-body); }
.member-card .mc-chip {
  width: 50px; height: 38px; border-radius: 7px;
  background: linear-gradient(135deg, #FED80B 0%, #C7A800 100%);
  position: relative;
}
.member-card .mc-chip::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 3px;
}
.member-card .mc-name { font-size: 22px; font-weight: 600; margin-top: 6px; }
.member-card .mc-id { font-family: var(--font-mono); font-size: 18px; color: var(--gold); margin-top: 4px; letter-spacing: 0.08em; }
.member-card .mc-qr {
  width: 140px; height: 140px;
  background: var(--white);
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
}
.member-card .mc-foot {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 40px;
  background: rgba(0,0,0,0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.member-card .mc-pts { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--gold); }

/* ---------- QR drawn with CSS grid ---------- */
.qr {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 1px;
  width: 100%; height: 100%;
}
.qr i { background: transparent; }
.qr i.on { background: #0B0D17; }

/* ---------- Barcode strip ---------- */
.barcode {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 40px;
  background: var(--white);
  border-radius: 6px;
  padding: 4px 8px;
}
.barcode i {
  display: block;
  height: 100%;
  background: #0B0D17;
}

/* ===================================================
   DASHBOARD MOCKUP
   =================================================== */
.laptop {
  width: 940px;
  position: relative;
  margin: 0 auto;
}
.laptop .screen {
  background: #0F1320;
  border-radius: 18px 18px 4px 4px;
  border: 8px solid #1a1d2c;
  border-bottom: 12px solid #1a1d2c;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55);
}
.laptop .base {
  height: 18px;
  background: linear-gradient(180deg, #c4c8d4 0%, #8a8e9c 100%);
  margin: 0 -22px;
  border-radius: 0 0 14px 14px;
  position: relative;
}
.laptop .base::before {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 120px; height: 6px; background: #5a5e6c;
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
}

/* ---------- Dashboard inner ---------- */
.dash {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: #0F1320;
  color: #c9cee0;
  font-size: 12px;
  min-height: 380px;
}
.dash .side {
  background: #161A2C;
  padding: 18px 14px;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.dash .side .brand { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.dash .side .brand-dot { width: 30px; height: 30px; border-radius: 8px; background: var(--green); display: grid; place-items: center; color: #fff; font-weight: 700; }
.dash .side .brand-text { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 14px; }
.dash .side .nav-item { padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.dash .side .nav-item.active { background: rgba(39,134,100,0.15); color: var(--green); font-weight: 600; }
.dash .main { padding: 22px 28px; }
.dash .topbar { display: flex; justify-content: space-between; margin-bottom: 18px; }
.dash .topbar h1 { font-size: 18px; font-weight: 700; color: #fff; margin: 0; }
.dash .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.dash .kpi { background: #161A2C; border-radius: 10px; padding: 14px; }
.dash .kpi .v { font-size: 22px; font-weight: 700; color: #fff; }
.dash .kpi .l { font-size: 10px; color: #7a809a; margin-top: 2px; }
.dash .kpi .d { font-size: 10px; color: #4ade80; margin-top: 4px; }
.dash .charts { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-bottom: 14px; }
.dash .panel { background: #161A2C; border-radius: 10px; padding: 14px; }
.dash .panel h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: #fff; }
.dash .table { background: #161A2C; border-radius: 10px; padding: 14px; }
.dash .table .row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.06); align-items: center; font-size: 11px; }
.dash .table .row:first-of-type { border-top: none; color: #7a809a; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.dash .badge-ok { background: rgba(39,134,100,0.25); color: #4ade80; border-radius: 4px; padding: 2px 8px; font-size: 10px; }
.dash .avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #278664, #FED80B); display: inline-block; vertical-align: middle; margin-right: 8px; }

/* ---------- Slide-specific overrides ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; flex: 1; }
.cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.cols-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin-top: 60px;
  padding: 0 20px;
}
.timeline .track {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  position: relative;
}
.timeline .filled {
  position: absolute; left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--gold) 100%);
  border-radius: 4px;
}
.timeline .phases {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 28px;
}
.timeline .phase {
  position: relative;
  padding: 20px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.timeline .phase .num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
}
.timeline .phase .name { font-size: 16px; font-weight: 600; margin-top: 8px; line-height: 1.25; }
.timeline .phase .wk { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 6px; }

/* ---------- Pricing ---------- */
.price-main {
  background: var(--white);
  border-radius: 28px;
  border: 2px solid var(--green);
  padding: 48px 56px;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(39,134,100,0.4);
}
.price-main .ribbon {
  position: absolute;
  top: -16px; left: 56px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* ---------- Decoration ---------- */
.deco-corner {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}
.deco-corner.gold-tl { top: -120px; left: -120px; background: var(--gold); opacity: 0.18; }
.deco-corner.green-br { bottom: -120px; right: -120px; background: var(--green); opacity: 0.3; }

/* ---------- Icon defaults ---------- */
svg.lucide, .ic-svg { stroke-width: 1.75; }
