/* =====================================================================
 * BOTRIX HIGH-TECH APP & INTERACTIVE STYLES
 * Matches Botrix Logo Cyan-to-Cobalt Gradient & Midnight Atmospheric Depth
 * ===================================================================== */

/* Toast notifications & Cart modal utilities */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: linear-gradient(135deg, rgba(13, 21, 44, 0.95) 0%, rgba(8, 14, 30, 0.95) 100%);
  color: #F8FAFC;
  border: 1px solid rgba(0, 210, 255, 0.4);
  padding: 14px 20px;
  border-radius: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 102, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.9rem;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal styling */
.btx-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* TOP ANNOUNCEMENT MARQUEE BAR */
.btx-marquee-bar {
  background: rgba(6, 11, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  color: var(--text-muted, #94A3B8);
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  padding: 9px 20px;
  position: relative;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 0.04em;
  width: 100%;
}
.btx-marquee-badge {
  background: rgba(0, 210, 255, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* BOTRIX DYNAMIC HERO SLIDER */
.btx-hero-slider {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  padding: 110px 20px 60px 20px;
  box-sizing: border-box;
}

.btx-slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.btx-slide-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.99);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.5s;
  pointer-events: none;
  padding: 0 48px;
  box-sizing: border-box;
}

.btx-slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.btx-slide-logo {
  width: 68px;
  height: 68px;
  background: rgba(9, 14, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 102, 255, 0.2);
}
.btx-slide-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btx-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: #38BDF8;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.btx-slide-title {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  max-width: 1050px;
}

.btx-slide-subtitle {
  max-width: 720px;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-secondary, #CBD5E1);
  margin: 0 auto 32px auto;
  font-weight: 400;
}

.btx-slide-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* SLIDER CONTROLS (ARROWS & PAGINATION) */
.btx-slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(9, 14, 31, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btx-slider-nav-btn:hover {
  background: linear-gradient(135deg, #00D2FF 0%, #0066FF 100%);
  border-color: #00D2FF;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  transform: translateY(-50%) scale(1.08);
}
.btx-slider-prev { left: max(20px, calc((100vw - 1200px) / 2 - 56px)); }
.btx-slider-next { right: max(20px, calc((100vw - 1200px) / 2 - 56px)); }

@media (max-width: 1300px) {
  .btx-slider-prev { left: 20px; }
  .btx-slider-next { right: 20px; }
}

@media (max-width: 768px) {
  .btx-slider-prev { left: 8px; width: 36px; height: 36px; }
  .btx-slider-next { right: 8px; width: 36px; height: 36px; }
  .btx-slide-item { padding: 0 20px; }
}

.btx-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 25;
}
.btx-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btx-dot.active {
  background: linear-gradient(90deg, #00D2FF 0%, #0066FF 100%);
  width: 48px;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
}

/* BUTTON TEXT CONTRAST GUARANTEE */
.btn-primary {
  background: linear-gradient(135deg, #00D2FF 0%, #0066FF 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(0, 150, 255, 0.35), 0 0 0 1px rgba(0, 210, 255, 0.2) inset !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #38BDF8 0%, #0080FF 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 24px rgba(0, 180, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
  transform: translateY(-2px);
}
.btn-outline {
  background: rgba(14, 23, 46, 0.6) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #F1F5F9 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  backdrop-filter: blur(12px);
}
.btn-outline:hover {
  border-color: #00D2FF !important;
  color: #38BDF8 !important;
  background: rgba(0, 102, 255, 0.14) !important;
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.25) !important;
  transform: translateY(-2px);
}

/* ADMIN MODERN SEGMENTED TABS */
.admin-tab-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.admin-tabs-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-tab-category-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: var(--text-muted, #94A3B8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 90px;
}
.admin-tab-pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(9, 14, 31, 0.8);
  padding: 6px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  flex: 1;
}
.admin-tab-pill-bar .tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary, #CBD5E1);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.admin-tab-pill-bar .tab-btn:hover {
  color: #FFFFFF;
  background: rgba(0, 102, 255, 0.12);
}
.admin-tab-pill-bar .tab-btn.active {
  background: rgba(0, 102, 255, 0.2);
  color: #38BDF8;
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 210, 255, 0.2);
}

