/* ============================================================
   MRF Works AI — Broşür brend sistemi (tək mənbə)
   Mühasibatlıqda Süni İntellekt master proqramı
   A4 portret 794x1123px | EXPORT-SAFE (filter/blur YOXDUR)
   Üslub: TEAL (brend) + qızılı accent elementlər
   ============================================================ */

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

:root {
  /* Teal gradient stack (brend) — bir az parlaq */
  --teal-top: #0e8473;
  --teal-mid: #08544a;
  --teal-bot: #042b24;

  /* Teal accent */
  --accent: #5eead4;
  --accent-deep: #2dd4bf;
  --accent-line: #14b8a6;

  /* Qızılı accent (ikinci dərəcəli) */
  --gold: #f2a91b;
  --gold-deep: #d98e0a;

  /* Neytrallar (tünd fonda) */
  --white: #ffffff;
  --soft: #cdeee6;
  --soft-dim: #9fc9bf;

  /* Açıq tema */
  --paper: #ffffff;
  --mint: #e8f7f3;
  --ink: #06302b;
  --ink-soft: #2f5c54;
  --ink-line: #cde8e1;

  /* Ölçülər */
  --page-w: 794px;
  --page-h: 1123px;
  --pad: 58px;
  --radius: 16px;

  /* Foto overlay (export-safe rgba, blur deyil) */
  --photo-ov-1: rgba(10, 91, 81, 0.62);
  --photo-ov-2: rgba(4, 35, 29, 0.86);
}

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

html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #081512;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   EKRAN (preview)
   ============================================================ */
.book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 40px 0 90px;
}

/* ============================================================
   SƏHİFƏ — A4 portret
   ============================================================ */
.page {
  position: relative;
  width: var(--page-w);
  height: var(--page-h);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.page.dark {
  color: var(--white);
  background: linear-gradient(157deg, var(--teal-top) 0%, var(--teal-mid) 48%, var(--teal-bot) 100%);
}

.page.light {
  color: var(--ink);
  background: linear-gradient(165deg, #eef5f2 0%, #e4f1ec 52%, #d6ede4 100%);
}

.page-body {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
.p-head {
  position: absolute;
  top: 30px;
  left: var(--pad);
  right: var(--pad);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal-top) 0%, var(--teal-bot) 100%);
}
.brand-logo img { width: 28px; height: 28px; object-fit: contain; display: block; }
.light .brand-logo { box-shadow: 0 6px 16px rgba(6, 59, 52, 0.22); }

.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-weight: 800; font-size: 14.5px; letter-spacing: 0.2px; }
.brand-url { font-size: 10.5px; font-weight: 500; }
.dark .brand-url { color: var(--soft-dim); }
.light .brand-url { color: var(--ink-soft); }

.chip {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  padding: 7px 15px;
  border-radius: 999px;
}
.dark .chip {
  color: var(--accent);
  border: 1px solid rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.08);
}
.light .chip {
  color: var(--teal-mid);
  border: 1px solid #c6ddd4;
  background: #eaf1ee;
}

/* ============================================================
   FOOTER
   ============================================================ */
.p-foot {
  position: absolute;
  bottom: 28px;
  left: var(--pad);
  right: var(--pad);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.dark .p-foot { color: var(--soft-dim); }
.light .p-foot { color: var(--ink-soft); }

.p-foot .rule { flex: 1; height: 1px; margin: 0 16px; }
.dark .p-foot .rule { background: rgba(255, 255, 255, 0.16); }
.light .p-foot .rule { background: var(--ink-line); }

.p-num { font-variant-numeric: tabular-nums; }

/* ============================================================
   TİPOQRAFİYA
   ============================================================ */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.dark .eyebrow { color: var(--gold); }
.light .eyebrow { color: var(--teal-mid); }

.h1 { font-size: 50px; font-weight: 900; line-height: 1.05; letter-spacing: -1px; text-transform: uppercase; }
.h2 { font-size: 35px; font-weight: 900; line-height: 1.12; letter-spacing: -0.3px; text-transform: uppercase; }
.h3 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.lead { font-size: 16px; line-height: 1.82; }
.dark .lead { color: var(--soft); }
.light .lead { color: var(--ink-soft); }

.head-bar {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%);
}
.dark .head-bar { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%); }

