/* ==========================================================================
   Portfolio Platform — Premium 3D Animated Portfolio & Digital Services
   Complete design system (single stylesheet)
   Tokens mirror docs/DESIGN.md exactly.
   ========================================================================== */

/* Fonts are loaded via <link> in each page's <head> (with preconnect + display=swap) */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg-0: #080b10;
  --bg-1: #10151c;
  --bg-2: #171e27;
  --surface: rgba(255, 255, 255, .05);
  --glass: rgba(16, 22, 48, .55);
  --glass-border: rgba(140, 160, 255, .16);
  --text: #e8ecf8;
  --text-dim: #9aa3c7;
  --text-faint: #9aa3c7;
  --violet: #7c3aed;
  --indigo: #4f46e5;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #22d3ee;
  --grad: #0e7490;
  --grad-soft: rgba(6, 182, 212, .12);
  --glow: 0 16px 40px rgba(0, 0, 0, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Supporting tokens (derived) */
  --surface-strong: rgba(255, 255, 255, .08);
  --glass-strong: rgba(16, 22, 48, .88);
  --glow-sm: 0 8px 24px rgba(6, 182, 212, .12);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .38);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #22d3ee;
  --nav-height: 72px;
  --transition: .28s cubic-bezier(.4, 0, .2, 1);

  color-scheme: dark;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(.94rem, .18vw + .9rem, 1rem);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }

::selection { background: rgba(6, 182, 212, .35); color: #ffffff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Thin dark scrollbar */
html { scrollbar-width: thin; scrollbar-color: #232a52 var(--bg-0); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #232a52; border-radius: 8px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #323b6e; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; }
.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.text-dim { color: var(--text-dim); }
.text-faint { color: var(--text-faint); }
.text-teal { color: var(--teal); }
.visually-hidden, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 1300;
  background: var(--grad); color: #fff; padding: .65rem 1.25rem;
  border-radius: var(--radius-sm); font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 3rem; }
.section-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(34, 211, 238, .32);
  background: rgba(34, 211, 238, .06); padding: .35rem .95rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
.section-sub { color: var(--text-dim); max-width: 62ch; margin-top: .85rem; font-size: 1.05rem; }
.gradient-text {
  color: var(--accent-strong);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* Light alternating sections (premium contrast) */
.section-light { background: #f5f7ff; color: #141a33; }
.section-light .section-sub, .section-light .text-dim { color: #4a527a; }
.section-light .section-tag { color: #0e7490; border-color: rgba(14, 116, 144, .3); background: rgba(14, 116, 144, .07); }
.section-light .glass-card { background: #ffffff; border-color: rgba(20, 26, 51, .08); box-shadow: 0 18px 45px rgba(20, 26, 51, .08); }
.section-light .glass-card:hover { box-shadow: 0 26px 60px rgba(20, 26, 51, .14); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .8rem 1.6rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition), filter var(--transition);
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .3); filter: brightness(1.08); color: #fff; }

.btn-ghost {
  background: var(--surface); border-color: var(--glass-border); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, .45); color: #fff; box-shadow: 0 0 26px rgba(6, 182, 212, .18); }

.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 0 22px rgba(239, 68, 68, .3); }
.btn-danger:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }

.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 0 22px rgba(16, 185, 129, .3); }
.btn-success:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }

.btn-sm { padding: .48rem 1.05rem; font-size: .85rem; gap: .4rem; }
.btn-block { width: 100%; }
.btn-icon {
  width: 42px; height: 42px; padding: 0; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--glass-border); color: var(--text-dim);
  transition: var(--transition);
}
.btn-icon:hover { color: #fff; border-color: rgba(34, 211, 238, .45); }
.btn-icon.btn-icon-danger:hover { color: #fff; border-color: rgba(248, 113, 113, .5); background: rgba(239, 68, 68, .15); }

/* ---------- 5. Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(4, 6, 15, .78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.nav-inner { height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.nav-logo img { width: 38px; height: 38px; border-radius: 10px; }
.site-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.nav-logo:hover .site-name { color: #fff; }

.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .8rem; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 500; color: var(--text-dim);
  position: relative; transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link::after {
  content: ''; position: absolute; left: 18%; right: 18%; bottom: 2px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left center;
  transition: transform var(--transition);
}
.nav-link:hover::after { transform: scaleX(.55); }
.nav-link.active { color: #fff; }
.nav-link.active::after { transform: scaleX(1); }
.nav-caret { font-size: .68rem; transition: transform var(--transition); }
.nav-services.open .nav-caret, .nav-services:hover .nav-caret { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-cta { padding: .5rem 1.15rem; font-size: .85rem; }

/* Services dropdown (desktop) */
.nav-services { position: relative; }
.services-dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translate(-50%, 14px);
  width: min(660px, 92vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem;
  padding: .85rem; border-radius: var(--radius);
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--glow), var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1001;
}
.services-dropdown::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; /* hover bridge */
}
.nav-services:hover .services-dropdown,
.nav-services:focus-within .services-dropdown,
.nav-services.open .services-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.services-dropdown-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .65rem; border-radius: var(--radius-sm); transition: background var(--transition);
}
.services-dropdown-item:hover, .services-dropdown-item:focus-visible { background: var(--surface); }
.services-dropdown-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: .95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.services-dropdown-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.services-dropdown-name { font-size: .9rem; font-weight: 600; color: var(--text); }
.services-dropdown-desc { font-size: .72rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.services-dropdown-all {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem; margin-top: .15rem; border-top: 1px solid var(--glass-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .85rem; font-weight: 600; color: var(--teal); transition: background var(--transition);
}
.services-dropdown-all:hover { background: rgba(34, 211, 238, .07); }

/* Hamburger */
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border); background: var(--surface);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: border-color var(--transition);
}
.nav-toggle:hover { border-color: rgba(34, 211, 238, .4); }
.nav-toggle-bar {
  display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-toggle.active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel + overlay */
.mobile-panel {
  position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 999;
  background: rgba(7, 9, 25, .96); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--glass-border);
  max-height: calc(100vh - var(--nav-height)); overflow-y: auto;
  transform-origin: top; animation: panelSlideDown .3s ease;
}
.mobile-panel[hidden] { display: none; }
@keyframes panelSlideDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
.mobile-panel-inner { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 4%; }
.mobile-link {
  display: flex; align-items: center; gap: .65rem; width: 100%;
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 500; color: var(--text-dim); text-align: left;
  transition: background var(--transition), color var(--transition);
}
.mobile-link:hover { background: var(--surface); color: #fff; }
.mobile-link.active { background: var(--grad-soft); color: #fff; }
.mobile-services-toggle { justify-content: space-between; }
.mobile-services-toggle.open .nav-caret { transform: rotate(180deg); }
.mobile-services-list {
  display: flex; flex-direction: column; gap: .1rem;
  margin: .15rem 0 .35rem .6rem; padding-left: .85rem;
  border-left: 1px solid var(--glass-border);
}
.mobile-services-list[hidden] { display: none; }
.mobile-sublink { font-size: .92rem; padding: .6rem .9rem; }
.mobile-sublink i { width: 1.4rem; text-align: center; color: var(--teal); }
.mobile-sublink-all { color: var(--teal); font-weight: 600; }
.mobile-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--glass-border); }
.nav-overlay {
  position: fixed; inset: 0; top: var(--nav-height); z-index: 998;
  background: rgba(2, 4, 12, .62); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  animation: fadeIn .25s ease;
}
.nav-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 6. Glass card ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.glass-card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: rgba(140, 160, 255, .3); }
.glass-card-flush { padding: 0; overflow: hidden; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 92vh; overflow: hidden;
  display: flex; align-items: center;
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
}
.hero-canvas-wrap, .hero canvas#heroCanvas, .hero canvas.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.hero canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 0; }
.hero-art {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(640px, 58vw); opacity: .65; z-index: 0; pointer-events: none;
  filter: saturate(1.05);
}
.hero-content { position: relative; z-index: 1; max-width: 840px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .07);
  color: var(--teal); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 1.4rem;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); }
  50% { box-shadow: 0 0 0 6px rgba(34, 211, 238, .08); }
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 700;
  line-height: 1.04; letter-spacing: -.03em;
}
.hero-sub {
  margin-top: 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim); max-width: 56ch;
}
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 3rem; }
.hero-stat { display: flex; flex-direction: column; gap: .15rem; }
.stat-counter, .counter {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em;
  color: var(--accent-strong); background: none; -webkit-text-fill-color: currentColor;
}
.hero-stat-label { font-size: .82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; }
.scroll-indicator {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1;
  color: var(--text-faint); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.scroll-indicator::after {
  content: ''; width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- 8. Grids ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 9. Service cards ---------- */
.service-card { display: flex; flex-direction: column; gap: .85rem; position: relative; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: 1.35rem;
  box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--text-dim); font-size: .93rem; }
.explore-link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--teal); font-weight: 600; font-size: .9rem; margin-top: auto;
  transition: gap var(--transition);
}
.explore-link:hover { gap: .8rem; color: #67e8f9; }

/* ---------- 10. Portfolio ---------- */
.filter-bar { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-pill {
  padding: .45rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--glass-border);
  transition: var(--transition);
}
.filter-pill:hover { color: #fff; border-color: rgba(34, 211, 238, .4); }
.filter-pill.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow-sm); }

