/* BuildPreview — PHP edition stylesheet
   Re-creates the dark navy / electric blue theme used by the original
   React + Tailwind site. Includes design tokens, a compact set of utility
   classes used in the views, and the custom component classes (glass-card,
   btn-primary, btn-secondary, stat-card, input-field, etc.) so the rebuilt
   pages match the original look. */

:root {
  --background: 228 20% 4%;
  --foreground: 210 40% 96%;
  --card: 228 22% 7%;
  --card-foreground: 210 40% 96%;
  --popover: 228 22% 7%;
  --popover-foreground: 210 40% 96%;
  --primary: 226 90% 55%;
  --primary-foreground: 228 20% 4%;
  --secondary: 228 18% 12%;
  --secondary-foreground: 210 40% 90%;
  --muted: 228 18% 12%;
  --muted-foreground: 220 15% 60%;
  --accent: 187 81% 52%;
  --accent-foreground: 228 20% 4%;
  --destructive: 0 72% 55%;
  --destructive-foreground: 210 40% 98%;
  --border: 228 18% 16%;
  --input: 228 18% 14%;
  --ring: 226 90% 55%;
  --radius: 0.85rem;

  --gradient-primary: linear-gradient(135deg, #2456F3 0%, #1C82FF 55%, #22D1E8 100%);
  --gradient-accent: linear-gradient(135deg, #27C9F0 0%, #16D3C5 100%);
  --gradient-card: linear-gradient(145deg, hsl(228 22% 10%), hsl(228 22% 5%));
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, hsl(226 90% 55% / 0.15) 0%, transparent 60%);
  --shadow-glow: 0 0 80px -15px hsl(226 90% 55% / 0.4);
  --shadow-glow-sm: 0 0 30px -5px hsl(226 90% 55% / 0.3);
  --shadow-card: 0 8px 40px -8px hsl(0 0% 0% / 0.6);
  --shadow-card-hover: 0 20px 60px -12px hsl(226 90% 55% / 0.2);
}

* { box-sizing: border-box; border-color: hsl(var(--border)); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
}

::selection { background: hsl(226 90% 55% / 0.25); color: hsl(210 40% 96%); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.muted { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-inline: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: 1fr; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; } .gap-7 { gap: 1.75rem; } .gap-8 { gap: 2rem; } .gap-12 { gap: 3rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.flex-1 { flex: 1 1 0%; }
.hidden { display: none; }
.md\:flex { } /* no-op for mobile-desktop pattern; uses media queries below */

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:items-center { align-items: center; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .lg\:flex { display: flex; }
  .lg\:items-start { align-items: flex-start; }
  .lg\:grid-cols-\[1fr_0.9fr\] { grid-template-columns: 1fr 0.9fr; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); line-height: 1.1; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.375rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.tracking-tight { letter-spacing: -0.02em; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.7; }
.leading-tight { line-height: 1.15; }

.px-2 { padding-inline: 0.5rem } .px-3 { padding-inline: 0.75rem } .px-4 { padding-inline: 1rem } .px-5 { padding-inline: 1.25rem } .px-6 { padding-inline: 1.5rem } .px-7 { padding-inline: 1.75rem } .px-8 { padding-inline: 2rem }
.py-1 { padding-block: 0.25rem } .py-2 { padding-block: 0.5rem } .py-3 { padding-block: 0.75rem } .py-3.5 { padding-block: 0.875rem } .py-4 { padding-block: 1rem } .py-5 { padding-block: 1.25rem } .py-6 { padding-block: 1.5rem } .py-7 { padding-block: 1.75rem } .py-8 { padding-block: 2rem } .py-10 { padding-block: 2.5rem } .py-12 { padding-block: 3rem } .py-14 { padding-block: 3.5rem } .py-20 { padding-block: 5rem }
.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; } .p-7 { padding: 1.75rem; } .p-8 { padding: 2rem; }
.mt-2 { margin-top: 0.5rem } .mt-3 { margin-top: 0.75rem } .mt-4 { margin-top: 1rem } .mt-5 { margin-top: 1.25rem } .mt-6 { margin-top: 1.5rem } .mt-7 { margin-top: 1.75rem } .mt-8 { margin-top: 2rem } .mt-10 { margin-top: 2.5rem } .mt-12 { margin-top: 3rem }
.mb-1 { margin-bottom: 0.25rem } .mb-2 { margin-bottom: 0.5rem } .mb-3 { margin-bottom: 0.75rem } .mb-4 { margin-bottom: 1rem } .mb-5 { margin-bottom: 1.25rem } .mb-6 { margin-bottom: 1.5rem } .mb-7 { margin-bottom: 1.75rem } .mb-8 { margin-bottom: 2rem } .mb-9 { margin-bottom: 2.25rem } .mb-10 { margin-bottom: 2.5rem }

.rounded-lg { border-radius: 0.5rem; } .rounded-xl { border-radius: calc(var(--radius) - 0.25rem); } .rounded-2xl { border-radius: var(--radius); } .rounded-3xl { border-radius: calc(var(--radius) + 0.75rem); } .rounded-full { border-radius: 9999px; }

/* ---- key syled surfaces ---- */
.glass-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(145deg, hsl(228 22% 9% / 0.8), hsl(228 22% 5% / 0.9));
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid hsl(228 18% 18% / 0.5);
  box-shadow: var(--shadow-card), inset 0 1px 0 0 hsl(0 0% 100% / 0.03);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.glass-card:hover {
  border-color: hsl(226 90% 55% / 0.3);
  box-shadow: var(--shadow-card-hover), inset 0 1px 0 0 hsl(226 90% 55% / 0.1);
  transform: translateY(-4px);
}
.glass-card-static {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(145deg, hsl(228 22% 9% / 0.8), hsl(228 22% 5% / 0.9));
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid hsl(228 18% 18% / 0.5);
  box-shadow: var(--shadow-card), inset 0 1px 0 0 hsl(0 0% 100% / 0.03);
}
.border { border: 1px solid hsl(var(--border)); }
.border-border\/30 { border: 1px solid hsl(228 18% 16% / 0.45); }
.border-border\/40 { border: 1px solid hsl(228 18% 16% / 0.4); }
.border-border\/60 { border: 1px solid hsl(228 18% 16% / 0.6); }
.border-primary\/20 { border-color: hsl(226 90% 55% / 0.2); }
.border-primary\/40 { border-color: hsl(226 90% 55% / 0.4); }
.border-t { border-top: 1px solid hsl(var(--border)); }
.bg-secondary\/20 { background: hsl(var(--secondary) / 0.18); }
.bg-secondary\/40 { background: hsl(var(--secondary) / 0.4); }
.bg-background\/30 { background: hsl(var(--background) / 0.3); }
.bg-background\/80 { background: hsl(var(--background) / 0.8); }

.text-gradient-hero { color: transparent; }

/* ---- button styles (matching tailwind utility classes in views) ---- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: var(--radius); font-weight: 600;
  cursor: pointer; border: none; font-family: inherit; font-size: 0.9375rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.btn-primary {
  background-image: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 30px -5px hsl(226 90% 55% / 0.5), inset 0 1px 0 0 hsl(0 0% 100% / 0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px -5px hsl(226 90% 55% / 0.7), inset 0 1px 0 0 hsl(0 0% 100% / 0.2); }
.btn-primary:focus-visible { outline: 3px solid hsl(226 90% 55%); outline-offset: 3px; }
.btn-secondary {
  background: hsl(var(--secondary) / 0.6);
  border: 1px solid hsl(var(--border) / 0.6);
  color: hsl(var(--foreground));
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  border-color: hsl(226 90% 55% / 0.4);
  background: hsl(var(--secondary) / 0.9);
  transform: translateY(-2px);
  box-shadow: 0 0 30px -10px hsl(226 90% 55% / 0.2);
}
.btn-secondary:focus-visible { outline: 3px solid hsl(226 90% 55%); outline-offset: 3px; }

/* ---- input ---- */
.input-field {
  width: 100%; padding: 0.875rem 1rem; border-radius: var(--radius);
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--secondary) / 0.4);
  color: hsl(var(--foreground)); font-family: inherit; font-size: 0.875rem;
  backdrop-filter: blur(8px); transition: all 0.3s;
}
.input-field::placeholder { color: hsl(var(--muted-foreground)); }
.input-field:focus {
  outline: none; border-color: hsl(226 90% 55% / 0.5);
  box-shadow: 0 0 0 4px hsl(226 90% 55% / 0.08), 0 0 30px -5px hsl(226 90% 55% / 0.15);
  background: hsl(var(--secondary) / 0.6);
}
textarea.input-field { resize: vertical; font-family: inherit; }

/* ---- stat card ---- */
.stat-card {
  background: linear-gradient(145deg, hsl(228 22% 9% / 0.8), hsl(228 22% 5% / 0.9));
  border: 1px solid hsl(228 18% 18% / 0.5);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(1.5);
  padding: 1.5rem; text-align: center; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: hsl(226 90% 55% / 0.3); transform: translateY(-2px); }
.stat-card::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, hsl(226 90% 55% / 0.4), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover::after { opacity: 1; }
.stat-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  margin-bottom: 0.85rem; color: hsl(226 90% 65%);
  background: hsl(226 90% 55% / 0.12);
  border: 1px solid hsl(226 90% 55% / 0.22);
}
.stat-value { margin-bottom: 0.25rem; line-height: 1; letter-spacing: -0.02em; }
.stat-label { letter-spacing: 0.18em; }

/* Stats grid: single row on desktop, 2x2 on mobile (flexbox) */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}
.stats-grid .stat-card {
  flex: 1 1 calc(50% - 1rem);
  min-width: 0;
}
@media (min-width: 768px) {
  .stats-grid .stat-card { flex: 1 1 calc(25% - 1rem); }
}
@media (min-width: 1024px) {
  .stats-grid { flex-wrap: nowrap; }
  .stats-grid .stat-card { flex: 1 1 0; }
}

