/* ============================================
   chat.hostclube.com — Atus Chat
   Identidade visual alinhada ao hostclube.com
   (HostPro dark editorial · mesmo sistema de
   cores, fontes e tipografia)
============================================ */

@import url('./boxicons-relative.css');
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('/assets/boxicons.min.css');

:root {
  /* Surfaces */
  --bg-0: #0b0d10;
  --bg-1: #11141a;
  --bg-2: #161a22;
  --bg-3: #1c2230;
  --bg-4: #232a39;
  --line: #232a36;
  --line-strong: #2e3645;

  /* Texto */
  --text-1: #f3f5f8;
  --text-2: #b6bcc7;
  --text-3: #7d8493;
  --text-4: #545b69;

  /* Accents */
  --accent: #2d6cff;
  --accent-2: #4d85ff;
  --accent-soft: rgba(45, 108, 255, .14);
  --green: #19c37d;
  --green-soft: rgba(25, 195, 125, .14);
  --yellow: #ffd400;
  --yellow-soft: rgba(255, 212, 0, .14);
  --red: #ff4d4d;
  --red-soft: rgba(255, 77, 77, .14);

  /* Tipografia */
  --font-display: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1280px;
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #2a313e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a4356; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.row.gap-2 { gap: .5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.small { font-size: .8rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}

/* ==================== TOPBAR ==================== */
.topbar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
  color: var(--text-3);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 36px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-status { display: inline-flex; align-items: center; gap: 6px; }
.topbar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.topbar-sep { color: var(--text-4); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a { color: var(--text-2); }
.topbar-right a:hover { color: var(--text-1); }
.topbar-right .sep { width: 1px; height: 14px; background: var(--line-strong); }
.topbar-cta {
  background: var(--accent-soft);
  color: var(--accent-2) !important;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-weight: 500;
}

/* ==================== HEADER ==================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, .85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-1);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.brand:hover { color: var(--text-1); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex-shrink: 0; }
.brand-name { color: var(--text-1); }
.brand-name-bold { color: var(--accent); }
.brand-tag {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 4px;
  letter-spacing: .08em;
}

.header-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.header-nav a {
  color: var(--text-2);
  font-weight: 500;
  font-size: .92rem;
  position: relative;
  padding: 4px 0;
}
.header-nav a:hover { color: var(--text-1); text-decoration: none; }
.header-nav a.active { color: var(--accent-2); }
.header-nav a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); font-size: .9rem;
  padding: 6px 10px;
}
.header-link:hover { color: var(--text-1); text-decoration: none; }
.header-btn {
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s var(--ease);
}
.header-btn:hover { background: var(--accent-2); color: #fff; text-decoration: none; }

.menu-toggle { display: none; }

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 64px 0 24px;
  color: var(--text-2);
  margin-top: 64px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-tag { font-size: .9rem; line-height: 1.6; margin: 8px 0 16px; max-width: 360px; color: var(--text-3); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.footer-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: var(--radius);
  color: var(--text-2);
  letter-spacing: .04em;
}
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
}
.footer-social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.footer-cols h5 {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-1);
  margin-bottom: 16px;
}
.footer-cols ul li { margin-bottom: 10px; }
.footer-cols a { color: var(--text-2); font-size: .88rem; }
.footer-cols a:hover { color: var(--accent-2); text-decoration: none; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-3);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit; font-weight: 500;
  cursor: pointer;
  background: var(--bg-3);
  color: var(--text-1);
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .05s;
  text-decoration: none;
}
.btn:hover { background: var(--bg-4); color: var(--text-1); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text-1); border-color: var(--line-strong); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ==================== FORMS ==================== */
label { display: block; margin-bottom: 16px; font-size: .85rem; color: var(--text-2); }
label input, label select, label textarea, .form .input {
  width: 100%; padding: .75rem .9rem;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-1);
  margin-top: 6px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
}
textarea { resize: vertical; min-height: 80px; }
.form-error { color: var(--red); margin-top: 8px; min-height: 1.2em; font-size: .88rem; }

/* ==================== HERO ==================== */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(45, 108, 255, .28), transparent 70%),
    radial-gradient(700px 400px at 90% 30%, rgba(25, 195, 125, .08), transparent 60%),
    var(--bg-0);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-0) 100%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45, 108, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 108, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(45, 108, 255, .3);
  margin-bottom: 24px;
  letter-spacing: .04em;
}
.hero h1 {
  font-size: 3.6rem; font-weight: 700;
  margin: 0 auto 20px;
  max-width: 900px;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #c9d1de 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .text-accent {
  background: linear-gradient(135deg, var(--accent-2), #6ad1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lead {
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  line-height: 1.7;
}
.hero .lead b { color: var(--text-1); font-weight: 600; }
.hero-cta { gap: 12px; margin-bottom: 24px; }
.hero-trust { color: var(--text-3); font-size: .85rem; }

/* ==================== TRUST BAR ==================== */
.trust-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-n {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1;
}
.trust-l {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ==================== SECTION HEAD ==================== */
.section-head { text-align: left; max-width: 720px; margin: 0 auto; }
.section-head.center { text-align: center; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 4px;
  border: 1px solid rgba(45, 108, 255, .2);
}
.section-head h2 { font-size: 2.2rem; margin: 0 0 12px; }
.section-head p { color: var(--text-2); font-size: 1.02rem; }
.section-head.center p { max-width: 600px; margin: 0 auto; }

.features { padding: 80px 0; border-top: 1px solid var(--line); }

/* ==================== SHOWCASE ==================== */
.showcase { padding: 80px 0; background: var(--bg-1); border-top: 1px solid var(--line); }
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.showcase-text h2 { font-size: 2rem; margin: 8px 0 16px; }
.showcase-text p { font-size: 1.02rem; line-height: 1.7; }
.check-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-2);
  font-size: .95rem;
}
.check-list li i { color: var(--green); font-size: 1.3rem; flex-shrink: 0; }

