/* ===================================================================
   Codes Soft - design system
   Identity taken from the logo: electric cyan + mid blue ribbons over a deep
   ocean navy. Mood: precise, technical, confident.
   Type: Sora (display) + Inter (text). Motion: eased, short, and switched off
   for visitors who prefer reduced motion.
=================================================================== */

:root {
	/* Logo-derived palette */
	--navy-950: #04131e;
	--navy-900: #071f31;
	--navy-800: #0a2e48;
	--navy-700: #0f4166;
	--blue-600: #1478b8;
	--blue-500: #1e90d8;
	--cyan-400: #38bdf8;
	--cyan-300: #7dd3fc;
	--cyan-100: #e0f4ff;

	/* Neutrals */
	--ink: #0a1b29;
	--muted: #587087;
	--line: #dce6ee;
	--bone: #f3f7fa;
	--white: #fff;
	--danger: #e5484d;
	--success: #12a37a;

	--grad-brand: linear-gradient(120deg, #38bdf8 0%, #1e90d8 50%, #0f4166 100%);
	--grad-text: linear-gradient(100deg, #7dd3fc 0%, #38bdf8 40%, #1e90d8 100%);

	--font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--r-sm: 12px;
	--r-md: 20px;
	--r-lg: 32px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--shadow-soft: 0 1px 2px rgba(7, 31, 49, 0.06), 0 12px 32px -12px rgba(7, 31, 49, 0.18);
	--shadow-lift: 0 2px 4px rgba(7, 31, 49, 0.08), 0 30px 60px -20px rgba(7, 31, 49, 0.35);
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
	font-family: var(--font-text);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
::selection { background: var(--cyan-400); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }

/* Frappe web-template wrapper reset (same approach as the GOTIK pages).
   templates/web.html wraps our markup in #page-<name> > .page-content-wrapper >
   main.container > .page_content, which add padding and a max-width.
   display:contents drops those boxes from layout without touching the DOM, so
   our header / main / footer become direct flex children of body and run
   full width. frappe.call and CSRF keep working. */
[id^="page-"],
.page-content-wrapper,
main.container,
.page_content,
.page-content { display: contents; }

.page-breadcrumbs,
.page-header-wrapper,
.page-header,
.page-footer { display: none !important; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal]:not(.is-in) {
	opacity: 0;
	transform: translateY(28px);
	/* If the script never runs, show everything after a moment. */
	animation: csShow 0.01s 2.5s forwards;
}
[data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
@keyframes csShow { to { opacity: 1; transform: none; } }

/* Headline word-by-word reveal */
.split-ready .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.2em; margin: 0 0.14em -0.2em 0; }
.split-ready .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.split-ready.is-in .w > span { transform: none; }

/* Skeleton shimmer while prices load */
.skeleton { position: relative; color: transparent !important; border-radius: 8px; background: linear-gradient(90deg, rgba(120, 150, 175, 0.15) 25%, rgba(120, 150, 175, 0.3) 50%, rgba(120, 150, 175, 0.15) 75%); background-size: 200% 100%; animation: csShimmer 1.4s linear infinite; user-select: none; }
@keyframes csShimmer { to { background-position: -200% 0; } }

/* ---------- Buttons ---------- */
.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 0 26px; height: 52px; border-radius: 999px; border: 1px solid transparent;
	font: 600 15px/1 var(--font-text); letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
	overflow: hidden; isolation: isolate;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-lg { height: 60px; padding: 0 34px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { color: var(--navy-950); background: var(--grad-brand); background-size: 160% 100%; background-position: 0 0; box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.7); }
.btn-primary::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(56, 189, 248, 0.85); transform: translateY(-2px); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { color: inherit; border-color: rgba(125, 150, 170, 0.45); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan-400); color: var(--cyan-400); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255, 255, 255, 0.5); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before {
	content: ""; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid rgba(4, 19, 30, 0.25); border-top-color: var(--navy-950); animation: csSpin 0.7s linear infinite;
}
@keyframes csSpin { to { transform: rotate(360deg); } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad-brand); }

/* ---------- Header ---------- */
.hdr {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
	color: var(--white); background: rgba(4, 19, 30, 0.55);
	-webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	transition: transform 0.5s var(--ease), background 0.4s, box-shadow 0.4s;
}
.hdr.is-scrolled { background: rgba(4, 19, 30, 0.88); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.6); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-inner { height: 100%; display: flex; align-items: center; gap: 36px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 20px/1 var(--font-display); letter-spacing: -0.04em; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: #eef2f4; display: grid; place-items: center; overflow: hidden; transition: transform 0.6s var(--ease); }
.brand-mark img { width: 30px; height: 30px; object-fit: contain; mix-blend-mode: multiply; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name span { color: var(--cyan-400); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { position: relative; padding: 10px 14px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.78); border-radius: 999px; transition: color 0.3s; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--white); }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--cyan-400); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s var(--ease); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link .chev { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.nav-item { position: relative; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }

.menu {
	position: absolute; top: calc(100% + 14px); left: -20px; width: 340px; padding: 10px;
	background: rgba(7, 31, 49, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--r-md);
	box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
	opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.98); transform-origin: 30px 0;
	transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0.35s;
}
.nav-item:hover .menu, .nav-item:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.menu-link { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; transition: background 0.3s, transform 0.4s var(--ease); }
.menu-link:hover { background: rgba(56, 189, 248, 0.1); transform: translateX(4px); }
.menu-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(56, 189, 248, 0.14); color: var(--cyan-400); }
.menu-icon svg { width: 22px; height: 22px; }
.menu-text strong { display: block; font: 600 15px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--white); }
.menu-text span { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr-actions .btn { height: 44px; padding: 0 20px; font-size: 14px; }
.hdr-actions .btn-ghost { color: var(--white); }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.5s var(--ease), opacity 0.3s, top 0.5s var(--ease); }
.burger i:nth-child(1) { top: 16px; }
.burger i:nth-child(2) { top: 22px; }
.burger i:nth-child(3) { top: 28px; }
.menu-open .burger i:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Full-screen mobile menu */
.mnav {
	position: fixed; inset: 0; z-index: 90; padding: calc(var(--header-h) + 24px) 28px 32px;
	background: var(--navy-950); color: var(--white); display: flex; flex-direction: column; gap: 6px;
	clip-path: circle(0 at calc(100% - 46px) 38px); transition: clip-path 0.8s var(--ease); visibility: hidden;
}
.menu-open .mnav { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; }
.menu-open { overflow: hidden; }
.mnav a.mlink { font: 700 clamp(30px, 8vw, 44px)/1.15 var(--font-display); letter-spacing: -0.04em; padding: 8px 0; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.mnav a.mlink small { display: block; font: 500 14px/1.4 var(--font-text); letter-spacing: 0; color: rgba(255, 255, 255, 0.5); }
.menu-open .mnav a.mlink { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + 250ms); }
.mnav-actions { margin-top: auto; display: grid; gap: 12px; }
.mnav-actions .btn-ghost { color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 56px) 0 96px; color: var(--white); background: var(--navy-950); overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
	content: ""; position: absolute; inset: -20%;
	background:
		radial-gradient(40% 40% at 78% 28%, rgba(56, 189, 248, 0.34), transparent 70%),
		radial-gradient(45% 45% at 12% 92%, rgba(30, 144, 216, 0.28), transparent 70%),
		radial-gradient(35% 35% at 55% 60%, rgba(15, 65, 102, 0.55), transparent 70%);
	animation: csDrift 18s ease-in-out infinite alternate;
}
.hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(125, 211, 252, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 211, 252, 0.07) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%);
}
@keyframes csDrift { to { transform: translate3d(3%, -2%, 0) scale(1.08); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--font-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan-400); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero-title { margin-top: 26px; font-weight: 800; font-size: clamp(2.8rem, 6.6vw, 6rem); letter-spacing: -0.05em; line-height: 0.98; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 28px; max-width: 520px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta .btn-ghost { color: var(--white); }
.hero-meta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 14px 32px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--cyan-400); }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan-400); animation: csWheel 1.8s var(--ease) infinite; }
@keyframes csWheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- UI mockups (built in CSS, no images) ---------- */
.hero-visual { position: relative; height: min(620px, 70vh); }
.m-layer { position: absolute; transform: translate3d(calc(var(--mx, 0) * var(--depth, 0) * 1px), calc(var(--my, 0) * var(--depth, 0) * 1px), 0); transition: transform 0.6s var(--ease); }
.m-float { animation: csFloat 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes csFloat { 50% { transform: translateY(-14px); } }

.m-window { width: 100%; border-radius: 20px; background: #0c2a41; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(56, 189, 248, 0.08); overflow: hidden; }
.m-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.m-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.m-bar i:first-child { background: #ff6b6b; }
.m-bar i:nth-child(2) { background: #ffd166; }
.m-bar i:nth-child(3) { background: #4ade80; }
.m-url { margin-left: 14px; flex: 1; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.m-body { display: grid; grid-template-columns: 64px 1fr; min-height: 300px; }
.m-side { padding: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; border-right: 1px solid rgba(255, 255, 255, 0.07); }
.m-side .m-logo { width: 28px; height: 28px; border-radius: 9px; background: var(--grad-brand); margin-bottom: 8px; }
.m-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); }
.m-side i.on { background: rgba(56, 189, 248, 0.45); }
.m-main { padding: 20px; display: grid; gap: 16px; align-content: start; }
.m-head { display: flex; justify-content: space-between; align-items: center; }
.m-title { width: 38%; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.78); }
.m-pill { width: 70px; height: 26px; border-radius: 13px; background: rgba(56, 189, 248, 0.25); }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.m-stats div { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); display: grid; gap: 8px; }
.m-stats small { height: 8px; width: 50%; border-radius: 4px; background: rgba(255, 255, 255, 0.28); }
.m-stats b { height: 18px; width: 70%; border-radius: 6px; background: var(--grad-text); }
.m-chart { height: 110px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: flex-end; gap: 10px; }
.m-chart s { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--cyan-400), var(--blue-600)); height: var(--h); transform-origin: bottom; animation: csGrow 2.6s var(--ease) infinite alternate; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes csGrow { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
.m-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.m-row .av { width: 28px; height: 28px; border-radius: 50%; background: rgba(125, 211, 252, 0.4); flex: none; }
.m-row span { height: 9px; flex: 1; border-radius: 5px; background: rgba(255, 255, 255, 0.2); }
.m-row em { width: 44px; height: 18px; border-radius: 9px; background: rgba(18, 163, 122, 0.45); }

.m-phone { width: 100%; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 10px; background: linear-gradient(160deg, #1d4b6e, #071f31); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 50px 90px -25px rgba(0, 0, 0, 0.85), inset 0 0 0 2px rgba(255, 255, 255, 0.05); }
.m-screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: linear-gradient(180deg, #0e3552, #082338); padding: 38px 14px 14px; display: grid; gap: 12px; align-content: start; }
.m-notch { position: absolute; top: 10px; left: 50%; width: 72px; height: 20px; margin-left: -36px; border-radius: 12px; background: #020b12; }
.m-hello { display: flex; align-items: center; gap: 10px; }
.m-hello .av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-brand); }
.m-hello span { height: 10px; width: 50%; border-radius: 5px; background: rgba(255, 255, 255, 0.75); }
.m-card { padding: 14px; border-radius: 18px; background: var(--grad-brand); display: grid; gap: 10px; }
.m-card i { height: 8px; width: 40%; border-radius: 4px; background: rgba(4, 19, 30, 0.35); }
.m-card b { height: 22px; width: 65%; border-radius: 8px; background: rgba(255, 255, 255, 0.9); }
.m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-tiles i { height: 62px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); }
.m-tiles i:first-child { background: rgba(56, 189, 248, 0.2); }
.m-nav { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 44px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); display: flex; justify-content: space-around; align-items: center; }
.m-nav i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.3); }
.m-nav i.on { background: var(--cyan-400); }

