/* =====================================================================
   Components — header, drawers, footer, cards, cuts, accordion, tabs…
   ===================================================================== */

/* ---------- Header ----------
   Three-zone grid: brand | nav | actions. Fixed 80px bar, 32px gutters,
   40px breathing room between zones, 12px between action items. */
.site-header {
	position: sticky; top: 0; z-index: 100;
	height: var(--header-h);
	background: rgba(250, 248, 243, .82);
	backdrop-filter: saturate(1.6) blur(16px);
	-webkit-backdrop-filter: saturate(1.6) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s, height .3s var(--ease), background-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(14, 19, 48, .18); background: rgba(250, 248, 243, .94); }
.hdr { height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: var(--s-8); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-head); font-weight: 800; font-size: 1.375rem; letter-spacing: -.03em; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-grad); display: grid; place-items: center; box-shadow: var(--sh-accent); transition: transform .4s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-mark svg { width: 24px; height: 24px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: var(--s-1); }
.nav-item { position: relative; }
.nav-link {
	display: inline-flex; align-items: center; gap: 6px;
	height: 44px; padding: 0 var(--s-4);
	border-radius: var(--r-pill);
	font-size: .9375rem; font-weight: 600; color: var(--ink-2);
	transition: color .2s, background-color .2s;
}
.nav-link svg { width: 14px; height: 14px; opacity: .6; transition: transform .25s var(--ease); }
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-link.is-active { color: var(--ink); background: rgba(14, 19, 48, .06); }
.nav-link.is-active { background: #fff; box-shadow: var(--sh-xs); }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }
.dropdown {
	position: absolute; top: calc(100% + 8px); left: 50%; min-width: 260px;
	padding: var(--s-2);
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.98); transform-origin: top center;
	transition: opacity .2s, transform .3s var(--ease), visibility .2s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd-link { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); transition: background-color .2s; }
