  /* ═══════════════════════════════════════
       VARIABLES
    ═══════════════════════════════════════ */
    :root {
      --navy: #0b2240;
      --navy-mid: #123460;
      --blue: #1a5fa8;
      --blue-light: #2d8dd9;
      --sky: #e8f4ff;
      --sky-mid: #d0e8fa;
      --gold: #f5a623;
      --gold-light: #fef3dc;
      --green: #16a96b;
      --green-light: #d4f5e8;
      --red: #e84040;
      --bg: #e8eff8;
      --bg2: #dde8f5;
      --card: #f4f9ff;
      --text: #0d1f35;
      --muted: #5a7490;
      --border: rgba(11, 34, 64, 0.09);
      --border2: rgba(11, 34, 64, 0.14);
      --shadow-sm: 0 2px 12px rgba(11, 34, 64, 0.07);
      --shadow-md: 0 6px 28px rgba(11, 34, 64, 0.11);
      --shadow-lg: 0 16px 56px rgba(11, 34, 64, 0.18);
      --shadow-xl: 0 24px 80px rgba(11, 34, 64, 0.25);
      --input-bg: #e8eff8;
      --f-display: 'Playfair Display', Georgia, serif;
      --f-body: 'Plus Jakarta Sans', system-ui, sans-serif;
      /* Aura gradient */
      --aura-1: #0b2240;
      --aura-2: #1a5fa8;
      --aura-3: #f5a623;
    }

    [data-theme="dark"] {
      --navy: #b8d0ee;
      --navy-mid: #122d4a; /* Deeper for contrast */
      --blue: #5ba8f5;
      --blue-light: #7dbfff;
      --sky: #0a1422; /* Richer dark */
      --sky-mid: #1e3250;
      --gold: #ffb400; /* Vibrant Ascent Circle Gold */
      --gold-light: #2e2000;
      --green: #2fd98a;
      --green-light: #0a2a1c;
      --red: #ff6b6b;
      --bg: #070e1a; /* Pure deep navy */
      --bg2: #0d1a2d;
      --card: rgba(13, 26, 45, 0.85); /* Glass base */
      --text: #e8f0fb;
      --muted: #8ba3bc;
      --border: rgba(255, 255, 255, 0.08);
      --border2: rgba(255, 255, 255, 0.15);
      --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
      --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
      --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6);
      --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.7);
      --input-bg: rgba(7, 14, 26, 0.6);
      --aura-accent: #ffb400;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--f-body);
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
      transition: background-color 0.35s ease, color 0.2s ease;
    }

    *,
    *::before,
    *::after {
      transition: background-color 0.35s ease, border-color 0.35s ease, color 0.2s ease;
    }

    /* ═══════════════════════════════════════
       PAGE LAYOUT (standalone page)
    ═══════════════════════════════════════ */
    .page-topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      height: 60px;
      background: var(--card);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      box-shadow: var(--shadow-sm);
    }

    .topbar-brand {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      text-decoration: none;
    }

    .topbar-brand img {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--sky-mid);
    }

    .topbar-brand-name {
      font-family: var(--f-display);
      font-size: 1rem;
      color: var(--navy);
    }

    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .theme-toggle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--sky);
      border: 1.5px solid var(--border2);
      color: var(--blue);
      font-size: 0.9rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s;
    }

    .theme-toggle:hover {
      transform: rotate(20deg) scale(1.1);
    }

    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.4rem 0.9rem;
      border-radius: 8px;
      background: var(--bg2);
      border: 1px solid var(--border2);
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.2s, color 0.2s;
    }

    .back-link:hover {
      background: var(--sky);
      color: var(--blue);
    }

    /* ═══════════════════════════════════════
       MAIN CHAT PAGE
    ═══════════════════════════════════════ */
    .chat-page {
      display: flex;
      height: 100vh;
      padding-top: 0;
    }

    /* LEFT PANEL */
    .chat-sidebar {
      width: 280px;
      flex-shrink: 0;
      background: linear-gradient(180deg, #0b2240 0%, #123460 100%);
      display: flex;
      flex-direction: column;
      border-right: 1px solid rgba(255, 255, 255, 0.06);
      overflow-y: auto;
    }

    .cs-header {
      padding: 1.8rem 1.5rem 1.2rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .cs-aura-name {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.6rem;
    }

    .aura-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      flex-shrink: 0;
      background: linear-gradient(135deg, #f5a623, #2d8dd9, #0b2240);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--f-display);
      font-size: 1.1rem;
      color: #fff;
      font-weight: 700;
      box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.3);
      animation: auraGlow 3s ease-in-out infinite;
    }

    @keyframes auraGlow {

      0%,
      100% {
        box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.3), 0 0 20px rgba(245, 166, 35, 0.1)
      }

      50% {
        box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.5), 0 0 30px rgba(245, 166, 35, 0.2)
      }
    }

    .aura-title {
      font-family: var(--f-display);
      font-size: 1.25rem;
      color: #fff;
      line-height: 1.1;
    }

    .aura-subtitle {
      font-size: 0.7rem;
      color: rgba(255, 255, 255, 0.5);
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .cs-status {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 0.8rem;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #16a96b;
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1)
      }

      50% {
        opacity: 0.6;
        transform: scale(1.3)
      }
    }

    .status-text {
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.6);
    }

    .cs-section {
      padding: 1rem 1.2rem 0.5rem;
    }

    .cs-section-label {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.3);
      margin-bottom: 0.6rem;
    }

    .quick-topic {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.6rem 0.75rem;
      border-radius: 10px;
      color: rgba(255, 255, 255, 0.65);
      font-size: 0.82rem;
      font-weight: 500;
      cursor: pointer;
      border: none;
      background: none;
      width: 100%;
      text-align: left;
      font-family: var(--f-body);
      transition: background 0.2s, color 0.2s;
    }

    .quick-topic i {
      width: 16px;
      text-align: center;
      font-size: 0.85rem;
      color: var(--gold);
      flex-shrink: 0;
    }

    .quick-topic:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
    }

    .quick-topic.active {
      background: rgba(245, 166, 35, 0.15);
      color: var(--gold);
    }

    .cs-stats {
      margin: 1rem 1.2rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 1rem;
    }

    .cs-stat-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
    }

    .cs-stat-row:last-child {
      margin-bottom: 0;
    }

    .cs-stat-label {
      font-size: 0.72rem;
      color: rgba(255, 255, 255, 0.45);
    }

    .cs-stat-val {
      font-size: 0.72rem;
      color: rgba(255, 255, 255, 0.75);
      font-weight: 600;
    }

    .cs-footer {
      margin-top: auto;
      padding: 1rem 1.2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .cs-footer p {
      font-size: 0.7rem;
      color: rgba(255, 255, 255, 0.3);
      text-align: center;
      line-height: 1.5;
    }

    /* RIGHT: CHAT AREA */
    .chat-area {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /* CHAT HEADER */
    .chat-header {
      padding: 0.9rem 1.5rem;
      background: var(--card);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      position: sticky;
      top: 0;
      z-index: 10;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .chat-header-left {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .chat-header-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: linear-gradient(135deg, #f5a623, #2d8dd9);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--f-display);
      font-size: 0.85rem;
      color: #fff;
      font-weight: 700;
    }

    .chat-header-name {
      font-family: var(--f-display);
      font-size: 1rem;
      color: var(--navy);
    }

    .chat-header-status {
      font-size: 0.72rem;
      color: var(--green);
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }

    .chat-header-status::before {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--green);
    }

    .chat-header-actions {
      display: flex;
      gap: 0.5rem;
    }

    .hdr-btn {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: var(--bg2);
      border: 1px solid var(--border);
      color: var(--muted);
      font-size: 0.82rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, color 0.2s;
    }

    .hdr-btn:hover {
      background: var(--sky);
      color: var(--blue);
    }

    /* MESSAGES */
    .chat-messages {
      flex: 1;
      padding: 2rem;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      background: var(--bg);
      position: relative;
    }

    /* PREMIUM WALLPAPER PATTERN */
    .chat-messages::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-image: radial-gradient(var(--border2) 1px, transparent 1px);
      background-size: 32px 32px;
      opacity: 0.15;
      pointer-events: none;
      z-index: 0;
    }

    .msg-row {
      display: flex;
      gap: 1rem;
      max-width: 85%;
      animation: msgSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      position: relative;
      z-index: 1;
    }

    @keyframes msgSlideUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .msg-row.user {
      align-self: flex-end;
      flex-direction: row-reverse;
    }

    .msg-row.bot {
      align-self: flex-start;
    }

    .msg-avatar {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      overflow: hidden;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-sm);
      background: var(--card);
      border: 1.5px solid var(--border);
    }

    .msg-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .msg-avatar.bot-av {
      border-color: var(--gold);
    }

    .msg-avatar.user-av {
      border-color: var(--blue);
    }

    .msg-content {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .msg-bubble {
      padding: 1rem 1.25rem;
      border-radius: 20px;
      font-size: 0.95rem;
      line-height: 1.6;
      box-shadow: var(--shadow-sm);
      position: relative;
    }

    .msg-row.bot .msg-bubble {
      background: var(--card);
      color: var(--text);
      border: 1px solid var(--border);
      border-top-left-radius: 4px;
      backdrop-filter: blur(10px);
    }

    .msg-row.user .msg-bubble {
      background: linear-gradient(135deg, var(--blue), #124075);
      color: #fff;
      border-top-right-radius: 4px;
    }

    [data-theme="dark"] .msg-row.user .msg-bubble {
      background: linear-gradient(135deg, #2d4a6e, #1a2a3f);
      border: 1px solid rgba(91, 168, 245, 0.2);
    }

    .msg-time {
      font-size: 0.68rem;
      color: var(--muted);
      font-weight: 500;
      margin-top: 2px;
    }

    .msg-row.user .msg-time { text-align: right; }

    /* Typing indicator */
    .typing-indicator {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 0.75rem 1rem;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      border-bottom-left-radius: 4px;
      width: fit-content;
      box-shadow: var(--shadow-sm);
    }

    .typing-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--muted);
      animation: typingBounce 1.2s ease-in-out infinite;
    }

    .typing-dot:nth-child(2) {
      animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
      animation-delay: 0.4s;
    }

    @keyframes typingBounce {

      0%,
      60%,
      100% {
        transform: translateY(0)
      }

      30% {
        transform: translateY(-6px)
      }
    }

    /* SUGGESTIONS */
    .suggestions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-top: 0.5rem;
      animation: fadeIn 0.5s ease-out 0.3s both;
    }

    .suggestion-chip {
      padding: 0.45rem 1.1rem;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      background: var(--card);
      border: 1px solid var(--border2);
      color: var(--text);
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      box-shadow: var(--shadow-sm);
    }

    .suggestion-chip:hover {
      transform: translateY(-2px) scale(1.03);
      border-color: var(--gold);
      box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
      background: var(--sky);
      color: var(--blue);
    }

    .suggestion-chip i {
      font-size: 0.9rem;
      opacity: 0.8;
    }

    /* Message markdown-like formatting */
    .msg-bubble strong {
      font-weight: 700;
    }

    .msg-bubble ul {
      padding-left: 1.2rem;
      margin: .3rem 0;
    }

    .msg-bubble li {
      margin-bottom: 0.2rem;
    }

    .msg-bubble a {
      color: var(--blue-light);
      text-decoration: underline;
    }

    .msg-row.user .msg-bubble a {
      color: rgba(255, 255, 255, 0.85);
    }

    .msg-bubble code {
      background: rgba(0, 0, 0, 0.08);
      border-radius: 4px;
      padding: 1px 5px;
      font-size: 0.83em;
    }

    .msg-bubble .highlight {
      background: rgba(245, 166, 35, 0.15);
      border-left: 3px solid var(--gold);
      border-radius: 0 6px 6px 0;
      padding: 0.4rem 0.7rem;
      margin: 0.4rem 0;
      font-size: 0.85em;
    }

    /* WELCOME CARD */
    .welcome-card {
      background: linear-gradient(135deg, #0b2240 0%, #123460 60%, #0f4d8a 100%);
      border-radius: 20px;
      padding: 1.8rem;
      margin-bottom: 0.5rem;
      position: relative;
      overflow: hidden;
    }

    .welcome-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
      background-size: 32px 32px;
    }

    .wc-inner {
      position: relative;
      z-index: 1;
    }

    .wc-title {
      font-family: var(--f-display);
      font-size: 1.4rem;
      color: #fff;
      margin-bottom: 0.4rem;
    }

    .wc-title em {
      font-style: italic;
      color: var(--gold);
    }

    .wc-sub {
      font-size: 0.84rem;
      color: rgba(255, 255, 255, 0.65);
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .wc-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .wc-chip {
      padding: 0.3rem 0.8rem;
      border-radius: 50px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: rgba(255, 255, 255, 0.85);
      font-size: 0.75rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
      font-family: var(--f-body);
    }

    .wc-chip:hover {
      background: rgba(255, 255, 255, 0.22);
    }

    /* INPUT AREA */
    .chat-input-area {
      padding: 1.25rem 2rem;
      background: rgba(var(--bg-rgb), 0.8);
      backdrop-filter: blur(20px);
      border-top: 1px solid var(--border);
      flex-shrink: 0;
      box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
      position: relative;
      z-index: 10;
    }

    .input-row {
      display: flex;
      align-items: flex-end;
      gap: 1rem;
      background: var(--input-bg);
      padding: 0.6rem 0.8rem;
      border-radius: 18px;
      border: 1.5px solid var(--border);
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .input-row:focus-within {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
    }

    .chat-textarea {
      flex: 1;
      padding: 0.78rem 1rem;
      border: none;
      border-radius: 14px;
      font-family: var(--f-body);
      font-size: 0.92rem;
      color: var(--text);
      background: transparent;
      outline: none;
      resize: none;
      min-height: 46px;
      max-height: 140px;
      transition: border-color 0.2s, box-shadow 0.2s;
      line-height: 1.5;
    }

    .chat-textarea:focus {
      border-color: var(--blue-light);
      box-shadow: 0 0 0 3px rgba(45, 141, 217, 0.12);
    }

    .chat-textarea::placeholder {
      color: var(--muted);
      opacity: 0.6;
    }

    .send-btn {
      width: 46px;
      height: 46px;
      border-radius: 14px;
      flex-shrink: 0;
      background: #0b2240;
      color: #fff;
      border: none;
      font-size: 1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, transform 0.15s;
    }

    .send-btn:hover:not(:disabled) {
      background: #1a5fa8;
      transform: translateY(-2px);
    }

    .send-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    [data-theme="dark"] .send-btn {
      background: #f5a623;
      color: #0b2240;
    }

    [data-theme="dark"] .send-btn:hover:not(:disabled) {
      background: #e09318;
    }

    .input-hint {
      font-size: 0.7rem;
      color: var(--muted);
      margin-top: 0.5rem;
      text-align: center;
    }

    /* ═══════════════════════════════════════
       FLOATING WIDGET (embed in other pages)
    ═══════════════════════════════════════ */
    /* FAB BUTTON */
    #aura-fab {
      position: fixed;
      bottom: 1.8rem;
      right: 1.8rem;
      z-index: 8888;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: linear-gradient(135deg, #0b2240, #1a5fa8);
      color: #fff;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 32px rgba(11, 34, 64, 0.35);
      transition: transform 0.3s cubic-bezier(.2, .8, .3, 1), box-shadow 0.3s;
      font-size: 1.25rem;
    }

    #aura-fab:hover {
      transform: scale(1.12) translateY(-3px);
      box-shadow: 0 14px 40px rgba(11, 34, 64, 0.45);
    }

    #aura-fab.open {
      transform: rotate(45deg) scale(1.05);
    }

    .fab-pulse {
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 2px solid rgba(45, 141, 217, 0.4);
      animation: fabPulse 2.5s ease-in-out infinite;
    }

    @keyframes fabPulse {

      0%,
      100% {
        transform: scale(1);
        opacity: 0.7
      }

      50% {
        transform: scale(1.15);
        opacity: 0
      }
    }

    .fab-badge {
      position: absolute;
      top: -2px;
      right: -2px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #f5a623;
      color: #0b2240;
      font-size: 0.6rem;
      font-weight: 700;
      display: none;
      align-items: center;
      justify-content: center;
      border: 2px solid #fff;
    }

    .fab-badge.show {
      display: flex;
    }

    .fab-label {
      position: absolute;
      right: calc(100% + 0.75rem);
      white-space: nowrap;
      background: #0b2240;
      color: #fff;
      padding: 0.35rem 0.8rem;
      border-radius: 8px;
      font-size: 0.78rem;
      font-weight: 600;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
      font-family: 'Plus Jakarta Sans', sans-serif;
    }

    #aura-fab:hover .fab-label {
      opacity: 1;
    }

    /* WIDGET PANEL */
    #aura-widget {
      position: fixed;
      bottom: 6rem;
      right: 1.8rem;
      z-index: 8887;
      width: 380px;
      max-width: calc(100vw - 2rem);
      height: 560px;
      max-height: calc(100vh - 8rem);
      background: var(--card);
      border: 1px solid var(--border2);
      border-radius: 24px;
      box-shadow: var(--shadow-xl);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transform: scale(0.9) translateY(20px);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.35s cubic-bezier(.2, .8, .3, 1), opacity 0.3s ease;
      transform-origin: bottom right;
    }

    #aura-widget.open {
      transform: scale(1) translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    /* WIDGET HEADER */
    .widget-header {
      padding: 1rem 1.1rem 0.9rem;
      background: linear-gradient(135deg, #0b2240 0%, #123460 60%, #1a5fa8 100%);
      flex-shrink: 0;
      position: relative;
      overflow: hidden;
    }

    .widget-header::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
      background-size: 28px 28px;
    }

    .wh-inner {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .wh-left {
      display: flex;
      align-items: center;
      gap: 0.65rem;
    }

    .wh-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: linear-gradient(135deg, #f5a623, #2d8dd9);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--f-display);
      font-size: 0.9rem;
      color: #fff;
      font-weight: 700;
      box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.4);
    }

    .wh-name {
      font-family: var(--f-display);
      font-size: 1.05rem;
      color: #fff;
    }

    .wh-status {
      font-size: 0.68rem;
      color: rgba(255, 255, 255, 0.6);
      display: flex;
      align-items: center;
      gap: 0.3rem;
      margin-top: 1px;
    }

    .wh-status::before {
      content: '';
      display: inline-block;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #2fd98a;
    }

    .wh-actions {
      display: flex;
      gap: 0.35rem;
    }

    .wh-btn {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      background: rgba(255, 255, 255, 0.12);
      border: none;
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.78rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .wh-btn:hover {
      background: rgba(255, 255, 255, 0.22);
    }

    /* WIDGET MESSAGES */
    .widget-messages {
      flex: 1;
      overflow-y: auto;
      padding: 0.9rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      background: var(--bg);
    }

    .widget-messages::-webkit-scrollbar {
      width: 3px;
    }

    .widget-messages::-webkit-scrollbar-thumb {
      background: var(--border2);
      border-radius: 2px;
    }

    .w-msg-row {
      display: flex;
      gap: 0.5rem;
      max-width: 90%;
      animation: msgIn 0.3s ease;
    }

    .w-msg-row.user {
      align-self: flex-end;
      flex-direction: row-reverse;
    }

    .w-msg-row.bot {
      align-self: flex-start;
    }

    .w-msg-av {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      font-weight: 700;
      margin-top: 2px;
    }

    .w-msg-av.bot-av {
      background: linear-gradient(135deg, #f5a623, #2d8dd9);
      color: #fff;
      font-family: var(--f-display);
    }

    .w-msg-av.user-av {
      background: linear-gradient(135deg, #1a5fa8, #0b2240);
      color: #fff;
    }

    .w-bubble {
      padding: 0.6rem 0.85rem;
      border-radius: 14px;
      font-size: 0.83rem;
      line-height: 1.6;
      word-break: break-word;
    }

    .w-msg-row.bot .w-bubble {
      background: var(--card);
      color: var(--text);
      border: 1px solid var(--border);
      border-bottom-left-radius: 3px;
      box-shadow: var(--shadow-sm);
    }

    .w-msg-row.user .w-bubble {
      background: linear-gradient(135deg, #0b2240, #1a5fa8);
      color: #fff;
      border-bottom-right-radius: 3px;
    }

    [data-theme="dark"] .w-msg-row.user .w-bubble {
      background: linear-gradient(135deg, #f5a623, #e09318);
      color: #0b2240;
    }

    .w-typing {
      display: flex;
      align-items: center;
      gap: 3px;
      padding: 0.6rem 0.85rem;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      border-bottom-left-radius: 3px;
      width: fit-content;
      box-shadow: var(--shadow-sm);
    }

    .w-typing-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--muted);
      animation: typingBounce 1.2s ease-in-out infinite;
    }

    .w-typing-dot:nth-child(2) {
      animation-delay: 0.2s;
    }

    .w-typing-dot:nth-child(3) {
      animation-delay: 0.4s;
    }

    /* WIDGET QUICK REPLIES */
    .w-suggestions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin-top: 0.15rem;
      padding-left: 2rem;
    }

    .w-chip {
      padding: 0.25rem 0.65rem;
      border-radius: 50px;
      border: 1.5px solid var(--border2);
      background: var(--card);
      color: var(--blue);
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      font-family: var(--f-body);
      transition: all 0.15s;
    }

    .w-chip:hover {
      background: var(--sky);
      border-color: var(--blue);
    }

    /* WIDGET INPUT */
    .widget-input-area {
      padding: 0.75rem;
      background: var(--card);
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }

    .w-input-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .w-textarea {
      flex: 1;
      padding: 0.6rem 0.85rem;
      border: 1.5px solid var(--border2);
      border-radius: 12px;
      font-family: var(--f-body);
      font-size: 0.85rem;
      color: var(--text);
      background: var(--input-bg);
      outline: none;
      resize: none;
      min-height: 40px;
      max-height: 100px;
      transition: border-color 0.2s, box-shadow 0.2s;
      line-height: 1.4;
    }

    .w-textarea:focus {
      border-color: var(--blue-light);
      box-shadow: 0 0 0 3px rgba(45, 141, 217, 0.1);
    }

    .w-textarea::placeholder {
      color: var(--muted);
      opacity: 0.6;
    }

    .w-send-btn {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: #0b2240;
      color: #fff;
      border: none;
      font-size: 0.9rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.2s, transform 0.15s;
    }

    .w-send-btn:hover:not(:disabled) {
      background: #1a5fa8;
      transform: translateY(-1px);
    }

    .w-send-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    [data-theme="dark"] .w-send-btn {
      background: #f5a623;
      color: #0b2240;
    }

    [data-theme="dark"] .w-send-btn:hover:not(:disabled) {
      background: #e09318;
    }

    /* POWERED BY */
    .w-powered {
      font-size: 0.62rem;
      color: var(--muted);
      text-align: center;
      margin-top: 0.4rem;
      opacity: 0.7;
    }

    /* RESPONSIVE */
    @media(max-width:900px) {
      .chat-sidebar {
        display: none;
      }

      .chat-page {
        padding-top: 0; /* Header is inside main now */
      }

      .full-page-chatbot .chat-header {
        height: 64px;
        padding: 0 1rem;
      }

      .chat-header-title {
        font-size: 0.95rem;
      }
    }
    
    .hdr-btn {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: var(--input-bg);
      border: 1px solid var(--border);
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      transition: all 0.2s;
      cursor: pointer;
    }
    
    .hdr-btn:hover {
      background: var(--sky);
      border-color: var(--blue);
      color: var(--blue);
      transform: translateY(-2px);
    }

    @media(max-width:600px) {
      .mobile-bottom-nav {
        display: flex;
      }
      
      .chat-messages {
        padding: 1rem;
      }

      .chat-input-area {
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + 72px); /* Space for bottom nav */
      }
      
      .hdr-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
      }
    }


    /* PREMIUM MOBILE CHATBOT UI - NO SCROLL, NO COMPACT LOOK */
    @media (max-width: 480px) {
      .suggestions-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 15px 5px !important;
        width: 100% !important;
        margin: 10px 0 20px !important;
        border: none !important;
      }

      .suggestion-chip {
        padding: 12px 22px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        border-radius: 50px !important;
        background: linear-gradient(135deg, var(--blue), var(--navy)) !important;
        color: white !important;
        border: 1.5px solid var(--gold) !important;
        box-shadow: 0 6px 15px rgba(0,0,0,0.3) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        height: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 4px !important;
      }

      .suggestion-chip i {
        font-size: 1.1rem !important;
        margin-right: 8px !important;
        color: var(--gold) !important;
      }

      .chat-messages {
        padding-bottom: 50px !important;
      }
    }