.m-toast { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.95); color: var(--navy-900); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.6); width: max-content; }
.m-toast .ico { width: 36px; height: 36px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; color: var(--navy-950); }
.m-toast .ico svg { width: 20px; height: 20px; }
.m-toast div { display: grid; gap: 6px; }
.m-toast div i { height: 8px; border-radius: 4px; background: #c5d4df; }
.m-toast div i:first-child { width: 96px; background: var(--navy-800); }
.m-toast div i:last-child { width: 64px; }

.m-pay { width: 100%; padding: 22px; border-radius: 26px; color: var(--white); background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(15, 65, 102, 0.55)); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.75); display: grid; gap: 16px; }
.m-pay-top { display: flex; justify-content: space-between; align-items: center; }
.m-pay-top .chip-card { width: 40px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #fde68a, #f59e0b); opacity: 0.9; }
.m-pay-top .lock { width: 30px; height: 30px; color: var(--cyan-300); }
.m-pay-amt { height: 30px; width: 62%; border-radius: 10px; background: rgba(255, 255, 255, 0.88); }
.m-pay-line { height: 9px; width: 45%; border-radius: 5px; background: rgba(255, 255, 255, 0.3); }
.m-pay-btn { height: 44px; border-radius: 22px; background: var(--grad-brand); display: grid; place-items: center; }
.m-pay-btn svg { width: 22px; height: 22px; color: var(--navy-950); }
.m-pay-btn path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: csDraw 3s var(--ease) infinite; }
@keyframes csDraw { 0%, 15% { stroke-dashoffset: 30; } 45%, 100% { stroke-dashoffset: 0; } }

/* hero composition */
/* The phone screenshots carry transparent margins (the phone itself is ~68% of the file width),
   so the layer is wider than the visible phone. */
.hero-visual .m-win { top: 6%; left: -2%; width: 100%; --depth: 14; }
.hero-visual .m-ph { top: 14%; right: -9%; width: 54%; --depth: -22; z-index: 2; }
.hero-visual .m-pa { bottom: 0; left: 4%; width: 42%; --depth: 30; z-index: 3; }
.hero-visual .m-to { top: 1%; right: 10%; --depth: -34; z-index: 4; }
/* the drawn phone (used only if a screenshot is missing) keeps its original size */
.hero-visual .m-ph .m-phone { width: 58%; margin-left: auto; }

/* ---------- Sections ---------- */
.sec { padding: clamp(88px, 12vw, 168px) 0; position: relative; }
.sec-dark { background: var(--navy-950); color: var(--white); overflow: hidden; }
.sec-bone { background: var(--bone); }
.sec-head { max-width: 780px; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head h2 { margin-top: 20px; font-size: clamp(2.2rem, 4.8vw, 4rem); font-weight: 700; letter-spacing: -0.045em; }
.sec-head p { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.sec-dark .sec-head p { color: rgba(255, 255, 255, 0.62); }

/* Product panels: editorial rows instead of a card grid */
.panels { display: grid; gap: clamp(28px, 4vw, 48px); }
.panel { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.panel:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.panel.flip .panel-visual { order: -1; }
.panel-copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.panel-num { font: 700 14px/1 var(--font-display); letter-spacing: 0.12em; color: var(--blue-500); display: flex; align-items: center; gap: 14px; }
.panel-num::after { content: ""; width: 60px; height: 1px; background: var(--line); }
.panel-title { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 700; letter-spacing: -0.045em; }
.panel-desc { color: var(--muted); font-size: 1.08rem; max-width: 460px; }
.panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.panel-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.panel-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--blue-500); }
.panel-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 8px; }
.panel-price { display: grid; gap: 4px; }
.panel-price strong { font: 700 1.5rem/1.1 var(--font-display); letter-spacing: -0.04em; }
.panel-price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.bill-note { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--cyan-100); color: var(--blue-600); font: 600 13px/1.3 var(--font-text); }
.chip:empty { display: none; }
.panel-visual { position: relative; min-height: 440px; display: grid; place-items: center; padding: 40px; overflow: hidden; background: radial-gradient(70% 70% at 50% 40%, var(--navy-700), var(--navy-950)); color: var(--white); isolation: isolate; }
.panel-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(125, 211, 252, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 211, 252, 0.07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.panel-visual .stage { position: relative; width: min(100%, 420px); transition: transform 0.9s var(--ease); }
.panel:hover .panel-visual .stage { transform: scale(1.04) rotate(-1.2deg); }
.stage-phone { width: min(60%, 230px); margin-inline: auto; }
.stage > .m-toast { position: absolute; left: -2%; bottom: 20%; z-index: 2; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.step { padding: 36px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.step-num { font: 800 clamp(64px, 8vw, 112px)/1 var(--font-display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(125, 211, 252, 0.6); transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s; }
.step:hover .step-num { color: var(--cyan-400); -webkit-text-stroke-color: var(--cyan-400); }
.step h3 { margin-top: 18px; font-size: 1.5rem; font-weight: 600; }
.step p { margin-top: 10px; color: rgba(255, 255, 255, 0.6); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(230px, auto); gap: 20px; }
.b-tile { position: relative; padding: 32px; border-radius: var(--r-lg); background: var(--bone); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.b-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.b-tile h3 { font-size: 1.6rem; font-weight: 600; }
.b-tile p { color: var(--muted); max-width: 380px; }
.b-icon { position: absolute; top: 28px; left: 32px; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--white); color: var(--blue-500); box-shadow: var(--shadow-soft); transition: transform 0.6s var(--ease); }
.b-tile:hover .b-icon { transform: rotate(-8deg) scale(1.08); }
.b-icon svg { width: 28px; height: 28px; }
.b-1 { grid-column: span 3; grid-row: span 2; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--white); border-color: transparent; }
.b-1 p { color: rgba(255, 255, 255, 0.65); }
.b-1 .b-icon { position: absolute; background: rgba(56, 189, 248, 0.16); color: var(--cyan-400); box-shadow: none; z-index: 1; }
.b-1 > :not(.b-icon) { position: relative; z-index: 1; }
.b-1::after { content: ""; position: absolute; top: -20%; right: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%); }
.b-2 { grid-column: span 3; }
.b-3 { grid-column: span 3; }
.b-4 { grid-column: span 6; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; background: var(--cyan-100); border-color: transparent; }
.b-4 .b-icon { position: static; }
.b-4 .b-4-copy { flex: 1 1 320px; display: grid; gap: 8px; }
.code { font: 500 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 16px 20px; border-radius: 16px; background: var(--navy-900); color: var(--cyan-300); overflow-wrap: anywhere; }
.code b { color: var(--white); font-weight: 500; }
.b-4 .code { flex: 0 1 420px; }

/* CTA */
.cta { position: relative; padding: clamp(96px, 14vw, 200px) 0; color: var(--white); text-align: center; background: var(--navy-950); overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 100%, rgba(56, 189, 248, 0.38), transparent 70%), radial-gradient(40% 40% at 90% 0%, rgba(30, 144, 216, 0.3), transparent 70%); }
.cta h2 { font-size: clamp(2.6rem, 7vw, 6.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.cta p { margin: 28px auto 0; max-width: 520px; color: rgba(255, 255, 255, 0.68); font-size: 1.15rem; }
.cta .btn { margin-top: 44px; }

/* ---------- Footer ---------- */
.ftr { position: relative; background: var(--navy-950); color: rgba(255, 255, 255, 0.7); padding: 80px 0 0; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ftr .brand { color: var(--white); }
.ftr p { margin-top: 18px; max-width: 320px; font-size: 15px; }
.ftr h4 { font: 600 12px/1 var(--font-text); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 20px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ftr a { transition: color 0.3s; }
.ftr a:hover { color: var(--cyan-400); }
.ftr-word { margin-top: 56px; font: 800 clamp(40px, 11vw, 170px)/0.8 var(--font-display); letter-spacing: -0.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(125, 211, 252, 0.28); text-align: center; user-select: none; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.ftr-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 14px; color: rgba(255, 255, 255, 0.45); }

/* ---------- Configuration pages ---------- */
.cfg-hero { position: relative; padding: calc(var(--header-h) + 64px) 0 72px; background: var(--navy-950); color: var(--white); overflow: hidden; isolation: isolate; }
.cfg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 90% 10%, rgba(56, 189, 248, 0.3), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(30, 144, 216, 0.22), transparent 70%); }
.cfg-hero .container { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 36px; font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, 0.6); transition: color 0.3s, gap 0.4s var(--ease); }
.back:hover { color: var(--cyan-400); gap: 12px; }
.back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.cfg-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.05em; }
.cfg-hero p { margin-top: 18px; max-width: 520px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.68); }
.cfg-art { width: 230px; }
.cfg-art.is-window { width: 300px; }
.cfg-art.is-phone { width: 150px; }
.cfg-art.is-pay { width: 300px; }

.cfg { background: var(--bone); padding: 56px 0 120px; }
.cfg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.cfg-form { display: grid; gap: 20px; }
.cfg-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(24px, 3vw, 36px); transition: box-shadow 0.5s var(--ease), border-color 0.5s; }
.cfg-step:focus-within { box-shadow: var(--shadow-soft); border-color: rgba(56, 189, 248, 0.6); }
.cfg-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cfg-step-head i { font: 700 13px/1 var(--font-display); font-style: normal; letter-spacing: 0.08em; color: var(--blue-500); background: var(--cyan-100); padding: 8px 10px; border-radius: 10px; }
.cfg-step-head h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .label { font-weight: 600; font-size: 15px; }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="number"], .field select, .field textarea {
	width: 100%; padding: 15px 18px; font: 500 16px/1.4 var(--font-text); color: var(--ink);
	background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; transition: border-color 0.3s, box-shadow 0.3s;
	appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23587087' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 46px; cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7c9d8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-400); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2); }
.field textarea { resize: vertical; min-height: 110px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); animation: csShake 0.45s; }
@keyframes csShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.field-error { color: var(--danger); font-size: 14px; font-weight: 500; }
.field-error:empty { display: none; }
.hint { font-size: 14px; color: var(--muted); }
.help { padding: 14px 18px; border-radius: 14px; background: var(--cyan-100); color: var(--navy-800); font-size: 14.5px; line-height: 1.6; animation: csFadeUp 0.5s var(--ease); }
.help a { text-decoration: underline; font-weight: 600; }
.help[hidden] { display: none; }
@keyframes csFadeUp { from { opacity: 0; transform: translateY(8px); } }
.cur { color: var(--muted); font-weight: 500; }

