/* ProfJero Hub — builds on the shared design system in main.css */

.logo-hub { font-style: normal; font-weight: 700; font-size: .78em; color: var(--muted); margin-left: 2px; padding: 2px 8px; border-radius: 8px; background: var(--brand-50); color: var(--brand); }
.logo .logo-text { white-space: nowrap; }
@media (max-width: 380px) { .site-header .logo { font-size: 1.12rem; gap: 7px; } .site-header .logo-mark { width: 34px; height: 34px; padding: 4px; } .site-header .logo-hub { padding: 1px 6px; } }
.site-footer .logo-hub { background: rgba(255, 255, 255, .08); color: #9DC1FF; }

/* ---------- Studios mega menu ---------- */
.has-menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .94rem; border: 0; background: none; }
.menu-btn i { font-size: .7rem; transition: transform .2s; }
.menu-btn:hover, .menu-btn.active, .has-menu.open .menu-btn { color: var(--brand); background: var(--brand-50); }
.has-menu.open .menu-btn i { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); width: 520px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .2s var(--ease); z-index: 50; }
.has-menu.open .mega, .has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; color: var(--text); }
.mega a:hover { background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: var(--text); }
.mega a > i { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--c); color: #fff; }
.mega strong { display: block; font-size: .95rem; }
.mega small { color: var(--muted); font-size: .8rem; }
@media (max-width: 1040px) {
  .mega { position: static; transform: none; width: auto; grid-template-columns: minmax(0, 1fr); opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 10px; display: none; }
  .has-menu.open .mega { display: grid; transform: none; }
  .has-menu:hover .mega { transform: none; }
  .menu-btn { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1rem; }
}
@media (max-width: 640px) { .btn-portal span { display: none; } }

/* ---------- Hub hero ---------- */
.hub-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
.hero-studio-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hero-studio-pills a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 600; font-size: .86rem; backdrop-filter: blur(8px); transition: .2s; }
.hero-studio-pills a i { color: color-mix(in srgb, var(--c) 60%, #fff); }
.hero-studio-pills a:hover { background: #fff; color: var(--navy); }
.hero-studio-pills a:hover i { color: var(--c); }
.hub-hero .fc-2 i { background: #7C3AED; }

.hub-stats { position: relative; z-index: 2; margin-top: -54px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.hub-stat { padding: 24px; text-align: center; border-right: 1px solid var(--line); }
.hub-stat:last-child { border-right: 0; }
.hub-stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--brand); letter-spacing: -.03em; line-height: 1.1; }
.hub-stat span { color: var(--muted); font-size: .88rem; font-weight: 500; }
@media (max-width: 700px) { .hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -30px; } .hub-stat:nth-child(2) { border-right: 0; } .hub-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Studio cards ---------- */
.studio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.studio-card { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.studio-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.studio-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: color-mix(in srgb, var(--c) 10%, transparent); transition: transform .5s var(--ease); }
.studio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); color: var(--text); }
.studio-card:hover::after { transform: scale(1.3); }
.studio-card-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--c); box-shadow: 0 12px 26px -12px var(--c); position: relative; z-index: 1; }
.studio-card-mode { position: absolute; top: 26px; right: 22px; z-index: 1; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--c); }
.studio-card h3 { margin: 18px 0 2px; font-size: 1.3rem; position: relative; z-index: 1; }
.studio-card-tag { color: var(--c); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.studio-card p { color: var(--muted); font-size: .93rem; position: relative; z-index: 1; }
.studio-card ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; flex: 1; position: relative; z-index: 1; }
.studio-card li { font-size: .88rem; color: var(--text-2); display: flex; gap: 8px; }
.studio-card li i { color: var(--c); margin-top: 4px; font-size: .75rem; }
.studio-card-cta { font-weight: 700; font-size: .9rem; color: var(--c); display: inline-flex; gap: 8px; align-items: center; position: relative; z-index: 1; }
.studio-card:hover .studio-card-cta i { transform: translateX(4px); }
.studio-card-cta i { transition: transform .2s; }

