/* =========================================================================
   ASCEND AFRICA — INTERACTIVE TOOLKIT
   Premium UI for the qualifier, calculators, map, portal and global chrome.
   Inherits the design tokens declared in ascend.css.
   ========================================================================= */

/* ---- Scroll-progress bar --------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 1001; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); }

/* ---- Section-dot navigator ------------------------------------------- */
.dotnav { position: fixed; right: clamp(1rem, 2vw, 1.7rem); top: 50%; transform: translateY(-50%); z-index: 700; display: flex; flex-direction: column; gap: 1rem; opacity: 0; transition: opacity .5s var(--ease); }
.dotnav.show { opacity: 1; }
.dotnav__item { position: relative; display: flex; align-items: center; justify-content: flex-end; cursor: pointer; }
.dotnav__dot { width: 8px; height: 8px; border: 1px solid var(--ink-40); border-radius: 50%; transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.dotnav__item:hover .dotnav__dot, .dotnav__item.active .dotnav__dot { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.dotnav__label { position: absolute; right: 20px; white-space: nowrap; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); background: rgba(9,20,32,.9); padding: .35rem .6rem; opacity: 0; transform: translateX(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; border: 1px solid var(--ink-08); }
.dotnav__item:hover .dotnav__label { opacity: 1; transform: none; }
@media (max-width: 1100px) { .dotnav { display: none; } }

/* ---- Back-to-top ------------------------------------------------------ */
.totop { position: fixed; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 700; width: 46px; height: 46px; border: 1px solid var(--ink-12); background: rgba(9,20,32,.85); backdrop-filter: blur(10px); color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease), background .4s, color .4s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--gold); color: var(--navy); }

/* ---- Private-line dock ------------------------------------------------ */
.dock { position: fixed; left: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + 60px); z-index: 700; display: flex; flex-direction: column; gap: .6rem; }
.dock__item { width: 46px; height: 46px; border: 1px solid var(--ink-12); background: rgba(9,20,32,.85); backdrop-filter: blur(10px); color: var(--gold); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease), background .4s, color .4s; }
.dock.show .dock__item { opacity: 1; transform: none; pointer-events: auto; }
.dock.show .dock__item:nth-child(2){ transition-delay:.05s } .dock.show .dock__item:nth-child(3){ transition-delay:.1s }
.dock__item:hover { background: var(--gold); color: var(--navy); }
.dock__item svg { width: 19px; height: 19px; }

/* ---- Currency toggle (in nav) ---------------------------------------- */
.ccy { display: inline-flex; align-items: center; gap: .15rem; border: 1px solid var(--ink-12); padding: .25rem; margin-right: .4rem; }
.ccy button { background: none; border: 0; color: var(--ink-60); font-family: var(--serif); font-size: .64rem; letter-spacing: .1em; padding: .3rem .45rem; cursor: pointer; transition: color .3s, background .3s; }
.ccy button.active { background: var(--gold); color: var(--navy); }
.ccy button:hover { color: var(--ivory); }
.ccy button.active:hover { color: var(--navy); }