/* ==================== MOCK WINDOW ==================== */
.mock-window {
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7),
              0 0 0 1px var(--accent-soft);
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.mock-titlebar .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-4);
}
.mock-titlebar .dot-r { background: #ff5f57; }
.mock-titlebar .dot-y { background: #ffbd2e; }
.mock-titlebar .dot-g { background: #28c840; }
.mock-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.mock-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mock-msg { display: flex; gap: 12px; align-items: flex-start; }
.mock-msg.mock-user { flex-direction: row-reverse; }
.mock-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mock-msg.mock-user .mock-avatar { background: var(--accent); color: #fff; }
.mock-msg.mock-ai .mock-avatar { background: var(--bg-3); color: var(--accent-2); border: 1px solid var(--line-strong); }
.mock-bubble {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-1);
  max-width: 80%;
}
.mock-msg.mock-user .mock-bubble {
  background: var(--accent-soft);
  border-color: rgba(45, 108, 255, .3);
}
.mock-bubble p { margin: 0 0 6px; }
.mock-bubble p:last-child { margin: 0; }
.mock-bubble b { color: var(--accent-2); }

/* ==================== FAQ ==================== */
.faq { padding: 80px 0; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 8px;
}
.faq details {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color .15s var(--ease);
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-1);
  list-style: none;
  font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--accent-2); font-size: 1.2rem; transition: transform .2s var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin-top: 12px; font-size: .92rem; line-height: 1.7; }

/* ==================== CTA FINAL ==================== */
.cta-final { padding: 80px 0 96px; }
.cta-final-card {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(45, 108, 255, .2), transparent 70%);
  pointer-events: none;
}
.cta-final-card > * { position: relative; z-index: 1; }
.cta-final-card h2 { font-size: 2.2rem; margin: 0 0 8px; }
.cta-final-card p { margin: 0; }
.cta-final-card .row.gap-2 { gap: 12px; }

