:root {
  --aaa-ink: #f9fbff;
  --aaa-muted: rgba(231, 237, 255, 0.74);
  --aaa-soft: rgba(231, 237, 255, 0.52);
  --aaa-night: #030716;
  --aaa-navy: #071333;
  --aaa-card: rgba(23, 35, 78, 0.48);
  --aaa-card-bright: rgba(255, 255, 255, 0.15);
  --aaa-line: rgba(184, 198, 255, 0.38);
  --aaa-blue: #1f7cff;
  --aaa-cyan: #23c8ff;
  --aaa-violet: #7c37ff;
  --aaa-magenta: #b735ff;
  --aaa-green: #47d78c;
  --aaa-red: #ff4f7a;
}

body.assistant-aaa-body {
  min-height: 100vh;
  color: var(--aaa-ink);
  background:
    radial-gradient(circle at 82% 18%, rgba(123, 47, 255, 0.32), transparent 26%),
    radial-gradient(circle at 26% 52%, rgba(18, 94, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #020613 0%, #050b25 44%, #0a0430 100%);
  overflow-x: hidden;
}

body.assistant-aaa-body::before,
body.assistant-aaa-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.assistant-aaa-body::before {
  background:
    radial-gradient(ellipse at 100% 42%, rgba(167, 58, 255, 0.34), transparent 34%),
    repeating-linear-gradient(152deg, transparent 0 82px, rgba(80, 128, 255, .055) 84px, transparent 88px);
  opacity: .85;
}

body.assistant-aaa-body::after {
  background:
    linear-gradient(104deg, transparent 0 22%, rgba(30, 121, 255, .08) 30%, transparent 39%),
    linear-gradient(12deg, transparent 0 28%, rgba(153, 45, 255, .10) 38%, transparent 48%);
  filter: blur(.2px);
  mix-blend-mode: screen;
}

.assistant-aaa-shell {
  position: relative;
  z-index: 1;
  background: transparent;
}

.aaa-sidebar {
  width: 150px;
  padding: 18px 12px;
  gap: 16px;
  border-right: 1px solid rgba(149, 168, 255, .2);
  background: linear-gradient(180deg, rgba(7, 13, 39, .92), rgba(2, 6, 21, .78));
  box-shadow: 12px 0 48px rgba(0,0,0,.28), inset -1px 0 0 rgba(255,255,255,.04);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.aaa-logo-link {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
  border-bottom: 1px solid rgba(201, 213, 255, .16);
}

.aaa-lightning-logo { width: 62px; height: 82px; object-fit: contain; }

.aaa-sidebar-nav { width: 100%; gap: 10px; margin-top: 6px; }

.aaa-nav-link,
.aaa-sidebar .sidebar-link,
.aaa-sidebar .sidebar-bottom-link {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: rgba(246, 249, 255, .88);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}

.aaa-nav-link svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(93, 122, 255, .16));
}

.aaa-nav-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(180, 197, 255, .12);
}

.aaa-nav-link.active {
  color: #fff;
  background:
    radial-gradient(circle at 88% 25%, rgba(174, 52, 255, .34), transparent 36%),
    linear-gradient(135deg, rgba(25, 116, 255, .72), rgba(102, 35, 213, .74));
  box-shadow: 0 12px 34px rgba(76, 41, 255, .36), inset 0 0 0 1px rgba(189, 202, 255, .18);
}

.aaa-nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--aaa-magenta), var(--aaa-cyan));
  box-shadow: 0 0 18px rgba(90, 123, 255, .9);
}

.aaa-admin-link {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 213, 255, .16);
}

.aaa-main-shell { background: transparent; min-width: 0; }

