/* ================================================
   APEXDMA — COMPONENTS v2.0
   Nav, buttons, cart, portal, product cards, etc.
   ================================================ */

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 68px;
  background: rgba(5,7,15,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(5,7,15,0.95);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo img {
  height: 96px; width: auto;
  filter: brightness(1.1);
  transition: filter var(--transition), transform var(--transition);
}
.nav-logo:hover img { filter: brightness(1.3) drop-shadow(0 0 12px var(--accent)); transform: scale(1.05); }
.nav-center { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-trigger { cursor: pointer; }
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 200px;
  background: var(--bg2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,194,255,0.08);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.dropdown.open .dropdown-menu { opacity:1; pointer-events:auto; transform:translateX(-50%) translateY(0); }
.dropdown-menu-inner { padding: 8px; }
.dropdown-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all var(--transition);
}
.dropdown-item:hover { background: rgba(0,194,255,0.07); color: var(--text); }
.arrow { color: var(--accent); font-size: 1rem; }

/* Sub-dropdown */
.sub-dropdown { position: relative; }
.sub-dropdown-menu {
  position: absolute; left: calc(100% + 8px); top: 0;
  min-width: 160px;
  background: var(--bg2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-8px);
  z-index: 101;
}
.sub-dropdown.open .sub-dropdown-menu { opacity:1; pointer-events:auto; transform:translateX(0); }
.sub-dropdown-menu-inner { padding: 8px; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative; overflow: hidden;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s ease;
}
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #0099CC 100%);
  color: #020408;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(0,194,255,0.3), 0 4px 15px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,194,255,0.5), 0 8px 24px rgba(0,0,0,0.4);
}
.btn-primary.pulse { animation: btnPulse 2.5s ease-in-out infinite; }
@keyframes btnPulse {
  0%,100% { box-shadow: 0 0 24px rgba(0,194,255,0.3), 0 4px 15px rgba(0,0,0,0.3); }
  50%      { box-shadow: 0 0 50px rgba(0,194,255,0.6), 0 8px 24px rgba(0,0,0,0.4); }
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0,194,255,0.15);
}

/* Ghost / small */
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border-color: var(--border);
  padding: 8px 18px;
  font-size: 0.82rem;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }

/* Icon button */
.btn-icon {
  width: 42px; height: 42px; padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.btn-icon svg { width: 18px; height: 18px; }

/* Login/Orders button */
.btn-login {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-login:hover { background: var(--accent-dim); border-color: var(--border-hover); color: var(--accent); }
.btn-login svg { width: 15px; height: 15px; }

/* Cart */
.cart-button {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cart-button:hover { background: var(--accent-dim); border-color: var(--border-hover); color: var(--accent); }
.cart-button svg { width: 17px; height: 17px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 17px; height: 17px;
  background: var(--accent); color: #020408;
  border-radius: 50%; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* Discord */
.discord-btn {
  background: rgba(88,101,242,0.12);
  border-color: rgba(88,101,242,0.3);
  color: #7289DA;
}
.discord-btn:hover { background: rgba(88,101,242,0.22); border-color: #7289DA; color: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
}
.hamburger:hover { background: var(--accent-dim); border-color: var(--border-hover); color: var(--accent); }
.hamburger svg { width: 20px; height: 20px; }

/* ========================================
   MOBILE NAV
   ======================================== */
.mobile-nav {
  position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(11,14,26,0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 490;
  padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a, .mobile-nav > button {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  background: none;
  border: none;
  text-align: left;
  transition: all var(--transition);
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav > button:hover {
  background: var(--accent-dim);
  color: var(--accent);
}
.mobile-sub { padding-left: 16px; display: flex; flex-direction: column; gap: 2px; }
.mobile-sub a { font-size: 0.86rem; padding: 9px 14px; }

/* AI picker */
.ai-picker {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  min-width: 160px; z-index: 100;
  overflow: hidden;
  display: none;
}
.ai-picker a {
  display: block; padding: 11px 16px;
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  transition: all var(--transition);
}
.ai-picker a:hover { background: var(--accent-dim); color: var(--accent); }

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
  background: var(--card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  border-color: rgba(0,194,255,0.45);
  box-shadow: 0 0 32px rgba(0,194,255,0.12), var(--shadow-card);
  transform: translateY(-4px);
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img {
  height: 190px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a0f20, #0f1830);
  display: flex; align-items: flex-end; padding: 14px;
}
.product-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.4s ease;
}
.product-img-label {
  font-family: var(--font-heading);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(240,244,255,0.35);
  position: relative; z-index: 1;
}
.product-body { padding: 20px; }
.product-title {
  font-family: var(--font-heading);
  font-size: 0.94rem; font-weight: 700;
  margin-bottom: 10px; line-height: 1.3;
}
.product-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 700; color: var(--green);
  margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-heading);
}
.product-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dotPulse 2s infinite;
}
.product-price-row { margin-bottom: 16px; }
.product-price-label {
  font-size: 0.65rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 700;
  color: var(--accent);
}
.product-card .btn { width: 100%; padding: 10px 20px; font-size: 0.82rem; }
.product-card .btn + .btn { margin-top: 8px; }

/* ========================================
   CART DRAWER
   ======================================== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 800; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px;
  background: var(--bg2);
  border-left: 1px solid var(--border-card);
  z-index: 900;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid var(--border);
}
.cart-header h3 {
  font-family: var(--font-heading); font-size: 1.1rem;
  font-weight: 700; letter-spacing: 0.02em;
}
.cart-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all var(--transition);
}
.cart-close:hover { background: rgba(255,70,90,0.15); border-color: var(--red); color: var(--red); }
.cart-close svg { width: 16px; height: 16px; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 0.9rem; }
.cart-item {
  background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px;
}
.cart-item-info { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.cart-item-name { font-size: 0.88rem; font-weight: 600; }
.cart-item-price { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--accent); }
.cart-item-qty {
  display: flex; align-items: center; gap: 12px;
}
.cart-item-qty button {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--muted); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cart-item-qty button:hover { background: var(--accent-dim); border-color: var(--border-hover); color: var(--accent); }
.cart-item-qty span { font-family: var(--font-heading); font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-remove {
  font-size: 0.75rem; color: var(--muted);
  background: none; border: none; padding: 4px 0;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--red); }
.cart-footer {
  padding: 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
}
.cart-total-row span:first-child { color: var(--muted); font-size: 0.88rem; }
.cart-total-row span:last-child { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; }
#cartCheckoutBtn { width: 100%; }

/* ========================================
   PORTAL MODAL
   ======================================== */
.portal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000; opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  transition: opacity 0.3s ease;
}
.portal-overlay.open { opacity: 1; pointer-events: auto; }
.portal-modal {
  background: var(--bg2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%; max-width: 500px;
  max-height: 85vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,194,255,0.08);
}
.portal-close {
  position: absolute; top: 20px; right: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all var(--transition);
}
.portal-close:hover { background: rgba(255,70,90,0.15); border-color: var(--red); color: var(--red); }
.portal-close svg { width: 15px; height: 15px; }
.portal-logo { margin-bottom: 28px; }
.portal-logo img { height: 32px; }
.portal-step { display: none; }
.portal-step.active { display: block; }
.portal-heading {
  font-family: var(--font-heading); font-size: 1.4rem;
  font-weight: 800; margin-bottom: 8px;
}
.portal-sub { color: var(--muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 24px; }
.portal-error {
  background: rgba(255,77,106,0.1); border: 1px solid rgba(255,77,106,0.3);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 0.84rem; color: #ff6b82; margin-bottom: 14px;
  display: none;
}
.portal-error.show { display: block; }
.portal-field { margin-bottom: 20px; }
.portal-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.portal-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg3); border: 1px solid var(--border-card);
  border-radius: var(--radius); color: var(--text); font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.portal-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,194,255,0.1); }
.portal-btn { width: 100%; }
.portal-dash { display: none; }
.portal-dash.active { display: block; }
.portal-dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.portal-user-email { font-size: 0.82rem; color: var(--accent); }
.portal-signout {
  font-size: 0.78rem; color: var(--muted); padding: 6px 12px;
  border-radius: 99px; border: 1px solid var(--border);
  transition: all var(--transition);
}
.portal-signout:hover { color: var(--red); border-color: var(--red); }
.portal-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.portal-tab {
  padding: 9px 18px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 0.84rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--transition);
}
.portal-tab.active { color: var(--accent); border-color: var(--accent); }
.portal-tab-content { display: none; }
.portal-tab-content.active { display: block; }
.portal-spinner {
  width: 32px; height: 32px; border: 2.5px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 30px auto;
}
.portal-orders-list { display: flex; flex-direction: column; gap: 12px; }
.portal-order-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.portal-order-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 8px; }
.portal-order-name { font-size: 0.9rem; font-weight: 600; }
.portal-order-price { font-family: var(--font-heading); font-weight: 700; color: var(--accent); white-space: nowrap; }
.portal-order-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.portal-order-status {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 3px 10px; border-radius: 99px;
}
.portal-order-status.completed { background: rgba(0,230,118,0.12); color: var(--green); }
.portal-order-status.pending { background: rgba(251,191,36,0.12); color: #fbbf24; }
.portal-order-status.refunded { background: rgba(255,77,106,0.12); color: var(--red); }
.portal-order-date { font-size: 0.72rem; color: var(--muted); }
.portal-deliverable { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.portal-deliverable-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.portal-deliverable-key {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent);
  background: var(--accent-dim); padding: 8px 12px; border-radius: var(--radius-sm);
  word-break: break-all;
}
.portal-empty { text-align: center; padding: 30px 20px; color: var(--muted); font-size: 0.88rem; }
.portal-empty a { color: var(--accent); }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  position: relative; z-index: 1;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 152px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.footer-brand-tag { color: var(--muted); font-size: 0.88rem; line-height: 1.65; max-width: 240px; }
.footer-trust { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.footer-trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--muted);
}
.footer-trust-badge svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.88rem; color: rgba(240,244,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent-dim); border-color: var(--border-hover); color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  font-size: 0.78rem; color: rgba(138,148,178,0.6);
  flex-wrap: wrap; gap: 12px;
}
.footer-policies { display: flex; gap: 20px; }
.footer-policies a { transition: color var(--transition); }
.footer-policies a:hover { color: var(--accent); }