/* ===================================================================== */
/* MODAL SHELL (qualifier + insight capture + booking confirmations)     */
/* ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(5,12,20,.82); backdrop-filter: blur(8px); }
.modal__panel { position: relative; width: min(960px, 100%); max-height: 90vh; overflow: hidden; background: var(--navy); border: 1px solid var(--ink-12); display: grid; grid-template-columns: 320px 1fr; transform: translateY(24px) scale(.98); transition: transform .55s var(--ease); }
.modal.open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 40px; height: 40px; border: 1px solid var(--ink-12); background: rgba(9,20,32,.6); color: var(--ivory); cursor: pointer; transition: background .4s, color .4s; display:flex;align-items:center;justify-content:center; }
.modal__close:hover { background: var(--gold); color: var(--navy); }
.modal__aside { position: relative; padding: 2.6rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.modal__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: 0; }
.modal__aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,20,32,.6), var(--navy-deep)); z-index: 1; }
.modal__aside > * { position: relative; z-index: 2; }
.modal__aside h3 { font-size: 1.7rem; line-height: 1.15; }
.modal__aside .serif-italic { font-size: 1.3rem; }
.modal__body { padding: 2.6rem; overflow-y: auto; }
@media (max-width: 760px) { .modal__panel { grid-template-columns: 1fr; } .modal__aside { display: none; } }

/* ---- Multi-step qualifier -------------------------------------------- */
.q__progress { display: flex; gap: .5rem; margin-bottom: 2rem; }
.q__progress span { flex: 1; height: 2px; background: var(--ink-12); overflow: hidden; position: relative; }
.q__progress span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.q__progress span.done::after { transform: scaleX(1); }
.q__step { display: none; }
.q__step.active { display: block; animation: qIn .5s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.q__kicker { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.q__q { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); margin: .8rem 0 1.6rem; line-height: 1.15; }
.q__opts { display: grid; gap: .8rem; }
.q__opts.two { grid-template-columns: 1fr 1fr; }
.q__opt { text-align: left; background: var(--navy-soft); border: 1px solid var(--ink-08); color: var(--ivory); padding: 1.05rem 1.2rem; cursor: pointer; font-family: var(--serif); font-size: .95rem; display: flex; align-items: center; gap: .9rem; transition: border-color .4s var(--ease), background .4s var(--ease), transform .3s var(--ease); }
.q__opt:hover { border-color: var(--gold); transform: translateX(4px); }
.q__opt.sel { border-color: var(--gold); background: rgba(201,168,76,.10); }
.q__opt .tick { margin-left: auto; color: var(--gold); opacity: 0; transition: opacity .3s; }
.q__opt.sel .tick { opacity: 1; }
.q__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; gap: 1rem; }
.q__back { background: none; border: 0; color: var(--ink-60); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.q__back:hover { color: var(--ivory); }
.q__field { display: grid; gap: 1rem; }
.q__field input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink-12); color: var(--ivory); padding: .7rem 0; font-size: 1rem; font-family: var(--sans); }
.q__field input:focus { outline: none; border-color: var(--gold); }

/* qualifier results */
.q__results { display: grid; gap: 1rem; }
.q__match { border: 1px solid var(--ink-08); padding: 1.3rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; background: var(--navy-soft); animation: qIn .5s var(--ease) backwards; }
.q__match__flag { width: 46px; height: 34px; border: 1px solid var(--ink-12); overflow: hidden; flex: 0 0 46px; background: var(--navy-deep); }
.q__match__flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q__match h4 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.q__match p { font-size: .82rem; color: var(--ink-60); margin-top: .2rem; }
.q__match__score { text-align: right; }
.q__match__score b { font-family: var(--serif); color: var(--gold); font-size: 1.4rem; }
.q__match__score span { display: block; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }

/* ===================================================================== */
/* TOOL SECTIONS (embedded on pages)                                     */
/* ===================================================================== */
.tool { border: 1px solid var(--ink-08); background: var(--navy-deep); padding: clamp(1.8rem, 4vw, 3rem); }
.tool__head { margin-bottom: 2rem; }
.tool__head .eyebrow { display: inline-block; margin-bottom: 1rem; }
.tool__head h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* ---- Mandate selector + donut ---------------------------------------- */
.mandate-tool { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.msel__slider { margin: 2rem 0; }
.msel__range { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--ink-12); outline: none; }
.msel__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: var(--gold); border-radius: 50%; cursor: pointer; border: 3px solid var(--navy); box-shadow: 0 0 0 1px var(--gold); }
.msel__range::-moz-range-thumb { width: 22px; height: 22px; background: var(--gold); border-radius: 50%; cursor: pointer; border: 3px solid var(--navy); }
.msel__ticks { display: flex; justify-content: space-between; margin-top: 1rem; }
.msel__ticks button { background: none; border: 0; color: var(--ink-40); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.msel__ticks button.active { color: var(--gold); }
.msel__name { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.msel__ret { color: var(--gold); font-family: var(--serif); font-size: 1.4rem; margin: .4rem 0 1rem; }
.msel__obj { color: var(--ink-60); }
.msel__alloc { margin-top: 1.5rem; display: grid; gap: .6rem; }
.msel__row { display: flex; align-items: center; gap: .8rem; font-size: .82rem; }
.msel__sw { width: 11px; height: 11px; flex: 0 0 11px; }
.msel__row span:last-child { margin-left: auto; color: var(--ink-60); }
.donut { position: relative; width: 100%; max-width: 320px; margin: 0 auto; }
.donut svg { width: 100%; height: auto; transform: rotate(-90deg); }
.donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut__center b { font-family: var(--serif); font-size: 2.4rem; color: var(--ivory); }
.donut__center span { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 820px) { .mandate-tool { grid-template-columns: 1fr; } }

/* ---- Property calculator --------------------------------------------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.calc__markets { display: flex; gap: .6rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.calc__mkt { background: var(--navy-soft); border: 1px solid var(--ink-08); color: var(--ink-60); padding: .6rem 1rem; font-size: .76rem; letter-spacing: .06em; cursor: pointer; transition: border-color .4s, color .4s; }
.calc__mkt.active { border-color: var(--gold); color: var(--gold); }
.calc__field { margin-bottom: 1.5rem; }
.calc__field label { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); margin-bottom: .8rem; }
.calc__field label b { color: var(--gold); font-family: var(--serif); letter-spacing: 0; font-size: 1rem; }
.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--ink-12); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--gold); border-radius: 50%; cursor: pointer; border: 3px solid var(--navy-deep); }
.calc__range::-moz-range-thumb { width: 20px; height: 20px; background: var(--gold); border-radius: 50%; border: 3px solid var(--navy-deep); cursor: pointer; }
.calc__out { background: var(--navy); border: 1px solid var(--ink-08); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; }
.calc__stat { border-bottom: 1px solid var(--ink-08); padding-bottom: 1.2rem; }
.calc__stat:last-child { border-bottom: 0; padding-bottom: 0; }
.calc__stat b { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold); display: block; }
.calc__stat span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }

/* ---- Passport comparator --------------------------------------------- */
.cmp { display: grid; gap: .8rem; }
.cmp__row { display: grid; grid-template-columns: 180px 1fr 70px; gap: 1.2rem; align-items: center; }
.cmp__name { font-family: var(--serif); font-size: 1.05rem; display: flex; align-items: center; gap: .8rem; }
.cmp__flag { width: 30px; height: 21px; object-fit: cover; flex: 0 0 30px; border: 1px solid var(--ink-12); }
.cmp__name small { display: block; font-family: var(--serif); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: .2rem; }
.cmp__bar { height: 8px; background: var(--ink-08); position: relative; overflow: hidden; }
.cmp__bar i { position: absolute; inset: 0 100% 0 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transition: right 1.2s var(--ease); }
.cmp__val { text-align: right; font-family: var(--serif); color: var(--gold); font-size: 1.2rem; }
@media (max-width: 640px) { .cmp__row { grid-template-columns: 1fr 60px; } .cmp__bar { display: none; } }

/* ---- Wealth data-viz chart ------------------------------------------- */
.viz { border: 1px solid var(--ink-08); padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--navy-deep); }
.viz svg { width: 100%; height: auto; overflow: visible; }
.viz__area { fill: url(#vizgrad); opacity: .25; }
.viz__line { fill: none; stroke: var(--gold); stroke-width: 2; }
.viz__dot { fill: var(--gold); }
.viz__lbl { fill: var(--ink-40); font-size: 11px; font-family: var(--sans); }
.viz__val { fill: var(--ivory); font-family: var(--serif); font-size: 14px; }

/* ---- Interactive map -------------------------------------------------- */
.map-wrap { border: 1px solid var(--ink-08); background: var(--navy-deep); position: relative; overflow: hidden; }
#worldmap { height: clamp(380px, 52vw, 560px); }
.jvm-tooltip { background: var(--navy) !important; border: 1px solid var(--gold) !important; color: var(--ivory) !important; font-family: var(--sans) !important; padding: .5rem .8rem !important; border-radius: 0 !important; font-size: .8rem !important; }
/* Readable marker labels: light fill with a dark halo (paint-order stroke) */
.jvm-container text,
.jvm-container .jvm-marker-label { fill: var(--gold-light) !important; font-family: var(--sans) !important; font-size: 12.5px !important; font-weight: 500 !important; letter-spacing: .02em; paint-order: stroke; stroke: rgba(9,20,32,.9); stroke-width: 3.5px; stroke-linejoin: round; }
.map-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 80%); background: rgba(9,20,32,.96); backdrop-filter: blur(12px); border-left: 1px solid var(--ink-12); padding: 2rem; transform: translateX(100%); transition: transform .5s var(--ease); overflow-y: auto; z-index: 5; }
.map-panel.open { transform: none; }
.map-panel__close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 1.3rem; }
.map-panel__flag { width: 56px; height: 38px; object-fit: cover; border: 1px solid var(--ink-12); margin-bottom: 1rem; display: block; }
.map-panel h4 { font-family: var(--serif); font-size: 1.6rem; }
.map-panel .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0; }
.map-panel .meta div b { display: block; font-family: var(--serif); color: var(--gold); font-size: 1.3rem; }
.map-panel .meta div span { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); }