/* ---- section chrome (eyebrow, title, subtitle) ---- */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.22em; color: hsl(226 90% 65%);
}
.eyebrow-icon { width: 1em; height: 1em; opacity: 0.9; }
.section-title {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-weight: 700; margin-top: 0;
}
.title-icon { color: hsl(226 90% 65%); }
.section-subtitle { margin-top: 0.75rem; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; transition: gap 0.2s; }
.link-arrow:hover { gap: 0.6rem; }

/* ---- home feature cards ---- */
.feature-card { display: flex; flex-direction: column; gap: 0.5rem; }
.feature-card-icon {
  display: inline-flex; width: 2.25rem; height: 2.25rem; border-radius: 0.6rem;
  align-items: center; justify-content: center; color: hsl(226 90% 65%);
  background: hsl(226 90% 55% / 0.1);
  border: 1px solid hsl(226 90% 55% / 0.18);
  margin-bottom: 0.5rem;
}

/* ---- FAQ styling ---- */
.faq-check { color: hsl(226 90% 65%); flex-shrink: 0; margin-top: 0.125rem; }
.faq-item { transition: border-color 0.3s, background 0.3s; }
.faq-item:hover { border-color: hsl(226 90% 55% / 0.3); background: hsl(228 18% 12% / 0.4); }

/* ---- service cards ---- */
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.85rem;
  color: hsl(226 90% 65%);
  background: hsl(226 90% 55% / 0.1);
  border: 1px solid hsl(226 90% 55% / 0.2);
}
.service-num { color: hsl(var(--muted-foreground)); opacity: 0.7; }

/* ---- testimonials ---- */
.testimonial-mark {
  position: absolute; top: 1.25rem; right: 1.25rem;
  color: hsl(226 90% 55% / 0.18);
  pointer-events: none;
}
.testimonial-body { color: hsl(210 40% 95% / 0.9); padding-right: 2rem; }

/* ---- empty states ---- */
.empty-state {
  display: inline-flex; align-items: center; gap: 0.6rem; justify-content: center;
}
.empty-state .empty-state-icon { color: hsl(var(--muted-foreground)); opacity: 0.7; }

/* ---- hero CTAs ---- */
.hero-cta { gap: 0.75rem; }

/* ---- CTA card ---- */
.cta-card {
  padding: 3rem 2rem;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, hsl(226 90% 55% / 0.18), transparent 70%), linear-gradient(145deg, hsl(228 22% 9%), hsl(228 22% 5%));
  border: 1px solid hsl(228 18% 18% / 0.6);
}
.cta-title { margin-bottom: 1.25rem; }
.cta-subtitle { max-width: 36rem; margin-inline: auto; margin-bottom: 2.25rem; }

/* ---- pill (blog/hero badges) ---- */
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.85rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; color: hsl(226 90% 55%); background: hsl(226 90% 55% / 0.08); border: 1px solid hsl(226 90% 55% / 0.25); }
.pill .pill-icon { color: hsl(226 90% 65%); }
.pill.solid { color: hsl(var(--primary-foreground)); background: var(--gradient-primary); border-color: transparent; }
.pill.outline { color: hsl(226 90% 55%); background: hsl(226 90% 55% / 0.08); border: 1px solid hsl(226 90% 55% / 0.25); }

/* ---- button icon alignment ---- */
.btn-primary svg, .btn-secondary svg { color: currentColor; opacity: 1; }
.btn-primary .pill-icon, .btn-secondary .pill-icon { color: currentColor; }

/* ---- section divider ---- */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, hsl(var(--border)), transparent); }

/* ---- category links tiles (hero background tones) ---- */
.hero-gradient { background: var(--gradient-hero); }
.mesh-gradient {
  background:
    radial-gradient(ellipse 50% 80% at 20% 40%, hsl(226 90% 55% / 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 20%, hsl(187 81% 52% / 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 60% at 60% 80%, hsl(200 90% 55% / 0.04) 0%, transparent 50%);
}
.noise-bg::before {
  content: ''; position: absolute; inset: 0; opacity: 0.015; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.floating-orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; animation: float 10s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(40px,-40px) scale(1.08); } 50% { transform: translate(-20px,30px) scale(0.95); } 75% { transform: translate(30px,10px) scale(1.03); } }
.gradient-border { }
.glow { box-shadow: var(--shadow-glow); }

/* ---- nav ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(228 20% 4% / 0.7);
  backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid transparent;
}
.navbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, hsl(226 90% 55% / 0.5), hsl(187 81% 52% / 0.3), transparent); }
.nav-link { padding: 0.5rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500; color: hsl(var(--muted-foreground)); transition: all 0.3s; }
.nav-link:hover { color: hsl(var(--foreground)); }
.nav-link.active { color: hsl(var(--primary)); background: linear-gradient(135deg, hsl(226 90% 55% / 0.1), hsl(226 90% 55% / 0.04)); border: 1px solid hsl(226 90% 55% / 0.15); }

main { min-height: 60vh; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed; bottom: 3rem; right: 1.5rem; z-index: 50;
  display: inline-flex; align-items: center; gap: 0.75rem;
  border-radius: 9999px; padding: 0.75rem; color: #fff;
  background: #22c55e; box-shadow: 0 0 30px rgba(34,197,94,0.3);
  font-weight: 600; font-size: 0.875rem; transition: transform 0.3s;
}
.whatsapp-fab:hover { transform: scale(1.05); background: #16a34a; }
.whatsapp-fab svg { width: 20px; height: 20px; }

/* ---- buttons with icons inside ---- */
.btn-primary, .btn-secondary { line-height: 1.1; }
.btn-primary svg, .btn-secondary svg { vertical-align: middle; }
.btn-primary:hover svg, .btn-secondary:hover svg { transform: translateX(1px); }

/* ---- input-wrap (icon + toggle password) ---- */
.input-wrap { position: relative; }
.input-wrap .input-field.has-icon { padding-left: 2.5rem; padding-right: 2.5rem; }
.input-icon {
  position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%);
  color: hsl(var(--muted-foreground)); pointer-events: none;
  display: inline-flex;
}
.input-toggle {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; padding: 0.35rem;
  color: hsl(var(--muted-foreground)); cursor: pointer;
  border-radius: 0.4rem; transition: color 0.2s, background 0.2s;
}
.input-toggle:hover { color: hsl(226 90% 65%); background: hsl(228 18% 14% / 0.6); }
.input-toggle:focus-visible { outline: 3px solid hsl(226 90% 55% / 0.5); outline-offset: 1px; }
.input-toggle[aria-pressed="true"] { color: hsl(226 90% 65%); }

/* ---- alert icons ---- */
.alert.inline-flex { display: inline-flex; align-items: center; gap: 0.5rem; }
.alert-icon { display: inline-flex; flex-shrink: 0; }
.alert-error .alert-icon { color: hsl(10 90% 75%); }
.alert-success .alert-icon { color: hsl(140 50% 80%); }

/* ---- auth icon head ---- */
.auth-icon-head {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  margin-bottom: 1.25rem; color: hsl(226 90% 65%);
  background: hsl(226 90% 55% / 0.1);
  border: 1px solid hsl(226 90% 55% / 0.22);
}

/* ---- auth card spacing ---- */
.auth-icon-head + h1 { margin-top: 0; }

