@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  --bg-base: #060C12;
  --bg-surface: #0B1420;
  --bg-elevated: #0F1E30;
  --border: rgba(0, 229, 255, 0.08);
  --border-active: rgba(0, 229, 255, 0.25);
  --text-primary: #F0F6FF;
  --text-secondary: #7A94B0;
  --text-muted: #3D5470;
  --accent: #00E5FF;
  --accent-glow: rgba(0, 229, 255, 0.15);
  --success: #00C48C;
  --warning: #FF9500;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1200px;
  --nav-h: 120px;
  --section-py: clamp(80px, 12vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }

html.ac-html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body.ac-page {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (max-width: 768px) {
  body.ac-page { cursor: auto; }
}

::selection {
  background: var(--accent-glow);
  color: var(--text-primary);
}

.ac-container {
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
}

/* Noise overlay */
.ac-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom cursor */
.ac-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: screen;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
}
.ac-cursor.is-expanded {
  width: 40px;
  height: 40px;
  opacity: 0.35;
}

/* Preloader */
.ac-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  background: var(--bg-base);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.ac-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ac-preloader__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: ac-pulse-dot 1.2s ease-in-out infinite;
}
@keyframes ac-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* Typography helpers */
.ac-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.ac-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.ac-lead {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin: 0;
}

/* Buttons */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 16px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.ac-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.ac-btn--primary {
  background: var(--accent);
  color: var(--bg-base);
}
.ac-btn--primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 32px var(--accent-glow);
}
.ac-btn--ghost {
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--text-primary);
}
.ac-btn--ghost:hover {
  background: var(--bg-elevated);
}
.ac-btn--outline {
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--text-primary);
  width: 100%;
}
.ac-btn--outline:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.ac-btn--pill {
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ========== NAV ========== */
.ac-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(6, 12, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
  opacity: 0;
  animation: ac-fade-in 0.5s ease forwards;
}
.ac-loaded .ac-nav { opacity: 1; }
.ac-nav.is-solid { background: var(--bg-base); }

.ac-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
}

.ac-nav__logo img {
  height: 112px;
  width: auto;
  display: block;
}

.ac-nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ac-nav__link {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  transition: color 0.2s ease;
}
.ac-nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.ac-nav__link:hover,
.ac-nav__link.is-active { color: var(--text-primary); }
.ac-nav__link:hover::after,
.ac-nav__link.is-active::after { transform: scaleX(1); }
.ac-nav__link:focus-visible {
  outline: none;
  color: var(--text-primary);
}

.ac-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ac-nav__login {
  background: var(--accent);
  color: var(--bg-base);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.ac-nav__login:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.ac-nav__login:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.ac-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.ac-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .ac-nav__toggle { display: flex; }
  .ac-nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .ac-nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes ac-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== HERO ========== */
.ac-hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ac-hero-section > .ac-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ac-hero-section > .ac-hero__bg::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-base));
}

.ac-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
  overflow: visible;
}
.ac-hero__bg::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-base));
}
.ac-circuit {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
}

.ac-pulse {
  stroke-dasharray: 8 92;
  animation: ac-circuit-flow 10s linear infinite;
}
.ac-pulse--d2 { animation-duration: 11s; animation-delay: -2s; }
.ac-pulse--d3 { animation-duration: 9s; animation-delay: -4s; }
.ac-pulse--d4 { animation-duration: 12s; animation-delay: -1s; }
.ac-pulse--d5 { animation-duration: 8s; animation-delay: -3s; }
.ac-pulse--d6 { animation-duration: 14s; animation-delay: -5s; }
.ac-pulse--d7 { animation-duration: 10s; animation-delay: -6s; }
.ac-pulse--d8 { animation-duration: 16s; animation-delay: -7s; }

@keyframes ac-circuit-flow {
  to { stroke-dashoffset: -100; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-pulse { animation: none; }
}

.ac-hero__copy,
.ac-hero__visual {
  position: relative;
  z-index: 1;
}

.ac-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-active);
  background: rgba(0, 229, 255, 0.06);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(-8px);
  animation: ac-badge-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
@keyframes ac-badge-in {
  to { opacity: 1; transform: translateY(0); }
}

