/* Component Styles: Calculator, FAQ, Modals, Widgets, Floating Triggers */

/* ROI Calculator */
.calc-wrapper {
  padding: 36px;
  background: #040916;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 800px) {
  .calc-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.calc-input-group {
  margin-bottom: 24px;
}
.calc-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text-main);
}
.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #0D1B2E;
  outline: none;
  accent-color: var(--neon-cyan);
  cursor: pointer;
}

.calc-result-card {
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.calc-result-title {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}
.calc-result-value {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--neon-green);
  margin: 10px 0;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}
.calc-result-breakdown {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.active {
  border-color: var(--border-accent);
}
.faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  text-align: left;
  color: #FFF;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
  color: var(--neon-cyan);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* Floating Telegram Community Trigger */
.floating-telegram-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #030814;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  text-decoration: none;
  color: #38BDF8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-telegram-widget:hover {
  transform: translateY(-2px);
  border-color: #38BDF8;
  box-shadow: 0 10px 35px rgba(56, 189, 248, 0.45);
}
.telegram-unread-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  animation: pulseDot 1.8s infinite;
}

/* Sticky Download Bar (Emerges on scroll) */
.sticky-download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(2, 5, 14, 0.95);
  border-top: 1px solid var(--border-accent);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}
.sticky-download-bar.visible {
  transform: translateY(0);
}

/* Age Verification & Geo-Gate Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #040916;
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.25);
  color: var(--text-main);
  position: relative;
}

/* GDPR Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 440px;
  width: calc(100% - 40px);
  z-index: 999;
  background: rgba(4, 9, 22, 0.96);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  display: none;
}
.cookie-banner.show {
  display: block;
}
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.btn-cookie {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  transition: all 0.2s;
}
.btn-cookie:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.12);
}
.btn-cookie-accept {
  background: var(--neon-cyan);
  color: #000;
  font-weight: 700;
}
.btn-cookie-accept:hover {
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

/* AI Chat Assistant Widget */
.ai-chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00E5FF, #00B4D8);
  color: #02050E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
  transition: transform 0.2s ease;
  border: none;
}
.ai-chat-bubble:hover {
  transform: scale(1.08);
}
.ai-chat-window {
  position: fixed;
  bottom: 86px;
  right: 24px;
  width: 360px;
  height: 480px;
  max-width: calc(100vw - 48px);
  background: #030814;
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  z-index: 95;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.ai-chat-window.open {
  display: flex;
}
.ai-chat-header {
  background: #050E22;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}
.ai-chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}
.chat-msg {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 85%;
  line-height: 1.4;
}
.chat-msg-bot {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
}
.chat-msg-user {
  background: #0284C7;
  color: #FFF;
  align-self: flex-end;
}
.ai-chat-disclaimer {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  padding: 4px 10px;
  background: #02040A;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ai-chat-input-row {
  display: flex;
  border-top: 1px solid var(--border-subtle);
}
.ai-chat-input {
  flex: 1;
  background: #02050E;
  border: none;
  padding: 10px 14px;
  color: #FFF;
  outline: none;
  font-size: 0.82rem;
}
.ai-chat-send {
  background: var(--neon-cyan);
  border: none;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

/* Poly Chat Floating Trigger & Drawer (WOW Grade) */
#poly-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  font-family: var(--font-sans);
}
.poly-chat-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), #0284C7);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), 0 10px 25px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.poly-chat-btn:hover {
  transform: scale(1.1) rotate(5deg);
}
.poly-chat-icon {
  font-size: 1.5rem;
}
.poly-chat-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  opacity: 0.8;
  animation: chatPulse 2.2s infinite;
  pointer-events: none;
}
@keyframes chatPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}
.poly-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--neon-green);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 0 8px var(--neon-green);
}

.poly-chat-drawer {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  height: 520px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 120px);
  background: rgba(3, 8, 20, 0.98);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 229, 255, 0.15);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}
.poly-chat-drawer.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.poly-chat-header {
  background: linear-gradient(180deg, rgba(8, 18, 42, 0.9), rgba(4, 10, 24, 0.8));
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.poly-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.poly-chat-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}
.poly-chat-header-info h3 {
  font-size: 0.95rem;
  color: #FFF;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-mono);
}
.poly-chat-subtitle {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: 0;
}
.poly-chat-actions {
  display: flex;
  gap: 6px;
}
.poly-chat-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}
.poly-chat-tool-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  color: #FFF;
  border-color: var(--neon-cyan);
}
.poly-chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.poly-chat-body .chat-msg {
  display: flex;
  gap: 10px;
  max-width: 90%;
  line-height: 1.45;
  font-size: 0.84rem;
}
.poly-chat-body .bot-msg {
  align-self: flex-start;
}
.poly-chat-body .user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.user-msg .msg-avatar {
  background: rgba(0, 180, 216, 0.25);
}
.msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-main);
}
.user-msg .msg-bubble {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.35), rgba(0, 119, 182, 0.45));
  border-color: var(--neon-cyan);
  color: #FFF;
}
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chat-chip {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-accent);
  color: var(--neon-cyan);
  padding: 5px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
}
.chat-chip:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}
.poly-chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
}
.poly-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.poly-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.poly-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}
.poly-chat-footer {
  border-top: 1px solid var(--border-subtle);
  background: #02050E;
  padding: 10px 12px;
}
.poly-input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}
.poly-input-group:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}
.poly-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 12px;
  color: #FFF;
  font-size: 0.84rem;
  outline: none;
}
.poly-input-group button {
  background: var(--neon-cyan);
  border: none;
  color: #000;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.poly-input-group button:hover {
  background: #FFF;
}
.poly-chat-disclaimer {
  font-size: 0.64rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
  line-height: 1.35;
}

/* Competitor Comparison Matrix */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(6, 11, 24, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 24px;
  margin-bottom: 24px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 640px;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}
.comparison-table th {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(2, 5, 14, 0.95);
  color: var(--text-muted);
}
.comparison-table .col-highlight {
  background: rgba(0, 229, 255, 0.06);
  border-left: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
  color: #FFF;
}
.comparison-table th.col-highlight {
  color: var(--neon-cyan);
  font-weight: 800;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}
.comparison-table tr:hover td.col-highlight {
  background-color: rgba(0, 229, 255, 0.09);
}
.badge-winner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(0, 255, 157, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 157, 0.35);
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.badge-loser {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 4px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
}