/* ---- dashboard account card ---- */
.account-card { display: flex; flex-direction: column; gap: 0.5rem; }
.account-head {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap;
}
.account-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 1.25rem;
  color: hsl(226 90% 65%);
  background: hsl(226 90% 55% / 0.12);
  border: 1px solid hsl(226 90% 55% / 0.25);
  flex-shrink: 0;
}
.account-greeting { font-size: 1.875rem; line-height: 1.1; }
.account-meta { display: inline-flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.account-meta .inline-icon { color: hsl(var(--muted-foreground)); opacity: 0.85; }
.account-meta-sep { color: hsl(var(--muted-foreground)); opacity: 0.6; }

/* ---- orders table ---- */
.orders-table th, .orders-table td { padding: 0.85rem 1rem; }
.orders-table th .th-icon, .orders-table th { display: inline-flex; align-items: center; gap: 0.4rem; }
.orders-table th .th-icon { color: hsl(226 90% 65%); }
.order-ref { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.order-items { font-size: 0.85rem; color: hsl(var(--secondary-foreground)); }
.order-total { font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.badge .badge-icon { display: inline-flex; vertical-align: -2px; margin-right: 0.25rem; }

/* ---- product card cosmetic badges ---- */
.pc-category-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.65rem;
  background: hsl(228 22% 6% / 0.7); color: hsl(210 40% 95% / 0.92);
  border: 1px solid hsl(228 18% 22% / 0.7); backdrop-filter: blur(10px);
}
.pc-category-badge .cat-icon { color: hsl(226 90% 65%); }
.pc-hot-badge { padding: 0.4rem 0.65rem; }
.price-badge { padding: 0.4rem 0.85rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.price-badge.paid {
  background: var(--gradient-primary); color: hsl(var(--primary-foreground));
  box-shadow: 0 8px 24px -8px hsl(226 90% 55% / 0.6);
}
.price-badge.paid .price-from {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.78;
  padding-right: 0.05rem;
  align-self: center;
}
.price-badge.free {
  background: linear-gradient(135deg, hsl(152 76% 40%), hsl(168 76% 42%)); color: #fff;
}
.price-compare { padding-bottom: 0.25rem; }
.product-title { transition: color 0.2s; }
.product-card-link:hover .product-title { color: hsl(226 90% 70%); }
.stack-chips { gap: 0.375rem 0.5rem; }
.stack-chip { display: inline-flex; align-items: center; gap: 0.25rem; margin: 0; }
.stack-chip .stack-chip-icon { color: hsl(226 90% 65%); opacity: 0.8; }
.product-foot .inline-icon { color: hsl(var(--muted-foreground)); margin-right: 0.25rem; }
.product-cta { transition: gap 0.2s; }
.product-cta:hover { gap: 0.4rem; }

/* === related products section === */
.related-section {
  margin-top: 4rem;            /* explicit y-margin above the entire section */
  border-top: 1px solid hsl(var(--border) / 0.25);
  padding-top: 2.5rem;
}
.related-grid {
  display: grid;
  gap: 2.5rem 1.5rem;           /* 40px row gap on mobile, 24px col gap */
  grid-template-columns: 1fr;   /* single col, cards stacked full-width on mobile */
  margin-top: 1.5rem;           /* y-margin between heading row and the cards */
}
@media (min-width: 768px) {
  .related-grid {
    gap: 2rem 1.75rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* ---- product detail hero (photo + sticky buy card) ---- */
.product-hero-grid { align-items: start; }
.product-buy-col {
  align-self: start;
  position: relative;
}
.product-buy-card {
  position: sticky;
  top: 6rem;
  position: -webkit-sticky;
}
.product-action-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.product-action-row > .product-action {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}
.product-action-row > a.product-action { align-items: center; justify-content: center; }
.product-action-row .btn-primary { justify-content: center; }
@media (max-width: 1023px) {
  .product-buy-col { position: static; }
  .product-buy-card { position: static; top: auto; }
}
@media (max-width: 480px) {
  .product-action-row { flex-direction: column; }
}
.product-body { width: 100%; }

/* ---- spec grids (Quick facts + buy card) ---- */
.spec-grid { align-items: start; }
.spec-row {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.6rem 0.8rem; border-radius: 0.75rem;
  background: hsl(var(--background) / 0.3);
  border: 1px solid hsl(var(--border) / 0.2);
  min-height: 0;
}
.spec-label { font-size: 0.75rem; line-height: 1.2; }
.spec-value {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  font-size: 0.8125rem; line-height: 1.35; word-break: break-word;
}
.spec-buy-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.75rem; padding: 0.7rem 0.85rem;
}
.spec-buy-label { flex-shrink: 0; line-height: 1.4; display: flex; align-items: flex-start; }
.spec-buy-value {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  line-height: 1.35; word-break: break-word;
}

/* ---- feature chips (condensed product features) ---- */
.feature-chips { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .feature-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-chip {
  display: inline-flex; align-items: flex-start; gap: 0.4rem;
  font-size: 0.8125rem; line-height: 1.4; color: hsl(var(--muted-foreground));
  padding: 0.45rem 0.6rem 0.45rem 0.55rem;
  background: hsl(228 18% 11% / 0.5);
  border: 1px solid hsl(var(--border) / 0.25);
  border-radius: 0.5rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.feature-chip:hover { color: hsl(220 15% 90%); border-color: hsl(226 90% 55% / 0.35); background: hsl(228 22% 12% / 0.7); }
.feature-chip-icon { color: hsl(226 90% 65%); flex-shrink: 0; margin-top: 0.0625rem; }

/* ---- show-all / collapse ---- */
.hidden-item { display: none !important; }
.show-all-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; font-weight: 500; margin-top: 0.75rem;
  color: hsl(226 90% 65%); background: hsl(228 18% 10% / 0.5);
  border: 1px solid hsl(226 90% 55% / 0.2); border-radius: 0.5rem;
  padding: 0.375rem 0.875rem; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.show-all-btn:hover, .show-all-btn:focus-visible { background: hsl(228 22% 14% / 0.8); border-color: hsl(226 90% 55% / 0.45); }

/* ---- consistent card x-margins utility ---- */
.card-mx { margin-left: auto; margin-right: auto; max-width: 100%; }
.product-card-wrap { height: 100%; display: block; }
.product-card-wrap > :first-child { height: 100%; }

/* ---- footer ---- */
.footer .brand-name { font-size: 1.3rem; }
.footer-about { max-width: 24rem; }
.footer-social-link {
  width: 2.25rem; height: 2.25rem; border-radius: 0.625rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
  background: hsl(228 18% 10% / 0.6); border: 1px solid hsl(228 18% 18% / 0.5);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.footer-social-link:hover { transform: translateY(-2px); }
.footer-social-link svg { width: 1.125rem; height: 1.125rem; }

/* Brand-colored social icons — visible & familiar */
.footer-social-link.social-youtube  { color: #fff; background: #FF0000; border-color: #FF0000; }
.footer-social-link.social-youtube:hover  { background: #cc0000; border-color: #cc0000; box-shadow: 0 4px 14px rgba(255,0,0,0.35); }

.footer-social-link.social-github   { color: #fff; background: #24292f; border-color: #24292f; }
.footer-social-link.social-github:hover   { background: #1a1e22; border-color: #1a1e22; box-shadow: 0 4px 14px rgba(36,41,47,0.45); }

.footer-social-link.social-whatsapp { color: #fff; background: #25D366; border-color: #25D366; }
.footer-social-link.social-whatsapp:hover { background: #1da851; border-color: #1da851; box-shadow: 0 4px 14px rgba(37,211,102,0.35); }

.footer-social-link.social-mail     { color: #fff; background: #1E73FF; border-color: #1E73FF; }
.footer-social-link.social-mail:hover     { background: #0d5ae6; border-color: #0d5ae6; box-shadow: 0 4px 14px rgba(30,115,255,0.35); }

.footer-social-link.social-linkedin { color: #fff; background: #0A66C2; border-color: #0A66C2; }
.footer-social-link.social-linkedin:hover { background: #084d92; border-color: #084d92; box-shadow: 0 4px 14px rgba(10,102,194,0.35); }

.footer-social-link.social-twitter  { color: #fff; background: #000; border-color: #000; }
.footer-social-link.social-twitter:hover  { background: #1a1a1a; border-color: #1a1a1a; box-shadow: 0 4px 14px rgba(0,0,0,0.45); }

.footer-social { gap: 0.5rem; }
.footer-heading {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}
.footer-icon { color: hsl(226 90% 65%); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list-item { margin-bottom: 0.65rem; }
.footer-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: hsl(var(--muted-foreground)); font-size: 0.875rem;
  transition: color 0.2s, gap 0.2s;
  overflow-wrap: anywhere; word-break: break-word; max-width: 100%;
}
.footer-link:hover { color: hsl(226 90% 65%); gap: 0.65rem; }
.footer-link-bullet {
  display: inline-flex; color: hsl(226 90% 55% / 0.5);
  transition: color 0.2s;
}
.footer-link:hover .footer-link-bullet { color: hsl(226 90% 65%); }

/* ---- about / pillars / journey / faq / page-hero ---- */
.pillar-card { display: flex; flex-direction: column; gap: 0.5rem; transition: transform 0.3s, border-color 0.3s; }
.pillar-card:hover { transform: translateY(-2px); }
.pillar-icon {
  display: inline-flex; width: 3.5rem; height: 3.5rem;
  border-radius: 0.85rem; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.journey-card { align-items: flex-start; }
.journey-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 3.5rem; height: 3.5rem; border-radius: 0.85rem;
  color: hsl(226 90% 65%);
  background: linear-gradient(135deg, hsl(226 90% 55% / 0.15), hsl(226 90% 55% / 0.05));
  border: 1px solid hsl(226 90% 55% / 0.2);
}
.journey-period { font-size: 0.8rem; }

/* ---- FAQ accordion ---- */
.faq-details { transition: border-color 0.3s; }
.faq-details[open] { border-color: hsl(226 90% 55% / 0.3); }
.faq-summary {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 1.35rem 1.75rem; text-align: left; cursor: pointer; list-style: none;
  gap: 1rem;
}
.faq-q-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.6rem; flex-shrink: 0;
  color: hsl(226 90% 65%);
  background: hsl(226 90% 55% / 0.1);
  border: 1px solid hsl(226 90% 55% / 0.2);
}
.faq-q { flex: 1; }
.faq-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2rem; height: 2rem; border-radius: 0.6rem;
  color: hsl(226 90% 65%);
  background: hsl(226 90% 55% / 0.1);
  border: 1px solid hsl(226 90% 55% / 0.18);
  transition: transform 0.25s ease, background 0.25s;
}
.faq-a { padding: 0 1.75rem 1.5rem; }

/* ---- generic page hero / section ---- */
.page-hero {
  position: relative; padding: 6rem 0 2.5rem;
  background: radial-gradient(circle at top, hsl(187 81% 52% / 0.16), transparent 40%);
  border-bottom: 1px solid hsl(228 18% 18% / 0.5);
}
.page-hero-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-block: 0.6rem 0.75rem; letter-spacing: -0.02em; }
.page-hero-subtitle { max-width: 42rem; color: hsl(220 15% 70%); font-size: 1rem; line-height: 1.6; }
.page-section { border-bottom: 1px solid hsl(228 18% 18% / 0.5); padding-block: 2.5rem; }
.service-list-card .service-num-pill {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  padding: 0.3rem 0.6rem; border-radius: 9999px;
  color: hsl(var(--muted-foreground)); opacity: 0.8;
  background: hsl(228 18% 14% / 0.4); border: 1px solid hsl(228 18% 18% / 0.5);
}

/* ---- page CTA ---- */
.page-cta { padding-block: 2.5rem; }
.cta-center {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  text-align: center;
}
.cta-subtitle-muted { max-width: 42rem; color: hsl(220 15% 70%); }
.cta-glow { box-shadow: 0 0 40px -10px hsl(226 90% 55% / 0.45); }

/* ---- portfolio ---- */
.portfolio-card { transition: transform 0.3s, border-color 0.3s; }
.portfolio-card:hover { transform: translateY(-3px); border-color: hsl(226 90% 55% / 0.3); }
.portfolio-preview-frame {
  aspect-ratio: 2.29 / 1;
  background: linear-gradient(135deg, hsl(228 22% 12%), hsl(228 22% 6%));
  border-bottom: 1px solid hsl(228 18% 18% / 0.5);
}
.portfolio-preview-frame picture,
.mugenya-case-preview picture { display: block; width: 100%; height: 100%; }
.portfolio-preview,
.portfolio-preview-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}
.portfolio-preview { object-fit: contain; }
.portfolio-preview-placeholder { background: linear-gradient(135deg, hsl(228 22% 12%), hsl(228 22% 6%)); }
.portfolio-placeholder { display: inline-flex; opacity: 0.5; }
.portfolio-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsl(228 22% 7%), hsl(228 22% 7% / 0.2) 40%, transparent 80%);
  opacity: 0.6; pointer-events: none;
}
.portfolio-role-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.65rem; border-radius: 0.6rem;
  font-size: 0.75rem; font-weight: 600; color: hsl(226 90% 65%);
  background: linear-gradient(135deg, hsl(228 22% 8% / 0.85), hsl(228 22% 5% / 0.9));
  border: 1px solid hsl(226 90% 55% / 0.25); backdrop-filter: blur(8px);
}
.portfolio-role-badge .cat-icon { color: hsl(226 90% 65%); }
.portfolio-card-title:hover { color: hsl(226 90% 70%); }
.portfolio-link { font-weight: 600; transition: gap 0.2s; }
.portfolio-link:hover { gap: 0.65rem; }
.portfolio-filter-bar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.portfolio-filter {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid hsl(228 18% 23% / 0.8);
  border-radius: 999px;
  color: hsl(var(--muted-foreground));
  background: hsl(228 18% 10% / 0.5);
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.portfolio-filter:hover { color: hsl(226 90% 72%); border-color: hsl(226 90% 55% / 0.42); }
.portfolio-filter.active { color: white; border-color: hsl(226 90% 58%); background: hsl(226 90% 55% / 0.7); }
.mugenya-case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border-color: hsl(226 90% 55% / 0.32);
}
.mugenya-case-copy { display: flex; flex-direction: column; justify-content: center; }
.case-study-deliverables { display: grid; gap: 0.8rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.case-study-deliverables li { display: flex; gap: 0.65rem; align-items: flex-start; color: hsl(210 40% 96% / 0.88); font-size: 0.88rem; line-height: 1.5; }
.case-study-deliverables svg { flex: 0 0 auto; margin-top: 0.12rem; color: hsl(187 81% 58%); }
.mugenya-case-previews {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: hsl(228 18% 18% / 0.75);
}
.mugenya-case-preview { position: relative; min-height: 0; margin: 0; overflow: hidden; background: hsl(228 22% 8%); }
.mugenya-case-preview img { display: block; width: 100%; height: 100%; min-height: 13rem; object-fit: cover; object-position: top; }
.mugenya-case-preview::after { position: absolute; inset: 45% 0 0; content: ''; pointer-events: none; background: linear-gradient(to top, hsl(228 22% 5% / 0.82), transparent); }
.mugenya-case-preview figcaption { position: absolute; bottom: 1rem; left: 1rem; z-index: 1; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.65rem; border: 1px solid hsl(226 90% 55% / 0.22); border-radius: 0.6rem; background: hsl(228 22% 7% / 0.78); color: hsl(210 40% 96% / 0.94); font-size: 0.73rem; font-weight: 600; backdrop-filter: blur(7px); }
.mugenya-case-preview figcaption svg { color: hsl(187 81% 62%); }
@media (max-width: 900px) {
  .mugenya-case-study { grid-template-columns: 1fr; }
  .mugenya-case-previews { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mugenya-case-preview img { min-height: 10rem; }
}
@media (max-width: 560px) {
  .mugenya-case-previews { grid-template-columns: 1fr; }
}

/* utility helpers */
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.shadow { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.break-words { overflow-wrap: break-word; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-primary:hover { color: hsl(226 90% 55%); }
.hover\:text-foreground:hover { color: hsl(210 40% 96%); }
.cursor-pointer { cursor: pointer; }
.aspect-video { aspect-ratio: 16/9; }
.object-cover { object-fit: cover; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transition-colors { transition: color 0.3s; }
.transition-all { transition: all 0.3s; }
.transition-transform { transition: transform 0.3s; }

/* hero badge pill */
.pill.solid { color: hsl(var(--primary-foreground)); background: var(--gradient-primary); border-color: transparent; }
.pill.outline { color: hsl(226 90% 55%); background: hsl(226 90% 55% / 0.08); border: 1px solid hsl(226 90% 55% / 0.25); }

/* product card stack chips */
.stack-chip { font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem; padding: 0.25rem 0.4rem; border-radius: 0.375rem; color: hsl(var(--muted-foreground)); background: hsl(228 18% 11% / 0.7); border: 1px solid hsl(228 18% 18% / 0.5); }

/* tables (admin) */
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid hsl(var(--border)); }
table th { color: hsl(var(--muted-foreground)); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* admin layout */
.admin-body { background: hsl(228 20% 4%); color: hsl(var(--foreground)); font-family: 'Space Grotesk', Inter, system-ui, sans-serif; }
.admin-wrap { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) {
  .admin-wrap { grid-template-columns: 16rem 1fr; }
}
.admin-hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin: 0.75rem; cursor: pointer;
  background: hsl(228 22% 8% / 0.7);
  border: 1px solid hsl(228 18% 18% / 0.5); border-radius: 0.75rem; color: hsl(var(--foreground));
}
.admin-hamburger:hover { color: hsl(226 90% 65%); border-color: hsl(226 90% 55% / 0.4); }
@media (min-width: 1024px) { .admin-hamburger { display: none; } }
.admin-sidebar-toggle-input:checked ~ .admin-wrap .admin-sidebar { transform: translateX(0); }
.admin-sidebar-toggle-input:checked ~ .admin-wrap { backdrop-filter: none; }

.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 16rem; max-width: 85vw;
  background: hsl(228 20% 4% / 0.96); border-right: 1px solid hsl(var(--border));
  padding: 1.5rem 1rem; min-height: 100vh; z-index: 100;
  backdrop-filter: blur(20px) saturate(1.5);
  transform: translateX(-100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
@media (min-width: 1024px) {
  .admin-sidebar { position: sticky; transform: translateX(0); transition: none; }
}
.admin-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem;
}
.admin-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.6rem;
  color: hsl(var(--primary-foreground));
  background: var(--gradient-primary);
  box-shadow: 0 6px 22px -10px hsl(226 90% 55% / 0.6);
}
.admin-brand-text { letter-spacing: -0.02em; }
.admin-sidebar a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem; border-radius: 0.5rem;
  color: hsl(var(--muted-foreground)); font-size: 0.875rem;
  transition: color 0.2s, background 0.2s, gap 0.2s;
}
.admin-sidebar a:hover { color: hsl(var(--foreground)); background: hsl(var(--secondary) / 0.5); gap: 0.75rem; }
.admin-sidebar a.active {
  color: hsl(226 90% 70%); background: hsl(226 90% 55% / 0.08);
  border-left: 2px solid hsl(226 90% 55%); padding-left: calc(0.85rem - 2px);
}
.admin-sidebar-foot {
  margin-top: auto; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border));
  display: flex; flex-direction: column; gap: 0.75rem;
}
.admin-form { display: block; }
.admin-signout-btn {
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  padding: 0.6rem 0.85rem; border-radius: 0.5rem; cursor: pointer;
  color: hsl(var(--muted-foreground)); background: transparent; border: none;
  font-family: inherit; font-size: 0.875rem; transition: color 0.2s, background 0.2s;
}
.admin-signout-btn:hover { color: hsl(0 80% 70%); background: hsl(0 60% 40% / 0.08); }
.admin-view-site {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 0.85rem; border-radius: 0.5rem;
  color: hsl(var(--muted-foreground)); font-size: 0.8125rem;
  transition: color 0.2s, background 0.2s, gap 0.2s;
}
.admin-view-site:hover { color: hsl(226 90% 65%); background: hsl(228 18% 12% / 0.5); gap: 0.7rem; }
.admin-content { padding: 1.5rem; min-width: 0; }
@media (min-width: 768px) { .admin-content { padding: 2rem; } }

/* admin table */
.admin-table-card {
  background: hsl(228 22% 7% / 0.65);
  border: 1px solid hsl(228 18% 16% / 0.6);
  box-shadow: 0 24px 60px -28px hsl(0 0% 0% / 0.7);
}
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.admin-table thead { background: hsl(228 20% 6% / 0.96); }
.admin-table th {
  position: sticky; top: 0; z-index: 2;
  background: hsl(228 20% 6% / 0.98);
  backdrop-filter: blur(12px) saturate(1.4);
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: hsl(var(--muted-foreground));
  padding: 0.85rem 1rem; text-align: left; vertical-align: middle;
  white-space: nowrap; border-bottom: 1px solid hsl(228 18% 18% / 0.6);
}
.admin-table th .th-icon-wrap { display: inline-flex; align-items: center; gap: 0.35rem; }
.admin-table .th-icon { color: hsl(226 90% 55%); flex-shrink: 0; opacity: 0.85; }
.admin-table .w-id { width: 4rem; }
.admin-table .w-actions { width: 11rem; }
.admin-table tbody tr {
  transition: background 0.18s ease;
  border-bottom: 1px solid hsl(228 18% 14% / 0.4);
}
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: hsl(228 22% 10% / 0.45); }
.admin-table td { padding: 0.85rem 1rem; font-size: 0.875rem; vertical-align: middle; }
.admin-col-id { color: hsl(var(--muted-foreground)); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; }
.admin-primary-cell { font-weight: 600; color: hsl(220 15% 95%); letter-spacing: -0.01em; }
.admin-truncate { display: inline-block; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.admin-slug, .admin-key {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  padding: 0.2rem 0.5rem; border-radius: 0.4rem;
  background: hsl(228 18% 12% / 0.7); border: 1px solid hsl(228 18% 18% / 0.5);
  color: hsl(226 60% 80%);
}
.admin-link { display: inline-flex; align-items: center; gap: 0.3rem; color: hsl(220 15% 85%); text-decoration: none; transition: color 0.2s; }
.admin-link:hover { color: hsl(226 90% 70%); }
.admin-cell { color: hsl(220 15% 88%); }
.inline-text-icon { display: inline-flex; align-items: center; gap: 0.35rem; }
.admin-actions-cell { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.admin-action {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; font-weight: 500; padding: 0.32rem 0.65rem;
  border-radius: 0.5rem; cursor: pointer; text-decoration: none; font-family: inherit;
  border: 1px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.admin-delete-form { display: inline-block; margin: 0; }
.edit-action { background: hsl(226 90% 55% / 0.08); color: hsl(226 90% 75%); border-color: hsl(226 90% 55% / 0.18); }
.edit-action:hover { background: hsl(226 90% 55% / 0.2); color: hsl(226 90% 85%); border-color: hsl(226 90% 55% / 0.35); }
.delete-action {
  background: hsl(0 60% 35% / 0.1); color: hsl(0 75% 70%); border: 1px solid hsl(0 60% 45% / 0.25);
}
.delete-action:hover { background: hsl(0 70% 40% / 0.22); color: hsl(0 85% 80%); border-color: hsl(0 70% 55% / 0.4); }

/* status pills */
.status-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.22rem 0.6rem; border-radius: 9999px;
  border: 1px solid transparent; white-space: nowrap;
}
.status-pill .status-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.status-pill-icon { flex-shrink: 0; }
.status-active { background: hsl(152 50% 28% / 0.18); color: hsl(140 55% 78%); border-color: hsl(152 55% 45% / 0.3); }
.status-draft { background: hsl(228 18% 24% / 0.45); color: hsl(220 15% 80%); border-color: hsl(228 18% 32% / 0.5); }
.status-pending { background: hsl(45 80% 45% / 0.15); color: hsl(45 90% 80%); border-color: hsl(45 80% 55% / 0.35); }
.status-archived { background: hsl(0 70% 42% / 0.14); color: hsl(10 80% 78%); border-color: hsl(0 70% 50% / 0.32); }
.status-info { background: hsl(200 80% 50% / 0.14); color: hsl(200 80% 80%); border-color: hsl(200 80% 55% / 0.32); }

/* admin page header */
.admin-page-head {
  display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.admin-page-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.85rem; height: 2.85rem; border-radius: 0.85rem; flex-shrink: 0;
  color: hsl(226 90% 70%);
  background: hsl(226 90% 55% / 0.12);
  border: 1px solid hsl(226 90% 55% / 0.25);
  box-shadow: 0 6px 24px -14px hsl(226 90% 55% / 0.4);
}
.admin-page-title-wrap { flex: 1; min-width: 0; }
.admin-page-title {
  font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; color: hsl(220 15% 96%);
  line-height: 1.15;
}
.admin-page-subtitle { margin-top: 0.25rem; font-size: 0.85rem; }
.admin-page-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.admin-count-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  background: hsl(228 18% 12% / 0.7); border: 1px solid hsl(228 18% 18% / 0.5);
  color: hsl(220 15% 85%);
}
.admin-new-button { font-weight: 600; }
.admin-actions-row { display: flex; gap: 0.75rem; }

/* admin stats grid */
.admin-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem;
}
@media (min-width: 768px) { .admin-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.admin-stat-card {
  position: relative; display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 1.25rem; text-align: left;
  background: hsl(228 22% 7% / 0.7); border: 1px solid hsl(228 18% 16% / 0.6);
  border-radius: 1rem; overflow: hidden; transition: transform 0.25s, border-color 0.25s;
}
.admin-stat-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; height: 100%; width: 3px;
  background: linear-gradient(to bottom, hsl(226 90% 65%), hsl(187 81% 55%));
  opacity: 0.85;
}
.admin-stat-card:hover { transform: translateY(-2px); border-color: hsl(226 90% 55% / 0.35); }
.admin-stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.85rem; color: hsl(226 90% 70%);
  background: hsl(226 90% 55% / 0.12); border: 1px solid hsl(226 90% 55% / 0.22); flex-shrink: 0;
}
.admin-stat-body { flex: 1; min-width: 0; }
.admin-stat-value { line-height: 1; letter-spacing: -0.03em; color: hsl(220 15% 96%); font-size: 1.85rem; }
.admin-stat-label { margin-top: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.6875rem; color: hsl(var(--muted-foreground)); }
.admin-stat-trend { color: hsl(140 60% 60%); opacity: 0.7; }

/* admin section */
.admin-section { margin-bottom: 2.5rem; }
.admin-section:last-child { margin-bottom: 0; }
.admin-section-tools { margin-top: 2.5rem; }
.admin-section-head { margin-bottom: 1.1rem; }
.admin-section-title {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: hsl(220 15% 88%); margin-bottom: 0.3rem;
}
.admin-section-title .title-icon { color: hsl(226 90% 65%); }
.admin-section-sub { font-size: 0.8125rem; margin: 0; }

/* quick action cards */
.admin-actions-grid {
  display: grid; gap: 0.9rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .admin-actions-grid { grid-template-columns: repeat(4, 1fr); } }
.admin-action-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem;
  padding: 1.25rem; border-radius: 1rem; text-decoration: none;
  background: hsl(228 22% 8% / 0.7); border: 1px solid hsl(228 18% 16% / 0.6);
  transition: transform 0.22s, border-color 0.22s, background 0.22s, box-shadow 0.22s;
  overflow: hidden;
}
.admin-action-card:hover {
  transform: translateY(-3px); border-color: hsl(226 90% 55% / 0.4);
  box-shadow: 0 14px 40px -22px hsl(226 90% 55% / 0.4);
}
.admin-action-primary {
  background: linear-gradient(135deg, hsl(226 90% 55% / 0.18), hsl(187 81% 45% / 0.1));
  border-color: hsl(226 90% 55% / 0.35);
}
.admin-action-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 0.75rem;
  color: hsl(226 90% 70%); background: hsl(226 90% 55% / 0.15);
  border: 1px solid hsl(226 90% 55% / 0.25);
}
.admin-action-label { font-weight: 600; color: hsl(220 15% 96%); letter-spacing: -0.01em; }
.admin-action-arrow { position: absolute; top: 1.25rem; right: 1.25rem; color: hsl(var(--muted-foreground)); transition: transform 0.22s, color 0.22s; }
.admin-action-card:hover .admin-action-arrow { color: hsl(226 90% 70%); transform: translateX(4px); }

/* admin SEO tools */
.admin-tools .title-icon { color: hsl(var(--muted-foreground)); }
.admin-tools-grid { display: grid; gap: 0.7rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .admin-tools-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-tool-link {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: 0.75rem;
  text-decoration: none; background: hsl(228 22% 8% / 0.5);
  border: 1px solid hsl(228 18% 16% / 0.5);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.admin-tool-link:hover {
  transform: translateX(2px); background: hsl(228 22% 10% / 0.7);
  border-color: hsl(226 90% 55% / 0.35);
}
.admin-tool-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 0.65rem;
  color: hsl(226 90% 65%); background: hsl(226 90% 55% / 0.12);
  border: 1px solid hsl(226 90% 55% / 0.22); flex-shrink: 0;
}
.admin-tool-label { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.admin-tool-title { font-weight: 600; color: hsl(220 15% 95%); font-size: 0.85rem; }
.admin-tool-desc { font-size: 0.75rem; }
.admin-tool-arrow { color: hsl(var(--muted-foreground)); transition: transform 0.2s, color 0.2s; }
.admin-tool-link:hover .admin-tool-arrow { color: hsl(226 90% 70%); transform: translateX(3px); }

/* empty state */
.admin-empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.85rem;
  padding: 3.5rem 2rem; border-radius: 1rem; border: 2px dashed hsl(228 18% 22% / 0.65);
  background: hsl(228 22% 7% / 0.4);
}
.admin-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 50%;
  color: hsl(var(--muted-foreground));
  background: hsl(228 18% 16% / 0.5); border: 1px solid hsl(228 18% 22% / 0.6);
  opacity: 0.7;
}
.admin-empty-title { font-size: 1.15rem; font-weight: 600; color: hsl(220 15% 92%); letter-spacing: -0.01em; }
.admin-empty-text { max-width: 36ch; }
.admin-empty-cta { margin-top: 0.5rem; }

/* alerts */
.admin-alert { margin-bottom: 1.25rem; }

/* admin form */
.admin-form-head { margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.admin-back-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; color: hsl(var(--muted-foreground)); text-decoration: none;
  padding: 0.35rem 0.6rem; margin-left: -0.6rem; border-radius: 0.45rem;
  transition: color 0.2s, background 0.2s;
}
.admin-back-link:hover { color: hsl(226 90% 70%); background: hsl(228 18% 12% / 0.55); }
.admin-form-head-main { display: flex; align-items: center; gap: 0.85rem; }
.admin-form-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.85rem; height: 2.85rem; border-radius: 0.85rem; flex-shrink: 0;
  color: hsl(226 90% 70%);
  background: hsl(226 90% 55% / 0.12);
  border: 1px solid hsl(226 90% 55% / 0.25);
}
.admin-form-title {
  font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; color: hsl(220 15% 96%);
  line-height: 1.15;
}
.admin-form-card {
  padding: 1.5rem;
  background: hsl(228 22% 6% / 0.6) !important;
  border: 1px solid hsl(228 18% 16% / 0.55);
  box-shadow: 0 24px 60px -32px hsl(0 0% 0% / 0.6);
}
@media (min-width: 768px) { .admin-form-card { padding: 2rem; } }

/* fieldset + grid layout */
.form-fieldset {
  border: none; padding: 0; margin: 0 0 1.5rem 0;
}
.form-fieldset:last-of-type { margin-bottom: 0; }
.form-fieldset-legend {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: hsl(220 15% 90%);
  margin-bottom: 0.9rem; padding: 0.45rem 0.9rem;
  background: hsl(228 22% 9% / 0.7);
  border: 1px solid hsl(228 18% 18% / 0.6);
  border-radius: 0.65rem;
}
.form-fieldset-legend::after {
  content: ''; width: 0.3rem; height: 0.3rem; border-radius: 50%;
  background: hsl(226 90% 60%); box-shadow: 0 0 8px hsl(226 90% 60% / 0.7);
  margin-left: 0.35rem;
}
.form-grid {
  display: grid; gap: 1.1rem 1.4rem;
  grid-template-columns: 1fr;
  padding: 1.25rem;
  background: hsl(228 22% 7% / 0.5);
  border: 1px solid hsl(228 18% 16% / 0.5);
  border-radius: 0.85rem;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }

/* form fields */
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field.field-full { grid-column: 1 / -1; }
.field-label {
  font-size: 0.78rem; font-weight: 600; color: hsl(220 15% 92%);
  margin-bottom: 0; letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 0.4rem;
}
.field-label .field-required { color: hsl(0 75% 65%); font-weight: 700; }
.field.has-error .input-field { border-color: hsl(0 70% 55% / 0.55); background: hsl(0 60% 35% / 0.08); }
.field-error {
  display: inline-flex; align-items: center; gap: 0.32rem;
  font-size: 0.75rem; color: hsl(0 80% 78%); margin: 0;
}
.field-error-icon { color: hsl(0 75% 65%); }

.select-wrap { position: relative; display: flex; }
.select-wrap .admin-select {
  width: 100%; appearance: none; padding-right: 2.5rem; cursor: pointer;
}
.select-chevron {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  color: hsl(var(--muted-foreground)); pointer-events: none; display: inline-flex;
}

/* checkbox row (single bool label) */
.checkbox-row { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; user-select: none; }
.checkbox-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.checkbox-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; border-radius: 0.35rem;
  border: 1px solid hsl(228 18% 30% / 0.7); background: hsl(228 22% 8% / 0.7);
  transition: background 0.18s, border-color 0.18s; color: hsl(var(--primary-foreground));
}
.checkbox-input:checked + .checkbox-box {
  background: var(--gradient-primary); border-color: hsl(226 90% 55%);
  box-shadow: 0 0 0 3px hsl(226 90% 55% / 0.15);
}
.checkbox-input:focus-visible + .checkbox-box { outline: 3px solid hsl(226 90% 55% / 0.5); outline-offset: 2px; }
.checkbox-tick { color: #fff; opacity: 0; }
.checkbox-input:checked + .checkbox-box .checkbox-tick { opacity: 1; }
.checkbox-label { font-size: 0.85rem; }

/* flag toggle cards */
.form-flags {
  display: grid; gap: 0.85rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .form-flags { grid-template-columns: repeat(3, 1fr); }
  /* visibility single flag stays stacked */
  fieldset .form-flags:has(> .flag-toggle:only-child) { grid-template-columns: 1fr; }
}
.flag-toggle {
  display: flex; align-items: center; gap: 0.75rem; cursor: pointer; user-select: none;
  padding: 0.9rem 1rem; border-radius: 0.75rem;
  background: hsl(228 22% 8% / 0.55); border: 1px solid hsl(228 18% 16% / 0.5);
  transition: border-color 0.2s, background 0.2s;
}
.flag-toggle:hover { border-color: hsl(226 90% 55% / 0.32); background: hsl(228 22% 10% / 0.7); }
.flag-toggle input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.flag-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; border-radius: 0.4rem;
  border: 1px solid hsl(228 18% 30% / 0.7); background: hsl(228 22% 8% / 0.7);
  color: hsl(var(--primary-foreground)); flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}
.flag-toggle input:checked ~ .flag-box {
  background: var(--gradient-primary); border-color: hsl(226 90% 55%);
  box-shadow: 0 0 0 3px hsl(226 90% 55% / 0.15);
}
.flag-label { display: flex; flex-direction: column; gap: 0.1rem; }
.flag-label > :first-child { font-weight: 600; font-size: 0.85rem; color: hsl(220 15% 95%); }
.flag-label .muted { font-size: 0.72rem; }

/* sticky form action bar */
.admin-form-actions {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; justify-content: flex-end;
  margin: 1.5rem -1.5rem -1.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, hsl(228 22% 5% / 0.95), hsl(228 22% 6% / 0.55));
  border-top: 1px solid hsl(228 18% 16% / 0.6);
  backdrop-filter: blur(14px) saturate(1.4);
}
@media (min-width: 768px) {
  .admin-form-actions { margin: 1.75rem -2.25rem -2.25rem; padding: 1.25rem 2.25rem; }
}
.admin-cancel-button { font-weight: 500; }
.admin-submit-button { padding: 0.7rem 1.35rem; font-weight: 600; }
.admin-submit-btn { margin-top: 0.5rem; display: inline-flex; }
.admin-sidebar .nav-icon { flex-shrink: 0; }

/* ---- admin auth (login) screen ---- */
.admin-auth-screen {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, hsl(226 90% 55% / 0.18), transparent 60%),
              radial-gradient(ellipse 60% 50% at 90% 110%, hsl(187 81% 50% / 0.12), transparent 55%),
              hsl(228 20% 4%);
}
.admin-auth-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, hsl(228 18% 18% / 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(228 18% 18% / 0.4) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 45%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 45%, #000 35%, transparent 75%);
  opacity: 0.45;
}
.admin-auth-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: 0.55; }
.admin-auth-orb-1 { width: 22rem; height: 22rem; top: -8rem; left: -8rem; background: hsl(226 90% 55%); opacity: 0.28; }
.admin-auth-orb-2 { width: 20rem; height: 20rem; bottom: -8rem; right: -6rem; background: hsl(187 81% 50%); opacity: 0.22; }
.admin-auth-back {
  position: absolute; top: 1.25rem; left: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 0.85rem; border-radius: 0.6rem;
  background: hsl(228 22% 8% / 0.7); border: 1px solid hsl(228 18% 18% / 0.55);
  color: hsl(var(--muted-foreground)); font-size: 0.825rem;
  text-decoration: none; z-index: 3; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.admin-auth-back:hover { color: hsl(226 90% 70%); border-color: hsl(226 90% 55% / 0.4); background: hsl(228 22% 10% / 0.9); }
.admin-auth-card {
  position: relative; z-index: 2; width: 100%; max-width: 26.5rem;
  padding: 2.25rem; display: flex; flex-direction: column; gap: 1.35rem;
  background: hsl(228 22% 6% / 0.78) !important;
  border: 1px solid hsl(228 18% 18% / 0.7);
  box-shadow: 0 40px 80px -32px hsl(0 0% 0% / 0.85), 0 0 0 1px hsl(226 90% 55% / 0.08) inset;
  backdrop-filter: blur(30px) saturate(1.5);
}
.admin-auth-brand { display: flex; align-items: center; gap: 0.75rem; }
.admin-auth-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: hsl(220 15% 96%); }
.admin-auth-subtitle { margin-top: 0.15rem; font-size: 0.825rem; }
.admin-auth-form { display: flex; flex-direction: column; gap: 1.05rem; }
.admin-auth-submit { margin-top: 0.5rem; padding: 0.75rem 1.5rem; font-weight: 600; justify-content: center; }
.admin-auth-hint {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.78rem; color: hsl(var(--muted-foreground));
  padding: 0.75rem 0.85rem; border-radius: 0.6rem;
  background: hsl(228 18% 12% / 0.5); border: 1px solid hsl(228 18% 18% / 0.55);
}
.admin-auth-hint code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  padding: 0.1rem 0.35rem; border-radius: 0.3rem;
  background: hsl(228 18% 16% / 0.85); color: hsl(220 15% 90%);
}

/* field group + input icon (auth) */
.field-group { display: flex; flex-direction: column; gap: 0.45rem; }
.field-group > label { margin-bottom: 0; font-size: 0.8rem; font-weight: 500; color: hsl(220 15% 88%); }
.input-wrap { position: relative; display: flex; align-items: stretch; }
.input-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: hsl(var(--muted-foreground)); display: inline-flex; pointer-events: none;
}
.input-field.has-icon { padding-left: 2.5rem; padding-right: 2.5rem; }
.input-toggle {
  position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer; padding: 0.3rem;
  color: hsl(var(--muted-foreground)); display: inline-flex; border-radius: 0.4rem;
  transition: color 0.2s;
}
.input-toggle:hover { color: hsl(226 90% 70%); }
.input-toggle:focus-visible { outline: 3px solid hsl(226 90% 55% / 0.5); outline-offset: 2px; }

/* admin context: fields get a darker, more solid surface ---- */
.admin-body label { margin-bottom: 0; }
.admin-body .input-field {
  background: hsl(228 22% 11% / 0.9);
  border-color: hsl(228 18% 24% / 0.75);
  color: hsl(220 15% 96%);
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
}
.admin-body .input-field::placeholder { color: hsl(220 10% 45%); }
.admin-body .input-field:hover { border-color: hsl(228 18% 32% / 0.9); }
.admin-body .input-field:focus {
  border-color: hsl(226 90% 60%);
  box-shadow: 0 0 0 3px hsl(226 90% 55% / 0.16), 0 0 24px -6px hsl(226 90% 55% / 0.25);
  background: hsl(228 22% 13% / 0.98);
}
.admin-body textarea.input-field { min-height: 5.5rem; line-height: 1.5; }
.admin-body select { background: hsl(228 22% 8% / 0.85); border-color: hsl(228 18% 22% / 0.7); color: hsl(220 15% 95%); padding: 0.7rem 2.5rem 0.7rem 0.85rem; }
.admin-body option { background: hsl(228 22% 7%); color: hsl(220 15% 95%); }
.admin-body h1, .admin-body h2, .admin-body h3 { color: hsl(220 15% 96%); }
.admin-body .muted, .admin-body .text-muted { color: hsl(220 10% 65%); }

/* Admin buttons */
.admin-body .btn-primary { padding: 0.7rem 1.35rem; font-weight: 600; }
.admin-body .btn-secondary { padding: 0.7rem 1.25rem; font-weight: 500; }

/* Backdrop overlay when admin mobile sidebar open */
.admin-sidebar-toggle-input:checked ~ .admin-wrap::before {
  content: ''; position: fixed; inset: 0; z-index: 99;
  background: hsl(0 0% 0% / 0.55); backdrop-filter: blur(2px);
}
@media (min-width: 1024px) {
  .admin-sidebar-toggle-input:checked ~ .admin-wrap::before { display: none; }
}

/* sidebar link groups */
.admin-sidebar-group {
  margin: 1.1rem 0.5rem 0.4rem;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: hsl(220 10% 45%);
}

/* admin topbar (sticky) */
.admin-topbar {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 0.75rem;
  margin: -1.5rem -1.5rem 1.5rem; padding: 0.7rem 1.5rem;
  background: hsl(228 20% 4% / 0.85); border-bottom: 1px solid hsl(228 18% 16% / 0.55);
  backdrop-filter: blur(16px) saturate(1.5);
}
@media (min-width: 768px) {
  .admin-topbar { margin: -2rem -2rem 2rem; padding: 0.85rem 2rem; }
}
.admin-topbar .admin-hamburger {
  display: inline-flex; margin: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 0.6rem;
}
@media (min-width: 1024px) { .admin-topbar .admin-hamburger { display: none; } }
.admin-breadcrumb { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; min-width: 0; flex: 1; overflow: hidden; }
.admin-crumb { color: hsl(var(--muted-foreground)); text-decoration: none; transition: color 0.2s; }
.admin-crumb:hover { color: hsl(226 90% 70%); }
.admin-crumb-sep { color: hsl(220 10% 40%); user-select: none; }
.admin-crumb-current { color: hsl(220 15% 96%); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-topbar-spacer { flex: 1; }
.admin-topbar-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: hsl(var(--muted-foreground)); text-decoration: none;
  padding: 0.4rem 0.7rem; border-radius: 0.55rem;
  background: hsl(228 22% 8% / 0.6); border: 1px solid hsl(228 18% 18% / 0.5);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.admin-topbar-link:hover { color: hsl(226 90% 70%); border-color: hsl(226 90% 55% / 0.35); background: hsl(228 22% 10% / 0.8); }

/* recent activity list on dashboard */
.admin-recent-activity {
  background: hsl(228 22% 7% / 0.65);
  border: 1px solid hsl(228 18% 16% / 0.6);
  border-radius: 1rem; padding: 1.5rem; margin-bottom: 2.5rem;
  box-shadow: 0 24px 60px -28px hsl(0 0% 0% / 0.6);
}
.admin-activity-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.admin-activity-item { border-radius: 0.65rem; transition: background 0.18s; }
.admin-activity-item:hover { background: hsl(228 22% 10% / 0.6); }
.admin-activity-link {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.7rem 0.6rem; text-decoration: none; color: inherit; border-radius: 0.65rem;
}
.admin-activity-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 0.6rem; flex-shrink: 0;
  color: hsl(226 90% 70%); background: hsl(226 90% 55% / 0.12);
  border: 1px solid hsl(226 90% 55% / 0.22);
}
.admin-activity-body { display: flex; flex-direction: column; gap: 0.12rem; flex: 1; min-width: 0; }
.admin-activity-title { font-weight: 600; color: hsl(220 15% 95%); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-activity-meta { font-size: 0.72rem; }
.admin-activity-arrow { color: hsl(var(--muted-foreground)); transition: transform 0.2s, color 0.2s; flex-shrink: 0; }
.admin-activity-item:hover .admin-activity-arrow { color: hsl(226 90% 70%); transform: translateX(3px); }

.alert { padding: 0.85rem 1.1rem; border-radius: 0.6rem; margin-bottom: 1rem; font-size: 0.875rem; }
.alert-error { background: hsl(0 72% 35% / 0.2); border: 1px solid hsl(0 72% 50% / 0.4); color: hsl(10 90% 90%); }
.alert-success { background: hsl(152 50% 25% / 0.25); border: 1px solid hsl(152 60% 45% / 0.4); color: hsl(140 50% 90%); }

.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; }
.badge-green { background: hsl(152 50% 30% / 0.5); color: hsl(140 50% 92%); }
.badge-red { background: hsl(0 72% 40% / 0.4); color: hsl(0 90% 90%); }
.badge-blue { background: hsl(226 90% 50% / 0.3); color: hsl(220 90% 92%); }
.badge-muted { background: hsl(228 18% 20% / 0.5); color: hsl(210 40% 90%); }

select, option { background: hsl(var(--secondary)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); padding: 0.5rem; border-radius: 0.5rem; }

.footer { position: relative; padding: 2rem 0; border-top: 1px solid hsl(228 18% 14% / 0.5); }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(12, 1fr); } }
.col-span-4 { } .col-span-3 { } .col-span-2 { }
@media (min-width: 768px) { .md\:col-span-4 { grid-column: span 4; } .md\:col-span-3 { grid-column: span 3; } .md\:col-span-2 { grid-column: span 2; } }

 label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.625rem; }

