
    /* =====================================================
   DESIGN SYSTEM "” DefesaExpress (Onyx + Gold)
   ===================================================== */
    :root {
      --gold: #D4AF37;
      --gold-light: #F4E4BC;
      --gold-dark: #B8860B;
      --gold-glow: rgba(212, 175, 55, .4);
      --success: #22c55e;
      --warning: #f59e0b;
      --error: #ef4444;
      --info: #3b82f6;
      --onyx-bg: #09090B;
      --onyx-surface: #18181B;
      --onyx-surface-2: #1f1f23;
      --onyx-border: rgba(255, 255, 255, .08);
      --text-primary: #FAFAFA;
      --text-secondary: rgba(255, 255, 255, .7);
      --text-muted: rgba(255, 255, 255, .5);
      --blur: blur(20px) saturate(140%);
      --shadow: 0 8px 32px rgba(0, 0, 0, .4);
      --shadow-gold: 0 8px 32px rgba(212, 175, 55, .18);
      --radius-card: 16px;
      --radius-btn: 24px;
      --radius-input: 12px;
      --nav-h: 64px;
    }

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

    html,
    body {
      height: 100%
    }

    body {
      font-family: var(--font-body);
      background: var(--onyx-bg);
      color: var(--text-primary);
      overflow: hidden;
      -webkit-font-smoothing: antialiased;
      background-image:
        radial-gradient(1200px 600px at 10% -10%, rgba(212, 175, 55, .12), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(59, 130, 246, .06), transparent 60%);
    }

    h1,
    h2,
    h3,
    h4,
    h5 {
      font-family: var(--font-display);
      letter-spacing: -.01em
    }

    code,
    pre {
      font-family: 'JetBrains Mono', monospace
    }

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      background: none;
      color: inherit
    }

    input,
    textarea,
    select {
      font-family: inherit;
      color: inherit
    }

    a {
      color: inherit;
      text-decoration: none
    }

    ::-webkit-scrollbar {
      width: 8px;
      height: 8px
    }

    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, .08);
      border-radius: 8px
    }

    ::-webkit-scrollbar-thumb:hover {
      background: rgba(212, 175, 55, .3)
    }

    /* =====================================================
   NAVBAR
   ===================================================== */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: var(--nav-h);
      background: rgba(11, 11, 15, .85);
      backdrop-filter: var(--blur);
      -webkit-backdrop-filter: var(--blur);
      border-bottom: 1px solid var(--onyx-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      z-index: 100;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      height: 40px;
      flex-shrink: 1;
      min-width: 0;
    }

    .logo-mark {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--gold), var(--gold-dark));
      display: flex;
      align-items: center;
      justify-content: center;
      color: #111;
      box-shadow: 0 0 20px var(--gold-glow);
      animation: pulseGold 3s infinite;
      flex-shrink: 0;
    }

    .logo-mark i,
    .logo-mark svg {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px
    }

    .logo-text {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 700;
      display: block;
      line-height: 40px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      min-width: 0;
      margin: 0;
      padding: 0
    }

    .logo-text span {
      background: linear-gradient(135deg, var(--gold-light), var(--gold));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    @keyframes pulseGold {

      0%,
      100% {
        box-shadow: 0 0 20px var(--gold-glow)
      }

      50% {
        box-shadow: 0 0 32px rgba(212, 175, 55, .7)
      }
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 6px
    }

    .nav-links a {
      padding: 8px 14px;
      border-radius: 10px;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 500;
      transition: .2s;
    }

    .nav-links a:hover {
      color: var(--gold);
      background: rgba(212, 175, 55, .08)
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 14px
    }

    .avatar {
      box-sizing: border-box;
      padding: 0 !important;
      min-width: 38px !important;
      min-height: 38px !important;
      width: 38px;
      height: 38px;
      border-radius: 6px;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      margin: 0;
      transition: transform .2s, box-shadow .2s;
      position: relative;
    }

    .avatar-menu {
      position: absolute;
      top: 54px;
      right: 18px;
      min-width: 200px;
      background: rgba(24, 24, 27, .95);
      backdrop-filter: var(--blur);
      border: 1px solid var(--onyx-border);
      border-radius: 14px;
      padding: 8px;
      box-shadow: var(--shadow);
      display: none;
      z-index: 200;
    }

    .avatar-menu.open {
      display: block
    }

    .avatar-menu button {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      font-size: 14px;
      color: var(--text-secondary);
    }

    .avatar-menu button:hover {
      background: rgba(255, 255, 255, .05);
      color: var(--text-primary)
    }

    .menu-toggle {
      display: none;
      background: rgba(255, 255, 255, .05);
      border-radius: 10px;
      padding: 8px
    }

    /* =====================================================
   LAYOUT
   ===================================================== */
    .app {
      position: fixed;
      top: var(--nav-h);
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
    }

    /* SIDEBAR */
    .sidebar {
      max-width: 320px; width: 100%;
      flex-shrink: 0;
      background: rgba(11, 11, 15, .6);
      backdrop-filter: var(--blur);
      -webkit-backdrop-filter: var(--blur);
      border-right: 1px solid var(--onyx-border);
      display: flex;
      flex-direction: column;
      transition: transform .3s ease;
    }

    .sidebar-section {
      padding: 16px
    }

    .sidebar-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .12em;
      color: var(--text-muted);
      font-weight: 600;
      margin: 8px 4px 12px;
    }

    .btn-new-chat {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border-radius: var(--radius-card);
      background: linear-gradient(135deg, var(--gold), var(--gold-dark));
      color: #0a0a0a;
      font-weight: 700;
      box-shadow: var(--shadow-gold);
      transition: .2s;
    }

    .btn-new-chat:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 36px rgba(212, 175, 55, .3)
    }

    .btn-new-chat .icon-circle {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: rgba(0, 0, 0, .18);
      display: grid;
      place-items: center;
    }

    .btn-new-chat .label {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      line-height: 1.2
    }

    .btn-new-chat .label small {
      font-weight: 500;
      font-size: 11px;
      opacity: .7
    }

    .history {
      flex: 1;
      overflow-y: auto;
      padding: 0 12px 12px;
      display: flex;
      flex-direction: column;
      gap: 8px
    }

    .history-empty {
      padding: 24px 12px;
      text-align: center;
      color: var(--text-muted);
      font-size: 13px;
      border: 1px dashed var(--onyx-border);
      border-radius: 12px;
      margin: 8px 4px;
    }

    .chat-item {
      background: rgba(255, 255, 255, .03);
      border: 1px solid var(--onyx-border);
      border-radius: 14px;
      padding: 12px 14px;
      cursor: pointer;
      transition: .2s;
      position: relative;
    }

    .chat-item:hover {
      background: rgba(212, 175, 55, .08);
      border-color: rgba(212, 175, 55, .25)
    }

    .chat-item.active {
      background: rgba(212, 175, 55, .12);
      border-color: var(--gold)
    }

    .chat-item .ci-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 4px
    }

    .chat-item .ci-icon {
      color: var(--gold);
      display: grid;
      place-items: center
    }

    .chat-item .ci-title {
      font-weight: 600;
      font-size: 13px;
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .chat-item .ci-time {
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 4px
    }

    .chat-item .ci-preview {
      font-size: 12px;
      color: var(--text-secondary);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .chat-item .ci-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background: var(--gold);
      color: #0a0a0a;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 10px;
    }

    .chat-item .ci-check {
      position: absolute;
      top: 12px;
      right: 12px;
      color: var(--success)
    }

    .sidebar-divider {
      height: 1px;
      background: var(--onyx-border);
      margin: 0 16px
    }

    .quick-menu {
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 6px
    }

    .quick-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border-radius: 12px;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 500;
      transition: .2s;
    }

    .quick-item:hover {
      background: rgba(212, 175, 55, .08);
      color: var(--gold)
    }

    .quick-item .ico {
      width: 32px;
      height: 32px;
      border-radius: 9px;
      background: rgba(255, 255, 255, .04);
      display: grid;
      place-items: center;
      color: var(--gold);
    }

    /* MAIN */
    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-width: 0;
      background: radial-gradient(800px 400px at 50% -10%, rgba(212, 175, 55, .06), transparent 60%);
    }

    .view {
      display: none;
      flex: 1;
      min-height: 0;
      flex-direction: column;
      animation: fadeIn .25s ease
    }

    .view.active {
      display: flex
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(8px)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    /* WELCOME */
    .welcome {
      align-items: center;
      padding: 32px;
      text-align: center;
      overflow-y: auto;
    }

    .welcome-inner {
      max-width: 560px;
      width: 100%;
      margin: auto auto 20px auto;
    }

    .welcome-icon {
      width: 96px;
      height: 96px;
      border-radius: 6px;
      margin: 48px auto 24px;
      background: linear-gradient(135deg, rgba(212, 175, 55, .2), rgba(212, 175, 55, .05));
      border: 1px solid rgba(212, 175, 55, .3);
      display: grid;
      place-items: center;
      color: var(--gold);
      box-shadow: 0 0 60px rgba(212, 175, 55, .25);
    }

    .welcome h1 {
      font-size: 34px;
      font-weight: 700;
      margin-bottom: 12px;
      background: linear-gradient(135deg, #fff, var(--gold-light));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .welcome p {
      color: var(--text-secondary);
      font-size: 16px;
      line-height: 1.6;
      margin-bottom: 32px
    }

    .action-grid {
      display: flex;
      flex-direction: column;
      gap: 12px
    }

    .action-card {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px;
      background: rgba(24, 24, 27, .6);
      backdrop-filter: var(--blur);
      border: 1px solid var(--onyx-border);
      border-radius: var(--radius-card);
      text-align: left;
      transition: .2s;
    }

    .action-card:hover {
      border-color: rgba(212, 175, 55, .4);
      transform: translateY(-2px);
      box-shadow: var(--shadow-gold)
    }

    .action-card .ac-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      background: rgba(212, 175, 55, .12);
      color: var(--gold);
      display: grid;
      place-items: center;
      flex-shrink: 0;
    }

    .action-card .ac-title {
      font-weight: 600;
      font-size: 15px;
      margin-bottom: 2px
    }

    .action-card .ac-sub {
      font-size: 13px;
      color: var(--text-muted)
    }

    /* VIEW HEADER */
    .view-header {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 20px;
      border-bottom: 1px solid var(--onyx-border);
      background: rgba(24, 24, 27, .4);
      backdrop-filter: var(--blur);
    }

    .btn-back {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: rgba(255, 255, 255, .05);
      display: grid;
      place-items: center;
      color: var(--text-secondary);
      transition: .2s;
    }

    .btn-back:hover {
      background: rgba(212, 175, 55, .12);
      color: var(--gold)
    }

    .vh-info {
      flex: 1;
      min-width: 0
    }

    .vh-title {
      font-weight: 600;
      font-size: 15px;
      display: flex;
      align-items: center;
      gap: 8px
    }

    .vh-sub {
      font-size: 12px;
      color: var(--text-muted);
      font-family: 'JetBrains Mono'
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
    }

    .badge-active {
      background: rgba(34, 197, 94, .15);
      color: var(--success);
      border: 1px solid rgba(34, 197, 94, .3)
    }

    .badge-pending {
      background: rgba(245, 158, 11, .15);
      color: var(--warning);
      border: 1px solid rgba(245, 158, 11, .3)
    }

    .badge-closed {
      background: rgba(255, 255, 255, .05);
      color: var(--text-muted);
      border: 1px solid var(--onyx-border)
    }

    .dot {
      width: 6px;
      height: 6px;
      border-radius: 6px;
      background: currentColor;
      animation: blink 1.6s infinite
    }

    @keyframes blink {
      50% {
        opacity: .4
      }
    }

    /* CHAT */
    .chat-view {
      display: none;
      flex-direction: column;
      flex: 1;
      min-height: 0
    }

    .chat-view.active {
      display: flex
    }

    .messages {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .date-sep {
      text-align: center;
      color: var(--text-muted);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .1em;
      margin: 8px 0;
    }

    .msg {
      display: flex;
      flex-direction: column;
      max-width: 72%;
      animation: msgIn .3s ease
    }

    @keyframes msgIn {
      from {
        opacity: 0;
        transform: translateY(6px)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    .msg.user {
      align-self: flex-end;
      align-items: flex-end
    }

    .msg.support {
      align-self: flex-start;
      align-items: flex-start
    }

    .msg-author {
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 6px
    }

    .msg-bubble {
      padding: 12px 16px;
      border-radius: 18px;
      font-size: 14px;
      line-height: 1.5;
      word-wrap: break-word;
      border: 1px solid var(--onyx-border);
    }

    .msg.user .msg-bubble {
      background: rgba(212, 175, 55, .10);
      border-color: rgba(212, 175, 55, .3);
      border-bottom-right-radius: 6px;
    }

    .msg.support .msg-bubble {
      background: var(--onyx-surface);
      border-bottom-left-radius: 6px;
    }

    .msg-meta {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 4px;
      display: flex;
      gap: 6px;
      align-items: center
    }

    .btn-audio-play {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      background: rgba(212, 175, 55, .15);
      border: 1px solid rgba(212, 175, 55, .3);
      color: var(--gold);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: .2s;
      padding: 0;
      margin-left: 4px;
    }

    .btn-audio-play:hover {
      background: rgba(212, 175, 55, .3);
      transform: scale(1.1)
    }

    .msg.user .msg-meta .check {
      color: var(--text-muted)
    }

    .msg.user.read .msg-meta .check {
      color: var(--gold)
    }

    .attachment {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: rgba(255, 255, 255, .05);
      border-radius: 10px;
      font-size: 13px;
      margin-top: 6px;
    }

    .typing {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      color: var(--text-muted);
      font-size: 12px
    }

    .typing-dots {
      display: inline-flex;
      gap: 3px
    }

    .typing-dots span {
      width: 6px;
      height: 6px;
      border-radius: 6px;
      background: var(--gold);
      animation: typing 1.4s infinite
    }

    .typing-dots span:nth-child(2) {
      animation-delay: .2s
    }

    .typing-dots span:nth-child(3) {
      animation-delay: .4s
    }

    @keyframes typing {

      0%,
      60%,
      100% {
        transform: translateY(0);
        opacity: .4
      }

      30% {
        transform: translateY(-4px);
        opacity: 1
      }
    }

    .composer {
      border-top: 1px solid var(--onyx-border);
      padding: 14px 20px;
      background: rgba(24, 24, 27, .5);
      backdrop-filter: var(--blur);
    }

    .composer-row {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      background: var(--onyx-surface);
      border: 1px solid var(--onyx-border);
      border-radius: 18px;
      padding: 8px;
      transition: .2s;
    }

    .composer-row:focus-within {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(212, 175, 55, .15)
    }

    .composer-btn {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      transition: .2s;
      flex-shrink: 0;
      border: none;
      background: transparent;
      cursor: pointer;
      position: relative;
    }

    .composer-btn svg {
      width: 18px !important;
      height: 18px !important;
      display: block !important;
      stroke: currentColor;
    }

    /* Emoji picker flutuante */
    #emojiPicker {
      display: none;
      position: absolute;
      bottom: 52px;
      left: 0;
      z-index: 999;
      background: var(--surface);
      border: 1px solid rgba(212, 175, 55, .2);
      border-radius: 14px;
      padding: 8px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
      display: none;
      flex-wrap: wrap;
      gap: 4px;
      width: 220px;
    }

    #emojiPicker.open {
      display: flex;
    }

    #emojiPicker span {
      font-size: 20px;
      cursor: pointer;
      padding: 4px;
      border-radius: 6px;
      transition: .15s;
      line-height: 1;
      user-select: none;
    }

    #emojiPicker span:hover {
      background: rgba(212, 175, 55, .15);
    }

    .composer-btn:hover {
      background: rgba(212, 175, 55, .1);
      color: var(--gold)
    }

    .composer-btn.recording {
      color: var(--danger) !important;
      animation: pulse-rec 1.2s infinite;
      background: transparent !important;
    }

    @keyframes pulse-rec {

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

      50% {
        transform: scale(1.15)
      }
    }

    #msgInput {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      resize: none;
      font-size: 14px;
      padding: 10px 4px;
      max-height: 120px;
      line-height: 1.5;
    }

    .btn-send {
      background: linear-gradient(135deg, var(--gold), var(--gold-dark));
      color: #0a0a0a;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 0 16px;
      height: 38px;
      border-radius: 12px;
      flex-shrink: 0;
      transition: .2s;
    }

    .btn-send:hover:not(:disabled) {
      box-shadow: var(--shadow-gold);
      transform: translateY(-1px)
    }

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

    /* Botão flutuante de minimizar chat */
    .chat-float-btn {
      position: fixed;
      bottom: 24px;
      right: 24px;
      width: 60px;
      height: 60px;
      border-radius: 6px;
      background: linear-gradient(135deg, var(--gold), var(--gold-dark));
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 32px rgba(212, 175, 55, .4);
      z-index: 9999;
      transition: all .3s cubic-bezier(.4, 0, .2, 1);
      animation: floatIn .4s ease;
    }

    .chat-float-btn:hover {
      transform: scale(1.08) translateY(-2px);
      box-shadow: 0 12px 40px rgba(212, 175, 55, .55);
    }

    .chat-float-btn:active {
      transform: scale(.95);
    }

    .chat-float-btn svg {
      width: 26px;
      height: 26px;
      color: #0a0a0f;
    }

    .chat-float-pulse {
      position: absolute;
      inset: -4px;
      border-radius: 6px;
      border: 2px solid var(--gold);
      opacity: 0;
      animation: pulseRing 2.5s ease-out infinite;
    }

    @keyframes pulseRing {
      0% {
        transform: scale(1);
        opacity: .6;
      }

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

    @keyframes floatIn {
      from {
        opacity: 0;
        transform: translateY(20px) scale(.8);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .chat-float-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      width: 18px;
      height: 18px;
      border-radius: 6px;
      background: #ef4444;
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(239, 68, 68, .4);
    }

    /* Estado minimizado */
    .view.minimized {
      transform: translateY(100vh);
      opacity: 0;
      pointer-events: none;
      transition: all .4s cubic-bezier(.4, 0, .2, 1);
    }

    /* Botão minimizar no header */
    .btn-minimize {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      border: none;
      background: rgba(255, 255, 255, .06);
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: .2s;
      margin-left: 8px;
    }

    .btn-minimize:hover {
      background: rgba(255, 255, 255, .12);
      color: var(--text-primary);
    }

    .btn-minimize svg {
      width: 16px;
      height: 16px;
    }

    .composer-hint {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 6px;
      display: flex;
      justify-content: space-between
    }

    .attach-preview {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 8px
    }

    .attach-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      background: rgba(212, 175, 55, .1);
      border: 1px solid rgba(212, 175, 55, .3);
      border-radius: 6px;
      font-size: 12px;
      color: var(--gold);
    }

    .attach-chip button {
      color: var(--gold);
      display: grid;
      place-items: center
    }

    /* FAQ */
    .faq-body {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
      max-width: 820px;
      width: 100%;
      margin: 0 auto
    }

    .search-box {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 16px;
      background: var(--onyx-surface);
      border: 1px solid var(--onyx-border);
      border-radius: 14px;
      margin-bottom: 18px;
      transition: .2s;
    }

    .search-box:focus-within {
      border-color: var(--gold)
    }

    .search-box input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      font-size: 14px
    }

    .search-box svg {
      color: var(--text-muted)
    }

    .tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 20px;
      flex-wrap: wrap
    }

    .tab {
      padding: 8px 14px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      background: var(--onyx-surface);
      border: 1px solid var(--onyx-border);
      color: var(--text-secondary);
      transition: .2s;
    }

    .tab:hover {
      border-color: rgba(212, 175, 55, .3);
      color: var(--gold)
    }

    .tab.active {
      background: rgba(212, 175, 55, .15);
      border-color: var(--gold);
      color: var(--gold)
    }

    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 10px
    }

    .faq-item {
      background: var(--onyx-surface);
      border: 1px solid var(--onyx-border);
      border-radius: 14px;
      overflow: hidden;
      transition: .2s;
    }

    .faq-item:hover {
      border-color: rgba(212, 175, 55, .25)
    }

    .faq-q {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 18px;
      text-align: left;
      font-weight: 500;
      font-size: 14px;
    }

    .faq-q .chev {
      margin-left: auto;
      color: var(--text-muted);
      transition: .3s
    }

    .faq-item.open .chev {
      transform: rotate(180deg);
      color: var(--gold)
    }

    .faq-a {
      max-height: 0;
      overflow: hidden;
      transition: max-height .3s ease;
      padding: 0 18px;
      color: var(--text-secondary);
      font-size: 14px;
      line-height: 1.6;
    }

    .faq-item.open .faq-a {
      max-height: 400px;
      padding: 0 18px 16px
    }

    .faq-feedback {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--onyx-border);
      font-size: 12px;
      color: var(--text-muted)
    }

    .faq-feedback button {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      background: rgba(255, 255, 255, .04);
      display: grid;
      place-items: center;
      color: var(--text-secondary);
      transition: .2s;
    }

    .faq-feedback button:hover {
      background: rgba(212, 175, 55, .12);
      color: var(--gold)
    }

    .faq-feedback button.voted {
      background: rgba(212, 175, 55, .2);
      color: var(--gold)
    }

    .faq-no-results {
      text-align: center;
      padding: 40px 20px;
      color: var(--text-muted);
      border: 1px dashed var(--onyx-border);
      border-radius: 14px;
    }

    .faq-no-results button {
      margin-top: 12px;
      color: var(--gold);
      font-weight: 600;
      text-decoration: underline
    }

    mark {
      background: rgba(212, 175, 55, .3);
      color: var(--gold-light);
      border-radius: 3px;
      padding: 0 2px
    }

    /* TICKET */
    .ticket-body {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
      max-width: 680px;
      width: 100%;
      margin: 0 auto
    }

    .field {
      margin-bottom: 18px
    }

    .field label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--text-secondary)
    }

    .field label .req {
      color: var(--gold)
    }

    .field-input,
    .field-select,
    .field-textarea {
      width: 100%;
      background: var(--onyx-surface);
      border: 1px solid var(--onyx-border);
      border-radius: var(--radius-input);
      padding: 12px 14px;
      font-size: 14px;
      transition: .2s;
    }

    .field-input:focus,
    .field-select:focus,
    .field-textarea:focus {
      outline: none;
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
    }

    .field-textarea {
      min-height: 140px;
      resize: vertical;
      font-family: inherit
    }

    .field-input-wrap {
      position: relative;
      display: flex;
      align-items: center
    }

    .field-input-wrap svg {
      position: absolute;
      left: 14px;
      color: var(--text-muted);
      pointer-events: none
    }

    .field-input-wrap .field-input {
      padding-left: 42px
    }

    .dropzone {
      border: 2px dashed var(--onyx-border);
      border-radius: var(--radius-input);
      padding: 24px;
      text-align: center;
      color: var(--text-muted);
      font-size: 13px;
      cursor: pointer;
      transition: .2s;
    }

    .dropzone:hover,
    .dropzone.drag {
      border-color: var(--gold);
      background: rgba(212, 175, 55, .05);
      color: var(--gold)
    }

    .dropzone svg {
      margin-bottom: 8px
    }

    .btn-gold {
      width: 100%;
      padding: 14px 20px;
      border-radius: var(--radius-btn);
      background: linear-gradient(135deg, var(--gold), var(--gold-dark));
      color: #0a0a0a;
      font-weight: 700;
      font-size: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: .2s;
      box-shadow: var(--shadow-gold);
    }

    .btn-gold:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 12px 36px rgba(212, 175, 55, .35)
    }

    .btn-gold:disabled {
      opacity: .5;
      cursor: not-allowed
    }

    .btn-ghost {
      padding: 12px 18px;
      border-radius: var(--radius-btn);
      background: rgba(255, 255, 255, .04);
      border: 1px solid var(--onyx-border);
      color: var(--text-primary);
      font-weight: 600;
      font-size: 14px;
      transition: .2s;
    }

    .btn-ghost:hover {
      border-color: var(--gold);
      color: var(--gold)
    }

    .confirm-card {
      background: linear-gradient(135deg, rgba(34, 197, 94, .1), rgba(212, 175, 55, .05));
      border: 1px solid rgba(34, 197, 94, .3);
      border-radius: var(--radius-card);
      padding: 32px;
      text-align: center;
    }

    .confirm-card .ic {
      width: 72px;
      height: 72px;
      border-radius: 6px;
      background: rgba(34, 197, 94, .15);
      color: var(--success);
      display: grid;
      place-items: center;
      margin: 0 auto 16px;
    }

    .confirm-card h3 {
      font-size: 22px;
      margin-bottom: 8px
    }

    .confirm-card p {
      color: var(--text-secondary);
      margin-bottom: 6px
    }

    .confirm-card .ticket-num {
      display: inline-block;
      font-family: 'JetBrains Mono';
      font-size: 18px;
      background: rgba(212, 175, 55, .15);
      color: var(--gold);
      padding: 8px 16px;
      border-radius: 10px;
      margin: 12px 0;
    }

    
    #micBtn:hover, #emojiBtn:hover { color: var(--gold); }

    .chat-input-area button, .chat-input-area .chat-btn { min-width: 44px !important; min-height: 44px !important; width: 44px !important; height: 44px !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 10px !important; }
    .chat-input-area .chat-btn svg, .chat-input-area .chat-btn i { width: 20px !important; height: 20px !important; margin: 0 !important; }
    .chat-input-wrapper { padding: 6px 12px !important; }
