/* =========================================================
   Ainexo — Core Styles
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
body.no-scroll {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
::selection {
  background: rgba(159, 45, 45, 0.28);
  color: #fff;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--grad-cool);
  border-radius: 99px;
}

/* ---------- Animated background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 50% at 15% 12%, rgba(36, 36, 36, 0.55), transparent 60%),
    radial-gradient(55% 45% at 85% 18%, rgba(159, 45, 45, 0.1), transparent 60%),
    radial-gradient(50% 50% at 60% 90%, rgba(200, 155, 60, 0.06), transparent 60%),
    radial-gradient(40% 40% at 50% 50%, rgba(18, 18, 18, 0.45), transparent 70%),
    var(--bg);
}
#particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 110px 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
}
.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Buttons ---------- */
.btn:focus-visible,
.icon-btn:focus-visible,
.nav-trigger:focus-visible,
.filter-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn {
  --bw: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: var(--bw) solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
  white-space: nowrap;
}
.btn i {
  font-size: 0.95em;
}
.btn-primary {
  background: var(--cta);
  color: var(--on-cta);
  border-color: var(--cta);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--brand-crimson);
  outline-offset: 2px;
}
.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--brand-gold);
  box-shadow: var(--glow-primary), 0 10px 28px -12px rgba(200, 155, 60, 0.35);
  transform: translateY(-2px);
  filter: none;
}
.btn-accent {
  background: var(--cta);
  color: var(--on-cta);
}
.btn-accent:hover {
  background: var(--cta-hover);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(200, 155, 60, 0.45);
  color: var(--primary);
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(200, 155, 60, 0.08);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.82rem;
}

/* Video system status overlay */
.video-frame {
  position: relative;
}
.video-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  text-align: center;
  background: rgba(31, 31, 31, 0.82);
  border: 1px solid var(--border);
  color: var(--text);
  pointer-events: none;
}
.video-status.is-error {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
.video-status.is-loading {
  border-color: rgba(200, 155, 60, 0.35);
}

.magnetic {
  will-change: transform;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-core {
  display: grid;
  place-items: center;
  gap: 22px;
  text-align: center;
}
.loader-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-bottom-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.loader-text {
  font-family: var(--font-mono);
  letter-spacing: 0.3em;
  color: var(--muted);
  font-size: 0.8rem;
}
.loader-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.loader-logo img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(200, 155, 60, 0.4);
  box-shadow: var(--glow-primary);
  display: block;
  margin: 0 auto;
}

/* ---------- Custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(200, 155, 60, 0.6);
  transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
}
.cursor-ring.hover {
  width: 60px;
  height: 60px;
  background: rgba(184, 134, 11, 0.12);
  border-color: var(--secondary);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---------- Navbar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  transform: translateY(0);
  will-change: transform;
  transition: padding 0.3s var(--ease), transform 0.28s var(--ease);
}
.site-header.nav-hidden {
  transform: translateY(calc(-100% - 12px));
}
.site-header.scrolled {
  padding: 8px 0;
}
.nav {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled .nav {
  background: rgba(31, 31, 31, 0.78);
  border-color: var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(200, 155, 60, 0.06);
}
[data-theme="light"] .site-header.scrolled .nav {
  background: rgba(255, 255, 255, 0.7);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: #f7f7f5;
  border: 1px solid rgba(200, 155, 60, 0.45);
  box-shadow: var(--glow-primary);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.brand-dot {
  -webkit-text-fill-color: var(--primary);
  color: var(--primary);
}
.brand-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-cool);
  color: #1f1f1f;
  font-weight: 800;
  box-shadow: var(--glow-primary);
}
.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--card);
}
.nav-links a.active {
  color: var(--text);
  background: var(--card-strong);
}

/* Enterprise nav dropdowns — core hide (works before enterprise.css loads) */
.nav-item {
  position: relative;
}
.nav-item > .nav-trigger {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 10px;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid var(--border);
  background: rgba(36, 36, 36, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 120;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}
[data-theme="light"] .nav-dropdown {
  background: rgba(255, 255, 255, 0.98);
}
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}
.nav-dropdown a:hover {
  color: var(--text);
  background: var(--card);
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  min-width: 0;
  position: relative;
  z-index: 12;
  isolation: isolate;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
#themeToggle,
#drawerThemeToggle {
  font-size: 1.25rem;
}
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.1rem;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: flex-end;
  background: rgba(31, 31, 31, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}
.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}
.drawer-panel {
  width: min(360px, 92vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  border-left: 1px solid var(--border);
  background: rgba(36, 36, 36, 0.96);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  overflow: hidden;
}
.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}
[data-theme="light"] .drawer-panel {
  background: rgba(255, 255, 255, 0.98);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.drawer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}