/* spinner */
.spinner { width: 2.5rem; height: 2.5rem; border: 2px solid hsl(226 90% 55% / 0.3); border-top-color: hsl(226 90% 55%); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.hidden-important { display: none !important; }

/* nav toggle */
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: none; cursor: pointer;
  background: hsl(228 22% 8% / 0.6); border: 1px solid hsl(228 18% 18% / 0.5);
  border-radius: 0.75rem; color: hsl(var(--foreground));
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  position: relative; z-index: 60;
}
.menu-toggle:hover { color: hsl(var(--primary)); border-color: hsl(226 90% 55% / 0.4); background: hsl(228 22% 10% / 0.8); }
.menu-toggle:focus-visible { outline: 3px solid hsl(226 90% 55%); outline-offset: 2px; }
.menu-toggle .toggle-close { display: none; }
.menu-toggle.is-open .toggle-open { display: none; }
.menu-toggle.is-open .toggle-close { display: block; }

/* ---- navbar layout ---- */
.navbar { display: block; padding-block: 0.6rem; }
.navbar.scrolled {
  background: hsl(228 20% 4% / 0.92);
  box-shadow: 0 8px 30px -12px hsl(0 0% 0% / 0.7);
}
.navbar > .container { height: 4rem; }
.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
.nav-cta { margin-left: 0.5rem; }
.inline-form { display: inline-block; margin: 0; }

