/* =============================================
   SUPPORT CENTER – MAIN STYLESHEET
   Dark web3 design with glassmorphism
   ============================================= */

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

:root {
  --color-bg: #0a0b14;
  --color-bg-2: #0e0f1e;
  --color-surface: rgba(255,255,255,0.04);
  --color-surface-hover: rgba(255,255,255,0.07);
  --color-border: rgba(255,255,255,0.08);
  --color-border-hover: rgba(108,99,255,0.4);

  --color-primary: #6C63FF;
  --color-primary-light: #8B85FF;
  --color-secondary: #3ECFCF;
  --color-accent: #FF6B9D;

  --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #3ECFCF 100%);
  --gradient-glow: linear-gradient(135deg, rgba(108,99,255,0.3) 0%, rgba(62,207,207,0.3) 100%);

  --color-text: #f0f0f8;
  --color-text-muted: rgba(240,240,248,0.55);
  --color-text-dim: rgba(240,240,248,0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 40px rgba(108,99,255,0.25);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-chat: 0 20px 60px rgba(0,0,0,0.6);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Background Orbs ---- */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}

.bg-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.18) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation-delay: 0s;
}

.bg-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(62,207,207,0.14) 0%, transparent 70%);
  top: 30%; right: -150px;
  animation-delay: -4s;
}

.bg-orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,157,0.1) 0%, transparent 70%);
  bottom: -100px; left: 30%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

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

/* ---- Glassmorphism ---- */
.glass {
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.glass:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-hover);
}

/* ---- Typography ---- */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--lg { padding: 16px 32px; font-size: 16px; }

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.55);
}

.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--color-primary-light);
  border: 1.5px solid rgba(108,99,255,0.45);
}

.btn--outline:hover {
  background: rgba(108,99,255,0.12);
  border-color: var(--color-primary);
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.btn--tg {
  background: linear-gradient(135deg, #229ED9 0%, #1a85b8 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,158,217,0.35);
}

.btn--tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34,158,217,0.5);
}

.btn--tg:active { transform: translateY(0); }

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

.cta__tg-sub {
  font-size: 13px;
  color: var(--color-text-dim);
  margin-top: 4px;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 11, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__icon { display: flex; align-items: center; }

.logo__text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

.logo__accent { color: var(--color-primary-light); }

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

.nav__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.06);
}

/* ---- Language Switcher ---- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.08);
}

.lang-btn--active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(108,99,255,0.4);
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(62,207,207,0.1);
  border: 1px solid rgba(62,207,207,0.25);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.badge__dot {
  width: 7px; height: 7px;
  background: var(--color-secondary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat { text-align: center; }

.stat__value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat__label {
  font-size: 12px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
  margin-top: 2px;
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* ---- Features ---- */
.features { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover { transform: translateY(-4px); }

.feature-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- FAQ ---- */
.faq { padding: 80px 0; }

.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }

.faq__item { overflow: hidden; }

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq__arrow {
  font-size: 22px;
  color: var(--color-primary-light);
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.faq__item.open .faq__arrow { transform: rotate(90deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding var(--transition);
}

.faq__item.open .faq__answer { max-height: 300px; }

.faq__answer p {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- CTA ---- */
.cta { padding: 80px 0; }

.cta__inner {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(108,99,255,0.08) 0%, rgba(62,207,207,0.06) 100%);
  border-color: rgba(108,99,255,0.25);
}

.cta__title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.cta__subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

/* ---- Footer ---- */
.footer { padding: 32px 0; border-top: 1px solid var(--color-border); }

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy { font-size: 13px; color: var(--color-text-dim); }

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(108,99,255,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  animation: chatBounce 3s ease-in-out infinite;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(108,99,255,0.65);
  animation: none;
}

@keyframes chatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.chat-bubble__icon { display: flex; }

.chat-bubble__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.chat-bubble.hidden { display: none; }

/* Chat Widget Panel */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 1000;
  width: 380px;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  background: #13141f;
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-chat);
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  overflow: hidden;
}

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

.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(108,99,255,0.2) 0%, rgba(62,207,207,0.15) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

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

.chat-widget__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.chat-widget__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.chat-widget__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: 500;
}

.status-dot {
  width: 7px; height: 7px;
  background: var(--color-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.chat-widget__close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--color-text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
}

.chat-widget__close:hover { background: rgba(255,255,255,0.15); color: var(--color-text); }

/* Chat Body */
.chat-widget__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.chat-widget__body::-webkit-scrollbar { width: 4px; }
.chat-widget__body::-webkit-scrollbar-track { background: transparent; }
.chat-widget__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.chat-widget__welcome {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: var(--radius-md);
}

.welcome-icon { font-size: 24px; flex-shrink: 0; }

.welcome-text strong { display: block; font-size: 14px; margin-bottom: 4px; }
.welcome-text p { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; margin: 0; }

/* Messages */
.message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: msgIn 0.25s ease-out;
}

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

.message--user { align-self: flex-end; align-items: flex-end; }
.message--agent { align-self: flex-start; align-items: flex-start; }

.message__bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.message--user .message__bubble {
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message--agent .message__bubble {
  background: rgba(255,255,255,0.07);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}

.message__time {
  font-size: 11px;
  color: var(--color-text-dim);
  margin-top: 4px;
  padding: 0 4px;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

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

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

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Input area */
.chat-widget__input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.chat-input::placeholder { color: var(--color-text-dim); }

.chat-input:focus {
  border-color: rgba(108,99,255,0.5);
  background: rgba(255,255,255,0.08);
}

.chat-send-btn {
  width: 40px; height: 40px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(108,99,255,0.35);
}

.chat-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 18px rgba(108,99,255,0.55);
}

.chat-send-btn:active { transform: scale(0.96); }

.chat-widget__footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-dim);
  padding: 6px 16px 10px;
  flex-shrink: 0;
}

/* ---- Choice buttons (Stay / Telegram) ---- */
.chat-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
  animation: msgIn 0.3s ease-out;
}

.chat-choice-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  border: none;
  outline: none;
}

.chat-choice-btn--primary {
  background: rgba(108,99,255,0.15);
  color: var(--color-primary-light);
  border: 1.5px solid rgba(108,99,255,0.3);
}

.chat-choice-btn--primary:hover {
  background: rgba(108,99,255,0.25);
  border-color: rgba(108,99,255,0.5);
  transform: translateY(-1px);
}

.chat-choice-btn--tg {
  background: linear-gradient(135deg, #229ED9 0%, #1a85b8 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(34,158,217,0.3);
}

.chat-choice-btn--tg:hover {
  box-shadow: 0 6px 22px rgba(34,158,217,0.5);
  transform: translateY(-1px);
  opacity: .95;
}

.chat-choice-btn:active { transform: translateY(0) scale(0.98); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .nav__link { display: none; }
  .hero { padding: 70px 0 60px; }
  .hero__stats { gap: 20px; padding: 16px 24px; }
  .stat__divider { display: none; }
  .chat-widget { width: calc(100vw - 24px); right: 12px; bottom: 90px; }
  .chat-bubble { right: 16px; bottom: 16px; }
  .cta__inner { padding: 40px 24px; }
}