.drawer-section h4 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}
.drawer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
.mobile-drawer a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid transparent;
}
.mobile-drawer a:hover,
.mobile-drawer a.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--card-strong);
}
.mobile-drawer a.active {
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(31, 31, 31, 0.5) 50%, transparent 100%),
    linear-gradient(0deg, var(--bg), transparent 45%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-greet {
  font-family: var(--font-mono);
  color: var(--primary);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.hero-seo-line {
  margin-top: 12px;
  max-width: 640px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero-name {
  font-size: clamp(2.8rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1;
}
.hero-typed-wrap {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  margin-top: 14px;
  min-height: 2.4em;
}
.hero-typed,
#typed {
  display: inline-block;
  min-width: 0.5em;
}
.typed-prefix {
  color: var(--muted);
}
.hero-desc {
  margin-top: 22px;
  max-width: 560px;
  color: rgba(250, 248, 245, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.hero-badge i {
  color: var(--primary);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
}
.scroll-cue .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--faint);
  border-radius: 14px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  border-radius: 4px;
  background: var(--primary);
  transform: translateX(-50%);
  animation: wheel 1.6s infinite;
}

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--radius);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ---------- Generic card grid ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #c89b3c 0%, #9f2d2d 100%);
  color: #faf8f5;
  font-size: 1.3rem;
  margin-bottom: 18px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(159, 45, 45, 0.25);
}
/* card-icon visibility boost */
.card-icon i,
.card-icon .fa-solid,
.card-icon .fa-brands {
  display: inline-block;
  line-height: 1;
  color: #faf8f5 !important;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* tilt legacy — ainexo-3d.js handles card depth */
.tilt {
  transform-style: preserve-3d;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: var(--grad-main);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-photo .initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.92);
  mix-blend-mode: overlay;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 50%);
}
.about-text h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
}
.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.about-meta li {
  font-size: 0.92rem;
}
.about-meta b {
  color: var(--primary);
}

/* ---------- Skills ---------- */
.skill-bar {
  margin-bottom: 18px;
}
.skill-bar .top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.skill-track {
  height: 9px;
  border-radius: 99px;
  background: var(--card-strong);
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad-cool);
  transition: width 1.4s var(--ease);
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.88rem;
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: var(--primary);
}
.chip i {
  color: var(--primary);
}

/* ---------- Projects ---------- */
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: inset 0 -40px 60px rgba(0, 0, 0, 0.35);
}
.project-card:hover .project-thumb {
  transform: scale(1.05);
  box-shadow:
    inset 0 -40px 60px rgba(0, 0, 0, 0.25),
    0 12px 40px rgba(200, 155, 60, 0.12),
    0 0 0 1px rgba(200, 155, 60, 0.25);
}
.project-thumb span {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.3), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-thumb::after {
  opacity: 1;
}
.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}
.project-body h3 {
  font-size: 1.3rem;
  margin: 8px 0 10px;
}
.project-body p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}
.tech-row span {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* filter buttons */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.86rem;
  transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(200, 155, 60, 0.08);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  border-left: 2px solid var(--border);
  padding-left: 34px;
}
.tl-item {
  position: relative;
  margin-bottom: 34px;
}
.tl-item:last-child {
  margin-bottom: 0;
}
.tl-dot {
  position: absolute;
  left: -44px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-cool);
  box-shadow: 0 0 0 5px var(--bg), var(--glow-primary);
}
.tl-card {
  padding: 22px 24px;
  border-radius: var(--radius);
}
.tl-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.tl-head h3 {
  font-size: 1.15rem;
}
.tl-period {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary);
}
.tl-org {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 3px;
}
.tl-card p.desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}