.brand { font-weight: 700; letter-spacing: -0.02em; font-size: 1.2rem; gap: 0.5rem; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 0.65rem;
  background: transparent;
  box-shadow: none;
}
.brand-mark-svg { width: auto; height: 100%; max-width: 100%; display: block; }
.brand-name {
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.nav-icon { width: 1em; height: 1em; opacity: 0.85; flex-shrink: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 0.45rem; }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8125rem; border-radius: 0.7rem; }

/* ---- mobile slide-down menu ---- */
.mobile-nav {
  position: fixed; left: 0; right: 0; top: 5.6rem;
  background: hsl(228 22% 6% / 0.98);
  border-bottom: 1px solid hsl(228 18% 18% / 0.6);
  border-top: 1px solid hsl(228 18% 16% / 0.5);
  backdrop-filter: blur(24px) saturate(1.5);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  max-height: 0; overflow: hidden;
  transition: transform 0.28s ease, opacity 0.28s ease, max-height 0.28s ease;
  z-index: 55;
}
.mobile-nav.open {
  transform: translateY(0); opacity: 1; pointer-events: auto;
  max-height: 85vh; overflow-y: auto;
  box-shadow: 0 24px 60px -20px hsl(0 0% 0% / 0.8);
}
.mobile-nav-inner {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.1rem 1.5rem 1.4rem;
}
.mobile-nav .nav-link.mobile {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 0.85rem; border-radius: 0.75rem;
  font-size: 0.95rem; font-weight: 500;
  color: hsl(var(--secondary-foreground));
}
.mobile-nav .nav-link.mobile:hover { background: hsl(228 18% 14% / 0.6); color: hsl(var(--foreground)); }
.mobile-nav .nav-link.mobile svg { color: hsl(var(--muted-foreground)); }
.mobile-nav .nav-link.mobile.active svg, .mobile-nav .nav-link.mobile.active { color: hsl(var(--primary)); }
.mobile-form { display: block; margin-top: 0.5rem; }
.mobile-cta { width: 100%; justify-content: center; padding: 0.85rem 1.5rem; margin-top: 0.25rem; }

