/* ==========================================================================
   Itqan Modern — a contemporary layer on top of itqan-ds.css
   (in the spirit of the institute's home page: photo hero, floating quick
   cards, glass, generous radii, gradients) with one theme per site:
     <html data-theme="foundation">  emerald & gold
     <html data-theme="centers">     teal & sand
   ========================================================================== */

[data-theme="foundation"] {
  --b-950: #061c14; --b-900: #0a2b20; --b-800: #0e3b2c; --b-700: #145238; --b-600: #1b6a48; --b-100: #e6f2eb;
  --a-700: #8f6a24; --a-600: #b5872f; --a-500: #d3a54a; --a-200: #efdcb2; --a-100: #fbf4e4;
  --cream: #fcfaf3;
}
[data-theme="centers"] {
  --b-950: #032228; --b-900: #05343c; --b-800: #094954; --b-700: #0d5f6b; --b-600: #127a86; --b-100: #e1f1f1;
  --a-700: #9a6a17; --a-600: #c2892c; --a-500: #e0ad4f; --a-200: #f3dfb3; --a-100: #fcf3e0;
  --cream: #faf8f2;
}
[data-theme="heritage"] {
  --b-950: #1c1209; --b-900: #2b1c0e; --b-800: #3d2914; --b-700: #56391c; --b-600: #745026; --b-100: #f3ebde;
  --a-700: #94691f; --a-600: #b8862e; --a-500: #d6a64a; --a-200: #efdab0; --a-100: #fbf3e2;
  --cream: #fbf7ef;
}
[data-theme="finance"] {
  --b-950: #081325; --b-900: #0d1d3a; --b-800: #142b55; --b-700: #1c3b72; --b-600: #264f96; --b-100: #e7edf8;
  --a-700: #8f6a24; --a-600: #b5872f; --a-500: #d3a54a; --a-200: #efdcb2; --a-100: #fbf4e4;
  --cream: #f7f8fb;
}
[data-theme] {
  --green-950: var(--b-950); --green-900: var(--b-900); --green-800: var(--b-800); --green-700: var(--b-700); --green-100: var(--b-100);
  --gold-700: var(--a-700); --gold-600: var(--a-600); --gold-500: var(--a-500); --gold-200: var(--a-200); --gold-100: var(--a-100);
  --ivory: var(--cream);
  --radius: 20px; --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow: 0 22px 44px -22px rgba(6, 28, 20, .35);
  --shadow-lg: 0 34px 70px -30px rgba(6, 28, 20, .45);
  --header-h: 78px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M48 6l12 30 30 12-30 12-12 30-12-30L6 48l30-12z'/%3E%3Cpath d='M48 26l7 15 15 7-15 7-7 15-7-15-15-7 15-7z'/%3E%3C/g%3E%3C/svg%3E");
}
[data-theme] body { background: var(--cream); }

/* ---------- buttons: pills with depth ---------- */
[data-theme] .btn { border-radius: 999px; padding: 14px 26px; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; }
[data-theme] .btn:hover { transform: translateY(-2px); }
[data-theme] .btn--primary { background: linear-gradient(135deg, var(--b-700), var(--b-900)); box-shadow: 0 10px 22px -12px var(--b-900); }
[data-theme] .btn--primary:hover { background: linear-gradient(135deg, var(--b-600), var(--b-800)); }
[data-theme] .btn--gold { background: linear-gradient(135deg, var(--a-500), var(--a-600)); color: #1d1404; box-shadow: 0 12px 24px -12px var(--a-600); }
[data-theme] .btn--gold:hover { color: #1d1404; }
[data-theme] .btn--outline { border-color: var(--line-strong); background: #fff; }
[data-theme] .btn--ghost-light { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.35); }
[data-theme] .btn--sm { padding: 10px 18px; }
[data-theme] .nav a.btn--primary, [data-theme] .nav a.btn--primary:hover { background: linear-gradient(135deg, var(--b-700), var(--b-900)); }

/* ---------- top bar + glass header ---------- */
[data-theme] .topbar { background: linear-gradient(90deg, var(--b-950), var(--b-900)); }
[data-theme] .site-header { background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(15,23,42,.06); box-shadow: 0 8px 30px -22px rgba(6,28,20,.5); }
[data-theme] .brand img { width: 52px; height: 52px; border-radius: 14px; background: #fff; padding: 3px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.4); }
[data-theme] .nav a, [data-theme] .nav__drop > button { border-radius: 999px; padding: 9px 15px; }
[data-theme] .nav a.is-active { background: var(--b-100); color: var(--b-800); }
[data-theme] .nav a.is-active::after { display: none; }
[data-theme] .nav__menu { border-radius: 18px; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid rgba(15,23,42,.06); }
[data-theme] .nav__menu a { border-radius: 12px; }

/* ---------- hero with photo slider ---------- */
.mhero { position: relative; min-height: min(86vh, 720px); display: grid; align-items: center; color: #fff; overflow: hidden; isolation: isolate; background: var(--b-900); }
.mhero__slides { position: absolute; inset: 0; z-index: -2; }
.mhero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease; }
.mhero__slide.is-active { opacity: 1; transform: scale(1); }
.mhero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,28,20,.55) 0%, rgba(6,28,20,.35) 40%, rgba(6,28,20,.88) 100%), radial-gradient(1200px 500px at 50% 35%, rgba(6,28,20,.1), rgba(6,28,20,.55)); }
[data-theme="centers"] .mhero::before { background: linear-gradient(180deg, rgba(3,34,40,.6) 0%, rgba(3,34,40,.4) 40%, rgba(3,34,40,.92) 100%); }
.mhero__inner { text-align: center; max-width: 860px; margin-inline: auto; padding: 120px 20px 180px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-size: .86rem; font-weight: 600; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); color: #fff; }
.chip i { color: var(--a-500); }
.mhero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin: 22px 0 16px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.mhero h1 .accent { color: var(--a-500); }
.mhero__lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.88); max-width: 720px; margin: 0 auto 34px; }
.mhero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mhero__dots { position: absolute; bottom: 132px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.mhero__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; padding: 0; }
.mhero__dots button.is-active { width: 30px; background: var(--a-500); }

