/* ==========================================================================
   NewAge I.T. Solution Center
   Dark industrial repair-lab identity. Flat surfaces, one blue accent,
   technical motion. No gradients-as-decoration, no glassmorphism.
   ========================================================================== */

:root {
    --bg: #0b0b0b;
    --surface: #141414;
    --surface-2: #1a1816;
    --accent: #2f6fed;
    --accent-dim: #1a3fc4;
    --accent-rgb: 47, 111, 237;
    --text: #f5f5f5;
    --text-rgb: 245, 245, 245;
    --muted: #9a9a9a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --bg-rgb: 11, 11, 11;
    --heading: #ffffff;
    --nav-link: #cfcfcf;
    --nav-bg: rgba(11, 11, 11, 0.9);
    --nav-bg-scrolled: rgba(11, 11, 11, 0.98);
    --mobile-nav-bg: #0b0b0b;
    --font-body: 'Inter', sans-serif;
    --font-head: 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1240px;
}

/* Theme switch - default is dark/blue (above); orange (dark) and white
   (light) are opt-in via the navbar toggle, persisted in localStorage and
   applied on <html> to avoid a flash of the wrong theme on load.
   See script.js section 1b. */
:root[data-accent="orange"] {
    --accent: #ff5a1f;
    --accent-dim: #d8460f;
    --accent-rgb: 255, 90, 31;
}

:root[data-accent="white"] {
    --bg: #eef0f3;
    --surface: #ffffff;
    --surface-2: #f5f6f8;
    --accent: #2f6fed;
    --accent-dim: #1a3fc4;
    --accent-rgb: 47, 111, 237;
    --text: #23262b;
    --text-rgb: 35, 38, 43;
    --muted: #676e79;
    --border: rgba(15, 17, 21, 0.09);
    --border-strong: rgba(15, 17, 21, 0.18);
    --bg-rgb: 238, 240, 243;
    --heading: #0f1115;
    --nav-link: #4b5563;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.97);
    --mobile-nav-bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); font-weight: 700; line-height: 1.15; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.eyebrow.tiktok { color: #ff0050; }

.section-head h2 { font-size: 2.2rem; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1rem; }

section { position: relative; }

/* ==========================================================================
   Custom cursor (fine-pointer devices only; see script.js)
   ========================================================================== */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease, width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s ease;
}

.cursor-dot { width: 6px; height: 6px; background: var(--accent); }

.cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(var(--accent-rgb), 0.5);
    display: flex; align-items: center; justify-content: center;
}

.cursor-ring-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.5px;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.15s ease;
}

body.cursor-active .cursor-dot, body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-hover-view .cursor-ring { width: 64px; height: 64px; background: rgba(var(--accent-rgb), 0.08); }
body.cursor-hover-view .cursor-ring-label { opacity: 1; }
body.cursor-hover-crosshair .cursor-ring { width: 44px; height: 44px; border-radius: 4px; transform: translate(-50%, -50%) rotate(45deg); }
body.cursor-hover-btn .cursor-dot { width: 10px; height: 10px; }

@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: padding 0.3s var(--ease);
}

.navbar.scrolled .nav-container { padding: 10px 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.brand-mark {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
    transition: width 0.3s var(--ease), height 0.3s var(--ease);
}

.navbar.scrolled .brand-mark { width: 34px; height: 34px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; color: var(--heading); letter-spacing: 0.2px; }
.brand-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--nav-link);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.25s var(--ease);
}