.portfolio-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.portfolio-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.portfolio-card:hover .portfolio-media img { transform: scale(1.06); }
.portfolio-category {
  position: absolute; top: .8rem; left: .8rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
  background: rgba(4, 6, 15, .72); border: 1px solid var(--glass-border); color: var(--teal);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.portfolio-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
.portfolio-body h3 { font-size: 1.12rem; }
.portfolio-body p { color: var(--text-dim); font-size: .88rem; }
.portfolio-tech { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .35rem; }
.portfolio-link { margin-top: .6rem; }
.portfolio-case-role { color: var(--text-dim); font-size: .82rem; }
.portfolio-case-result { color: var(--accent-strong); font-size: .88rem; font-weight: 600; }
.portfolio-case-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.portfolio-case-tags span { border: 1px solid var(--glass-border); border-radius: 999px; padding: .18rem .55rem; color: var(--text-dim); font-size: .7rem; }

/* ---------- 11. Pricing cards ---------- */
.pricing-card { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; padding-top: 2.2rem; }
.pricing-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--glow);
  transform: scale(1.04);
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-6px); }
.tier-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  padding: .35rem 1.1rem; border-radius: 999px; box-shadow: var(--glow-sm);
}
.pricing-tier { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.pricing-price { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; margin: .6rem 0 .1rem; }
.pricing-price span { font-size: .9rem; color: var(--text-faint); font-family: var(--font-body); font-weight: 500; }
.pricing-desc { color: var(--text-dim); font-size: .9rem; margin-bottom: 1.1rem; }
.pricing-features { display: flex; flex-direction: column; gap: .55rem; text-align: left; width: 100%; margin-bottom: 1.5rem; }
.pricing-features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--text-dim); }
.pricing-features i { color: var(--success); margin-top: .2rem; }
.pricing-features li.is-muted { color: var(--text-faint); }
.pricing-features li.is-muted i { color: var(--text-faint); }

/* ---------- 12. FAQ / accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: .9rem; max-width: 860px; }
.faq-item, .accordion-item {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color var(--transition);
}
.faq-item.open, .accordion-item.open { border-color: rgba(34, 211, 238, .35); }
.faq-question, .accordion-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.35rem; text-align: left;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--text);
  transition: color var(--transition);
}
.faq-question:hover, .accordion-toggle:hover { color: #fff; }
.faq-icon, .accordion-icon { color: var(--teal); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon, .accordion-item.open .accordion-icon { transform: rotate(45deg); }
.faq-answer, .accordion-panel {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.faq-answer-inner, .accordion-panel-inner { padding: 0 1.35rem 1.15rem; color: var(--text-dim); font-size: .95rem; }

/* ---------- 13. Forms ---------- */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-dim); margin-bottom: .4rem; letter-spacing: .02em; }
.form-label .req { color: var(--danger); }
.form-control {
  width: 100%; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: .75rem 1rem; color: var(--text); font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-control::placeholder { color: var(--text-faint); }
.form-control:hover { border-color: rgba(140, 160, 255, .3); }
.form-control:focus { outline: none; border-color: var(--cyan); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 3px rgba(6, 182, 212, .18); }
select.form-control {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.05em;
  padding-right: 2.4rem;
}
select.form-control option { background: var(--bg-2); color: var(--text); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-hint { display: block; font-size: .76rem; color: var(--text-faint); margin-top: .35rem; }
.form-error { display: none; font-size: .8rem; color: var(--danger); margin-top: .38rem; }
.has-error .form-error { display: block; }
.has-error .form-control { border-color: rgba(248, 113, 113, .55); }
.has-error .form-control:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, .18); }
.form-check { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text-dim); }
.form-check input { accent-color: var(--violet); width: 17px; height: 17px; }

/* ---------- 14. Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .73rem; font-weight: 600; letter-spacing: .03em;
  padding: .28rem .7rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { color: #fbbf24; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); }
.badge-confirmed { color: #60a5fa; background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .3); }
.badge-in_progress, .badge-in-progress { color: #22d3ee; background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .3); }
.badge-revision_requested, .badge-revision-requested { color: #a78bfa; background: rgba(167, 139, 250, .12); border-color: rgba(167, 139, 250, .32); }
.badge-completed { color: #34d399; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .3); }
.badge-cancelled { color: #f87171; background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .3); }
.badge-unpaid { color: #cbd5e1; background: rgba(148, 163, 184, .12); border-color: rgba(148, 163, 184, .3); }
.badge-pending-pay, .badge-payment_pending, .badge-payment-pending { color: #fb923c; background: rgba(251, 146, 60, .12); border-color: rgba(251, 146, 60, .32); }
.badge-paid { color: #34d399; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .3); }
.badge-failed { color: #f87171; background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .3); }
.badge-refunded { color: #a78bfa; background: rgba(167, 139, 250, .12); border-color: rgba(167, 139, 250, .32); }

/* ---------- 15. Tables ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--glass-border);
  border-radius: var(--radius); background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.data-table { width: 100%; min-width: 680px; }
.data-table th, .data-table td { padding: .8rem 1rem; text-align: left; font-size: .88rem; }
.data-table thead th {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .03);
}
.data-table tbody tr { border-bottom: 1px solid rgba(140, 160, 255, .08); transition: background var(--transition); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(140, 160, 255, .06); }
.table-actions { display: flex; gap: .35rem; }
.table-empty { text-align: center; color: var(--text-faint); padding: 2.5rem 1rem; }

/* ---------- 16. Stat cards ---------- */
.stat-card { display: flex; flex-direction: column; gap: .3rem; }
.stat-card-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); display: flex; align-items: center; gap: .5rem; }
.stat-card-value { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -.01em; }
.stat-card-delta { font-size: .78rem; display: inline-flex; align-items: center; gap: .3rem; }
.stat-card-delta.up { color: var(--success); }
.stat-card-delta.down { color: var(--danger); }