/* ==================== CARDS ==================== */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .15s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1;
}
.card-icon i { line-height: 1; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { color: var(--text-2); font-size: .92rem; }

.features { padding: 64px 0; border-top: 1px solid var(--line); }

/* ==================== PRICING ==================== */
.pricing { padding: 80px 0; }
.pricing h2 { font-size: 2rem; margin-bottom: 8px; }
.pricing > .container > .grid-4,
.pricing > .container > .grid-3 { margin-top: 48px; }

.plan {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
  display: flex;
  flex-direction: column;
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.plan-head { margin-bottom: 8px; }
.plan h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--text-1); }
.plan-tagline { color: var(--text-3); font-size: .82rem; margin: 0; }

.plan .price {
  display: flex; align-items: baseline; gap: .2rem;
  margin: 18px 0;
  font-family: var(--font-display);
}
.plan .price .currency { color: var(--text-3); font-size: .9rem; font-weight: 500; }
.plan .price .amount { font-size: 2.6rem; font-weight: 700; color: var(--text-1); line-height: 1; }
.plan .price .period { color: var(--text-3); font-size: .85rem; }

.plan-features { padding: 0; margin: 0 0 20px; flex: 1; }
.plan-features li {
  padding: 6px 0;
  color: var(--text-2);
  font-size: .85rem;
  display: flex; align-items: center; gap: 8px;
  border: 0;
}
.plan-features li i { color: var(--accent-2); font-size: 1rem; flex-shrink: 0; }
.plan-feat-primary { padding: 8px 0 !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0; }
.plan-feat-primary i { color: var(--green) !important; font-size: 1.2rem !important; }
.plan-feat-primary b { color: var(--text-1); font-weight: 600; }
.plan-features li.muted { color: var(--text-3); font-size: .8rem; padding: 4px 0; }
.plan-features li.muted i { color: var(--green-soft); background: var(--green); color: #0b0d10; border-radius: 50%; font-size: .65rem; padding: 1px; }

/* Tiers por cor */
.plan-tier-gray   { border-color: var(--line); }
.plan-tier-blue   { border-color: var(--line); }
.plan-tier-green  { border-color: var(--line); }

.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(45, 108, 255, .07), transparent 50%), var(--bg-1);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 20px 40px -20px rgba(45, 108, 255, .4);
  transform: scale(1.04);
}
.plan-featured:hover { transform: scale(1.04) translateY(-2px); }

.plan-current {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(25, 195, 125, .07), transparent 50%), var(--bg-1);
}