/* ===================================================================== */
/* TOOLS HUB · INSIGHTS · BOOKING · PORTAL                                */
/* ===================================================================== */
.toolgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.toolcard { border: 1px solid var(--ink-08); padding: clamp(1.8rem, 3vw, 2.6rem); transition: border-color .5s var(--ease), transform .6s var(--ease), background .5s; position: relative; overflow: hidden; }
.toolcard:hover { border-color: var(--ink-12); transform: translateY(-5px); background: var(--navy-soft); }
.toolcard__ic { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--gold); margin-bottom: 1.4rem; }
.toolcard__ic svg { width: 28px; height: 28px; }

/* ---- Tool carousel ---------------------------------------------------- */
.tcar { position: relative; }
.tcar__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.tcar__hint { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-40); }
.tcar__btns { display: flex; gap: .6rem; }
.tcar__btn { width: 48px; height: 48px; border: 1px solid var(--ink-12); background: transparent; color: var(--gold); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), opacity .4s; }
.tcar__btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.tcar__btn:disabled { opacity: .25; cursor: default; }
.tcar__btn:disabled:hover { background: transparent; color: var(--gold); border-color: var(--ink-12); }

.tcar__track { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; padding: .4rem .3rem 1.4rem; cursor: grab; }
.tcar__track::-webkit-scrollbar { display: none; }
.tcar__track.drag { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.tcar__track.drag a { pointer-events: none; }
.tcar__slide { scroll-snap-align: start; flex: 0 0 clamp(258px, 27vw, 312px); }

.tcard { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--ink-08); background: var(--navy-deep); overflow: hidden; transition: border-color .5s var(--ease), transform .6s var(--ease), background .5s var(--ease); }
.tcard::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 4; }
.tcard:hover { transform: translateY(-8px); border-color: var(--ink-12); background: var(--navy-soft); }
.tcard:hover::before { transform: scaleX(1); }
.tcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tcard__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform 1.4s var(--ease); }
.tcard:hover .tcard__media img { transform: scale(1.09); }
.tcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(9,20,32,.1), rgba(9,20,32,.55) 65%, var(--navy-deep)); }
.tcard__wm { position: absolute; top: .7rem; right: 1.1rem; z-index: 2; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201,168,76,.4); transition: -webkit-text-stroke-color .5s; }
.tcard:hover .tcard__wm { -webkit-text-stroke-color: var(--gold); }
.tcard__body { position: relative; padding: 2.4rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.tcard__ic { position: absolute; top: -25px; left: 1.7rem; z-index: 3; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--gold); border: 1px solid var(--gold); background: var(--navy-deep); transition: transform .6s var(--ease), background .5s var(--ease), color .5s var(--ease); }
.tcard__ic svg { width: 24px; height: 24px; }
.tcard:hover .tcard__ic { transform: translateY(-4px) rotate(-5deg); background: var(--gold); color: var(--navy); }
.tcard h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.tcard p { font-size: .86rem; color: var(--ink-60); line-height: 1.55; margin-bottom: 1.3rem; flex: 1; }
.tcard__go { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; }
.tcard__go .arr { transition: transform .45s var(--ease); }
.tcard:hover .tcard__go .arr { transform: translateX(7px); }
.toolcard h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.toolcard p { color: var(--ink-60); font-size: .92rem; margin-bottom: 1.4rem; }
@media (max-width: 760px) { .toolgrid { grid-template-columns: 1fr; } }

.insight-card { border: 1px solid var(--ink-08); overflow: hidden; display: flex; flex-direction: column; transition: border-color .5s, transform .6s var(--ease); }
.insight-card:hover { border-color: var(--ink-12); transform: translateY(-5px); }
.insight-card__media { aspect-ratio: 16/10; overflow: hidden; }
.insight-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.insight-card:hover .insight-card__media img { transform: scale(1.06); }
.insight-card__body { padding: 1.7rem; display: flex; flex-direction: column; flex: 1; }
.insight-card__kind { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.insight-card h3 { font-size: 1.25rem; margin: .8rem 0; }
.insight-card p { font-size: .88rem; color: var(--ink-60); flex: 1; margin-bottom: 1.2rem; }

/* booking */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.bk__cal { border: 1px solid var(--ink-08); padding: 1.6rem; }
.bk__cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.bk__cal-head button { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 1.1rem; padding: .3rem .6rem; }
.bk__cal-head b { font-family: var(--serif); font-size: 1.2rem; }
.bk__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk__dow { text-align: center; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40); padding: .4rem 0; }
.bk__day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--ivory); cursor: pointer; border: 1px solid transparent; transition: border-color .3s, background .3s, color .3s; }
.bk__day.muted { color: var(--ink-12); pointer-events: none; }
.bk__day.off { color: var(--ink-40); pointer-events: none; text-decoration: line-through; }
.bk__day:hover { border-color: var(--gold); }
.bk__day.sel { background: var(--gold); color: var(--navy); }
.bk__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.4rem; }
.bk__slot { background: var(--navy-soft); border: 1px solid var(--ink-08); color: var(--ivory); padding: .7rem; font-size: .82rem; cursor: pointer; transition: border-color .3s, background .3s; }
.bk__slot.sel { border-color: var(--gold); background: rgba(201,168,76,.12); color: var(--gold); }
.bk__summary { border: 1px solid var(--gold); background: rgba(201,168,76,.06); padding: 1rem 1.3rem; margin: 1.4rem 0; font-size: .9rem; color: var(--gold); min-height: 3.4em; }