/* ---------- About / values ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.mv { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.mv > i { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.mv h3 { font-size: 1rem; margin: 0 0 4px; }
.mv p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .mv-grid { grid-template-columns: minmax(0, 1fr); } }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.value-item { display: flex; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value-item > i { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem; background: linear-gradient(135deg, var(--brand), var(--navy)); color: #fff; }
.value-item h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.value-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.portal-banner { margin-top: 30px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg, var(--navy), var(--brand) 75%, var(--brand-2)); }
.portal-banner h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.portal-banner p { margin: 0; opacity: .88; max-width: 620px; }

/* ---------- Products ---------- */
.product-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.product-tools .search { flex: 1; min-width: 240px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(255px, 100%), 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card.hide { display: none; }
.product-media { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, #7C3AED 22%, transparent), transparent 60%), linear-gradient(135deg, color-mix(in srgb, #7C3AED 14%, var(--surface)), color-mix(in srgb, var(--brand) 12%, var(--surface))); overflow: hidden; }
.product-media > i { font-size: 3.2rem; color: #7C3AED; filter: drop-shadow(0 10px 18px rgba(124, 58, 237, .3)); transition: transform .4s var(--ease); }
.product-card:hover .product-media > i { transform: scale(1.12) rotate(-6deg); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .pill-featured { position: absolute; top: 12px; left: 12px; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #7C3AED; }
:root[data-theme="dark"] .product-cat, :root[data-theme="dark"] .product-media > i { color: #B79CFF; }
.product-body h3 { font-size: 1.08rem; margin: 4px 0 6px; }
.product-body p { color: var(--muted); font-size: .88rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-methods { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.product-methods span { font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.product-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 14px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.product-facts dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.product-facts dd { margin: 0; font-weight: 700; font-size: .86rem; }
.product-facts dd small { font-weight: 500; color: var(--muted); font-size: .7rem; }
.linklike { border: 0; background: none; color: var(--brand); font-weight: 600; text-decoration: underline; padding: 0; }

/* ---------- Studio pages ---------- */
.studio-hero { position: relative; overflow: hidden; isolation: isolate; z-index: 0; color: #fff; padding: clamp(50px, 8vw, 100px) 0 clamp(60px, 8vw, 110px); background: radial-gradient(800px 400px at 85% 10%, color-mix(in srgb, var(--c) 70%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, var(--navy)), var(--navy) 70%); }
.studio-hero.has-photo { background-color: var(--navy); background-image: var(--hero-bg); background-size: cover; background-position: center; min-height: 0; display: block; }
.studio-hero.has-photo .hero-overlay { background: linear-gradient(90deg, color-mix(in srgb, var(--navy) 95%, #000) 0%, color-mix(in srgb, var(--c) 55%, var(--navy)) 55%, color-mix(in srgb, var(--c) 25%, transparent) 100%); opacity: .92; }
.studio-hero-pattern { position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.studio-hero-inner { position: relative; z-index: 1; max-width: var(--container); }
.studio-hero h1 { color: #fff; font-size: clamp(2.3rem, 5.5vw, 4rem); max-width: 760px; margin: 18px 0 14px; }
.studio-hero .hero-lead { color: rgba(255, 255, 255, .86); max-width: 640px; font-size: clamp(1.03rem, 1.6vw, 1.2rem); }
.studio-hero .breadcrumbs, .studio-hero .breadcrumbs a { color: rgba(255, 255, 255, .7); }
.studio-hero .btn-outline { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: #fff; }
.studio-hero .btn-outline:hover { background: #fff; color: var(--navy); }
.studio-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-weight: 600; font-size: .85rem; backdrop-filter: blur(8px); }
.studio-hero-icon { position: absolute; right: 2%; top: 50%; transform: translateY(-50%) rotate(-8deg); font-size: clamp(8rem, 18vw, 15rem); color: rgba(255, 255, 255, .12); z-index: -1; animation: float 8s ease-in-out infinite; }
.btn-accent { background: var(--c); box-shadow: 0 10px 30px -8px var(--c); }
.btn-accent:hover { background: color-mix(in srgb, var(--c) 85%, #000); }
main[data-studio] .eyebrow { color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); border-color: color-mix(in srgb, var(--c) 25%, transparent); }
main[data-studio] .grad-text { background: linear-gradient(100deg, var(--c) 10%, color-mix(in srgb, var(--c) 50%, var(--brand-2)) 60%, var(--green)); -webkit-background-clip: text; background-clip: text; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.svc-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: .3s var(--ease); position: relative; overflow: hidden; }
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.svc-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.svc-badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.svc-badges span { font-size: .72rem; font-weight: 600; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.svc-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.svc-card p { color: var(--muted); font-size: .92rem; }
.svc-card ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; align-content: start; flex: 1; }
.svc-card li { font-size: .86rem; color: var(--text-2); display: flex; gap: 8px; }
.svc-card li i { color: var(--c); margin-top: 4px; font-size: .72rem; }
.svc-link { font-weight: 700; font-size: .88rem; color: var(--c); display: inline-flex; gap: 8px; align-items: center; }
.svc-link:hover { color: var(--c); }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.hl-item { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.hl-item > i { width: 56px; height: 56px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--c); margin-bottom: 14px; box-shadow: 0 12px 24px -12px var(--c); }
.hl-item h3 { font-size: 1.05rem; }
.hl-item p { color: var(--muted); font-size: .9rem; margin: 0; }
main[data-studio] .process-num { color: color-mix(in srgb, var(--c) 22%, transparent); }
main[data-studio] .process { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.studio-cta { background: linear-gradient(120deg, var(--navy), var(--c) 80%); }
.btn-outline-white { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.other-title { text-align: center; margin: 46px 0 18px; font-size: 1.2rem; }
.mini-studios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.mini-studio { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: .25s; }
.mini-studio:hover { border-color: var(--c); color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-studio > i:first-child { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c); }
.mini-studio div { flex: 1; min-width: 0; }
.mini-studio strong { display: block; }
.mini-studio span { color: var(--muted); font-size: .85rem; }
.mini-studio > i:last-child { color: var(--c); }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; }
.footer-contact i { color: #7FA8F5; width: 16px; }
.footer-contact + .newsletter { margin-top: 16px; }

/* Quote / booking forms in modal */
.quote-product { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 18px; }
.quote-product > i { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: #7C3AED; color: #fff; }
.quote-product strong { display: block; }
.quote-product span { color: var(--muted); font-size: .86rem; }
.ref-box { text-align: center; padding: 26px 10px 10px; }
.ref-box > i { font-size: 3rem; color: var(--green); margin-bottom: 10px; }
.ref-code { display: inline-flex; gap: 10px; align-items: center; font-family: ui-monospace, monospace; font-size: 1.5rem; font-weight: 800; letter-spacing: .12em; padding: 10px 18px; border-radius: 12px; background: var(--brand-50); color: var(--brand); border: 1px dashed var(--brand); margin: 10px 0 16px; }
.ref-code button { border: 0; background: none; color: inherit; font-size: 1rem; }

/* ---------- Booking wizard ---------- */
.booking-hero .btn-row { margin-top: 16px; }
.wizard { max-width: 980px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.wz-steps { list-style: none; margin: 0; padding: 18px 22px; display: flex; gap: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow-x: auto; }
.wz-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.wz-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-2); font-size: .78rem; }
.wz-steps li.active { color: var(--brand); background: var(--brand-50); }
.wz-steps li.active span { background: var(--brand); color: #fff; border-color: var(--brand); }
.wz-steps li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.wz-steps li { transition: background .2s, color .2s; }
.wz-steps li.can-go { cursor: pointer; color: var(--text); }
.wz-steps li.can-go:hover, .wz-steps li.can-go:focus-visible { background: var(--surface); box-shadow: 0 0 0 1.5px var(--line-2); outline: none; }
.wz-steps li.can-go:hover span { transform: scale(1.08); }
.wz-steps li span { transition: transform .2s; }
.wz-body { padding: clamp(20px, 4vw, 34px); }
.wz-panel { display: none; animation: fadeUp .35s var(--ease); }
.wz-panel.active { display: block; }
.wz-panel h2 { font-size: 1.4rem; margin-bottom: 18px; }
.wz-studios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.wz-studio { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 20px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); transition: .2s; }
.wz-studio > i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: var(--c); margin-bottom: 6px; }
.wz-studio strong { font-size: 1.05rem; }
.wz-studio span { color: var(--muted); font-size: .86rem; }
.wz-studio em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--c); }
.wz-studio:hover, .wz-studio.selected { border-color: var(--c); box-shadow: 0 10px 26px -14px var(--c); transform: translateY(-2px); }
.wz-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.wz-service { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); transition: .15s; }
.wz-service > i:first-child { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.wz-service div { flex: 1; min-width: 0; }
.wz-service strong { display: block; font-size: .95rem; }
.wz-service span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.wz-service em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--c); }
.wz-check { color: var(--line-2); margin-top: 2px; }
.wz-service:hover { border-color: var(--c); }
.wz-service.selected { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.wz-service.selected .wz-check { color: var(--c); }
.wz-modes { display: flex; gap: 10px; flex-wrap: wrap; }
.wz-modes label { cursor: pointer; }
.wz-modes label { position: relative; }
.wz-modes input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.wz-modes span { display: inline-flex; gap: 8px; align-items: center; padding: 11px 16px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; }
.wz-modes input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.wz-modes input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.wz-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.wz-time { padding: 9px 4px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; }
.wz-time:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.wz-time.selected, .wz-time.selected:hover:not([disabled]) { background: var(--brand); color: #fff; border-color: var(--brand); }
.wz-time[disabled] { opacity: .4; cursor: not-allowed; }
.hint-line { color: var(--muted); font-size: .88rem; margin-top: 14px; display: flex; gap: 8px; align-items: baseline; }
.hint-line i { color: var(--brand); }
.wz-foot { display: flex; gap: 10px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.wz-foot .spacer { flex: 1; }
.wz-foot:has(#wz-back[hidden]):has(#wz-next[hidden]) { display: none; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.review-list div { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.review-list .full { grid-column: 1 / -1; }
.review-list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.review-list dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .review-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tracking & status ---------- */
.track-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 24px; }
.track-form input { flex: 1; font-family: ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.track-card { max-width: 760px; margin: 0 auto; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.track-card header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.track-card h3 { margin: 4px 0; }
.track-card header p { margin: 0; color: var(--muted); font-size: .9rem; }
.track-card small { color: var(--muted); }
.timeline-h { list-style: none; padding: 0; margin: 0; display: flex; gap: 0; overflow-x: auto; }
.timeline-h li { flex: 1; min-width: 90px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .76rem; font-weight: 600; color: var(--muted); position: relative; }
.timeline-h li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline-h li:first-child::before { display: none; }
.timeline-h li span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line); position: relative; z-index: 1; font-size: .8rem; }
.timeline-h li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.timeline-h li.done::before, .timeline-h li.current::before { background: var(--green); }
.timeline-h li.current span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 20%, transparent); }
.timeline-h li.current { color: var(--brand); }
.status-banner { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); display: flex; gap: 10px; align-items: center; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.confirmed, .status.quoted, .status.approved, .status.active, .status.in-production { color: var(--brand); background: var(--brand-50); }
.status.completed, .status.delivered, .status.ready, .status.done { color: #078a52; background: color-mix(in srgb, var(--green) 14%, transparent); }
.status.pending, .status.requested { color: #9a6700; background: color-mix(in srgb, var(--amber) 20%, transparent); }
.status.cancelled, .status.declined { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }

/* ---------- Client portal ---------- */
.portal-main { min-height: 70vh; }
.boot-loader { min-height: 60vh; display: grid; place-items: center; }
.boot-loader img { animation: float 1.6s ease-in-out infinite; border-radius: 14px; }
.portal-auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; width: min(100% - 32px, 1100px); margin: clamp(24px, 5vw, 60px) auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.portal-auth-art { padding: clamp(28px, 5vw, 52px); color: #fff; background: radial-gradient(500px 300px at 90% 0%, rgba(255, 255, 255, .14), transparent 70%), linear-gradient(150deg, var(--navy), var(--brand) 80%); }
.portal-auth-art h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 16px 0 22px; }
.portal-auth-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.portal-auth-art li { display: flex; gap: 12px; align-items: center; opacity: .95; }
.portal-auth-art li i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); flex: none; }
.eyebrow.on-dark { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.portal-auth-card { padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; align-content: center; }
.portal-auth-card form { display: grid; gap: 14px; }
.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.btn-google { background: var(--surface); border: 1.5px solid var(--line); color: var(--text); }
.btn-google:hover { border-color: var(--brand); color: var(--text); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
@media (max-width: 820px) { .portal-auth { grid-template-columns: minmax(0, 1fr); } .portal-auth-art { display: none; } }

.portal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 30px 0 60px; align-items: start; }
.portal-side { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 12px; }
.portal-me { display: flex; gap: 12px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.portal-me div { min-width: 0; }
.portal-me strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-me small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-side nav { display: grid; gap: 2px; }
.portal-side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 500; }
.portal-side nav a i { width: 20px; text-align: center; color: var(--muted); }
.portal-side nav a:hover { background: var(--surface-2); color: var(--text); }
.portal-side nav a.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.portal-side nav a.active i { color: var(--brand); }
.side-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; }
.portal-side-foot { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .portal { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 14px; }
  .portal-side { position: static; padding: 12px; gap: 10px; }
  .portal-me { padding: 2px 2px 10px; }
  .portal-me .avatar { width: 40px !important; height: 40px !important; }
  /* Tabs become a swipeable row of pills; the fade on the right hints there is more. */
  .portal-side nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 2px; margin: 0 -2px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .portal-side nav::-webkit-scrollbar { display: none; }
  .portal-side nav a { flex: none; white-space: nowrap; padding: 8px 13px; border-radius: 99px; border: 1px solid var(--line); font-size: .9rem; scroll-snap-align: start; gap: 8px; }
  .portal-side nav a.active { border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
  .portal-side nav a:last-child { margin-right: 28px; }
  .portal-side-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 10px; }
  .portal-side-foot .btn { padding-inline: 8px; font-size: .8rem; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) { .portal-side-foot .btn i { display: none; } .portal-side-foot .btn { font-size: .76rem; padding-inline: 6px; } }
.portal-view:focus { outline: none; }
.pv-head { margin-bottom: 20px; }
.pv-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.pv-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 4px; }
.pv-head p { color: var(--muted); margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: .2s; }
a.kpi:hover { border-color: var(--c); color: var(--text); transform: translateY(-2px); }
.kpi i { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.kpi small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.kpi strong { display: block; font-family: var(--font-display); font-size: 1.7rem; margin-top: 6px; }
.pv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .pv-grid { grid-template-columns: minmax(0, 1fr); } }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-50); border: 1px solid var(--brand-100); font-size: .92rem; color: var(--text-2); }
.callout > i { color: var(--brand); margin-top: 3px; }
.callout.warn { background: color-mix(in srgb, var(--amber) 14%, var(--surface)); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.callout.warn > i { color: #b07a00; }
.p-list { display: grid; gap: 16px; }
.p-item { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.p-item header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.p-item header small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.p-item h3 { margin: 2px 0 4px; font-size: 1.12rem; }
.p-item header p { margin: 0; color: var(--muted); font-size: .9rem; }
.p-item h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.note { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: .9rem; color: var(--text-2); }
.note i { color: var(--brand); margin-right: 4px; }
.btn.danger { color: var(--red); }
.quote-box { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, transparent); background: var(--brand-50); }
.quote-box small { color: var(--muted); font-weight: 600; }
.quote-box strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); }
.quote-box p { margin: 4px 0 0; color: var(--text-2); font-size: .88rem; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; flex: 1; border: 1px solid var(--line); }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--green)); }
.progress.big { height: 12px; }
.progress-row { display: flex; gap: 12px; align-items: center; }
.mini-proj { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mini-proj:last-child { border-bottom: 0; }
.mini-proj div:first-child { flex: 1.4; min-width: 0; }
.mini-proj strong { display: block; font-size: .93rem; }
.mini-proj small { color: var(--muted); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.stages, .files, .updates { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.stages li { color: var(--muted); }
.stages li.done { color: var(--text); }
.stages li.done i { color: var(--green); }
.updates time { font-weight: 700; font-size: .78rem; color: var(--muted); margin-right: 6px; }
.inv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 8px; }
.inv dt { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.inv dd { margin: 0; font-weight: 700; }
.inv .due { color: var(--red); }
.inv .ok { color: var(--green); }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.quick-actions a { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .92rem; }
.quick-actions a i { color: var(--brand); font-size: 1.1rem; }
.quick-actions a:hover { border-color: var(--brand); background: var(--brand-50); color: var(--text); }
.chat { padding: 0; display: flex; flex-direction: column; height: min(70vh, 640px); overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.bubble { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 16px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { display: block; font-size: .72rem; opacity: .7; margin-top: 4px; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); padding: 11px 14px; max-height: 140px; color: var(--text); }
.chat-form textarea:focus { outline: none; border-color: var(--brand); }

/* ---------- Portal: testimonial ---------- */
.star-field { border: 0; padding: 0; margin: 0 0 18px; }
.star-field legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.star-input { position: relative; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; width: max-content; }
.star-input input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.7rem; color: var(--line); cursor: pointer; transition: transform .15s var(--ease), color .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--amber); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.star-field:disabled .star-input label { cursor: not-allowed; opacity: .6; }
.review-state { margin-bottom: 18px; }
.review-state.confirmed { background: color-mix(in srgb, var(--green, #16a34a) 10%, var(--surface)); border-color: color-mix(in srgb, var(--green, #16a34a) 35%, transparent); }
.review-state.confirmed > i { color: var(--green, #16a34a); }
.review-state.pending { background: color-mix(in srgb, var(--amber) 12%, var(--surface)); border-color: color-mix(in srgb, var(--amber) 38%, transparent); }
.review-state.pending > i { color: #b07a00; }
.review-state.cancelled > i { color: var(--muted); }

/* ---------- Public invoice page ---------- */
.invoice-page { min-height: 100vh; background: radial-gradient(80% 50% at 50% 0%, var(--brand-50), transparent 70%), var(--bg); }
.inv-bar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(16px, calc((100vw - 860px) / 2)); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.inv-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-main { padding: 26px 16px 60px; }
.inv-banner { max-width: 820px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--text-2); }
.inv-banner.ok { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.inv-banner.bad { background: color-mix(in srgb, var(--red) 10%, var(--surface)); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.inv-banner i { margin-right: 6px; }
.inv-msg { max-width: 520px; margin: 60px auto; text-align: center; }
.inv-msg > i { font-size: 2.6rem; color: var(--brand); }
.inv-msg h1 { font-size: 1.6rem; margin: 14px 0 8px; }
.inv-msg p { color: var(--muted); margin-bottom: 20px; }

/* Portal chat fills the screen like a messaging app */
.portal-chat { padding: 0 !important; height: calc(100vh - 250px); min-height: 460px; overflow: hidden; border-radius: 18px; }
@media (max-width: 760px) { .portal-chat { height: calc(100vh - 200px); border-radius: 14px; margin-inline: -4px; } .chat-head-row p { display: none; } body[data-ptab="messages"] .wa-float, body[data-ptab="messages"] .cz-toggle, body[data-ptab="messages"] .to-top { display: none; } }

/* Portal sign-in feedback */
.auth-msg { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 11px 14px; border-radius: 12px; font-size: .9rem; font-weight: 500; line-height: 1.45; }
.auth-msg i { margin-top: 3px; }
.auth-msg.error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.auth-msg.ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
[data-theme="dark"] .auth-msg.error { background: rgba(239, 68, 68, .12); color: #FCA5A5; border-color: rgba(239, 68, 68, .35); }
[data-theme="dark"] .auth-msg.ok { background: rgba(16, 185, 129, .12); color: #6EE7B7; border-color: rgba(16, 185, 129, .35); }
.auth-msg.shake { animation: auth-shake .4s; }
@keyframes auth-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.portal-auth-card input[aria-invalid="true"] { border-color: #EF4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important; }
@media (prefers-reduced-motion: reduce) { .auth-msg.shake { animation: none; } }

/* Client photo picker (profile + testimonial) */
.photo-pick { display: flex; gap: 18px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.photo-pick > .avatar { flex: none; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--brand-50, rgba(37, 99, 235, .12)), var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, .08)); }
.photo-pick p { margin: 4px 0 10px; }
.photo-pick .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-pick label.btn { cursor: pointer; }
.photo-pick .btn.disabled { opacity: .6; pointer-events: none; }
.photo-pick.sm { padding: 0; margin: 0; border: 0; gap: 14px; }
@media (max-width: 520px) { .photo-pick:not(.sm) { flex-direction: column; text-align: center; } .photo-pick .btn-row { justify-content: center; } }

/* Product discount presentation */
.product-facts dd .price-was { display: inline-block; color: var(--muted); font-size: .82rem; text-decoration: line-through; margin-right: 5px; }
.product-facts dd .price-sale { display: inline-block; color: var(--text); font-size: 1.05rem; font-weight: 850; }
.product-facts dd .price-discount { display: block; margin-top: 3px; color: var(--green, #0f8b58); font-size: .65rem; font-weight: 800; letter-spacing: .07em; }
