:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --dark-bg: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.95);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

html,
body {
  height: 100vh;
  overflow: hidden;
  width: 100%;
}

body {
  background: var(--dark-bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

/* Background - DARK AND CONSISTENT */
#page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0f1a;
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

/* Header - KEEP blur here */
header {
  background: linear-gradient(90deg, #000000 0%, #000000 50%, #8b5cf6 100%);
  backdrop-filter: blur(15px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid rgba(139, 92, 246, 0.3);
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0;
  height: 100%;
}

/* Simplified Logo Container */
.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: -20px;
  /* Negative margin pulls it left */
  padding-left: 0;
  flex-shrink: 0;
  /* Prevent logo from shrinking */
  margin-right: auto;
  /* This pushes everything after it to the right */
}

.logo-text {
  display: flex;
  align-items: center;
  height: 100%;
}

.animated-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.animated-logo-box video,
.animated-logo-box img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 0;
  padding-right: 1rem;
  /* Add a little breathing room at the edge */
}

nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
}

nav a:hover {
  color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

.nav-separator {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 0.25rem;
}

/* Auth Section */
.auth-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.auth-button:hover {
  background: var(--primary);
  color: white;
}

.auth-button.register {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
}

.auth-button.logout {
  border-color: var(--danger);
  color: var(--danger);
}

.auth-button.logout:hover {
  background: var(--danger);
  color: white;
}

.username-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Icon Buttons */
.nav-right-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
  margin-right: 0;
  padding-right: 0;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.icon-button:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
}

/* Main Content */
#main-content {
  position: fixed;
  top: 70px;
  bottom: 135px;
  left: 0;
  right: 0;
  overflow: hidden;
}

.full-screen-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 1rem;
}

/* Product Detail and Client Portal - NO BLUR, DARK SOLID BACKGROUND */
#product-detail-container,
#client-portal-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  border-radius: 20px;
}

.product-detail-wrapper,
.client-portal-wrapper {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.98);
  /* NO backdrop-filter - SOLID DARK BACKGROUND */
}

/* Landing Page - NO BACKGROUND, just text over dark background */
#landing-page {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero {
  padding: 0 1rem;
  width: 100%;
  max-width: 1200px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* Products Page */
.products-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.products-page-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
  gap: 1rem;
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.product-card {
  background: rgba(30, 41, 59, 0.98);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  height: auto;
  /* NO backdrop-filter - SOLID DARK BACKGROUND */
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
}

/* Product Card - Video Container */
.card-video-container {
  flex: 0 0 50%;
  background: #000;
  /* Solid black background for fade out */
  overflow: hidden;
  position: relative;
}

/* Video elements inside the card */
.card-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
  /* Fast fade in/out - 2.5 seconds */
  transition: opacity 2.5s ease-in-out !important;
  will-change: opacity;
}

/* Video overlay canvas for capturing frames */
.card-video-container .video-overlay-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 2.5s ease-in-out !important;
  will-change: opacity;
  background: #000;
  object-fit: cover;
}

/* When video is active (visible) */
.card-video-container video.active {
  opacity: 1;
  z-index: 2;
}

/* When overlay is active */
.card-video-container .video-overlay-canvas.active {
  opacity: 1;
}

