/* =====================================================================
   Inner pages — shop, product, cart, checkout, account, tools, content
   ===================================================================== */

/* ---------- Shop archive ---------- */
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-8); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + var(--s-5)); display: grid; gap: var(--s-5); }
.f-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.f-block h4 { font-family: var(--font-body); font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s-4); display: flex; justify-content: space-between; align-items: center; }
.f-list { display: grid; gap: var(--s-3); }
.f-list .check { justify-content: space-between; align-items: center; }
.f-list .check span:nth-child(3) { margin-left: auto; font-size: .8125rem; color: var(--muted); }
.f-block .search-field { padding: 2px 2px 2px var(--s-4); }
.f-block .search-field input { height: 44px; }
.f-list .check > span:nth-child(2) { flex: 1; }
.range { width: 100%; accent-color: var(--accent); height: 6px; }
.range-vals { display: flex; justify-content: space-between; font-size: .875rem; font-weight: 700; color: var(--ink); margin-top: var(--s-3); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.shop-toolbar .select { width: auto; height: 44px; min-width: 200px; }
.filters-toggle { display: none; }
.promo { grid-column: 1 / -1; border-radius: var(--r-lg); background: var(--navy); color: #fff; padding: var(--s-6); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; position: relative; overflow: hidden; }
.promo h3 { color: #fff; font-size: 1.375rem; }
.promo p { margin: 4px 0 0; color: #A8B0D4; font-size: .9375rem; }
.promo::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(242, 106, 27, .5), transparent 70%); }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.pagination { display: flex; gap: var(--s-2); justify-content: center; margin-top: var(--s-8); }
.pagination a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 700; background: #fff; transition: .2s; padding: 0 var(--s-3); }
.pagination a:hover { border-color: var(--ink); }
.pagination a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
	.shop-layout { grid-template-columns: 1fr; }
	.filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 90%); z-index: 150; background: var(--bg); padding: var(--s-5); overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; box-shadow: var(--sh-lg); align-content: start; }
	.filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
	.filters-toggle { display: inline-flex; }
}
@media (max-width: 560px) { .shop-grid { grid-template-columns: 1fr; } .shop-toolbar .select { width: 100%; } }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.pdp-gallery { display: grid; grid-template-columns: 88px 1fr; gap: var(--s-4); position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.pdp-thumbs { display: grid; gap: var(--s-3); align-content: start; }
.pdp-thumbs button { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; border: 2px solid transparent; background: var(--bg-3); transition: .25s var(--ease); position: relative; }
.pdp-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs button.is-active { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(242, 106, 27, .18); }
.pdp-thumbs button:hover { transform: translateY(-2px); }
.pdp-main { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); background: linear-gradient(160deg, #F4EDE0, #E8DCC5); overflow: hidden; display: grid; place-items: center; box-shadow: var(--sh-md); cursor: zoom-in; }
.pdp-main .box { transition: transform .6s var(--ease); }
.pdp-main:hover .box { transform: scale(1.04) rotate(-1deg); }
.pdp-main .view { position: absolute; inset: 0; display: none; place-items: center; }
.pdp-main .view.is-active { display: grid; animation: fadeUp .5s var(--ease); }
.pdp-main .view > img.full { width: 86%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.pdp-main .view.is-pieces { background: #E8DCC5; }
.pdp-main .view.is-pieces .cut-wrap { width: 86%; aspect-ratio: 4 / 3; position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-lg); }
.pdp-main .view.is-pieces img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin: var(--s-3) 0 var(--s-4); }
.pdp-rate { display: flex; align-items: center; gap: var(--s-3); font-size: .9375rem; color: var(--muted); margin-bottom: var(--s-5); flex-wrap: wrap; }
.pdp-price { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); }
.pdp-price .price { font-size: 2.25rem; }
.pdp-info > p { color: var(--ink-2); }
.opt-group { margin: var(--s-6) 0; }
.opt-group > .label { display: flex; justify-content: space-between; margin-bottom: var(--s-3); }
.opt-group .label span { font-weight: 500; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.opt { border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: #fff; padding: var(--s-4) var(--s-3); text-align: center; transition: .25s var(--ease); display: flex; flex-direction: column; gap: 2px; }
.opt b { font-family: var(--font-head); font-size: 1.125rem; color: var(--ink); line-height: 1.2; }
.opt small { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.opt:hover { border-color: var(--ink); }
.opt.is-active { border-color: var(--accent-2); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(242, 106, 27, .12); }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); margin-bottom: var(--s-3); }
.buy-row .qty { height: 60px; }
.buy-row .btn { height: 60px; }
.pdp-info .btn-block + .btn-block { margin-top: var(--s-3); }
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.perk { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .875rem; }
.perk .ico-tile { width: 40px; height: 40px; border-radius: 12px; }
.perk .ico-tile svg { width: 20px; height: 20px; }
.perk b { display: block; color: var(--ink); font-size: .9375rem; }
.perk span { color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; }
.spec-table td { color: var(--ink); font-weight: 600; }
.review { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--s-2); }
.review .head { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.review .head b { color: var(--ink); }
.review p { margin: 0; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: var(--s-3) 0; transform: translateY(110%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.sticky-buy.is-show { transform: none; visibility: visible; transition-delay: 0s; }
.sticky-buy .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.sticky-buy .sb-info { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.sticky-buy .sb-info img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.sticky-buy .sb-info b { display: block; color: var(--ink); font-family: var(--font-head); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 980px) { .pdp { grid-template-columns: 1fr; } .pdp-gallery { position: static; } }
@media (max-width: 560px) { .pdp-gallery { grid-template-columns: 1fr; } .pdp-thumbs { grid-template-columns: repeat(4, 1fr); order: 2; } .opts { grid-template-columns: 1fr; } .perks { grid-template-columns: 1fr; } .sticky-buy .sb-info span { display: none; } }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--s-8); align-items: start; }
.cart-list { display: grid; gap: var(--s-4); }
.cart-row { display: grid; grid-template-columns: 112px 1fr auto auto; gap: var(--s-5); align-items: center; padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.cart-row .thumb { width: 112px; height: 112px; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(160deg, #F4EDE0, #E8DCC5); display: grid; place-items: center; }
.cart-row .thumb .box { --bw: 80%; }
.cart-row .thumb .box-label { display: none; }
.cart-row .thumb .box > img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.note { display: inline-flex; align-items: center; gap: 6px; }
.note svg { width: 18px; height: 18px; flex-shrink: 0; }
.cart-row h3 { font-size: 1.125rem; margin-bottom: 4px; }
.cart-row .meta { font-size: .875rem; color: var(--muted); }
.cart-row .rm { font-size: .8125rem; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-top: var(--s-2); display: inline-block; }
.cart-row .rm:hover { color: var(--accent); }
.cart-row .line-total { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--ink); min-width: 80px; text-align: right; }
.summary { position: sticky; top: calc(var(--header-h) + var(--s-5)); padding: var(--s-6); display: grid; gap: var(--s-4); }
.summary h3 { margin-bottom: var(--s-1); }
.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: .9375rem; }
.sum-row b { color: var(--ink); }
.sum-row.total { padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: 1.125rem; }
.sum-row.total b { font-family: var(--font-head); font-size: 1.75rem; }
.coupon { display: flex; gap: var(--s-2); }
.coupon .input { height: 48px; }
.coupon .btn { height: 48px; }
.secure svg, .hint svg, .small svg { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px; margin-right: 2px; }
.secure { display: flex; gap: var(--s-2); align-items: center; justify-content: center; font-size: .8125rem; color: var(--muted); }
.pay-icons { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; }
.pay-icons span { height: 28px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: 6px; font-size: .6875rem; font-weight: 800; display: grid; place-items: center; background: #fff; color: var(--ink-2); letter-spacing: .04em; }
.cart-empty { text-align: center; padding: var(--s-11) var(--s-5); }
.cart-empty svg { width: 72px; height: 72px; margin: 0 auto var(--s-5); color: var(--line-2); }
@media (max-width: 980px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 640px) {
	.cart-row { grid-template-columns: 88px 1fr; gap: var(--s-4); padding: var(--s-4); }
	.cart-row .thumb { width: 88px; height: 88px; }
	.cart-row .qty { grid-column: 1 / 2; }
	.cart-row .line-total { grid-column: 2 / 3; text-align: right; align-self: center; }
}

/* ---------- Checkout ---------- */
.co-steps { display: flex; gap: var(--s-4); align-items: center; margin-bottom: var(--s-7); flex-wrap: wrap; font-size: .875rem; font-weight: 700; color: var(--muted); }
.co-steps .st { display: inline-flex; align-items: center; gap: var(--s-2); }
.co-steps .st i { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-style: normal; font-size: .75rem; }
.co-steps .st.is-done { color: var(--ink); }
.co-steps .st.is-done i { background: var(--green); color: #fff; }
.co-steps .st.is-now { color: var(--ink); }
.co-steps .st.is-now i { background: var(--accent-grad); color: #fff; }
.co-steps .sep { width: 32px; height: 2px; background: var(--line-2); border-radius: 2px; }
.co-card { padding: var(--s-6); margin-bottom: var(--s-5); }
.co-card > h3 { margin-bottom: var(--s-5); display: flex; align-items: center; gap: var(--s-3); font-size: 1.375rem; }
.co-card > h3 i { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: .875rem; display: grid; place-items: center; font-family: var(--font-body); font-weight: 800; }
.ship-opts, .pay-opts { display: grid; gap: var(--s-3); }
.radio-card .grow { flex: 1; }
.radio-card b { color: var(--ink); display: block; line-height: 1.3; }
.radio-card small { color: var(--muted); }
.radio-card .rp { font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.card-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-4); margin-top: var(--s-4); }
.card-fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .card-fields { grid-template-columns: 1fr 1fr; } }
.mini-item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-4); align-items: center; }
.mini-item .thumb { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; position: relative; background: var(--bg-3); }
.mini-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-item .thumb em { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: .6875rem; font-weight: 800; display: grid; place-items: center; }
.mini-item b { color: var(--ink); font-size: .9375rem; line-height: 1.3; display: block; }
.mini-item span { font-size: .8125rem; color: var(--muted); }

/* ---------- Order confirmation ---------- */
.confirm-hero { text-align: center; padding: clamp(48px, 7vw, 96px) 0 var(--s-8); }
.check-anim { width: 96px; height: 96px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; margin: 0 auto var(--s-6); position: relative; }
.check-anim svg { width: 48px; height: 48px; color: var(--green); }
.check-anim svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .8s .3s var(--ease) forwards; }
.check-anim::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ripple 1.6s .4s ease-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ripple { 0% { transform: scale(.8); opacity: .6; } 100% { transform: scale(1.3); opacity: 0; } }
.order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); text-align: left; }
.order-meta div { padding: var(--s-4) var(--s-5); background: var(--bg); border-radius: var(--r-md); }
.order-meta small { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.order-meta b { color: var(--ink); font-family: var(--font-head); }
.timeline { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.tl { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); position: relative; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: -24px; width: 2px; background: var(--line-2); }
.tl i { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-style: normal; color: var(--muted); }
.tl.is-done i { background: var(--green); color: #fff; }
.tl.is-done:not(:last-child)::before { background: var(--green); }
.tl b { color: var(--ink); display: block; }
.tl span { font-size: .875rem; color: var(--muted); }
@media (max-width: 760px) { .order-meta { grid-template-columns: 1fr 1fr; } }

/* ---------- Account dashboard ---------- */
.acct { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-8); align-items: start; }
.acct-side { position: sticky; top: calc(var(--header-h) + var(--s-5)); padding: var(--s-5); }
.acct-user { display: flex; gap: var(--s-4); align-items: center; padding-bottom: var(--s-5); margin-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.acct-user img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-2); padding: 2px; }
.acct-user b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.0625rem; line-height: 1.2; }
.acct-user small { color: var(--muted); font-size: .8125rem; }
.acct-nav { display: grid; gap: 4px; }
.acct-nav button, .acct-nav a { display: flex; align-items: center; gap: var(--s-3); height: 48px; padding: 0 var(--s-4); border-radius: var(--r-md); font-weight: 700; font-size: .9375rem; color: var(--ink-2); transition: .2s; text-align: left; width: 100%; }
.acct-nav svg { width: 20px; height: 20px; opacity: .8; }
.acct-nav button:hover, .acct-nav a:hover { background: var(--bg-2); color: var(--ink); }
.acct-nav button.is-active { background: var(--ink); color: #fff; }
.acct-nav .count { margin-left: auto; font-size: .75rem; background: var(--bg-3); color: var(--ink); padding: 2px 8px; border-radius: var(--r-pill); }
.acct-nav button.is-active .count { background: rgba(255, 255, 255, .2); color: #fff; }
.acct-panel { display: none; }
.acct-panel.is-active { display: block; animation: fadeUp .5s var(--ease); }
.level-hero { display: grid; grid-template-columns: auto 1fr; gap: var(--s-7); align-items: center; padding: clamp(24px, 3vw, 40px); background: var(--navy); border-radius: var(--r-xl); color: #B4BBDC; position: relative; overflow: hidden; isolation: isolate; box-shadow: var(--sh-lg); }
.level-hero::before { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(242, 106, 27, .4), transparent 65%); z-index: -1; }
.ring { --p: 40; width: 168px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--accent-2) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); display: grid; place-items: center; position: relative; flex-shrink: 0; transition: background .1s; }
.ring::before { content: ""; position: absolute; inset: 12px; background: var(--navy); border-radius: 50%; }
.ring-in { position: relative; text-align: center; z-index: 1; }
.ring-in small { display: block; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #8B93BB; }
.ring-in b { font-family: var(--font-head); font-size: 3.25rem; color: #fff; line-height: 1; letter-spacing: -.04em; }
.level-info h2 { color: #fff; font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); margin: var(--s-3) 0; }
.level-info p { margin: 0 0 var(--s-5); max-width: 52ch; }
.level-info .bar { background: rgba(255, 255, 255, .14); height: 12px; }
.level-info .bar-meta { display: flex; justify-content: space-between; font-size: .8125rem; margin-top: var(--s-2); color: #98A0C4; }
.level-info .bar-meta b { color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin: var(--s-5) 0; }
.kpi { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.kpi .ico-tile { width: 44px; height: 44px; }
.kpi b { font-family: var(--font-head); font-size: 2.25rem; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.kpi > span:not(.ico-tile) { font-size: .875rem; color: var(--muted); font-weight: 600; }
.kpi em { font-style: normal; font-size: .75rem; font-weight: 800; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: var(--r-pill); align-self: flex-start; }
.acct-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-5); }
.panel-card { padding: var(--s-6); }
.panel-card > h3 { font-size: 1.25rem; margin-bottom: var(--s-5); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.tiers { display: grid; gap: var(--s-4); }
.tier { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s-4); align-items: center; }
.tier .ico-tile { width: 44px; height: 44px; }
.tier b { color: var(--ink); display: block; font-size: .9375rem; }
.tier small { color: var(--muted); font-size: .8125rem; }
.tier .bar { margin-top: 6px; height: 8px; }
.tier .num { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.125rem; text-align: right; }
.tier .num small { display: block; font-family: var(--font-body); font-weight: 600; }
.ladder { display: grid; gap: var(--s-3); }
.rung { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; }
.rung.is-now { border-color: var(--accent-2); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(242, 106, 27, .1); }
.rung.is-done { opacity: .7; }
.rung .ico-tile { width: 40px; height: 40px; border-radius: 12px; }
.rung b { color: var(--ink); display: block; line-height: 1.25; }
.rung small { color: var(--muted); font-size: .8125rem; }
.rung .tag { margin-left: auto; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.game-list { display: grid; gap: var(--s-3); }
.game-row { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-3); border-radius: var(--r-md); transition: background-color .2s; }
.game-row:hover { background: var(--bg); }
.game-row img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; }
.game-row b { color: var(--ink); display: block; font-size: .9375rem; }
.game-row small { color: var(--muted); font-size: .8125rem; }
.game-row .res { text-align: right; font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.game-row .res b { font-family: var(--font-head); font-size: 1rem; display: block; }
.streak-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.streak-grid i { aspect-ratio: 1; border-radius: 5px; background: var(--bg-3); display: block; }
.streak-grid i.l1 { background: #FFD9BF; } .streak-grid i.l2 { background: #FFB27F; } .streak-grid i.l3 { background: var(--accent-2); } .streak-grid i.l4 { background: var(--accent); }
.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.settings-grid { display: grid; gap: var(--s-5); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row b { color: var(--ink); display: block; }
.switch-row small { color: var(--muted); }
.switch { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 30px; transition: .3s var(--ease); }
.switch span::after { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: .3s var(--ease-spring); }
.switch input:checked + span { background: var(--accent-grad); }
.switch input:checked + span::after { transform: translateX(22px); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .acct-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
	.acct { grid-template-columns: 1fr; gap: var(--s-5); }
	.acct-side { position: static; padding: var(--s-4); }
	.acct-user { display: none; }
	.acct-nav { display: flex; overflow-x: auto; gap: var(--s-2); scrollbar-width: none; }
	.acct-nav::-webkit-scrollbar { display: none; }
	.acct-nav button, .acct-nav a { width: auto; white-space: nowrap; flex-shrink: 0; }
	.acct-nav .out { display: none; }
}
@media (max-width: 640px) {
	.level-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.level-info .bar-meta { text-align: left; }
	.kpis { gap: var(--s-3); } .kpi { padding: var(--s-4); } .kpi b { font-size: 1.875rem; }
	.fav-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .fav-grid { grid-template-columns: 1fr; } }

/* ---------- Tool pages (create / printable) ---------- */
.tool { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-7); align-items: start; }
.tool-panel { padding: var(--s-6); display: grid; gap: var(--s-6); }
.tool-panel h3 { font-size: 1.1875rem; margin-bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-3); }
.tool-panel h3 i { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: .8125rem; display: grid; place-items: center; font-family: var(--font-body); font-weight: 800; }
.cut-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.cut-style { border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: #fff; padding: var(--s-3); text-align: center; transition: .25s var(--ease); display: grid; gap: var(--s-2); }
.cut-style .cs-prev { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--bg-2); position: relative; overflow: hidden; }
.cut-style b { font-size: .8125rem; color: var(--ink); }
.cut-style:hover { border-color: var(--ink); }
.cut-style.is-active { border-color: var(--accent-2); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(242, 106, 27, .12); }
.range-field { display: grid; gap: var(--s-3); }
.range-field output { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 1.25rem; }
.tick-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-weight: 600; }
.tool-preview { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.preview-card { padding: var(--s-4); }
.pv-canvas { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--bg-3); }
.pv-canvas > img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.pv-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-2) var(--s-1); flex-wrap: wrap; }
.pv-foot .row { gap: var(--s-2); }
.pv-stat { font-size: .875rem; color: var(--muted); }
.pv-stat b { color: var(--ink); }
.share-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.sheet-preview { background: #D6CFBF; border-radius: var(--r-md); padding: var(--s-6); display: grid; place-items: center; }
.paper { background: #fff; width: min(100%, 360px); aspect-ratio: 210 / 297; box-shadow: var(--sh-lg); padding: 7%; display: flex; flex-direction: column; gap: 4%; transition: aspect-ratio .4s; }
.paper.is-letter { aspect-ratio: 8.5 / 11; }
.paper .ph { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: clamp(.75rem, 2vw, 1rem); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.paper .ph small { font-size: .55rem; font-weight: 600; color: var(--muted); font-family: var(--font-body); }
.paper .pimg { flex: 1; position: relative; min-height: 0; }
.paper .pimg > img { width: 100%; height: 100%; object-fit: cover; }
.paper .pfoot { font-size: .55rem; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 8px; display: flex; justify-content: space-between; }
.paper .pimg .cuts .c-dark { stroke: rgba(14, 19, 48, .8); stroke-dasharray: 5 4; stroke-width: 1.6; }
.paper .pimg .cuts .c-light { display: none; }
@media (max-width: 980px) { .tool { grid-template-columns: 1fr; } .tool-preview { position: static; } }
@media (max-width: 480px) { .cut-styles { grid-template-columns: 1fr 1fr; } }

/* ---------- Daily page ---------- */
.daily-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--s-6); align-items: start; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal small { font-size: .6875rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .8125rem; font-weight: 700; color: var(--ink-2); background: var(--bg); }
.cal span.is-done { background: var(--accent-soft); color: var(--accent-ink); }
.cal span.is-today { background: var(--accent-grad); color: #fff; box-shadow: var(--sh-accent); }
.cal span.is-fut { opacity: .4; }
.lb { display: grid; gap: var(--s-2); counter-reset: lb; }
.lb li { display: grid; grid-template-columns: 28px 36px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); counter-increment: lb; font-size: .875rem; }
.lb li::before { content: counter(lb); font-family: var(--font-head); font-weight: 800; color: var(--muted); text-align: center; }
.lb li:nth-child(1)::before { color: #C58A00; } .lb li:nth-child(2)::before { color: #7A8199; } .lb li:nth-child(3)::before { color: #A5642A; }
.lb li.me { background: var(--accent-soft); }
.lb img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.lb b { color: var(--ink); } .lb time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.daily-stage { aspect-ratio: 16 / 9; }
@media (max-width: 1060px) { .daily-layout { grid-template-columns: 1fr; } }

/* ---------- Library page extras ---------- */
.lib-hero-search { max-width: 640px; margin: var(--s-6) auto 0; }
.search-field { display: flex; align-items: center; gap: var(--s-3); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: 6px 6px 6px var(--s-5); box-shadow: var(--sh-sm); transition: .25s; }
.search-field:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 5px rgba(242, 106, 27, .14); }
.search-field svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 48px; font-size: 1rem; }

/* ---------- About / content ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.timeline-h { overflow-x: clip; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); position: relative; }
.timeline-h .t { padding-top: var(--s-6); position: relative; }
.timeline-h .t::before { content: ""; position: absolute; top: 0; left: 0; right: calc(var(--s-5) * -1); height: 2px; background: var(--line-2); }
.timeline-h .t::after { content: ""; position: absolute; top: -6px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 0 5px var(--bg); }
.timeline-h .t b { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); display: block; margin-bottom: 4px; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.member { text-align: center; }
.member .av { width: 100%; aspect-ratio: 1; border-radius: var(--r-xl); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: #fff; margin-bottom: var(--s-4); overflow: hidden; transition: transform .5s var(--ease); }
.member:hover .av { transform: rotate(-3deg) scale(1.03); }
.member b { display: block; color: var(--ink); font-family: var(--font-head); }
.member span { font-size: .875rem; color: var(--muted); }
@media (max-width: 960px) { .values { grid-template-columns: 1fr; } .timeline-h { grid-template-columns: 1fr 1fr; row-gap: var(--s-7); } .team { grid-template-columns: 1fr 1fr; } }

/* ---------- Blog ---------- */
.feat-post { display: grid; grid-template-columns: 1.2fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); transition: box-shadow .4s, transform .4s var(--ease); }
.feat-post:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.feat-post .fp-img { min-height: 380px; overflow: hidden; }
.feat-post .fp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.feat-post:hover .fp-img img { transform: scale(1.05); }
.feat-post .fp-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); }
.feat-post h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); }
.author { display: flex; align-items: center; gap: var(--s-3); font-size: .875rem; }
.author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author b { display: block; color: var(--ink); }
.author span { color: var(--muted); font-size: .8125rem; }
.prose { max-width: 720px; margin-inline: auto; font-size: 1.0625rem; line-height: 1.8; color: var(--ink-2); }
.prose h2 { font-size: 1.75rem; margin: var(--s-8) 0 var(--s-4); }
.prose h3 { font-size: 1.375rem; margin: var(--s-6) 0 var(--s-3); }
.prose ul { list-style: disc; padding-left: var(--s-5); margin-bottom: var(--s-4); }
.prose li + li { margin-top: var(--s-2); }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose-meta { display: flex; gap: var(--s-5); flex-wrap: wrap; color: var(--muted); font-size: .875rem; margin-bottom: var(--s-6); }
.legal { display: grid; grid-template-columns: 260px 1fr; gap: var(--s-9); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); display: grid; gap: 2px; padding-left: var(--s-4); border-left: 2px solid var(--line); }
.toc a { padding: var(--s-2) var(--s-3); font-size: .875rem; font-weight: 600; color: var(--muted); border-radius: var(--r-sm); transition: .2s; }
.toc a:hover, .toc a.is-active { color: var(--accent); background: var(--accent-soft); }
.legal .prose { margin: 0; max-width: 760px; font-size: 1rem; }
.legal .prose h2 { font-size: 1.5rem; margin-top: var(--s-8); }
.legal .prose h2:first-child { margin-top: 0; }
.notice { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: #FFF1CD; color: #6B4700; font-size: .9375rem; margin-bottom: var(--s-6); }
@media (max-width: 960px) { .feat-post { grid-template-columns: 1fr; } .feat-post .fp-img { min-height: 240px; } .legal { grid-template-columns: 1fr; gap: var(--s-6); } .toc { position: static; display: flex; overflow-x: auto; border: 0; padding: 0; gap: var(--s-2); } .toc a { white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-7); align-items: start; }
.contact-info { display: grid; gap: var(--s-4); }
.ci { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); }
.ci b { display: block; color: var(--ink); }
.ci span { font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Teachers / educational ---------- */
.subject-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.subject { padding: var(--s-5); display: grid; gap: var(--s-3); }
.subject b { color: var(--ink); font-family: var(--font-head); font-size: 1.125rem; }
.subject span { font-size: .875rem; color: var(--muted); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: stretch; }
.plan { padding: var(--s-7) var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); position: relative; }
.plan.is-pop { background: var(--navy); border-color: var(--navy); color: #B4BBDC; transform: scale(1.03); box-shadow: var(--sh-lg); }
.plan.is-pop h3, .plan.is-pop .pr { color: #fff; }
.plan .pr { font-family: var(--font-head); font-weight: 800; font-size: 2.75rem; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.plan .pr small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .btn { margin-top: auto; }
.plan .checklist { margin: var(--s-2) 0 var(--s-5); }
@media (max-width: 1100px) { .subject-tiles { grid-template-columns: repeat(2, 1fr); } .pricing { grid-template-columns: 1fr; } .plan.is-pop { transform: none; } }
@media (max-width: 480px) { .subject-tiles { grid-template-columns: 1fr; } }
.qr-box { width: 120px; height: 120px; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; }