/* ---------- Certifications / education cards ---------- */
.cert-card {
  padding: 26px;
  border-radius: var(--radius);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.cert-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-warm);
  color: #fff;
  font-size: 1.2rem;
}
.cert-card h3 {
  font-size: 1.1rem;
}
.cert-card .issuer {
  color: var(--primary);
  font-size: 0.85rem;
  margin: 3px 0 8px;
}
.cert-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Blog ---------- */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.9);
}
.blog-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--faint);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.blog-body h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.blog-body p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.read-more {
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* ---------- Video frame (company / lecture) ---------- */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-card);
}
.video-frame video,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  display: block;
  background: #000;
}
.video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), var(--glow-primary);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.video-play-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.ainexo-video-player video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

/* ---------- Company videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
.video-item {
  margin: 0;
}
.video-item .video-frame {
  max-width: 100%;
}
.video-item figcaption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
}
.video-item figcaption small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
}
.video-youtube-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: #000;
}
.video-youtube-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.video-youtube-play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.video-youtube-play i {
  font-size: 1.35rem;
}

.project-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: linear-gradient(145deg, rgba(200, 155, 60, 0.14), rgba(36, 36, 36, 0.92));
  color: var(--primary);
  font-size: 3rem;
}

/* Portfolio preview cards */
.project-thumb--preview,
.project-thumb--demo {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  overflow: hidden;
  border-radius: inherit;
  text-decoration: none;
  color: #fff;
}
.preview-thumb-chrome,
.demo-thumb-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.preview-thumb-chrome::before,
.demo-thumb-chrome::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
}
.preview-thumb-body,
.demo-thumb-body {
  position: absolute;
  inset: 28px 12px 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.preview-thumb-label,
.demo-thumb-label {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  width: fit-content;
}
.preview-corporate,
.demo-corporate { background: linear-gradient(145deg, #242424, #C89B3C); }
.preview-ecommerce,
.demo-ecommerce { background: linear-gradient(145deg, #9f2d2d, #6b1e1e); }
.preview-restaurant,
.demo-restaurant { background: linear-gradient(145deg, #b45309, #78350f); }
.preview-agency,
.demo-agency { background: linear-gradient(145deg, #c89b3c, #1f1f1f); }
.preview-clinic,
.demo-clinic { background: linear-gradient(145deg, #059669, #064e3b); }
.preview-realestate,
.demo-realestate { background: linear-gradient(145deg, #242424, #9F2D2D); }

/* Real screenshot thumbnails with 3D hover */
.project-thumb--shot {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  overflow: hidden;
  border-radius: inherit;
  text-decoration: none;
  color: #fff;
  background-size: cover;
  background-position: center top;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.project-thumb--shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}
.project-card--3d:hover .project-thumb--3d {
  transform: perspective(1000px) rotateX(6deg) rotateY(-5deg) scale(1.03);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.project-thumb--shot .preview-thumb-chrome {
  z-index: 1;
}
.project-thumb--shot .preview-thumb-label {
  z-index: 2;
}

.section-banner {
  max-width: 840px;
  margin: 0 auto 44px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), var(--glow-primary);
  transform: perspective(1200px) rotateX(5deg);
  transition: transform 0.6s var(--ease);
}
.section-banner:hover {
  transform: perspective(1200px) rotateX(0deg) scale(1.015);
}
.section-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* 3D cards — see css/ainexo-3d.css + js/ainexo-3d.js */

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field label {
  font-size: 0.84rem;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.15);
}
.form-status {
  min-height: 1.3em;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 12px;
}
.form-status.success {
  color: #4ade80;
}
.form-status.error {
  color: #ff6b8a;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.contact-info-item .ci-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c89b3c 0%, #9f2d2d 100%);
  color: #faf8f5;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(159, 45, 45, 0.25);
}
.contact-info-item .ci-icon i,
.contact-info-item .ci-icon .fa-solid,
.contact-info-item .ci-icon .fa-brands {
  color: #faf8f5 !important;
  line-height: 1;
}
.contact-info-item small {
  color: var(--muted);
  display: block;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 14px;
}
.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(0.5) invert(0.9) hue-rotate(180deg);
}
[data-theme="light"] .map-embed iframe {
  filter: none;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 36px;
}
.footer-col h4,
.footer-subhead {
  font-size: 1rem;
  margin-bottom: 16px;
}
.drawer-section-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer-col p {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-col ul li {
  margin-bottom: 9px;
}
.footer-col ul a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: var(--primary);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  max-width: 420px;
}
.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.newsletter input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text);
}
.newsletter input:focus {
  outline: none;
  border-color: var(--primary);
}
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 0.85rem;
}

/* ---------- Floating widgets ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-strong);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s var(--ease);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.whatsapp-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 80;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s;
  text-decoration: none;
}
.whatsapp-fab--pill {
  width: auto;
  min-width: 54px;
  height: auto;
  min-height: 54px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.whatsapp-fab-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #fff;
  font-size: 0.72rem;
}
.whatsapp-fab-text strong {
  font-size: 0.88rem;
  font-weight: 800;
}
.whatsapp-fab-text small {
  opacity: 0.9;
  font-size: 0.65rem;
}
.whatsapp-fab-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
}
.whatsapp-top-strip {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(90deg, #128c41, #25d366);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 14px;
  box-shadow: 0 4px 20px -8px rgba(37, 211, 102, 0.5);
}
.whatsapp-top-strip a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.whatsapp-top-strip i {
  margin-right: 6px;
}

/* VIP promo bar — 5 rotating English service ads */
.vip-promo-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 75;
  padding: 0 12px 12px;
  pointer-events: none;
}
.vip-promo-inner {
  pointer-events: auto;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(20, 12, 48, 0.96), rgba(8, 16, 40, 0.98));
  border: 1px solid rgba(255, 215, 120, 0.35);
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.65), 0 0 40px -12px rgba(255, 180, 50, 0.25);
  backdrop-filter: blur(14px);
}
.vip-promo-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffd700, #ff8c00);
  color: #1a0a2e;
}
.vip-promo-copy {
  flex: 1;
  min-width: 0;
}
.vip-promo-copy strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 4px;
}
.vip-promo-copy p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}
.vip-promo-cta {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(120deg, #c89b3c, #9f2d2d);
  color: #1f1f1f;
  white-space: nowrap;
}
.vip-promo-next {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.72rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
body {
  padding-bottom: 120px;
}
.ainexo-company-page .section:last-of-type {
  padding-bottom: 72px;
}
.traffic-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.traffic-share-row a,
.traffic-share-row button {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
}
.whatsapp-fab img {
  width: 30px;
  height: 30px;
  display: block;
}

/* AI assistant popup */
.ai-fab {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 80;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-main);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--glow-secondary);
  transition: transform 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.75);
  padding: 0;
}
.ai-fab img {
  width: 30px;
  height: 30px;
  display: block;
  pointer-events: none;
}
.ai-fab:hover {
  transform: scale(1.08) rotate(8deg);
}
.ai-panel {
  position: fixed;
  right: 22px;
  bottom: 148px;
  z-index: 85;
  width: min(340px, calc(100vw - 44px));
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}
.ai-panel.open {
  transform: none;
  opacity: 1;
  visibility: visible;
}
.ai-head {
  padding: 16px 18px;
  background: var(--grad-cool);
  color: #1f1f1f;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-head img {
  flex-shrink: 0;
}
.ai-body {
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-2);
}
.ai-msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  max-width: 85%;
}
.ai-msg.bot {
  background: var(--card-strong);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg.user {
  background: var(--grad-cool);
  color: #1f1f1f;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.ai-quick button {
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}
.ai-quick button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* page hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 50px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--faint);
  margin-top: 12px;
}
.breadcrumb a:hover {
  color: var(--primary);
}