.plan-gold {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
    linear-gradient(135deg, #ffd400 0%, #ff8a00 50%, #ff3d6e 100%) border-box;
  border: 2px solid transparent;
  box-shadow: 0 20px 50px -20px rgba(255, 138, 0, .45);
  transform: scale(1.04);
  position: relative;
  overflow: hidden;
}
.plan-gold::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #ffd400, #ff8a00, #ff3d6e, #ffd400);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.plan-gold:hover { transform: scale(1.04) translateY(-2px); }
.plan-gold .plan h3 { color: #ffd400; }
.plan-gold h3 { background: linear-gradient(135deg, #ffd400, #ff8a00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.plan-gold .amount { background: linear-gradient(135deg, #ffd400, #ff8a00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.plan-gold .plan-feat-primary i { color: #ffd400 !important; }

.btn-gold {
  background: linear-gradient(135deg, #ffd400, #ff8a00);
  color: #1a1300;
  border: 0;
  font-weight: 700;
}
.btn-gold:hover { filter: brightness(1.1); color: #1a1300; }

.plan-badge {
  position: absolute; top: -10px; right: 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: .65rem; font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 4px;
}
.badge-gold {
  background: linear-gradient(135deg, #ffd400, #ff8a00);
  color: #1a1300;
  box-shadow: 0 4px 12px -2px rgba(255, 138, 0, .5);
}

/* ==================== AUTH ==================== */
.auth-wrap {
  min-height: calc(100vh - 72px - 36px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
  background:
    radial-gradient(900px 500px at 50% 20%, rgba(45, 108, 255, .18), transparent 60%),
    radial-gradient(500px 300px at 80% 80%, rgba(25, 195, 125, .08), transparent 60%),
    var(--bg-0);
  position: relative;
}
.auth-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%; max-width: 460px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
  position: relative;
}
.auth-icon {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  border: 1px solid rgba(45, 108, 255, .3);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.auth-card h1 { font-size: 1.8rem; margin: 0 0 4px; }
.auth-card h1 i { color: var(--accent-2); margin-right: 6px; }
.auth-card p { margin: 0 0 24px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
  color: var(--text-4);
  font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ==================== APP LAYOUT ==================== */
body.app { display: flex; flex-direction: column; min-height: 100vh; }
.app-top {
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 20, 26, .85);
  backdrop-filter: blur(10px);
}
.app-top .row { display: flex; align-items: center; }
.app-top .row.between { justify-content: space-between; }
.app-main { flex: 1; min-height: 0; }
.user-chip {
  color: var(--text-2); font-size: .85rem;
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
}
.user-chip b { color: var(--accent-2); font-weight: 600; }

/* ==================== CHAT (estilo ChatGPT dark) ==================== */
.chat-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 72px - 36px);
}
@media (max-width: 900px) { .chat-shell { grid-template-columns: 1fr; } .chat-side { display: none; } }

.chat-side {
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 16px; gap: 12px;
}
.chat-side #btn-new { margin-bottom: 4px; }
.conv-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.conv-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-3);
  font-size: .9rem;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.conv-item:hover { background: var(--bg-2); color: var(--text-1); }
.conv-item.active {
  background: var(--bg-3);
  color: var(--text-1);
  box-shadow: inset 2px 0 0 var(--accent);
}
.conv-item .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item .pin { color: var(--yellow); }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; }
.usage-row { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; margin: 4px 0; }
.usage-row a { font-size: .8rem; }
.usage-bar { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.usage-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }

.chat-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg-0); }
.chat-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.chat-top-actions { display: flex; gap: 4px; }

.chat-canvas { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; }
.chat-empty { margin: auto; text-align: center; max-width: 640px; }
.chat-empty h1 { font-size: 2.4rem; margin: 0 0 8px; }
.chat-empty p { color: var(--text-2); }
.suggestions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 32px;
}
.suggestions .sugg {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: left;
  color: var(--text-2);
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  line-height: 1.4;
  transition: border-color .12s var(--ease), background .12s var(--ease);
}
.suggestions .sugg:hover { border-color: var(--accent); background: var(--bg-2); color: var(--text-1); }

.msg {
  max-width: 820px; width: 100%;
  margin: 0 auto 20px;
  display: flex; gap: 14px;
  padding: 8px 0;
}
.msg .avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
}
.msg.user .avatar { background: var(--accent); color: #fff; }
.msg.user .avatar i { color: #fff; }
.msg.assistant .avatar {
  background: var(--bg-3);
  color: var(--accent-2);
  border: 1px solid var(--line-strong);
}
.msg .avatar i { font-size: 1.1rem; line-height: 1; }
.msg .bubble {
  flex: 1; min-width: 0;
  line-height: 1.65;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text-1);
}
.msg .bubble code {
  font-family: var(--font-mono);
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .88em;
  border: 1px solid var(--line);
}
.msg .bubble pre {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 8px 0;
}
.msg .bubble pre code { background: transparent; border: 0; padding: 0; }
.msg .bubble b { color: var(--accent-2); }
.msg .meta {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: .72rem;
  margin-top: 6px;
}

.chat-input {
  display: flex; gap: 8px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, var(--bg-0), transparent 30%);
}
.chat-input textarea {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  color: var(--text-1);
  resize: none;
  max-height: 200px;
  line-height: 1.5;
  transition: border-color .15s var(--ease);
}
.chat-input textarea:focus { border-color: var(--accent); }
.chat-input #btn-send { padding: 0 20px; align-self: stretch; }

