/* SatsRail Custom Styles */

:root {
  --bitcoin-orange: #d4a017;
  --bitcoin-orange-dark: #b8860b;
  --bitcoin-orange-darker: #8b6914;
  --lightning-purple: #792ee5;
  --gray-900: #0a0a0a;
  --radius-sm: 0.25rem;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  --gold-glow: rgba(212, 160, 23, 0.15);

  /* ============================================
     TYPOGRAPHY SCALE — Improved Readability
     Scaled up ~40% from original sizes
     ============================================ */
  --fs-2xs: 0.875rem;   /* 14px - badges, micro labels */
  --fs-xs: 1rem;        /* 16px - timestamps, small text */
  --fs-sm: 1.125rem;    /* 18px - nav links, secondary text */
  --fs-base: 1.25rem;   /* 20px - body text, table cells */
  --fs-md: 1.375rem;    /* 22px - emphasized text */
  --fs-lg: 1.5rem;      /* 24px - section headers */
  --fs-xl: 1.75rem;     /* 28px - card headers */
  --fs-2xl: 2rem;       /* 32px - page titles */
  --fs-3xl: 2.5rem;     /* 40px - display text */
  --fs-4xl: 3.5rem;     /* 56px - stat values */
  --fs-5xl: 4rem;       /* 64px - hero numbers */

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-base: 1.5;
  --lh-relaxed: 1.65;
}

.bg-bitcoin {
  background-color: var(--bitcoin-orange);
}

.bg-lightning {
  background: linear-gradient(135deg, var(--lightning-purple) 0%, #9d4edd 100%);
}

.text-bitcoin {
  color: var(--bitcoin-orange);
}

.bg-bitcoin-gradient {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1400 40%, #0a0a0a 100%);
}

/* Force all submit inputs and buttons to respect Bootstrap styling */
input[type="submit"].btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.btn-bitcoin {
  background: var(--bitcoin-orange);
  border: 2px solid var(--bitcoin-orange-dark);
  color: #0a0a0a;
  font-weight: 700;
  transition: all 0.15s;
}

.btn-bitcoin:hover {
  background: #e0b030;
  border-color: var(--bitcoin-orange);
  color: #0a0a0a;
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.4);
}

.btn-bitcoin:active {
  background: var(--bitcoin-orange-dark);
  color: #0a0a0a;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.btn-bitcoin:disabled,
.btn-bitcoin.disabled {
  background: var(--bitcoin-orange);
  border-color: var(--bitcoin-orange-dark);
  color: #0a0a0a;
  opacity: 0.75;
}

/* Mobile-first form improvements */
@media (max-width: 575.98px) {
  .form-control-lg,
  .btn-lg {
    font-size: var(--fs-sm);
    padding: 0.75rem 1rem;
  }

  .card-body {
    padding: 1.5rem 1rem !important;
  }

  /* Mobile table improvements */
  .table {
    font-size: var(--fs-sm);
  }

  .table th,
  .table td {
    padding: 0.5rem 0.35rem;
  }

  .display-5 {
    font-size: var(--fs-xl);
  }
}

/* Table improvements */
.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.table thead th {
  border-bottom: 2px solid #dee2e6;
}

.hero-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1400 40%, #0a0a0a 100%);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(212, 160, 23, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(212, 160, 23, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.api-endpoint {
  font-family: 'Courier New', monospace;
  background: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border-left: 4px solid var(--lightning-purple);
}

.stats-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.stats-card:hover {
  transform: translateY(-5px);
}

/* Hero terminal — macOS Terminal.app style */
.hero-terminal {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: var(--fs-sm);
  line-height: 1.8;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  border: none;
}