/* reveal default (AOS handles most; fallback) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   HR Admin Portal Dashboard
   ========================================================= */
.dash {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  padding: calc(var(--nav-h) + 30px) 0 60px;
}
.dash-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  align-self: start;
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  height: fit-content;
}
.dash-prof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.dash-prof .avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad-main);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.dash-prof small {
  color: var(--muted);
  display: block;
}
.dash-menu li {
  margin-bottom: 4px;
}
.dash-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
  transition: all 0.2s;
}
.dash-menu button i {
  width: 18px;
  text-align: center;
}
.dash-menu button:hover {
  background: var(--card);
  color: var(--text);
}
.dash-menu button.active {
  background: var(--grad-cool);
  color: #1f1f1f;
  font-weight: 600;
}
.dash-main {
  min-width: 0;
}
.dash-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dash-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  min-width: 240px;
}
.dash-search input {
  background: none;
  border: none;
  color: var(--text);
  outline: none;
  width: 100%;
  font-family: inherit;
}
.dash-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.dash-stat {
  padding: 20px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.dash-stat .ds-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: #1f1f1f;
}
.ds-icon.c1 {
  background: var(--primary);
}
.ds-icon.c2 {
  background: var(--secondary);
  color: #fff;
}
.ds-icon.c3 {
  background: var(--accent);
  color: #fff;
}
.ds-icon.c4 {
  background: #4ade80;
}
.dash-stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
}
.dash-stat .lbl {
  color: var(--muted);
  font-size: 0.85rem;
}
.dash-stat .trend {
  font-size: 0.78rem;
  margin-top: 6px;
  color: #4ade80;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.panel {
  padding: 22px;
  border-radius: var(--radius);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.panel-head h3 {
  font-size: 1.05rem;
}
.panel-head .more {
  color: var(--primary);
  font-size: 0.82rem;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.dash-table th {
  text-align: left;
  color: var(--faint);
  font-weight: 500;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}
.dash-table tr:last-child td {
  border-bottom: none;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}
.badge.green {
  background: rgba(74, 222, 128, 0.16);
  color: #4ade80;
}
.badge.red {
  background: rgba(159, 45, 45, 0.16);
  color: var(--accent);
}
.badge.blue {
  background: rgba(200, 155, 60, 0.14);
  color: var(--primary);
}
.badge.purple {
  background: rgba(184, 134, 11, 0.18);
  color: #C89B3C;
}
.mini-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--card-strong);
  overflow: hidden;
}
.mini-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad-cool);
}
.dash-panel {
  display: none;
}
.dash-panel.active {
  display: block;
  animation: fadeUp 0.4s var(--ease);
}
.attend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.attend-card {
  padding: 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.attend-card .check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
.attend-card .check.on {
  background: #4ade80;
  border-color: #4ade80;
  color: #1f1f1f;
}
.schedule-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.schedule-item:last-child {
  border-bottom: none;
}
.schedule-item .time {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.85rem;
  min-width: 92px;
}
.notice {
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--primary);
  background: var(--card);
  margin-bottom: 10px;
}
.notice small {
  color: var(--faint);
  font-family: var(--font-mono);
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 180px;
  padding-top: 10px;
}
.bar-chart .bar {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: var(--grad-cool);
  position: relative;
  min-height: 8px;
  transition: height 1s var(--ease);
}
.bar-chart .bar span {
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.74rem;
  color: var(--faint);
}
.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--bg-2);
}
.donut .donut-label {
  position: relative;
  z-index: 1;
  text-align: center;
}
.donut .donut-label b {
  font-size: 1.6rem;
  font-family: var(--font-display);
}

