:root {
  --bg: #020617;
  --bg-soft: #0b1220;
  --text: #ffffff;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-strong: #2563eb;
  --primary-light: #38bdf8;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-soft: rgba(255, 255, 255, 0.03);
  --shadow-blue: 0 0 24px rgba(59, 130, 246, 0.25);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1150px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 35%),
    radial-gradient(circle at bottom, rgba(14, 165, 233, 0.08), transparent 30%);
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

section {
  position: relative;
}

/* PARTICLES */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo img {
  width: 120px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: #b8c1d9;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

nav a:hover {
  color: #60a5fa;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
}

.hero .container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-box {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: 48px 34px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.1),
    inset 0 0 30px rgba(255, 255, 255, 0.02);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
  font-weight: 800;
}

.typing {
  color: var(--primary);
  border-right: 2px solid var(--primary);
  padding-right: 5px;
}

.hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-stack {
  margin-top: 14px;
  color: #93c5fd;
  font-size: 0.92rem;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-light));
  color: white;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
  transition: var(--transition);
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  box-shadow: none;
  color: #e2e8f0;
}

.btn-outline:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
}

/* ABOUT */
.about {
  padding: 60px 0;
}

.about-box {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 40px 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.1),
    inset 0 0 30px rgba(255, 255, 255, 0.02);
  text-align: center;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.about-badge i {
  width: 16px;
  height: 16px;
  stroke: #3b82f6;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

.about-box h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.about-box h2 span {
  color: #3b82f6;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.about-box p {
  color: #cbd5e1;
  font-size: 1rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.about-highlights {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.about-highlights div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: #93c5fd;
  transition: var(--transition);
}

.about-highlights div i {
  width: 18px;
  height: 18px;
  stroke: #3b82f6;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

.about-highlights div:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* SKILLS */
.skills {
  padding: 80px 0;
}

.skills-header {
  text-align: center;
  margin-bottom: 40px;
}

.skills-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.skills-badge i {
  width: 16px;
  height: 16px;
  stroke: #3b82f6;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

.skills-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.skills-title span {
  color: #3b82f6;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.skills-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: var(--glass);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  transition: 0.35s;
  text-align: left;
  min-height: 190px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.06);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.25);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 18px;
  background: rgba(59, 130, 246, 0.12);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #60a5fa;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #eff6ff;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 50px 20px 34px;
  color: var(--text-muted);
  border-top: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow: 0 -10px 30px rgba(59, 130, 246, 0.05);
}

.footer-content h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 8px;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
}

.footer-content h3 i {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  vertical-align: middle;
  stroke: #3b82f6;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

.footer-content p {
  color: #aeb9d2;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.footer-links a:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.25);
}

.footer-links img {
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.45));
}

.footer-copy {
  color: #7f8aa3;
  font-size: 14px;
}

/* MODAIS */
.project-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  z-index: 9999;
}

.project-modal.active {
  display: flex;
}

.project-modal-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 32px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.28);
  text-align: left;
}

.project-modal-content h2 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 1.8rem;
}

.project-modal-content p {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.project-modal-close:hover {
  color: #93c5fd;
  transform: scale(1.08);
}

/* MODAL CONTATO */
.contact-modal-content {
  text-align: center;
}

.contact-modal-content p {
  margin-bottom: 24px;
}

.contact-modal-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-modal-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  text-decoration: none;
  transition: var(--transition);
}

.contact-modal-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.contact-modal-links img {
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.45));
}

/* PÁGINA DE PROJETOS */
.projects-hero {
  padding: 90px 0 30px;
}

.projects-hero-box {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: 42px 30px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.1),
    inset 0 0 30px rgba(255, 255, 255, 0.02);
}

.projects-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.projects-hero-box h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 14px;
  font-weight: 800;
}

.projects-hero-box h1 span {
  color: var(--primary);
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.3);
}

.projects-hero-box p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1rem;
}

.projects-section {
  padding: 40px 0 100px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.project-item {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: 0.35s ease;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.05);
}

.project-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.28);
}

.project-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.1);
}

.project-item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.project-item-content h3 {
  margin-bottom: 10px;
  color: #eff6ff;
  font-size: 1.15rem;
}

.project-item-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.project-item-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* CHATBOT */
.hidden {
  display: none !important;
}

#open-chat,
.chat-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-light));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.45);
  font-weight: 600;
}