.ac-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0 0 24px;
}
.ac-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: ac-word-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes ac-word-in {
  to { opacity: 1; transform: translateY(0); }
}

.ac-hero__sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin: 0 0 28px;
  opacity: 0;
  animation: ac-fade-up 0.6s ease 0.6s forwards;
}

.ac-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  opacity: 0;
  animation: ac-fade-up 0.6s ease 0.7s forwards;
}
.ac-chip {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
}
.ac-chip::before {
  content: '✓ ';
  color: var(--success);
}

.ac-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: ac-fade-up 0.6s ease 0.8s forwards;
}
@keyframes ac-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.ac-hero__mock-wrap {
  position: relative;
  opacity: 0;
  transform: translateX(40px);
  animation: ac-mock-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  will-change: transform;
}
@keyframes ac-mock-in {
  to { opacity: 1; transform: translateX(0); }
}

.ac-hero__mock {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
  will-change: transform;
}
.ac-hero__mock::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Dashboard mock */
.ac-mock__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.ac-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ac-mock__dot--r { background: #FF5F57; }
.ac-mock__dot--y { background: #FFBD2E; }
.ac-mock__dot--g { background: #28CA42; }
.ac-mock__title {
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ac-mock__body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
  background: var(--bg-base);
}
.ac-mock__sidebar {
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ac-mock__nav-item {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ac-mock__nav-item.is-active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.ac-mock__nav-item--ai { color: var(--accent); }

.ac-mock__main { padding: 16px; }
.ac-mock__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.ac-mock__stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.ac-mock__stat small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.ac-mock__stat strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.ac-mock__stat span {
  font-size: 10px;
  color: var(--text-secondary);
}
.ac-mock__stat span.up { color: var(--success); }

.ac-mock__panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.ac-mock__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ac-mock__panel-head strong { font-size: 12px; }
.ac-mock__panel p {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ac-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-active);
  color: var(--accent);
}

.ac-mock__toast {
  position: absolute;
  bottom: 24px;
  right: -12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-active);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  max-width: 240px;
}
.ac-mock__toast svg { flex-shrink: 0; color: var(--success); margin-top: 2px; }
.ac-mock__toast strong { display: block; font-size: 11px; margin-bottom: 2px; }
.ac-mock__toast span { font-size: 10px; color: var(--text-secondary); }

@media (max-width: 768px) {
  .ac-hero-section { min-height: auto; }
  .ac-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 32px);
  }
  .ac-hero__visual { display: none; }
}

/* ========== FEATURES ========== */
.ac-features {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}
.ac-features__header {
  text-align: center;
  margin-bottom: 56px;
}
.ac-features__header .ac-lead { margin-inline: auto; }

.ac-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.ac-feature {
  background: var(--bg-surface);
  padding: 40px 36px;
  transition: background 0.3s ease;
}
.ac-feature:hover { background: var(--bg-elevated); }

.ac-feature__icon {
  width: 48px;
  height: 48px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}
.ac-feature:hover .ac-feature__icon {
  box-shadow: 0 0 20px var(--accent-glow);
}

.ac-feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.ac-feature__body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .ac-features__grid { grid-template-columns: 1fr; }
}

/* ========== AI SECTION ========== */
.ac-ai {
  padding: var(--section-py) 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.03) 0, rgba(0, 229, 255, 0.03) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.03) 0, rgba(0, 229, 255, 0.03) 1px, transparent 1px, transparent 80px),
    var(--bg-base);
}
.ac-ai__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ac-ai__widget-wrap {
  will-change: transform;
}
.ac-ai__widget {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(6deg) rotateX(2deg);
}

.ac-ai__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.ac-ai__head-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
}
.ac-ai__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
}

