/* ==========================================================================
   CRYPTO SCANNER — FULLY RESPONSIVE MOBILE-FIRST SAAS STYLESHEET
   Strict Compliance Rules:
   - NO Icons added
   - NO Emojis added
   - NO Gradients
   - NO Body horizontal scrollbar at any screen width (320px to 1920px)
   - Preserve existing black/white/gray/navy minimalist aesthetic
   ========================================================================== */

:root {
  --bg-main: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --border-dark: #0F172A;
  --btn-primary-bg: #0F172A;
  --btn-primary-text: #FFFFFF;
  --btn-secondary-bg: #FFFFFF;
  --btn-secondary-text: #0F172A;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  opacity: 0;
  animation: bodyFadeIn 0.4s ease-out forwards;
}

@keyframes bodyFadeIn {
  to { opacity: 1; }
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
}

/* ── Loading Spinner Overlay ───────────────────────────────────────────── */

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #E2E8F0;
  border-top-color: #0F172A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loader-text {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Header & Navigation ────────────────────────────────────────────────── */

header.site-header {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--text-main);
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* Desktop Navigation */
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

nav.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--text-main);
  font-weight: 600;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-toggle.light {
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-nav-toggle.light .toggle-line {
  background: #FFFFFF;
}

.toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  transition: all 0.25s ease;
}

.desktop-lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.desktop-lang-selector a,
.mobile-lang-selector a {
  padding: 3px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.desktop-lang-selector a.active,
.mobile-lang-selector a.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.mobile-lang-selector {
  display: none;
}

/* Mobile Navigation Breakpoint (< 768px) */
@media (max-width: 767px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .desktop-lang-selector {
    display: none;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
    z-index: 99;
  }

  nav.main-nav.open {
    display: flex;
    animation: slideDown 0.25s ease-out;
  }

  .mobile-lang-selector {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }

  .admin-nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    width: 100%;
    background: #0F172A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 10px;
    z-index: 99;
  }

  .admin-nav-links.open {
    display: flex;
    animation: slideDown 0.25s ease-out;
  }
}

/* ── Hero & Showcase Banner ─────────────────────────────────────────────── */

.hero {
  padding: 40px 0 20px 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 44px);
  letter-spacing: 1.5px;
  line-height: 1.2;
  margin-bottom: 12px;
  animation: slideDown 0.4s ease-out;
}

.hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  max-width: 640px;
  margin: 0 auto 24px auto;
  color: var(--text-muted);
  animation: slideDown 0.5s ease-out;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideDown 0.6s ease-out;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Animated Running Neon Border Effect ────────────────────────────────── */

.neon-border-frame {
  position: relative;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neon-border-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

@keyframes neonRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* App Showcase Mockup Frame */
.app-mockup-frame {
  margin: 30px auto 10px auto;
  width: 100%;
  max-width: 900px;
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}

.mockup-header {
  background: #F1F5F9;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.mockup-controls {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}

.mockup-dot.red { background: #EF4444; }
.mockup-dot.yellow { background: #F59E0B; }
.mockup-dot.green { background: #10B981; }

.mockup-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-body {
  padding: 16px;
  background: #F8FAFC;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #334155;
  border-color: #334155;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background-color: #FFFFFF;
  color: #DC2626;
  border: 1px solid #DC2626;
}

.btn-danger:hover {
  background-color: #DC2626;
  color: #FFFFFF;
}

/* ── Cards & Responsive Grid System ────────────────────────────────────── */

.section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: clamp(20px, 3vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-1 { grid-template-columns: 1fr; }

/* Tablet Breakpoint (768px to 1023px) */
@media (max-width: 1023px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 767px) {
  .grid-5, .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-value {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ── Coin Logo Badges ──────────────────────────────────────────────────── */

.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

.coin-badge span {
  white-space: nowrap;
}

.coin-badge img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Tables & Fluid Responsive Tables ─────────────────────────────────── */

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

table.data-table th,
table.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  word-break: break-word;
}

table.data-table th {
  background: var(--bg-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  table.data-table th,
  table.data-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ── Status Badges ─────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-dark);
  background: var(--bg-main);
  color: var(--text-main);
  white-space: nowrap;
}

.badge.pulse::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  margin-right: 5px;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Forms & Inputs ────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 16px;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--border-dark);
}

/* ── Admin Navigation & Layout ─────────────────────────────────────────── */

.admin-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-nav {
  background: #0F172A;
  color: #FFFFFF;
  padding: 0 20px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.admin-nav .logo {
  color: #FFFFFF;
}

.admin-nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-nav-links a {
  color: #94A3B8;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
}

.admin-nav-links a:hover,
.admin-nav-links a.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Footer ────────────────────────────────────────────────────────────── */

footer.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 28px 0;
  background: var(--bg-main);
}

footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Floating Live Activity Toast Notification Popup ───────────────────── */

.live-activity-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  background: #FFFFFF;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18);
  max-width: 320px;
  width: calc(100% - 48px);
  transform: translateY(120px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, visibility 0.4s ease;
}

.live-activity-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.toast-title-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-title-strip img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.toast-title-strip strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toast-time {
  font-size: 11px;
  color: var(--text-muted);
}

.toast-body {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

@media (max-width: 480px) {
  .live-activity-toast {
    bottom: 74px;
    left: 16px;
    width: calc(100% - 32px);
  }
}

/* ── Mobile App-Style Bottom Navigation Bar ────────────────────────────── */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px !important;
  }
  
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #0F172A;
    border-top: 1px solid #1E293B;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 99999;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
  }
  
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    gap: 2px;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
  }
  
  .mobile-bottom-nav a .nav-icon {
    font-size: 18px;
    line-height: 1;
  }
  
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    color: #10B981;
  }

  /* Responsive Header on Mobile */
  header.site-header .main-nav {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: none !important;
  }
  header.site-header {
    padding: 8px 0;
  }
}

.pricing-customers-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pricing-customers-grid {
    grid-template-columns: 1fr;
  }
}