/* CMS MODALS & INPUTS IN ADMIN */
.cms-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cms-modal.open {
  display: flex;
}
.cms-modal-content {
  background: linear-gradient(180deg, rgba(13, 21, 44, 0.95) 0%, rgba(8, 14, 30, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 102, 255, 0.15);
}
.cms-input-group {
  margin-bottom: 16px;
}
.cms-label {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-mono, monospace);
  color: var(--text-muted, #94A3B8);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.cms-input, .cms-select, .cms-textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(6, 11, 26, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-family: inherit;
  box-sizing: border-box;
}
.cms-input:focus, .cms-select:focus, .cms-textarea:focus {
  outline: none;
  border-color: #00D2FF;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

/* =====================================================================
 * USABILITY & HEURISTIC ENHANCEMENTS
 * ===================================================================== */

/* Navigation SOON Badges */
.btx-nav-badge-soon {
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #F5A623;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.35);
  padding: 2px 6px;
  border-radius: var(--radius-sm, 6px);
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
}

/* Product Card Grid Alignment */
.product-category {
  font-family: var(--font-mono, monospace);
  font-size: var(--text-2xs, 0.75rem);
  color: var(--text-muted, #94A3B8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  min-height: 2.4em;
  line-height: 1.25;
  margin-bottom: 8px;
}

/* Product Card Status Badges */
.product-status-pill {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 6px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-status-pill.in-stock {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00E676;
}

.product-status-pill.coming-soon {
  background: rgba(9, 14, 31, 0.85);
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: #F5A623;
}

.product-status-pill.catalog-soon {
  background: rgba(9, 14, 31, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #00D2FF;
}

/* Trust Row Interactive Affordance & Spacing */
.btx-footer-cta {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  background: transparent;
  text-align: center;
}
.btx-footer-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--text-primary, #FFFFFF);
  margin-bottom: 14px;
}
.btx-footer-cta p {
  color: var(--text-secondary, #CBD5E1);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.btx-footer-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btx-trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.btx-trust-item {
  display: flex;
}

.btx-trust-item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 16px 20px;
  background: var(--glass-surface, rgba(9, 14, 31, 0.75));
  border: 1px solid var(--border, rgba(56, 189, 248, 0.12));
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  backdrop-filter: var(--glass-blur, blur(16px));
  -webkit-backdrop-filter: var(--glass-blur, blur(16px));
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.btx-trust-item a:hover,
.btx-trust-item a:focus-visible {
  border-color: var(--border-accent, rgba(0, 210, 255, 0.5));
  background: rgba(13, 21, 44, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 210, 255, 0.15);
}

.btx-trust-label {
  font-size: var(--text-sm, 0.875rem);
  font-weight: 700;
  color: var(--primary, #00D2FF);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.btx-trust-label::after {
  content: '→';
  font-size: 0.9em;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btx-trust-item a:hover .btx-trust-label::after {
  transform: translateX(4px);
  opacity: 1;
}

.btx-trust-detail {
  font-size: var(--text-xs, 0.8125rem);
  color: var(--text-secondary, #CBD5E1);
  line-height: 1.4;
}

/* =====================================================================
 * BOTRIX CYBER-INDUSTRIAL LOGO THEME & ROADMAP PIPELINE
 * ===================================================================== */

.gradient-x {
  background: linear-gradient(135deg, #00D2FF 0%, #0066FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* PCB Circuit Trace Background Accent */
.circuit-accent-bg {
  position: relative;
}
.circuit-accent-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 45%),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 1;
}

/* Circuit Node Indicator */
.circuit-node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00D2FF;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.8), 0 0 4px #00D2FF;
  display: inline-block;
  flex-shrink: 0;
}

/* Flagship Hardware Hero Card */
.btx-hardware-flagship {
  background: linear-gradient(135deg, rgba(13, 21, 44, 0.85) 0%, rgba(7, 12, 28, 0.95) 100%);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-xl, 24px);
  padding: 44px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 210, 255, 0.15), inset 0 0 20px rgba(0, 210, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.btx-hardware-flagship:hover {
  border-color: rgba(0, 210, 255, 0.55);
  box-shadow: 0 28px 70px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(0, 210, 255, 0.25), inset 0 0 25px rgba(0, 210, 255, 0.08);
}

.btx-hardware-flagship::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.btx-flagship-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.15) 0%, rgba(4, 7, 20, 0.6) 80%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.btx-flagship-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s ease;
}

.btx-hardware-flagship:hover .btx-flagship-visual img {
  transform: scale(1.03);
}

.btx-flagship-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 24px 0 32px 0;
  padding: 0;
  list-style: none;
}

.btx-flagship-checklist li {
  font-size: 0.88rem;
  color: var(--text-secondary, #CBD5E1);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hardware Roadmap Banner (For In-Development Modules) */
.btx-roadmap-banner {
  background: linear-gradient(180deg, rgba(11, 18, 38, 0.9) 0%, rgba(6, 10, 24, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg, 16px);
  padding: 36px 40px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.btx-roadmap-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00D2FF, #0066FF, transparent);
}

.btx-roadmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.btx-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
.btx-roadmap-card {
  background: rgba(4, 7, 20, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-md, 10px);
  padding: 22px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.btx-roadmap-card:hover {
  border-color: rgba(0, 210, 255, 0.45);
  background: rgba(9, 15, 36, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.15);
}

.btx-phase-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary, #00D2FF);
  margin-bottom: 8px;
  display: block;
}

@media (max-width: 900px) {
  .btx-hardware-flagship {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 28px;
  }
  .btx-flagship-checklist {
    grid-template-columns: 1fr;
  }
  .btx-roadmap-banner {
    padding: 24px 20px;
  }
}