/* utility */
.text-center {
  text-align: center;
}
.mt-40 {
  margin-top: 40px;
}
.text-center.mt-40,
.text-center.mt-32 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ep-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

/* FAQ accordion (SEO/AEO/GEO) */
.faq-list details {
  transition: border-color 0.25s ease;
}
.faq-list summary {
  position: relative;
  padding-right: 52px !important;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after {
  content: "\2212";
  transform: translateY(-50%) rotate(180deg);
}
.faq-list details[open] {
  border-color: rgba(200, 155, 60, 0.35);
}

/* v6.5 polish — cards & enterprise visuals (layout unchanged) */
.card.glass {
  box-shadow: var(--shadow-card);
}
.card.glass:hover {
  box-shadow: 0 28px 64px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(200, 155, 60, 0.18);
}
[data-theme="light"] .card.glass {
  box-shadow: 0 14px 36px -22px rgba(36, 36, 36, 0.22);
  border-color: rgba(36, 36, 36, 0.08);
}
[data-theme="light"] .card.glass:hover {
  box-shadow: 0 22px 48px -24px rgba(36, 36, 36, 0.28), 0 0 0 1px rgba(200, 155, 60, 0.28);
  border-color: rgba(200, 155, 60, 0.35);
}
.enterprise-card .card-visual {
  display: block;
  width: calc(100% + 56px);
  margin: -28px -28px 18px;
  height: 128px;
  background-size: cover;
  background-position: center;
  background-color: #1b1b1b;
  border-bottom: 1px solid rgba(200, 155, 60, 0.18);
}
[data-theme="light"] .enterprise-card .card-visual {
  background-color: #F4EFE8;
  border-bottom-color: rgba(36, 36, 36, 0.08);
}