.nav-link:hover, .nav-link.active { color: var(--heading); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-mobile-only { display: none; }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.btn-track {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn-track:hover { background: var(--accent); color: #fff; }

/* Accent color toggle (blue / orange) */
.accent-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.accent-toggle-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.accent-toggle-dot.is-blue { background: #2f6fed; }
.accent-toggle-dot.is-orange { background: #ff5a1f; }
.accent-toggle-dot.is-white { background: #ffffff; box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.25); }

.accent-toggle-dot.is-active {
    border-color: var(--heading);
    transform: scale(1.15);
}

/* Language toggle (EN / नेपाली) - same pill shape as the theme toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.lang-toggle-opt {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 14px;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle-opt.is-active {
    background: var(--accent);
    color: #fff;
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px; height: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-burger span {
    display: block;
    width: 100%; height: 2px;
    background: var(--heading);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 0 var(--accent-dim);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--accent-dim); }
.btn-solid:active { transform: translateY(0); box-shadow: 0 1px 0 var(--accent-dim); }
.btn-solid:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; justify-content: center; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    overflow: hidden;
    padding: 140px 24px 80px;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.hero-grid-overlay {
    position: absolute; inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(var(--text-rgb), 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--text-rgb), 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
}

.hero-vignette {
    position: absolute; inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(var(--bg-rgb), 0.55) 78%, var(--bg) 100%);
}

.hero-data-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.data-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: rgba(var(--accent-rgb), 0.75);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.data-label.mono { color: rgba(var(--text-rgb), 0.45); }
.data-label.is-visible { opacity: 1; transform: translateY(0); }

.hero-inner {
    position: relative;
    z-index: 4;
    max-width: 760px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: #7fe0a0;
    border: 1px solid rgba(127, 224, 160, 0.3);
    background: rgba(127, 224, 160, 0.06);
    padding: 6px 14px;
    border-radius: 3px;
    margin-bottom: 26px;
}

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.hero-title-line { font-size: 3.2rem; letter-spacing: -0.5px; }
.hero-title-accent { color: var(--accent); }

.hero-tagline { font-size: 1.15rem; color: var(--text); font-weight: 500; margin-bottom: 20px; }

.hero-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.hero-desc { max-width: 540px; color: var(--muted); font-size: 1rem; margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 30px; }

.hero-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.5px; }

.hero-scroll-cue {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
}

.hero-scroll-cue span {
    width: 1px; height: 26px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollCue 1.8s infinite;
}

@keyframes scrollCue {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.stats-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-mono);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--heading);
    font-variant-numeric: tabular-nums;
}

.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ==========================================================================
   Services (editorial)
   ========================================================================== */
.services { max-width: var(--container); margin: 0 auto; padding: 110px 24px; }

.services-editorial {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.svc {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.svc:hover { border-color: rgba(var(--accent-rgb), 0.35); transform: translateY(-4px); }

.svc-a { grid-column: span 7; }
.svc-b { grid-column: span 5; }
.svc-c, .svc-d, .svc-e { grid-column: span 4; }
.svc-f { grid-column: span 12; flex-direction: row; align-items: center; }

.svc-visual {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    overflow: hidden;
}

.svc-f .svc-visual { height: 90px; width: 140px; flex-shrink: 0; }

.svc-index { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); display: block; margin-bottom: 8px; }
.svc-body h3 { font-size: 1.25rem; margin-bottom: 12px; }

.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li {
    font-size: 0.78rem;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 3px;
}

/* PCB trace visual */
.pcb-svg { width: 100%; height: 100%; }
.pcb-traces path { fill: none; stroke: rgba(var(--accent-rgb), 0.35); stroke-width: 1.5; stroke-dasharray: 6 6; animation: pcbFlow 6s linear infinite; }
.pcb-nodes circle { fill: var(--accent); opacity: 0.7; }
.pcb-chip rect { fill: rgba(var(--text-rgb), 0.06); stroke: var(--border-strong); }
@keyframes pcbFlow { to { stroke-dashoffset: -120; } }

/* Terminal visual */
.terminal-window { width: 100%; padding: 16px; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.9; }
.t-prompt { color: var(--accent); margin-right: 6px; }
.t-ok { color: #7fe0a0; }
.t-cursor { display: inline-block; animation: blink 1s step-end infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* Fan visual */
.pc-fan { position: relative; width: 90px; height: 90px; }
.pc-fan-blades {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background:
        conic-gradient(from 0deg, rgba(var(--accent-rgb), 0.35) 0deg 30deg, transparent 30deg 90deg,
        rgba(var(--accent-rgb), 0.35) 90deg 120deg, transparent 120deg 180deg,
        rgba(var(--accent-rgb), 0.35) 180deg 210deg, transparent 210deg 270deg,
        rgba(var(--accent-rgb), 0.35) 270deg 300deg, transparent 300deg 360deg);
    animation: fanSpin 4s linear infinite;
}
.pc-fan-hub { position: absolute; inset: 38%; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); }
@keyframes fanSpin { to { transform: rotate(360deg); } }

/* Network visual */
.network-svg { width: 100%; height: 100%; }
.net-lines line { stroke: rgba(var(--accent-rgb), 0.3); stroke-width: 1; stroke-dasharray: 4 4; animation: pcbFlow 5s linear infinite; }
.net-nodes circle { fill: rgba(var(--text-rgb), 0.6); }
.net-node-main { fill: var(--accent) !important; }

/* Oscilloscope visual */
.scope-svg { width: 100%; height: 100%; }
.scope-baseline { stroke: var(--border-strong); stroke-width: 1; }
.scope-wave { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: scopeDraw 3.4s var(--ease) infinite; }
@keyframes scopeDraw {
    0% { stroke-dashoffset: 900; opacity: 1; }
    55% { stroke-dashoffset: 0; opacity: 1; }
    85% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Doc visual */
.doc-icon { position: relative; font-size: 2.4rem; color: var(--muted); }
.doc-scan-line {
    position: absolute; left: -6px; right: -6px; top: 0;
    height: 2px; background: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
    animation: docScan 2.6s ease-in-out infinite;
}
@keyframes docScan { 0%, 100% { top: 0; } 50% { top: 100%; } }

/* ==========================================================================
   Diagnostic tool
   ========================================================================== */
.diagnose { background: var(--surface); padding: 100px 24px; }

.diagnose-panel {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 40px;
}

.diagnose-step-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    color: var(--muted);
    margin-bottom: 16px;
}

.device-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.device-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.88rem;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.device-chip:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.device-chip.active { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }

#issueStep { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }

.issue-list { display: flex; flex-direction: column; gap: 2px; }

.issue-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text);
    background: transparent;
    text-align: left;
    width: 100%;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.issue-option:hover { background: var(--surface-2); }
.issue-option.active { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); color: var(--accent); }

.issue-option .radio-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--border-strong); flex-shrink: 0; position: relative; }
.issue-option.active .radio-dot { border-color: var(--accent); }
.issue-option.active .radio-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }

.diagnose-result {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.diagnose-result-text {
    font-size: 1.1rem;
    color: var(--heading);
    margin: 6px 0 20px;
    padding: 16px 18px;
    background: rgba(var(--accent-rgb), 0.06);
    border-left: 2px solid var(--accent);
}

/* ==========================================================================
   Repair tracking
   ========================================================================== */
.repairs { max-width: var(--container); margin: 0 auto; padding: 110px 24px; }

.track-panel {
    max-width: 760px;
    margin: 0 auto;
}

.track-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 6px 6px 18px;
}

.track-form i { color: var(--accent); }

.track-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 12px 0;
}

.track-form input::placeholder { color: var(--muted); }

.track-samples {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--muted);
}

.sample-chip {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sample-chip:hover { border-color: var(--accent); color: var(--accent); }

.track-result { margin-top: 36px; animation: fadeUp 0.4s ease; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.repair-card { background: var(--surface); border: 1px solid var(--border); padding: 34px; }

.repair-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.repair-title-group h3 { font-family: var(--font-mono); font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.repair-title-group p { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 7px 14px;
    border-radius: 3px;
    border: 1px solid;
    white-space: nowrap;
}

.status-badge.stage-1, .status-badge.stage-2 { color: var(--muted); border-color: #4d453b; background: rgba(154, 154, 154, 0.08); }
.status-badge.stage-3, .status-badge.stage-4 { color: #facc15; border-color: #a16207; background: rgba(250, 204, 21, 0.08); }
.status-badge.stage-5, .status-badge.stage-6 { color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }
.status-badge.stage-7, .status-badge.stage-8 { color: #4ade80; border-color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.status-badge.stage-9 { color: #f87171; border-color: #ef4444; background: rgba(248, 113, 113, 0.1); }

.repair-non-repairable-note {
    margin: 24px 0;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ef4444;
    background: rgba(248, 113, 113, 0.08);
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline-track { display: flex; justify-content: space-between; position: relative; margin: 40px 0 44px; }

.timeline-track::before {
    content: '';
    position: absolute;
    top: 15px; left: 20px; right: 20px;
    height: 2px;
    background: var(--border);
}

.timeline-progress {
    position: absolute;
    top: 15px; left: 20px;
    height: 2px;
    background: var(--accent);
    transition: width 0.6s var(--ease);
}

.timeline-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 12%; text-align: center; }

.timeline-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    z-index: 1;
}

.timeline-node.done .timeline-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.timeline-node.current .timeline-dot { border-color: var(--accent); color: var(--accent); animation: nodePulse 1.8s infinite; }

@keyframes nodePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0); }
}

.timeline-node span.node-label { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.3px; }
.timeline-node.done span.node-label, .timeline-node.current span.node-label { color: var(--text); }

.repair-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; margin-bottom: 24px; }
.repair-detail-box { border: 1px solid var(--border); padding: 14px 18px; }
.detail-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.detail-val { font-size: 1rem; font-weight: 600; color: var(--heading); }

.tech-note-box { border-left: 2px solid var(--accent); background: rgba(var(--accent-rgb), 0.05); padding: 16px 20px; margin-bottom: 24px; }
.tech-note-box h4 { font-size: 0.85rem; color: var(--accent); margin-bottom: 6px; font-weight: 600; }
.tech-note-box p { font-size: 0.9rem; color: var(--text); }

.repair-actions { display: flex; justify-content: flex-end; }

.whatsapp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff; padding: 12px 22px;
    border-radius: 4px; font-weight: 600; font-size: 0.9rem;
}

.track-error {
    text-align: center;
    padding: 40px 24px;
    border: 1px dashed var(--border-strong);
}

.track-error i { font-size: 2rem; color: var(--accent); margin-bottom: 12px; }
.track-error h4 { margin-bottom: 10px; }
.track-error p { color: var(--muted); max-width: 480px; margin: 0 auto 24px; }
.track-error-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Custom PC
   ========================================================================== */
.custompc {
    max-width: var(--container);
    margin: 60px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.custompc-copy p { color: var(--muted); margin: 16px 0 28px; max-width: 420px; }

.custompc-visual { position: relative; height: 420px; }

.pc-diagram { position: relative; width: 100%; height: 100%; }

.pc-tower {
    position: absolute;
    inset: 10% 25%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
}

.pc-tower-panel { position: absolute; inset: 8%; border: 1px solid var(--border); }
.pc-tower-gpu { position: absolute; left: 12%; right: 12%; top: 55%; height: 14%; background: var(--surface-2); border: 1px solid var(--border-strong); }

.pc-tower-fans { position: absolute; left: 12%; right: 12%; top: 12%; height: 34%; display: flex; gap: 10%; }
.pc-tower-fan { flex: 1; border-radius: 50%; border: 1px solid var(--border-strong); background: conic-gradient(from 0deg, rgba(var(--accent-rgb), 0.3) 0deg 25deg, transparent 25deg 90deg, rgba(var(--accent-rgb), 0.3) 90deg 115deg, transparent 115deg 180deg, rgba(var(--accent-rgb), 0.3) 180deg 205deg, transparent 205deg 270deg, rgba(var(--accent-rgb), 0.3) 270deg 295deg, transparent 295deg 360deg); animation: fanSpin 5s linear infinite; }

.pc-tower-strip { position: absolute; right: 4%; top: 8%; bottom: 8%; width: 3px; background: linear-gradient(to bottom, transparent, var(--accent), transparent); opacity: 0.7; }

.pc-spec-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--bg-rgb), 0.7);
    padding: 4px 10px;
    border-radius: 3px;
    transition: transform 0.2s ease-out;
}