/* ---------- 17. Dashboard layout ---------- */
.dashboard-layout { min-height: 100vh; background: var(--bg-1); }
.dash-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 900;
  background: var(--bg-1); border-right: 1px solid var(--glass-border);
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.1rem .9rem; overflow-y: auto;
  transition: transform var(--transition);
}
.dash-logo { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem 1rem; border-bottom: 1px solid var(--glass-border); margin-bottom: .6rem; }
.dash-logo img { width: 36px; height: 36px; border-radius: 9px; }
.dash-logo .site-name { font-size: 1.05rem; }
.sidebar-section-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-faint); padding: .75rem .75rem .3rem;
}
.dash-nav { display: flex; flex-direction: column; gap: .2rem; }
.dash-nav-link, .sidebar-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .68rem .8rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--text-dim);
  border: 1px solid transparent; transition: var(--transition);
}
.dash-nav-link i, .sidebar-link i { width: 1.2rem; text-align: center; font-size: .95rem; }
.dash-nav-link:hover, .sidebar-link:hover { background: var(--surface); color: var(--text); }
.dash-nav-link.active, .sidebar-link.active {
  background: var(--grad); color: #fff;
  box-shadow: var(--glow-sm);
}
.dash-logout {
  margin-top: auto; display: flex; align-items: center; gap: .7rem;
  padding: .7rem .8rem; border-radius: var(--radius-sm);
  color: #fca5a5; font-size: .9rem; font-weight: 500; border: 1px solid rgba(248, 113, 113, .25);
  background: rgba(239, 68, 68, .07); width: 100%; text-align: left; transition: var(--transition);
}
.dash-logout:hover { background: rgba(239, 68, 68, .15); color: #fff; }
.dashboard-main { margin-left: 260px; padding: 1.25rem 1.5rem 3rem; min-height: 100vh; }
.dash-topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem .25rem 1.1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--glass-border);
}
.dash-hamburger { display: none; }
.dash-page-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.dash-topbar-spacer { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.status-badge {
  display: inline-flex; align-items: center; max-width: 100%; padding: .25rem .55rem;
  border: 1px solid rgba(148, 163, 184, .28); border-radius: 999px;
  color: #cbd5e1; background: rgba(148, 163, 184, .1);
  font-size: .68rem; font-weight: 700; line-height: 1.25; text-transform: capitalize; white-space: nowrap;
}
.status-completed, .status-paid, .status-active { color: #6ee7b7; border-color: rgba(110, 231, 183, .35); background: rgba(16, 185, 129, .1); }
.status-in_progress, .status-confirmed { color: #7dd3fc; border-color: rgba(125, 211, 252, .35); background: rgba(56, 189, 248, .1); }
.status-pending, .status-payment_pending, .status-revision_requested { color: #fcd34d; border-color: rgba(252, 211, 77, .35); background: rgba(245, 158, 11, .1); }
.status-cancelled, .status-failed, .status-refunded, .status-suspended { color: #fca5a5; border-color: rgba(252, 165, 165, .35); background: rgba(239, 68, 68, .1); }
.status-open { color: #67e8f9; border-color: rgba(103, 232, 249, .35); background: rgba(6, 182, 212, .1); }
.status-closed { color: #c4b5fd; border-color: rgba(196, 181, 253, .35); background: rgba(139, 92, 246, .1); }
.ticket-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .8rem; width: 100%;
  padding: .8rem .9rem; border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  color: var(--text); background: var(--surface); text-align: left; font: inherit; cursor: pointer;
}
.ticket-card:hover { border-color: rgba(34, 211, 238, .4); }
.ticket-card small, .ticket-card p { grid-column: 1 / -1; margin: 0; color: var(--text-dim); }
.ticket-card p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rich-editor { min-height: 260px; }
.rich-editor:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.admin-profile-menu { position: relative; }
.admin-profile-dropdown {
  position: absolute; z-index: 1200; top: calc(100% + .55rem); right: 0; min-width: 220px;
  display: flex; flex-direction: column; gap: .25rem; padding: .7rem;
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  background: var(--bg-2); box-shadow: var(--shadow-lg);
}
.admin-profile-dropdown[hidden] { display: none; }
.admin-profile-dropdown strong, .admin-profile-dropdown span { padding: .2rem .4rem; overflow-wrap: anywhere; }
.admin-profile-dropdown span { color: var(--text-faint); font-size: .78rem; }
.admin-profile-dropdown button { padding: .55rem .6rem; border: 0; border-radius: var(--radius-sm); text-align: left; background: transparent; color: var(--text); cursor: pointer; }
.admin-profile-dropdown button:hover { background: var(--surface); color: var(--teal); }
.dash-bell { position: relative; }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 .3rem;
  border-radius: 999px; background: #ef4444; color: #fff;
  font-size: .62rem; font-weight: 700; line-height: 18px; text-align: center;
}
.notif-badge[hidden] { display: none; }

/* ---------- 18. Empty states & skeletons ---------- */
.empty-state {
  text-align: center; padding: 3.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.empty-state-icon {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid var(--glass-border);
  color: var(--teal); font-size: 1.7rem; margin-bottom: .6rem;
}
.empty-state-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.empty-state-text { color: var(--text-dim); font-size: .92rem; max-width: 46ch; }
.empty-state .btn { margin-top: 1rem; }

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.1) 37%, rgba(255,255,255,.04) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.skeleton-text { height: 1em; margin-bottom: .5rem; }
.skeleton-title { height: 1.6em; width: 60%; margin-bottom: .75rem; }
.skeleton-card { height: 220px; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-img { aspect-ratio: 16 / 9; }

/* ---------- 19. Toasts ---------- */
.toast-container {
  position: fixed; top: 1.1rem; right: 1.1rem; z-index: 1200;
  display: flex; flex-direction: column; gap: .6rem; max-width: min(380px, calc(100vw - 2rem));
}
.toast {
  display: flex; align-items: center; gap: .65rem;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  border-left: 3px solid var(--info);
  border-radius: var(--radius-sm); padding: .7rem .85rem;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-size: .88rem; animation: toastSlideIn .32s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: translateX(0); } }
.toast.toast-leaving { opacity: 0; transform: translateX(48px); transition: .3s ease; }
.toast i.fa-circle-check, .toast-success > i { color: var(--success); }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-error > i { color: var(--danger); }
.toast-info { border-left-color: var(--info); }
.toast-info > i { color: var(--info); }
.toast-msg { flex: 1; color: var(--text); }
.toast-close { color: var(--text-faint); padding: .25rem; border-radius: 6px; transition: color var(--transition); }
.toast-close:hover { color: #fff; }

/* ---------- 20. Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(2, 4, 12, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  border-radius: var(--radius); width: min(560px, 100%);
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(26px) scale(.96); transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-lg { width: min(760px, 100%); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; background: var(--glass-strong); z-index: 1; border-radius: var(--radius) var(--radius) 0 0;
}
.modal-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.modal-body { padding: 1.35rem 1.4rem; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
  padding: 1rem 1.4rem; border-top: 1px solid var(--glass-border);
  position: sticky; bottom: 0; background: var(--glass-strong); border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- 21. Pagination ---------- */
.pagination { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.page-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--glass-border);
  color: var(--text-dim); font-size: .88rem; font-weight: 600; transition: var(--transition);
}
.page-btn:hover { color: #fff; border-color: rgba(34, 211, 238, .4); }
.page-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow-sm); }
.page-btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- 22. Chips & tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; padding: .3rem .75rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--glass-border); color: var(--text-dim);
}
.tag {
  display: inline-flex; align-items: center;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 6px;
  background: var(--grad-soft); color: var(--teal); border: 1px solid rgba(34, 211, 238, .22);
}
.kbd {
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: .8em;
  background: var(--bg-2); border: 1px solid rgba(255, 255, 255, .14); border-bottom-width: 2px;
  border-radius: 6px; padding: .1rem .42rem; color: var(--text);
}
.avatar-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 600; font-size: .85rem;
  letter-spacing: .05em; text-transform: uppercase; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .25);
}
.avatar-circle-sm { width: 34px; height: 34px; font-size: .72rem; }
.avatar-circle-lg { width: 72px; height: 72px; font-size: 1.25rem; }
.avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-border); }