.ac-ai__messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.ac-ai__msg {
  max-width: 88%;
  font-size: 13px;
  line-height: 1.55;
  padding: 12px 16px;
}
.ac-ai__msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--bg-base);
  border-radius: 16px 16px 4px 16px;
}
.ac-ai__msg--bot {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 16px 16px 16px 4px;
}
.ac-ai__msg--typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 16px 20px;
}
.ac-ai__msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: ac-dot-bounce 1s ease-in-out infinite;
}
.ac-ai__msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.ac-ai__msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ac-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.ac-ai__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.ac-ai__tab {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}
.ac-ai__tab.is-active {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
}
.ac-ai__tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.ac-ai__pane { display: none; }
.ac-ai__pane.is-active { display: block; }
.ac-ai__pane h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 16px;
}
.ac-ai__pane ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac-ai__pane li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}
.ac-ai__pane li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 768px) {
  .ac-ai__grid { grid-template-columns: 1fr; }
  .ac-ai__widget { transform: none; }
}

/* ========== PAYNOW SHOWCASE ========== */
.ac-paynow {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
  border-top: 1px solid var(--border-subtle);
}
.ac-paynow__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.ac-paynow__bullets {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.ac-paynow__bullets li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 10px 0 10px 28px;
  position: relative;
}
.ac-paynow__bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.ac-paynow__plan-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.ac-paynow__photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ac-paynow__photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.ac-paynow__float-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: #0d2818;
}
.ac-paynow__float-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #006400;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.ac-paynow__float-card strong {
  display: block;
  font-size: 14px;
}
.ac-paynow__float-card span {
  font-size: 12px;
  color: #4a5568;
}
@media (max-width: 768px) {
  .ac-paynow__grid { grid-template-columns: 1fr; }
}

/* ========== PRICING ========== */
.ac-pricing {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}
.ac-pricing__header {
  text-align: center;
  margin-bottom: 56px;
}
.ac-pricing__header .ac-lead { margin-inline: auto; }

.ac-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.ac-price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ac-price-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.08), inset 0 0 0 1px rgba(0, 229, 255, 0.2);
  transform: scale(1.03);
  z-index: 1;
}
.ac-price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-base);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.ac-price-card__name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.ac-price-card__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.ac-price-card__amount span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--text-secondary);
}

.ac-price-card__tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}
.ac-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  width: fit-content;
}
.ac-tag--amber {
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.3);
  color: var(--warning);
}
.ac-tag--cyan {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-active);
  color: var(--accent);
}

.ac-price-card__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.ac-price-card__list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ac-price-card__list li.is-excluded {
  color: var(--text-muted);
  opacity: 0.5;
}
.ac-price-card__list .check { color: var(--success); flex-shrink: 0; }
.ac-price-card__list .cross { color: var(--text-muted); flex-shrink: 0; }

.ac-price-card__limit {
  font-weight: 500;
  color: var(--text-primary) !important;
  margin-bottom: 8px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .ac-pricing__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .ac-price-card.is-featured { transform: none; order: -1; }
}

/* ========== FAQ ========== */
.ac-faq {
  padding: var(--section-py) 0;
  background: var(--bg-surface);
}
.ac-faq__header {
  text-align: center;
  margin-bottom: 48px;
}
.ac-faq__header .ac-lead { margin-inline: auto; }

.ac-faq__item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.ac-faq__item.is-open {
  background: var(--bg-elevated);
  border-color: var(--border-active);
}

.ac-faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-primary);
}
.ac-faq__question:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.ac-faq__q-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ac-faq__ring {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}
.ac-faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}
.ac-faq__icon::before,
.ac-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ac-faq__icon::before { width: 14px; height: 2px; }
.ac-faq__icon::after { width: 2px; height: 14px; }
.ac-faq__item.is-open .ac-faq__icon { transform: rotate(45deg); }

.ac-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.ac-faq__answer-inner {
  padding: 0 28px 24px 64px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== CONTACT ========== */
.ac-contact {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}
.ac-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.ac-contact__form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 32px;
}

.ac-form-group { margin-bottom: 16px; }
.ac-form-group .error {
  display: block;
  font-size: 13px;
  color: #ff6b6b;
  margin-top: 4px;
}

.ac-contact input,
.ac-contact textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ac-contact input:focus,
.ac-contact textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.ac-contact input::placeholder,
.ac-contact textarea::placeholder { color: var(--text-muted); }
.ac-contact textarea { resize: vertical; min-height: 140px; }