/* ==========================================================================
   Workshop gallery
   ========================================================================== */
.workshop { padding: 100px 0; }

.workshop-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 24px 12px;
    max-width: var(--container);
    margin: 0 auto;
}

.workshop-slide {
    position: relative;
    height: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: rgba(var(--text-rgb), 0.15);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease;
}

.workshop-slide:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.workshop-slide:hover i { transform: scale(1.12); color: var(--accent); }
.workshop-slide i { transition: transform 0.35s var(--ease), color 0.35s ease; }

.workshop-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.workshop-slide::after {
    content: attr(data-label);
    position: absolute;
    left: 18px; bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
    z-index: 2;
}

.workshop-slide::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 50%);
    z-index: 1;
}

/* ==========================================================================
   Why NewAge (editorial)
   ========================================================================== */
.why { max-width: var(--container); margin: 0 auto; padding: 100px 24px 120px; }

.why-list { border-top: 1px solid var(--border); }

.why-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.why-num { font-family: var(--font-mono); font-size: 1.4rem; color: var(--accent); }
.why-item h3 { grid-column: 2; font-size: 1.15rem; margin-bottom: 6px; }
.why-item p { grid-column: 2; color: var(--muted); max-width: 560px; }

/* ==========================================================================
   Products (reused pattern, restyled to new tokens)
   ========================================================================== */