.aaa-topbar {
  height: 84px;
  padding: 0 28px 0 34px;
  border-bottom: 1px solid rgba(149, 168, 255, .18);
  background: rgba(4, 9, 31, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  display: flex;
  justify-content: space-between;
}

.aaa-topbar-brand,
.aaa-topbar-actions { display: flex; align-items: center; gap: 18px; }
.aaa-topbar-logo { width: 28px; height: 38px; }
.aaa-topbar-brand strong { font-size: 27px; letter-spacing: -.04em; }
.aaa-topbar-divider { width: 1px; height: 34px; background: rgba(186, 201, 255, .22); }
.aaa-topbar-title { color: #fff; font-size: 20px; font-weight: 800; }
.aaa-crown { display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 999px; background: rgba(34, 101, 255, .3); color: #6aa8ff; }

.aaa-top-add {
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  background: linear-gradient(100deg, #1976ff, #5e58ff 48%, #a929ff);
  box-shadow: 0 14px 34px rgba(39, 108, 255, .24), 0 0 34px rgba(162, 60, 255, .28);
}

.aaa-icon-top {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  border: 1px solid rgba(173, 190, 255, .26);
  background: rgba(12, 18, 48, .58);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.aaa-icon-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.aaa-avatar { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(173, 190, 255, .3); background: rgba(255,255,255,.08); display: grid; place-items: center; position: relative; font-weight: 900; }
.aaa-avatar span { position: absolute; right: 4px; bottom: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--aaa-green); box-shadow: 0 0 14px rgba(71, 215, 140, .8); }

.aaa-assistant-page {
  position: relative;
  padding: 36px 44px 48px;
  min-height: calc(100vh - 84px);
  background:
    radial-gradient(ellipse at 82% 26%, rgba(132, 50, 255, .28), transparent 30%),
    radial-gradient(ellipse at 36% 52%, rgba(25, 111, 255, .18), transparent 28%);
}

.aaa-assistant-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(172deg, transparent 0 22%, rgba(46, 123, 255, .35) 23%, transparent 24%),
    linear-gradient(164deg, transparent 0 30%, rgba(157, 53, 255, .42) 31%, transparent 32%),
    linear-gradient(348deg, transparent 0 62%, rgba(123, 53, 255, .2) 63%, transparent 65%);
  filter: blur(1px);
  opacity: .8;
}

.aaa-glass-panel,
.aaa-answer-panel,
.aaa-prompt-row button {
  position: relative;
  border: 1px solid rgba(208, 218, 255, .46);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.075)),
    rgba(24, 35, 75, .42);
  box-shadow: 0 20px 60px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.assistant-hero {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 32px;
  align-items: stretch;
  border-radius: 26px;
  padding: 34px;
  overflow: hidden;
}

.assistant-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 51, 255, .36), rgba(33, 124, 255, .15) 42%, transparent 70%);
  pointer-events: none;
}