.ac-contact__aside h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.ac-contact__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ac-contact__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
.ac-contact__card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.08);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}
.ac-contact__card h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ac-contact__card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-primary);
}

.ac-alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}
.ac-alert--success {
  background: rgba(0, 196, 140, 0.12);
  border: 1px solid rgba(0, 196, 140, 0.3);
  color: var(--success);
}
.ac-alert--error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .ac-contact__grid { grid-template-columns: 1fr; }
}

/* ========== FOOTER ========== */
.ac-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.ac-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.ac-footer__brand img { height: 112px; margin-bottom: 16px; }
.ac-footer__brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 20px;
}
.ac-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac-footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.ac-footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ac-footer__col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 20px;
}
.ac-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac-footer__col li { margin-bottom: 10px; }
.ac-footer__col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ac-footer__col a:hover { color: var(--accent); }
.ac-footer__col p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 8px;
}

.ac-footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .ac-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ac-footer__grid { grid-template-columns: 1fr; }
}

/* ========== MODAL (Bootstrap override) ========== */
.ac-modal .modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-primary);
}
.ac-modal .modal-header {
  border-bottom: 1px solid var(--border);
  padding: 24px 28px;
}
.ac-modal .modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.ac-modal .modal-body { padding: 28px; }
.ac-modal .btn-close {
  filter: invert(1) opacity(0.6);
}
.ac-modal .form-control,
.ac-modal .form-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 10px;
}
.ac-modal .form-control:focus,
.ac-modal .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.ac-modal label { color: var(--text-secondary); font-size: 14px; }
.ac-modal .btn:not(.btn-alt) {
  background: var(--accent);
  color: var(--bg-base);
  border: none;
  font-weight: 700;
  border-radius: 10px;
}
.ac-modal .btn-alt {
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--text-primary);
  border-radius: 10px;
}

/* Registration modal */
body.ac-modal-open {
  cursor: auto !important;
}
body.ac-modal-open .ac-cursor {
  display: none !important;
}

.ac-reg-modal {
  overflow: hidden;
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
}

.ac-reg-modal__header {
  flex-shrink: 0;
}

.ac-reg-modal__subtitle {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.ac-reg-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) transparent;
}
.ac-reg-modal__body::-webkit-scrollbar {
  width: 8px;
}
.ac-reg-modal__body::-webkit-scrollbar-track {
  background: transparent;
}
.ac-reg-modal__body::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 999px;
  border: 2px solid var(--bg-surface);
}

.ac-reg-modal__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 0;
}

.ac-reg-modal__aside {
  padding: 24px;
  background: var(--bg-base);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  align-self: start;
}

.ac-reg-modal__form {
  padding: 24px 28px;
}

.ac-reg-modal__footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px !important;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.ac-reg-modal__footer .ac-btn {
  padding: 12px 24px;
  font-size: 14px;
}

.ac-reg-modal__note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ac-reg-modal__note svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.ac-reg-modal__note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Plan summary card */
.ac-plan-summary {
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.08), rgba(0, 229, 255, 0.02));
  border: 1px solid var(--border-active);
  border-radius: 14px;
  padding: 20px;
}

.ac-plan-summary__head {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.ac-plan-summary__badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-active);
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-plan-summary__price-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ac-plan-summary__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  color: var(--text-primary);
}

.ac-plan-summary__cycle {
  font-size: 13px;
  color: var(--text-secondary);
}

.ac-plan-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ac-plan-summary__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ac-plan-summary__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ac-plan-summary__key {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ac-plan-summary__val {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
}

.ac-reg-section + .ac-reg-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.ac-reg-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.ac-field {
  margin-bottom: 0;
}
.ac-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.ac-field .error {
  display: block;
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 4px;
}
.ac-optional {
  color: var(--text-muted);
  font-weight: 400;
}

.ac-modal .form-control,
.ac-modal .form-select {
  padding: 11px 14px;
  font-size: 14px;
}
.ac-modal .form-control::placeholder {
  color: var(--text-muted);
}
.ac-modal textarea.form-control {
  min-height: 88px;
  resize: vertical;
}

.ac-file-input {
  padding: 9px 14px !important;
  font-size: 13px !important;
  color: var(--text-secondary) !important;
}
.ac-file-input::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: 1px solid var(--border-active);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ac-file-input::file-selector-button:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
}