#chat-widget,
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 520px;
  background: var(--bg-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.chat-header {
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  color: white;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-header button,
#close-chat {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#messages,
.messages,
.chat-messages {
  flex: 1;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  margin: 0;
  max-width: 100%;
}

.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.msg-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 50%;
  margin-top: 2px;
}

.msg-icon i {
  width: 16px;
  height: 16px;
  stroke: #60a5fa;
}

.msg-bubble {
  max-width: 100%;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cbd5e1;
  word-break: break-word;
}

.msg-bubble a {
  color: #93c5fd;
  text-decoration: none;
}

.msg-bubble a:hover {
  text-decoration: underline;
}

.user-row {
  justify-content: flex-end;
}

.user-row .msg-bubble {
  background: #2563eb;
  color: white;
}

#options,
.options,
.chat-options {
  padding: 12px;
  display: grid;
  gap: 10px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.chat-option,
.options button {
  width: 100%;
  border: none;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 500;
  transition: 0.25s ease;
}

.chat-option:hover,
.options button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
}

.chat-option i,
.options button i {
  width: 18px;
  height: 18px;
  stroke: white;
}

#messages::-webkit-scrollbar,
.messages::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

#messages::-webkit-scrollbar-track,
.messages::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

#messages::-webkit-scrollbar-thumb,
.messages::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-box {
    padding: 34px 22px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .btn-outline {
    width: 100%;
  }

  .about-box {
    padding: 26px 18px;
  }

  .projects-hero {
    padding-top: 120px;
  }

  .projects-hero-box {
    padding: 32px 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-modal-content {
    padding: 26px 20px;
  }
}

@media (max-width: 480px) {
  #chat-widget,
  .chat-widget {
    right: 12px;
    bottom: 74px;
    width: calc(100vw - 24px);
    height: 500px;
  }

  #open-chat,
  .chat-button {
    right: 12px;
    bottom: 12px;
  }

  .project-item img {
    height: 200px;
  }
}
/* COMO EU TRABALHO */

.workflow {
  padding: 40px 0 80px;
}

.workflow-header {
  text-align: center;
  margin-bottom: 40px;
}

.workflow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #93c5fd;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
}

.workflow-badge i {
  width: 16px;
  height: 16px;
  stroke: #3b82f6;
  filter: drop-shadow(0 0 6px rgba(59,130,246,0.4));
}

.workflow-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.workflow-title span {
  color: #3b82f6;
  text-shadow: 0 0 12px rgba(59,130,246,0.3);
}

.workflow-subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.workflow-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 28px 24px;
  text-align: left;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(59,130,246,0.06);
  transition: 0.35s ease;
}

.workflow-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 28px rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.25);
}

.workflow-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(59,130,246,0.12);
}

.workflow-icon i {
  width: 22px;
  height: 22px;
  stroke: #60a5fa;
  filter: drop-shadow(0 0 6px rgba(59,130,246,0.35));
}

.workflow-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #eff6ff;
}

.workflow-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== CHATBOT PREMIUM ===== */

.hidden {
  display: none !important;
}

#open-chat,
.chat-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-light));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(59,130,246,0.45);
  font-weight: 600;
}

#chat-widget,
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 520px;
  background: var(--bg-soft);
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
}

.chat-header {
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  color: white;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-header button,
#close-chat {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#messages,
.messages,
.chat-messages {
  flex: 1;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  margin: 0;
  max-width: 100%;
  animation: fadeUp 0.25s ease;
}

.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.msg-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 50%;
  margin-top: 2px;
}

.msg-icon i {
  width: 16px;
  height: 16px;
  stroke: #60a5fa;
}

.msg-bubble {
  max-width: 100%;
  background: rgba(255,255,255,0.04);
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cbd5e1;
  word-break: break-word;
}

.msg-bubble strong {
  color: #eff6ff;
}

.msg-bubble a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
}

.msg-bubble a:hover {
  text-decoration: underline;
}

.user-row {
  justify-content: flex-end;
}

.user-row .msg-bubble {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: white;
  border: none;
}

#options,
.options,
.chat-options {
  padding: 12px;
  display: grid;
  gap: 10px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.chat-option,
.options button {
  width: 100%;
  border: none;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 500;
  transition: 0.25s ease;
}

.chat-option:hover,
.options button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(59,130,246,0.25);
}

.chat-option i,
.options button i {
  width: 18px;
  height: 18px;
  stroke: white;
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.typing-bubble span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #93c5fd;
  animation: bounceDots 1.1s infinite ease-in-out;
}

.typing-bubble span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-bubble span:nth-child(3) {
  animation-delay: 0.3s;
}

#messages::-webkit-scrollbar,
.messages::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

#messages::-webkit-scrollbar-track,
.messages::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

#messages::-webkit-scrollbar-thumb,
.messages::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.7);
  border-radius: 999px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceDots {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  #chat-widget,
  .chat-widget {
    right: 12px;
    bottom: 74px;
    width: calc(100vw - 24px);
    height: 500px;
  }

  #open-chat,
  .chat-button {
    right: 12px;
    bottom: 12px;
  }
}
/* =========================
   ADMIN
========================= */

.hidden {
  display: none !important;
}

.admin-topbar {
  width: 100%;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.admin-topbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.admin-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.admin-hero {
  margin-bottom: 28px;
}

.admin-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.admin-hero p {
  opacity: 0.8;
}

.admin-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.admin-header-card {
  margin-bottom: 20px;
}

.admin-subtext {
  margin-top: 6px;
  opacity: 0.75;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-field label {
  font-weight: 600;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  outline: none;
  background: rgba(255,255,255,0.04);
  color: inherit;
  font-size: 1rem;
}

.admin-field input::placeholder,
.admin-field textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.admin-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.admin-btn.primary {
  background: #2563eb;
  color: white;
}

.admin-btn.primary:hover {
  transform: translateY(-1px);
}

.admin-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: inherit;
}

.admin-btn.danger {
  background: #dc2626;
  color: white;
}

.admin-message {
  margin-top: 8px;
  font-size: 0.95rem;
}

.admin-message.error {
  color: #ff7b7b;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.suggestion-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.suggestion-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.suggestion-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.suggestion-contact {
  opacity: 0.75;
  font-size: 0.95rem;
}

.suggestion-date {
  font-size: 0.85rem;
  opacity: 0.7;
  white-space: nowrap;
}

.suggestion-body p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.suggestion-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.admin-empty {
  margin-top: 16px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .admin-hero h1 {
    font-size: 1.8rem;
  }

  .suggestion-card-top {
    flex-direction: column;
  }

  .suggestion-date {
    white-space: normal;
  }
}
.hidden {
  display: none !important;
}

.suggestion-modal-content {
  max-width: 560px;
  width: 90%;
}

.suggestion-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.modal-submit-btn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 16px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.modal-submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.suggestion-message {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 4px;
  color: #cbd5e1;
}
.hidden {
  display: none !important;
}