.confirm-actions {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-top: 18px;
      flex-wrap: wrap
    }

    /* OFFLINE BANNER */
    .offline-banner {
      position: fixed;
      top: var(--nav-h);
      left: 0;
      right: 0;
      background: rgba(245, 158, 11, .15);
      border-bottom: 1px solid rgba(245, 158, 11, .3);
      color: var(--warning);
      font-size: 13px;
      text-align: center;
      padding: 8px;
      z-index: 50;
      display: none;
    }

    .offline-banner.show {
      display: block
    }

    /* TOAST */
    .toast-wrap {
      position: fixed;
      bottom: 20px;
      right: 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 300
    }

    .toast {
      background: var(--onyx-surface-2);
      border: 1px solid var(--onyx-border);
      border-radius: 12px;
      padding: 12px 16px;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: var(--shadow);
      min-width: 240px;
      animation: toastIn .3s ease;
    }

    .toast.success {
      border-color: rgba(34, 197, 94, .4)
    }

    .toast.error {
      border-color: rgba(239, 68, 68, .4)
    }

    .toast.info {
      border-color: rgba(59, 130, 246, .4)
    }

    @keyframes toastIn {
      from {
        transform: translateX(20px);
        opacity: 0
      }

      to {
        transform: none;
        opacity: 1
      }
    }

    /* MOBILE BOTTOM NAV */
    .bottom-nav {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(11, 11, 15, .95);
      backdrop-filter: var(--blur);
      border-top: 1px solid var(--onyx-border);
      z-index: 90;
    }

    .bottom-nav button {
      flex: 1;
      padding: 10px 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: var(--text-muted);
    }

    .bottom-nav button.active {
      color: var(--gold)
    }

    .sidebar-overlay {
      display: none;
      position: fixed;
      inset: var(--nav-h) 0 0 0;
      background: rgba(0, 0, 0, .6);
      z-index: 80;
    }

    .sidebar-overlay.show {
      display: block
    }

    /* RESPONSIVE */
    @media (max-width:1023px) {
      .menu-toggle {
        display: grid;
        place-items: center
      }

      .nav-links {
        display: none
      }

      .sidebar {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        bottom: 0;
        width: 300px;
        z-index: 90;
        transform: translateX(-100%);
      }

      .sidebar.open {
        transform: translateX(0)
      }
    }

    @media (max-width:767px) {
      .navbar {
        padding: 0 14px
      }

      .welcome h1 {
        font-size: 26px
      }

      .welcome p {
        font-size: 14px
      }

      .messages {
        padding: 14px
      }

      .msg {
        max-width: 88%
      }

      .composer {
        padding: 10px 12px
      }

      .bottom-nav {
        display: flex
      }

      .app {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
      }
      .app .main {
        padding-bottom: 0 !important;
      }

      .faq-body,
      .ticket-body {
        padding: 14px
      }
    }

    /* === FORÇA VISIBILIDADE DOS BOTÕES DO COMPOSER === */
    #micBtn,
    #emojiBtn {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }

    #micBtn svg,
    #emojiBtn svg {
      flex-shrink: 0;
    }