/* ---- conversion content: packages, portfolio actions, service navigation ---- */
.package-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}
.package-card-featured {
  border-color: hsl(226 90% 55% / 0.52);
  box-shadow: 0 0 42px -18px hsl(226 90% 55% / 0.7);
}
.package-card-featured::before {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(150deg, hsl(226 90% 55% / 0.11), transparent 42%);
}
.package-card > * { position: relative; }
.package-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid hsl(226 90% 55% / 0.3);
  border-radius: 9999px;
  color: hsl(226 90% 70%);
  background: hsl(226 90% 55% / 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.package-kicker { margin: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.package-price { margin: 0.9rem 0 1.1rem; color: hsl(226 90% 68%); font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 750; letter-spacing: -0.03em; }
.package-features { display: grid; gap: 0.7rem; margin: 1.5rem 0 1.75rem; padding: 0; list-style: none; }
.package-features li { display: flex; align-items: flex-start; gap: 0.6rem; color: hsl(210 40% 96% / 0.88); font-size: 0.88rem; line-height: 1.45; }
.package-features svg { flex: 0 0 auto; margin-top: 0.06rem; color: hsl(187 81% 58%); }
.package-cta { width: 100%; justify-content: center; margin-top: auto; }
.package-note { max-width: 62rem; }
.industry-card { min-height: 100%; }
.contact-context {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid hsl(187 81% 52% / 0.28);
  border-radius: 0.8rem;
  color: hsl(210 40% 96% / 0.88);
  background: hsl(187 81% 52% / 0.08);
  font-size: 0.84rem;
  line-height: 1.45;
}
.contact-context svg { flex: 0 0 auto; margin-top: 0.08rem; color: hsl(187 81% 62%); }

.portfolio-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.portfolio-action { flex: 1 1 10rem; justify-content: center; white-space: nowrap; }

.nav-services-menu { position: relative; }
.nav-services-summary { cursor: pointer; list-style: none; }
.nav-services-summary::-webkit-details-marker,
.mobile-services-menu summary::-webkit-details-marker { display: none; }
.nav-services-chevron { transition: transform 0.2s ease; }
.nav-services-menu[open] .nav-services-chevron { transform: rotate(180deg); }
.nav-services-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  z-index: 120;
  display: grid;
  width: min(30rem, calc(100vw - 2rem));
  gap: 0.15rem;
  padding: 0.75rem;
  transform: translateX(-50%);
  border: 1px solid hsl(228 18% 25% / 0.95);
  border-radius: 1rem;
  background: hsl(228 22% 8% / 0.98);
  box-shadow: 0 20px 44px hsl(228 35% 3% / 0.48);
}
.nav-service-menu-all,
.nav-service-menu-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem;
  border-radius: 0.75rem;
  color: hsl(210 40% 96% / 0.92);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav-service-menu-link { grid-template-columns: auto minmax(0, 1fr); }
.nav-service-menu-all:hover,
.nav-service-menu-link:hover { transform: translateX(2px); color: hsl(226 90% 74%); background: hsl(226 90% 55% / 0.11); }
.nav-service-menu-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(226 90% 55% / 0.2);
  border-radius: 0.65rem;
  color: hsl(226 90% 67%);
  background: hsl(226 90% 55% / 0.1);
}
.nav-service-menu-all strong,
.nav-service-menu-link strong { display: block; font-size: 0.82rem; }
.nav-service-menu-all small,
.nav-service-menu-link small { display: block; margin-top: 0.12rem; color: hsl(var(--muted-foreground)); font-size: 0.72rem; line-height: 1.35; }
.nav-service-menu-arrow { color: hsl(226 90% 67%); }
.nav-service-menu-divider { height: 1px; margin: 0.2rem 0.4rem; background: hsl(228 18% 20% / 0.75); }