.aaa-kicker { display: flex; align-items: center; gap: 10px; color: rgba(181, 199, 255, .88); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.aaa-kicker span { width: 5px; height: 28px; border-radius: 999px; background: linear-gradient(180deg, var(--aaa-blue), var(--aaa-magenta)); box-shadow: 0 0 16px rgba(123, 72, 255, .9); }
.assistant-hero h1 { margin: 12px 0 10px; color: #fff; font-size: clamp(42px, 6vw, 74px); line-height: .98; letter-spacing: -.06em; }
.assistant-hero p { margin: 0; max-width: 520px; color: var(--aaa-muted); font-size: 18px; line-height: 1.55; }

.aaa-ask-form { position: relative; z-index: 1; margin-top: 0; display: flex; flex-direction: column; gap: 12px; }
.aaa-field-label { color: rgba(255,255,255,.88); }
.aaa-question-wrap { position: relative; }
.aaa-question-icon { position: absolute; left: 20px; top: 21px; width: 26px; height: 26px; fill: none; stroke: #a98cff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; z-index: 2; }
.aaa-question-wrap textarea {
  min-height: 162px;
  padding: 22px 22px 22px 62px;
  border-radius: 20px;
  border: 1px solid rgba(208, 218, 255, .38);
  background: rgba(5, 10, 30, .52);
  color: #fff;
  font-size: 19px;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 0 34px rgba(77, 91, 255, .12);
}
.aaa-question-wrap textarea::placeholder { color: rgba(231,237,255,.56); }
.aaa-question-wrap textarea:focus { border-color: rgba(95, 190, 255, .9); box-shadow: 0 0 0 4px rgba(39, 108, 255, .16), 0 0 42px rgba(111, 62, 255, .22); }
.aaa-form-actions { display: flex; justify-content: flex-end; }
.aaa-ask-btn { display: inline-flex; align-items: center; gap: 13px; min-width: 160px; height: 58px; justify-content: center; border-radius: 16px; background: linear-gradient(100deg, #1976ff, #5e58ff 48%, #a929ff); }
.aaa-ask-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.aaa-prompt-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.aaa-prompt-row button { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 16px; color: rgba(255,255,255,.9); cursor: pointer; font-size: 15px; font-weight: 800; }
.aaa-prompt-row button:hover { transform: translateY(-1px); border-color: rgba(111,190,255,.65); }
.aaa-prompt-row svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: #5fb0ff; }

.aaa-answer-panel { position: relative; z-index: 1; border-radius: 26px; padding: 26px; margin-top: 20px; }
.aaa-answer-header-stack { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.aaa-answer-header-stack h2 { margin: 8px 0 0; color: #fff; font-size: 34px; letter-spacing: -.04em; }
.aaa-answer-box { background: rgba(3, 8, 26, .56); border: 1px solid rgba(186, 201, 255, .22); border-radius: 20px; color: #f9fbff; min-height: 190px; padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.aaa-empty-answer { min-height: 144px; display: flex; align-items: center; gap: 18px; color: var(--aaa-muted); }
.aaa-empty-answer svg { width: 46px; height: 46px; flex: 0 0 auto; fill: none; stroke: #7fb8ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(39,108,255,.4)); }
.aaa-empty-answer strong { display: block; color: #fff; font-size: 20px; margin-bottom: 5px; }
.aaa-empty-answer span { color: var(--aaa-soft); }

.aaa-feedback-row { background: rgba(255,255,255,.1); border-color: rgba(208,218,255,.24); color: #fff; }
.aaa-feedback-row .feedback-label { color: rgba(255,255,255,.74); }

@media (max-width: 1100px) {
  .assistant-hero { grid-template-columns: 1fr; }
  .aaa-prompt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .assistant-aaa-shell { flex-direction: column; }
  .aaa-sidebar { width: 100%; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; }
  .aaa-logo-link { width: auto; border-bottom: 0; padding: 0 12px; }
  .aaa-lightning-logo { width: 34px; height: 46px; }
  .aaa-sidebar-nav { flex-direction: row; width: auto; }
  .aaa-nav-link, .aaa-sidebar .sidebar-link, .aaa-sidebar .sidebar-bottom-link { min-width: 84px; min-height: 62px; }
  .aaa-admin-link { border-top: 0; margin-top: 0; padding-top: 0; }
  .aaa-topbar { height: auto; padding: 16px; flex-wrap: wrap; gap: 12px; }
  .aaa-topbar-brand strong { font-size: 22px; }
  .aaa-topbar-actions { width: 100%; justify-content: space-between; }
  .aaa-assistant-page { padding: 22px 14px; }
  .assistant-hero { padding: 24px; border-radius: 22px; }
  .assistant-hero h1 { font-size: 42px; }
  .aaa-prompt-row { grid-template-columns: 1fr; }
  .aaa-answer-header-stack { flex-direction: column; }
}


/* NO SIDEBAR LAYOUT */
.no-sidebar-shell{
  display:block !important;
}

.no-sidebar-main{
  width:100%;
  margin-left:0 !important;
}

.no-sidebar-main .aaa-topbar{
  padding-left:42px;
}

@media (max-width:760px){
  .no-sidebar-main .aaa-topbar{
    padding-left:16px;
  }
}