/* ---------- 23. Tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--glass-border); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn {
  padding: .7rem 1.15rem; font-size: .9rem; font-weight: 500; color: var(--text-dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--cyan); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- 24. Testimonials ---------- */
.testimonial-card { display: flex; flex-direction: column; gap: 1rem; }
.stars { color: #fbbf24; display: inline-flex; gap: .15rem; font-size: .95rem; }
.testimonial-review { color: var(--text-dim); font-size: .95rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.testimonial-author-info { display: flex; flex-direction: column; }
.testimonial-author-name { font-weight: 600; font-size: .92rem; }
.testimonial-author-role { color: var(--text-faint); font-size: .78rem; }

/* ---------- 25. Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, var(--violet), var(--blue), var(--cyan)); opacity: .55; border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 1.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-2); border: 3px solid var(--cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, .45);
}
.timeline-time { font-size: .72rem; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; }
.timeline-title { font-weight: 600; font-size: .95rem; margin: .15rem 0 .1rem; }
.timeline-note { color: var(--text-dim); font-size: .88rem; }

/* ---------- 26. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1150;
  background: rgba(2, 4, 12, .88); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .75rem; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-caption { color: var(--text-dim); font-size: .88rem; }
.lightbox-close {
  position: absolute; top: 1.1rem; right: 1.4rem; font-size: 1.6rem; color: var(--text-dim);
  width: 48px; height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { color: #fff; }

/* ---------- 27. Auth split ---------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: var(--bg-0); }
.auth-art {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1a1040 0%, #0d1440 45%, #04263a 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 3.5rem; gap: 1.25rem; border-right: 1px solid var(--glass-border);
}
.auth-art img.hero-art-inline, .auth-art .auth-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth-art-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.1rem; max-width: 480px; }
.auth-art-quote { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.3; }
.auth-art-foot { color: var(--text-dim); font-size: .88rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.auth-form-inner { width: 100%; max-width: 440px; }
.auth-form-title { font-size: 1.7rem; font-weight: 700; margin-bottom: .35rem; }
.auth-form-sub { color: var(--text-dim); font-size: .92rem; margin-bottom: 1.6rem; }
.auth-alt { margin-top: 1.25rem; text-align: center; font-size: .9rem; color: var(--text-dim); }
.auth-alt a { color: var(--teal); font-weight: 600; }

/* ---------- 28. File drop zone ---------- */
.file-drop {
  border: 2px dashed rgba(140, 160, 255, .3); border-radius: var(--radius);
  padding: 2.2rem 1.5rem; text-align: center; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  transition: border-color var(--transition), background var(--transition);
}
.file-drop i { font-size: 1.8rem; color: var(--teal); }
.file-drop:hover, .file-drop.dragover { border-color: var(--cyan); background: rgba(6, 182, 212, .06); }
.file-drop small { color: var(--text-faint); font-size: .76rem; }

/* ---------- 29. Progress & counters ---------- */
.progress-track { height: 10px; border-radius: 999px; background: var(--surface); overflow: hidden; border: 1px solid rgba(140,160,255,.08); }
.progress-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .6s ease; box-shadow: 0 0 12px rgba(99,102,241,.5); }

/* ---------- 30. Admin helpers ---------- */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 1.5rem; align-items: start; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.media-item {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--glass-border); background: var(--bg-2);
}
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: rgba(4, 6, 15, .68); opacity: 0; transition: opacity var(--transition);
}
.media-item:hover .media-item-overlay, .media-item:focus-within .media-item-overlay { opacity: 1; }
.admin-toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-toolbar .form-control { width: auto; min-width: 220px; }