.hero-terminal code {
  color: #cccccc;
  background: transparent;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* macOS title bar */
.hero-terminal .terminal-titlebar {
  background: linear-gradient(180deg, #3c3c3c 0%, #323232 100%);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #1a1a1a;
}

.hero-terminal .terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
}

.hero-terminal .terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hero-terminal .terminal-dots .dot-close { background: #ff5f57; }
.hero-terminal .terminal-dots .dot-minimize { background: #febc2e; }
.hero-terminal .terminal-dots .dot-expand { background: #28c840; }

.hero-terminal .terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0;
  text-transform: none;
}

/* Terminal body */
.hero-terminal .terminal-body {
  padding: 1.25rem 1.5rem;
}

/* Syntax coloring */
.hero-terminal .term-prompt { color: #22c55e; }
.hero-terminal .term-flag { color: #79c0ff; }
.hero-terminal .term-url { color: #cccccc; }
.hero-terminal .term-string { color: #a5d6ff; }
.hero-terminal .term-comment { color: #6e7681; font-style: italic; }
.hero-terminal .term-key { color: #79c0ff; }
.hero-terminal .term-value { color: #a5d6ff; }

/* Comparison table */
.compare-table td,
.compare-table th {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
}

.compare-table .satsrail-col {
  border-left: 3px solid #d4a017;
  border-right: 3px solid #d4a017;
}

.compare-table tbody tr:nth-child(even) {
  background-color: rgba(0,0,0,0.02);
}

/* Global accordion styling */
.accordion {
  --bs-accordion-btn-bg: #fff;
  --bs-accordion-active-bg: #fff;
  --bs-accordion-bg: #fff;
  --bs-accordion-active-color: #d4a017;
}

.accordion .accordion-item {
  border: none;
  margin-bottom: 0.75rem;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background-color: #fff;
}

.accordion .accordion-button {
  font-weight: 500;
  font-size: var(--fs-lg);
  padding: 1.25rem 1.5rem;
  background: #fff !important;
  text-shadow: none;
}

.accordion .accordion-button.collapsed {
  background: #fff !important;
  color: inherit;
}

.accordion .accordion-button:not(.collapsed) {
  background: #fff !important;
  color: #d4a017;
  box-shadow: none;
}

.accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion .accordion-body {
  padding: 0 1.5rem 1.25rem;
  color: #6c757d;
  line-height: 1.7;
}

/* Custody section "can never do" cards */
.custody-cant-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}

/* Social proof bar */
.social-proof-bar {
  border-bottom: 1px solid #e9ecef;
}

/* ============================================
   NAVBAR — BlockClock Inspired (matches breadcrumbs)
   Monospace · Uppercase · Minimal
   ============================================ */
.navbar-bitcoin {
  background: var(--gray-900);
  padding: 0;
  border-bottom: 1px solid rgba(212, 160, 23, 0.3);
}

.navbar-bitcoin .container-fluid {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-bitcoin .navbar-brand,
.navbar-bitcoin .nav-link,
.navbar-bitcoin .navbar-text {
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7) !important;
}

.navbar-bitcoin .navbar-brand {
  font-size: var(--fs-md);
  font-weight: 600;
  color: #fff !important;
  padding: 0.25rem 0;
}

.navbar-bitcoin .navbar-brand i {
  color: var(--bitcoin-orange);
}

.navbar-bitcoin .nav-link {
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  transition: color 0.15s ease;
}

.navbar-bitcoin .navbar-brand,
.navbar-bitcoin .navbar-brand:hover,
.navbar-bitcoin .navbar-brand:focus,
.navbar-bitcoin .nav-link {
  text-decoration: none !important;
}

.navbar-bitcoin .nav-link.active {
  font-weight: 600;
  color: var(--bitcoin-orange) !important;
}

.navbar-bitcoin .nav-link:hover,
.navbar-bitcoin .nav-link:focus {
  color: var(--bitcoin-orange) !important;
  text-decoration: none !important;
}

/* Navbar CTA Button — matches monospace theme */
.navbar-bitcoin .btn-navbar {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--fs-2xs);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.navbar-bitcoin .btn-navbar-primary {
  background: var(--bitcoin-orange);
  border: 1px solid var(--bitcoin-orange);
  color: #fff;
}

.navbar-bitcoin .btn-navbar-primary:hover {
  background: var(--bitcoin-orange-dark);
  border-color: var(--bitcoin-orange-dark);
  color: #fff;
}

.navbar-bitcoin .btn-navbar-outline {
  background: transparent;
  border: 1px solid rgba(212, 160, 23, 0.5);
  color: var(--bitcoin-orange);
}

.navbar-bitcoin .btn-navbar-outline:hover {
  background: rgba(212, 160, 23, 0.12);
  border-color: var(--bitcoin-orange);
  color: var(--bitcoin-orange);
}

.navbar-bitcoin .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--fs-2xs);
}

.navbar-bitcoin .btn-outline-light:hover {
  background: var(--bitcoin-orange);
  border-color: var(--bitcoin-orange);
  color: #fff;
}

/* Dropdown styling — matches monospace theme */
.navbar-bitcoin .dropdown-menu {
  background: var(--gray-900);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 160, 23, 0.3);
  margin-top: 0.25rem;
  padding: 0.35rem 0;
}

.navbar-bitcoin .dropdown-item {
  padding: 0.6rem 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.navbar-bitcoin .dropdown-item:hover,
.navbar-bitcoin .dropdown-item:focus {
  background: rgba(212, 160, 23, 0.12);
  color: var(--bitcoin-orange);
  text-decoration: none !important;
}

.navbar-bitcoin .dropdown-item i {
  font-size: 0.8em;
  opacity: 0.8;
}

.navbar-bitcoin .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0.25rem 0;
}

/* Proportional icon sizing */
.navbar-bitcoin .nav-link i,
.navbar-bitcoin .navbar-brand i {
  font-size: 1em;
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
  .navbar-bitcoin .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    border-color: rgba(255, 255, 255, 0.2);
  }

  .navbar-bitcoin .navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
  }

  .navbar-bitcoin .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: var(--fs-2xs);
  }

  .navbar-bitcoin .dropdown-menu {
    background: rgba(17, 24, 39, 0.95);
    border: none;
    margin-top: 0;
  }

  /* Navbar CTA buttons — full-width stacked on mobile */
  .navbar-bitcoin .navbar-cta-buttons {
    border-color: rgba(255, 255, 255, 0.1) !important;
    padding-top: 0.75rem !important;
    margin-top: 0.5rem !important;
  }

  .navbar-bitcoin .navbar-cta-buttons .btn {
    font-size: var(--fs-xs);
    padding: 0.6rem 1rem;
    text-align: center;
  }

  .navbar-bitcoin .navbar-cta-buttons .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.25);
  }

  .navbar-bitcoin .navbar-cta-buttons .btn-navbar-primary {
    padding: 0.65rem 1rem;
    font-size: var(--fs-xs);
  }
}

/* Remove border-top on desktop for navbar CTA */
@media (min-width: 992px) {
  .navbar-bitcoin .navbar-cta-buttons {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

/* ============================================
   FOOTER — Matches Navbar Monospace Theme
   ============================================ */
.footer-bitcoin {
  background: var(--gray-900);
  border-top: 1px solid rgba(212, 160, 23, 0.3);
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-bitcoin .footer-brand {
  color: #fff;
  font-weight: 600;
  margin-right: 1rem;
}

.footer-bitcoin .footer-brand i {
  color: var(--bitcoin-orange);
  margin-right: 0.25rem;
}

.footer-bitcoin .footer-copyright {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bitcoin .footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-bitcoin .footer-link:hover {
  color: var(--bitcoin-orange);
  text-decoration: none;
}

.btn, .btn:hover, .btn:focus, .btn:active {
  text-decoration: none !important;
}

/* Hover lift effect for cards */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Hero proof points — accessible opacity */
.hero-proof-points {
  color: rgba(255, 255, 255, 0.9);
}

.hero-proof-points .bi {
  color: #d4a017;
}

/* Use case card link colors */
a.text-decoration-none .card .text-bitcoin {
  transition: color 0.2s;
}

a.text-decoration-none:hover .card .text-bitcoin {
  color: #c44b00 !important;
}

/* Code Blocks */
pre {
  white-space: pre-wrap;
  word-break: break-word;
}

code {
  font-family: 'Courier New', monospace;
}

/* Nav Tabs */
.nav-tabs .nav-link {
  color: #6c757d;
}

.nav-tabs .nav-link.active {
  color: #d4a017;
  border-color: #dee2e6 #dee2e6 #fff;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   HOME PAGE — MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 767.98px) {
  /* --- Global section breathing room --- */
  section.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  section.py-4 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Tighter section headings on mobile */
  section .mb-5 {
    margin-bottom: 2rem !important;
  }

  /* --- Hero section --- */
  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-section h1.display-3 {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero-section .lead {
    font-size: 0.95rem;
  }

  .hero-section .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem !important;
  }

  .hero-section .d-flex.gap-3 {
    gap: 0.5rem !important;
  }

  .hero-section .d-flex.gap-3 .btn {
    width: 100%;
  }

  .hero-proof-points {
    gap: 0 !important;
  }

  .hero-proof-points .col-auto {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
  }

  .hero-section .small.mt-3 {
    font-size: 0.75rem;
  }

  /* --- Social proof bar --- */
  .social-proof-bar {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }

  .social-proof-bar .col-auto {
    flex: 0 0 100%;
  }

  .social-proof-bar p {
    font-size: 0.8rem;
    line-height: 2;
  }

  .social-proof-bar .mx-2 {
    display: none;
  }

  /* --- How It Works --- */
  #how-it-works .col-md-4 {
    margin-bottom: 0.5rem;
  }

  #how-it-works .col-md-4 p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  #how-it-works .rounded-circle {
    width: 60px !important;
    height: 60px !important;
  }

  #how-it-works .display-6 {
    font-size: 1.4rem;
  }

  #how-it-works .h4 {
    font-size: 1.05rem;
  }

  /* --- Security / Custody section --- */
  #security .h1 {
    font-size: 1.6rem;
  }

  #security .lead {
    font-size: 0.95rem;
  }

  #security .d-flex.align-items-start {
    margin-bottom: 1.25rem !important;
  }

  #security .d-flex.align-items-start .rounded-circle {
    width: 36px !important;
    height: 36px !important;
  }

  #security .bg-light.rounded-3 {
    padding: 1.25rem !important;
  }

  #security .bg-light.rounded-3 .fw-semibold {
    font-size: 0.9rem;
  }

  /* --- Features section --- */
  #features .h2 {
    font-size: 1.5rem;
  }

  #features .card-body {
    padding: 1.25rem !important;
  }

  #features .feature-icon {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }

  /* --- Use Cases section --- */
  #use-cases .h2 {
    font-size: 1.5rem;
  }

  #use-cases .card-body {
    padding: 1.25rem !important;
  }

  #use-cases .feature-icon {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  /* --- API section --- */
  #api .display-6 {
    font-size: 1.5rem;
  }

  #api .lead {
    font-size: 0.95rem;
  }

  #api .bg-white.bg-opacity-10 {
    font-size: 0.72rem !important;
    padding: 0.75rem !important;
    overflow-x: auto;
    word-break: break-all;
  }

  #api .bg-white.text-dark.rounded-3 {
    padding: 1.25rem !important;
  }

  #api .bg-white.text-dark .mb-3 .ms-5 {
    margin-left: 2.75rem !important;
  }

  #api .col-lg-6 .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }

  #api .col-lg-6 code {
    font-size: 0.72rem;
  }

  #api .d-flex.gap-3 .btn {
    width: 100%;
  }

  /* --- FAQ section --- */
  #faq .h1 {
    font-size: 1.5rem;
  }

  .accordion .accordion-button {
    font-size: 0.95rem;
    padding: 1rem 1.15rem;
  }

  .accordion .accordion-body {
    padding: 0 1.15rem 1rem;
    font-size: 0.9rem;
  }

  .accordion .accordion-item {
    margin-bottom: 0.5rem;
  }

  /* --- Final CTA section --- */
  section.bg-bitcoin-gradient .h1 {
    font-size: 1.5rem;
  }

  section.bg-bitcoin-gradient .lead {
    font-size: 0.95rem;
  }

  section.bg-bitcoin-gradient .d-flex.gap-3 {
    gap: 0.5rem !important;
  }
}

