/* BitBay – component styles (Tailwind handles utilities) */

html { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: #334155 transparent; }
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 9999px; }
#assistantChips { scrollbar-width: none; }
#assistantChips::-webkit-scrollbar { display: none; }

/* Header shadow when scrolled */
.header-scrolled { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }

/* Payment tabs */
.pay-tab { color: #94a3b8; }
.pay-tab[aria-selected="true"] { background: #10b981; color: #020617; }

/* Coin marquee */
.marquee-track { animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.coin { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.coin em { font-style: normal; color: #475569; font-size: 0.75rem; }
.coin-dot { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 9999px; color: #fff; font-size: 0.75rem; font-weight: 700; }

/* Partners */
.partner-perk { display: flex; flex-direction: column; gap: 0.75rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.08); background: #020617; padding: 1.25rem; font-weight: 600; color: #fff; font-size: 0.9rem; }
.partner-perk i { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: rgba(16, 185, 129, 0.12); color: #10b981; }
.partner-tile { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.06); background: #020617; padding: 1.5rem 0.75rem; text-align: center; transition: border-color .2s; }
.partner-tile:hover { border-color: #10b981; }
.partner-tile i { margin-bottom: 0.35rem; font-size: 1.6rem; color: #10b981; }
.partner-tile strong { font-family: "Space Grotesk", Inter, sans-serif; color: #fff; }
.partner-tile span { font-size: 0.75rem; color: #64748b; }

/* Feature cards */
.feature-card {
  border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02); padding: 1.75rem;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.35); background: rgba(255, 255, 255, 0.04); }
.feature-card h3 { margin-top: 1.25rem; font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.125rem; font-weight: 600; color: #fff; }
.feature-card p { margin-top: 0.5rem; font-size: 0.925rem; line-height: 1.65; color: #94a3b8; }
.feature-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.875rem; font-size: 1.25rem; }

/* Steps */
.step { display: flex; gap: 1rem; }
.step-num { display: grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: rgba(16, 185, 129, 0.15); color: #6ee7b7; font-weight: 700; }
.step h4 { font-weight: 600; color: #fff; }
.step p { margin-top: 0.25rem; font-size: 0.9rem; line-height: 1.6; color: #94a3b8; }

/* Merchant tools */
.tool-card { display: flex; gap: 0.875rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); padding: 1rem; }
.tool-card > i { margin-top: 0.2rem; font-size: 1.15rem; }
.tool-card h3 { font-weight: 600; color: #fff; font-size: 0.95rem; }
.tool-card p { margin-top: 0.15rem; font-size: 0.825rem; color: #94a3b8; }

/* Wallet chips */
.wallet-chip { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(2, 6, 23, 0.6); padding: 1.25rem 0.5rem; font-size: 0.85rem; font-weight: 600; color: #cbd5e1; transition: border-color .2s; }
.wallet-chip i { font-size: 1.75rem; }
.wallet-chip:hover { border-color: rgba(52, 211, 153, 0.35); }

/* Security cards */
.sec-card { border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); padding: 1.5rem; }
.sec-card > i { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: rgba(16, 185, 129, 0.1); color: #34d399; font-size: 1.15rem; }
.sec-card h3 { margin-top: 1rem; font-weight: 600; color: #fff; }
.sec-card p { margin-top: 0.35rem; font-size: 0.875rem; line-height: 1.6; color: #94a3b8; }

/* Support */
.support-link { display: flex; align-items: center; gap: 0.875rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.08); padding: 0.875rem 1rem; text-align: left; transition: border-color .2s, background .2s; }
.support-link:hover { border-color: rgba(52, 211, 153, 0.4); background: rgba(255, 255, 255, 0.03); }
.support-link > i { font-size: 1.35rem; }
.support-link strong { display: block; color: #fff; font-size: 0.9rem; }
.support-link small { display: block; color: #64748b; font-size: 0.75rem; }
.avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 2px solid #020617; color: #020617; font-size: 0.7rem; font-weight: 700; }
.uptime-bar { flex: 1; border-radius: 2px; background: #10b981; opacity: .85; transition: opacity .2s; }
.uptime-bar:hover { opacity: 1; }

/* Pricing */
.price-card { position: relative; display: flex; flex-direction: column; border-radius: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02); padding: 2rem; }
.price-card.featured { border-color: #10b981; background: rgba(16, 185, 129, 0.08); }
.price-card h3 { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.25rem; font-weight: 600; color: #fff; }
.price-card .desc { margin-top: 0.4rem; font-size: 0.875rem; color: #94a3b8; }
.price-card .price { margin-top: 1.5rem; font-family: "Space Grotesk", Inter, sans-serif; font-size: 2.5rem; font-weight: 700; color: #fff; }
.price-card .price span { font-size: 0.9rem; font-weight: 500; color: #64748b; }
.price-card ul { margin: 1.5rem 0 2rem; display: grid; gap: 0.7rem; font-size: 0.9rem; flex: 1; }
.price-card li i { margin-right: 0.6rem; color: #34d399; }
.price-btn { display: block; border-radius: 0.875rem; border: 1px solid rgba(255, 255, 255, 0.15); padding: 0.8rem; text-align: center; font-weight: 600; color: #fff; transition: background .2s, border-color .2s; }
.price-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(52, 211, 153, 0.5); }
.price-btn.primary { background: #10b981; border-color: #10b981; color: #020617; }
.price-btn.primary:hover { background: #34d399; }

/* Testimonials */
.testimonial { break-inside: avoid; margin-bottom: 1.5rem; border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(2, 6, 23, 0.6); padding: 1.5rem; }
.testimonial .stars { color: #fbbf24; font-size: 0.8rem; display: flex; gap: 0.15rem; }
.testimonial blockquote { margin-top: 0.875rem; line-height: 1.7; color: #cbd5e1; }
.testimonial figcaption { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.testimonial figcaption img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1); }
.testimonial figcaption strong { display: block; color: #fff; font-size: 0.9rem; }
.testimonial figcaption span { display: block; color: #64748b; font-size: 0.8rem; }

/* Learn */
.learn-card { border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); padding: 1.5rem; }
.learn-card > i { font-size: 1.5rem; }
.learn-card h3 { margin-top: 1rem; font-weight: 600; color: #fff; }
.learn-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.65; color: #94a3b8; }

/* FAQ */
.faq { border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(2, 6, 23, 0.6); transition: border-color .2s; }
.faq[open] { border-color: rgba(52, 211, 153, 0.35); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; font-weight: 600; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.8rem; color: #34d399; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.25rem 1.25rem; line-height: 1.7; color: #94a3b8; }

/* Footer */
.footer-title { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.footer-list { margin-top: 1rem; display: grid; gap: 0.6rem; font-size: 0.875rem; }
.footer-list a, .footer-list button { color: #94a3b8; transition: color .2s; }
.footer-list a:hover, .footer-list button:hover { color: #fff; }
.social { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.1); color: #94a3b8; transition: all .2s; }
.social:hover { color: #020617; background: #10b981; border-color: #10b981; }

/* Wallet modal */
.wallet-option { display: flex; width: 100%; align-items: center; gap: 0.875rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(2, 6, 23, 0.6); padding: 0.9rem 1rem; text-align: left; color: #fff; font-weight: 600; transition: border-color .2s, background .2s; }
.wallet-option:hover { border-color: rgba(52, 211, 153, 0.5); background: rgba(255, 255, 255, 0.03); }
.wallet-option i { width: 1.75rem; font-size: 1.35rem; text-align: center; }
.wallet-option span { flex: 1; }
.wallet-option small { font-size: 0.7rem; font-weight: 500; color: #64748b; }
.wallet-option small.partner-badge { border-radius: 9999px; background: #10b981; padding: 0.1rem 0.5rem; font-weight: 600; color: #020617; }
.wallet-option.featured, .wallet-chip.featured { border-color: #10b981; }

/* Assistant */
.msg { max-width: 85%; border-radius: 1rem; padding: 0.7rem 0.95rem; font-size: 0.875rem; line-height: 1.6; animation: msgIn .25s ease; }
.msg-bot { background: rgba(255, 255, 255, 0.05); color: #cbd5e1; border-bottom-left-radius: 0.25rem; }
.msg-user { margin-left: auto; background: #10b981; color: #020617; border-bottom-right-radius: 0.25rem; }
.msg-bot a { color: #34d399; text-decoration: underline; }
.msg-bot ul { margin-top: 0.4rem; padding-left: 1.1rem; list-style: disc; }
.msg-bot strong { color: #fff; }
.msg-related { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { flex-shrink: 0; border-radius: 9999px; border: 1px solid rgba(52, 211, 153, 0.35); padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 500; color: #6ee7b7; white-space: nowrap; transition: background .2s; }
.chip:hover { background: rgba(16, 185, 129, 0.15); }
.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 9999px; background: #94a3b8; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .reveal, .msg { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
