/* Sultanate AI premium v3 — skin only; API routes unchanged */
:root, html {
  color-scheme: dark;
  --color-bg: #07070c;
  --color-card: rgba(24, 24, 36, 0.88);
  --color-line: rgba(255, 255, 255, 0.11);
  --color-ink: #f5f5f7;
  --color-ink-2: #c5c5d2;
  --color-muted: #9a9aad;
  --color-faint: #70708a;
  --color-gold: #e7c46a;
  --color-gold-600: #d4a84e;
  --color-gold-50: rgba(231, 196, 106, 0.14);
  --color-gold-100: rgba(231, 196, 106, 0.22);
  --shadow-soft: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.55);
}
html { background: #07070c !important; }
body {
  background:
    radial-gradient(1100px 620px at 6% -8%, rgba(92, 58, 184, 0.38), transparent 58%),
    radial-gradient(880px 480px at 98% 2%, rgba(48, 128, 208, 0.24), transparent 52%),
    radial-gradient(640px 380px at 50% 110%, rgba(201, 162, 75, 0.14), transparent 48%),
    #07070c !important;
}
body.aip-premium-v3 { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
  body.aip-premium-v3 { padding-bottom: 0; }
}
.ws-h, .flex.h-\[100dvh\] { backdrop-filter: blur(14px); }
aside.lg\:block {
  background: linear-gradient(180deg, rgba(18, 18, 28, 0.97), rgba(10, 10, 16, 0.94)) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  width: 220px !important;
}
aside nav a { font-size: 13px !important; padding-top: 9px !important; padding-bottom: 9px !important; }
.card, .rounded-lg.border {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(155deg, rgba(30, 30, 46, 0.92), rgba(14, 14, 22, 0.9)) !important;
  box-shadow: var(--shadow-soft);
  border-radius: 14px !important;
}
a.card.group {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card.group:hover {
  box-shadow: 0 0 0 1px rgba(231, 196, 106, 0.4), 0 22px 44px rgba(0, 0, 0, 0.55) !important;
  transform: translateY(-2px);
}
a[aria-current="page"] {
  background: linear-gradient(90deg, #c9a24b, #e7c46a, #f0d78a) !important;
  color: #111 !important;
  font-weight: 600 !important;
}
header, .flex.h-\[42px\] {
  background: rgba(8, 8, 14, 0.78) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
h1 { font-size: 1.35rem !important; letter-spacing: -0.02em; }
.aip-hero {
  margin: 0.5rem 0 1rem;
  padding: 1.25rem 1.1rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(40, 32, 72, 0.55), rgba(18, 18, 28, 0.85));
  box-shadow: var(--shadow-soft);
}
.aip-hero h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
}
.aip-hero p {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.45;
}
.aip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.aip-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-ink-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.aip-chip:hover { border-color: rgba(231, 196, 106, 0.45); color: var(--color-ink); }
#aip-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 16, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}
@media (min-width: 1024px) {
  #aip-mobile-nav { display: none; }
}
#aip-mobile-nav a {
  text-align: center;
  text-decoration: none;
  font-size: 0.65rem;
  color: var(--color-muted);
  padding: 6px 4px;
  border-radius: 10px;
}
#aip-mobile-nav a[aria-current="page"],
#aip-mobile-nav a:hover {
  color: var(--color-gold);
  background: rgba(231, 196, 106, 0.1);
}