/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Палитра: серебро + черный + переливы */
  --black-0: #000000;
  --black-1: #0a0a0d;
  --black-2: #141418;
  --black-3: #1c1c22;

  --silver-1: #f5f5f7;
  --silver-2: #d1d5db;
  --silver-3: #9ca3af;
  --silver-4: #6b7280;

  --accent-blue: #60a5fa;
  --accent-violet: #a78bfa;
  --accent-cyan: #22d3ee;
  --accent-pink: #f472b6;

  --profit-green: #10b981;
  --profit-red: #ef4444;

  --border: rgba(209, 213, 219, 0.12);
  --border-strong: rgba(209, 213, 219, 0.25);

  --radius: 12px;
  --radius-lg: 20px;

  --shadow-glow: 0 0 40px rgba(167, 139, 250, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--black-1);
  color: var(--silver-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Фоновые градиенты */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(167, 139, 250, 0.08),
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(34, 211, 238, 0.06),
      transparent 45%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(244, 114, 182, 0.04),
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== HOLOGRAPHIC TEXT ===== */
.holographic {
  background: linear-gradient(
    90deg,
    #f5f5f7 0%,
    #a78bfa 25%,
    #22d3ee 50%,
    #f472b6 75%,
    #f5f5f7 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hologram 6s linear infinite;
}

@keyframes hologram {
  to {
    background-position: 200% center;
  }
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 13, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 16px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;

  /* Убираем подчёркивание и наследуем цвет */
  text-decoration: none;
  color: inherit;

  /* Убираем outline при клике (опционально) */
  outline: none;
}

/* Убираем подчёркивание при наведении */
.logo:hover {
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.logo-icon {
  font-size: 24px;
  background: linear-gradient(135deg, #f5f5f7, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hologram 4s linear infinite;
  background-size: 200% auto;
}

.logo-text {
  color: var(--silver-1);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--silver-3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--silver-1);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #e5e7eb 0%, #a78bfa 50%, #22d3ee 100%);
  background-size: 200% auto;
  color: var(--black-0);
  font-weight: 700;
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.4);
}

.btn-ghost {
  background: rgba(245, 245, 247, 0.05);
  color: var(--silver-1);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(245, 245, 247, 0.1);
  border-color: var(--silver-2);
}

.btn-full {
  width: 100%;
  padding: 16px;
}

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(245, 245, 247, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--silver-2);
  font-size: 13px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 18px;
  color: var(--silver-3);
  max-width: 720px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-features {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--silver-4);
  font-size: 13px;
  font-family: "SF Mono", Monaco, monospace;
}

.hero-features span {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.03);
  border: 1px solid var(--border);
}

/* ===== SECTIONS ===== */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--silver-3);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 24px;
  border-radius: var(--radius);
  background: var(--black-2);
  border: 1px solid var(--border);
  color: var(--silver-3);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.tab.active {
  background: linear-gradient(
    135deg,
    rgba(245, 245, 247, 0.1),
    rgba(167, 139, 250, 0.1)
  );
  color: var(--silver-1);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

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

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(135deg, var(--black-2), var(--black-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(245, 245, 247, 0.1),
    rgba(167, 139, 250, 0.1)
  );
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--silver-1);
}

.card p {
  color: var(--silver-3);
  font-size: 14px;
}

/* ===== PROFITS (BYBIT) ===== */
.profits-section {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(167, 139, 250, 0.03),
    transparent
  );
}

.profits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.profit-card {
  background: linear-gradient(135deg, var(--black-2), var(--black-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.profit-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.profit-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(167, 139, 250, 0.05),
    transparent 30%
  );
  animation: rotate 8s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.profit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.profit-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pair-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7931a, #ff9500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
}

.pair-icon.eth {
  background: linear-gradient(135deg, #627eea, #8c9eff);
}
.pair-icon.sol {
  background: linear-gradient(135deg, #9945ff, #14f195);
}
.pair-icon.bnb {
  background: linear-gradient(135deg, #f3ba2f, #ffd54f);
}

.pair-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--silver-1);
}

.pair-exchange {
  font-size: 11px;
  color: var(--silver-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profit-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: var(--profit-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.profit-chart {
  height: 80px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.profit-chart svg {
  width: 100%;
  height: 100%;
}

.profit-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.profit-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profit-stat-label {
  font-size: 11px;
  color: var(--silver-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profit-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--silver-1);
  font-family: "SF Mono", Monaco, monospace;
}

.profit-stat-value.positive {
  color: var(--profit-green);
}
.profit-stat-value.negative {
  color: var(--profit-red);
}

.profits-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, var(--black-2), var(--black-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--silver-3);
}

/* ===== PROCESS ===== */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.process-step {
  text-align: center;
  padding: 24px;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.process-step:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--black-3), var(--black-1));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 20px;
  font-weight: 700;
  background-clip: padding-box;
  position: relative;
}

.step-number::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--silver-2),
    var(--accent-violet),
    var(--accent-cyan)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.process-step h4 {
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--silver-1);
}

.process-step p {
  color: var(--silver-3);
  font-size: 13px;
}

/* ===== CASES ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.case-card {
  background: linear-gradient(135deg, var(--black-2), var(--black-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}

.case-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.case-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--silver-1);
}

.case-card p {
  color: var(--silver-3);
  font-size: 14px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.open {
  border-color: var(--border-strong);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--silver-1);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--silver-2);
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  color: var(--silver-3);
  transition: transform 0.3s;
  font-weight: 300;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent-violet);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--silver-3);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ===== FORM ===== */
.contact-form {
  background: linear-gradient(135deg, var(--black-2), var(--black-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--silver-3);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--black-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--silver-1);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  flex: 1;
  min-width: 200px;
}

.radio-option input {
  display: none;
}

.radio-option label {
  display: block;
  padding: 14px 16px;
  background: var(--black-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  color: var(--silver-3);
  margin: 0;
  font-weight: 500;
}

.radio-option input:checked + label {
  background: linear-gradient(
    135deg,
    rgba(245, 245, 247, 0.1),
    rgba(167, 139, 250, 0.15)
  );
  color: var(--silver-1);
  border-color: var(--accent-violet);
  box-shadow: var(--shadow-glow);
}

/* ===== FOOTER ===== */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--silver-4);
  font-size: 13px;
}