.products-section { max-width: var(--container); margin: 0 auto; padding: 100px 24px; }

.products-filter { margin-bottom: 20px; }

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239a9a9a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    padding: 10px 36px 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.2s ease;
}

.filter-select:hover, .filter-select:focus { border-color: rgba(var(--accent-rgb), 0.5); outline: none; }
.filter-select option { background: var(--surface-2); color: var(--text); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; }
.product-card[hidden] { display: none; }

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    padding: 14px 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover, .product-card:focus-visible { border-color: rgba(var(--accent-rgb), 0.3); transform: translateY(-4px); }
.product-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.product-badge {
    position: absolute; top: 8px; right: 8px;
    font-size: 0.62rem; font-weight: 700;
    padding: 3px 7px; border-radius: 3px;
    display: inline-flex; align-items: center; gap: 4px;
}

.product-badge.in-stock, .product-badge.pre-order, .product-badge.out-of-stock {
    background: #facc15; color: #1a1500; border: 1px solid #facc15;
}

.product-icon-wrap {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 10px;
    overflow: hidden;
}

/* When a real product photo is available, bleed it to the card edges as a
   proper header image instead of the small icon tile. */
.product-icon-wrap.has-photo {
    width: calc(100% + 24px);
    height: 110px;
    margin: -14px -12px 10px;
    border-width: 0 0 1px 0;
    background: var(--surface-2);
}