.accent-1 { color: var(--accent-deep); }
.dark .accent-1 { color: var(--accent); }
.accent-gold { color: var(--gold); }

/* ============================================================
   FOTO SLOT
   ============================================================ */
.photo-slot {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-mid) 0%, var(--teal-bot) 100%);
  background-size: cover;
  background-position: center;
}

.photo-slot.clip-tl { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 78%); }
.photo-slot.clip-tr { clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.photo-slot.clip-bl { clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%); }
.photo-slot.clip-br { clip-path: polygon(0 0, 100% 22%, 100% 100%, 0 100%); }
.photo-slot.clip-diag { clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }

.photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(150deg, var(--photo-ov-1) 0%, var(--photo-ov-2) 100%);
}

.photo-edge { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.photo-ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(205, 238, 230, 0.5);
}
.photo-ph .mark { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.photo-ph .txt { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.photo-slot.has-photo .photo-ph { display: none; }

.photo-content { position: absolute; z-index: 4; color: var(--white); }

/* ============================================================
   KARTLAR / GRID
   ============================================================ */
.card { border-radius: var(--radius); padding: 22px; }
.dark .card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.light .card {
  background: var(--mint);
  border: 1px solid var(--ink-line);
}

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

.meta-card { border-radius: 13px; padding: 16px 18px; }
.dark .meta-card {
  background: rgba(4, 35, 29, 0.82);
  border: 1px solid rgba(94, 234, 212, 0.32);
  box-shadow: 0 12px 26px rgba(4,35,29,0.3);
}
.light .meta-card { background: #eaf1ee; border: 1px solid #c6ddd4; }
.meta-card .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.dark .meta-card .k { color: var(--gold); }
.light .meta-card .k { color: var(--accent-deep); }
.meta-card .v { font-size: 18px; font-weight: 800; margin-top: 3px; }
.dark .meta-card .v { color: var(--white); }
.light .meta-card .v { color: var(--ink); }

/* ============================================================
   QIZILI ROMB İKON
   ============================================================ */
.diamond {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 11px;
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  box-shadow: 0 8px 18px rgba(217, 142, 10, 0.28);
}
.diamond .gi { transform: rotate(-45deg); color: #fff; font-size: 22px; line-height: 1; }

.hl-item { display: flex; align-items: flex-start; gap: 18px; }
.hl-item .hl-t { font-size: 15px; font-weight: 800; line-height: 1.25; }
.hl-item .hl-d { font-size: 12.5px; margin-top: 4px; }
.dark .hl-item .hl-d { color: var(--soft-dim); }
.light .hl-item .hl-d { color: var(--ink-soft); }

/* ============================================================
   ADDIM CHEVRON
   ============================================================ */
.step {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15px;
  font-weight: 900;
  font-size: 24px;
  color: var(--teal-bot);
  letter-spacing: 0.5px;
}
.step.teal { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); color: var(--teal-bot); }
.step.gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); color: #fff; }

.flow { display: flex; align-items: center; gap: 10px; }
.flow .arrow { font-size: 22px; }
.dark .flow .arrow { color: var(--accent); }
.light .flow .arrow { color: var(--accent-deep); }

/* ============================================================
   MODUL AĞACI
   ============================================================ */
.tree { list-style: none; }
.tree li {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 14.5px;
  font-weight: 600;
}
.tree li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
}
.dark .tree li::before { background: var(--gold); }
.light .tree li::before { background: var(--accent-deep); }
.dark .tree li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.light .tree li { border-bottom: 1px solid var(--ink-line); }
.tree li:last-child { border-bottom: none; }

/* ============================================================
   SKELETON köməkçi
   ============================================================ */
.slot-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.dark .slot-note { color: var(--accent); background: rgba(94, 234, 212, 0.1); }
.light .slot-note { color: var(--accent-deep); background: rgba(45, 212, 191, 0.12); }

/* CTA düymə */
.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 142, 10, 0.3);
}