.ac-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.ac-checkbox input {
  margin-top: 3px;
  accent-color: var(--accent);
}

/* Select2 dark theme inside modal */
.ac-modal .select2-container--default .select2-selection--single {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 42px;
}
.ac-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary);
  line-height: 40px;
  padding-left: 14px;
  font-size: 14px;
}
.ac-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
}
.ac-modal .select2-dropdown {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ac-modal .select2-container--default .select2-results__option {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 14px;
}
.ac-modal .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(0, 229, 255, 0.12);
  color: var(--text-primary);
}
.ac-modal .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .ac-reg-modal__grid {
    grid-template-columns: 1fr;
  }
  .ac-reg-modal__aside {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.ac-section-header { text-align: center; margin-bottom: 56px; }
.ac-section-header .ac-lead { margin-inline: auto; }

/* Expired alert */
.ac-expired {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 24px;
  background: rgba(255, 107, 107, 0.15);
  border-bottom: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff8a8a;
  text-align: center;
  font-size: 14px;
}

/* ========== STANDALONE REGISTRATION FLOW PAGES ========== */
body.ac-flow-page {
  cursor: auto;
}

.ac-flow-page .ac-cursor {
  display: none !important;
}

.ac-flow {
  padding: clamp(24px, 4vw, 48px) 0 72px;
  min-height: 100vh;
}

.ac-flow__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ac-flow__logo img {
  display: block;
  max-height: 48px;
  width: auto;
}

.ac-flow__back {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.ac-flow__back:hover {
  color: var(--accent);
  text-decoration: none;
}

.ac-flow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.ac-flow-card__header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.ac-flow-card__header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.ac-flow-card__subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.ac-flow-card__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 0;
}

.ac-flow-card__aside {
  padding: 24px;
  background: var(--bg-base);
  border-right: 1px solid var(--border);
}

.ac-flow-card__main {
  padding: 24px 28px;
}

.ac-flow-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.ac-flow-card__note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ac-flow-card__note svg,
.ac-flow-card__note i {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.ac-flow-card__note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.ac-flow-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.ac-flow-status__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.ac-flow-status--review {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}
.ac-flow-status--review .ac-flow-status__icon {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}

.ac-flow-status--success {
  background: rgba(0, 196, 140, 0.08);
  border-color: rgba(0, 196, 140, 0.2);
}
.ac-flow-status--success .ac-flow-status__icon {
  background: rgba(0, 196, 140, 0.15);
  color: var(--success);
}

.ac-flow-status--danger {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.2);
}
.ac-flow-status--danger .ac-flow-status__icon {
  background: rgba(255, 107, 107, 0.15);
  color: #ff8a8a;
}

.ac-flow-status__body h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.ac-flow-status__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.ac-flow-status__note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.2);
  color: #fbbf24;
  font-size: 13px;
}