.card-content {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.description-container {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.card-features {
  list-style: none;
  margin-bottom: 0.8rem;
}

.card-features li {
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
}

.card-features i {
  color: var(--success);
  margin-right: 0.5rem;
  width: 14px;
}

.price {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  font-size: 0.7rem;
}

.card-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.card-btn {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  flex: 1;
  font-size: 0.85rem;
}

.card-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.card-btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.nav-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  flex-shrink: 0;
}

.nav-btn {
  padding: 0.4rem 1rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Disclaimer Page - NO BLUR */
.disclaimer-content {
  background: rgba(30, 41, 59, 0.98);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  height: 100%;
  overflow-y: auto;
  /* NO backdrop-filter */
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(245, 158, 11, 0.2);
}

.disclaimer-header i {
  font-size: 1.8rem;
  color: var(--warning);
}

.disclaimer-header h2 {
  font-size: 1.5rem;
}

.disclaimer-section {
  margin-bottom: 1rem;
  padding: 2rem;
  padding-left: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

/* Footer - KEEP blur here */
footer {
  background: rgba(10, 15, 31, 0.98);
  border-top: 2px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(10px);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 150px;
  padding: 0.5rem 0.2rem 0.2rem 0.2rem;
}

.footer-content {
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8rem;
  height: calc(100% - 40px);
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.footer-content::-webkit-scrollbar {
  display: none;
}

.footer-col h4 {
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
  text-decoration: none;
  font-size: 0.7rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.payment-logos {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.payment-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.copyright {
  text-align: center;
  padding: 0.2rem 0 0.2rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.65rem;
  line-height: 1.2;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(145deg,
      rgba(30, 41, 59, 0.95),
      rgba(15, 23, 42, 0.95));
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  color: var(--primary);
  font-size: 1.2rem;
}

.close-modal {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: all 0.3s;
}

.close-modal:hover {
  background: var(--danger);
  color: white;
}

.modal-body {
  padding: 1rem;
}

.payment-option {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.payment-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.payment-option.selected {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--primary);
}

.pay-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s;
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.loading-spinner {
  text-align: center;
  padding: 2rem;
}

.loading-spinner i {
  font-size: 2rem;
  color: var(--primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--accent));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--primary-dark), var(--primary));
}

/* ============================================
   IMPROVED MODAL STYLES
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

.modal-content {
  background: linear-gradient(145deg,
      rgba(30, 41, 59, 0.98),
      rgba(15, 23, 42, 0.98));
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
  background: rgba(15, 23, 42, 0.5);
}

.modal-header h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-header h3 i {
  color: var(--accent);
  font-size: 1.2rem;
}

.close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
  border-color: var(--danger);
}

.modal-body {
  padding: 1.5rem;
}

/* Auth Options Styling */
.auth-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.auth-option {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-option:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.auth-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.auth-option h4 {
  color: var(--text);
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.auth-option p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.auth-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 1rem 0;
}

.auth-divider span {
  background: rgba(30, 41, 59, 0.5);
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.guest-checkout {
  text-align: center;
}

.guest-checkout p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

/* Payment Options */
.payment-option {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
  position: relative;
}

.payment-option:hover {
  background: rgba(14, 165, 233, 0.1);
  transform: translateX(5px);
  border-color: var(--primary);
}

.payment-option.selected {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.payment-option.selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--success);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.payment-option h4 {
  color: var(--text);
  margin-bottom: 0.3rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-option .price {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: bold;
  background: none;
  padding: 0;
  margin: 0.3rem 0;
}

.payment-option p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Form Groups in Modals */
.modal-body .form-group {
  margin-bottom: 1rem;
}

.modal-body .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
  width: 100%;
  padding: 0.7rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.modal-secure-note {
  text-align: center;
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-secure-note i {
  color: var(--success);
  font-size: 0.9rem;
}

.modal-secure-note span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.forgot-password {
  text-align: right;
  margin-top: 0.3rem;
}

.forgot-password a {
  color: var(--primary);
  font-size: 0.8rem;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.register-link,
.back-to-login {
  text-align: center;
  margin-top: 1rem;
}

.register-link p,
.back-to-login a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.register-link a,
.back-to-login a {
  color: var(--primary);
  text-decoration: none;
}

.register-link a:hover,
.back-to-login a:hover {
  text-decoration: underline;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.checkbox-group input {
  width: auto !important;
}

.checkbox-group label {
  margin-bottom: 0 !important;
  font-size: 0.85rem !important;
}

/* Product Card Pricing - Professional Layout */
.product-pricing {
  margin-top: auto;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.pricing-lifetime {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-lifetime .pricing-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warning);
}

.pricing-lifetime .pricing-price-lifetime {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--warning);
}

.pricing-row-group {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.pricing-row-group:last-child {
  margin-bottom: 0;
}

.pricing-row-half {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.3rem 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
}

.pricing-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pricing-label i {
  font-size: 0.65rem;
}

.pricing-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Fix for badges - always visible, not just on hover */
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge-accent {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: white;
}

.badge-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.badge-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.badge-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.badge-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
}

/* Ensure product card has relative positioning for absolute badge */
.product-card {
  position: relative;
  overflow: hidden;
}

/* Make all legal pages have consistent width */
#terms-page,
#privacy-page,
#license-page,
#disclaimer-page {
  width: 100%;
  max-width: auto;
  margin: 0 auto;
  padding: 2rem;
}

#terms-page .disclaimer-content,
#privacy-page .disclaimer-content,
#license-page .disclaimer-content,
#disclaimer-page .disclaimer-content {
  width: 100%;
  max-width: auto;
  margin: 0 auto;
}

/* Update your existing laptop range (1366px to 1919px) */
.nav-container {
  padding: 0 1.5rem;
}

.footer-content {
  gap: 3rem;
}

/* FORCE ALL CONTENT CONTAINERS TO BE DARK - NO BLUR */
#product-detail-container,
#client-portal-container,
.product-detail-wrapper,
.client-portal-wrapper,
.disclaimer-content,
.product-card,
.products-grid,
.full-screen-container {
  backdrop-filter: none !important;
  background: rgba(5, 5, 5, 0.4) !important;
}

/* ============================================
   COMPLETE RESPONSIVE IMPLEMENTATION
   Mobile-first, clean, and optimized
   ============================================ */

/* ===== TABLET LANDSCAPE (1024px - 1365px) ===== */
@media (max-width: 1365px) {

  /* Navigation */
  .nav-container {
    padding: 0 0.5rem;
  }

  nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }

  .animated-logo-box video,
  .animated-logo-box img {
    height: 40px;
  }

  .icon-button {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1rem;
  }

  .product-card {
    min-height: 420px;
    max-height: 480px;
  }

  .card-video-container {
    flex: 0 0 220px;
  }

  /* Footer */
  footer {
    height: 140px;
    padding: 0.4rem 0.2rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-col h4 {
    font-size: 0.75rem;
  }

  .footer-col p,
  .footer-col a {
    font-size: 0.65rem;
  }

  .payment-logo {
    width: 28px;
    height: 28px;
  }

  .copyright {
    font-size: 0.6rem;
  }

  #main-content {
    bottom: 140px;
  }

  /* Hero */
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* ===== TABLET PORTRAIT (768px - 1023px) ===== */
@media (max-width: 1023px) {

  /* Header */
  header {
    height: auto;
    min-height: 60px;
    padding: 0.3rem 0;
  }

  .nav-container {
    flex-direction: column;
    padding: 0.3rem 0.5rem;
    gap: 0.3rem;
  }

  .logo-container {
    margin-left: 0;
    justify-content: center;
  }

  .animated-logo-box video,
  .animated-logo-box img {
    height: 35px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.2rem;
  }

  nav a {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .nav-separator {
    display: none;
  }

  .auth-section {
    margin-left: 0;
  }

  .auth-button {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }

  .username-display {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .icon-button {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  #main-content {
    top: 110px;
    bottom: 130px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card {
    min-height: 380px;
    max-height: 440px;
    flex-direction: column;
  }

  .card-video-container {
    flex: 0 0 200px;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }

  .card-content {
    padding: 0.8rem;
  }

  .card-content h3 {
    font-size: 1.1rem;
  }

  .description-container {
    font-size: 0.75rem;
  }

  .card-features {
    grid-template-columns: 1fr;
    gap: 0.1rem;
    max-height: 80px;
  }

  .card-features li {
    font-size: 0.65rem;
    padding: 0.1rem 0;
  }

  .card-features li i {
    font-size: 0.55rem;
    width: 12px;
  }

  .card-features-container {
    max-height: 100px;
  }

  .card-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
  }

  /* Pricing on cards */
  .pricing-lifetime .pricing-label {
    font-size: 0.75rem;
  }

  .pricing-lifetime .pricing-price-lifetime {
    font-size: 1rem;
  }

  .pricing-row-half {
    padding: 0.2rem 0.3rem;
  }

  .pricing-label {
    font-size: 0.6rem;
  }

  .pricing-price {
    font-size: 0.7rem;
  }

  /* Hero */
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Footer */
  footer {
    height: auto;
    min-height: 120px;
    max-height: 50vh;
    padding: 0.3rem 0.2rem;
    overflow-y: auto;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    height: auto;
    min-height: 80px;
  }

  .footer-col h4 {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
  }

  .footer-col p {
    font-size: 0.6rem;
    line-height: 1.2;
    display: none;
    /* Hide long text on tablets */
  }

  .footer-col a {
    font-size: 0.6rem;
    gap: 0.2rem;
    margin-bottom: 0.1rem;
  }

  .payment-logos {
    gap: 0.3rem;
  }

  .payment-logo {
    width: 24px;
    height: 24px;
  }

  .copyright {
    font-size: 0.5rem;
    padding: 0.1rem 0;
    margin-top: 0.2rem;
  }

  /* Product Pages - Tablet */
  .fb-product-detail-content,
  .gather-product-detail-content {
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 1rem !important;
  }

  .fb-left-column,
  .gather-left-column {
    overflow-y: visible !important;
    max-height: none !important;
  }

  .fb-product-detail-right,
  .gather-product-detail-right {
    overflow-y: visible !important;
    max-height: none !important;
  }

  .fb-video-container video,
  .gather-video-container video {
    height: 40vh !important;
  }

  .fb-product-pricing,
  .gather-product-pricing {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .fb-product-features,
  .gather-product-features {
    grid-template-columns: 1fr !important;
  }

  .fb-tech-specs,
  .gather-tech-specs {
    grid-template-columns: 1fr !important;
  }

  .fb-requirements-grid,
  .gather-requirements-grid {
    grid-template-columns: 1fr !important;
  }

  .fb-video-buttons,
  .gather-video-buttons {
    gap: 0.3rem !important;
    padding: 0.3rem 0 !important;
  }

  .fb-vid-btn,
  .gather-vid-btn {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.6rem !important;
  }

  .fb-product-title,
  .gather-product-title {
    font-size: 1.3rem !important;
  }

  .fb-badge-group,
  .gather-badge-group {
    gap: 0.3rem !important;
  }

  .fb-tech-badge,
  .gather-tech-badge {
    font-size: 0.55rem !important;
    padding: 0.15rem 0.4rem !important;
  }
}

/* ============================================
   BACKGROUND OVERLAY FOR CROSS-FADE
   ============================================ */

#background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: -1;
  pointer-events: none;
  background-color: #0a0f1a;
}

/* Ensure page background is behind everything */
#page-background {
  z-index: -2;
}

/* ===== MOBILE PHONES (481px - 767px) ===== */
@media (max-width: 767px) {

  /* Header */
  header {
    min-height: 55px;
  }

  .nav-container {
    padding: 0.2rem 0.3rem;
    gap: 0.2rem;
  }

  .animated-logo-box video,
  .animated-logo-box img {
    height: 30px;
  }

  nav a {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
    gap: 0.2rem;
  }

  nav a i {
    font-size: 0.6rem;
  }

  .auth-button {
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    gap: 0.2rem;
  }

  .username-display {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
    gap: 0.2rem;
  }

  .username-display i {
    font-size: 0.6rem;
  }

  .icon-button {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .nav-right-buttons {
    gap: 0.2rem;
  }

  #main-content {
    top: 100px;
    bottom: 120px;
  }

  .full-screen-container {
    padding: 0.5rem;
  }

  /* Products */
  .products-page-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .products-grid {
    gap: 0.8rem;
    padding: 0.2rem;
  }

  .product-card {
    min-height: 340px;
    max-height: 400px;
    border-radius: 12px;
  }

  .card-video-container {
    flex: 0 0 160px;
    height: 160px;
    min-height: 160px;
    max-height: 160px;
  }

  .card-content {
    padding: 0.5rem;
  }

  .card-content h3 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }

  .description-container {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
    line-height: 1.2;
  }

  .card-features {
    grid-template-columns: 1fr;
    gap: 0.1rem;
    max-height: 60px;
  }

  .card-features li {
    font-size: 0.6rem;
    padding: 0.05rem 0;
    gap: 0.2rem;
  }

  .card-features li i {
    font-size: 0.5rem;
    width: 10px;
  }

  .card-features-container {
    max-height: 70px;
    margin-bottom: 0.3rem;
  }

  .card-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.5rem;
    top: 6px;
    right: 6px;
  }

  /* Pricing on cards */
  .product-pricing {
    padding: 0.4rem;
  }

  .pricing-lifetime {
    padding: 0.2rem 0;
    margin-bottom: 0.2rem;
  }

  .pricing-lifetime .pricing-label {
    font-size: 0.65rem;
  }

  .pricing-lifetime .pricing-price-lifetime {
    font-size: 0.85rem;
  }

  .pricing-row-group {
    gap: 0.2rem;
    margin-bottom: 0.2rem;
  }

  .pricing-row-group:last-child {
    margin-bottom: 0;
  }

  .pricing-row-half {
    padding: 0.15rem 0.25rem;
  }

  .pricing-label {
    font-size: 0.55rem;
    gap: 2px;
  }

  .pricing-label i {
    font-size: 0.5rem;
  }

  .pricing-price {
    font-size: 0.65rem;
  }

  .card-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.6rem;
    border-radius: 6px;
  }

  .card-buttons {
    gap: 0.3rem;
    margin-top: 0.3rem;
  }

  /* Hero */
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  /* Footer */
  footer {
    min-height: 100px;
    max-height: 45vh;
    padding: 0.2rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.5rem;
    min-height: 60px;
  }

  .footer-col h4 {
    font-size: 0.6rem;
    margin-bottom: 0.1rem;
  }

  .footer-col p {
    display: none;
    /* Hide descriptions on mobile */
  }

  .footer-col a {
    font-size: 0.55rem;
    gap: 0.2rem;
    margin-bottom: 0.05rem;
  }

  .footer-col a i {
    font-size: 0.5rem;
    width: 14px;
  }

  .payment-logos {
    gap: 0.2rem;
    margin-top: 0.1rem;
  }

  .payment-logo {
    width: 20px;
    height: 20px;
  }

  .copyright {
    font-size: 0.45rem;
    padding: 0.1rem 0;
    margin-top: 0.1rem;
  }

  /* Product Pages - Mobile */
  .fb-product-detail-wrapper,
  .gather-product-detail-wrapper {
    padding: 0.3rem 0.5rem !important;
  }

  .fb-product-header,
  .gather-product-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.3rem !important;
    margin-bottom: 0.5rem !important;
  }

  .fb-product-title,
  .gather-product-title {
    font-size: 1.1rem !important;
  }

  .fb-wow-edition,
  .gather-wow-edition {
    font-size: 1rem !important;
  }

  .fb-wow-icon,
  .gather-wow-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .fb-back-to-products,
  .gather-back-to-products {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.7rem !important;
  }

  .fb-product-detail-content,
  .gather-product-detail-content {
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 0.5rem !important;
  }

  .fb-left-column,
  .gather-left-column {
    overflow-y: visible !important;
    max-height: none !important;
    gap: 0.5rem !important;
    padding-right: 0 !important;
  }

  .fb-product-detail-right,
  .gather-product-detail-right {
    overflow-y: visible !important;
    max-height: none !important;
    gap: 0.5rem !important;
  }

  /* ============================================
   FIXED VIDEO CONTAINER - NO STRETCHING
   ============================================ */

  /* Product page video container */
  .fb-video-container,
  .gather-video-container {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    aspect-ratio: 16/9;
    /* Force 16:9 aspect ratio */
    width: 100%;
  }

  .fb-video-container video,
  .gather-video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* This prevents stretching */
    position: relative;
    z-index: 1;
  }

  /* Overlay canvas - should also match */
  .fb-video-container .video-overlay-canvas,
  .gather-video-container .video-overlay-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    object-fit: cover;
    background: #000;
  }

  .fb-video-buttons,
  .gather-video-buttons {
    gap: 0.25rem !important;
    padding: 0.2rem 0 !important;
  }

  .fb-vid-btn,
  .gather-vid-btn {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.55rem !important;
    border-radius: 20px !important;
    gap: 0.2rem !important;
  }

  .fb-vid-btn i,
  .gather-vid-btn i {
    font-size: 0.5rem !important;
  }

  .fb-product-description,
  .gather-product-description {
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
  }

  .fb-features-section,
  .gather-features-section {
    padding: 0.5rem !important;
  }

  .fb-features-section h2,
  .gather-features-section h2 {
    font-size: 0.85rem !important;
    margin-bottom: 0.3rem !important;
  }

  .fb-product-features,
  .gather-product-features {
    grid-template-columns: 1fr !important;
    gap: 0.2rem !important;
  }

  .fb-product-features li,
  .gather-product-features li {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.3rem !important;
    gap: 0.3rem !important;
  }

  .fb-product-features li i,
  .gather-product-features li i {
    font-size: 0.6rem !important;
    width: 14px !important;
  }

  .fb-tech-specs,
  .gather-tech-specs {
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
  }

  .fb-spec-group,
  .gather-spec-group {
    padding: 0.4rem !important;
  }

  .fb-spec-group h4,
  .gather-spec-group h4 {
    font-size: 0.65rem !important;
  }

  .fb-spec-group li,
  .gather-spec-group li {
    font-size: 0.6rem !important;
    padding: 0.1rem 0 !important;
    padding-left: 0.8rem !important;
  }

  .fb-pricing-section h2,
  .gather-pricing-section h2 {
    font-size: 0.85rem !important;
  }

  .fb-product-pricing,
  .gather-product-pricing {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.3rem !important;
  }

  .fb-pricing-option,
  .gather-pricing-option {
    padding: 0.3rem 0.2rem !important;
  }

  .fb-pricing-option h3,
  .gather-pricing-option h3 {
    font-size: 0.6rem !important;
  }

  .fb-price,
  .gather-price {
    font-size: 0.9rem !important;
  }

  .fb-buy-btn,
  .gather-buy-btn {
    font-size: 0.6rem !important;
    padding: 0.25rem !important;
  }

  .fb-subscription-toggle,
  .gather-subscription-toggle {
    padding: 0.25rem !important;
    margin: 0.2rem 0 !important;
  }

  .fb-toggle-switch,
  .gather-toggle-switch {
    width: 28px !important;
    height: 16px !important;
  }

  .fb-toggle-slider:before,
  .gather-toggle-slider:before {
    height: 10px !important;
    width: 10px !important;
    left: 3px !important;
    bottom: 3px !important;
  }

  .fb-toggle-switch input:checked+.fb-toggle-slider:before,
  .gather-toggle-switch input:checked+.gather-toggle-slider:before {
    transform: translateX(12px) !important;
  }

  .fb-toggle-label,
  .gather-toggle-label {
    font-size: 0.55rem !important;
  }

  .fb-toggle-hint,
  .gather-toggle-hint {
    font-size: 0.5rem !important;
    margin-left: 34px !important;
  }

  .fb-requirements-grid,
  .gather-requirements-grid {
    grid-template-columns: 1fr !important;
    gap: 0.3rem !important;
  }

  .fb-requirement-column,
  .gather-requirement-column {
    padding: 0.3rem 0.4rem !important;
  }

  .fb-requirement-column h4,
  .gather-requirement-column h4 {
    font-size: 0.6rem !important;
  }

  .fb-requirement-column li,
  .gather-requirement-column li {
    font-size: 0.55rem !important;
  }

  .fb-system-requirements,
  .gather-system-requirements {
    padding: 0.3rem 0.5rem !important;
  }

  .fb-system-requirements h3,
  .gather-system-requirements h3 {
    font-size: 0.7rem !important;
  }

  /* Modals */
  .modal-content {
    max-width: 95% !important;
    margin: 0.5rem !important;
  }

  .modal-header {
    padding: 0.8rem !important;
  }

  .modal-header h3 {
    font-size: 1rem !important;
  }

  .modal-body {
    padding: 0.8rem !important;
  }

  .payment-option {
    padding: 0.4rem !important;
  }

  .payment-option h4 {
    font-size: 0.85rem !important;
  }

  .payment-option .price {
    font-size: 1rem !important;
  }

  .auth-options {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .auth-option {
    padding: 0.8rem !important;
  }

  .form-group {
    margin-bottom: 0.5rem !important;
  }

  .form-group label {
    font-size: 0.75rem !important;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.4rem !important;
    font-size: 0.8rem !important;
  }

  .pay-btn {
    padding: 0.5rem !important;
    font-size: 0.8rem !important;
  }

  .modal-secure-note {
    padding: 0.5rem !important;
    font-size: 0.65rem !important;
  }
}

/* ============================================
   KNOWLEDGE BASE - COMPLETE STYLES
   ============================================ */

.knowledge-base-content {
  width: 95%;
  margin: 0 auto;
  padding: 2rem 2.5rem 3rem 2.5rem;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 24px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  height: 100%;
  overflow-y: auto;
}

/* ===== HEADER ===== */
.knowledge-base-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.knowledge-base-header h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.knowledge-base-header h1 i {
  -webkit-text-fill-color: initial;
  color: #8b5cf6;
}

.knowledge-base-header .subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-top: 0.3rem;
  -webkit-text-fill-color: initial;
}

/* ===== INTRODUCTION ===== */
.knowledge-intro {
  background: rgba(30, 41, 59, 0.5);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  border-left: 4px solid #8b5cf6;
}

.knowledge-intro h2 {
  font-size: 1.4rem;
  color: #0ea5e9;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.knowledge-intro h2 i {
  color: #fbbf24;
}

.knowledge-intro p {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.knowledge-intro p:last-child {
  margin-bottom: 0;
}

/* ===== RESOURCE GRID ===== */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ===== RESOURCE CARDS ===== */
.knowledge-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.knowledge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.knowledge-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: rgba(30, 41, 59, 0.8);
}

.knowledge-card:hover::before {
  opacity: 1;
}

.knowledge-card .card-icon {
  font-size: 2rem;
  color: #0ea5e9;
  margin-bottom: 0.8rem;
  background: rgba(14, 165, 233, 0.1);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.knowledge-card h3 {
  font-size: 1.1rem;
  color: #f1f5f9;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.knowledge-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.2rem;
}

/* ===== KNOWLEDGE LINKS ===== */
.knowledge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  align-self: flex-start;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.knowledge-link:hover {
  color: #8b5cf6;
  border-bottom-color: #8b5cf6;
  gap: 0.8rem;
}

.knowledge-link i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.knowledge-link:hover i {
  transform: translateX(4px);
}

/* ===== BACK LINK ===== */
.knowledge-back-link {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.knowledge-back-link a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.knowledge-back-link a:hover {
  color: #0ea5e9;
  gap: 0.8rem;
}

/* ============================================
   RESPONSIVE - TABLETS
   ============================================ */
@media (max-width: 1024px) {
  .knowledge-base-content {
    max-width: 98%;
    padding: 1.5rem;
    width: 98%;
  }

  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .knowledge-base-header h1 {
    font-size: 1.8rem;
  }

  .knowledge-base-header .subtitle {
    font-size: 1rem;
  }

  .knowledge-intro {
    padding: 1.5rem;
  }

  .knowledge-intro h2 {
    font-size: 1.2rem;
  }

  .knowledge-intro p {
    font-size: 0.95rem;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .knowledge-base-content {
    padding: 1rem;
    width: 100%;
    border-radius: 16px;
    max-width: 100%;
  }

  .knowledge-base-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
  }

  .knowledge-base-header h1 {
    font-size: 1.4rem;
    gap: 0.5rem;
  }

  .knowledge-base-header .subtitle {
    font-size: 0.85rem;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .knowledge-intro {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .knowledge-intro h2 {
    font-size: 1.1rem;
  }

  .knowledge-intro p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .knowledge-card {
    padding: 1.2rem 1rem;
  }

  .knowledge-card .card-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
  }

  .knowledge-card h3 {
    font-size: 1rem;
  }

  .knowledge-card p {
    font-size: 0.8rem;
  }

  .knowledge-link {
    font-size: 0.8rem;
  }

  .knowledge-back-link {
    padding-top: 1rem;
  }

  .knowledge-back-link a {
    font-size: 0.85rem;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
  .knowledge-base-content {
    padding: 0.8rem;
    border-radius: 12px;
  }

  .knowledge-base-header h1 {
    font-size: 1.2rem;
  }

  .knowledge-base-header .subtitle {
    font-size: 0.75rem;
  }

  .knowledge-intro {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }

  .knowledge-intro h2 {
    font-size: 0.95rem;
  }

  .knowledge-intro p {
    font-size: 0.75rem;
  }

  .knowledge-card {
    padding: 0.8rem;
  }

  .knowledge-card .card-icon {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
  }

  .knowledge-card h3 {
    font-size: 0.85rem;
  }

  .knowledge-card p {
    font-size: 0.7rem;
  }

  .knowledge-link {
    font-size: 0.7rem;
  }
}

/* ===== SMALL MOBILE PHONES (480px and below) ===== */
@media (max-width: 480px) {

  /* Header */
  header {
    min-height: 48px;
  }

  .animated-logo-box video,
  .animated-logo-box img {
    height: 25px;
  }

  nav a {
    font-size: 0.55rem;
    padding: 0.15rem 0.3rem;
    gap: 0.15rem;
  }

  nav a i {
    font-size: 0.5rem;
  }

  .auth-button {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
  }

  .username-display {
    font-size: 0.55rem;
    padding: 0.1rem 0.25rem;
  }

  .icon-button {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
  }

  #main-content {
    top: 90px;
    bottom: 100px;
  }

  /* Products */
  .product-card {
    min-height: 300px;
    max-height: 360px;
  }

  .card-video-container {
    flex: 0 0 130px;
    height: 130px;
    min-height: 130px;
    max-height: 130px;
  }

  .card-content h3 {
    font-size: 0.85rem;
  }

  .description-container {
    font-size: 0.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-features {
    max-height: 50px;
  }

  .card-features li {
    font-size: 0.5rem;
  }

  .card-features-container {
    max-height: 60px;
  }

  .pricing-lifetime .pricing-label {
    font-size: 0.55rem;
  }

  .pricing-lifetime .pricing-price-lifetime {
    font-size: 0.7rem;
  }

  .pricing-label {
    font-size: 0.45rem;
  }

  .pricing-price {
    font-size: 0.55rem;
  }

  .card-btn {
    font-size: 0.55rem;
    padding: 0.2rem 0.4rem;
  }

  .card-badge {
    font-size: 0.45rem;
    padding: 0.1rem 0.4rem;
    top: 4px;
    right: 4px;
  }

  /* Footer */
  footer {
    min-height: 80px;
    max-height: 40vh;
    padding: 0.15rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem 0.3rem;
    min-height: 50px;
  }

  .footer-col h4 {
    font-size: 0.5rem;
  }

  .footer-col a {
    font-size: 0.45rem;
  }

  .payment-logo {
    width: 16px;
    height: 16px;
  }

  .copyright {
    font-size: 0.4rem;
  }

  /* Product Pages - Small Mobile */
  .fb-product-title,
  .gather-product-title {
    font-size: 0.95rem !important;
  }

  .fb-tech-badge,
  .gather-tech-badge {
    font-size: 0.45rem !important;
    padding: 0.1rem 0.3rem !important;
  }

  .fb-video-container video,
  .gather-video-container video {
    height: 25vh !important;
    min-height: 150px !important;
  }

  .fb-vid-btn,
  .gather-vid-btn {
    font-size: 0.45rem !important;
    padding: 0.15rem 0.35rem !important;
  }

  .fb-product-pricing,
  .gather-product-pricing {
    grid-template-columns: 1fr !important;
    gap: 0.3rem !important;
  }

  .fb-pricing-option,
  .gather-pricing-option {
    padding: 0.3rem 0.2rem !important;
  }

  .fb-price,
  .gather-price {
    font-size: 0.8rem !important;
  }

  .fb-product-features li,
  .gather-product-features li {
    font-size: 0.6rem !important;
  }

  .fb-spec-group li,
  .gather-spec-group li {
    font-size: 0.5rem !important;
  }
}

/* ===== VERY SHORT SCREENS (Height <= 600px) ===== */
@media (max-height: 600px) {
  header {
    min-height: 45px;
  }

  .animated-logo-box video,
  .animated-logo-box img {
    height: 28px;
  }

  nav a {
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
  }

  #main-content {
    top: 85px;
    bottom: 85px;
  }

  .product-card {
    min-height: 280px;
    max-height: 340px;
  }

  .card-video-container {
    flex: 0 0 120px;
    height: 120px;
    min-height: 120px;
    max-height: 120px;
  }

  .card-content {
    padding: 0.4rem;
  }

  .card-content h3 {
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
  }

  .description-container {
    font-size: 0.6rem;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-features {
    max-height: 40px;
  }

  .card-features li {
    font-size: 0.5rem;
    padding: 0.05rem 0;
  }

  .card-features-container {
    max-height: 50px;
    margin-bottom: 0.2rem;
  }

  .product-pricing {
    padding: 0.2rem;
  }

  .pricing-lifetime {
    padding: 0.1rem 0;
    margin-bottom: 0.1rem;
  }

  .pricing-lifetime .pricing-label {
    font-size: 0.5rem;
  }

  .pricing-lifetime .pricing-price-lifetime {
    font-size: 0.6rem;
  }

  .pricing-row-group {
    gap: 0.1rem;
    margin-bottom: 0.1rem;
  }

  .pricing-row-half {
    padding: 0.1rem 0.15rem;
  }

  .pricing-label {
    font-size: 0.4rem;
  }

  .pricing-price {
    font-size: 0.5rem;
  }

  .card-btn {
    font-size: 0.5rem;
    padding: 0.15rem 0.3rem;
  }

  .card-buttons {
    gap: 0.2rem;
    margin-top: 0.2rem;
  }

  footer {
    min-height: 60px;
    max-height: 35vh;
  }

  .footer-content {
    gap: 0.2rem;
    min-height: 40px;
  }

  .footer-col h4 {
    font-size: 0.5rem;
    margin-bottom: 0.05rem;
  }

  .footer-col a {
    font-size: 0.45rem;
    margin-bottom: 0.05rem;
  }

  .payment-logo {
    width: 16px;
    height: 16px;
  }

  .copyright {
    font-size: 0.4rem;
    padding: 0.05rem 0;
    margin-top: 0.05rem;
  }

  /* Product Pages - Short screens */
  .fb-video-container video,
  .gather-video-container video {
    height: 35vh !important;
    min-height: 180px !important;
  }

  .fb-product-pricing,
  .gather-product-pricing {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .fb-tech-specs,
  .gather-tech-specs {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .fb-product-features,
  .gather-product-features {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ===== ULTRA-WIDE SCREENS (2560px and above) ===== */
@media (min-width: 1921px) {
  .nav-container {
    max-width: 1800px;
    padding: 0 2rem;
  }

  .animated-logo-box video,
  .animated-logo-box img {
    height: 55px;
  }

  nav a {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

  .footer-content {
    max-width: 1800px;
    gap: 8rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  }

  .product-card {
    min-height: 520px;
    max-height: 580px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.3rem;
  }
}

/* ===== 1600x900 OPTIMIZATION ===== */
@media (min-width: 1550px) and (max-width: 1650px) and (min-height: 850px) and (max-height: 950px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .animated-logo-box video,
  .animated-logo-box img {
    height: 50px;
  }

  nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .products-grid {
    gap: 1.2rem;
  }

  .product-card {
    min-height: 460px;
    max-height: 520px;
  }

  .footer-content {
    gap: 3rem;
  }

  #main-content {
    bottom: 145px;
  }
}

/* ============================================
   MOBILE & TABLET OPTIMIZATION - OVERRIDES
   ============================================ */

/* ===== HEADER - SOLID BLACK ON MOBILE ===== */
@media (max-width: 1023px) {
  header {
    background: #000000 !important;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    height: auto;
    min-height: 55px;
    padding: 0.2rem 0;
  }

  .nav-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    gap: 0.2rem;
  }

  .logo-container {
    margin-left: 0;
    justify-content: center;
    width: 100%;
    order: -1;
  }

  .animated-logo-box video,
  .animated-logo-box img {
    height: 32px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.15rem;
    order: 0;
  }

  nav a {
    padding: 0.15rem 0.35rem;
    font-size: 0.6rem;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }

  nav a i {
    font-size: 0.5rem;
  }

  .nav-separator {
    display: none;
  }

  .auth-section {
    margin-left: 0;
    gap: 0.15rem;
    width: 100%;
    justify-content: center;
    order: 1;
  }

  .auth-button {
    padding: 0.1rem 0.35rem;
    font-size: 0.55rem;
    gap: 0.15rem;
    border-radius: 4px;
  }

  .username-display {
    font-size: 0.55rem;
    padding: 0.1rem 0.25rem;
    gap: 0.15rem;
    border-radius: 4px;
  }

  .username-display i {
    font-size: 0.5rem;
  }

  .nav-right-buttons {
    gap: 0.15rem;
    margin-left: 0;
    order: 2;
  }

  .icon-button {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
    border-radius: 4px;
  }

  #main-content {
    top: 95px;
    bottom: 110px;
  }

  .full-screen-container {
    padding: 0.3rem;
  }
}

/* ===== PRODUCT CARDS - VERTICAL LAYOUT ON MOBILE ===== */
@media (max-width: 1023px) {
  .product-card {
    flex-direction: column !important;
    min-height: auto !important;
    max-height: none !important;
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }

  .product-card .card-video-container {
    flex: 0 0 auto !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    width: 100% !important;
    order: 0 !important;
    border-radius: 12px 12px 0 0;
  }

  .product-card .card-content {
    padding: 0.6rem !important;
    order: 1 !important;
    overflow: visible !important;
  }

  .product-card .card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  .product-card .description-container {
    font-size: 0.65rem;
    margin-bottom: 0.3rem;
    display: block !important;
    -webkit-line-clamp: unset !important;
  }

  .product-card .card-features {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.1rem !important;
    max-height: 80px !important;
    overflow-y: auto;
  }

  .product-card .card-features li {
    font-size: 0.55rem !important;
    padding: 0.05rem 0 !important;
    gap: 0.2rem !important;
  }

  .product-card .card-features li i {
    font-size: 0.45rem !important;
    width: 10px !important;
  }

  .product-card .card-features-container {
    max-height: 90px !important;
    margin-bottom: 0.3rem !important;
  }

  .product-card .card-badge {
    font-size: 0.5rem !important;
    padding: 0.1rem 0.4rem !important;
    top: 5px !important;
    right: 5px !important;
  }

  .product-card .product-pricing {
    padding: 0.3rem !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
  }

  .product-card .pricing-lifetime {
    grid-column: 1 / -1;
    padding: 0.15rem 0;
    margin-bottom: 0.1rem;
  }

  .product-card .pricing-lifetime .pricing-label {
    font-size: 0.6rem;
  }

  .product-card .pricing-lifetime .pricing-price-lifetime {
    font-size: 0.8rem;
  }

  .product-card .pricing-row-group {
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.1rem;
    grid-column: 1 / -1;
  }

  .product-card .pricing-row-half {
    padding: 0.1rem 0.2rem;
    justify-content: space-between;
  }

  .product-card .pricing-label {
    font-size: 0.5rem;
  }

  .product-card .pricing-price {
    font-size: 0.6rem;
  }

  .product-card .card-buttons {
    flex-direction: row !important;
    gap: 0.3rem !important;
    margin-top: 0.3rem !important;
  }

  .product-card .card-btn {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.6rem !important;
    border-radius: 6px !important;
  }
}

/* ===== PRODUCT PAGES - VERTICAL LAYOUT ===== */
@media (max-width: 1023px) {

  .fb-product-detail-content,
  .gather-product-detail-content {
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 0.5rem !important;
  }

  .fb-left-column,
  .gather-left-column {
    order: 1 !important;
    overflow-y: visible !important;
    max-height: none !important;
    gap: 0.5rem !important;
    padding-right: 0 !important;
  }

  .fb-product-detail-right,
  .gather-product-detail-right {
    order: 0 !important;
    overflow-y: visible !important;
    max-height: none !important;
    gap: 0.5rem !important;
  }

  .fb-video-container,
  .gather-video-container {
    aspect-ratio: 16/9 !important;
    height: auto !important;
    min-height: 180px !important;
    max-height: 45vh !important;
  }

  .fb-video-container video,
  .gather-video-container video {
    height: 100% !important;
    min-height: 180px !important;
  }

  .fb-video-buttons,
  .gather-video-buttons {
    gap: 0.2rem !important;
    padding: 0.2rem 0 !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  .fb-vid-btn,
  .gather-vid-btn {
    padding: 0.15rem 0.4rem !important;
    font-size: 0.5rem !important;
    border-radius: 12px !important;
    gap: 0.15rem !important;
  }

  .fb-vid-btn i,
  .gather-vid-btn i {
    font-size: 0.45rem !important;
  }

  .fb-product-pricing,
  .gather-product-pricing {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.3rem !important;
  }

  .fb-pricing-option,
  .gather-pricing-option {
    padding: 0.3rem 0.2rem !important;
  }

  .fb-price,
  .gather-price {
    font-size: 0.85rem !important;
  }

  .fb-product-features,
  .gather-product-features {
    grid-template-columns: 1fr !important;
    gap: 0.15rem !important;
  }

  .fb-product-features li,
  .gather-product-features li {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.3rem !important;
  }
}

/* ===== FOOTER - REDUCED HEIGHT ===== */
@media (max-width: 1023px) {
  footer {
    height: auto !important;
    min-height: 80px !important;
    max-height: 35vh !important;
    padding: 0.2rem 0.15rem !important;
    overflow-y: auto;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.2rem 0.3rem !important;
    height: auto !important;
    min-height: 60px !important;
    padding: 0.2rem 0;
  }

  .footer-col h4 {
    font-size: 0.55rem !important;
    margin-bottom: 0.05rem !important;
  }

  .footer-col p {
    display: none !important;
  }

  .footer-col a {
    font-size: 0.45rem !important;
    gap: 0.15rem !important;
    margin-bottom: 0.05rem !important;
    padding: 0.05rem 0;
  }

  .footer-col a i {
    font-size: 0.4rem !important;
    width: 12px !important;
  }

  .payment-logos {
    gap: 0.15rem !important;
    margin-top: 0.05rem !important;
    flex-wrap: wrap;
  }

  .payment-logo {
    width: 16px !important;
    height: 16px !important;
  }

  .copyright {
    font-size: 0.4rem !important;
    padding: 0.05rem 0 !important;
    margin-top: 0.1rem !important;
    line-height: 1.1;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.15rem 0.2rem !important;
  }

  .footer-col h4 {
    font-size: 0.5rem !important;
  }

  .footer-col a {
    font-size: 0.4rem !important;
  }

  .payment-logo {
    width: 14px !important;
    height: 14px !important;
  }

  .copyright {
    font-size: 0.35rem !important;
  }
}

/* ===== HERO SECTION - MOBILE ===== */
@media (max-width: 1023px) {
  .hero {
    padding: 0 0.5rem !important;
  }

  .hero h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .hero p {
    font-size: 0.8rem !important;
    margin-bottom: 0.8rem !important;
    padding: 0 0.5rem !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    width: 80%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.2rem !important;
  }

  .hero p {
    font-size: 0.7rem !important;
  }

  .btn {
    width: 90% !important;
    padding: 0.3rem 0.6rem !important;
    font-size: 0.7rem !important;
  }
}

/* ============================================
   MOBILE MENU - HAMBURGER / 3 DOTS
   ============================================ */

/* Mobile menu toggle button - hidden on desktop */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  order: 2;
}

.mobile-menu-btn:hover {
  background: rgba(139, 92, 246, 0.2);
}

.mobile-menu-btn.active {
  color: var(--primary);
}

/* Navigation links container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

/* Show on mobile */
@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
  }

  nav {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    gap: 0.3rem;
    position: relative;
  }

  /* Auth section stays visible - move to left */
  .auth-section {
    order: 1;
    margin-left: 0;
    gap: 0.3rem;
  }

  .nav-right-buttons {
    order: 3;
    gap: 0.3rem;
  }

  .nav-separator {
    display: none;
  }

  /* Navigation links - hidden by default on mobile */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.1rem;
    padding: 0.5rem 0;
    order: 4;
    flex: 0 0 100%;
    background: rgba(10, 15, 31, 0.98);
    border-radius: 8px;
    margin-top: 0.3rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  /* Show when menu is open */
  .nav-links.open {
    display: flex !important;
  }

  /* Navigation links in dropdown */
  .nav-links a {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    background: rgba(139, 92, 246, 0.15);
  }

  .nav-links .nav-separator {
    display: none;
  }

  /* Auth section in dropdown? No - keep it visible outside */
  .nav-links .auth-section {
    display: none !important;
  }

  .nav-links .nav-right-buttons {
    display: none !important;
  }

  /* Mobile menu button icon toggle */
  .mobile-menu-btn .fa-times {
    display: none;
  }

  .mobile-menu-btn.active .fa-bars {
    display: none;
  }

  .mobile-menu-btn.active .fa-times {
    display: inline-block;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .mobile-menu-btn {
    font-size: 1.2rem;
    padding: 0.2rem 0.4rem;
  }

  .nav-links a {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
}

/* ============================================
   MOBILE MENU - SMOOTH CLOSE
   ============================================ */

@media (max-width: 1023px) {
  .nav-links {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.5rem;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    max-height: 500px;
    padding: 0.5rem;
  }

  .mobile-menu-btn {
    transition: transform 0.3s ease;
  }

  .mobile-menu-btn.active {
    transform: rotate(90deg);
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* ============================================
   TRIAL BADGE STYLES - ADD TO styles.css
   ============================================ */

/* Trial badge on payment options */
.payment-option .plan-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  margin-top: 0.2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-option .trial-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.payment-option.selected .plan-badge {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

/* Trial card on product detail page */
.pricing-card.trial-card {
  position: relative;
  border: 2px solid #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.pricing-card .trial-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

/* Payment options container - improved layout */
.payment-options-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.payment-option {
  background: rgba(30, 41, 59, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.payment-option:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(30, 41, 59, 0.95);
}

.payment-option.selected {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.payment-option .left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.payment-option .right {
  text-align: right;
}

.payment-option h4 {
  margin: 0;
  font-size: 0.85rem;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-option h4 i {
  color: #8b5cf6;
}

.payment-option .price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #0ea5e9;
}

.payment-option p {
  margin: 0;
  font-size: 0.7rem;
  color: #94a3b8;
}

/* ============================================
   TRIAL BUTTON ON PRODUCT CARDS
   ============================================ */

.card-btn-trial {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 1;
}

.card-btn-trial:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.card-btn-trial i {
  font-size: 0.7rem;
}

/* Responsive adjustments for trial buttons */
@media (max-width: 767px) {
  .card-btn-trial {
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
  }

  .payment-option {
    padding: 0.5rem 0.6rem;
  }

  .payment-option h4 {
    font-size: 0.75rem;
  }

  .payment-option .price {
    font-size: 0.9rem;
  }
}

/* ============================================
   TRIAL NOTE / INFO BOX
   ============================================ */

.trial-info-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  margin: 0.5rem 0 1rem 0;
  font-size: 0.7rem;
  color: #fbbf24;
  text-align: center;
}

.trial-info-box i {
  margin-right: 0.3rem;
}

.trial-info-box strong {
  color: #fbbf24;
}

/* Responsive */
@media (max-width: 480px) {
  .trial-info-box {
    font-size: 0.6rem;
    padding: 0.4rem 0.6rem;
  }
}

/* ============================================
   FIX: PRODUCT CARDS - SINGLE SCROLLBAR ON MOBILE
   ============================================ */

/* Tablet & Mobile: Single column with ONE scrollbar for the whole card */
@media (max-width: 1023px) {
  .product-card {
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
  }

  .product-card .card-video-container {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .product-card .card-content {
    flex: 1 !important;
    overflow: visible !important;
    padding: 0.8rem !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
  }

  .product-card .card-features-container {
    overflow: visible !important;
    max-height: none !important;
    flex: 1 !important;
  }

  .product-card .card-features {
    overflow: visible !important;
    max-height: none !important;
  }

  /* The whole card gets the scrollbar */
  .products-grid {
    overflow-y: auto !important;
    padding-bottom: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .product-card {
    flex-shrink: 0 !important;
  }
}

/* Small mobile - reduce video height */
@media (max-width: 767px) {
  .product-card .card-video-container {
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
  }
}

@media (max-width: 480px) {
  .product-card .card-video-container {
    height: 130px !important;
    min-height: 130px !important;
    max-height: 130px !important;
  }
}

/* ============================================
   PASSWORD TOGGLE STYLES
   ============================================ */

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding-right: 45px;
  /* Make room for the eye icon */
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 2;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.1);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.9);
}

.password-toggle .fa-eye-slash {
  display: none;
}

.password-toggle.show .fa-eye {
  display: none;
}

.password-toggle.show .fa-eye-slash {
  display: inline-block;
}

/* For forms with labels, adjust positioning */
.form-group .password-wrapper {
  margin-top: 4px;
}

/* Mobile touch improvements */
.password-toggle {
  min-width: 36px;
  min-height: 36px;
}