/* ============================================================
   VİZUAL EFFEKTLƏR / DEKOR (export-safe: gradient + SVG + clip-path)
   ============================================================ */

/* Nöqtə-grid fonu */
.deco-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, currentColor 1.3px, transparent 1.6px);
  background-size: 24px 24px;
}
.dark .deco-dots { color: rgba(94, 234, 212, 0.10); }
.light .deco-dots { color: rgba(13, 148, 136, 0.10); }

/* Radial işıq ləkələri (glow — blur deyil, gradient) */
.glow {
  position: absolute;
  z-index: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
}
.dark .glow { background: radial-gradient(circle, rgba(94,234,212,0.20) 0%, rgba(94,234,212,0) 68%); }
.light .glow { background: radial-gradient(circle, rgba(45,212,191,0.22) 0%, rgba(45,212,191,0) 68%); }
.glow-gold { background: radial-gradient(circle, rgba(242,169,27,0.22) 0%, rgba(242,169,27,0) 68%) !important; }
.glow-tr { top: -160px; right: -150px; }
.glow-bl { bottom: -170px; left: -160px; }

/* Şəbəkə-node dekoru (MRF logo motivi) */
.deco-net { position: absolute; z-index: 0; pointer-events: none; opacity: 0.5; }

/* Nəhəng watermark rəqəm / hərf */
.watermark {
  position: absolute;
  z-index: 0;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -4px;
  pointer-events: none;
  user-select: none;
}
.dark .watermark { color: rgba(255, 255, 255, 0.05); }
.light .watermark { color: rgba(6, 48, 42, 0.05); }

/* Künc accent üçbucağı */
.corner-tri {
  position: absolute;
  z-index: 1;
  width: 200px;
  height: 200px;
  pointer-events: none;
}
.corner-tri.tr {
  top: 0; right: 0;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  opacity: 0.92;
}
.corner-tri.bl {
  bottom: 0; left: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
}

/* ============================================================
   YAN FOTO PANELİ (vertikal, diaqonal daxili kənar)
   ============================================================ */
.side-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 38%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.side-photo.left {
  right: auto;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}
.side-photo .photo-overlay {
  background: linear-gradient(135deg, rgba(10,91,81,0.40) 0%, rgba(4,35,29,0.70) 100%);
}

/* ============================================================
   TAM-EKRAN FOTO SƏHİFƏ (fon variativliyi)
   ============================================================ */
.page.dark.photo { background: var(--teal-bot); }
.bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(10,91,81,0.78) 0%, rgba(6,48,42,0.86) 45%, rgba(4,35,29,0.95) 100%);
}