/* pattern hero (no photos) */
.mhero--pattern { background: radial-gradient(900px 500px at 85% 10%, rgba(224,173,79,.22), transparent 60%), radial-gradient(800px 600px at 10% 90%, rgba(18,122,134,.5), transparent 60%), linear-gradient(135deg, var(--b-950), var(--b-800)); }
.mhero--pattern::before { background: var(--pattern); opacity: 1; }
.mhero--split .mhero__inner { text-align: start; max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-bottom: 170px; }
.mhero--split .mhero__lead { margin-inline: 0; }
.mhero--split .mhero__actions { justify-content: flex-start; }

/* glass showcase used in the centers hero */
.showcase { position: relative; display: grid; gap: 14px; }
.glass { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; padding: 20px 22px; color: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.showcase .glass { display: flex; align-items: center; gap: 16px; }
.showcase .glass:nth-child(2) { margin-inline-start: 46px; }
.showcase .glass:nth-child(3) { margin-inline-start: 14px; }
.showcase__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; background: linear-gradient(135deg, var(--a-500), var(--a-600)); color: #1d1404; }
.showcase strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.showcase small { color: rgba(255,255,255,.75); }

/* ---------- floating quick cards (overlap the hero) ---------- */
.quick { position: relative; z-index: 5; margin-top: -110px; }
.quick__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.quick__card { background: #fff; border-radius: 22px; padding: 20px 14px 18px; text-align: center; color: var(--ink); box-shadow: var(--shadow); border: 1px solid rgba(15,23,42,.05); transition: transform .25s, box-shadow .25s; display: grid; justify-items: center; gap: 6px; }
.quick__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.quick__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--q, var(--b-600)), var(--b-900)); box-shadow: 0 12px 22px -12px var(--q, var(--b-700)); margin-bottom: 6px; }
.quick__card strong { font-size: .97rem; color: var(--b-900); }
.quick__card small { font-size: .78rem; color: var(--muted); }
.quick__card--featured { background: linear-gradient(160deg, var(--b-800), var(--b-950)); color: #fff; }
.quick__card--featured strong { color: #fff; }
.quick__card--featured small { color: rgba(255,255,255,.7); }
.quick__card--featured .quick__icon { background: linear-gradient(135deg, var(--a-500), var(--a-600)); color: #1d1404; }

/* ---------- section titles ---------- */
.mtitle { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.mtitle .chip { background: var(--a-100); border-color: var(--a-200); color: var(--a-700); backdrop-filter: none; }
.mtitle h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 14px 0 10px; }
.mtitle h2 .accent { color: var(--a-600); }
.mtitle p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.mtitle--start { text-align: start; margin-inline: 0; }

/* ---------- entity cards (each with its own gradient) ---------- */
.ents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ent { position: relative; overflow: hidden; border-radius: 26px; padding: 30px 30px 28px; min-height: 260px; color: #fff; display: flex; flex-direction: column; gap: 12px; isolation: isolate;
  background: linear-gradient(140deg, var(--e1, var(--b-700)) 0%, var(--e2, var(--b-950)) 100%); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.ent::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .9; z-index: -1; }
.ent::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; inset-inline-end: -80px; top: -90px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); z-index: -1; }
a.ent:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.ent__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ent__icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-size: 1.55rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.ent h3 { color: #fff; font-size: 1.6rem; margin: 6px 0 0; }
.ent p { color: rgba(255,255,255,.82); margin: 0; flex: 1; }
.ent__go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--e2, var(--b-900)); width: fit-content; transition: gap .2s; }
a.ent:hover .ent__go { gap: 14px; }
.ent__domain { font-size: .8rem; color: rgba(255,255,255,.65); direction: ltr; }
.ent__soon { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px dashed rgba(255,255,255,.5); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.ent--soon { filter: saturate(.85); }

/* ---------- about split with framed photo ---------- */
.msplit { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.photo-frame { position: relative; }
.photo-frame img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.photo-frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 28px; border: 2px solid var(--a-500); z-index: 0; }
[dir="rtl"] .photo-frame::before { inset: 22px 22px -22px -22px; }
.photo-badge { position: absolute; z-index: 2; bottom: -26px; inset-inline-start: 26px; background: #fff; border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; }
.photo-badge i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a-500), var(--a-600)); color: #1d1404; font-size: 1.1rem; }
.photo-badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--b-900); line-height: 1; }
.photo-badge small { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks i { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--b-100); color: var(--b-700); font-size: .75rem; margin-top: 3px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vm__card { background: #fff; border-radius: 20px; padding: 20px; border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); }
.vm__card h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--b-900); display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.vm__card h4 i { color: var(--a-600); }
.vm__card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- dark stats band ---------- */
.mband { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--b-950), var(--b-800)); }
.mband::before { content: ""; position: absolute; inset: 0; background: var(--pattern); z-index: -1; }
.mband .mtitle h2, .mband .mtitle p { color: #fff; }
.mband .mtitle p { color: rgba(255,255,255,.75); }
.mband .mtitle .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: var(--a-200); }
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.mstat { border-radius: 22px; padding: 26px 22px; text-align: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.mstat i { font-size: 1.5rem; color: var(--a-500); }
.mstat strong { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1.1; margin: 10px 0 4px; }
.mstat span { color: rgba(255,255,255,.75); font-size: .92rem; }

/* ---------- modern cards ---------- */
[data-theme] .card { border-radius: 22px; border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); }
[data-theme] a.card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
[data-theme] .card__media { position: relative; }
.date-chip { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--b-900); border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 600; box-shadow: var(--shadow-sm); }
[data-theme] .entity { border-radius: 22px; }
[data-theme] .panel { border-radius: 20px; }
[data-theme] .partner { border-radius: 18px; }
[data-theme] .person__photo { border-radius: 22px 22px 0 0; overflow: hidden; }
[data-theme] .toolbar { border-radius: 24px; padding: 10px; box-shadow: var(--shadow-sm); }
[data-theme] .toolbar input, [data-theme] .toolbar select { border-radius: 999px; border-color: transparent; background: var(--cream); }
[data-theme] .field input, [data-theme] .field textarea, [data-theme] .field select { border-radius: 14px; background: #fff; }
[data-theme] .empty { border-radius: 22px; }
[data-theme] .pagination a, [data-theme] .pagination span { border-radius: 999px; }

/* ---------- CTA band (warm, like the institute) ---------- */
.mcta { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 44px 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(120deg, #b86a14 0%, #d58a1f 55%, #e8a83a 100%); box-shadow: 0 30px 60px -30px rgba(184,106,20,.8); }
[data-theme="centers"] .mcta { background: linear-gradient(120deg, var(--b-800) 0%, var(--b-600) 60%, #1a9aa5 100%); box-shadow: 0 30px 60px -30px var(--b-800); }
.mcta::before { content: ""; position: absolute; inset: 0; background: var(--pattern); z-index: -1; }
.mcta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.mcta p { margin: 0; color: rgba(255,255,255,.9); }
.mcta .btn--white { background: #fff; color: #7a4508; }
[data-theme="centers"] .mcta .btn--white { color: var(--b-900); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { color: #fff; background: #1fb457; }

/* ---------- inner page hero ---------- */
[data-theme] .page-hero { background: radial-gradient(700px 300px at 90% 0%, rgba(211,165,74,.25), transparent 60%), linear-gradient(135deg, var(--b-950), var(--b-800)); padding-block: 74px 86px; border-radius: 0 0 36px 36px; }
[data-theme] .page-hero::after { background-image: var(--pattern); }
[data-theme] .page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
[data-theme] .breadcrumb { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }

/* ---------- footer ---------- */
[data-theme] .site-footer { position: relative; isolation: isolate; background: linear-gradient(160deg, var(--b-950), var(--b-900)); border-radius: 36px 36px 0 0; margin-top: 40px; }
[data-theme] .site-footer::before { content: ""; position: absolute; inset: 0; background: var(--pattern); z-index: -1; border-radius: inherit; }
[data-theme] .footer-brand img { border-radius: 14px; }
[data-theme] .socials a { border-radius: 999px; }

/* ---------- curriculum journey (centers) ---------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.journey::before { content: ""; position: absolute; top: 38px; inset-inline: 12%; height: 3px; background: repeating-linear-gradient(90deg, var(--a-500) 0 12px, transparent 12px 22px); z-index: 0; }
.step { position: relative; z-index: 1; background: #fff; border-radius: 24px; padding: 0 22px 24px; text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(15,23,42,.05); transition: transform .3s; }
.step:hover { transform: translateY(-6px); }
.step__num { width: 76px; height: 76px; margin: 0 auto 14px; transform: translateY(-0px); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--b-600), var(--b-900)); border: 5px solid var(--cream); box-shadow: 0 12px 24px -12px var(--b-800); }
.step h3 { font-size: 1.35rem; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.step__books { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.step__books span { font-size: .76rem; padding: 4px 10px; border-radius: 999px; background: var(--a-100); color: var(--a-700); border: 1px solid var(--a-200); }
.step__count { display: inline-block; margin-top: 12px; font-size: .82rem; color: var(--b-700); font-weight: 600; }

/* center cards */
.ccard { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(15,23,42,.06); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ccard__head { position: relative; height: 150px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--b-700), var(--b-950)); isolation: isolate; }
.ccard__head::before { content: ""; position: absolute; inset: 0; background: var(--pattern); z-index: -1; }
.ccard__head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.ccard__head > i { font-size: 2.6rem; color: var(--a-500); }
.ccard__head .chip i { font-size: .85rem; }
.ccard__city { position: absolute; bottom: 12px; inset-inline-start: 14px; }
.ccard__body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.ccard__body h3 { margin: 0; font-size: 1.35rem; }
.ccard__body p { margin: 0; color: var(--muted); font-size: .92rem; }
.ccard__stats { display: flex; gap: 10px; }
.ccard__stats div { flex: 1; text-align: center; background: var(--cream); border-radius: 14px; padding: 10px 6px; }
.ccard__stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--b-800); line-height: 1.1; }
.ccard__stats span { font-size: .76rem; color: var(--muted); }

/* features */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat { background: #fff; border-radius: 22px; padding: 26px; border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); }
.feat i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--b-600), var(--b-900)); margin-bottom: 14px; }
.feat h3 { font-size: 1.25rem; margin: 0 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- portal (dashboards) ---------- */
[data-theme] .portal__side { background: linear-gradient(180deg, var(--b-900), var(--b-950)); }
[data-theme] .portal__side::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .6; pointer-events: none; }
[data-theme] .portal__side > * { position: relative; }
[data-theme] .portal__nav a { border-radius: 12px; }
[data-theme] .portal__nav a.is-active { background: linear-gradient(90deg, rgba(224,173,79,.25), rgba(224,173,79,.08)); box-shadow: none; }
[data-theme] .portal__top { background: rgba(255,255,255,.88); backdrop-filter: blur(12px); }
[data-theme] .kpi { border-radius: 20px; box-shadow: var(--shadow-sm); border-color: rgba(15,23,42,.06); }
[data-theme] .kpi i { border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--b-600), var(--b-900)); }
[data-theme] .kpi:nth-child(2) i { background: linear-gradient(135deg, var(--a-500), var(--a-600)); color: #1d1404; }
[data-theme] .kpi:nth-child(3) i { background: linear-gradient(135deg, #5b7fd6, #2c4a8a); }
[data-theme] .kpi:nth-child(4) i { background: linear-gradient(135deg, #c86a8a, #7a3d55); }
[data-theme] .table th { background: var(--cream); }
[data-theme] .auth-card { border-radius: 28px; border-top: 0; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
[data-theme] .auth-shell { background: radial-gradient(800px 500px at 85% 10%, rgba(224,173,79,.25), transparent 60%), linear-gradient(135deg, var(--b-950), var(--b-800)); }
[data-theme] .auth-shell::before { content: ""; position: fixed; inset: 0; background: var(--pattern); pointer-events: none; }
[data-theme] .auth-card { position: relative; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .mhero__slide { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } .journey::before { display: none; } }
@media (max-width: 960px) {
  .ents, .msplit, .vm, .feats, .mhero--split .mhero__inner { grid-template-columns: 1fr; }
  .msplit { gap: 56px; }
  .mhero__inner { padding: 96px 20px 160px; }
  .mhero--split .mhero__inner { text-align: center; }
  .mhero--split .mhero__lead { margin-inline: auto; }
  .mhero--split .mhero__actions { justify-content: center; }
  .showcase { max-width: 420px; margin-inline: auto; width: 100%; }
  .showcase .glass:nth-child(2), .showcase .glass:nth-child(3) { margin-inline-start: 0; }
  .quick { margin-top: -90px; }
  .quick__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-template-columns: 1fr; }
  .mcta { padding: 32px 24px; }
  .ent { padding: 24px; min-height: 0; }
  .photo-frame::before { display: none; }
  .mhero__dots { bottom: 112px; }
}

/* ---------- heritage (Sheikh Yahya): portrait hero, dark player band ---------- */
[data-theme="heritage"] .mhero--pattern { background: radial-gradient(900px 500px at 15% 10%, rgba(214,166,74,.22), transparent 60%), radial-gradient(700px 500px at 90% 90%, rgba(116,80,38,.55), transparent 60%), linear-gradient(135deg, var(--b-950), var(--b-800)); }
[data-theme="heritage"] .mcta { background: linear-gradient(120deg, var(--b-800) 0%, var(--b-600) 60%, #9a6a2a 100%); box-shadow: 0 30px 60px -30px var(--b-800); }
[data-theme="heritage"] .mcta .btn--white { color: var(--b-900); }
.portrait { position: relative; justify-self: center; width: min(380px, 100%); }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 200px 200px 28px 28px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; border: 6px solid rgba(255,255,255,.12); }
.portrait::before { content: ""; position: absolute; inset: -14px; border-radius: 214px 214px 36px 36px; border: 2px solid var(--a-500); opacity: .7; }
.portrait__badge { position: absolute; z-index: 2; bottom: 22px; inset-inline-end: -18px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; color: #fff; background: rgba(28,18,9,.55); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(12px); }
.portrait__badge i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a-500), var(--a-600)); color: #1d1404; }
.portrait__badge strong { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.portrait__badge small { color: rgba(255,255,255,.75); }
[data-theme] .daily-band { background: linear-gradient(135deg, var(--b-950), var(--b-800)); isolation: isolate; }
[data-theme] .daily-band::before { content: ""; position: absolute; inset: 0; background: var(--pattern); z-index: -1; }
[data-theme] .player { border-radius: 22px; }
[data-theme] .player--featured { border-top: 0; background: rgba(255,255,255,.96); box-shadow: var(--shadow-lg); }
[data-theme] .player__icon { background: linear-gradient(135deg, var(--a-500), var(--a-600)); color: #1d1404; }
[data-theme] .player__tools button { border-radius: 999px; }
[data-theme] .daily-item { border-radius: 16px; background: rgba(255,255,255,.07); }
[data-theme] .fatwa-item { transition: background .2s; }
[data-theme] .qa { border-radius: 24px; }
[data-theme] .side-box { border-radius: 22px; }
[data-theme] .daily-date { border-radius: 14px; }
.fcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fcard { position: relative; background: #fff; border-radius: 22px; padding: 22px 24px; border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); color: inherit; display: grid; gap: 8px; transition: transform .25s, box-shadow .25s; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.fcard__q { font-family: var(--font-display); font-size: 1.2rem; color: var(--b-900); line-height: 1.6; margin: 0; }
.fcard__q::before { content: "س: "; color: var(--a-600); }
.fcard p { margin: 0; color: var(--muted); font-size: .93rem; }
.fcard__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
@media (max-width: 960px) { .fcards { grid-template-columns: 1fr; } .portrait { width: min(280px, 80%); } .portrait__badge { inset-inline-end: 0; } }

/* ==========================================================================
   Inner pages — same modern language as the home pages, on every Itqan site
   (page-hero, section heads, cards, entities, toolbars, forms, empty states)
   A site may set --hero-img on [data-theme] for a photo behind the inner hero.
   ========================================================================== */
[data-theme] .page-hero { isolation: isolate; padding-block: 92px 120px; border-radius: 0 0 44px 44px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--b-950) 94%, transparent) 0%, color-mix(in srgb, var(--b-900) 82%, transparent) 55%, color-mix(in srgb, var(--b-800) 62%, transparent) 100%),
    var(--hero-img, linear-gradient(135deg, var(--b-950), var(--b-800))) center / cover no-repeat; }
[data-theme] .page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -140px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--a-500) 38%, transparent), transparent 65%); z-index: 0; pointer-events: none; }
[data-theme] .page-hero::after { z-index: 0; }
[data-theme] .page-hero .container { z-index: 1; }
[data-theme] .page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 18px 0 10px; letter-spacing: -.01em; }
[data-theme] .page-hero h1::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 16px; border-radius: 4px; background: linear-gradient(90deg, var(--a-500), var(--a-200)); }
[data-theme] .page-hero p { font-size: 1.08rem; max-width: 720px; }
[data-theme] .breadcrumb { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); gap: 8px; font-size: .88rem; }
[data-theme] .breadcrumb a { color: var(--a-200); }