/* Option tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tiles.stack { grid-template-columns: 1fr; }
.tile { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); cursor: pointer; transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease), box-shadow 0.4s; font-weight: 400 !important; }
.tile:hover { border-color: #9fc4de; transform: translateY(-2px); }
.tile input { position: absolute !important; opacity: 0 !important; width: 0 !important; height: 0 !important; margin: 0 !important; pointer-events: none; }
.tile .dot { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 2px solid #b7c9d8; display: grid; place-items: center; transition: border-color 0.3s, background 0.3s; }
.tile .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--navy-950); transform: scale(0); transition: transform 0.4s var(--ease); }
.tile strong { display: block; font: 600 16px/1.3 var(--font-display); letter-spacing: -0.02em; }
.tile em { display: block; margin-top: 4px; font-style: normal; font-size: 14px; color: var(--muted); }
.tile em:empty { display: none; }
.tile .save { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--success); color: #fff; font: 600 12px/1.3 var(--font-text); }
.tile .save:empty { display: none; }
.tile:has(input:checked) { border-color: var(--cyan-400); background: linear-gradient(180deg, var(--cyan-100), #fff); box-shadow: 0 10px 30px -14px rgba(30, 144, 216, 0.5); }
.tile:has(input:checked) .dot { border-color: var(--cyan-400); background: var(--cyan-400); }
.tile:has(input:checked) .dot::after { transform: scale(1); }
.tile:has(input:focus-visible) { outline: 2px solid var(--cyan-400); outline-offset: 2px; }

/* Switch */
/* Toggle: a real <button role="switch">, so Frappe's checkbox and label styles cannot interfere. */
.switch {
	display: flex; align-items: center; gap: 16px; width: 100%; margin: 0; padding: 18px 20px;
	border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink);
	font: inherit; text-align: left; cursor: pointer; box-shadow: none;
	-webkit-appearance: none; appearance: none;
	transition: border-color 0.3s, background 0.3s;
}
.switch:hover { border-color: #9fc4de; }
.switch:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; }
.switch .track { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: #c5d4df; transition: background 0.4s var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.5s var(--ease); }
.switch[aria-checked="true"] { border-color: var(--cyan-400); background: var(--cyan-100); }
.switch[aria-checked="true"] .track { background: var(--blue-500); }
.switch[aria-checked="true"] .track::after { transform: translateX(22px); }
.switch-text { display: grid; gap: 2px; min-width: 0; }
.switch strong { display: block; font: 600 16px/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.switch em { display: block; font-style: normal; font-size: 14px; color: var(--muted); }
.switch em:empty { display: none; }
.reveal-box { animation: csFadeUp 0.5s var(--ease); }
.reveal-box[hidden] { display: none; }

/* Order summary */
.summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: var(--r-md); background: linear-gradient(170deg, var(--navy-800), var(--navy-950)); color: var(--white); overflow: hidden; box-shadow: var(--shadow-lift); }
.summary::before { content: ""; position: absolute; top: -40%; right: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%); pointer-events: none; }
.summary > * { position: relative; }
.summary h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; letter-spacing: -0.03em; }
.sum-line { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; color: rgba(255, 255, 255, 0.78); border-bottom: 1px dashed rgba(255, 255, 255, 0.14); animation: csFadeUp 0.5s var(--ease); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.sum-total span:first-child { font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.sum-total .amount { font: 800 clamp(1.7rem, 3vw, 2.3rem)/1 var(--font-display); letter-spacing: -0.05em; }
.sum-total .amount.tick { animation: csTick 0.6s var(--ease); }
@keyframes csTick { 0% { transform: translateY(40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.summary .note { color: rgba(255, 255, 255, 0.6); font-size: 15px; }
.summary .note a { text-decoration: underline; color: var(--cyan-300); }
.summary .btn { margin-top: 26px; }
.summary .fine { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.summary .fine svg { width: 16px; height: 16px; color: var(--cyan-400); flex: none; }
.summary-static { position: static; max-width: 520px; margin-bottom: 28px; }

/* ---------- Plain content pages (legal, checkout) ---------- */
.doc-hero { padding: calc(var(--header-h) + 72px) 0 72px; background: var(--navy-950); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.doc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 85% 0%, rgba(56, 189, 248, 0.28), transparent 70%); }
.doc-hero h1 { margin-top: 20px; font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; }
.doc { padding: 72px 0 140px; }
.doc .container { max-width: 820px; }
.doc p { color: var(--muted); font-size: 1.1rem; margin-bottom: 20px; }
.doc a:not(.btn) { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc small { font-size: 0.9rem; }
.doc .btn-ghost { color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Cookie notice ---------- */
.consent { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 110; max-width: 780px; margin-inline: auto; padding: 18px 20px 18px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--white); background: rgba(7, 31, 49, 0.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7); animation: csConsentIn 0.9s var(--ease) 0.6s both; }
@keyframes csConsentIn { from { opacity: 0; transform: translateY(40px) scale(0.97); } }
.consent p { flex: 1 1 280px; font-size: 14.5px; color: rgba(255, 255, 255, 0.78); }
.consent a { color: var(--cyan-300); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.consent .btn { height: 44px; padding: 0 22px; font-size: 14px; }
.consent .btn-ghost { color: var(--white); }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.28s var(--ease-in-out) both csPageOut; }
::view-transition-new(root) { animation: 0.5s var(--ease) both csPageIn; }
@keyframes csPageOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes csPageIn { from { opacity: 0; transform: translateY(14px); } }
body.is-leaving { opacity: 0; transform: translateY(-8px); transition: opacity 0.22s, transform 0.22s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-visual { height: 520px; max-width: 640px; margin-inline: auto; width: 100%; }
	.cfg-grid { grid-template-columns: 1fr; }
	.summary { position: static; }
	.cfg-art { display: none; }
	.cfg-hero .container { grid-template-columns: 1fr; }
	.ftr-grid { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr 1fr; }
	.step:nth-child(3) { border-left: 0; padding-left: 0; }
	.step:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; }
}
@media (max-width: 900px) {
	.nav, .hdr-actions { display: none; }
	.burger { display: block; }
	.panel { grid-template-columns: 1fr; }
	.panel.flip .panel-visual { order: 0; }
	.panel-visual { min-height: 340px; }
	.bento { grid-template-columns: 1fr; }
	.b-1, .b-2, .b-3, .b-4 { grid-column: auto; grid-row: auto; }
	.b-tile { min-height: 230px; }
}
@media (max-width: 600px) {
	.container { width: calc(100% - 36px); }
	.hero { padding-top: calc(var(--header-h) + 36px); }
	.hero-visual { height: 420px; }
	.hero-cta .btn { flex: 1 1 100%; }
	.hero-meta { margin-top: 36px; }
	.scroll-cue { display: none; }
	.steps { grid-template-columns: 1fr; }
	.step, .step + .step { padding: 28px 0 0; border-left: 0; }
	.step + .step { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; }
	.ftr-grid { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: 1fr; }
	.consent { left: 12px; right: 12px; bottom: 12px; }
	.consent-actions { width: 100%; }
	.consent-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
	.split-ready .w > span { transform: none; }
}

/* ---------- Colour locks ----------
   Frappe's website stylesheet sets colours directly on h1-h6, p and a, which overrides the
   white text our dark sections would otherwise inherit (dark text on a dark background).
   These rules pin the colours on every dark surface regardless of stylesheet load order. */
:is(.hero, .sec-dark, .cfg-hero, .doc-hero, .cta, .ftr, .b-1, .summary, .consent, .mnav, .hdr) :is(h1, h2, h3, h4, h5, h6) { color: var(--white) !important; }
.panel-visual :is(h1, h2, h3, h4, h5, h6) { color: var(--white) !important; }
.ftr h4 { color: rgba(255, 255, 255, 0.5) !important; }
.eyebrow { color: var(--cyan-400) !important; }
.hero-sub, .cfg-hero p, .cta p { color: rgba(255, 255, 255, 0.78) !important; }
.sec-dark .sec-head p, .step p, .b-1 p { color: rgba(255, 255, 255, 0.72) !important; }
.ftr p { color: rgba(255, 255, 255, 0.7) !important; }
.consent p { color: rgba(255, 255, 255, 0.85) !important; }
.summary .note, .sum-line { color: rgba(255, 255, 255, 0.82) !important; }
.sum-total span:first-child { color: rgba(255, 255, 255, 0.72) !important; }
.sum-total .amount { color: var(--white) !important; }
.hero-meta, .hero-meta span { color: rgba(255, 255, 255, 0.72) !important; }
.summary .fine { color: rgba(255, 255, 255, 0.6) !important; }
.back { color: rgba(255, 255, 255, 0.72) !important; }
.back:hover { color: var(--cyan-400) !important; }

/* links and buttons on dark surfaces */
.hdr .brand, .ftr .brand, .mnav a.mlink { color: var(--white) !important; }
.nav-link { color: rgba(255, 255, 255, 0.85) !important; }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--white) !important; }
.ftr ul a { color: rgba(255, 255, 255, 0.72) !important; }
.ftr ul a:hover { color: var(--cyan-400) !important; }
.consent a { color: var(--cyan-300) !important; }
.summary .note a { color: var(--cyan-300) !important; }
.menu-text strong { color: var(--white) !important; }

.btn-primary, .btn-primary:hover { color: var(--navy-950) !important; }
.btn-light, .btn-light:hover { color: var(--navy-900) !important; }
.hero .btn-ghost, .hdr .btn-ghost, .mnav .btn-ghost, .consent .btn-ghost { color: var(--white) !important; }
.hero .btn-ghost:hover, .hdr .btn-ghost:hover { border-color: var(--cyan-400); }
.doc .btn-ghost { color: var(--ink) !important; }

/* light surfaces: keep headings dark and readable too */
:is(.sec-bone, .sec:not(.sec-dark), .cfg-step, .panel-copy, .b-tile:not(.b-1)) :is(h1, h2, h3, h4) { color: var(--ink); }
.panel-title, .b-tile:not(.b-1) h3 { color: var(--ink) !important; }
.panel-desc, .b-tile:not(.b-1) p { color: var(--muted) !important; }
.b-4 p { color: var(--muted) !important; }

/* ---------- Hero visual carousel ----------
   Only the right-hand visuals swap. Each .hero-set holds one product's four visuals in the
   same positions the hero already uses, so the layout and the floating animation are unchanged. */
.hero-set { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.hero-set.is-active { visibility: visible; pointer-events: auto; z-index: 2; }
.hero-set.is-leaving { visibility: visible; z-index: 1; }

.m-pop { opacity: 0; transform: translateY(28px) scale(0.94); }
.hero-set:not(.is-active):not(.is-leaving) .m-pop { transition: none; }
.hero-set.is-active .m-pop {
	opacity: 1; transform: none;
	transition: opacity 0.7s var(--ease), transform 1s var(--ease);
	transition-delay: calc(var(--k, 0) * 110ms + 120ms);
}
.hero-set.is-leaving .m-pop {
	opacity: 0; transform: translateY(-24px) scale(0.97);
	transition: opacity 0.45s var(--ease-in-out), transform 0.6s var(--ease-in-out);
	transition-delay: calc(var(--k, 0) * 40ms);
}
/* nothing animates while a set is hidden */
.hero-set:not(.is-active):not(.is-leaving) :is(.m-float, .m-chart s, .m-pay-btn path) { animation-play-state: paused; }

/* Real screenshots */
.m-shot { display: block; width: 100%; height: auto; }
.m-shot-desk { border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8); }
.m-shot-phone { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55)); }

/* Product brand card (replaces the notification bubble) */
.m-brand {
	display: flex; align-items: center; gap: 12px; width: max-content; max-width: 290px;
	padding: 12px 16px 12px 12px; border-radius: 18px; text-decoration: none;
	background: rgba(255, 255, 255, 0.96); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.6);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.m-brand:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.7); }