.product-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-cat { font-family: var(--font-mono); font-size: 0.62rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.6px; }
.product-card h3 { font-size: 0.9rem; margin: 4px 0 6px; line-height: 1.3; }
.product-spec {
    font-size: 0.76rem; color: var(--muted); margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.product-price-row { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); gap: 6px; }
.price-box { display: flex; flex-direction: column; min-width: 0; }
.mrp { font-size: 0.68rem; color: var(--muted); text-decoration: line-through; }
.price { font-size: 0.95rem; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }

.btn-buy-wa {
    display: inline-flex; align-items: center; gap: 5px;
    background: #25D366; color: #fff; padding: 6px 10px;
    border-radius: 3px; font-size: 0.74rem; font-weight: 600;
    flex-shrink: 0;
}
.btn-buy-wa[hidden] { display: none; }

/* ==========================================================================
   Product detail modal (opened by clicking a product card)
   ========================================================================== */
.product-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.product-modal[hidden] { display: none; }

.product-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }

.product-modal-panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 440px;
    max-height: 88vh;
    overflow-y: auto;
}

.product-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.55); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem;
}

.product-modal-media {
    width: 100%; height: 220px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 3rem; color: var(--accent);
    overflow: hidden;
}

.product-modal-media img { width: 100%; height: 100%; object-fit: cover; }