.footer-copy {
  margin-top: 12px;
}

.disclaimer {
  max-width: 700px;
  margin: 16px auto 0;
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.5;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .contact-form {
    padding: 24px;
  }
  section {
    padding: 60px 0;
  }
  .profits-footer {
    padding: 24px;
  }
}

/* ===== LANGUAGE SWITCHER ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(245, 245, 247, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--silver-4);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--silver-2);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lang-sep {
  color: var(--silver-4);
  font-size: 12px;
}

/* ===== FORM STATUS ===== */
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-status:not(:empty) {
  display: block;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--profit-green);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--profit-red);
}

/* ===== CHAT WIDGET ===== */
#chat-widget-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: inherit;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(167, 139, 250, 0.4);
  transition: all 0.3s;
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 50px rgba(167, 139, 250, 0.6);
}

.chat-toggle.active {
  background: var(--black-3);
  border: 1px solid var(--border-strong);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--profit-green);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 8px;
  border: 2px solid var(--black-1);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: var(--black-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  padding: 16px 20px;
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.1),
    rgba(34, 211, 238, 0.05)
  );
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: 700;
}

.chat-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--silver-1);
}

.chat-subtitle {
  font-size: 12px;
  color: var(--silver-4);
}

.chat-close {
  background: none;
  border: none;
  color: var(--silver-3);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.chat-close:hover {
  background: rgba(245, 245, 247, 0.08);
  color: var(--silver-1);
}

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

.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.chat-msg {
  display: flex;
  animation: msgIn 0.3s;
}

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

.chat-msg-user {
  justify-content: flex-end;
}
.chat-msg-bot {
  justify-content: flex-start;
}

.chat-msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-msg-user .chat-msg-bubble {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-msg-bot .chat-msg-bubble {
  background: var(--black-3);
  color: var(--silver-1);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-typing .chat-msg-bubble {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--silver-3);
  animation: bounce 1.4s infinite;
}

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

@keyframes bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.chat-input-wrap {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  background: var(--black-1);
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--silver-1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--accent-violet);
}

.chat-send {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  border: none;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.chat-send:hover {
  transform: scale(1.05);
}

/* ===== FOOTER LINKS ===== */
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 16px 0;
}

.footer-links a {
  color: var(--silver-3);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--silver-1);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .chat-window {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 72px;
  }
  #chat-widget-root {
    bottom: 16px;
    right: 16px;
  }
  .chat-toggle {
    width: 54px;
    height: 54px;
  }
}

/* ===== BLOG ===== */
.blog-hero {
  padding: 160px 0 60px;
  text-align: center;
}

.blog-section {
  padding: 40px 0 100px;
}

.blog-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.blog-filter {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--black-2);
  border: 1px solid var(--border);
  color: var(--silver-3);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  font-family: inherit;
}

.blog-filter:hover {
  border-color: var(--border-strong);
  color: var(--silver-1);
}

.blog-filter.active {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  color: white;
  border-color: transparent;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: linear-gradient(135deg, var(--black-2), var(--black-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--silver-1);
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--silver-3);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  gap: 16px;
  color: var(--silver-4);
  font-size: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Blog post page */
.blog-post-hero {
  padding: 160px 0 40px;
}
.blog-post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 100px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--silver-2);
}
.blog-post-content h2 {
  font-size: 28px;
  margin: 40px 0 16px;
  color: var(--silver-1);
}
.blog-post-content p {
  margin-bottom: 16px;
}
.blog-post-content code {
  background: var(--black-3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent-cyan);
}