.m-brand .ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-brand); color: var(--navy-950); }
.m-brand .ico svg { width: 22px; height: 22px; }
.m-brand .txt { display: grid; gap: 2px; }
.m-brand b { font: 700 16px/1.15 var(--font-display); letter-spacing: -0.03em; color: var(--navy-950) !important; }
.m-brand small { font: 500 12.5px/1.3 var(--font-text); color: var(--muted) !important; }
.m-brand .go { flex: none; width: 18px; height: 18px; color: var(--blue-500); transition: transform 0.4s var(--ease); }
.m-brand:hover .go { transform: translateX(3px); }

/* Dots + progress timer */
.hero-dots { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dot { position: relative; width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot span { display: block; height: 6px; margin-top: 9px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); overflow: hidden; transition: background 0.3s; }
.hero-dot:hover span { background: rgba(255, 255, 255, 0.4); }
.hero-dot i { display: block; height: 100%; background: var(--grad-brand); transform: scaleX(0); transform-origin: 0 50%; }
.hero-dot.is-active i { animation: csDotFill var(--hero-delay, 6s) linear forwards; }
.hero-carousel.is-paused .hero-dot.is-active i { animation-play-state: paused; }
.hero-carousel.no-auto .hero-dot.is-active i { animation: none; transform: scaleX(1); }
@keyframes csDotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Product cards: the phone screenshot replaces the drawn mockup */
.panel-visual:has(.stage-photo) { padding: 24px 40px; }
.stage-photo { display: grid; place-items: center; }
.stage-photo .m-shot-phone { width: auto; height: 520px; max-width: none; }
/* a wide desk screenshot fills the card instead of the phone's fixed height */
.panel-visual:has(.m-shot-desk) { padding: 40px; }
.panel-visual .stage-photo:has(.m-shot-desk) { width: 100%; max-width: 540px; }
@media (max-width: 900px) { .stage-photo .m-shot-phone { height: 430px; } }

/* ---------- Configure pages: product screenshots in the hero ---------- */
.cfg-art.cfg-shots { position: relative; width: min(540px, 42vw); margin-bottom: 44px; }
.cfg-shots .cfg-desk { width: 100%; }
.cfg-shots .cfg-phone { position: absolute; right: -7%; bottom: -48px; width: 40%; }
.cfg-shots .m-float { animation-duration: 9s; }

/* ERPNext Mobile: a deep emerald hero that echoes the app's green, kept dark and restrained */
.cfg-hero.is-green { background: #031a14; }
.cfg-hero.is-green::before {
	background:
		radial-gradient(50% 85% at 88% 8%, rgba(52, 211, 153, 0.30), transparent 70%),
		radial-gradient(42% 65% at 2% 105%, rgba(16, 185, 129, 0.24), transparent 70%),
		radial-gradient(30% 45% at 55% -10%, rgba(45, 212, 191, 0.14), transparent 70%);
}
.cfg-hero.is-green::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6;
	background-image: linear-gradient(rgba(110, 231, 183, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 231, 183, 0.06) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(70% 90% at 80% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(70% 90% at 80% 30%, #000 10%, transparent 75%);
}
.cfg-hero.is-green .eyebrow, .cfg-hero.is-green .back:hover { color: #6ee7b7 !important; }

/* option tiles: keep their text colours even if a global label/strong rule says otherwise */
.tile strong { color: var(--ink) !important; }
.tile em { color: var(--muted) !important; }

/* ---------- Button states ----------
   Frappe's .btn:hover turns the background white; on a dark header that left white text on a
   white button. Every state is spelled out here so the hover always has a readable colour pair. */
.btn-ghost { background: transparent !important; }
.hdr .btn-ghost:hover, .hero .btn-ghost:hover, .mnav .btn-ghost:hover, .consent .btn-ghost:hover {
	background: rgba(56, 189, 248, 0.16) !important; border-color: var(--cyan-400) !important; color: var(--white) !important;
}
.doc .btn-ghost:hover, .cfg .btn-ghost:hover {
	background: var(--cyan-100) !important; border-color: var(--cyan-400) !important; color: var(--navy-900) !important;
}
.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-image: var(--grad-brand) !important; background-color: transparent !important; border-color: transparent !important; }
.btn-light:hover, .btn-light:focus { background: var(--white) !important; }
.btn:hover, .btn:focus { text-decoration: none !important; }

/* ---------- Secure checkout card ---------- */
.b-1 .b-visual { position: relative; z-index: 1; width: min(100%, 300px); margin: 70px auto 26px; }
.b-1 .b-pay { transform: rotate(-3deg); transition: transform 0.9s var(--ease); }
.b-1:hover .b-pay { transform: rotate(0deg) scale(1.03); }
.b-chip {
	position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px;
	border-radius: 999px; background: rgba(255, 255, 255, 0.96); color: var(--navy-900) !important;
	font: 600 13px/1 var(--font-text); white-space: nowrap; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6);
	animation: csFloat 7s ease-in-out infinite;
}
.b-chip svg { width: 16px; height: 16px; color: var(--blue-500); flex: none; }
.b-chip span { color: var(--navy-900) !important; }
.b-chip-1 { left: -14%; top: -16px; }
.b-chip-2 { right: -10%; bottom: -14px; animation-delay: -3.5s; }
@media (max-width: 600px) { .b-chip-1 { left: -4%; } .b-chip-2 { right: -2%; } }

/* GitHub link in the "Install it yourself" tile */
a.code { display: inline-block; text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); color: var(--cyan-300) !important; }
a.code:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(7, 31, 49, 0.6); color: var(--white) !important; }

/* ---------- Login / create account ---------- */
.auth {
	position: relative; min-height: 100svh; display: flex; align-items: center; isolation: isolate; overflow: hidden;
	padding: calc(var(--header-h) + 40px) 0 72px; background: var(--navy-950); color: var(--white);
}
.auth::before {
	content: ""; position: absolute; inset: -10%; z-index: -1;
	background:
		radial-gradient(42% 50% at 85% 10%, rgba(56, 189, 248, 0.32), transparent 70%),
		radial-gradient(40% 50% at 8% 100%, rgba(30, 144, 216, 0.26), transparent 70%),
		radial-gradient(30% 35% at 50% 55%, rgba(15, 65, 102, 0.5), transparent 70%);
	animation: csDrift 18s ease-in-out infinite alternate;
}
.auth::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 80%);
}
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 6vw, 96px); align-items: center; }

.auth-side .auth-heading { text-wrap: balance; margin-top: 22px; font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.auth-lead { margin-top: 22px; max-width: 460px; font-size: 1.15rem; }
.auth-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; max-width: 460px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; }
.auth-points svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--cyan-400); }
.auth-art.cfg-art { margin-top: 48px; width: min(480px, 100%); }

.auth-card {
	position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg);
	background: var(--white); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bone); }
.auth-tabs[hidden] { display: none; }
.auth-tab {
	padding: 11px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
	font: 600 15px/1.2 var(--font-text); color: var(--muted); transition: background 0.3s, color 0.3s, box-shadow 0.3s;
	-webkit-appearance: none; appearance: none;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(7, 31, 49, 0.14); }
.auth-tab:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; }

.auth-head { margin: 26px 0 22px; }
.auth-head h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink) !important; }
.auth-head p { margin-top: 8px; color: var(--muted) !important; font-size: 0.98rem; }
.auth-head p:empty { display: none; }

.auth-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; animation: csFadeUp 0.4s var(--ease); }
.auth-alert[hidden] { display: none; }
.auth-alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.auth-alert span { color: inherit !important; }
.auth-alert.is-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f6c7c7; }
.auth-alert.is-success { background: #e7f7f0; color: #0b6b4b; border: 1px solid #b9e8d4; }
.auth-alert.is-info { background: var(--cyan-100); color: var(--navy-800); border: 1px solid #b9e2fb; }

.auth-form { display: grid; gap: 18px; }
.auth-form[hidden] { display: none; }
.auth-form .field { margin: 0; }
.auth-form .field > label, .label-row label { font-weight: 600; font-size: 15px; color: var(--ink); }
.field input[type="email"], .field input[type="password"] {
	width: 100%; padding: 15px 18px; font: 500 16px/1.4 var(--font-text); color: var(--ink);
	background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; transition: border-color 0.3s, box-shadow 0.3s;
	-webkit-appearance: none; appearance: none;
}
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pw { position: relative; }
.pw input { padding-right: 52px !important; }
.pw-toggle {
	position: absolute; right: 6px; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); padding: 0;
	display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
	-webkit-appearance: none; appearance: none; transition: color 0.3s, background 0.3s;
}
.pw-toggle:hover { color: var(--ink); background: var(--bone); }
.pw-toggle svg { width: 20px; height: 20px; }

.link-btn { padding: 0; border: 0; background: none; cursor: pointer; font: 600 14.5px/1.4 var(--font-text); color: var(--blue-600) !important; -webkit-appearance: none; appearance: none; transition: color 0.3s; }
.link-btn:hover { color: var(--blue-500) !important; text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; border-radius: 4px; }
.auth-foot { margin: 0; font-size: 14px; color: var(--muted) !important; text-align: center; }
.auth-foot a { color: var(--blue-600) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.auth-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bone); font-size: 14px; color: var(--muted) !important; }
.auth-form .btn[disabled] { opacity: 0.7; }