.confirm-actions {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-top: 18px;
      flex-wrap: wrap
    }

    /* OFFLINE BANNER */
    .offline-banner {
      position: fixed;
      top: var(--nav-h);
      left: 0;
      right: 0;
      background: rgba(245, 158, 11, .15);
      border-bottom: 1px solid rgba(245, 158, 11, .3);
      color: var(--warning);
      font-size: 13px;
      text-align: center;
      padding: 8px;
      z-index: 50;
      display: none;
    }

    .offline-banner.show {
      display: block
    }

    /* TOAST */
    .toast-wrap {
      position: fixed;
      bottom: 20px;
      right: 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 300
    }

    .toast {
      background: var(--onyx-surface-2);
      border: 1px solid var(--onyx-border);
      border-radius: 12px;
      padding: 12px 16px;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: var(--shadow);
      min-width: 240px;
      animation: toastIn .3s ease;
    }

    .toast.success {
      border-color: rgba(34, 197, 94, .4)
    }

    .toast.error {
      border-color: rgba(239, 68, 68, .4)
    }

    .toast.info {
      border-color: rgba(59, 130, 246, .4)
    }

    @keyframes toastIn {
      from {
        transform: translateX(20px);
        opacity: 0
      }

      to {
        transform: none;
        opacity: 1
      }
    }

    /* MOBILE BOTTOM NAV */
    .bottom-nav {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(11, 11, 15, .95);
      backdrop-filter: var(--blur);
      border-top: 1px solid var(--onyx-border);
      z-index: 90;
    }

    .bottom-nav button {
      flex: 1;
      padding: 10px 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: var(--text-muted);
    }

    .bottom-nav button.active {
      color: var(--gold)
    }

    .sidebar-overlay {
      display: none;
      position: fixed;
      inset: var(--nav-h) 0 0 0;
      background: rgba(0, 0, 0, .6);
      z-index: 80;
    }

    .sidebar-overlay.show {
      display: block
    }

    /* RESPONSIVE */
    @media (max-width:1023px) {
      .menu-toggle {
        display: grid;
        place-items: center
      }

      .nav-links {
        display: none
      }

      .sidebar {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        bottom: 0;
        width: 300px;
        z-index: 90;
        transform: translateX(-100%);
      }

      .sidebar.open {
        transform: translateX(0)
      }
    }

    @media (max-width:767px) {
      .navbar {
        padding: 0 14px
      }
      
      /* COMPACTA O HEADER DO CHAT NO MOBILE */
      .view-header {
        padding: 6px 10px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        min-height: 44px !important;
      }
      .view-header #chatStatus,
      .view-header .vh-sub,
      .view-header #chatMinimizeBtn {
        display: none !important;
      }
      .view-header .vh-title {
        font-size: 15px !important;
        white-space: nowrap !important;
      }

      .welcome h1 {
        font-size: 26px
      }

      .welcome p {
        font-size: 14px
      }

      .messages {
        padding: 14px
      }

      .msg {
        max-width: 88%
      }

      .composer {
        padding: 10px 12px
      }

      .bottom-nav {
        display: flex
      }

      .app {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
      }
      .app .main {
        padding-bottom: 0 !important;
      }

      .faq-body,
      .ticket-body {
        padding: 14px
      }
    }

    /* === FORÇA VISIBILIDADE DOS BOTÕES DO COMPOSER === */
    #micBtn,
    #emojiBtn {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }

    #micBtn svg,
    #emojiBtn svg {
      flex-shrink: 0;
    }

    #micBtn:hover,
    #emojiBtn:hover {
      color: var(--gold);
    }

    /* ============================================================
   BLINDAGEM DOS BOTÕES DO CHAT DE SUPORTE
   Impede que o CSS global quebre os ícones de envio e microfone
   ============================================================ */
    .chat-input-area button,
    .chat-input-area .chat-btn {
      min-width: 44px !important;
      min-height: 44px !important;
      width: 44px !important;
      height: 44px !important;
      padding: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      border-radius: 10px !important;
    }

    .chat-input-area .chat-btn svg,
    .chat-input-area .chat-btn i {
      width: 20px !important;
      height: 20px !important;
      margin: 0 !important;
    }

    .chat-input-wrapper {
      padding: 6px 12px !important;
    }

    /* OFFLINE BANNER */
    .offline-banner {
      position: fixed;
      top: var(--nav-h);
      left: 0;
      right: 0;
      background: rgba(245, 158, 11, .15);
      border-bottom: 1px solid rgba(245, 158, 11, .3);
      color: var(--warning);
      font-size: 13px;
      text-align: center;
      padding: 8px;
      z-index: 50;
      display: none;
    }

    .offline-banner.show {
      display: block
    }

    /* TOAST */
    .toast-wrap {
      position: fixed;
      bottom: 20px;
      right: 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 300
    }

    .toast {
      background: var(--onyx-surface-2);
      border: 1px solid var(--onyx-border);
      border-radius: 12px;
      padding: 12px 16px;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: var(--shadow);
      min-width: 240px;
      animation: toastIn .3s ease;
    }

    .toast.success {
      border-color: rgba(34, 197, 94, .4)
    }

    .toast.error {
      border-color: rgba(239, 68, 68, .4)
    }

    .toast.info {
      border-color: rgba(59, 130, 246, .4)
    }

    @keyframes toastIn {
      from {
        transform: translateX(20px);
        opacity: 0
      }

      to {
        transform: none;
        opacity: 1
      }
    }

    /* MOBILE BOTTOM NAV */
    .bottom-nav {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(11, 11, 15, .95);
      backdrop-filter: var(--blur);
      border-top: 1px solid var(--onyx-border);
      z-index: 90;
    }

    .bottom-nav button {
      flex: 1;
      padding: 10px 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: var(--text-muted);
    }

    .bottom-nav button.active {
      color: var(--gold)
    }

    .sidebar-overlay {
      display: none;
      position: fixed;
      inset: var(--nav-h) 0 0 0;
      background: rgba(0, 0, 0, .6);
      z-index: 80;
    }

    .sidebar-overlay.show {
      display: block
    }

    /* RESPONSIVE */
    @media (max-width:1023px) {
      .menu-toggle {
        display: grid;
        place-items: center
      }

      .nav-links {
        display: none
      }

      .sidebar {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        bottom: 0;
        width: 300px;
        z-index: 90;
        transform: translateX(-100%);
      }

      .sidebar.open {
        transform: translateX(0)
      }
    }

    @media (max-width:767px) {
      .navbar {
        padding: 0 14px
      }
      
      /* COMPACTA O HEADER DO CHAT NO MOBILE */
      .view-header {
        padding: 6px 10px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        min-height: 44px !important;
      }
      .view-header #chatStatus,
      .view-header .vh-sub,
      .view-header #chatMinimizeBtn {
        display: none !important;
      }
      .view-header .vh-title {
        font-size: 15px !important;
        white-space: nowrap !important;
      }

      .welcome h1 {
        font-size: 26px
      }

      .welcome p {
        font-size: 14px
      }

      .messages {
        padding: 14px
      }

      .msg {
        max-width: 88%
      }

      .composer {
        padding: 10px 12px
      }

      .bottom-nav {
        display: flex
      }

      .app {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
      }
      .app .main {
        padding-bottom: 0 !important;
      }

      .faq-body,
      .ticket-body {
        padding: 14px
      }
    }

    /* === FORÇA VISIBILIDADE DOS BOTÕES DO COMPOSER === */
    #micBtn,
    #emojiBtn {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }

    #micBtn svg,
    #emojiBtn svg {
      flex-shrink: 0;
    }

    #micBtn:hover,
    #emojiBtn:hover {
      color: var(--gold);
    }

    /* ============================================================
   BLINDAGEM DOS BOTÕES DO CHAT DE SUPORTE
   Impede que o CSS global quebre os ícones de envio e microfone
   ============================================================ */
    .chat-input-area button,
    .chat-input-area .chat-btn {
      min-width: 44px !important;
      min-height: 44px !important;
      width: 44px !important;
      height: 44px !important;
      padding: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      border-radius: 10px !important;
    }

    .offline-banner {
      border-bottom: 1px solid rgba(245, 158, 11, .3);
      color: var(--warning);
      font-size: 13px;
      text-align: center;
      padding: 8px;
      z-index: 50;
      display: none;
    }

    .offline-banner.show {
      display: block;
    }
  