.dd-link:hover { background: var(--bg-2); }
.dd-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.dd-ico svg { width: 18px; height: 18px; }
.dd-link b { display: block; font-size: .9375rem; color: var(--ink); line-height: 1.3; }
.dd-link span { font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.hdr-actions { display: flex; align-items: center; gap: var(--s-3); }
.hdr-actions .btn { height: 44px; padding: 0 var(--s-5); }
.user-chip { display: inline-flex; align-items: center; gap: var(--s-3); height: 44px; padding: 0 var(--s-4) 0 var(--s-1); border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
.user-chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.user-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.user-chip .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-grad); color: #fff; font-weight: 800; font-size: .8125rem; display: grid; place-items: center; font-family: var(--font-head); }
.user-chip .lvl { font-size: .8125rem; font-weight: 800; color: var(--ink); line-height: 1; white-space: nowrap; }
.user-chip .lvl small { display: block; font-size: .6875rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--ink); color: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; box-shadow: var(--sh-md); }
.nav-toggle span { width: 20px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1180px) {
	.hdr { column-gap: var(--s-5); }
	.nav-link { padding: 0 var(--s-3); }
	.hdr-actions .btn { display: none; }
}
@media (max-width: 980px) {
	.hdr { grid-template-columns: 1fr auto; }
	.main-nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.user-chip .lvl { display: none; }
	.user-chip { padding: 0 var(--s-1); }
}
@media (max-width: 480px) { .hdr-actions { gap: var(--s-2); } .hdr-actions .icon-btn.hide-xs { display: none; } }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(11, 16, 38, .5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .35s var(--ease); z-index: 140; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.mobile-nav {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 150;
	background: var(--bg); padding: var(--s-5) var(--s-5) var(--s-6);
	transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
	overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-5);
	box-shadow: var(--sh-lg);
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.mn-head { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.mn-list { display: flex; flex-direction: column; }
.mn-group { border-bottom: 1px solid var(--line); }
.mn-group > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 64px; font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; color: var(--ink); cursor: pointer; }
.mn-group > summary::-webkit-details-marker { display: none; }
.mn-group > summary svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.mn-group[open] > summary svg { transform: rotate(180deg); }
.mn-group a.sub { display: block; padding: var(--s-3) var(--s-3); border-radius: var(--r-sm); font-weight: 600; color: var(--ink-2); }
.mn-group a.sub:hover { background: var(--bg-2); }
.mn-group .subs { padding-bottom: var(--s-4); }
.mn-link { display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; color: var(--ink); }
.mn-foot { margin-top: auto; display: grid; gap: var(--s-3); }

/* Cart drawer */
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 150; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; display: flex; flex-direction: column; box-shadow: var(--sh-lg); }
.cart-drawer.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.cd-head { padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cd-body { flex: 1; overflow-y: auto; padding: var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.cd-foot { padding: var(--s-5) var(--s-6) var(--s-6); border-top: 1px solid var(--line); display: grid; gap: var(--s-4); background: var(--bg); }
.cd-empty { text-align: center; padding: var(--s-9) var(--s-4); color: var(--muted); }
.cd-empty svg { width: 56px; height: 56px; margin: 0 auto var(--s-4); color: var(--line-2); }
.line-item { display: grid; grid-template-columns: 80px 1fr auto; gap: var(--s-4); align-items: center; }
.line-item .thumb { width: 80px; height: 80px; border-radius: var(--r-md); overflow: hidden; background: var(--bg-2); }
.line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item h4 { font-size: .9375rem; line-height: 1.35; font-family: var(--font-body); font-weight: 700; }
.line-item .meta { font-size: .8125rem; color: var(--muted); }
.line-item .price { font-weight: 800; color: var(--ink); font-size: .9375rem; }
.qty { display: inline-flex; align-items: center; height: 40px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: #fff; }
.qty button { width: 36px; height: 100%; font-size: 1.125rem; font-weight: 600; color: var(--ink-2); border-radius: var(--r-pill); }
.qty button:hover { background: var(--bg-2); }
.qty output, .qty input { min-width: 28px; width: 28px; text-align: center; font-weight: 800; font-size: .875rem; border: 0; background: transparent; padding: 0; }
.ship-bar { font-size: .8125rem; }
.ship-bar .track { height: 8px; border-radius: 8px; background: var(--bg-3); margin-top: var(--s-2); overflow: hidden; }
.ship-bar .fill { height: 100%; width: 0; background: var(--accent-grad); border-radius: 8px; transition: width .8s var(--ease); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: var(--s-6); transform: translate(-50%, 24px); background: var(--ink); color: #fff; padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); font-weight: 600; font-size: .875rem; box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transition: .4s var(--ease); z-index: 200; display: flex; gap: var(--s-2); align-items: center; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--gold); }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent-grad); }

/* ---------- Breadcrumbs / page hero ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: .875rem; color: var(--muted); margin-bottom: var(--s-5); }
.crumbs a:hover { color: var(--ink); }
.crumbs i { opacity: .5; font-style: normal; }
.page-hero { padding-block: clamp(32px, 4.5vw, 64px) clamp(32px, 4vw, 56px); position: relative; overflow: hidden; }
.page-hero .lede { margin-top: var(--s-5); }
.page-hero .actions { margin-top: var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.page-hero.center { text-align: center; }
.page-hero.center .lede { margin-inline: auto; }
.page-hero.center .actions { justify-content: center; }
.page-hero.center .crumbs { justify-content: center; }
.page-hero .bg-pieces { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card-pad { padding: var(--s-6); }
.card.hover:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.ico-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.ico-tile svg { width: 24px; height: 24px; }
.ico-tile.t-blue { background: var(--blue-soft); color: #2A3FB0; }
.ico-tile.t-green { background: var(--green-soft); color: #11623F; }
.ico-tile.t-violet { background: var(--violet-soft); color: #5B34C9; }
.ico-tile.t-rose { background: var(--rose-soft); color: #C0254B; }
.ico-tile.t-gold { background: #FFF1CD; color: #8A5A00; }
.feature { display: flex; flex-direction: column; gap: var(--s-3); }
.feature h3 { font-size: 1.25rem; margin-top: var(--s-2); }
.feature p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.checklist { display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .9375rem; }
.checklist li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2311623F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Puzzle card */
.pz-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); position: relative; height: 100%; }
.pz-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.pz-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.pz-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pz-card:hover .pz-media > img { transform: scale(1.07); }
.pz-media .cuts { opacity: .85; transition: opacity .4s; }
.pz-card:hover .pz-media .cuts { opacity: 1; }
.pz-tag { position: absolute; left: var(--s-3); bottom: var(--s-3); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: rgba(11, 16, 38, .72); backdrop-filter: blur(8px); color: #fff; font-size: .75rem; font-weight: 700; z-index: 2; }
.fav { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); display: grid; place-items: center; color: var(--ink); box-shadow: var(--sh-sm); transition: transform .3s var(--ease-spring), color .2s; }
.fav:hover { transform: scale(1.12); }
.fav svg { width: 20px; height: 20px; transition: .3s; }
.fav[aria-pressed="true"] { color: #E0344F; }
.fav[aria-pressed="true"] svg { fill: currentColor; animation: pop .45s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.pz-body { padding: var(--s-5) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.pz-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.pz-body h3 { font-size: 1.125rem; line-height: 1.25; }
.pz-pcs { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: .9375rem; white-space: nowrap; }
.pz-by { font-size: .875rem; color: var(--muted); }
.pz-foot { margin-top: auto; padding-top: var(--s-3); display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; color: var(--muted); border-top: 1px dashed var(--line); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); }
.rating svg { width: 14px; height: 14px; color: var(--gold); fill: currentColor; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* Jigsaw cut overlay — SVG built by app.js from the same bezier knob used by the game engine */
.cuts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.cuts path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cuts .c-dark { stroke: rgba(11, 16, 38, .32); stroke-width: 2.2; }
.cuts .c-light { stroke: rgba(255, 255, 255, .75); stroke-width: 1; }

/* Product card */
.pr-card { display: flex; flex-direction: column; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); height: 100%; }
.pr-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.pr-media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(160deg, #F4EDE0, #E9DFCB); overflow: hidden; display: grid; place-items: center; }
.pr-media .box { transition: transform .7s var(--ease); }
.pr-card:hover .pr-media .box { transform: rotate(-3deg) scale(1.05) translateY(-4px); }
.pr-badges { position: absolute; top: var(--s-3); left: var(--s-3); display: flex; flex-direction: column; gap: 6px; z-index: 3; align-items: flex-start; }
.pr-quick { position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); z-index: 3; transform: translateY(16px); opacity: 0; transition: .4s var(--ease); }
.pr-card:hover .pr-quick, .pr-card:focus-within .pr-quick { transform: translateY(0); opacity: 1; }
@media (hover: none) { .pr-quick { transform: none; opacity: 1; position: static; padding: 0 var(--s-5) var(--s-5); } }
.pr-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.pr-body .rating-row { display: flex; align-items: center; gap: var(--s-2); font-size: .8125rem; color: var(--muted); }
.pr-body h3 { font-size: 1.125rem; line-height: 1.25; }
.pr-body .sub { font-size: .875rem; color: var(--muted); }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--ink); display: inline-flex; align-items: baseline; gap: var(--s-2); }
.price del { font-size: .9375rem; color: var(--muted); font-weight: 500; }
.price .save { font-family: var(--font-body); font-size: .75rem; font-weight: 800; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: var(--r-pill); }
.pr-body .price { margin-top: auto; padding-top: var(--s-2); }
.pr-body .pr-actions { padding-top: var(--s-3); display: grid; gap: var(--s-2); }
.pr-media .box { --bw: 72%; }

/* Puzzle box mock (CSS) — a 3D-ish boxed puzzle built from any image */
.box { --bw: 62%; position: relative; width: var(--bw); aspect-ratio: 5 / 4; border-radius: 10px; background: var(--navy); box-shadow: 0 2px 0 rgba(255, 255, 255, .18) inset, 0 30px 40px -18px rgba(14, 19, 48, .55), 0 10px 14px -6px rgba(14, 19, 48, .3); overflow: hidden; }
.box > img { position: absolute; inset: 10px 10px 34px; width: calc(100% - 20px); height: calc(100% - 44px); object-fit: cover; border-radius: 4px; }
.box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .25) 0%, transparent 32%, transparent 70%, rgba(255, 255, 255, .08) 100%); pointer-events: none; }
.box-label { position: absolute; left: 12px; right: 12px; bottom: 8px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; z-index: 2; }
.box-label i { font-style: normal; color: var(--gold); }
.box.is-tall { aspect-ratio: 4 / 5; --bw: 50%; }
.box-xl { --bw: 78%; }