/* the first block under an inner hero floats up onto it */
[data-theme] .page-hero + .section { padding-top: 0; }
[data-theme] .page-hero + .section > .container > .toolbar:first-child,
[data-theme] .page-hero + .section > .container > form.toolbar:first-child { margin-top: -38px; position: relative; z-index: 2; }
[data-theme] .page-hero + .section > .container:first-child { padding-top: 56px; }
[data-theme] .page-hero + .section > .container:first-child:has(> .toolbar:first-child) { padding-top: 0; }

/* section heads → chip eyebrow, like .mtitle */
[data-theme] .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--a-100); color: var(--a-700); border: 1px solid var(--a-200); font-size: .82rem; letter-spacing: 0; margin-bottom: 14px; }
[data-theme] .eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--a-500); }
[data-theme] .section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
[data-theme] .rule { border: 0; height: 4px; width: 64px; border-radius: 4px; background: linear-gradient(90deg, var(--a-500), var(--a-200)); margin-block: 16px 22px; }

/* cards */
[data-theme] .card { border-radius: 24px; border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s, box-shadow .3s; background: #fff; }
[data-theme] a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
[data-theme] .card__media { overflow: hidden; background: linear-gradient(135deg, var(--b-100), var(--a-100)); }
[data-theme] .card__media img { transition: transform .6s ease; }
[data-theme] a.card:hover .card__media img { transform: scale(1.06); }
[data-theme] .card__body { padding: 22px 24px 24px; }
[data-theme] .card__meta { color: var(--a-700); font-weight: 600; }
[data-theme] .person__photo { background: linear-gradient(135deg, var(--b-700), var(--b-950)); }

/* entity / category tiles */
[data-theme] .entity { border-radius: 24px; border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); padding: 28px; transition: transform .3s, box-shadow .3s; overflow: hidden; background: #fff; }
[data-theme] .entity::before { height: 5px; background: linear-gradient(90deg, var(--entity, var(--b-700)), color-mix(in srgb, var(--entity, var(--b-700)) 40%, var(--a-500))); }
[data-theme] a.entity:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
[data-theme] .entity__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.4rem; color: #fff;
  background: linear-gradient(135deg, var(--entity, var(--b-600)), color-mix(in srgb, var(--entity, var(--b-600)) 45%, #000)); box-shadow: 0 12px 22px -12px var(--entity, var(--b-800)); }
[data-theme] .entity--soon { background: #fff; border: 1px dashed var(--a-200); }

/* pillars (vision / mission / values) */
[data-theme] .pillar { border-radius: 22px; background: #fff; border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); padding: 24px 26px; border-inline-start: 5px solid var(--a-500); }
[data-theme] .pillar h3 i { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--b-100); color: var(--b-700); margin-inline-end: 10px; font-size: 1rem; }

/* toolbars, forms, empty states */
[data-theme] .toolbar { background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
[data-theme] .toolbar input, [data-theme] .toolbar select { border-radius: 999px; padding: 12px 18px; background: var(--cream); border-color: transparent; }
[data-theme] .toolbar input:focus, [data-theme] .toolbar select:focus { outline: 2px solid var(--a-500); outline-offset: 1px; background: #fff; }
[data-theme] .field input, [data-theme] .field select, [data-theme] .field textarea { border-radius: 14px; background: var(--cream); }
[data-theme] .field input:focus, [data-theme] .field select:focus, [data-theme] .field textarea:focus { background: #fff; border-color: var(--a-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a-500) 18%, transparent); outline: 0; }
[data-theme] .empty { border-radius: 24px; background: #fff; border: 1px dashed var(--a-200); padding: 56px 24px; }
[data-theme] .empty i { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--a-100); color: var(--a-600); font-size: 1.7rem; }
[data-theme] .contact-list li > i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--b-700), var(--b-900)); color: var(--a-200); flex: none; }
[data-theme] .cta-band { border-radius: 28px; background: linear-gradient(120deg, var(--b-900), var(--b-700)); position: relative; isolation: isolate; overflow: hidden; }
[data-theme] .cta-band::before { content: ""; position: absolute; inset: 0; background: var(--pattern); z-index: -1; }
[data-theme] .article__cover { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
[data-theme] .article__body { font-size: 1.08rem; line-height: 2; }
[data-theme] .gallery img { border-radius: 18px; }
[data-theme] .pagination a, [data-theme] .pagination span { border-radius: 999px; }

/* ---------- administrative structure: hierarchical org chart ---------- */
.org { --line: color-mix(in srgb, var(--b-700) 35%, transparent); display: flex; flex-direction: column; align-items: center; gap: 0; overflow-x: auto; padding: 8px 4px 20px; }
.org ul { list-style: none; margin: 0; padding: 28px 0 0; display: flex; justify-content: center; position: relative; }
.org > ul { padding-top: 0; }
.org li { position: relative; padding: 28px 10px 0; display: flex; flex-direction: column; align-items: center; }
.org > ul > li { padding-top: 0; }
/* connectors */
.org li::before, .org li::after { content: ""; position: absolute; top: 0; height: 28px; border-top: 2px solid var(--line); width: 50%; }
.org li::before { inset-inline-end: 50%; }
.org li::after { inset-inline-start: 50%; border-inline-start: 2px solid var(--line); }
.org li:only-child::before, .org li:only-child::after { display: none; }
.org li:only-child { padding-top: 28px; }
.org li:only-child > .org__node::before { content: ""; position: absolute; top: -28px; inset-inline-start: 50%; height: 28px; border-inline-start: 2px solid var(--line); }
.org li:first-child::before, .org li:last-child::after { border: 0 none; }
.org li:last-child::before { border-inline-end: 2px solid var(--line); border-start-end-radius: 12px; }
.org li:first-child::after { border-start-start-radius: 12px; }
.org > ul > li::before, .org > ul > li::after { display: none; }
.org ul ul::before { content: ""; position: absolute; top: 0; inset-inline-start: 50%; height: 28px; border-inline-start: 2px solid var(--line); }
.org__node { position: relative; min-width: 168px; max-width: 220px; background: #fff; border-radius: 20px; padding: 16px 16px 14px; text-align: center; border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.org__node:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.org__photo { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: var(--a-200); font-size: 1.3rem; background: linear-gradient(135deg, var(--b-600), var(--b-900)); border: 3px solid var(--a-100); }
.org__photo img { width: 100%; height: 100%; object-fit: cover; }
.org__title { display: block; font-weight: 700; color: var(--b-900); font-size: .98rem; line-height: 1.45; }
.org__name { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.org__node--top { background: linear-gradient(135deg, var(--b-800), var(--b-950)); border-color: transparent; box-shadow: var(--shadow); }
.org__node--top .org__title { color: #fff; font-size: 1.08rem; }
.org__node--top .org__name { color: var(--a-200); }
.org__node--top .org__photo { background: linear-gradient(135deg, var(--a-500), var(--a-700)); color: #fff; border-color: rgba(255,255,255,.2); }
.org__node--l2 { border-top: 4px solid var(--a-500); }
@media (max-width: 760px) {
  /* stack as an indented tree on phones */
  .org { align-items: stretch; overflow: visible; }
  .org ul { flex-direction: column; padding: 0 0 0; padding-inline-start: 22px; border-inline-start: 2px solid var(--line); margin-inline-start: 12px; }
  .org > ul { padding-inline-start: 0; border: 0; margin: 0; }
  .org li { padding: 12px 0 0; align-items: stretch; }
  .org li::before, .org li::after, .org ul ul::before, .org li:only-child > .org__node::before { display: none; }
  .org ul ul > li::before { display: block; content: ""; position: absolute; top: 40px; inset-inline-start: -22px; width: 18px; height: 0; border-top: 2px solid var(--line); border-inline: 0; }
  .org li:only-child { padding-top: 12px; }
  .org__node { max-width: none; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; text-align: start; padding: 12px 14px; }
  .org__photo { width: 48px; height: 48px; margin: 0; }
}

/* ==========================================================================
   Financial management (data-theme="finance"): money figures, charts, vouchers
   ========================================================================== */
.status--draft { background: #f1f3f7; color: #55607a; border-color: #dde2ec; }
.status--rejected { background: #fbeeee; color: var(--danger, #b42318); border-color: #efcaca; }
.status--cancelled { background: #f4f4f2; color: var(--muted); border-color: var(--line); text-decoration: line-through; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.money--in { color: #157347; } .money--out { color: #b42318; }
.kpi--hero { background: linear-gradient(135deg, var(--b-800), var(--b-950)); color: #fff; border: 0; position: relative; overflow: hidden; isolation: isolate; }
.kpi--hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern); z-index: -1; }
.kpi--hero .kpi__num { color: #fff; font-size: 2.1rem; } .kpi--hero .kpi__label { color: var(--a-200); }
.kpi--hero i { background: rgba(255,255,255,.12); color: var(--a-500); }
.kpi--warn i { background: #fdecea; color: #b42318; }
.chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 220px; padding: 8px 4px 0; }
[data-theme="finance"] .kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
[data-theme="finance"] .kpi { min-width: 0; }
[data-theme="finance"] .kpi__num { font-size: clamp(1.3rem, 2vw, 1.7rem); overflow-wrap: anywhere; }
.chart__col { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; }
.chart__bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; min-height: 0; }
.chart__bars span { width: 42%; max-width: 16px; border-radius: 6px 6px 2px 2px; min-height: 2px; max-height: 100%; }
.chart__bars .in { background: linear-gradient(180deg, #2fb36f, #157347); }
.chart__bars .out { background: linear-gradient(180deg, #f08a7e, #b42318); }
.chart__label { font-size: .7rem; color: var(--muted); text-align: center; direction: ltr; }
.legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--b-600), var(--b-800)); border-radius: 99px; }
.bar--gold > span { background: linear-gradient(90deg, var(--a-500), var(--a-700)); }
.bar--over > span { background: linear-gradient(90deg, #f08a7e, #b42318); }
.stack { display: grid; gap: 14px; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; }
.facts-grid dt { font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.facts-grid dd { margin: 0; font-weight: 600; color: var(--b-900); }
.actions-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions-bar form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.btn--danger { background: #b42318; color: #fff; } .btn--danger:hover { background: #8f1c13; color: #fff; }
.btn--success { background: #157347; color: #fff; } .btn--success:hover { background: #0f5a37; color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.timeline li > i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--b-100); color: var(--b-700); font-size: .85rem; }
.timeline small { color: var(--muted); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.filters .field { margin: 0; } .filters label { font-size: .78rem; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.qa { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--b-900); font-weight: 600; transition: transform .2s, box-shadow .2s; }
.qa:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--b-900); }
.qa i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.qa--in i { background: linear-gradient(135deg, #2fb36f, #157347); } .qa--out i { background: linear-gradient(135deg, #f08a7e, #b42318); }
.qa--tr i { background: linear-gradient(135deg, var(--b-600), var(--b-900)); } .qa--ok i { background: linear-gradient(135deg, var(--a-500), var(--a-700)); }
.wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.wcard { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 20px 22px; color: #fff; background: linear-gradient(135deg, var(--b-700), var(--b-950)); box-shadow: var(--shadow); display: grid; gap: 6px; transition: transform .2s; }
.wcard:hover { transform: translateY(-4px); color: #fff; }
.wcard::before { content: ""; position: absolute; inset: 0; background: var(--pattern); z-index: -1; }
.wcard--waqf { background: linear-gradient(135deg, #1f6a4a, #0a2b20); } .wcard--zakat { background: linear-gradient(135deg, #8f6a24, #3d2914); }
.wcard--restricted, .wcard--project { background: linear-gradient(135deg, #5b3d8f, #1e1236); }
.wcard--low { box-shadow: 0 0 0 3px #f08a7e, var(--shadow); }
.wcard small { color: rgba(255,255,255,.7); } .wcard strong { font-size: 1.6rem; font-family: var(--font-display); }
.wcard .chip { justify-self: start; background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.2); }
/* printable voucher */
.voucher { max-width: 820px; margin: 24px auto; background: #fff; border: 2px solid var(--b-800); border-radius: 18px; padding: 32px 36px; }
.voucher__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 2px solid var(--a-500); padding-bottom: 16px; margin-bottom: 20px; }
.voucher__head img { width: 64px; height: 64px; object-fit: contain; }
.voucher__title { text-align: center; } .voucher__title h1 { margin: 0; font-size: 1.8rem; color: var(--b-900); }
.voucher table { width: 100%; border-collapse: collapse; } .voucher td { padding: 10px 8px; border-bottom: 1px dashed var(--line); }
.voucher td:first-child { width: 170px; color: var(--muted); }
.voucher__amount { font-size: 1.5rem; font-weight: 700; color: var(--b-900); }
.voucher__sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; text-align: center; font-size: .9rem; }
.voucher__sign div { border-top: 1px solid var(--b-800); padding-top: 8px; }
@media print { .no-print { display: none !important; } body { background: #fff !important; } .voucher { border-width: 1px; margin: 0; } }