/* ---------- 31. Toggle switch ---------- */
.toggle-switch { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; user-select: none; }
.toggle-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-slider {
  width: 46px; height: 26px; border-radius: 999px; background: var(--surface-strong);
  border: 1px solid var(--glass-border); position: relative; transition: var(--transition); flex-shrink: 0;
}
.toggle-slider::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.toggle-switch input:checked + .toggle-slider { background: var(--grad); border-color: transparent; }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(20px); }
.toggle-switch input:focus-visible + .toggle-slider { outline: 2px solid var(--cyan); outline-offset: 3px; }
.toggle-label { font-size: .9rem; color: var(--text-dim); }

/* ---------- 32. Footer ---------- */
.footer { background: var(--bg-1); border-top: 1px solid var(--glass-border); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-logo { margin-bottom: .85rem; }
.footer-tagline { color: var(--text-dim); font-size: .9rem; max-width: 34ch; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.footer-social-link {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--glass-border); color: var(--text-dim);
  transition: var(--transition);
}
.footer-social-link:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-3px); box-shadow: var(--glow-sm); }
.footer-heading {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: .9rem;
}
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { color: var(--text-dim); font-size: .9rem; transition: color var(--transition), padding-left var(--transition); }
.footer-links a:hover { color: var(--teal); padding-left: .3rem; }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text-dim); font-size: .88rem; }
.footer-contact i { color: var(--teal); width: 1.1rem; text-align: center; margin-top: .15rem; }
.footer-contact a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--glass-border); margin-top: 3rem; padding: 1.15rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom-inner p { color: var(--text-faint); font-size: .82rem; }
.footer-payments { color: var(--text-faint); font-size: .8rem; letter-spacing: .05em; font-weight: 500; }