/* CTA buttons full-width on mobile */
@media (max-width: 575.98px) {
  .d-flex.gap-3.justify-content-center .btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   POS DEMO TERMINAL
   ═══════════════════════════════════════════════════════════════════════════ */

/* Terminal-style activity log */
.pos-log {
  background: #0a0a0a;
  color: #c8c8c8;
  font-family: var(--font-mono, monospace);
  font-size: var(--fs-xs);
  line-height: 1.6;
  min-height: 380px;
  max-height: 520px;
  overflow-y: auto;
  padding: 0.75rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  scrollbar-width: thin;
  scrollbar-color: #333 #0a0a0a;
}

.pos-log::-webkit-scrollbar {
  width: 6px;
}

.pos-log::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.pos-log::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.pos-log-entry {
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  word-break: break-word;
}

.pos-log-entry:last-child {
  border-bottom: none;
}

.pos-log-ts {
  color: #666;
  margin-right: 0.5em;
  white-space: nowrap;
}

.pos-log-info {
  color: #8ab4f8;
}

.pos-log-success {
  color: #81c995;
  font-weight: 600;
}

.pos-log-error {
  color: #f28b82;
  font-weight: 600;
}

.pos-log-warn {
  color: var(--bitcoin-orange);
  font-weight: 600;
}

/* Payment success flash animation */
@keyframes posPaymentFlash {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  30% { box-shadow: 0 0 20px 6px rgba(16, 185, 129, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pos-payment-flash {
  animation: posPaymentFlash 1.5s ease-out;
}

/* QR code container */
.pos-log + .card-body .bg-white {
  transition: transform 0.15s ease;
}

/* POS responsive tweaks */
@media (max-width: 991.98px) {
  .pos-log {
    min-height: 200px;
    max-height: 300px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   API DOCS
   ═══════════════════════════════════════════════════════════════════ */

/* Sticky sidebar navigation */
.api-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.api-sidebar .nav-link {
  color: var(--bs-body-color);
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  border-left: 2px solid transparent;
  border-radius: 0;
  transition: all 0.15s ease;
}

.api-sidebar .nav-link:hover {
  color: var(--bitcoin-orange);
  background: rgba(212, 160, 23, 0.05);
  border-left-color: rgba(212, 160, 23, 0.3);
}

.api-sidebar .nav-link.active {
  color: var(--bitcoin-orange);
  font-weight: 600;
  background: rgba(212, 160, 23, 0.08);
  border-left-color: var(--bitcoin-orange);
}

/* Endpoint cards */
.api-endpoint-card {
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  transition: border-color 0.15s ease;
}

.api-endpoint-card:hover {
  border-color: rgba(212, 160, 23, 0.3);
}

/* Copy button positioned over code blocks */
.api-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  opacity: 0.75;
  transition: opacity 0.15s ease;
  background: #d4a017 !important;
  color: #0a0a0a !important;
  font-weight: 600 !important;
  border: none !important;
}

.api-copy-btn:hover {
  background: #e0b030 !important;
  color: #0a0a0a !important;
}

.position-relative:hover .api-copy-btn {
  opacity: 1;
}

/* Try It panel */
/* Normalize form field heights in Try It panels */
.api-try-form .form-control-sm,
.api-try-form .form-select-sm {
  height: 31px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.api-try-panel pre {
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.8rem;
}

/* Code blocks inside docs */
.api-endpoint-card pre,
#authentication pre,
#pagination pre,
#websocket pre,
#webhooks pre,
#errors pre {
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* API docs responsive */
@media (max-width: 991.98px) {
  .api-sidebar {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   EXCHANGE MARQUEE
   ═══════════════════════════════════════════════════════════════════ */

.exchange-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.exchange-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.exchange-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.exchange-logo-link {
  opacity: 0.5;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.exchange-logo-link:hover {
  opacity: 1;
}

.exchange-logo-link img {
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.exchange-logo-link:hover img {
  filter: grayscale(0%);
}