.auth-done { text-align: center; padding: 8px 0 4px; animation: csFadeUp 0.5s var(--ease); }
.auth-done[hidden] { display: none; }
.auth-done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--cyan-100); color: var(--blue-500); margin-bottom: 18px; }
.auth-done-icon svg { width: 30px; height: 30px; }
.auth-done h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.035em; color: var(--ink) !important; }
.auth-done p { margin: 12px 0 24px; color: var(--muted) !important; }

/* Colour locks on the dark half (the Frappe stylesheet sets heading and paragraph colours directly) */
.auth-side .auth-heading { color: var(--white) !important; }
.auth-lead, .auth-points li, .auth-points span { color: rgba(255, 255, 255, 0.8) !important; }

@media (max-width: 960px) {
	.auth { align-items: flex-start; }
	.auth-grid { grid-template-columns: 1fr; gap: 28px; }
	.auth-card { order: 2; }
	.auth-side .auth-lead, .auth-points, .auth-art.cfg-art { display: none; }
	.auth-side .auth-heading { font-size: clamp(2rem, 8vw, 2.8rem); margin-top: 14px; }
}
@media (max-width: 600px) {
	.auth { padding-bottom: 48px; }
	.auth-card { padding: 22px 18px; border-radius: 24px; }
}
.auth-head[hidden] { display: none; }

/* ---------- Logo and light header ----------
   The logo file already contains the Codes Soft name and has a transparent background with dark text,
   so it is shown as it is, large, on a light header (no chip, no extra text). On dark areas
   (the footer, the open mobile menu) the same file is shown in white. */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { display: block; height: 58px; width: auto; max-width: 100%; transition: transform 0.5s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.03); }
.brand-on-dark .brand-logo { height: 64px; filter: brightness(0) invert(1); }

.hdr { background: rgba(255, 255, 255, 0.9); color: var(--ink); border-bottom: 1px solid rgba(7, 31, 49, 0.08); }
.hdr.is-scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: 0 12px 40px -24px rgba(7, 31, 49, 0.4); }
.nav-link { color: rgba(10, 27, 41, 0.78) !important; }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--ink) !important; }
.nav-link::after { background: var(--blue-500); }
.hdr .btn-ghost { color: var(--ink) !important; border-color: rgba(7, 31, 49, 0.22); }
.hdr .btn-ghost:hover { background: var(--cyan-100) !important; border-color: var(--blue-500) !important; color: var(--navy-900) !important; }
.burger { border-color: rgba(7, 31, 49, 0.2); }
.burger i { background: var(--ink); }

/* mobile menu open: the header sits on the dark overlay, so switch it back to light-on-dark */
.menu-open .hdr { background: transparent; border-bottom-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .brand-logo { filter: brightness(0) invert(1); }
.menu-open .burger { border-color: rgba(255, 255, 255, 0.3); }
.menu-open .burger i { background: #fff; }

@media (max-width: 600px) { .brand-logo { height: 46px; } .brand-on-dark .brand-logo { height: 54px; } }

/* ---------- Profile page ---------- */
.profile { background: var(--bone); padding: 56px 0 120px; }
.profile-card { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-meta { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bone); color: var(--muted) !important; font-size: 14px; }
.profile-meta[hidden] { display: none; }
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.profile-actions .btn-ghost { color: var(--ink) !important; }
.profile .field input { background: var(--white); }
@media (max-width: 640px) { .profile-grid { grid-template-columns: 1fr; } .profile-actions .btn { flex: 1 1 100%; } }

/* ---------- Checkout and My orders ---------- */
.review { margin: 0; display: grid; gap: 0; }
.review > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.review > div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); font-weight: 500; flex: none; }
.review dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; color: var(--ink); }
.back-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14.5px; color: var(--blue-600) !important; text-decoration: underline; text-underline-offset: 3px; }