/* portal */
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.portal-aside { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 3rem; }
.portal-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.portal-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--navy-deep), rgba(9,20,32,.5)); }
.portal-aside__in { position: relative; z-index: 2; text-align: center; }
.portal-aside__in img.mark { height: 120px; width: auto; margin-bottom: 1.5rem; opacity: 1; }
.portal-login { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 6vw, 5rem); }
.portal-login__in { width: 100%; max-width: 380px; }
.portal-note { font-size: .76rem; color: var(--ink-40); margin-top: 1.5rem; border-top: 1px solid var(--ink-08); padding-top: 1.2rem; }
@media (max-width: 860px) { .portal-shell { grid-template-columns: 1fr; } .portal-aside { display: none; } }

.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-08); border: 1px solid var(--ink-08); margin-bottom: 1px; }
.dash__kpi { background: var(--navy); padding: 1.8rem; }
.dash__kpi span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }
.dash__kpi b { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ivory); margin-top: .5rem; }
.dash__kpi .up { color: var(--sage); font-size: .8rem; font-family: var(--serif); }
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1px; background: var(--ink-08); border: 1px solid var(--ink-08); border-top: 0; }
.dash-panel { background: var(--navy); padding: 1.8rem; }
.dash-panel h4 { font-family: var(--serif); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.holding { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--ink-08); font-size: .9rem; }
.holding:last-child { border-bottom: 0; }
.holding .sw { width: 10px; height: 10px; }
.holding .pct { margin-left: auto; color: var(--ink-60); }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr 1fr; } .dash-grid { grid-template-columns: 1fr; } }

/* ---- Trust band ------------------------------------------------------- */
.trust { border-block: 1px solid var(--ink-08); }
.trust__inner { display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; padding-block: 2.4rem; }
.trust__label { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-40); }
.trust__item { font-family: var(--serif); font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink-60); letter-spacing: .04em; transition: color .4s; }
.trust__item:hover { color: var(--gold); }

/* ---- Footer newsletter ------------------------------------------------ */
.news { display: flex; gap: .8rem; margin-top: 1rem; max-width: 340px; }
.news input { flex: 1; background: transparent; border: 0; border-bottom: 1px solid var(--ink-12); color: var(--ivory); padding: .6rem 0; font-size: .9rem; }
.news input:focus { outline: none; border-color: var(--gold); }
.news button { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 1.2rem; padding: 0 .4rem; }
.news__done { color: var(--gold); font-size: .82rem; margin-top: .8rem; }

/* hero particles canvas */
.hero__particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* ---- Toolkit mega-menu ----------------------------------------------- */
.mega__inner--tools { grid-template-columns: 1fr 290px; }
.mega__tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.4rem; }
.mega__tool { display: flex; align-items: center; gap: 1rem; padding: .9rem; border: 1px solid transparent; transition: border-color .4s var(--ease), background .4s var(--ease); }
.mega__tool:hover { border-color: var(--ink-08); background: var(--navy-soft); }
.mega__tool-ic { flex: 0 0 38px; width: 38px; height: 38px; color: var(--gold); display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink-12); }
.mega__tool-ic svg { width: 20px; height: 20px; }
.mega__tool-thumb { flex: 0 0 70px; width: 70px; height: 52px; overflow: hidden; position: relative; }
.mega__tool-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: saturate(.9); }
.mega__tool-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(9,20,32,.1), rgba(9,20,32,.45)); }
.mega__tool:hover .mega__tool-thumb img { transform: scale(1.1); }
.mega__tool b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.02rem; color: var(--ivory); }
.mega__tool i { display: block; font-style: normal; font-size: .74rem; color: var(--ink-60); margin-top: .15rem; }
@media (max-width: 980px) { .mega__inner--tools { grid-template-columns: 1fr; } .mega__tools { grid-template-columns: 1fr 1fr; } }