/* ========================================
   AI SETUP MODAL
   ======================================== */
.ai-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.ai-modal-overlay.open { opacity: 1; pointer-events: auto; }

.ai-modal {
  background: linear-gradient(160deg, #0d1024 0%, #080c1a 100%);
  border: 1px solid rgba(0,194,255,0.2);
  border-radius: 24px;
  padding: 48px 40px 40px;
  width: 100%; max-width: 620px;
  position: relative;
  box-shadow: 0 0 80px rgba(0,194,255,0.12), 0 40px 100px rgba(0,0,0,0.7);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  text-align: center;
}
.ai-modal-overlay.open .ai-modal {
  transform: translateY(0) scale(1);
}

.ai-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1.1rem; line-height: 1;
  transition: all var(--transition);
}
.ai-modal-close:hover { background: rgba(255,70,90,0.15); border-color: var(--red); color: var(--red); }

.ai-modal-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,194,255,0.2);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}

.ai-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 10px; line-height: 1.15;
}

.ai-modal-sub {
  color: var(--muted); font-size: 0.95rem; line-height: 1.6;
  margin-bottom: 32px; max-width: 420px; margin-left: auto; margin-right: auto;
}

.ai-modal-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ai-modal-option {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border-card);
  border-radius: 16px;
  padding: 28px 22px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  text-align: left;
  position: relative; overflow: hidden;
}
.ai-modal-option::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0; transition: opacity 0.22s ease;
  border-radius: inherit;
}
.ai-modal-option:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0,194,255,0.15), 0 12px 40px rgba(0,0,0,0.4);
}
.ai-modal-option:hover::before { opacity: 1; }
.ai-modal-option:active { transform: translateY(-2px) scale(0.98); }

.ai-modal-option-emoji {
  font-size: 2rem; margin-bottom: 14px; display: block;
  position: relative; z-index: 1;
}
.ai-modal-option-title {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 800;
  margin-bottom: 8px; position: relative; z-index: 1;
}
.ai-modal-option-desc {
  font-size: 0.82rem; color: var(--muted);
  line-height: 1.55; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.ai-modal-option-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  position: relative; z-index: 1;
  transition: gap 0.2s ease;
}
.ai-modal-option:hover .ai-modal-option-cta { gap: 10px; }
.ai-modal-option-cta svg { width: 14px; height: 14px; }

/* 2PC option accent */
.ai-modal-option.two-pc:hover { border-color: var(--accent2); box-shadow: 0 0 30px rgba(123,92,255,0.15), 0 12px 40px rgba(0,0,0,0.4); }
.ai-modal-option.two-pc::before { background: linear-gradient(135deg, var(--accent2-dim), transparent 60%); }
.ai-modal-option.two-pc .ai-modal-option-cta { color: var(--accent2); }

.ai-modal-skip {
  margin-top: 20px;
  font-size: 0.78rem; color: var(--muted);
  cursor: pointer; transition: color var(--transition);
}
.ai-modal-skip:hover { color: var(--text); }

@media(max-width:520px) {
  .ai-modal { padding: 36px 20px 28px; }
  .ai-modal-options { grid-template-columns: 1fr; }
}
