/* ========================================
   4K NET WEBSITE - MODERN ULTIMATE STYLESHEET
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ROOT VARIABLES & THEME SYSTEM */
:root {
  /* Brand Palette */
  --primary: #00F0FF;
  --primary-hover: #00D8E6;
  --primary-glow: rgba(0, 240, 255, 0.35);
  
  --secondary: #3B82F6;
  --secondary-hover: #2563EB;
  --secondary-glow: rgba(59, 130, 246, 0.3);
  
  --accent: #8B5CF6;
  --accent-hover: #7C3AED;
  
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #06B6D4;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Theme Defaults (Light Mode) */
  --bg-main: #F4F7FC;
  --bg-surface: #FFFFFF;
  --bg-surface-glass: rgba(255, 255, 255, 0.85);
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFCFF;
  --bg-tertiary: #E2E8F0;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-subtle: #94A3B8;
  --text-on-primary: #040914;

  --border-color: rgba(226, 232, 240, 0.8);
  --border-highlight: rgba(0, 240, 255, 0.4);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-accent-glow: 0 0 30px rgba(139, 92, 246, 0.25);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK THEME */
body.theme-dark {
  --bg-main: #080C14;
  --bg-surface: #0F172A;
  --bg-surface-glass: rgba(15, 23, 42, 0.75);
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-tertiary: #1E293B;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-on-primary: #040914;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 240, 255, 0.5);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* BLUE THEME */
body.theme-blue {
  --bg-main: #0B192C;
  --bg-surface: #1E3E62;
  --bg-surface-glass: rgba(30, 62, 98, 0.85);
  --bg-card: rgba(30, 62, 98, 0.9);
  --bg-card-hover: rgba(45, 82, 124, 0.95);
  --bg-tertiary: #000000;

  --text-main: #FFFFFF;
  --text-muted: #A3C9E2;
  --text-subtle: #6E94B2;
  --text-on-primary: #000000;

  --border-color: rgba(0, 240, 255, 0.15);
  --border-highlight: #00F0FF;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--text-on-primary);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-muted {
  color: var(--text-muted) !important;
}

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

/* ========================================
   LAYOUT & CONTAINER
   ======================================== */
.container, section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-title h1, .section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--primary);
}

header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

header nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

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

header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: var(--transition-fast);
}

header nav a:hover::after, header nav a.active::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  transition: var(--transition-fast);
  color: var(--text-main);
}

.cart-icon:hover {
  background: var(--primary-glow);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-on-primary);
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--primary-glow);
  animation: pulseBadge 2s infinite;
}

.cart-count:empty {
  display: none;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn, .lang-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover, .lang-toggle-btn:hover {
  border-color: var(--primary);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.theme-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover .theme-icon {
  transform: rotate(45deg);
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1100;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.lang-option:hover, .lang-option.active {
  background: var(--bg-tertiary);
  color: var(--primary);
}

/* Mobile Toggle */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding: 5rem 1.5rem 6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.hero h1 {
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Speedometer Widget Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.speed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.speed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.speed-gauge-container {
  text-align: center;
  margin-bottom: 2rem;
}

.speed-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.speed-unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.speed-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.speed-feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========================================
   CARDS & CONTAINERS
   ======================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
  background: var(--bg-card-hover);
}

/* Feature Benefits Card */
.benefit-card {
  text-align: center;
}

.benefit-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 1px solid var(--border-highlight);
}

.benefit-card h3 {
  margin-bottom: 0.75rem;
}

/* ========================================
   PLAN CARDS
   ======================================== */
.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.plan-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: scale(1.03);
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-6px);
}

.plan-ribbon {
  position: absolute;
  top: 18px;
  right: -32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-on-primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 35px;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.4);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.plan-speed {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.plan-price-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.plan-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.plan-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========================================
   PRODUCT CARDS (SHOP)
   ======================================== */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-on-primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
  box-shadow: 0 6px 20px var(--primary-glow);
  transform: translateY(-2px);
  color: var(--text-on-primary);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  color: var(--text-main);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.btn-danger {
  background: var(--danger);
  color: #FFFFFF;
}

.btn-danger:hover {
  background: #DC2626;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-large {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-small {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ========================================
   FORMS & INPUTS
   ======================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-card);
}

.error-message {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* ========================================
   TABLES (CART & ADMIN)
   ======================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-tertiary);
}

td {
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: none;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.testimonial-rating {
  color: var(--warning);
  font-size: 1rem;
}

/* ========================================
   SUPPORT & FAQ
   ======================================== */
.tab-navigation {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  color: var(--text-main);
  background: var(--bg-tertiary);
}

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

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition-fast);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========================================
   ADMIN PANEL DASHBOARD
   ======================================== */
.admin-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  min-height: 80vh;
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
}

.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-menu-btn {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-menu-btn:hover, .admin-menu-btn.active {
  background: var(--bg-tertiary);
  color: var(--primary);
}

.admin-menu-btn.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
}

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

/* ========================================
   FOOTER
   ======================================== */
footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-section ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--text-on-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

/* ========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ======================================== */
@media (max-width: 1024px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  header nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }

  header nav.show {
    clip-path: circle(140% at 100% 0);
  }

  .nav-mobile-toggle {
    display: block;
  }

  .grid.cols-3, .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .admin-container {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ADMIN PANEL SPECIFIC STYLES
   ======================================== */

.admin-content { min-height: 500px; }

.admin-section {
  animation: fadeInSection 0.25s ease;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.admin-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-fast);
}

.admin-item:hover { border-color: var(--border-highlight); }

.admin-item h4 { margin-bottom: 1rem; color: var(--primary); }
.admin-item p  { margin-bottom: 0.5rem; font-size: 0.9rem; }

.admin-item input[type='text'],
.admin-item input[type='number'],
.admin-item input[type='tel'],
.admin-item input[type='email'],
.admin-item textarea { width: 100%; margin-top: 0.25rem; }

.admin-item-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.admin-save-btn { min-width: 140px; }

.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger);  }
.toast.info    { border-color: var(--info);    }

.success-message {
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  color: var(--success);
  font-weight: 700;
  text-align: center;
}

/* ========================================
   HEADER LOGO IMAGE & PRODUCT BADGES
   ======================================== */

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.product-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.product-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-instock {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-outofstock {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pill-offer {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.product-manufacturer {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Product Icon Full Image container */
.product-icon-container {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-icon-emoji {
  font-size: 4rem;
}

/* ========================================
   STRICT LOGO IMAGE CONSTRAINTS (FIX HUGE LOGO)
   ======================================== */

.logo img, .logo-img, a.logo img, header .logo img, footer .logo img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  vertical-align: middle !important;
  display: inline-block !important;
}

.logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  text-decoration: none !important;
}