/* ==================== TABLES ==================== */
.tbl { width: 100%; border-collapse: collapse; margin-top: 16px; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--text-3); font-family: var(--font-display); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tbl tr:hover { background: var(--bg-1); }

.stat { padding: 20px 24px; }
.stat .stat-n {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}
.stat .stat-l { color: var(--text-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .72rem;
  font-family: var(--font-mono);
  background: var(--bg-3);
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status-active, .status-approved { background: var(--green-soft); color: var(--green); }
.status-pending { background: var(--yellow-soft); color: var(--yellow); }
.status-rejected, .status-suspended, .status-canceled { background: var(--red-soft); color: var(--red); }

/* ==================== MODAL ==================== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px; width: 100%;
}
.modal-card h3 { margin-bottom: 16px; }
.err { color: var(--red); }

/* ==================== COOKIE BANNER (LGPD) ==================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  animation: slideUp .4s var(--ease);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 280px; font-size: .9rem; color: var(--text-2); }
.cookie-banner-text a { color: var(--accent-2); }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Cookie modal */
.cookie-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .2s var(--ease);
}
.cookie-modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal-card {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 32px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.cookie-modal-card h2 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.cookie-modal-card h2 i { color: var(--accent-2); }
.cookie-cat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  background: var(--bg-2);
}
.cookie-cat-locked { background: var(--bg-3); }
.cookie-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.cookie-cat-head h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.cookie-cat-head h3 i { color: var(--accent-2); font-size: 1.1rem; }
.badge-locked {
  font-family: var(--font-mono); font-size: .68rem;
  background: var(--green-soft); color: var(--green);
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .08em;
}
.cookie-modal-info {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
}
.cookie-modal-info p { margin: 0 0 4px; }
.cookie-modal-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 20px;
}

/* iOS-style toggle switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--bg-4);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  transition: background .2s var(--ease);
}
.slider::before {
  content: ''; position: absolute;
  height: 18px; width: 18px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s var(--ease);
}
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ==================== LEGAL (privacidade/termos) ==================== */
.legal-wrap { max-width: 820px; padding: 64px 24px; }
.legal-wrap h1 { font-size: 2.2rem; margin: 0 0 8px; }
.legal-wrap h2 { font-size: 1.4rem; margin: 32px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-wrap h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-wrap p { margin: 0 0 12px; }
.legal-breadcrumb { margin-bottom: 16px; }
.legal-breadcrumb a { color: var(--text-2); }
.legal-list { padding-left: 20px; margin: 0 0 16px; list-style: disc; }
.legal-list li { margin: 6px 0; color: var(--text-2); }

/* ==================== ADMIN SETTINGS ==================== */
.settings-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.settings-tabs .tab {
  padding: 10px 16px;
  background: transparent;
  border: 0;
  color: var(--text-3);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.settings-tabs .tab:hover { color: var(--text-1); }
.settings-tabs .tab.active {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
}
.settings-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.settings-form legend {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0 12px;
  color: var(--text-1);
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .08em;
}
.settings-form label {
  display: block;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.settings-form label small { display: block; margin: 4px 0 8px; }
.settings-form input, .settings-form select, .settings-form textarea {
  width: 100%; padding: 8px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-1);
  font: inherit;
  font-family: var(--font-mono);
  font-size: .88rem;
}
.settings-form .settings-key {
  display: block;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent-2);
  margin-bottom: 2px;
}
.form-actions { display: flex; gap: 12px; align-items: center; padding: 16px 0; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  .header-nav { display: none; }
  .menu-toggle { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
  .menu-toggle span { width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.2rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .plan-featured, .plan-gold { transform: none; }
  .plan-featured:hover, .plan-gold:hover { transform: translateY(-2px); }
  .suggestions { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-final-card { padding: 48px 24px; }
  .cta-final-card h2 { font-size: 1.6rem; }
}