/* ---------- 33. Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1150;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-sm); opacity: 0; visibility: hidden;
  transform: translateY(14px); transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--glow); }

/* ---------- 34. Alerts & notices ---------- */
.alert {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .9rem;
  border: 1px solid; margin-bottom: 1rem;
}
.alert-info { color: #7dd3fc; border-color: rgba(125, 211, 252, .3); background: rgba(125, 211, 252, .07); }
.alert-success { color: #6ee7b7; border-color: rgba(110, 231, 183, .3); background: rgba(110, 231, 183, .07); }
.alert-warning { color: #fcd34d; border-color: rgba(252, 211, 77, .3); background: rgba(252, 211, 77, .07); }
.alert-danger { color: #fca5a5; border-color: rgba(252, 165, 165, .3); background: rgba(252, 165, 165, .07); }

/* ---------- 35. Print ---------- */
.print-only { display: none; }
@media print {
  .no-print, .navbar, .mobile-panel, .nav-overlay, .footer,
  .dash-sidebar, .dash-topbar, .back-to-top, .toast-container,
  .modal-overlay, .lightbox, .nav-actions { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff !important; color: #000 !important; }
  .dashboard-main { margin-left: 0 !important; padding: 0 !important; }
  .glass-card, .table-wrap, .modal { background: #fff !important; border: 1px solid #ddd !important; box-shadow: none !important; }
  .container, .dashboard-main { width: 100% !important; max-width: 100% !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .receipt, .receipt-card {
    background: #fff !important; color: #000 !important;
    border: 1px solid #ccc !important; box-shadow: none !important;
  }
}

/* ---------- 36. Responsive breakpoints ---------- */
@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-art { opacity: .35; right: -25%; width: 80vw; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-sidebar { transform: translateX(-105%); box-shadow: var(--shadow-lg); }
  .dash-sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .dash-hamburger { display: inline-flex; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 2.5rem); padding-bottom: 5rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .services-dropdown { grid-template-columns: 1fr; max-height: 70vh; overflow-y: auto; }
  .admin-toolbar .form-control { min-width: 0; flex: 1 1 160px; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.15rem, 9vw, 2.6rem); }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .btn { padding: .72rem 1.25rem; }
  .glass-card { padding: 1.25rem; }
  .stat-card-value { font-size: 1.5rem; }
  .container { width: 94%; }
  .toast-container { right: .75rem; left: .75rem; max-width: none; }
}

/* ---------- 37. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   9. Icon sprite (replaces Font Awesome) � sized to inherit font-size
   ========================================================================== */
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: 0 0 auto; overflow: visible; }
.icon-spin { animation: iconSpin 1s linear infinite; }
@keyframes iconSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .icon-spin { animation: none; } }

/* ==========================================================================
   10. Single-accent system + page fade transitions
   ========================================================================== */
:root { --accent: #06b6d4; --accent-soft: rgba(6, 182, 212, .14); --accent-strong: #22d3ee; }
body { transition: opacity .25s ease; }
body.page-fading { opacity: 0; }
.accent { color: var(--accent); }

/* Skip link targets */
main, [id="main"] { scroll-margin-top: calc(var(--nav-height) + 16px); }

/* Subtle film grain (hero only) � SVG noise, very low opacity */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ==========================================================================
   11. Marquee strip (skills / tools) � CSS-only, pauses on hover
   ========================================================================== */
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: rgba(10, 14, 33, .6); padding: .8rem 0; }
.marquee-track { display: inline-flex; gap: 2.4rem; padding-inline: 1.2rem; animation: marqueeScroll 36s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { color: var(--text-dim); font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .04em; display: inline-flex; align-items: center; gap: .6rem; }
.marquee-item .icon { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; transform: none; } }

/* ==========================================================================
   12. Custom cursor follower (desktop, pointer:fine only)
   ========================================================================== */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 1400; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.cursor-dot { width: 7px; height: 7px; background: var(--accent-strong); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid rgba(34, 211, 238, .55); transition: width .2s ease, height .2s ease, border-color .2s ease; }
.cursor-ring.cursor-hover { width: 52px; height: 52px; border-color: rgba(34, 211, 238, .9); }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor-dot, .cursor-ring { display: none; } }

/* ==========================================================================
   13. Hero split-text words
   ========================================================================== */
.split-word { display: inline-block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.split-word > span { display: inline-block; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .split-word > span { transform: none !important; opacity: 1 !important; } }

/* ==========================================================================
   14. Navbar scroll behavior
   ========================================================================== */
.navbar { transition: transform .35s ease, background .3s ease, backdrop-filter .3s ease; }
.navbar.nav-hidden { transform: translateY(-100%); }

/* Skeletons sized like real cards */
.skeleton-text { height: 1em; width: 60%; margin-top: .6rem; border-radius: 6px; }
.skeleton-img  { height: 180px; width: 100%; }

/* ==========================================================================
   15. Live chat widget (Crisp-style, site brand)
   ========================================================================== */
.pp-chat { position: fixed; right: 22px; bottom: 22px; z-index: 1250; font-family: var(--font-body); }
.pp-chat-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #04060f;
  background: var(--grad, linear-gradient(135deg,#06b6d4,#22d3ee));
  box-shadow: 0 10px 32px rgba(6,182,212,.45), 0 0 0 4px rgba(6,182,212,.18);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.pp-chat-fab:hover { transform: scale(1.07); box-shadow: 0 14px 40px rgba(6,182,212,.55), 0 0 0 6px rgba(6,182,212,.22); }
.pp-chat-fab:focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }
.pp-chat-fab .icon { font-size: 1.5rem; width: 1.5rem; height: 1.5rem; }
.pp-chat-badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 .35rem;
  border-radius: 99px; background: #f87171; color: #fff; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg-0, #04060f);
}
.pp-chat-panel {
  position: absolute; right: 0; bottom: 74px; width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-1, #0a0e21); border: 1px solid var(--glass-border);
  border-radius: 20px; box-shadow: 0 28px 70px rgba(0,0,0,.55);
  animation: ppChatIn .22s cubic-bezier(.22,.61,.36,1);
  transform-origin: bottom right;
}
@keyframes ppChatIn { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: none; } }
.pp-chat-header {
  display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); color: #fff;
}
.pp-chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid rgba(255,255,255,.65); flex: 0 0 auto; }
.pp-chat-head-text { flex: 1; min-width: 0; }
.pp-chat-head-text strong { display: block; font-size: .95rem; letter-spacing: .02em; }
.pp-chat-status { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: rgba(255,255,255,.92); }
.pp-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.9); }
.pp-chat-close { color: rgba(255,255,255,.9); border-radius: 8px; padding: .35rem; display: grid; place-items: center; }
.pp-chat-close:hover { background: rgba(255,255,255,.18); color: #fff; }
.pp-chat-messages { flex: 1; overflow-y: auto; padding: .9rem .8rem; display: flex; flex-direction: column; gap: .45rem; }
.pp-chat-row { display: flex; }
.pp-chat-row.from-visitor { justify-content: flex-end; }
.pp-chat-row.from-agent { justify-content: flex-start; }
.pp-chat-row.from-admin { justify-content: flex-start; }
.pp-chat-bubble {
  max-width: 78%; min-width: 88px; padding: .55rem .75rem; border-radius: 14px; font-size: .87rem; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; color: var(--text, #e8ecf8);
}
.from-visitor .pp-chat-bubble { background: linear-gradient(135deg, #0e7490, #06b6d4); color: #03252c; border-bottom-right-radius: 4px; }
.from-agent .pp-chat-bubble { background: rgba(255,255,255,.07); border: 1px solid var(--glass-border); border-bottom-left-radius: 4px; }
.from-admin .pp-chat-bubble { background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(6,182,212,.4)); border: 1px solid rgba(140,160,255,.4); color: #fff; border-bottom-left-radius: 4px; }
.pp-chat-time { font-size: .62rem; color: var(--text-faint, #8b93b8); margin-top: .2rem; text-align: right; }
.from-agent .pp-chat-time { text-align: left; }
.from-admin .pp-chat-time { text-align: left; }
.pp-chat-quick { display: flex; flex-wrap: wrap; gap: .35rem; padding: .1rem .8rem .55rem; }
.pp-chat-chip {
  font-size: .72rem; font-weight: 600; color: #22d3ee; background: rgba(6,182,212,.12);
  border: 1px solid rgba(6,182,212,.35); border-radius: 999px; padding: .32rem .7rem; cursor: pointer;
}
.pp-chat-chip:hover { background: rgba(6,182,212,.22); }
.pp-chat-inputbar { display: flex; gap: .5rem; padding: .65rem .7rem; border-top: 1px solid var(--glass-border); background: var(--bg-2, #101430); }
.pp-chat-inputbar input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: .6rem 1rem; color: var(--text); font-size: .9rem;
}
.pp-chat-inputbar input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
.pp-chat-send { width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad, linear-gradient(135deg,#06b6d4,#22d3ee)); color: #04060f; display: grid; place-items: center; }
.pp-chat-send:hover { filter: brightness(1.08); }
@media (max-width: 520px) {
  .pp-chat { right: 0; bottom: 0; }
  .pp-chat-panel { position: fixed; inset: 0; width: 100%; height: 100dvh; border-radius: 0; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .pp-chat-panel { animation: none; } .pp-chat-fab { transition: none; } }

/* Hidden attribute must always win over author display rules (fixes chat panel/admin panels not hiding) */
[hidden] { display: none !important; }