/* Açıq-mint variant (təmiz ağ deyil — fon variativliyi) */
.page.mint { background: linear-gradient(160deg, #e6f3ee 0%, #d2ebe2 100%); }

/* Güclü açıq fon dekoru — blob, ring, band (export-safe) */
.blob { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.blob-teal { background: radial-gradient(circle, rgba(45,212,191,0.24) 0%, rgba(45,212,191,0) 70%); }
.blob-gold { background: radial-gradient(circle, rgba(242,169,27,0.20) 0%, rgba(242,169,27,0) 70%); }
.ring-deco { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; border: 2px solid rgba(45,212,191,0.20); }
.ring-deco.gold { border-color: rgba(242,169,27,0.22); }
.band {
  position: absolute; z-index: 0; left: -10%; right: -10%; height: 230px; pointer-events: none;
  background: linear-gradient(135deg, rgba(45,212,191,0.14) 0%, rgba(45,212,191,0) 70%);
  transform: skewY(-7deg);
}

/* Statistika rəqəmi */
.stat .num { font-size: 40px; font-weight: 900; line-height: 1; }
.dark .stat .num { color: var(--accent); }
.light .stat .num { color: var(--accent-deep); }
.stat .lbl { font-size: 12px; font-weight: 600; margin-top: 6px; }
.dark .stat .lbl { color: var(--soft-dim); }
.light .stat .lbl { color: var(--ink-soft); }

/* ============================================================
   3D SFERA (orb) — radial gradient + işıq (blur deyil)
   ============================================================ */
.orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.orb-teal {
  background: radial-gradient(circle at 34% 28%, #aef6e8 0%, #5eead4 26%, #14b8a6 55%, #0a5b51 100%);
  box-shadow: 0 30px 60px rgba(4,35,29,0.45),
              inset -10px -14px 34px rgba(2,20,16,0.5),
              inset 10px 12px 26px rgba(255,255,255,0.28);
}
.orb-gold {
  background: radial-gradient(circle at 34% 28%, #ffe6a8 0%, #f2a91b 38%, #c9870c 70%, #8f5e06 100%);
  box-shadow: 0 30px 60px rgba(80,52,4,0.4),
              inset -10px -14px 34px rgba(60,38,2,0.5),
              inset 10px 12px 26px rgba(255,255,255,0.35);
}
.orb-ring {
  background: transparent;
  border: 2px solid rgba(94,234,212,0.3);
  box-shadow: inset 0 0 40px rgba(94,234,212,0.12);
}

/* ============================================================
   3D / GLASS VIZ KART (üzən diaqram paneli)
   ============================================================ */
.viz-card {
  position: absolute;
  z-index: 5;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.2);
}
.viz-card.glass-dark {
  background: linear-gradient(158deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
}
.viz-card.glass-light {
  background: linear-gradient(158deg, #ffffff 0%, #f3fbf9 100%);
  border: 1px solid var(--ink-line);
  color: var(--ink);
  box-shadow: 0 26px 54px rgba(6,48,42,0.18);
}
.viz-tilt { transform: perspective(900px) rotateY(-13deg) rotateX(5deg); }
.viz-tilt-r { transform: perspective(900px) rotateY(13deg) rotateX(5deg); }
.viz-card .vh {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  opacity: 0.8; margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}

/* DONUT (conic-gradient — export-safe) */
.donut {
  width: 92px; height: 92px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--accent-deep) 0 60%, var(--gold) 60% 82%, rgba(255,255,255,0.16) 82% 100%);
}
.donut::after {
  content: ""; position: absolute; inset: 15px; border-radius: 50%;
  background: var(--teal-bot);
}
.glass-light .donut::after { background: #fff; }
.donut .dc {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 20px; font-weight: 900; z-index: 2;
}

/* SVG BAR sütunları üçün rəng */
.bars rect { rx: 2; }

/* İKON dairəsi (pill) */
.ic {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  display: grid; place-items: center;
}
.dark .ic { background: rgba(94,234,212,0.12); border: 1px solid rgba(94,234,212,0.3); color: var(--accent); }
.light .ic { background: var(--mint); border: 1px solid var(--ink-line); color: var(--accent-deep); }
.ic svg { width: 22px; height: 22px; }
.diamond .gi svg { width: 22px; height: 22px; stroke: #fff; }

/* 3D STAT KART (şüşə) */
.stat-card {
  border-radius: 16px;
  padding: 18px 16px;
  background: linear-gradient(158deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 20px 44px rgba(0,0,0,0.32);
}
.stat-card .si { color: var(--accent); margin-bottom: 10px; }
.stat-card .si svg { width: 26px; height: 26px; }
.stat-card .sn { font-size: 30px; font-weight: 900; line-height: 1; color: #fff; }
.stat-card .sl { font-size: 12px; font-weight: 600; margin-top: 6px; color: var(--soft-dim); }

/* KARTLARA 3D dərinlik */
.dark .card { box-shadow: 0 18px 38px rgba(0,0,0,0.26); border-top: 1px solid rgba(255,255,255,0.16); }
.light .card { box-shadow: 0 16px 34px rgba(6,48,42,0.09); }

/* CHEVRON addımına 3D */
.step { box-shadow: 0 14px 26px rgba(4,35,29,0.28); }
.step.teal { box-shadow: 0 14px 26px rgba(20,184,166,0.32); }
.step.gold { box-shadow: 0 14px 26px rgba(217,142,10,0.32); }

/* ============================================================
   MODUL KART (ikon + başlıq + təsvir) — kurs səhifələri
   ============================================================ */
.mod {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 14px 16px;
}
.dark .mod { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.16); }
.light .mod { background: #fff; border: 1px solid var(--ink-line); box-shadow: 0 10px 24px rgba(6,48,42,0.06); }
.mod .mn { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.dark .mod .mn { color: var(--accent); }
.light .mod .mn { color: var(--accent-deep); }
.mod .mt { font-size: 15.5px; font-weight: 800; line-height: 1.25; margin-top: 2px; }
.mod .md { font-size: 13px; margin-top: 5px; line-height: 1.55; }
.dark .mod .md { color: var(--soft-dim); }
.light .mod .md { color: var(--ink-soft); }

/* MODUL SİYAHISI (8 modul, 2 sütun) */
.mlist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.mlist { gap: 0 34px; }
.mli { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; }
.dark .mli { border-bottom: 1px solid rgba(255,255,255,0.09); }
.light .mli { border-bottom: 1px solid var(--ink-line); }
.mli .nn {
  font-weight: 800; font-size: 13px; min-width: 34px; height: 26px; padding: 0 2px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 7px;
  font-variant-numeric: tabular-nums;
}
.dark .mli .nn { color: var(--teal-bot); background: var(--accent); }
.light .mli .nn { color: #fff; background: linear-gradient(135deg, var(--teal-top), var(--teal-mid)); }
.mli .tt { font-size: 14px; font-weight: 600; line-height: 1.4; }
.light .mli .tt { color: var(--ink); }

/* Çərçivəli panel (açıq səhifədə modul siyahısı üçün) */
.panel {
  position: relative;
  border-radius: 16px;
  padding: 8px 24px;
  background: #eaf1ee;
  border: 1px solid #c6ddd4;
  box-shadow: 0 14px 30px rgba(6,48,42,0.08);
}
.panel.framed { padding: 18px 24px; }
.dark .panel { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.panel.mlist .mli:nth-last-child(1), .panel.mlist .mli:nth-last-child(2) { border-bottom: none; }

/* ALT-KURS KARTI (Generativ AI) */
.subcard { border-radius: 14px; padding: 16px 18px; }
.dark .subcard { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.16); }
.light .subcard { background: #fff; border: 1px solid var(--ink-line); box-shadow: 0 10px 24px rgba(6,48,42,0.06); }
.subcard .sh { display: flex; gap: 13px; align-items: center; }
.subcard .scn { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.dark .subcard .scn { color: var(--accent); }
.light .subcard .scn { color: var(--accent-deep); }
.subcard .sct { font-size: 15px; font-weight: 800; line-height: 1.2; margin-top: 1px; }
.subcard .slist { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.subcard .slist li {
  font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 999px;
}

/* Alət teqləri (Python, Pandas, scikit-learn ...) */
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tags .tg {
  font-size: 12.5px; font-weight: 700; padding: 7px 15px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.dark .tags .tg { background: rgba(94,234,212,0.12); border: 1px solid rgba(94,234,212,0.3); color: var(--accent); }
.light .tags .tg { background: #eaf1ee; border: 1px solid #c6ddd4; color: var(--teal-mid); }
.tags .tg::before { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--gold); }

/* Tam-en foto banner (sağ-sol bölmədən fərqli format) */
.photo-band {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center 35%;
  box-shadow: 0 18px 40px rgba(6,48,42,0.16);
  border: 1px solid var(--ink-line);
}
.photo-band .ov {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(8,84,74,0.62) 0%, rgba(8,84,74,0.18) 55%, rgba(4,43,36,0.12) 100%);
}
.photo-band .cap { position: absolute; left: 22px; bottom: 18px; z-index: 2; color: #fff; }
.photo-band .cap .clab {
  font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
}
.photo-band .cap .ctxt { font-size: 16px; font-weight: 800; margin-top: 4px; max-width: 360px; line-height: 1.25; }

/* Modern fakt kartı */
.fact {
  position: relative; overflow: hidden;
  border-radius: 14px; padding: 18px 18px 18px 22px;
  background: #fff; border: 1px solid var(--ink-line);
  box-shadow: 0 12px 26px rgba(6,48,42,0.07);
}
.fact .fn { font-size: 27px; font-weight: 900; color: var(--ink); line-height: 1; }
.fact .fl { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-top: 6px; }
.fact .fi { position: absolute; top: 14px; right: 14px; color: var(--accent-deep); opacity: 0.5; }
.fact .fi svg { width: 22px; height: 22px; }

/* Tünd kart (açıq səhifədə kontrastlı) */
.card-dark {
  border-radius: 16px; padding: 20px;
  background: linear-gradient(157deg, var(--teal-top) 0%, var(--teal-mid) 55%, var(--teal-bot) 100%);
  color: #fff;
  box-shadow: 0 20px 40px rgba(4,35,29,0.34);
  border: 1px solid rgba(255,255,255,0.16);
}
.card-dark .ic { background: rgba(94,234,212,0.16); border: 1px solid rgba(94,234,212,0.4); color: var(--accent); }
.card-dark .pl-label { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.card-dark .pl-title { font-size: 17px; font-weight: 800; color: #fff; margin-top: 5px; }
.card-dark .pl-txt { font-size: 13px; color: var(--soft); margin-top: 7px; line-height: 1.55; }

/* 3D tilt kart (mockup effekti) */
.tilt3d { transform: perspective(1200px) rotateY(7deg); transform-origin: left center; box-shadow: -12px 20px 44px rgba(0,0,0,0.4); }

/* Şəkil kartı (kurs səhifəsində kontrast üçün) */
.img-card { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 42px rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.12); background-size: cover; background-position: center; }
.img-card .iov { position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(4,43,36,0.32) 0%, rgba(4,43,36,0.82) 100%); }
.img-card .icap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.img-card .icap .il { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.img-card .icap .it { font-size: 15px; font-weight: 800; color: #fff; margin-top: 4px; line-height: 1.25; }

/* Qeydiyyat banneri (teal) */
.reg-banner {
  display: flex; align-items: center; gap: 18px;
  border-radius: 16px; padding: 20px 24px;
  background: linear-gradient(110deg, var(--teal-top) 0%, var(--teal-mid) 60%, var(--teal-bot) 100%);
  color: #fff; box-shadow: 0 18px 38px rgba(6,48,42,0.28);
  border-top: 1px solid rgba(255,255,255,0.16);
}
.reg-banner .rb-ic {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(94,234,212,0.16); border: 1px solid rgba(94,234,212,0.4); color: var(--accent);
}
.reg-banner .rb-ic svg { width: 26px; height: 26px; }
.reg-banner .rb-t { font-size: 17px; font-weight: 800; }
.reg-banner .rb-d { font-size: 12.5px; color: var(--soft); margin-top: 3px; }
.reg-banner .rb-pill {
  margin-left: auto; flex: 0 0 auto;
  font-size: 12.5px; font-weight: 800; padding: 11px 18px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff;
  box-shadow: 0 10px 22px rgba(217,142,10,0.3);
}

/* Auditoriya siyahısı (qutusuz, kart deyil) */
.audlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.auditem .at2 { font-size: 17.5px; font-weight: 800; color: var(--ink); margin-top: 14px; }
.auditem .ad2 { font-size: 14px; color: var(--ink-soft); margin-top: 7px; line-height: 1.55; }

/* Statistika zolağı (qutusuz) */
.statstrip { display: flex; align-items: center; }
.statstrip .ss { flex: 1; }
.statstrip .ssn { font-size: 38px; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -0.5px; }
.statstrip .ssl { font-size: 14px; color: var(--ink-soft); margin-top: 8px; font-weight: 600; }
.statstrip .ssdiv { width: 3px; height: 58px; border-radius: 3px; background: var(--teal-mid); margin: 0 24px; }

/* Bölmə etiketi (kiçik başlıq) */
.sec-label {
  font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.dark .sec-label { color: var(--soft-dim); }
.light .sec-label { color: var(--ink-soft); }
.dark .subcard .slist li { background: rgba(94,234,212,0.1); color: var(--soft); }
.light .subcard .slist li { background: var(--mint); color: var(--ink-soft); }

/* STAT pill (95% proqnoz, Python+Pandas, və s.) */
.pill-stat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 12px;
}
.dark .pill-stat { background: rgba(94,234,212,0.12); border: 1px solid rgba(94,234,212,0.3); }
.light .pill-stat { background: var(--mint); border: 1px solid var(--ink-line); }
.pill-stat .pn { font-size: 24px; font-weight: 900; line-height: 1; }
.dark .pill-stat .pn { color: var(--accent); }
.light .pill-stat .pn { color: var(--accent-deep); }
.pill-stat .pl { font-size: 11.5px; font-weight: 600; }
.dark .pill-stat .pl { color: var(--soft); }
.light .pill-stat .pl { color: var(--ink-soft); }

/* ============================================================
   CALLOUT — "Bu kursdan sonra"
   ============================================================ */
.callout {
  border-radius: 12px;
  padding: 14px 18px;
}
.dark .callout { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); }
.light .callout { background: #eaf1ee; border: 1px solid #c6ddd4; box-shadow: 0 12px 26px rgba(6,48,42,0.07); }
.callout .ck {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.dark .callout .ck { color: var(--accent); }
.light .callout .ck { color: var(--teal-mid); }
.callout .cv { font-size: 14.5px; margin-top: 6px; line-height: 1.6; }
.dark .callout .cv { color: var(--soft); }
.light .callout .cv { color: var(--ink-soft); }

/* ============================================================
   KURS BLOKU (nömrəli istiqamət)
   ============================================================ */
.cblock { display: flex; gap: 16px; align-items: flex-start; }
.cblock .cn {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
}
.dark .cblock .cn { background: rgba(94, 234, 212, 0.14); color: var(--accent); border: 1px solid rgba(94,234,212,0.3); }
.light .cblock .cn { background: var(--mint); color: var(--accent-deep); border: 1px solid var(--ink-line); }
.cblock .ct { font-size: 15px; font-weight: 800; }
.cblock .cd { font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.dark .cblock .cd { color: var(--soft-dim); }
.light .cblock .cd { color: var(--ink-soft); }

/* ============================================================
   QIYMƏT CƏDVƏLİ
   ============================================================ */
.ptable { width: 100%; border-collapse: collapse; margin-top: 22px; overflow: hidden; border-radius: 14px; }
.ptable th, .ptable td { text-align: left; padding: 13px 16px; font-size: 13px; }
.ptable thead th {
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 11px;
  background: linear-gradient(135deg, var(--teal-mid) 0%, var(--teal-bot) 100%);
  color: var(--white);
}
.ptable thead th:nth-child(n+2) { text-align: center; }
.ptable tbody td { border-bottom: 1px solid var(--ink-line); }
.ptable tbody td:nth-child(n+2) { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ptable tbody td:first-child { font-weight: 600; color: var(--ink); }
.ptable tbody tr:nth-child(odd) { background: var(--mint); }
.ptable tbody tr.master td { background: linear-gradient(135deg, rgba(242,169,27,0.16), rgba(242,169,27,0.08)); border-bottom: 1px solid rgba(242,169,27,0.4); }
.ptable tbody tr.master td:first-child { font-weight: 800; color: var(--ink); }
.ptable .tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  vertical-align: middle;
}

/* ============================================================
   FLIPBOOK NAVİQASİYA
   ============================================================ */
.nav {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(6, 48, 42, 0.94);
  border: 1px solid rgba(94, 234, 212, 0.3);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.nav button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.45);
  background: transparent;
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.nav button:hover { background: rgba(94, 234, 212, 0.18); }
.nav button:disabled { opacity: 0.3; cursor: default; }
.nav .counter {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  min-width: 62px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

body.flip-mode .book { gap: 0; padding: 0; }
body.flip-mode .page { display: none; }
body.flip-mode .page.is-active { display: block; }
body.flip-mode { min-height: 100vh; display: grid; place-items: center; }

/* ============================================================
   GİRİŞ-KODU EKRANI (qoruma) — yalnız ekranda
   ============================================================ */
.gate {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(157deg, var(--teal-top) 0%, var(--teal-mid) 50%, var(--teal-bot) 100%);
  display: grid; place-items: center;
}
.gate-card {
  width: 370px; max-width: 88vw; text-align: center; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(160,240,225,0.25);
  border-radius: 18px; padding: 36px 32px; box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.gate-card .glogo {
  width: 56px; height: 56px; border-radius: 15px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-top), var(--teal-bot));
  border: 1px solid rgba(160,240,225,0.3);
}
.gate-card .glogo img { width: 34px; height: 34px; }
.gate-card h3 { font-size: 19px; font-weight: 800; letter-spacing: 0.2px; }
.gate-card p { font-size: 13px; color: var(--soft); margin-top: 9px; line-height: 1.5; }
.gate-input {
  width: 100%; margin-top: 20px; padding: 13px 16px; border-radius: 11px;
  border: 1px solid rgba(160,240,225,0.3); background: rgba(4,35,29,0.5);
  color: #fff; font-size: 16px; text-align: center; letter-spacing: 3px; outline: none;
}
.gate-input:focus { border-color: var(--accent); }
.gate-btn {
  width: 100%; margin-top: 12px; padding: 13px; border-radius: 11px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--teal-bot); font-weight: 800; font-size: 15px; cursor: pointer;
}
.gate-err { color: #ffd2d2; font-size: 12.5px; margin-top: 11px; min-height: 16px; font-weight: 600; }
body.locked { overflow: hidden; }
body.locked .book, body.locked .nav { display: none !important; }

/* ============================================================
   RESPONSIVE — mobil / tablet
   Sabit A4 səhifəni (794×1123) ekran eninə proporsional sığdırır.
   --page-scale dəyərini flip.js ekran eninə görə hesablayır.
   ============================================================ */
:root { --page-scale: 1; }

@media (max-width: 834px) {
  .book {
    padding: 14px 0 86px;
    gap: 14px;
  }
  /* Bütün səhifəni proporsional kiçilt — daxili dizayn pozulmur.
     zoom layout qutusunu da kiçildir, ona görə üfüqi sürüşmə olmur. */
  .page { zoom: var(--page-scale); }

  /* Naviqasiya panelini balaca ekrana yığ */
  .nav { bottom: 14px; gap: 10px; padding: 8px 12px; }
  .nav button { width: 34px; height: 34px; font-size: 16px; }
  .nav .counter { min-width: 54px; font-size: 12px; }
}

/* ============================================================
   PRINT / PDF
   ============================================================ */
@page { size: A4 portrait; margin: 0; }

@media print {
  body { background: #081512; }
  .book { display: block; gap: 0; padding: 0; }
  .nav { display: none !important; }
  .page {
    display: block !important;
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }
  .page:last-child { page-break-after: auto; }
}