.product-modal-body { padding: 20px; }

.product-modal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.product-modal-top .product-badge { position: static; }
.product-modal-top .product-badge[hidden] { display: none; }

.product-modal-body h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 12px; }

.product-modal-spec { font-size: 0.9rem; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }

.product-modal .product-price-row { flex-wrap: wrap; }

/* ==========================================================================
   Announcement popup (admin-managed, e.g. festival greetings)
   ========================================================================== */
.announce-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.announce-modal[hidden] { display: none; }

.announce-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }

.announce-modal-panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.15), 0 24px 70px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    text-align: center;
}

.announce-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.55); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem;
}

.announce-modal-media {
    width: 100%; height: 200px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.announce-modal-media[hidden] { display: none; }
.announce-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.announce-modal-body { padding: 28px 24px; }
.announce-modal-body h3 { font-size: 1.3rem; color: var(--accent); margin-bottom: 10px; }
.announce-modal-body p { font-size: 0.94rem; color: var(--text); line-height: 1.65; white-space: pre-line; }

/* ==========================================================================
   Videos (TikTok embeds)
   ========================================================================== */
.videos-section { max-width: var(--container); margin: 0 auto; padding: 100px 24px; }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }

.video-card { background: var(--surface); border: 1px solid var(--border); overflow: hidden; }

.video-player-wrap { position: relative; width: 100%; height: 220px; background: var(--surface-2); }
.video-player-wrap:has(iframe.tiktok-iframe-player) { height: 560px; }
.video-player-wrap iframe.tiktok-iframe-player { width: 100%; height: 100%; border: none; display: block; }