.ac-flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.ac-flow-chip {
  flex: 1 1 140px;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.ac-flow-chip__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ac-flow-chip__value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.ac-flow-chip__badge {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.ac-flow-chip--success .ac-flow-chip__badge { background: rgba(0, 196, 140, 0.15); color: var(--success); }
.ac-flow-chip--info .ac-flow-chip__badge { background: rgba(0, 229, 255, 0.12); color: var(--accent); }
.ac-flow-chip--warning .ac-flow-chip__badge { background: rgba(255, 149, 0, 0.15); color: var(--warning); }
.ac-flow-chip--danger .ac-flow-chip__badge { background: rgba(255, 107, 107, 0.15); color: #ff8a8a; }

.ac-flow-invoice {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.ac-flow-invoice__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.ac-flow-invoice__head img {
  max-height: 52px;
  width: auto;
}

.ac-flow-invoice__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.ac-flow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.ac-flow-pill--unpaid { background: rgba(255, 107, 107, 0.12); color: #ff8a8a; border-color: rgba(255, 107, 107, 0.25); }
.ac-flow-pill--pending { background: rgba(255, 149, 0, 0.12); color: var(--warning); border-color: rgba(255, 149, 0, 0.25); }
.ac-flow-pill--paid { background: rgba(0, 196, 140, 0.12); color: var(--success); border-color: rgba(0, 196, 140, 0.25); }

.ac-flow-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.ac-flow-meta h6 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.ac-flow-meta address,
.ac-flow-meta p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  font-style: normal;
}

.ac-flow-table {
  width: 100%;
  border-collapse: collapse;
}

.ac-flow-table th,
.ac-flow-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.ac-flow-table thead th {
  background: rgba(0, 0, 0, 0.15);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ac-flow-totals {
  margin: 0;
  padding: 16px 20px;
  list-style: none;
}

.ac-flow-totals li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.ac-flow-totals li:last-child {
  border-bottom: 0;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.ac-flow-page .form-control,
.ac-flow-page .form-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
}

.ac-flow-page .form-control:focus,
.ac-flow-page .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.ac-flow-page .form-control::placeholder {
  color: var(--text-muted);
}

.ac-flow-page label,
.ac-flow-page .form-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.ac-flow-page .error {
  display: block;
  font-size: 12px;
  color: #ff8a8a;
  margin-top: 4px;
}

.ac-flow-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.2);
  color: #fbbf24;
  font-size: 13px;
  margin-bottom: 16px;
}

.ac-flow-page .select2-container--default .select2-selection--single {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 42px;
}

.ac-flow-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary);
  line-height: 40px;
  padding-left: 14px;
}

.ac-flow-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
}

.ac-flow-page .select2-dropdown {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ac-flow-page .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(0, 229, 255, 0.12);
  color: var(--text-primary);
}

.ac-flow-secure {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.ac-flow-secure i {
  color: var(--accent);
  margin-right: 4px;
}

.ac-flow-input-group {
  display: flex;
  align-items: stretch;
}

.ac-flow-input-group__addon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--accent);
  cursor: pointer;
}

.ac-flow-input-group .form-control {
  border-radius: 0 10px 10px 0;
  cursor: pointer;
}

.ac-flow-input-group .form-control[readonly] {
  background: var(--bg-elevated);
}

.ac-flow-page .datepicker {
  z-index: 1060 !important;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.ac-flow-page .datepicker table tr td,
.ac-flow-page .datepicker table tr th {
  border-radius: 8px;
}

.ac-flow-page .datepicker table tr td.day:hover,
.ac-flow-page .datepicker table tr td.focused {
  background: rgba(0, 229, 255, 0.12);
  color: var(--text-primary);
}

.ac-flow-page .datepicker table tr td.active,
.ac-flow-page .datepicker table tr td.active:hover,
.ac-flow-page .datepicker table tr td.active.disabled,
.ac-flow-page .datepicker table tr td.active.disabled:hover {
  background: var(--accent) !important;
  color: #041018 !important;
}

.ac-flow-page .datepicker table tr td.today {
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent);
}

.ac-flow-page .datepicker table tr td.today:hover {
  background: rgba(0, 229, 255, 0.16);
}

.ac-flow-page .datepicker .datepicker-switch,
.ac-flow-page .datepicker .prev,
.ac-flow-page .datepicker .next,
.ac-flow-page .datepicker tfoot tr th {
  color: var(--text-primary);
}

.ac-flow-page .datepicker .dow {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .ac-flow-card__grid {
    grid-template-columns: 1fr;
  }
  .ac-flow-card__aside {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .ac-flow-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ac-flow-card__header,
  .ac-flow-card__main,
  .ac-flow-card__aside,
  .ac-flow-card__footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .ac-flow__topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  body.ac-flow-page { background: #fff; color: #000; }
  .ac-noise,
  .ac-flow__topbar,
  .ac-flow-card__aside,
  .ac-flow-card__header,
  .ac-flow-status,
  .ac-flow-chips,
  .ac-flow-card__footer,
  .ac-flow-secure { display: none !important; }
  .ac-flow-card { box-shadow: none; border: 0; }
  .ac-flow-invoice { border: 1px solid #ddd; }
}