/* Article card */
.ar-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); height: 100%; }
.ar-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.ar-media { aspect-ratio: 16 / 10; overflow: hidden; }
.ar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ar-card:hover .ar-media img { transform: scale(1.06); }
.ar-body { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.ar-meta { display: flex; gap: var(--s-2); align-items: center; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.ar-meta span:last-child { color: var(--muted); }
.ar-body h3 { font-size: 1.1875rem; line-height: 1.3; }
.ar-body p { margin: 0; font-size: .9375rem; color: var(--ink-2); }

/* Accordion */
.acc { display: grid; gap: var(--s-3); }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc-item.is-open { border-color: var(--line-2); box-shadow: var(--sh-sm); }
.acc-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-6); text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; color: var(--ink); min-height: 72px; }
.acc-q .plus { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; flex-shrink: 0; transition: .4s var(--ease); }
.acc-q .plus svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.acc-item.is-open .plus { background: var(--ink); color: #fff; }
.acc-item.is-open .plus svg { transform: rotate(45deg); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-item.is-open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 var(--s-6) var(--s-5); margin: 0; color: var(--ink-2); max-width: 70ch; }

/* Tabs */
.tabs-nav { display: flex; gap: var(--s-2); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: var(--s-6); }
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn { height: 52px; padding: 0 var(--s-5); font-weight: 700; color: var(--muted); position: relative; white-space: nowrap; font-size: .9375rem; transition: color .2s; }
.tab-btn::after { content: ""; position: absolute; left: var(--s-4); right: var(--s-4); bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent-grad); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab-btn:hover { color: var(--ink); }
.tab-btn.is-active { color: var(--ink); }
.tab-btn.is-active::after { transform: scaleX(1); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9375rem; }
.table th { text-align: left; padding: var(--s-4) var(--s-5); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; background: var(--bg); border-bottom: 1px solid var(--line); }
.table td { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .2s; }
.table tbody tr:hover { background: var(--bg); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--s-3); border-radius: var(--r-pill); font-size: .75rem; font-weight: 800; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.s-done { background: var(--green-soft); color: #11623F; }
.status.s-ship { background: var(--blue-soft); color: #2A3FB0; }
.status.s-proc { background: #FFF1CD; color: #8A5A00; }

/* Progress */
.bar { height: 10px; border-radius: 10px; background: var(--bg-3); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 10px; background: var(--accent-grad); transition: width 1.4s var(--ease); }
.bar.is-green > i { background: linear-gradient(90deg, #1F8A5B, #3ACB8B); }
.bar.is-blue > i { background: linear-gradient(90deg, #2A3FB0, #6C84FF); }
.bar.is-dark > i { background: linear-gradient(90deg, #0E1330, #3B4262); }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--s-8); width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--ink-2); white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats */
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat span { display: block; margin-top: var(--s-2); font-size: .9375rem; color: var(--muted); }
.section-dark .stat b { color: #fff; }
.section-dark .stat span { color: #98A0C4; }

/* CTA band */
.cta-band { background: var(--navy); border-radius: var(--r-xl); padding: clamp(48px, 7vw, 96px) var(--s-6); text-align: center; position: relative; overflow: hidden; isolation: isolate; box-shadow: var(--sh-lg); }
.cta-band::before { content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(242, 106, 27, .45), transparent 62%); z-index: -1; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.25); opacity: .7; } }
.cta-band h2 { color: #fff; max-width: 16ch; margin-inline: auto; }
.cta-band p { color: #A8B0D4; margin: var(--s-4) auto var(--s-6); max-width: 52ch; }
.cta-band .row { justify-content: center; }
.cta-band .fine { margin: var(--s-5) auto 0; text-align: center; font-size: .8125rem; color: #7C85AE; }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 var(--s-6); margin-top: clamp(48px, 6vw, 88px); }
.ft-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.4fr; gap: var(--s-8); padding-bottom: var(--s-9); }
.ft-brand p { color: var(--ink-2); font-size: .9375rem; max-width: 34ch; margin: var(--s-4) 0 var(--s-5); }
.ft-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ft-col h4 { font-family: var(--font-body); font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s-5); }
.ft-col li + li { margin-top: var(--s-3); }
.ft-col a { font-size: .9375rem; color: var(--ink-2); transition: color .2s, padding .25s var(--ease); display: inline-block; }
.ft-col a:hover { color: var(--accent); padding-left: 4px; }
.ft-news p { font-size: .9375rem; color: var(--ink-2); margin-bottom: var(--s-4); }
.news-form { display: flex; gap: var(--s-2); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: 5px; transition: .2s; }
.news-form:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(242, 106, 27, .15); }
.news-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 var(--s-4); font-size: .9375rem; outline: 0; }
.news-form .btn { height: 44px; padding: 0 var(--s-5); }
.ft-bottom { border-top: 1px solid var(--line-2); padding-top: var(--s-6); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: .875rem; color: var(--muted); align-items: center; }
.ft-bottom nav { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.ft-bottom a:hover { color: var(--ink); }
.social { display: flex; gap: var(--s-2); }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: var(--ink); transition: .25s var(--ease); }
.social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { .ft-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } .ft-brand, .ft-news { grid-column: 1 / -1; } .ft-brand p, .ft-news p { max-width: 56ch; } .ft-news .news-form { max-width: 480px; } }
@media (max-width: 640px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-5); } .ft-bottom { flex-direction: column; align-items: flex-start; } .ft-bottom nav { gap: var(--s-4); } }