.video-facade { position: relative; width: 100%; height: 100%; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade-fallback { font-size: 2.6rem; color: var(--border); }
.video-facade-play {
    position: relative; z-index: 1;
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.55); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; transition: transform 0.2s ease, background 0.2s ease;
}
.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play { transform: scale(1.1); background: var(--accent); }
.video-facade:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.video-card-body { padding: 20px; }
.video-topic-badge { font-family: var(--font-mono); font-size: 0.68rem; color: #ff0050; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 8px; }
.video-card-body h3 { font-size: 1.02rem; margin-bottom: 8px; line-height: 1.35; }
.video-card-body p { font-size: 0.85rem; color: var(--muted); }

.videos-follow { text-align: center; margin-top: 36px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
    max-width: var(--container);
    margin: 0 auto;
    padding: 100px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info p { color: var(--muted); margin: 14px 0 28px; }
.contact-details { display: flex; flex-direction: column; gap: 14px; }

.contact-item { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border); padding: 14px 16px; }
.contact-item i { color: var(--accent); width: 20px; margin-top: 3px; }
.contact-item h4 { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.contact-item p { color: var(--heading); margin: 0; font-size: 0.95rem; }
.contact-link:hover { color: var(--accent); }

.contact-form { background: var(--surface); border: 1px solid var(--border); padding: 32px; }
.contact-form h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.contact-form-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }

.form-row { margin-bottom: 14px; }

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form select option { background: var(--surface); }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-feedback { margin-top: 14px; padding: 14px 16px; font-size: 0.9rem; display: none; }
.form-feedback.success { display: block; background: rgba(34, 197, 94, 0.1); border-left: 2px solid #22c55e; color: #4ade80; }
.form-feedback.error { display: block; background: rgba(239, 68, 68, 0.1); border-left: 2px solid #ef4444; color: #f87171; }

.map-container { grid-column: 1 / -1; border: 1px solid var(--border); padding: 26px; margin-top: 10px; }
.map-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.map-header h3 { font-size: 1.1rem; margin-bottom: 4px; }
.map-header p { color: var(--muted); font-size: 0.85rem; }
.map-embed-wrapper { border: 1px solid var(--border); }
.map-embed-wrapper iframe { display: block; width: 100%; }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 26px; right: 26px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    z-index: 900;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: waPulse 2.4s infinite;
}

@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.fw-tooltip {
    position: absolute;
    right: 66px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: 3px;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.floating-whatsapp:hover .fw-tooltip { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   Price Assistant (client-side lookup, no external API)
   ========================================================================== */
.price-bot-toggle {
    position: fixed;
    bottom: 92px; right: 26px;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    animation: pbTogglePulse 2.6s ease-out 1.2s infinite;
}

.price-bot-toggle:hover { transform: translateY(-2px); animation-play-state: paused; }
.price-bot-toggle.is-active { background: var(--surface-2); color: var(--text); animation: none; box-shadow: none; }

@keyframes pbTogglePulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45); }
    70% { box-shadow: 0 0 0 16px rgba(var(--accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.pb-toggle-badge {
    position: absolute;
    top: -3px; right: -3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg);
}

.price-bot-toggle.is-active .pb-toggle-badge { display: none; }

.price-bot-panel {
    position: fixed;
    bottom: 158px; right: 26px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 560px;
    max-height: calc(100vh - 190px);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    z-index: 901;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.price-bot-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.price-bot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    flex-shrink: 0;
}

.pb-avatar {
    position: relative;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.68rem;
    flex-shrink: 0;
}

.pb-avatar-lg { width: 42px; height: 42px; font-size: 0.8rem; }

.pb-presence {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #4ade80;
    border: 2px solid var(--surface-2);
}

.pb-header-text { flex: 1; min-width: 0; }
.pb-header-text strong { display: block; font-family: var(--font-head); font-size: 0.98rem; color: var(--heading); }
.pb-header-text span { display: flex; align-items: center; gap: 5px; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }

.pb-presence-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: statusPulse 2s infinite;
}

.price-bot-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.price-bot-close:hover { color: var(--heading); }

.price-bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pb-row { display: flex; gap: 8px; align-items: flex-end; animation: pbRise 0.25s var(--ease); }
.pb-row.pb-row-user { flex-direction: row-reverse; }

@keyframes pbRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.pb-msg-user {
    max-width: 78%;
    font-size: 0.85rem;
    background: var(--accent);
    color: #fff;
    padding: 9px 13px;
    border-radius: 14px 14px 3px 14px;
}

.pb-msg-bot {
    max-width: 82%;
    font-size: 0.85rem;
    color: var(--text);
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px 14px 14px 3px;
}

.pb-msg-bot p { margin-bottom: 6px; }
.pb-msg-bot p:last-child { margin-bottom: 0; }

.pb-typing {
    display: flex;
    gap: 4px;
    padding: 4px 2px;
}

.pb-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--muted);
    animation: pbBounce 1.2s infinite ease-in-out;
}

.pb-typing span:nth-child(2) { animation-delay: 0.15s; }
.pb-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes pbBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.pb-result-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }

.pb-result-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}

.pb-result-item:last-child { border-bottom: none; }
.pb-result-name { color: var(--text); }
.pb-result-price { font-family: var(--font-mono); color: var(--accent); font-weight: 700; white-space: nowrap; }

.price-bot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 18px 14px;
    flex-shrink: 0;
}

.pb-chip {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 6px 11px;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pb-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }

.price-bot-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding: 10px;
    flex-shrink: 0;
}

.price-bot-input-row input {
    flex: 1;
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 11px 16px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.price-bot-input-row input:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.4); }

.price-bot-input-row button {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.price-bot-input-row button:hover { transform: scale(1.08); }

@media (max-width: 560px) {
    .price-bot-toggle { bottom: 82px; width: 48px; height: 48px; font-size: 1.2rem; }
    .price-bot-panel { bottom: 138px; right: 16px; left: 16px; width: auto; height: 70vh; max-height: 70vh; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer { background: var(--surface); padding-top: 2px; position: relative; }

.footer-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    background-size: 200% 100%;
    animation: footerLineMove 6s linear infinite;
}

@keyframes footerLineMove { to { background-position: -200% 0; } }

.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.footer-logo span { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--heading); }
.footer-logo small { font-family: var(--font-mono); font-size: 0.62rem; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }

.footer-col p { color: var(--muted); font-size: 0.88rem; }

.footer-status {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    color: #7fe0a0;
    margin-top: 14px;
}

.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--heading); margin-bottom: 16px; }
.footer-col a, .footer-static { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 20px; }
.footer-bottom p { color: var(--muted); font-size: 0.82rem; }

