/* =========================================================
   SIGENOS SOLUTIONS — Main Website
   Visual direction: deep navy / electric blue / cyan / white
   ========================================================= */

:root {
  --navy-950: #020b22;
  --navy-900: #04112e;
  --navy-800: #071b45;
  --navy-700: #0b2763;
  --ink: #0a1633;
  --text: #2c3a57;
  --muted: #5d6a86;
  --line: #dde6f3;
  --blue: #1677ff;
  --blue-600: #0a5ae6;
  --cyan: #2ee6ff;
  --cyan-2: #22d3ee;
  --green: #22c55e;
  --btn: linear-gradient(90deg, #1a8dff 0%, #0b63f0 100%);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-brand: "Orbitron", "Sora", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; }
svg { width: 1em; height: 1em; flex: none; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }
.cyan { color: var(--cyan); background: linear-gradient(90deg, #2ee6ff, #3cc8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.muted { color: var(--muted); }
.light-muted { color: #c9d6ee; }

.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.eyebrow-light { color: #e6eeff; }
.excel .eyebrow-light, .cta .eyebrow-light { color: #cfe2ff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.55rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .92rem; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { font-size: 1.05rem; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.2rem; font-size: .86rem; }
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 10px 26px -10px rgba(22, 119, 255, .85); }
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(22, 119, 255, .95); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { border-color: var(--cyan); background: rgba(46,230,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== Brand / wordmark ===== */
.brand { display: flex; align-items: center; gap: .55rem; }
.brand-s { width: 54px; height: 54px; object-fit: cover; transform: scale(1.35); filter: drop-shadow(0 0 10px rgba(30,140,255,.55)); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b {
  font-family: var(--font-brand); font-weight: 900; font-size: 1.55rem; letter-spacing: .02em;
  background: linear-gradient(180deg, #6fc2ff 0%, #2f86ff 55%, #1757d8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(40,140,255,.45));
}
.wordmark i {
  font-style: normal; font-family: var(--font-brand); font-weight: 800; font-size: .7rem; letter-spacing: .5em;
  color: #3fa0ff; margin-top: .2rem; padding-left: .12em;
}
.wordmark small { font-size: .62rem; color: #8ea6cc; margin-top: .55rem; letter-spacing: .04em; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 13, 38, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(120,160,255,.08);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 2.4rem; font-size: .9rem; font-weight: 500; color: #dbe6ff; }
.nav-links a { position: relative; padding: .4rem 0; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.nav-links .btn { margin-left: .6rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; border-radius: 2px; background: #fff; transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 5.5rem 0 6.5rem; min-height: 640px; display: flex; align-items: center;
  background:
    radial-gradient(900px 600px at 78% 45%, rgba(20, 110, 255, .35), transparent 65%),
    radial-gradient(500px 400px at 95% 10%, rgba(46, 230, 255, .14), transparent 70%),
    linear-gradient(115deg, #020a1f 0%, #04143a 45%, #062061 100%);
}
.hero-streaks { position: absolute; inset: 0; pointer-events: none; }
.hero-streaks i {
  position: absolute; height: 2px; border-radius: 2px; transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(46,230,255,.9), rgba(22,119,255,.4), transparent);
  filter: blur(.5px); box-shadow: 0 0 12px rgba(46,230,255,.6);
}
.hero-streaks i:nth-child(1) { width: 70%; left: 30%; top: 78%; transform: rotate(-18deg); opacity: .8; }
.hero-streaks i:nth-child(2) { width: 60%; left: 40%; top: 88%; transform: rotate(-22deg); opacity: .5; }
.hero-streaks i:nth-child(3) { width: 45%; left: 55%; top: 30%; transform: rotate(-8deg); opacity: .35; }
.hero-streaks i:nth-child(4) { width: 80%; left: 25%; top: 96%; transform: rotate(-12deg); opacity: .35; height: 4px; filter: blur(3px); }
.hero-s {
  position: absolute; right: -90px; top: 52%; transform: translateY(-50%);
  width: min(820px, 62vw); pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(30, 140, 255, .55)) drop-shadow(0 0 90px rgba(46, 230, 255, .25));
  animation: s-float 7s ease-in-out infinite;
}
@keyframes s-float { 50% { transform: translateY(calc(-50% - 12px)); } }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 1.5rem; }
.hero-lead { max-width: 33rem; color: #d5e1f7; font-size: 1.06rem; margin-bottom: 2.2rem; }

/* ===== Laptop (shared) ===== */
.laptop { position: relative; }
.laptop-screen {
  position: relative; aspect-ratio: 16 / 10; container-type: inline-size;
  background: #0b0f1a; border-radius: 14px 14px 4px 4px; padding: 1.6%;
  box-shadow: 0 0 0 2px #2a3245 inset, 0 30px 60px -25px rgba(4, 20, 60, .55);
}
.laptop-screen > div { width: 100%; height: 100%; border-radius: 4px; overflow: hidden; }
.laptop-base {
  position: relative; height: 0; padding-bottom: 3.2%; margin: 0 -7%;
  background: linear-gradient(180deg, #e9edf3 0%, #c3cad6 55%, #8e97a7 100%);
  border-radius: 2px 2px 18px 18px / 2px 2px 60% 60%;
  box-shadow: 0 18px 30px -12px rgba(5, 20, 50, .45);
}
.laptop-base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 35%; background: #aab2c0; border-radius: 0 0 8px 8px; }

/* ===== Flagship: TestMetric ===== */
.flagship { position: relative; overflow: hidden; padding: 5.5rem 0 5rem; background: linear-gradient(180deg, #f7faff, #fff 60%); }
.flagship-wave {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 100% 20%, rgba(46,170,255,.22), transparent 70%),
    repeating-radial-gradient(ellipse at 110% 0%, transparent 0 22px, rgba(22,119,255,.06) 23px 24px);
}
.flagship-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.tm-logo { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.tm-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 12px; color: #fff; font-size: 2rem;
  background: linear-gradient(135deg, #2b9bff, #0b5ce8); box-shadow: 0 10px 22px -8px rgba(22,119,255,.7);
}
.tm-icon.sm { width: 1.6em; height: 1.6em; border-radius: .35em; font-size: 1em; box-shadow: none; }
.tm-icon.sm svg { width: .9em; height: .9em; }
.tm-word { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.3rem); color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.tm-word span { color: var(--blue); }
.flagship-copy h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .9rem; }
.flagship-copy > p.muted { margin-bottom: 1.4rem; }
.checks { list-style: none; display: grid; gap: .7rem; margin-bottom: 2rem; font-size: .96rem; font-weight: 500; color: var(--ink); }
.checks li { display: flex; align-items: center; gap: .7rem; }
.checks svg { font-size: 1.15rem; color: var(--blue); }
.checks-light { color: #eaf1ff; }
.checks-light svg { color: #1f8bff; }

.tm-laptop { width: 122%; margin-right: -22%; }

/* TestMetric mini app — sized in container units so it scales with the laptop */
.tm-app { display: grid; grid-template-columns: 19% 1fr; font-size: 1.35cqw; background: #f3f6fb; color: #23314f; }
.tm-side { background: linear-gradient(180deg, #0b1d49, #081536); color: #aebfe2; padding: 1.4cqw .9cqw; display: flex; flex-direction: column; gap: .35cqw; }
.tm-side-brand { display: flex; align-items: center; gap: .6cqw; color: #fff; font-weight: 700; margin-bottom: 1.2cqw; font-size: 1.15em; }
.tm-side span { padding: .6cqw .9cqw; border-radius: .6cqw; display: flex; align-items: center; gap: .7cqw; }
.tm-side span::before { content: ""; width: .9cqw; height: .9cqw; border-radius: .25cqw; border: .15cqw solid currentColor; opacity: .7; }
.tm-side span.on { background: #1677ff; color: #fff; }
.tm-main { padding: 1.2cqw 1.8cqw; display: flex; flex-direction: column; gap: 1.1cqw; min-width: 0; }
.tm-top { display: flex; justify-content: space-between; align-items: center; color: #8a97b2; font-size: .85em; border-bottom: .1cqw solid #e2e8f2; padding-bottom: .7cqw; }
.tm-top i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: linear-gradient(135deg, #9fc4ff, #3a7bf0); }
.tm-main h4 { font-size: 2em; color: #0b1838; font-family: var(--font-head); }
.tm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
.tm-kpis > div { background: #fff; border-radius: .9cqw; padding: 1.1cqw 1.2cqw; display: grid; grid-template-columns: auto 1fr; column-gap: 1cqw; align-items: center; box-shadow: 0 .4cqw 1.2cqw -.6cqw rgba(10,40,100,.25); }
.k-ic { grid-row: span 2; width: 3.6cqw; height: 3.6cqw; border-radius: .8cqw; display: grid; place-items: center; background: #e7f0ff; color: #1677ff; font-size: 2.2cqw; }
.k-ic.green { background: #e3f8ec; color: #16a34a; }
.tm-kpis b { font-size: 1.7em; color: #0b1838; line-height: 1.1; }
.tm-kpis small { font-size: .78em; color: #7a87a3; }
.tm-panels { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.2cqw; }
.tm-card { background: #fff; border-radius: .9cqw; padding: 1cqw 1.2cqw; box-shadow: 0 .4cqw 1.2cqw -.6cqw rgba(10,40,100,.25); }
.tm-card-title { display: block; font-weight: 700; color: #1a2747; margin-bottom: .6cqw; }
.tm-bars { height: 9cqw; display: flex; align-items: flex-end; gap: .7cqw; border-bottom: .1cqw solid #e2e8f2; background: repeating-linear-gradient(0deg, transparent 0 2.2cqw, #eef2f8 2.2cqw 2.3cqw); }
.tm-bars i { flex: 1; height: var(--h); border-radius: .3cqw .3cqw 0 0; background: linear-gradient(180deg, #3d9bff, #0b5ce8); }
.tm-donut-wrap { display: flex; align-items: center; gap: 1.6cqw; height: 9cqw; }
.tm-donut { width: 8.4cqw; height: 8.4cqw; border-radius: 50%; flex: none; background: conic-gradient(#1677ff 0 62%, #2ee6ff 62% 84%, #b9d4ff 84% 100%); -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%); mask: radial-gradient(circle, transparent 52%, #000 53%); }
.tm-donut-wrap ul { list-style: none; display: grid; gap: .5cqw; font-size: .8em; color: #6c7a98; }
.tm-donut-wrap li::before { content: ""; display: inline-block; width: .8cqw; height: .8cqw; border-radius: 50%; margin-right: .5cqw; background: #1677ff; }
.tm-donut-wrap li:nth-child(2)::before { background: #2ee6ff; }
.tm-donut-wrap li:nth-child(3)::before { background: #b9d4ff; }
.tm-table { font-size: .85em; }
.tr { display: grid; grid-template-columns: 2.2fr 1fr 1fr .9fr; align-items: center; gap: 1cqw; padding: .45cqw 0; border-top: .1cqw solid #eef2f8; }
.tr.th { color: #8a97b2; border-top: 0; font-weight: 600; }
.tr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr em { font-style: normal; justify-self: start; background: #dcfce7; color: #15803d; border-radius: 99px; padding: .15cqw .9cqw; font-weight: 600; font-size: .9em; }

/* ===== Excel & VBA ===== */
.excel {
  position: relative; overflow: hidden; color: #fff; padding: 5rem 0;
  background:
    radial-gradient(700px 480px at 25% 55%, rgba(22,119,255,.32), transparent 70%),
    linear-gradient(110deg, #020b22 0%, #05173f 55%, #041030 100%);
}
.excel-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.excel-copy h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.excel-copy > p { margin-bottom: 1.5rem; }
.excel-visual { position: relative; padding: 2rem 2rem 2.5rem 1rem; perspective: 1400px; }
.xl-laptop { transform: rotateY(22deg) rotateX(6deg) rotateZ(-2deg); transform-style: preserve-3d; width: 92%; margin-left: 4%; }
.xl-laptop .laptop-screen { box-shadow: 0 0 0 2px #2a3245 inset, 0 0 60px -10px rgba(22,119,255,.6); }
.xl-app { background: #fff; display: flex; flex-direction: column; font-size: 1.3cqw; }
.xl-ribbon { height: 7%; background: #1f7a45; display: flex; align-items: center; gap: 1.4cqw; padding: 0 1.5cqw; }
.xl-ribbon i { width: 5cqw; height: .8cqw; border-radius: .4cqw; background: rgba(255,255,255,.5); }
.xl-body { flex: 1; display: grid; grid-template-columns: 16% 1fr; min-height: 0; }
.xl-side { background: #0f2a1d; padding: 1.4cqw 1cqw; display: flex; flex-direction: column; gap: 1.1cqw; }
.xl-side span { height: .9cqw; border-radius: .4cqw; background: rgba(255,255,255,.28); }
.xl-side span:first-child { background: #3ddc84; width: 70%; }
.xl-sheet { padding: 1.6cqw 2cqw; display: flex; flex-direction: column; gap: 1.1cqw; min-height: 0; }
.xl-sheet b { font-family: var(--font-head); font-size: 1.6em; color: #0f1d33; letter-spacing: .02em; }
.xl-lines { display: grid; gap: .6cqw; }
.xl-lines i { height: .8cqw; width: 45%; background: #d6dde8; border-radius: .4cqw; }
.xl-lines i + i { width: 30%; }
.xl-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2cqw; align-items: end; }
.xl-bars { height: 15cqw; display: flex; align-items: flex-end; gap: 1cqw; border-bottom: .15cqw solid #c7d0de; }
.xl-bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, #4ea8ff, #1660d8); border-radius: .2cqw .2cqw 0 0; }
.xl-pie { width: 13cqw; height: 13cqw; border-radius: 50%; justify-self: center; background: conic-gradient(#f0a54a 0 18%, #1e6fe0 18% 70%, #6fb6ff 70% 100%); box-shadow: 0 .5cqw 1.5cqw rgba(10,40,100,.25); }
.xl-grid { flex: 1; min-height: 4cqw; background: repeating-linear-gradient(0deg, #e5eaf2 0 .12cqw, transparent .12cqw 2.2cqw), repeating-linear-gradient(90deg, #e5eaf2 0 .12cqw, transparent .12cqw 9cqw); }
.xl-icon {
  position: absolute; left: 4%; bottom: 0; width: 22%; aspect-ratio: 1; border-radius: 14%;
  background: linear-gradient(135deg, #21a366 0%, #107c41 60%, #0b5e30 100%);
  box-shadow: 0 25px 40px -15px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1) inset;
  transform: perspective(600px) rotateY(18deg) rotateX(6deg);
  display: grid; place-items: center;
}
.xl-icon::before { content: ""; position: absolute; inset: 12% 12% 12% 46%; border-radius: 6%; background: repeating-linear-gradient(0deg, #33c481 0 24%, #21a366 24% 26%); opacity: .9; }
.xl-icon span { position: relative; z-index: 1; margin-right: 30%; width: 58%; aspect-ratio: 1; border-radius: 10%; background: #0e6b37; color: #fff; font: 800 clamp(1.6rem, 3.2vw, 2.6rem)/1 var(--font-head); display: grid; place-items: center; box-shadow: 4px 6px 14px rgba(0,0,0,.35); }
.glass {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: clamp(54px, 7vw, 84px); aspect-ratio: 1; border-radius: 18px; color: #6fd0ff; font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  background: linear-gradient(145deg, rgba(60,140,255,.28), rgba(10,40,110,.25));
  border: 1px solid rgba(110,190,255,.55); backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgba(30,140,255,.45), inset 0 0 18px rgba(110,190,255,.25);
  animation: float 6s ease-in-out infinite;
}
.glass.g1 { left: 10%; top: 0; animation-delay: -1s; }
.glass.g2 { right: 0; top: 4%; animation-delay: -3s; }
.glass.g3 { right: 2%; top: 46%; animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ===== Future ===== */
.future { position: relative; overflow: hidden; padding: 4.5rem 0; background: linear-gradient(180deg, #f6f9ff, #fff); }
.future::after {
  content: ""; position: absolute; right: -10%; bottom: -30%; width: 75%; height: 120%; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(70,160,255,.25), transparent),
    repeating-radial-gradient(ellipse at 80% 100%, transparent 0 18px, rgba(22,119,255,.07) 19px 20px);
}
.future-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.future-copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.future-copy p { max-width: 32rem; }
.future-visual { position: relative; height: 300px; }
.future-path { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 75%; }
.iso-card {
  position: absolute; width: 22%; aspect-ratio: .82; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(225,238,255,.85));
  border: 1px solid rgba(120,180,255,.55);
  box-shadow: 0 18px 30px -12px rgba(22,90,200,.4), 0 0 0 4px rgba(255,255,255,.35) inset;
  transform: skewY(-14deg); color: #1677ff; font-size: 2.4rem;
}
.iso-card span { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: #0b2a66; text-align: center; line-height: 1.2; }
.iso-card.c1 { left: 2%; bottom: 0; }
.iso-card.c2 { left: 27%; bottom: 17%; }
.iso-card.c3 { left: 52%; bottom: 34%; }
.iso-card.c4 { left: 77%; bottom: 51%; }
.iso-card.c1 svg { color: #0b2a66; }

/* ===== Why ===== */
.why { padding: 4.5rem 0 5rem; background: #f5f8fd; }
.why h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 3rem; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.why-ic {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.3rem; border-radius: 50%;
  color: #1677ff; font-size: 2rem; background: #fff;
  border: 1.5px solid #cfe0fb; box-shadow: 0 0 0 6px rgba(22,119,255,.06), 0 12px 24px -12px rgba(22,90,200,.45);
}
.why-item h4 { font-size: 1rem; margin-bottom: .5rem; }
.why-item p { font-size: .88rem; color: var(--muted); }

/* ===== CTA ===== */
.cta { position: relative; overflow: hidden; color: #fff; min-height: 380px; display: flex; align-items: center; padding: 4rem 0; text-align: center; }
.cta-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-inner { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.cta p:not(.eyebrow) { color: #dbe6fb; font-size: 1.05rem; margin-bottom: 1.8rem; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-950); color: #9fb0cf; padding: 4rem 0 1.5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.brand-lg .brand-s { width: 72px; height: 72px; }
.brand-lg .wordmark b { font-size: 2rem; }
.brand-lg .wordmark i { font-size: .82rem; }
.footer-brand > p { margin: 1.4rem 0 1.4rem; max-width: 22rem; }
.socials { display: flex; gap: .8rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #2c4170; color: #c8d6f2; font-size: 1.1rem; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--cyan); color: var(--cyan); }
.site-footer h5 { color: #fff; font-size: .95rem; margin: .6rem 0 1.1rem; }
.footer-grid > div > a:not(.brand) { display: block; margin-bottom: .7rem; transition: color .2s; }
.footer-grid > div > a:not(.brand):hover { color: var(--cyan); }
.ic-line { display: flex !important; align-items: flex-start; gap: .6rem; margin-bottom: .9rem; }
.ic-line svg { color: #3fa0ff; font-size: 1.1rem; margin-top: .15rem; }
.footer-bottom { text-align: right; font-size: .8rem; color: #5f7298; margin-top: 2.5rem; }

/* ===== Contact dialog ===== */
.contact-dialog {
  margin: auto; width: min(560px, calc(100% - 32px)); border: 0; border-radius: 22px; padding: 2rem;
  background: #fff; color: var(--text); box-shadow: 0 40px 80px -20px rgba(2, 11, 34, .6);
}
.contact-dialog::backdrop { background: rgba(2, 11, 34, .7); backdrop-filter: blur(4px); }
.contact-dialog h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.contact-dialog > p { margin-bottom: 1.3rem; font-size: .93rem; }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #eef3fb; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.contact-form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .84rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-weight: 400; color: var(--text); padding: .7rem .85rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fbfdff; resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22,119,255,.15); }
.contact-form .invalid { border-color: #ff6b4a; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button:disabled { opacity: .7; cursor: wait; transform: none; }
.form-note { font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.form-note a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.xl-laptop, .tm-laptop.reveal.visible { will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-s, .glass { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav-links { gap: 1.5rem; }
  .flagship-grid, .excel-grid, .future-grid { grid-template-columns: 1fr; }
  .tm-laptop { width: 100%; margin-right: 0; }
  .excel-visual { order: 2; max-width: 640px; }
  .future-visual { max-width: 600px; width: 100%; margin: 1rem auto 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-s { opacity: .45; right: -18%; width: 80vw; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 24px 1.2rem;
    background: rgba(3, 13, 38, .98); border-bottom: 1px solid rgba(120,160,255,.15);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid rgba(120,160,255,.12); }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { margin: 1rem 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .why-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .brand-s { width: 44px; height: 44px; }
  .wordmark b { font-size: 1.25rem; }
  .wordmark i { font-size: .58rem; }
  .hero { min-height: 0; padding: 4rem 0 4.5rem; }
  .hero-s { width: 110vw; right: -45%; opacity: .3; }
  .hero h1 br, .flagship-copy br, .excel-copy br { display: none; }
  .hero-lead { font-size: 1rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .flagship, .excel { padding: 4rem 0; }
  .tm-word { font-size: 2.3rem; }
  .tm-icon { width: 48px; height: 48px; font-size: 1.6rem; }
  .checks { font-size: .92rem; }
  .future-visual { height: 230px; }
  .iso-card { font-size: 1.6rem; border-radius: 10px; }
  .iso-card span { font-size: .62rem; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item p br { display: none; }
  .cta p br { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { text-align: left; }
  .field-row { grid-template-columns: 1fr; }
  .contact-dialog { padding: 1.5rem; }
}
@media (min-width: 1081px) { .future-copy h2 { white-space: nowrap; } }

/* =========================================================
   SHOP, PRODUCT & ADMIN PAGES
   ========================================================= */
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; }
.link.danger { color: #e0413a; }
.small { font-size: .85rem; }

/* Shop hero */
.shop-hero {
  color: #fff; padding: 4.2rem 0 3rem;
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(20,110,255,.35), transparent 65%),
    linear-gradient(115deg, #020a1f 0%, #04143a 50%, #062061 100%);
}
.shop-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .9rem; }
.shop-hero-lead { color: #c9d6ee; max-width: 38rem; margin-bottom: 2rem; }
.shop-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-tabs button {
  border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.04); color: #dbe6ff;
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: .2s;
}
.shop-tabs button:hover { border-color: var(--cyan); color: #fff; }
.shop-tabs button.on { background: var(--btn); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(22,119,255,.9); }
.shop-search { display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px; padding: .55rem 1rem; min-width: 260px; color: var(--muted); }
.shop-search input { border: 0; outline: 0; flex: 1; color: var(--ink); background: none; }

/* Shop sections */
.shop-body { background: #f5f8fd; padding: 3rem 0 5rem; min-height: 40vh; }
.shop-status { color: var(--muted); padding: 2rem 0; text-align: center; }
.shop-section + .shop-section { margin-top: 3.5rem; }
.shop-section-head { margin-bottom: 1.4rem; }
.shop-section-head h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.shop-section-head p { color: var(--muted); font-size: .95rem; }
.shop-empty { background: #fff; border: 1.5px dashed #cfdcf1; border-radius: 16px; padding: 2rem; text-align: center; color: var(--muted); }
.shop-empty.big { padding: 4rem 2rem; }
.shop-empty.big h2 { margin-bottom: .5rem; }
.shop-empty.big .btn { margin-top: 1.5rem; }

/* Product cards (Raket-style grid) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.product-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 10px 26px -18px rgba(7,38,104,.5); transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(7,38,104,.55); }
.pc-cover { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #0b1d49, #0b4bc0); display: block; overflow: hidden; }
.pc-cover > img { width: 100%; height: 100%; object-fit: cover; }
.pc-placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.pc-placeholder img { width: 46%; filter: drop-shadow(0 0 20px rgba(46,230,255,.45)); }
.pc-badge {
  position: absolute; top: .75rem; left: .75rem; background: var(--btn); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: .3rem .65rem; border-radius: 999px; text-transform: uppercase;
}
.pc-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.pc-cat { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.pc-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-price { margin-top: auto; padding-top: .5rem; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--blue-600); }
.pc-price small { font-size: .78rem; font-weight: 600; color: var(--muted); }

/* Product page */
.product-page { background: #f5f8fd; padding: 2rem 0 5rem; min-height: 60vh; }
.crumbs { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { display: inline-flex; align-items: center; gap: .35rem; color: var(--blue); font-weight: 600; }
.pd-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: start; }
.pd-main { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #0b1d49, #0b4bc0); box-shadow: 0 20px 40px -24px rgba(7,38,104,.6); }
.pd-main > img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.pd-thumbs button { flex: none; width: 76px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #fff; opacity: .7; }
.pd-thumbs button.on { border-color: var(--blue); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: .4rem 0 .8rem; }
.pd-summary { color: var(--muted); margin-bottom: 1.4rem; }
.pd-buybox { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; margin-bottom: 1.8rem; box-shadow: 0 14px 30px -24px rgba(7,38,104,.6); }
.pd-price { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--blue-600); margin-bottom: 1rem; }
.pd-price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.pd-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.pd-actions .btn { flex: 1 1 180px; }
.pd-sample { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; font-weight: 600; color: var(--blue); font-size: .92rem; }
.pd-note { display: flex; gap: .5rem; align-items: flex-start; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.pd-note svg { margin-top: .2rem; color: var(--green); }
.pd-info h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.pd-about { margin-top: 3rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; }
.pd-about h2, .pd-related h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 1rem; }
.pd-desc { white-space: pre-line; overflow-wrap: anywhere; }
.pd-desc a { color: var(--blue); text-decoration: underline; }
.pd-related { margin-top: 3rem; }

/* Admin */
.admin-page { background: #f5f8fd; }
.admin-page .site-header { position: static; }
.admin-user { display: flex; align-items: center; gap: .8rem; color: #c9d6ee; font-size: .85rem; }
.admin-main { min-height: calc(100vh - 76px); padding: 2.5rem 0 4rem; }
.admin-login { display: grid; place-items: center; padding: 3rem 16px; }
.admin-card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 2rem; display: grid; gap: 1rem; box-shadow: 0 30px 60px -30px rgba(7,38,104,.5); }
.admin-card h1 { font-size: 1.5rem; }
.admin-card label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.admin-card input { padding: .7rem .85rem; border-radius: 10px; border: 1.5px solid var(--line); }
.admin-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.admin-tabs button { border: 1.5px solid var(--line); background: #fff; padding: .55rem 1.2rem; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--ink); display: inline-flex; gap: .4rem; align-items: center; }
.admin-tabs button.on { background: var(--btn); color: #fff; border-color: transparent; }
.count { background: #e0413a; color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 .45rem; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; gap: 1rem; }
.admin-group { margin-bottom: 2rem; }
.admin-group h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.admin-rows { display: grid; gap: .6rem; }
.admin-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem; }
.ar-thumb { width: 64px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #0b1d49, #0b4bc0); }
.ar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ar-main { display: grid; min-width: 0; }
.ar-main b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-main small { color: var(--muted); }
.ar-main em { color: #d97706; font-style: normal; }
.ar-actions { display: flex; gap: 1rem; }
.status { font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: #eef2f8; color: var(--muted); }
.status.on { background: #dcfce7; color: #15803d; }
.editor-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 40px); }
.editor-dialog label small, .img-label small { font-weight: 400; color: var(--muted); }
.slug-field { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfdff; overflow: hidden; }
.slug-field span { padding-left: .85rem; color: var(--muted); font-weight: 400; font-size: .85rem; white-space: nowrap; }
.contact-form .slug-field input { border: 0; padding-left: .1rem; flex: 1; min-width: 0; box-shadow: none; }
.img-field { display: grid; gap: .5rem; }
.img-label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.img-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.img-thumb { position: relative; width: 96px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(2,11,34,.75); color: #fff; cursor: pointer; line-height: 1; }
.file-btn { justify-self: start; cursor: pointer; }
.contact-form .check-label { display: flex; align-items: center; gap: .5rem; align-self: end; padding-bottom: .7rem; }
.inquiry { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.inquiry.contacted { border-left-color: #f59e0b; }
.inquiry.closed { border-left-color: #cbd5e1; opacity: .75; }
.iq-head { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.iq-head a { color: var(--blue); }
.iq-interest { font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: .2rem; }
.iq-msg { margin-top: .6rem; white-space: pre-line; color: var(--ink); }
.iq-actions { display: flex; gap: 1rem; align-items: center; margin-top: .8rem; }
.iq-actions select { padding: .35rem .6rem; border-radius: 8px; border: 1.5px solid var(--line); }

@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shop-search { min-width: 0; width: 100%; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .pc-body { padding: .8rem; }
  .pc-title { font-size: .88rem; }
  .pc-price { font-size: 1.02rem; }
  .admin-row { grid-template-columns: 52px 1fr; }
  .admin-row .status, .admin-row .ar-actions { grid-column: 2; justify-self: start; }
  .admin-user span { display: none; }
}

/* =========================================================
   CART, CHECKOUT & ORDER PAGES
   ========================================================= */
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; margin-left: 1.2rem; border-radius: 50%; color: #dbe6ff; font-size: 1.35rem; border: 1.5px solid rgba(255,255,255,.18); transition: .2s; }
.cart-link:hover { color: #fff; border-color: var(--cyan); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--cyan); color: var(--navy-950); font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.btn.in-cart { background: #16a34a; box-shadow: 0 10px 26px -10px rgba(22,163,74,.8); }
.btn.disabled, .file-btn.disabled { opacity: .5; pointer-events: none; }

.cart-notice { background: #fff7e6; border: 1px solid #fde1a6; color: #8a5a00; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.5rem; font-size: .9rem; }
.cart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.cart-items h2, .cart-checkout h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.2rem; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .7rem; }
.ci-thumb { width: 88px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #0b1d49, #0b4bc0); display: grid; place-items: center; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-thumb img.ph { width: 55%; height: auto; }
.ci-main { display: grid; gap: .2rem; min-width: 0; }
.ci-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.3; }
.ci-price { font-family: var(--font-head); font-weight: 800; color: var(--blue-600); }
.crumbs-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; color: var(--blue); font-weight: 600; font-size: .9rem; }

.cart-checkout { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; display: grid; gap: 1rem; box-shadow: 0 20px 40px -28px rgba(7,38,104,.6); }
.cart-checkout label { display: grid; gap: .35rem; font-size: .84rem; font-weight: 600; color: var(--ink); }
.cart-checkout label small { font-weight: 400; color: var(--muted); }
.cart-checkout input[type="text"], .cart-checkout input[type="email"] { padding: .7rem .85rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fbfdff; }
.cart-checkout input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22,119,255,.15); }
.cart-checkout .invalid { border-color: #ff6b4a; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-total b { font-family: var(--font-head); font-size: 1.8rem; color: var(--blue-600); }
.pay-methods { border: 0; display: grid; gap: .55rem; }
.pay-methods legend { font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.pay-option { display: flex !important; flex-direction: row; align-items: center; gap: .8rem !important; border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem; cursor: pointer; transition: border-color .2s, background .2s; }
.pay-option:has(input:checked) { border-color: var(--blue); background: #f2f7ff; }
.pay-option.disabled { opacity: .5; cursor: not-allowed; }
.pay-option input { accent-color: var(--blue); width: 18px; height: 18px; }
.pay-option span { display: grid; }
.pay-option b { color: var(--ink); }
.pay-option small { font-weight: 400; color: var(--muted); }
.pay-btn { width: 100%; padding: 1rem; font-size: 1rem; }
#paypalButtons { min-height: 50px; }
.past-orders { margin-top: 3rem; display: grid; gap: .4rem; }
.past-orders h3 { font-size: 1rem; margin-bottom: .3rem; }
.past-orders a { color: var(--blue); font-weight: 600; font-size: .92rem; }

.qr-dialog { width: min(420px, calc(100% - 32px)); text-align: center; }
.qr-dialog h3 { margin-top: .5rem; }
.qr-dialog img { width: min(280px, 100%); margin: 1rem auto; border-radius: 12px; border: 1px solid var(--line); }
.qr-wait { display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.qr-wait .order-icon { width: 20px; height: 20px; }

.order-page .container { max-width: 820px; }
.order-head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.8rem; }
.order-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: .3rem; }
.order-head p { color: var(--muted); }
.order-icon { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff; background: var(--btn); }
.order-head.paid .order-icon { background: #16a34a; }
.order-head.failed .order-icon { background: #e0413a; }
.order-icon.spin { background: none; border: 4px solid #d6e4fb; border-top-color: var(--blue); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.receipt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; }
.receipt div { display: grid; gap: .15rem; }
.receipt span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.receipt b { color: var(--ink); }
.order-items { display: grid; gap: .9rem; }
.order-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; }
.oi-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.oi-head b { color: var(--ink); font-family: var(--font-head); }
.oi-files { display: flex; flex-wrap: wrap; gap: .6rem; }
.oi-files .btn { gap: .45rem; }
.oi-files small { color: var(--muted); font-weight: 400; }
.order-save { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: #eef5ff; border: 1px solid #cfe0fb; border-radius: 14px; padding: 1rem 1.2rem; font-size: .92rem; }
.order-save p { flex: 1 1 300px; }
.order-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }

.file-list { display: grid; gap: .4rem; }
.file-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: #f6f9ff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; font-size: .88rem; }
.file-row span { overflow-wrap: anywhere; }
.order-lines { list-style: none; margin-top: .5rem; font-size: .9rem; display: grid; gap: .15rem; }
.order-row.pending { border-left-color: #f59e0b; }
.order-row.failed, .order-row.cancelled { border-left-color: #cbd5e1; opacity: .7; }

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-checkout { position: static; }
}
@media (max-width: 860px) {
  .cart-link { order: 2; margin-left: auto; margin-right: .6rem; }
  .nav-toggle { order: 3; }
}
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 64px 1fr; }
  .ci-thumb { width: 64px; }
  .cart-item .ci-price, .cart-item .link { grid-column: 2; justify-self: start; }
  .receipt { grid-template-columns: 1fr 1fr; }
  .order-head { align-items: flex-start; }
}

/* =========================================================
   PERSONALIZED (LICENSED) FILES
   ========================================================= */
.license-box { background: #eef5ff; border: 1px solid #cfe0fb; border-radius: 12px; padding: .85rem 1rem; color: var(--ink); font-size: .9rem; }
.license-box p { margin-top: .3rem; color: var(--text); }
.license-box.small { font-size: .84rem; margin-top: 1rem; }
.order-page .license-box { margin-bottom: 1.5rem; }
.name-preview { margin-top: -.5rem; font-size: .88rem; color: var(--muted); }
.name-preview b { color: var(--blue-600); font-family: var(--font-head); }
.name-preview.bad b { color: #e0413a; }
.cart-checkout .confirm-name { display: flex; flex-direction: row; gap: .6rem; align-items: flex-start; font-weight: 500; font-size: .84rem; color: var(--text); background: #fffbea; border: 1.5px solid #fde68a; border-radius: 10px; padding: .7rem .8rem; }
.cart-checkout .confirm-name input { margin-top: .2rem; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.cart-checkout .confirm-name.invalid { border-color: #ff6b4a; }
.personalize-field { display: grid; gap: .6rem; background: #f6f9ff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.personalize-field .check-label { padding-bottom: 0; }
.delivery { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--line); font-size: .84rem; color: var(--muted); }
.delivery .warn { color: #e0413a; }
.oi-files .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; justify-content: flex-start; }
.oi-head { flex-wrap: wrap; }

/* =========================================================
   BETA (free) PRODUCTS
   ========================================================= */
.beta-tag { display: inline-flex; align-items: center; padding: .14rem .55rem; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #f97316); color: #fff; font-family: var(--font-body); font-size: .68rem; font-weight: 800; letter-spacing: .1em; vertical-align: middle; }
.free { color: #16a34a; font-weight: 800; }
.pd-price .beta-tag { font-size: .8rem; padding: .25rem .75rem; }
.pd-price .free { font-size: 1.6rem; }
.beta-box { display: flex; align-items: center; gap: .6rem; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: .8rem 1rem; font-size: .88rem; color: var(--ink); }
.stage-field { display: grid; gap: .5rem; }
.stage-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.contact-form .stage-switch label { display: flex; flex-direction: row; align-items: flex-start; gap: .55rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .8rem; font-weight: 400; cursor: pointer; }
.contact-form .stage-switch label:has(input:checked) { border-color: var(--blue); background: #f2f7ff; }
.stage-switch input { margin-top: .2rem; accent-color: var(--blue); }
@media (max-width: 600px) { .stage-switch { grid-template-columns: 1fr; } }

/* =========================================================
   PLATFORM (SUPER ADMIN) DASHBOARD
   ========================================================= */
.admin-tabs { flex-wrap: wrap; }
.tab-group[hidden] { display: none; }
.tab-group[data-super]:not([hidden]) { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab-group[data-shop]:not([hidden]) { display: flex; gap: .5rem; flex-wrap: wrap; padding-left: .8rem; margin-left: .3rem; border-left: 1.5px solid var(--line); }
.tab-group[data-super][hidden] + .tab-group[data-shop] { border-left: 0; padding-left: 0; margin-left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.small { font-size: .84rem; }
.status.warn { background: #fef3c7; color: #92400e; }
.status.bad { background: #fee2e2; color: #b91c1c; }
.status.off { background: #eef2f8; color: #64748b; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.link.danger, .menu .danger { color: #dc2626; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; display: grid; gap: .2rem; }
.stat-card span { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-card b { font-family: var(--font-head); font-size: 2rem; color: var(--ink); line-height: 1.1; }
.stat-card small { color: var(--muted); font-size: .8rem; }

.activity-list { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.activity-row { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.activity-row:last-child { border-bottom: 0; }
.activity-row b { color: var(--ink); }
.activity-row > span { min-width: 0; overflow-wrap: anywhere; }
.admin-toolbar select { max-width: 100%; min-width: 0; }

.table-tools { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.table-tools input, .table-tools select, .admin-toolbar select { padding: .6rem .85rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
.table-tools input { flex: 1 1 260px; min-width: 0; }
.table-wrap { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #f8fbff; white-space: nowrap; }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr.is-deleted td { opacity: .65; }
.data-table .code { font-family: var(--font-head); color: var(--ink); white-space: nowrap; }
.owner-tag { display: block; font-size: .7rem; font-weight: 700; color: var(--blue); }
.client-name { display: flex; align-items: center; gap: .6rem; min-width: 180px; }
.client-name img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: none; }
.client-name span { display: grid; }
.client-name b { color: var(--ink); }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }

.row-menu { position: relative; }
.row-menu summary { list-style: none; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: var(--ink); border: 1.5px solid var(--line); background: #fff; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu[open] summary { border-color: var(--blue); color: var(--blue); }
.row-menu .menu { position: fixed; z-index: 60; max-height: calc(100vh - 16px); overflow-y: auto; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(7,38,104,.45); padding: .35rem; display: grid; }
.row-menu .menu > * { text-align: left; background: none; border: 0; font: inherit; font-size: .88rem; padding: .55rem .75rem; border-radius: 8px; cursor: pointer; color: var(--ink); }
.row-menu .menu > *:hover { background: #f2f7ff; }
.row-menu .menu > .danger { color: #dc2626; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.plan-card.is-off { opacity: .7; }
.plan-card header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.plan-card h3 { font-size: 1.1rem; margin-right: auto; }
.plan-fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; background: #f6f9ff; border-radius: 10px; padding: .6rem; }
.plan-fees div { display: grid; }
.plan-fees dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.plan-fees dd { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.plan-limits { list-style: none; display: grid; gap: .2rem; font-size: .86rem; }
.plan-limits li::before { content: "\2713  "; color: var(--blue); font-weight: 700; }
.plan-card footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.swatches { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.swatches span { margin-left: .4rem; }

.wide-dialog { width: min(820px, calc(100% - 32px)); }
.sub-tabs { margin: 1rem 0 1.2rem; }
.form-section { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem 1rem; display: grid; gap: .9rem; min-width: 0; }
.form-section[hidden] { display: none; }
.form-section legend { padding: 0 .4rem; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .92rem; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.slug-field .slug-suffix { padding: 0 .85rem 0 0; }
.contact-form .slug-field input { padding-left: .85rem; }
.logo-pick { display: flex; align-items: center; gap: .8rem; }
.logo-thumb { width: 54px; aspect-ratio: 1; border-radius: 50%; }
.color-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.contact-form .color-grid input { padding: .2rem; height: 42px; cursor: pointer; }
.check-grid { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.contact-form .check-grid .check-label { padding-bottom: 0; align-self: auto; font-weight: 500; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.inline-form input, .inline-form select { padding: .55rem .8rem; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; }
.inline-form input { flex: 1 1 220px; min-width: 0; }
.file-row select { padding: .25rem .4rem; border-radius: 8px; border: 1.5px solid var(--line); font: inherit; font-size: .84rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: min(560px, calc(100% - 32px)); background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 12px; box-shadow: 0 20px 40px -16px rgba(2,11,34,.6); font-size: .92rem; }
.toast.ok { border-left: 4px solid #22c55e; }
.toast.bad { border-left: 4px solid #ef4444; }

@media (max-width: 700px) {
  .tab-group[data-shop]:not([hidden]) { border-left: 0; padding-left: 0; margin-left: 0; }
  .activity-row { grid-template-columns: 1fr; gap: .1rem; }
  .field-row.three, .color-grid { grid-template-columns: 1fr 1fr; }
  .admin-toolbar { flex-wrap: wrap; }
  .admin-tabs button { padding: .45rem .9rem; font-size: .88rem; }
}

/* =========================================================
   CLIENT ADMIN DASHBOARD (/client-admin.html)
   ========================================================= */
.ca-shell { display: grid; gap: 1.5rem; }
.ca-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; }
.ca-site { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.ca-site img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: none; }
.ca-site h1 { font-size: 1.3rem; margin-bottom: .1rem; }
.ca-site p { overflow-wrap: anywhere; }
.ca-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.role-tag { display: inline-block; margin-left: .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.ca-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ca-nav { position: sticky; top: 1rem; display: grid; gap: .25rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .5rem; }
.ca-nav button { text-align: left; background: none; border: 0; border-radius: 10px; padding: .6rem .8rem; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ca-nav button:hover { background: #f2f7ff; }
.ca-nav button.on { background: var(--btn); color: #fff; }
.ca-nav button[hidden] { display: none; }
.ca-panels { min-width: 0; }
.ca-panels > [data-panel] { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; }
.ca-panels > [data-panel="dashboard"] { background: none; border: 0; padding: 0; }
.ca-form { max-width: 820px; }
.ca-form + .ca-form { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ca-form h3 { font-size: 1.05rem; }
.stat-card b.stat-text { font-size: 1.05rem; line-height: 1.3; }
fieldset.form-section:disabled { opacity: .55; }

.list-editor { display: grid; gap: .6rem; }
.list-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; background: #f6f9ff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; }
.list-row label { flex: 1 1 160px; font-size: .78rem !important; }
.list-row input, .list-row select { padding: .5rem .65rem !important; }
.list-actions { display: flex; gap: .7rem; padding-bottom: .45rem; }
.list-actions .link:disabled { opacity: .3; cursor: default; }
.list-editor > .btn { justify-self: start; }

.admin-row.no-thumb { grid-template-columns: 1fr auto auto; }
.admin-row .link:disabled, .media-card .link:disabled { opacity: .3; cursor: default; }
.inline-input { padding: .35rem .55rem; border-radius: 8px; border: 1.5px solid var(--line); font: inherit; font-weight: 600; color: var(--ink); max-width: 100%; }
.check-label.inline { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 500; padding: 0; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.media-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; }
.media-card.is-off img { opacity: .45; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f6f9ff; }
.media-card input { margin: .5rem .6rem 0; padding: .4rem .55rem; border-radius: 8px; border: 1.5px solid var(--line); font: inherit; font-size: .84rem; min-width: 0; }
.media-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .6rem .6rem; }
.media-card .ar-actions { gap: .6rem; }
.img-row.is-busy { opacity: .5; pointer-events: none; }

.seo-preview { display: grid; gap: .15rem; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; background: #fbfdff; max-width: 620px; }
.seo-preview small { color: #188038; font-size: .8rem; overflow-wrap: anywhere; }
.seo-preview b { color: #1a0dab; font-weight: 500; font-size: 1.1rem; }
.seo-preview span { color: #4d5156; font-size: .88rem; }
.color-grid.two { grid-template-columns: repeat(2, minmax(0, 160px)); margin-top: .6rem; }

.site-pick { text-align: left; cursor: pointer; font: inherit; }
.site-pick:hover { border-color: var(--blue); }
.site-pick header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

@media (max-width: 900px) {
  .ca-layout { grid-template-columns: minmax(0, 1fr); }
  .ca-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: thin; }
  .ca-nav button { flex: none; white-space: nowrap; }
}
@media (max-width: 600px) {
  .ca-panels > [data-panel] { padding: 1rem; }
  .admin-row.no-thumb { grid-template-columns: 1fr; }
  .admin-row.no-thumb .status, .admin-row.no-thumb .ar-actions { grid-column: 1; }
  .ca-actions .btn { flex: 1 1 auto; }
}
.link-result { display: grid; gap: .5rem; color: var(--ink); }
.link-copy { display: flex; gap: .5rem; flex-wrap: wrap; }
.link-copy input { flex: 1 1 260px; min-width: 0; padding: .45rem .6rem; border-radius: 8px; border: 1.5px solid var(--line); font: inherit; font-size: .8rem; color: var(--muted); }
.domain-row { flex-wrap: wrap; }
.dns-box { flex: 1 1 100%; display: grid; gap: .5rem; margin-top: .4rem; padding: .7rem .8rem; background: #fff; border: 1px dashed var(--line); border-radius: 10px; }
.dns-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.dns-table th { text-align: left; color: var(--muted); font-weight: 600; padding: .3rem .4rem; border-bottom: 1px solid var(--line); }
.dns-table td { padding: .35rem .4rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.dns-table code { font-size: .8rem; background: #f2f7ff; padding: .1rem .3rem; border-radius: 4px; }
/* Client Admin forms: let fields shrink on narrow screens */
.ca-form .field-row > *, .list-row label { min-width: 0; }
.ca-form input, .ca-form select, .ca-form textarea, .list-row input, .list-row select { width: 100%; min-width: 0; }
.ca-form input[type="checkbox"], .ca-form input[type="color"] { width: auto; }
.ca-form .color-grid input[type="color"] { width: 100%; }
@media (max-width: 600px) {
  .field-row.three, .ca-form .field-row { grid-template-columns: minmax(0, 1fr); }
  .list-row label { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .ca-panels .file-row { flex-wrap: wrap; }
  .ca-panels .file-row > span { min-width: 0; max-width: 100%; }
  .inline-input { width: 100%; min-width: 0; }
}