.kv { margin: 26px 0; display: grid; text-align: left; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.kv span { color: var(--muted); }
.kv strong { color: var(--ink); text-align: right; }

.order-list { max-width: 860px; margin: 0 auto; display: grid; gap: 20px; }
.order-list[hidden] { display: none; }
.order-card { padding: clamp(20px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.order-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.order-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.order-card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.035em; color: var(--ink) !important; }
.order-id { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.badge { flex: none; padding: 6px 14px; border-radius: 999px; font: 600 13px/1.2 var(--font-text); white-space: nowrap; }
.badge.is-active { background: #e7f7f0; color: #0b6b4b; }
.badge.is-soon { background: #fff4db; color: #8a5a00; }
.badge.is-expired { background: #fdecec; color: #9b1c1c; }
.badge.is-one { background: var(--cyan-100); color: var(--blue-600); }

.validity { margin: 22px 0 4px; }
.validity-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; color: var(--muted); }
.validity-top strong { color: var(--ink); }
.progress-bar { margin-top: 10px; height: 8px; border-radius: 999px; background: var(--bone); overflow: hidden; }
.progress-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); }

.order-lines { list-style: none; margin: 20px 0 0; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.order-card footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.order-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.order-total { font: 700 1.3rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.chip-ok { background: #e7f7f0; color: #0b6b4b; }
.chip-wait { background: #fff4db; color: #8a5a00; }
.order-details { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-details summary { cursor: pointer; font-weight: 600; color: var(--blue-600); }
.order-details .review { margin-top: 12px; }

/* ---- Form structure: one label row, one control height, red required marks ---- */
.field > label, .field > .label { display: block; line-height: 22px; min-height: 22px; margin: 0; }
.field > label .opt { float: right; font-size: 13px; line-height: 22px; }
.field > label.req::after, .field > .label.req::after { content: " *"; color: var(--danger); font-weight: 700; }
.req-note { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.req-note b { color: var(--danger); }
.field input[type="text"], .field input[type="number"], .field input[type="email"], .field input[type="password"], .field select {
	box-sizing: border-box; height: 54px; padding-top: 0; padding-bottom: 0; line-height: 52px;
}
.field input[readonly] { background: var(--bone) !important; color: var(--muted); cursor: not-allowed; }
.profile-grid { align-items: start; }
.profile-grid > .field { margin-bottom: 0; }
.cfg-step .profile-grid, .profile-card .profile-grid { margin-bottom: 22px; }
.cfg-step .profile-grid:last-child, .profile-card .profile-grid:last-child { margin-bottom: 0; }
.cfg-step .field > .hint { margin: 0; line-height: 1.5; }

/* ---- Login / register: never clip the form ----
   main used to be "flex: 1" (basis 0) with min-height 100svh and overflow hidden, so a form taller than the
   screen (create account, error messages, small laptops) was cut off and the footer sat on top of it. */
.auth { flex: 1 0 auto; height: auto; overflow: clip; }
.auth-grid { width: 100%; margin-block: auto; }

/* ---- Phone with country code ---- */
.phone-row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; }
.phone-row select { padding-left: 14px; padding-right: 36px; background-position: right 10px center; text-overflow: ellipsis; }
@media (max-width: 380px) { .phone-row { grid-template-columns: 108px minmax(0, 1fr); gap: 8px; } }

/* ---- Mobile pass: every page must fit a 320px screen without sideways scrolling ---- */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video, iframe, table { max-width: 100%; }
.container { min-width: 0; }
.cfg-form, .cfg-step, .field, .review > div, .kv > div, .order-card, .summary { min-width: 0; }
.review dd, .kv strong, .order-id, .sum-line span, .hint, .field-error, .auth-alert { overflow-wrap: anywhere; }
@media (max-width: 760px) {
	.cfg { padding: 32px 0 72px; }
	.doc-hero, .cfg-hero { padding-bottom: 44px; }
	.cfg-step { padding: 22px 18px; border-radius: 20px; }
	.summary { padding: 24px 20px; }
	.review > div, .kv > div { flex-direction: column; gap: 4px; }
	.review dd, .kv strong { text-align: left; }
	.profile { padding: 32px 0 72px; }
	.profile-card { padding: 22px 18px; border-radius: 22px; }
	.profile-grid { grid-template-columns: 1fr; }
	.profile-actions { flex-direction: column; }
	.profile-actions .btn { width: 100%; }
	.order-card header, .order-card footer, .validity-top { flex-wrap: wrap; gap: 8px; }
	.switch { padding: 16px; gap: 12px; }
	.field input[type="text"], .field input[type="number"], .field input[type="email"], .field input[type="password"], .field select { font-size: 16px; } /* 16px stops iOS from zooming on focus */
	.btn-lg { width: 100%; justify-content: center; }
	.hdr .brand-logo { max-width: 60vw; }
}
@media (max-width: 420px) {
	.auth { padding-top: calc(var(--header-h) + 24px); }
	.auth-card { padding: 20px 16px; }
	.auth-tab { font-size: 14px; padding-inline: 8px; }
	.consent { padding: 16px; }
}

/* ---- Country code dropdown ---- */
.phone-row select[hidden] { display: none; }
.cc { position: relative; min-width: 0; }
.cc-btn {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 54px; padding: 0 12px 0 16px;
	font: 500 16px/1 var(--font-text); color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 14px;
	cursor: pointer; box-shadow: none; -webkit-appearance: none; appearance: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.cc-btn:hover { border-color: #b7c9d8; }
.cc-btn:focus-visible, .cc-btn[aria-expanded="true"] { outline: none; border-color: var(--cyan-400); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2); }
.cc-cur { white-space: nowrap; }
.cc-cur b { font-weight: 700; margin-right: 4px; letter-spacing: 0.02em; }
.cc-btn svg { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 0.3s var(--ease); }
.cc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.cc-pop {
	position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: min(340px, calc(100vw - 36px)); padding: 10px;
	background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(7, 31, 49, 0.4);
	animation: csFadeUp 0.25s var(--ease);
}
.cc-pop[hidden] { display: none; }
.cc .cc-search {
	width: 100%; height: 44px; padding: 0 14px; margin: 0 0 8px; font: 500 15px/1 var(--font-text); color: var(--ink);
	background: var(--bone); border: 1.5px solid transparent; border-radius: 12px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.cc .cc-search:focus { outline: none; border-color: var(--cyan-400); background: var(--white); }
.cc-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.cc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--ink); cursor: pointer; transition: background 0.2s; }
.cc-list li:hover, .cc-list li.is-active { background: var(--cyan-100); }
.cc-list li[aria-selected="true"] { background: var(--cyan-100); font-weight: 600; }
.cc-list li[aria-selected="true"] .cc-dial { color: var(--blue-500); }
.cc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-dial { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc-list .cc-empty { color: var(--muted); cursor: default; justify-content: center; }
.cc-list .cc-empty:hover { background: none; }

/* ---- Scrollbars: thin, borderless, in the logo's blue ---- */
* { scrollbar-width: thin; scrollbar-color: var(--blue-500) transparent; }
*::-webkit-scrollbar { width: 3px; height: 3px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; border: 0; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--cyan-400), var(--blue-500)); border: 0; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--blue-600); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

/* ---- Product logos ---- */
.plogo {
	display: inline-grid; place-items: center; width: 52px; height: 52px; padding: 7px; border-radius: 15px; flex: none;
	background: var(--white); border: 1px solid rgba(7, 31, 49, 0.08); box-shadow: 0 10px 26px -12px rgba(7, 31, 49, 0.45);
}
.plogo-lg { width: 68px; height: 68px; padding: 9px; border-radius: 20px; }
.plogo:not(.has-logo) { display: none; }
.plogo img, .m-brand .ico img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.panel-copy > .plogo { margin-bottom: 18px; }
.cfg-hero .plogo { margin-bottom: 20px; }
.m-brand .ico.has-logo { background: var(--white); border: 1px solid rgba(7, 31, 49, 0.08); padding: 4px; }
.m-brand .ico.has-logo svg { display: none; }
.auth-products { margin-top: 36px; display: grid; gap: 12px; max-width: 460px; }
.auth-products-label { font: 600 12.5px/1 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55) !important; }
.auth-products-row { display: flex; flex-wrap: wrap; gap: 12px; }
.auth-prod {
	display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 18px;
	background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.3s, transform 0.4s var(--ease);
}
.auth-prod:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.auth-prod span:last-child { font: 600 15px/1.2 var(--font-display); color: var(--white) !important; letter-spacing: -0.02em; }
@media (max-width: 960px) { .auth-products { display: none; } }
@media (max-width: 600px) { .plogo-lg { width: 58px; height: 58px; } }

/* ---- Configure hero: logo beside the title ---- */
.cfg-title { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.cfg-title h1 { min-width: 0; margin: 0; }
.cfg-hero .cfg-title .plogo, .cfg-title .plogo { margin: 0; width: clamp(54px, 7vw, 84px); height: clamp(54px, 7vw, 84px); padding: clamp(7px, 1vw, 11px); border-radius: clamp(16px, 2vw, 24px); }

/* ---- Home product cards: desk view with the phone floating in front, like the hero ---- */
.panel-visual:has(.stage-shots) { padding: 40px 40px 56px; }
.panel-visual .stage-shots { width: min(100%, 520px); }
.stage-shots .ps-desk { width: 92%; }
.stage-shots .ps-phone { position: absolute; right: -2%; bottom: -34px; width: 33%; }
.stage-shots .m-float { animation-duration: 9s; }
.stage-shots .m-shot { transition: transform 0.7s var(--ease); }
.panel:hover .stage-shots .ps-desk .m-shot { transform: translateY(-4px); }
.panel:hover .stage-shots .ps-phone .m-shot { transform: translateY(-12px) rotate(2deg); }
@media (max-width: 600px) { .panel-visual:has(.stage-shots) { padding: 28px 24px 48px; } .stage-shots .ps-phone { width: 36%; bottom: -28px; } }

/* ---- Every dropdown uses the same graceful style (CsSelect) ---- */
.field select[hidden] { display: none; }
.cc.is-block { display: block; width: 100%; }
.cc.is-block .cc-pop { width: 100%; min-width: min(260px, calc(100vw - 36px)); }
.cc.is-block .cc-cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.cc-cur.is-placeholder { color: #7d93a6; font-weight: 400; }
.cc-search[hidden] { display: none; }
.field.is-invalid .cc-btn { border-color: var(--danger); animation: csShake 0.45s; }

/* ===================== Dashboard ===================== */
.dash-hero { padding-bottom: 56px; }
.dash-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.dash-name { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; }
.dash-sub { margin-top: 14px; max-width: 520px; font-size: 1.1rem; color: rgba(255, 255, 255, 0.68) !important; }

.dash { background: var(--bone); padding: 0 0 120px; }
.dash-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: -28px; position: relative; z-index: 2; }

.dash-side {
	position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; padding: 22px;
	background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
	border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lift);
}
.dash-user { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.dash-avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--grad-brand); color: var(--navy-950); font: 800 18px/1 var(--font-display); }
.dash-user-text { display: grid; gap: 2px; min-width: 0; }
.dash-user-text strong { font: 700 15.5px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user-text small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dash-nav { display: grid; gap: 6px; }
.dash-nav button {
	position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; border-radius: 14px;
	background: transparent; color: var(--muted); font: 600 15px/1.2 var(--font-text); text-align: left; cursor: pointer; box-shadow: none;
	transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.dash-nav button svg { flex: none; width: 20px; height: 20px; transition: transform 0.4s var(--ease); }
.dash-nav button:hover { background: var(--bone); color: var(--ink); }
.dash-nav button:hover svg { transform: scale(1.1); }
.dash-nav button:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; }
.dash-nav button[aria-selected="true"] { background: var(--navy-950); color: var(--white); box-shadow: 0 14px 28px -14px rgba(4, 19, 30, 0.7); }
.dash-nav button[aria-selected="true"] svg { color: var(--cyan-400); }
.dash-nav button span { flex: 1; min-width: 0; }
.dash-count { font-style: normal; min-width: 24px; padding: 3px 8px; border-radius: 999px; background: var(--bone); color: var(--ink); font: 700 12px/1.3 var(--font-text); text-align: center; }
.dash-count:empty { display: none; }
.dash-nav button[aria-selected="true"] .dash-count { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.dash-edit { display: block; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); text-align: center; font-weight: 600; font-size: 14.5px; color: var(--ink) !important; transition: border-color 0.3s, background 0.3s; }
.dash-edit:hover { border-color: var(--cyan-400); background: var(--cyan-100); }

.dash-main { min-width: 0; padding-top: 28px; display: grid; gap: 28px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dash-stats[hidden] { display: none; }
.dash-stat { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-soft); animation: csFadeUp 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.dash-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.dash-stat-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--cyan-100); color: var(--blue-500); }
.dash-stat-icon svg { width: 22px; height: 22px; }
.dash-stat strong { display: block; font: 800 1.9rem/1 var(--font-display); letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-stat small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.3; color: var(--muted); }

.dash-view[hidden] { display: none; }
.dash-view.is-in { animation: csPanelIn 0.55s var(--ease) both; }
@keyframes csPanelIn { from { opacity: 0; transform: translateX(18px); } }
.dash-head { margin-bottom: 20px; }
.dash-head h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink) !important; }
.dash-head p { margin-top: 6px; color: var(--muted); }
.dash-list { display: grid; gap: 20px; }
.dash-list[hidden] { display: none; }
.dash-card { max-width: none; animation: csFadeUp 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.dash-card .progress-bar i { width: var(--w, 0); transform-origin: left; animation: csGrowX 1.1s var(--ease) 0.25s both; }
@keyframes csGrowX { from { transform: scaleX(0); } }
.dash-rows { margin-top: 18px; }

.dash-empty { display: grid; justify-items: center; gap: 10px; padding: 56px 24px; text-align: center; background: var(--white); border: 1.5px dashed #b9cde0; border-radius: var(--r-lg); animation: csFadeUp 0.6s var(--ease) both; }
.dash-empty[hidden] { display: none; }
.dash-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--cyan-100); color: var(--blue-500); margin-bottom: 6px; }
.dash-empty-icon svg { width: 30px; height: 30px; }
.dash-empty h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink) !important; }
.dash-empty p { max-width: 380px; color: var(--muted); margin-bottom: 10px; }

.dash-skeleton { display: grid; gap: 20px; }
.dash-skeleton[hidden] { display: none; }
.dash-skeleton i { display: block; height: 190px; border-radius: var(--r-lg); background: linear-gradient(100deg, #e8eff5 30%, #f5f9fc 50%, #e8eff5 70%); background-size: 200% 100%; animation: csShimmer 1.4s linear infinite; }
@keyframes csShimmer { to { background-position: -200% 0; } }

@media (max-width: 980px) {
	.dash-grid { grid-template-columns: 1fr; gap: 0; margin-top: -20px; }
	.dash-side { position: static; padding: 14px; gap: 12px; border-radius: 22px; }
	.dash-user { padding-bottom: 12px; }
	.dash-nav { grid-template-columns: 1fr 1fr; }
	.dash-nav button { justify-content: center; padding: 12px 10px; }
	.dash-nav button span { flex: none; }
	.dash-edit { display: none; }
	.dash-main { padding-top: 20px; }
}
@media (max-width: 640px) {
	.dash-stats { grid-template-columns: 1fr; gap: 12px; }
	.dash-stat { padding: 16px; }
	.dash-nav button { font-size: 14px; gap: 8px; }
	.dash-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dash-card .progress-bar i, .dash-stat, .dash-card, .dash-view.is-in { animation: none; } }

.auth-alert.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.4s, transform 0.4s; }

/* ---- Dashboard layout: hero and workspace fill one screen; the menu stays, the right side scrolls ---- */
.dash-page { display: flex; flex-direction: column; height: max(100svh, 640px); }
.dash-page .dash-hero { flex: none; padding: calc(var(--header-h) + 30px) 0 34px; }
.dash-page .dash-hero h1 { margin-top: 12px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.dash-page .dash-sub { margin-top: 8px; font-size: 1rem; }
.dash-page .dash { flex: 1 1 auto; min-height: 0; padding: 28px 0; }
.dash-page .dash > .container { height: 100%; }
.dash-page .dash-grid { height: 100%; margin-top: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); z-index: auto; }
.dash-page .dash-side { position: static; align-content: start; overflow-y: auto; box-shadow: var(--shadow-soft); }
.dash-page .dash-main { height: 100%; min-height: 0; padding: 4px 8px 28px 4px; overflow-y: auto; overscroll-behavior: contain; align-content: start; }

/* ---- Pagination ---- */
.dash-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.dash-pager[hidden] { display: none; }
.dash-pager-info { font-size: 14px; color: var(--muted); }
.dash-pager-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash-pager-nav button {
	min-width: 40px; height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
	font: 600 14.5px/1 var(--font-text); cursor: pointer; box-shadow: none; transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.dash-pager-nav button:hover:not(:disabled):not([aria-current]) { border-color: var(--cyan-400); background: var(--cyan-100); transform: translateY(-1px); }
.dash-pager-nav button[aria-current="page"] { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.dash-pager-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.dash-pager-nav .pg-arrow { font-size: 20px; padding-bottom: 3px; }
.dash-pager-nav .gap { min-width: 22px; text-align: center; color: var(--muted); }

@media (max-width: 980px) {
	.dash-page { display: block; height: auto; }
	.dash-page .dash-hero { padding: calc(var(--header-h) + 26px) 0 30px; }
	.dash-page .dash { padding: 24px 0 72px; }
	.dash-page .dash > .container, .dash-page .dash-grid { height: auto; }
	.dash-page .dash-main { height: auto; overflow: visible; padding: 20px 0 0; }
	.dash-page .dash-side { overflow: visible; }
}
.dash-page .dash-main { overflow-x: hidden; padding-left: 6px; padding-right: 12px; }
@media (max-width: 980px) { .dash-page .dash-main { overflow: visible; padding: 20px 0 0; } }

/* Record cards: flat, no shadow */
.dash-card, .dash-card:hover { box-shadow: none; }
.dash-card:hover { border-color: #b9cde0; transform: none; }

/* ---- Dashboard: a tall workspace (about one full screen) between the banner and the footer ---- */
.dash-page { display: block; height: auto; }
.dash-page .dash { flex: none; padding: 40px 0 72px; }
.dash-page .dash > .container { height: auto; }
.dash-page .dash-grid { height: max(calc(100svh - 48px), 700px); margin-top: 0; }
.dash-stats.is-off { display: none; }
.req-star { color: var(--danger); }

/* My Profile section */
.dash-profile { max-width: 760px; padding: clamp(22px, 3vw, 34px); }
.dash-profile .auth-form { gap: 20px; }
.dash-profile .profile-actions { margin-top: 4px; }
.dash-profile .profile-actions .btn { min-width: 180px; }
.dash-profile .auth-done { text-align: left; padding: 0; }
.dash-profile .auth-done h3 { margin-bottom: 6px; }

@media (max-width: 980px) {
	.dash-page .dash { padding: 28px 0 72px; }
	.dash-page .dash-grid { height: auto; }
	.dash-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dash-nav button { flex-direction: column; gap: 6px; padding: 12px 6px; font-size: 13px; text-align: center; }
	.dash-nav button span { flex: none; }
	.dash-profile { max-width: none; }
}
@media (max-width: 640px) {
	.dash-profile .profile-actions .btn { width: 100%; }
}

/* Dashboard workspace: at least one full screen tall */
.dash-page .dash-grid { height: max(100svh, 820px); min-height: 820px; }
@media (max-width: 980px) { .dash-page .dash-grid { height: auto; min-height: 0; } }

/* Dashboard: every section is the same width, and the page can always scroll on to the footer */
.dash-profile, .dash-card, .dash-list, .dash-empty, .dash-head { width: 100%; max-width: none; }
.dash-page .dash-main, .dash-page .dash-side { overscroll-behavior: auto; }

/* Print button on record cards */
.order-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.dash-print {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px;
	background: var(--white); color: var(--ink); font: 600 14px/1 var(--font-text); cursor: pointer; box-shadow: none;
	transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.dash-print svg { width: 18px; height: 18px; color: var(--blue-500); }
.dash-print:hover:not(:disabled) { border-color: var(--cyan-400); background: var(--cyan-100); transform: translateY(-1px); }
.dash-print:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 480px) { .order-end { width: 100%; justify-content: space-between; } }

/* ---- Tickets ---- */
.dash-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-head-row .btn { flex: none; }
.ticket-text { margin-top: 16px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-file { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue-600) !important; }
.dash-nav button em.dash-count { margin-left: auto; }

/* Open a ticket page */
.ticket-page { padding-top: 48px; }
.ticket-wrap { max-width: 860px; }
.ticket-wrap .cfg-form { margin: 0 auto; }
.step-note { margin: -8px 0 20px; }
.cfg-step .profile-grid + .profile-grid { margin-top: 0; }
.ticket-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.file-drop {
	display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px dashed #b9cde0; border-radius: 16px;
	background: var(--bone); cursor: pointer; transition: border-color 0.3s, background 0.3s;
}
.file-drop:hover, #tk_file:focus-visible + .field-error + .file-drop { border-color: var(--cyan-400); background: var(--cyan-100); }
.file-drop svg { flex: none; width: 26px; height: 26px; color: var(--blue-500); }
.file-drop-text { display: grid; gap: 2px; min-width: 0; }
.file-drop-text strong { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-drop-text small { color: var(--muted); font-size: 13.5px; }
.file-drop.has-file { border-style: solid; border-color: var(--cyan-400); background: var(--cyan-100); }
.field.is-invalid .file-drop { border-color: var(--danger); animation: csShake 0.45s; }
.field > .label + .file-drop { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

@media (max-width: 980px) {
	.dash-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dash-nav button { flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 14px; font-size: 14px; gap: 10px; }
}
@media (max-width: 1180px) { .nav-link { padding: 10px 9px; font-size: 14px; } .nav-link::after { left: 9px; right: 9px; } }
.field > label.file-drop { display: flex; line-height: 1.4; min-height: 0; margin: 0; }
.field:has(#tk_file:focus-visible) .file-drop { border-color: var(--cyan-400); background: var(--cyan-100); }

/* ---- Policy pages ---- */
.doc .container { max-width: 880px; }
.doc-meta { margin-bottom: 14px !important; font-size: 0.95rem !important; color: var(--blue-600) !important; font-weight: 600; }
.doc-lead { font-size: 1.2rem !important; color: var(--ink) !important; line-height: 1.65; }
.doc-toc { margin: 32px 0 44px; padding: 22px 26px; background: var(--bone); border: 1px solid var(--line); border-radius: var(--r-md); }
.doc-toc strong { display: block; margin-bottom: 10px; font: 700 13px/1 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.doc-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 36px; }
.doc-toc li { margin: 0 0 6px; break-inside: avoid; }
.doc-toc a { text-decoration: none !important; font-weight: 500 !important; color: var(--ink) !important; }
.doc-toc a:hover { color: var(--blue-600) !important; }
.doc-section { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.doc-section h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.035em; color: var(--ink) !important; }
.doc-section h2 i { flex: none; font: 700 12px/1 var(--font-display); font-style: normal; letter-spacing: 0.08em; color: var(--blue-500); background: var(--cyan-100); padding: 7px 9px; border-radius: 9px; }
.doc-section p { margin-bottom: 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; color: var(--muted); font-size: 1.1rem; }
.doc li { margin-bottom: 8px; line-height: 1.65; }
.doc li strong, .doc p strong { color: var(--ink); font-weight: 600; }
.doc-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.doc-related a { font-weight: 600; }
@media (max-width: 640px) { .doc-toc ol { columns: 1; } .doc-section h2 { font-size: 1.25rem; } }

/* ---- Pricing page ---- */
.pricing { background: var(--bone); padding: 64px 0 120px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.price-card {
	position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
	animation: csFadeUp 0.7s var(--ease) both; animation-delay: var(--d, 0s); transition: transform 0.5s var(--ease), border-color 0.4s;
}
.price-card:hover { transform: translateY(-5px); border-color: #b9cde0; }
.price-card.is-featured { background: linear-gradient(170deg, var(--navy-800), var(--navy-950)); border-color: transparent; color: var(--white); }
.price-card.is-featured h2, .price-card.is-featured .price-amount strong { color: var(--white) !important; }
.price-card.is-featured p, .price-card.is-featured .price-sub, .price-card.is-featured .price-amount span, .price-card.is-featured .price-list li span { color: rgba(255, 255, 255, 0.78) !important; }
.price-card.is-featured .price-list svg { color: var(--cyan-400); }
.price-tag { position: absolute; top: -13px; left: 28px; padding: 6px 14px; border-radius: 999px; background: var(--grad-brand); color: var(--navy-950); font: 700 12px/1 var(--font-text); letter-spacing: 0.04em; text-transform: uppercase; }
.price-card header { display: flex; align-items: center; gap: 14px; }
.price-card h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.035em; color: var(--ink) !important; }
.price-card header p { font-size: 0.95rem; color: var(--muted); }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price-amount strong { font: 800 clamp(1.8rem, 3vw, 2.4rem)/1.05 var(--font-display); letter-spacing: -0.05em; color: var(--ink); }
.price-amount span { color: var(--muted); font-weight: 500; }
.price-sub { min-height: 24px; color: var(--muted); font-size: 0.95rem; }
.price-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; flex: 1; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.price-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--blue-500); }
.price-list li span { color: var(--ink) !important; }
.price-extras { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--bone); }
.price-extras > span { font: 700 12px/1 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.price-extras div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.price-extras em { font-style: normal; color: var(--ink); }
.price-extras b { font-weight: 700; color: var(--blue-600); }
.price-card .btn { margin-top: 6px; }
.price-card.is-featured .btn-primary { color: var(--navy-950) !important; }
.skeleton-card { min-height: 420px; }
.skeleton-card i { display: block; height: 100%; min-height: 360px; border-radius: 20px; background: linear-gradient(100deg, #e8eff5 30%, #f5f9fc 50%, #e8eff5 70%); background-size: 200% 100%; animation: csShimmer 1.4s linear infinite; }
.price-note { margin-top: 22px; text-align: center; font-size: 0.95rem; color: var(--muted); }
.price-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.price-info h3 { margin-bottom: 8px; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink) !important; }
.price-info p { color: var(--muted); }
.price-info a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .price-info { grid-template-columns: 1fr; gap: 20px; } }

/* ---- Footer: contact details and map ---- */
.ftr-grid { grid-template-columns: 1.3fr 0.8fr 1.1fr 1.5fr 1.5fr; gap: 36px; }
.ftr-contact { gap: 14px; }
.ftr-line { display: grid; gap: 4px; }
.ftr-label { font: 600 12px/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.ftr address { font-style: normal; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.78) !important; }
.ftr-contact a { overflow-wrap: anywhere; }
.ftr-map { overflow: hidden; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--navy-800); aspect-ratio: 4 / 3; max-width: 360px; }
.ftr-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }
.ftr .ftr-maplink { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--cyan-300) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1280px) { .ftr-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 1080px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ftr-grid { grid-template-columns: 1fr; } .ftr-map { max-width: none; } }
.ftr-map { position: relative; }
.ftr-map-hit { position: absolute; inset: 0; z-index: 2; border-radius: 16px; }
.ftr-map-hit:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; }

/* Order confirmed: one row per invoice */
.done-list { display: grid; margin: 24px 0 8px; text-align: left; }
.done-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.done-item strong { display: block; color: var(--ink); }
.done-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.done-item > span { flex: none; font-weight: 700; color: var(--ink); }
.sum-note { margin: 12px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.6) !important; }

/* ---- Header account menu: initials, with My Account and Logout on hover ---- */
.user-menu { position: relative; }
.user-btn {
	display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px 0 6px; border: 1.5px solid rgba(7, 31, 49, 0.14); border-radius: 999px;
	background: var(--white); color: var(--ink); cursor: pointer; box-shadow: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.user-initials { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-brand); color: var(--navy-950); font: 800 13px/1 var(--font-display); letter-spacing: 0.02em; }
.user-btn svg { width: 16px; height: 16px; color: var(--muted); transition: transform 0.3s var(--ease); }
.user-menu:hover .user-btn, .user-menu:focus-within .user-btn, .user-menu.is-open .user-btn { border-color: var(--cyan-400); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16); }
.user-menu:hover .user-btn svg, .user-menu:focus-within .user-btn svg, .user-menu.is-open .user-btn svg { transform: rotate(180deg); }
.user-pop {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; min-width: 200px; padding: 8px; border-radius: 18px; background: var(--white);
	border: 1px solid var(--line); box-shadow: 0 24px 60px -18px rgba(7, 31, 49, 0.4);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
}
.user-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* keeps the menu open while the pointer travels to it */
.user-menu:hover .user-pop, .user-menu:focus-within .user-pop, .user-menu.is-open .user-pop { opacity: 1; visibility: visible; transform: none; }
.user-pop a, .user-pop button {
	display: block; width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; box-shadow: none;
	font: 600 14.5px/1.2 var(--font-text); color: var(--ink) !important; transition: background 0.2s;
}
.user-pop a:hover, .user-pop button:hover { background: var(--cyan-100); }
.user-pop button[data-logout] { color: #9b1c1c !important; }
.user-pop button[data-logout]:hover { background: #fdecec; }

/* ---- Invoices: a table, one row per invoice ---- */
.dash-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.dash-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.dash-table th { padding: 14px 18px; text-align: left; font: 600 12px/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--bone); border-bottom: 1px solid var(--line); }
.dash-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.inv-row { animation: csFadeUp 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.inv-row:hover td { background: #f8fbfd; }
.inv-row.is-open td { background: #f8fbfd; border-bottom-color: transparent; }
.row-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; cursor: pointer; font: 600 14.5px/1.2 var(--font-text); color: var(--blue-600); }
.row-toggle svg { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform 0.3s var(--ease); }
.inv-row.is-open .row-toggle svg { transform: rotate(90deg); }
.inv-row .chip-wait { margin-left: 8px; }
.col-act { width: 60px; text-align: right; }
.inv-detail td { padding: 6px 22px 24px; background: #f8fbfd; }
.inv-detail .validity { margin-top: 10px; }
.dash-print.is-icon { width: 38px; height: 38px; padding: 0; justify-content: center; }
@media (max-width: 720px) {
	.dash-table-wrap { overflow: visible; background: none; border: 0; }
	.dash-table, .dash-table tbody, .dash-table tr, .dash-table td { display: block; min-width: 0; width: 100%; }
	.dash-table { min-width: 0; }
	.dash-table thead { display: none; }
	.inv-row { margin-top: 12px; padding: 14px 16px 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
	.inv-row.is-open { border-radius: var(--r-md) var(--r-md) 0 0; border-bottom-color: transparent; }
	.dash-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border: 0; background: none !important; text-align: right; }
	.dash-table td::before { content: attr(data-label); flex: none; font: 600 12.5px/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
	.dash-table td.col-act { width: 100%; justify-content: flex-end; text-align: right; }
	.dash-table td.col-act::before { content: none; }
	.inv-detail { margin: 0 0 12px; background: var(--bone); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); }
	.inv-detail td { display: block; padding: 8px 16px 18px; }
	.inv-detail td::before { content: none; }
}

/* ---- New ticket form inside the dashboard ---- */
.dash-ticket-form { display: grid; gap: 20px; max-width: none; }
.dash-ticket-form .field { margin: 0; }
.dash-ticket-form .profile-grid { margin: 0; }
.dash-ticket-form .hint { margin: -10px 0 0; }
.form-part { margin: 4px 0 0; font: 700 1.1rem/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink) !important; }
.form-part .opt { margin-left: 8px; font-size: 13px; }
.form-part:not(:first-of-type) { margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ===================== Dashboard: wider workspace ===================== */
/* The dashboard uses more of the screen than the marketing pages: less empty space on the left and right.
   The header and footer follow the same width on this page so everything lines up. */
body:has(.dash-page) .container { width: min(1640px, 100% - 56px); }
.dash-grid { gap: 28px; }
@media (max-width: 1100px) { body:has(.dash-page) .container { width: min(1640px, 100% - 40px); } }
@media (max-width: 700px) { body:has(.dash-page) .container { width: calc(100% - 28px); } }

/* ===================== Subscriptions ===================== */
.sub-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: stretch; }
.sub-skeleton { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.sub-skeleton i { height: 300px; }

.sub-card {
	--accent: var(--success);
	position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 20px; overflow: hidden;
	background: var(--white); border: 1px solid var(--line); border-radius: 24px;
	animation: csFadeUp 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms);
	transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s var(--ease);
}
.sub-card::before { /* a thin accent line along the top edge */
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); opacity: 0.85;
}
.sub-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 22px 44px -26px rgba(7, 31, 49, 0.35); }
.sub-card.is-soon { --accent: #e7a21a; }
.sub-card.is-expired { --accent: var(--danger); background: #fcfdfe; }
.sub-card.is-expired .plogo { filter: grayscale(0.7); opacity: 0.75; }

.sub-card header { display: flex; align-items: center; gap: 12px; }
.sub-card .plogo { width: 46px; height: 46px; padding: 6px; border-radius: 14px; }
.sub-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sub-title h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-title span { font-size: 13px; color: var(--muted); }
.sub-status {
	flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
	font: 600 12.5px/1.2 var(--font-text); color: #0b6b4b; background: #e7f7f0;
}
.sub-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sub-card.is-active .sub-status i { animation: csPulse 2.4s ease-in-out infinite; }
.sub-card.is-soon .sub-status { color: #8a5a00; background: #fff4db; }
.sub-card.is-expired .sub-status { color: #9b1c1c; background: #fdecec; }
@keyframes csPulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.sub-site { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; background: var(--bone); color: var(--ink); font-weight: 500; font-size: 14.5px; min-width: 0; }
.sub-site svg { flex: none; width: 18px; height: 18px; color: var(--blue-500); }
.sub-site span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sub-expiry { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sub-days { display: flex; align-items: baseline; gap: 8px; }
.sub-days strong { font: 800 2.4rem/1 var(--font-display); letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sub-days span { font-size: 14px; color: var(--muted); }
.sub-card.is-soon .sub-days strong { color: #b87500; }
.sub-card.is-expired .sub-days strong { color: var(--danger); }
.sub-dates { display: grid; gap: 4px; text-align: right; }
.sub-dates span { display: flex; justify-content: flex-end; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sub-dates b { font-weight: 600; color: var(--ink); }

.sub-card .progress-bar { margin: 0; }
.sub-card .progress-bar i { background: var(--accent); width: var(--w, 0); transform-origin: left; animation: csGrowX 1.1s var(--ease) 0.25s both; }
.sub-card.is-active:not(.is-soon) .progress-bar i { background: var(--grad-brand); }

.sub-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.sub-facts li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.sub-facts b { font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.sub-earlier { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }

.sub-card footer { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 4px; }
.sub-card footer .btn { height: 46px; padding: 0 16px; font-size: 14.5px; justify-content: center; }

/* ---- Renew / Extend dialog ---- */
.sub-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 26px; background: var(--white); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(4, 19, 30, 0.7); }
.sub-dialog::backdrop { background: rgba(4, 19, 30, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sub-dialog[open] { animation: csDialogIn 0.4s var(--ease); }
.sub-dialog[open]::backdrop { animation: csFade 0.3s ease; }
@keyframes csDialogIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes csFade { from { opacity: 0; } }
.sub-dialog-box { display: grid; gap: 16px; padding: 28px; max-height: min(86vh, 720px); overflow-y: auto; }
.sub-dialog-box h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.035em; color: var(--ink) !important; }
.sub-dialog-box .tiles { margin: 0; }
.sub-summary { margin: 0; padding: 4px 16px; border-radius: 16px; background: var(--bone); }
.sub-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sub-dialog-actions .btn { height: 48px; padding: 0 24px; }
/* Accept-the-terms checkbox: a tidy row with a branded box. (Named cs-check so no other stylesheet can touch it.) */
.cs-check {
	display: flex; align-items: flex-start; gap: 12px; width: 100%; margin: 0; padding: 14px 16px; cursor: pointer;
	border: 1.5px solid var(--line); border-radius: 14px; background: var(--white);
	font: 400 14.5px/1.55 var(--font-text); color: var(--muted);
	transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.cs-check:hover { border-color: #b7c9d8; }
.cs-check:has(input:checked) { border-color: var(--cyan-400); background: var(--cyan-100); }
.cs-check:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2); }
.cs-check.is-invalid { border-color: var(--danger); background: #fff7f7; animation: csShake 0.45s; }
.cs-check input[type="checkbox"] {
	-webkit-appearance: none; appearance: none; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 1px 0 0; padding: 0;
	border: 1.5px solid #9fb6c8; border-radius: 7px; background: var(--white); box-shadow: none; cursor: pointer;
	transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.cs-check input[type="checkbox"]::after {
	content: ""; width: 11px; height: 6px; margin-top: -2px; border: 2.5px solid var(--white); border-top: 0; border-right: 0;
	transform: rotate(-45deg) scale(0); transition: transform 0.25s var(--ease);
}
.cs-check input[type="checkbox"]:checked { background: var(--blue-500); border-color: var(--blue-500); }
.cs-check input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.cs-check input[type="checkbox"]:active { transform: scale(0.92); }
.cs-check input[type="checkbox"]:focus-visible { outline: none; }
.cs-check-text { flex: 1; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.cs-check-text a { color: var(--blue-600) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cs-check-text a:hover { color: var(--blue-500) !important; }
@media (max-width: 480px) { .sub-dialog-box { padding: 22px 18px; } .sub-dialog-actions .btn { flex: 1; } .sub-expiry { flex-direction: column; align-items: flex-start; } .sub-dates { text-align: left; } .sub-dates span { justify-content: flex-start; } }

/* ---- Toast ---- */
.dash-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 130; max-width: min(520px, calc(100% - 28px)); padding: 14px 20px; border-radius: 16px;
	background: var(--navy-950); color: var(--white); font-weight: 500; font-size: 14.5px; box-shadow: 0 24px 60px -20px rgba(4, 19, 30, 0.7);
	transform: translateX(-50%);
}
.dash-toast[hidden] { display: none; }
.dash-toast.is-in { animation: csToast 0.5s var(--ease); }
@keyframes csToast { from { opacity: 0; transform: translate(-50%, 16px); } }

@media (prefers-reduced-motion: reduce) { .sub-card, .sub-card .progress-bar i, .sub-status i, .sub-dialog[open], .dash-toast.is-in { animation: none; } .sub-card:hover { transform: none; } }

/* Pay now button in the invoice table */
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; }
.dash-table td.col-act { white-space: nowrap; }
.col-act { width: auto; }
.col-act .btn-sm { margin-right: 8px; vertical-align: middle; }