/* ==========================================================================
   Scroll reveal (JS toggles .is-in)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .services-editorial { grid-template-columns: repeat(6, 1fr); }
    .svc-a, .svc-b { grid-column: span 6; }
    .svc-c, .svc-d, .svc-e { grid-column: span 3; }
    .svc-f { grid-column: span 6; }

    .custompc { grid-template-columns: 1fr; }
    .custompc-visual { height: 320px; }
}

@media (max-width: 860px) {
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        z-index: 5;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--mobile-nav-bg);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease);
    }

    .nav-links.is-open { max-height: 600px; }
    .nav-links li { background: var(--mobile-nav-bg); border-top: 1px solid var(--border); }
    .nav-link { display: block; padding: 16px 24px; }
    .nav-mobile-only { display: block; }
    .nav-mobile-call { display: flex; align-items: center; gap: 8px; padding: 16px 24px; color: var(--accent); font-weight: 600; font-size: 0.9rem; }

    /* The top-bar theme toggle is dropped on narrow screens - it's shown
       inside the mobile menu instead (below) so the navbar itself never has
       to fit toggle + track button + burger all in one cramped row. */
    .nav-actions .accent-toggle { display: none; }

    .nav-mobile-theme-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 24px;
    }

    .nav-mobile-theme-label { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

    .nav-burger { display: flex; }
    .btn-track span { display: none; }

    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
    .stat-item:nth-child(2n) { border-right: none; }

    .services-editorial { grid-template-columns: 1fr; }
    .svc-a, .svc-b, .svc-c, .svc-d, .svc-e, .svc-f { grid-column: span 1; }
    .svc-f { flex-direction: column; align-items: flex-start; }

    .why-item { grid-template-columns: 50px 1fr; }

    .contact { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr 1fr; }

    .workshop-gallery { grid-template-columns: repeat(2, 1fr); }
    .workshop-slide { height: 220px; }
}

@media (max-width: 560px) {
    .hero { padding-top: 120px; }
    .hero-title-line { font-size: 2.15rem; }
    .hero-stack { flex-direction: column; gap: 4px; }

    .timeline-track { flex-wrap: wrap; row-gap: 24px; }
    .timeline-node { width: 30%; }
    .timeline-track::before, .timeline-progress { display: none; }

    .workshop-gallery { gap: 10px; padding: 0 16px 12px; }
    .workshop-slide { height: 160px; font-size: 1.6rem; }
    .workshop-slide::after { left: 10px; bottom: 10px; font-size: 0.6rem; }

    .footer-content { grid-template-columns: 1fr; }
    .track-form { flex-wrap: wrap; padding: 14px; }
    .track-form input { width: 100%; order: 1; }
    .track-form i { order: 0; }
    .track-form button { order: 2; width: 100%; margin-top: 8px; }

    .floating-whatsapp { width: 50px; height: 50px; font-size: 1.5rem; bottom: 18px; right: 18px; }

    .filter-select { width: 100%; }

    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .product-card { padding: 8px 6px; }
    .product-badge { font-size: 0.5rem; padding: 2px 4px; top: 4px; right: 4px; }
    .product-icon-wrap { width: 32px; height: 32px; margin-bottom: 6px; }
    .product-icon-wrap.has-photo { width: calc(100% + 12px); height: 70px; margin: -8px -6px 6px; }
    .product-cat { font-size: 0.52rem; }
    .product-card h3 { font-size: 0.72rem; margin: 3px 0 4px; }
    .product-spec { display: none; }
    .product-price-row { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 6px; }
    .price { font-size: 0.74rem; }
    .mrp { font-size: 0.56rem; }
    .btn-buy-wa { width: 100%; justify-content: center; font-size: 0.62rem; padding: 5px 6px; }

    .product-modal-media { height: 180px; }
}