.mobile-services-menu { display: block; width: 100%; }
.mobile-services-menu summary { position: relative; list-style: none; }
.mobile-services-chevron { margin-left: auto; transition: transform 0.2s ease; }
.mobile-services-menu[open] .mobile-services-chevron { transform: rotate(180deg); }
.mobile-service-list { display: grid; gap: 0.25rem; margin: 0.25rem 0 0.65rem 1rem; padding-left: 0.75rem; border-left: 1px solid hsl(226 90% 55% / 0.26); }
.mobile-service-link { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.4rem; color: hsl(var(--muted-foreground)); font-size: 0.9rem; text-decoration: none; }
.mobile-service-link:hover { color: hsl(226 90% 70%); }

/* ---- Product Gallery Upload Widget ---- */
.product-gallery-widget { display: flex; flex-direction: column; gap: 1.5rem; }
.gallery-upload-zone { display: flex; flex-direction: column; gap: 0.75rem; }
.gallery-upload-zone .upload-dropzone { min-height: 10rem; }
.gallery-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.gallery-image-item {
  display: flex;
  flex-direction: column;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  overflow: hidden;
  background: hsl(var(--card));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gallery-image-item:hover {
  border-color: hsl(226 90% 55% / 0.5);
  box-shadow: 0 0 12px hsl(226 90% 55% / 0.1);
}
.gallery-image-preview {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: hsl(var(--secondary));
}
.gallery-image-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(0 0% 0% / 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-image-item:hover .gallery-image-overlay {
  opacity: 1;
}
.gallery-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.5rem;
  background: hsl(0 72% 55%);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.gallery-delete-btn:hover {
  background: hsl(0 72% 60%);
  transform: scale(1.05);
}
.gallery-delete-btn:active {
  transform: scale(0.98);
}
.gallery-image-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  overflow: hidden;
}
.gallery-image-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.gallery-image-size {
  font-size: 0.75rem;
}
.gallery-empty-state {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}
.form-help-text {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .mobile-services-menu { display: none; }
}
@media (max-width: 1023px) {
  .nav-services-menu { display: none; }
}
@media (max-width: 520px) {
  .portfolio-action { flex-basis: 100%; }
}

/* ---- global keyboard access and motion safety ---- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 0.9rem;
  transform: translateY(-180%);
  border-radius: 0.65rem;
  color: hsl(var(--primary-foreground));
  background: hsl(226 90% 55%);
  box-shadow: 0 10px 30px hsl(228 22% 3% / 0.4);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid hsl(187 81% 58% / 0.95);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.mobile-nav-backdrop {
  position: fixed; inset: 0; z-index: 54;
  background: hsl(0 0% 0% / 0.55); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.28s;
}
.mobile-nav-backdrop.visible { opacity: 1; pointer-events: auto; }

body.nav-locked { overflow: hidden; }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .mobile-nav, .mobile-nav-backdrop { display: none !important; }
  .nav-desktop { display: inline-flex; }
}

/* ---- icon default sizing ---- */
.icon { flex-shrink: 0; vertical-align: middle; }

/* ---- image upload widget ---- */
.upload-widget { display: flex; flex-direction: column; gap: 0.5rem; }
.upload-preview {
  position: relative; border-radius: 0.6rem;
  border: 1px solid hsl(228 18% 18% / 0.55);
  overflow: hidden; aspect-ratio: 16 / 9; width: 100%;
}
.upload-preview-img { width: 100%; height: 100%; object-fit: cover; }
.upload-remove-btn {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: hsl(0 60% 35% / 0.85); color: #fff; border: none; cursor: pointer;
  font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  opacity: 0.85; transition: opacity 0.2s;
}
.upload-remove-btn:hover { opacity: 1; }
.upload-dropzone {
  border: 2px dashed hsl(228 18% 22% / 0.7);
  border-radius: 0.6rem; padding: 2rem 1.5rem; text-align: center;
  cursor: pointer; background: hsl(228 22% 8% / 0.5);
  transition: border-color 0.2s, background 0.2s; position: relative; overflow: hidden;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: hsl(226 90% 55% / 0.6);
  background: hsl(226 90% 55% / 0.06);
}
.upload-file-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-drop-icon { color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }
.upload-dropzone:hover .upload-drop-icon, .upload-dropzone.dragover .upload-drop-icon { color: hsl(226 90% 70%); }
.upload-drop-text { font-weight: 600; color: hsl(220 15% 92%); font-size: 0.875rem; margin-bottom: 0.3rem; }
.upload-drop-hint { font-size: 0.72rem; }
.upload-spinner { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem; }
.upload-spinner-icon { animation: spin 0.8s linear infinite; color: hsl(226 90% 65%); }
.upload-error { font-size: 0.75rem; color: hsl(0 75% 65%); padding: 0.25rem 0.5rem; border-radius: 0.4rem; background: hsl(0 60% 35% / 0.1); }

/* ---- currency switcher ---- */
.currency-switcher {
  position: relative; display: inline-flex; align-items: center;
  margin-left: 0.6rem; z-index: 50;
}
/* Hide the desktop navbar switcher on mobile; the mobile menu has its own. */
@media (max-width: 1023px) {
  #currency-switcher { display: none; }
}
.currency-current {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.7rem; border-radius: 0.6rem; cursor: pointer;
  border: 1px solid hsl(228 18% 18% / 0.55); background: hsl(228 22% 8% / 0.7);
  color: hsl(220 15% 92%); font-family: inherit; font-size: 0.78rem; font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.currency-current:hover { border-color: hsl(226 90% 55% / 0.4); background: hsl(228 22% 10% / 0.8); }
.currency-code { min-width: 2.5em; text-align: center; }
.currency-chevron { color: hsl(var(--muted-foreground)); transition: transform 0.25s; }
.currency-current[aria-expanded="true"] .currency-chevron { transform: rotate(180deg); }
.currency-list {
  position: absolute; top: calc(100% + 0.45rem); right: 0;
  min-width: 14rem; list-style: none; padding: 0.3rem; margin: 0;
  background: hsl(228 22% 6% / 0.98); border: 1px solid hsl(228 18% 18% / 0.7);
  border-radius: 0.75rem; box-shadow: 0 16px 40px -14px hsl(0 0% 0% / 0.7);
  backdrop-filter: blur(18px) saturate(1.5);
  display: none; flex-direction: column; gap: 0.15rem; z-index: 51;
}
.currency-list[aria-hidden="false"] { display: flex; }
.currency-option {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.75rem; border-radius: 0.55rem; cursor: pointer;
  font-size: 0.8rem; font-weight: 500; color: hsl(220 15% 88%);
  transition: background 0.15s, color 0.15s;
}
.currency-option:hover { background: hsl(226 90% 55% / 0.12); color: hsl(226 90% 75%); }

.inline-icon { display: inline-flex; flex-shrink: 0; vertical-align: -0.125em; width: 1em; height: 1em; }
.inline-icon-inline { display: inline-flex; vertical-align: -2px; margin-right: 0.2rem; }
