/*
  STYLE.CSS - Ads Directory Hub
  Version: 2.0 (Complete Redesign)
  Designer: Gemini AI (Inspired by UI Senior Experts)
  Date: 2025-05-13
*/

/* ===== THEME: "NEBULA GLOW" - CORE DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@500;700;900&display=swap');

:root {
  /* Base Hues - Futuristic & Professional */
  --hue-primary: 220; /* Deep Space Blue */
  --hue-secondary: 280; /* Cosmic Purple */
  --hue-accent: 170; /* Cyber Teal */
  --hue-neutral: 230; /* Cool Gray */
  --hue-glow: 190; /* Aurora Cyan */

  /* Dynamic Color Palette */
  --primary-color: hsl(var(--hue-primary), 80%, 55%);
  --primary-light: hsl(var(--hue-primary), 80%, 70%);
  --primary-dark: hsl(var(--hue-primary), 80%, 40%);
  --primary-ultra-dark: hsl(var(--hue-primary), 70%, 25%);

  --secondary-color: hsl(var(--hue-secondary), 70%, 60%);
  --secondary-light: hsl(var(--hue-secondary), 70%, 75%);
  --secondary-dark: hsl(var(--hue-secondary), 70%, 45%);

  --accent-color: hsl(var(--hue-accent), 70%, 50%);
  --accent-light: hsl(var(--hue-accent), 70%, 65%);
  --accent-dark: hsl(var(--hue-accent), 70%, 35%);

  --glow-color: hsl(var(--hue-glow), 90%, 60%);
  --glow-transparent: hsla(var(--hue-glow), 90%, 60%, 0);

  --text-light: hsl(var(--hue-neutral), 40%, 95%);
  --text-medium: hsl(var(--hue-neutral), 30%, 75%);
  --text-dark: hsl(var(--hue-neutral), 25%, 30%);
  --text-headings: hsl(var(--hue-primary), 20%, 98%);

  --bg-dark-primary: hsl(var(--hue-neutral), 20%, 12%); /* Main Background */
  --bg-dark-secondary: hsl(var(--hue-neutral), 22%, 18%); /* Card Backgrounds, Slightly Lighter */
  --bg-dark-tertiary: hsl(var(--hue-neutral), 25%, 22%); /* Hover, Active States */
  --bg-light-canvas: hsl(var(--hue-neutral), 15%, 98%); /* For light-themed content sections if any */

  --border-color: hsl(var(--hue-neutral), 20%, 30%);
  --border-glow-color: hsla(var(--hue-accent), 70%, 50%, 0.5);

  /* Interactive States */
  --success-color: hsl(130, 60%, 55%);
  --warning-color: hsl(45, 85%, 60%);
  --error-color: hsl(0, 75%, 60%);

  /* Typography - Modern & Techy */
  --font-main: 'Inter', sans-serif;
  --font-display: 'Orbitron', sans-serif; /* For logos, hero titles */

  --text-xs: 0.75rem;  /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem;   /* 16px */
  --text-md: 1.125rem; /* 18px */
  --text-lg: 1.25rem;  /* 20px */
  --text-xl: 1.5rem;   /* 24px */
  --text-2xl: 1.875rem;/* 30px */
  --text-3xl: 2.5rem;  /* 40px */
  --text-4xl: 3.25rem; /* 52px */
  --text-5xl: 4rem;    /* 64px */

  /* Spacing System - Consistent & Rhythmic */
  --space-unit: 4px;
  --space-xxs: calc(var(--space-unit) * 2);  /* 8px */
  --space-xs: calc(var(--space-unit) * 3);   /* 12px */
  --space-sm: calc(var(--space-unit) * 4);   /* 16px */
  --space-md: calc(var(--space-unit) * 6);   /* 24px */
  --space-lg: calc(var(--space-unit) * 8);   /* 32px */
  --space-xl: calc(var(--space-unit) * 12);  /* 48px */
  --space-xxl: calc(var(--space-unit) * 16); /* 64px */
  --space-xxxl: calc(var(--space-unit) * 24);/* 96px */

  /* Border Radius - Sleek & Modern */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows - Subtle & Depth-Inducing */
  --shadow-color: hsla(var(--hue-primary), 40%, 4%, 0.6);
  --shadow-sm: 0 2px 5px var(--shadow-color);
  --shadow-md: 0 5px 15px var(--shadow-color);
  --shadow-lg: 0 10px 30px var(--shadow-color);
  --shadow-xl: 0 15px 45px var(--shadow-color);
  --shadow-glow-accent: 0 0 15px hsla(var(--hue-accent), 70%, 50%, 0.5), 0 0 30px hsla(var(--hue-accent), 70%, 50%, 0.3);
  --shadow-glow-primary: 0 0 20px hsla(var(--hue-primary), 80%, 55%, 0.4), 0 0 40px hsla(var(--hue-primary), 80%, 55%, 0.2);

  /* Transitions & Animations */
  --transition-snap: 0.15s cubic-bezier(0.7, 0, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elastic: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);

  /* Z-Index Layers */
  --z-base: 0;
  --z-content: 10;
  --z-interactive: 20; /* Buttons, inputs */
  --z-sticky: 100;
  --z-navigation: 1000;
  --z-dropdown: 1100;
  --z-modal: 1200;
  --z-overlay: 1300;
  --z-max: 9999;

  /* Header & Container Sizing */
  --header-height: 70px;
  --header-height-scrolled: 60px;
  --container-width: 1320px;
  --container-padding: var(--space-lg);
}

/* ===== GLOBAL RESETS & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 100%; /* 16px base */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-md));
  height: 100%;
  background-color: var(--bg-dark-primary); /* Ensure html bg matches body */
}

body {
  font-family: var(--font-main);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-medium);
  background-color: var(--bg-dark-primary);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  overflow-x: hidden; /* Prevent horizontal scrollbars */
}

main {
  flex-grow: 1;
  width: 100%;
  overflow-x: hidden; /* Ensure main content doesn't cause overflow */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-headings);
  margin-bottom: var(--space-md);
  text-rendering: optimizeLegibility;
  letter-spacing: 0.5px;
}

h1 { font-size: var(--text-4xl); font-weight: 900; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 700; }
h4 { font-size: var(--text-xl); font-weight: 500; }
h5 { font-size: var(--text-lg); font-weight: 500; }
h6 { font-size: var(--text-md); font-weight: 500; }

p {
  margin-bottom: var(--space-lg);
  font-size: var(--text-base);
  line-height: 1.8;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition-smooth), opacity var(--transition-smooth);
}
a:hover, a:focus {
  color: var(--white-color);
  text-decoration: none; /* Typically no underline in modern designs unless for specific emphasis */
  opacity: 0.85;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none; /* Remove default list styles */
  margin-bottom: var(--space-lg);
}

/* For accessibility with focus states */
*:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px hsla(var(--hue-accent), 70%, 50%, 0.3);
  border-radius: var(--radius-sm);
}

/* ===== UTILITY & HELPER CLASSES ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary-light); /* Fallback */
}

.text-glow-accent {
  color: var(--accent-light);
  text-shadow: 0 0 8px hsla(var(--hue-accent), 80%, 70%, 0.7),
               0 0 16px hsla(var(--hue-accent), 80%, 70%, 0.5);
}

.text-glow-primary {
  color: var(--primary-light);
  text-shadow: 0 0 10px hsla(var(--hue-primary), 80%, 70%, 0.6),
               0 0 20px hsla(var(--hue-primary), 80%, 70%, 0.4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-padding {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

/* ===== SITE HEADER ===== */
.site-header {
  background-color: hsla(var(--hue-neutral), 20%, 12%, 0.85); /* Semi-transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-navigation);
  height: var(--header-height);
  transition: height var(--transition-smooth), background-color var(--transition-smooth), box-shadow var(--transition-smooth);
  border-bottom: 1px solid var(--border-color);
}

body.scrolled .site-header {
  height: var(--header-height-scrolled);
  background-color: hsla(var(--hue-neutral), 20%, 10%, 0.95);
  box-shadow: 0 2px 10px hsla(var(--hue-neutral), 20%, 5%, 0.5);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-headings);
  letter-spacing: 1px;
  transition: transform var(--transition-smooth), color var(--transition-smooth);
  padding: var(--space-xs) 0;
}
.logo:hover {
  color: var(--accent-light);
  transform: scale(1.05);
  text-decoration: none;
  opacity: 1;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0; padding: 0;
}

.main-nav a {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-medium);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: color var(--transition-smooth), background-color var(--transition-smooth);
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--glow-color));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: width var(--transition-smooth) cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  color: var(--text-light);
  background-color: hsla(var(--hue-accent), 70%, 50%, 0.1);
  text-decoration: none;
  opacity: 1;
}

.main-nav a:hover::before,
.main-nav a:focus::before,
.main-nav a.active::before {
  width: 70%;
}

.burger-icon {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: var(--text-xl);
  cursor: pointer;
  padding: var(--space-sm);
  z-index: calc(var(--z-navigation) + 1);
  transition: transform var(--transition-smooth), color var(--transition-smooth);
}
.burger-icon:hover {
  color: var(--accent-color);
  transform: rotate(90deg) scale(1.1);
}
.burger-icon i {
  display: block;
  transition: transform var(--transition-smooth);
}
/* body.nav-open .burger-icon i { transform: rotate(45deg); } */
/* JS will toggle a class like 'nav-open' on body for specific icon transform */

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(170deg, var(--primary-ultra-dark) 0%, var(--bg-dark-primary) 60%),
              radial-gradient(ellipse at 70% 30%, hsla(var(--hue-secondary),50%,30%,0.5) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 80%, hsla(var(--hue-accent),50%,40%,0.3) 0%, transparent 50%);
  color: var(--text-light);
  padding: var(--space-xxxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Wavy bottom shape */
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  margin-bottom: var(--space-xxl); /* Space after the clip-path shape */
}

.hero::before, .hero::after { /* Subtle animated particles/stars */
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: hsla(var(--hue-glow), 80%, 80%, 0.7);
  border-radius: 50%;
  animation: sparkle 5s infinite linear;
  opacity: 0;
}
.hero::after { animation-delay: 2.5s; left: 20%; top: 70%; width: 3px; height: 3px; }
.hero::before { left: 80%; top: 30%; }

@keyframes sparkle {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
  25% { opacity: 1; }
  50% { transform: translate(20px, -30px) scale(1); opacity: 0.7; }
  75% { opacity: 1; }
  100% { transform: translate(-20px, 30px) scale(0.5); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: var(--z-content);
  max-width: 900px; /* Wider for more impact */
  margin-left: auto;
  margin-right: auto;
  animation: heroContentFadeIn 1s var(--transition-smooth) forwards;
  opacity: 0;
  transform: translateY(20px);
}
@keyframes heroContentFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: var(--text-5xl);
  color: var(--text-headings);
  font-weight: 900;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
  letter-spacing: 1px;
  text-shadow: 0 3px 20px hsla(var(--hue-primary), 50%, 10%, 0.5);
}
.hero-title .gradient-text {
  background: linear-gradient(45deg, var(--accent-light), var(--primary-light), var(--glow-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.1em; /* Prevent clipping of bold text */
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-medium);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-weight: 400;
}

/* Search Input from home-sections.php */
.search-container {
  position: relative;
  max-width: 650px; /* Wider search */
  margin: var(--space-xl) auto 0;
}
.search-input, /* General search input, for reusability */
#networkSearch {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  padding-right: 150px; /* Space for button */
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  background-color: hsla(var(--hue-neutral), 20%, 15%, 0.7);
  backdrop-filter: blur(5px);
  color: var(--text-light);
  font-size: var(--text-base);
  font-family: var(--font-main);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
  appearance: none; /* Remove default styling */
}
#networkSearch::placeholder { color: var(--text-medium); opacity: 0.7; }
#networkSearch:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: hsla(var(--hue-neutral), 20%, 10%, 0.8);
  box-shadow: 0 0 0 4px hsla(var(--hue-accent), 70%, 50%, 0.3), var(--shadow-glow-accent);
}

.search-btn {
  position: absolute;
  right: var(--space-xs);
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(45deg, var(--accent-dark), var(--accent-color));
  border: none;
  border-radius: var(--radius-full);
  padding: calc(var(--space-sm) + 2px) var(--space-lg); /* Ensure vertical centering and good size */
  color: var(--bg-dark-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.search-btn:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: var(--shadow-md), var(--shadow-glow-accent);
  background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
}
.search-btn:active {
  transform: translateY(-50%) scale(0.98);
  box-shadow: var(--shadow-sm);
}
.search-btn i { font-size: var(--text-sm); }

/* ===== SECTIONS (GENERAL STYLING) ===== */
.features, .featured-networks, .faq-section,
.network-section, .sellers-section,
.privacy-section, .terms-section, .about-section, .contact-section {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
  position: relative;
}

.section-title {
  font-size: var(--text-3xl);
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--text-headings);
  position: relative;
  padding-bottom: var(--space-md); /* Space for the underline */
}
.section-title::after { /* Animated underline */
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0; /* Initial width */
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-xs);
  transition: width var(--transition-elastic) 0.3s; /* Delay transition for effect */
}
/* Trigger underline animation when section is in view (requires JS for IntersectionObserver) */
.section-in-view .section-title::after {
  width: 100px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  font-size: var(--text-md);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== FEATURES SECTION (home-sections.php) ===== */
.features-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.feature-card {
  background-color: var(--bg-dark-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px hsla(var(--hue-neutral), 20%, 5%, 0.3);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center; /* Center content within feature card */
}
.feature-card::before { /* Interactive glow border */
  content: "";
  position: absolute;
  inset: -2px; /* Slightly outside to make border appear on edge */
  border-radius: inherit; /* Match parent's border-radius */
  background: conic-gradient(from 180deg at 50% 50%, var(--glow-transparent) 0%, var(--accent-color) 50%, var(--glow-transparent) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  animation: rotateGradient 4s linear infinite paused; /* Paused initially */
}
@keyframes rotateGradient {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow-accent);
  border-color: var(--border-glow-color);
}
.feature-card:hover::before {
  opacity: 0.7;
  animation-play-state: running;
}

.feature-icon {
  font-size: var(--text-3xl); /* Using text for emoji icon, can be replaced with <i> */
  margin-bottom: var(--space-lg);
  color: var(--accent-color);
  display: inline-block;
  transition: transform var(--transition-smooth);
}
.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
}

.feature-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-headings);
}

.feature-desc {
  color: var(--text-medium);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===== NETWORK & SELLER CARDS (General Card Styling) ===== */
.featured-networks, /* From home-sections.php */
.network-section, /* From network.php */
.sellers-list-grid /* From network.php - specific to seller list */
{
  /* section-padding applied globally */
}

/* Specifically for the home page "Featured Networks" section background */
.page-index .featured-networks {
  background-color: hsla(var(--hue-neutral), 18%, 15%, 0.5);
  border-radius: var(--radius-xl);
  padding: var(--space-xxl) var(--space-xl); /* Adjust padding */
  margin-top: var(--space-xxl);
  box-shadow: inset 0 0 30px hsla(var(--hue-neutral), 20%, 5%, 0.3);
}

#networkCards, /* ID on home-sections.php */
.network-cards-grid, /* Class on network.php (list of networks) */
.sellers-list-grid /* Class on network.php (list of sellers) */
{
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); /* Responsive columns */
}

/* Generic Card styling for .card, .network-card, .seller-card */
.card, .network-card, .seller-card {
  background: linear-gradient(145deg, var(--bg-dark-secondary) 0%, var(--bg-dark-tertiary) 100%);
  color: var(--text-medium);
  border-radius: var(--radius-lg);
  overflow: hidden; /* Important for pseudo-elements and image corners */
  box-shadow: 0 5px 15px hsla(var(--hue-neutral), 15%, 8%, 0.4);
  transition: all var(--transition-smooth);
  position: relative;
  border: 1px solid var(--border-color);
  text-decoration: none; /* If card is an <a> tag */
  display: flex; /* Allows content to stretch */
  flex-direction: column;
}
.card:hover, .network-card:hover, .seller-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
  border-color: var(--primary-light);
  color: var(--text-light); /* Enhance text color on hover */
}
.card:hover .domain, .network-card:hover .domain, .seller-card:hover .seller-name {
    color: var(--primary-light); /* Highlight name on hover */
}

.card-content {
  padding: var(--space-lg);
  flex-grow: 1; /* Allow content to fill card height */
  display: flex;
  flex-direction: column;
}

.card-header, /* Used on home page cards */
.seller-header /* Used on network.php seller cards */
{
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid hsla(var(--hue-neutral), 20%, 25%, 0.7);
}

.favicon, /* Home page card */
.network-favicon, /* Network list card */
.seller-favicon /* Seller list card */
{
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background-color: hsla(var(--hue-neutral), 20%, 10%, 0.5); /* Darker fallback bg */
  padding: var(--space-xxs);
  box-shadow: 0 2px 4px hsla(0,0%,0%,0.2);
  flex-shrink: 0; /* Prevent icon from shrinking */
}
/* Fallback for Google Favicons */
img[src*="google.com/s2/favicons?domain="] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
}

.domain, /* Home page card */
.seller-name /* Seller list card */
{
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-headings);
  flex-grow: 1;
  word-break: break-word; /* Prevent long names from breaking layout */
  transition: color var(--transition-smooth);
}

.card-stats, /* Home page card */
.seller-details /* Seller list card */
{
  margin-top: auto; /* Push to bottom of card */
  font-size: var(--text-sm);
  color: var(--text-medium);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.stat {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.stat i {
  color: var(--accent-color);
  font-size: var(--text-base);
  width: 1.2em; /* Align icons */
  text-align: center;
}

/* Specific for seller-card on network.php */
.seller-type, .seller-type-badge-small { /* .seller-type used in old css, .seller-type-badge-small used in HTML */
  font-size: var(--text-xs);
  padding: var(--space-xxs) var(--space-sm);
  border-radius: var(--radius-full);
  background: linear-gradient(45deg, var(--secondary-dark), var(--secondary-color));
  color: var(--text-light);
  font-weight: 500;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.seller-id {
  color: var(--text-medium);
  font-family: monospace; /* Techy feel for IDs */
}

/* ===== FAQ SECTION (faq-content.php) ===== */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.faq-item {
  background-color: var(--bg-dark-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}
.faq-item:hover {
  background-color: var(--bg-dark-tertiary);
  box-shadow: var(--shadow-md);
}
.faq-item.active {
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 0 20px hsla(var(--hue-accent), 70%, 50%, 0.2);
}
.faq-question {
  padding: var(--space-lg);
  font-weight: 600;
  font-size: var(--text-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-headings);
  transition: color var(--transition-smooth);
}
.faq-item.active .faq-question {
  color: var(--accent-light);
}
.faq-question::after { /* Animated + / - icon */
  content: '>'; /* FontAwesome plus */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: var(--text-sm);
  color: var(--text-medium);
  transition: transform var(--transition-elastic), color var(--transition-smooth);
}
.faq-item.active .faq-question::after {
  transform: rotate(135deg); /* Turns plus into a 'x' like close */
  color: var(--accent-color);
}
.faq-answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth) 0.1s, padding var(--transition-smooth) 0.1s;
  color: var(--text-medium);
  line-height: 1.8;
  font-size: var(--text-sm);
}
.faq-item.active .faq-answer {
  padding: var(--space-xs) var(--space-lg) var(--space-lg);
  max-height: 600px; /* Generous max height */
  transition-timing-function: ease-in-out;
}

/* ===== SELLER PROFILE PAGE (sellers.php) ===== */
/* Using .seller-profile.card as per existing HTML */
.seller-profile.card {
  max-width: 960px;
  margin: var(--space-xxl) auto;
  background: var(--bg-dark-secondary);
  color: var(--text-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); /* More pronounced radius for profile */
  box-shadow: var(--shadow-lg);
  overflow: visible; /* Allow for potential hover effects to extend slightly */
}
.seller-profile.card:hover {
  transform: none; /* Keep profile card stable, focus on inner elements */
  box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
  border-color: var(--primary-dark);
}

.seller-profile .card-header { /* This is the H1 title container */
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-ultra-dark));
  color: var(--text-headings);
  padding: var(--space-xl) var(--space-lg);
  border-bottom: 2px solid var(--primary-color);
  text-align: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; /* Match card radius */
}
.seller-profile .card-header h1 {
  color: var(--text-headings);
  font-size: var(--text-3xl);
  margin: 0;
  text-shadow: 0 2px 5px hsla(0,0%,0%,0.3);
}

.seller-profile .card-body {
  padding: var(--space-xl);
}

.detail-row {
  display: grid;
  grid-template-columns: 180px 1fr; /* Fixed label width */
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--text-base);
}
.detail-row:last-child { border-bottom: none; }
.detail-row p { margin-bottom: 0; }
.detail-row p:first-child { /* Label (strong tag inside) */
  font-weight: 600;
  color: var(--text-light);
}
.detail-row .detail-value { /* Value */
  color: var(--text-medium);
  word-break: break-all; /* Prevent long domains/IDs from breaking layout */
}
.detail-row .detail-value a.text-link {
  color: var(--accent-light);
  font-weight: 500;
  transition: letter-spacing var(--transition-smooth);
}
.detail-row .detail-value a.text-link:hover {
  letter-spacing: 0.5px;
  color: var(--white-color);
}

.seller-profile .seller-type-badge { /* Badge on seller page */
  background: linear-gradient(45deg, var(--accent-dark), var(--accent-light));
  color: var(--bg-dark-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* SEO Report Section (sellers.php) */
.seo-report-section {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background-color: hsla(var(--hue-neutral), 20%, 15%, 0.5); /* Slightly different background */
  border-radius: var(--radius-lg);
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.seo-report-section h2 {
  margin-bottom: var(--space-lg);
  font-size: var(--text-2xl);
  color: var(--text-headings);
}
#generate-seo-btn.generate-report-btn { /* ID takes precedence if not more specific */
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: var(--bg-dark-primary);
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}
#generate-seo-btn:hover {
  background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
}
#generate-seo-btn:disabled {
  background: var(--neutral-medium);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}
#generate-seo-btn i { transition: transform var(--transition-smooth); }
#generate-seo-btn:hover i { transform: rotate(10deg) scale(1.1); }

.seo-report-results {
  background-color: var(--bg-dark-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl); /* More padding for results */
  margin-top: var(--space-lg);
  box-shadow: inset 0 2px 10px hsla(var(--hue-neutral), 20%, 5%, 0.4);
  text-align: left;
  min-height: 150px;
  position: relative;
  transition: min-height var(--transition-smooth);
}
.seo-report-results.loading::after { /* Enhanced Loader */
  content: "";
  position: absolute;
  top: calc(50% - 25px); left: calc(50% - 25px);
  width: 50px; height: 50px;
  border: 5px solid hsla(var(--hue-neutral), 20%, 30%, 0.5);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spinAdvanced 1s linear infinite;
}
@keyframes spinAdvanced {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); border-top-color: var(--primary-color); }
  100% { transform: rotate(360deg) scale(1); border-top-color: var(--accent-color); }
}

.metrics-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-bottom: var(--space-xl);
}
.metric-card {
  background-color: var(--bg-dark-tertiary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.metric-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-md), 0 0 10px hsla(var(--hue-primary), 50%, 60%, 0.3);
}
.metric-title {
  font-size: var(--text-sm);
  color: var(--text-medium);
  margin-bottom: var(--space-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.metric-value {
  font-size: var(--text-2xl);
  font-family: var(--font-display); /* Techy font for values */
  font-weight: 700;
  color: var(--text-headings);
  line-height: 1;
}
.metric-value.high { color: var(--success-color); text-shadow: 0 0 8px hsla(130, 60%, 55%, 0.5); }
.metric-value.medium { color: var(--warning-color); text-shadow: 0 0 8px hsla(45, 85%, 60%, 0.5); }
.metric-value.low { color: var(--error-color); text-shadow: 0 0 8px hsla(0, 75%, 60%, 0.5); }

.seo-analysis {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px dashed var(--border-color);
}
.seo-analysis p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-medium);
}
.seo-analysis strong {
  color: var(--text-light);
  font-weight: 600;
}
.seo-report-results p.initial-message {
  text-align: center;
  color: var(--text-medium);
  font-style: italic;
  padding: var(--space-xl) 0;
  font-size: var(--text-base);
}

/* ===== PAGINATION (network.php) ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-xxl);
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-dark-tertiary);
  color: var(--text-medium);
  cursor: pointer;
  transition: all var(--transition-smooth);
  min-width: 44px; /* Ensure touch target size */
  min-height: 44px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.pagination-link:hover:not(.active):not(.disabled) {
  border-color: var(--accent-color);
  color: var(--accent-light);
  background-color: hsla(var(--hue-accent), 70%, 50%, 0.1);
  box-shadow: var(--shadow-md), var(--shadow-glow-accent);
  transform: translateY(-2px);
}
.pagination-link.active {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
  color: var(--text-headings);
  border-color: var(--primary-color);
  font-weight: 700;
  cursor: default;
  box-shadow: var(--shadow-md), inset 0 1px 3px hsla(0,0%,0%,0.2);
}
.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--bg-dark-secondary);
  box-shadow: none;
  transform: none;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-xs);
  color: var(--text-medium);
  font-weight: bold;
}


/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(to top, var(--primary-ultra-dark) 0%, var(--bg-dark-primary) 100%);
  color: var(--text-medium);
  padding: var(--space-xxl) 0 var(--space-lg);
  margin-top: auto; /* Push to bottom */
  border-top: 2px solid var(--primary-dark);
  position: relative;
  overflow: hidden;
}
.site-footer::before { /* Subtle pattern or texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23hsla(var(--hue-primary),50%25,30%25,0.1)' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative; /* For z-index context */
  z-index: var(--z-content);
}

.footer-section { padding: 0; }

.footer-title { /* "Ads Directory Hub" in footer */
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-headings);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.footer-description {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  font-size: var(--text-sm);
  color: var(--text-medium);
  max-width: 300px; /* Limit width of description */
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background-color: hsla(var(--hue-neutral), 20%, 25%, 0.7);
  color: var(--text-medium);
  transition: all var(--transition-smooth);
  font-size: var(--text-lg);
  box-shadow: var(--shadow-sm);
}
.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--bg-dark-primary);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-glow-accent);
  opacity: 1;
}

.footer-heading { /* "Quick Links", "Contact" */
  font-size: var(--text-lg);
  color: var(--text-headings);
  margin-bottom: var(--space-lg);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-links { list-style: none; padding-left: 0; }
.footer-link {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--text-medium);
  transition: color var(--transition-smooth), padding-left var(--transition-smooth), letter-spacing var(--transition-smooth);
  font-size: var(--text-sm);
  position: relative;
}
.footer-link::before { /* Hover underline effect */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-light);
  transition: width var(--transition-smooth);
}
.footer-link:hover {
  color: var(--accent-light);
  padding-left: var(--space-xs);
  letter-spacing: 0.3px;
  opacity: 1;
}
.footer-link:hover::before { width: 80%; }

.footer-section .contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
}
.footer-section .contact-icon i {
  color: var(--accent-color);
  font-size: var(--text-md);
  width: 24px; text-align: center;
  transition: transform var(--transition-smooth);
}
.footer-section .contact-method:hover .contact-icon i {
  transform: scale(1.2);
}
.footer-section .contact-detail a {
  color: var(--text-medium);
  transition: color var(--transition-smooth);
}
.footer-section .contact-detail a:hover {
  color: var(--accent-light);
  opacity: 1;
}

.copyright {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  font-size: var(--text-xs);
  color: var(--text-medium);
  opacity: 0.8;
  position: relative; /* For z-index context */
  z-index: var(--z-content);
}
.copyright p { margin-bottom: 0; }


/* ===== GENERIC CONTENT PAGE STYLES (About, Contact, Privacy, Terms) ===== */
/* .page-content already handled by main > .container */
.privacy-section, .terms-section, .about-section, .contact-section {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.privacy-content, .terms-content, .about-content {
  background-color: var(--bg-dark-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-top: var(--space-lg); /* Space from page title if any */
}
.privacy-content h1, .terms-content h1, .about-section h1, .contact-section h1 { /* Main page titles */
    font-size: var(--text-4xl);
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-headings);
    text-shadow: var(--shadow-glow-primary);
}
.privacy-content h2, .terms-content h2, .about-section h2, .contact-section h2 {
  color: var(--primary-light);
  font-size: var(--text-2xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--primary-dark);
}
.privacy-content h2:first-child, .terms-content h2:first-child,
.about-section h2:first-child, .contact-section h2:first-child {
  margin-top: 0;
}
.privacy-content p, .terms-content p, .about-content p {
  line-height: 1.9; /* Slightly more leading for readability */
  font-size: var(--text-base);
  color: var(--text-medium);
}
.privacy-content ul, .terms-content ul, .about-content ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
  list-style: none; /* Custom list style below */
}
.privacy-content li, .terms-content li, .about-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
  position: relative;
  padding-left: var(--space-md);
}
.privacy-content li::before, .terms-content li::before, .about-content li::before {
  content: '*'; /* FontAwesome check-circle or similar */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* Solid icon */
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 4px; /* Adjust vertical alignment */
  font-size: var(--text-sm);
}

/* About Page Specifics */
.about-intro p { font-size: var(--text-md); color: var(--text-light); }
.mission-values { margin: var(--space-xxl) 0; }
.values-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: var(--space-lg);
}
.value-card { /* Used in about page */
  background-color: var(--bg-dark-tertiary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  text-align: left;
}
.value-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-color);
}
.value-card h3 { /* Title inside value card */
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--accent-light);
  border-bottom: none; /* Remove default h2 border if it cascades */
}
.cta-section { /* Call to Action */
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  margin-top: var(--space-xxl);
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
  color: var(--text-headings);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.cta-section h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  color: var(--text-headings);
  border-bottom: none;
}
.cta-section p {
  margin-bottom: var(--space-xl);
  font-size: var(--text-md);
  color: var(--text-light);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn.generate-report-btn { /* Example of reusing button style */
  background: linear-gradient(45deg, var(--accent-dark), var(--accent-light));
  color: var(--bg-dark-primary);
  margin: 0 var(--space-sm);
}
.cta-section .btn:hover {
  background: linear-gradient(45deg, var(--accent-light), var(--accent-dark));
}


/* Contact Page Specifics */
.contact-grid { /* Wrapper for info + form */
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr; /* Stack by default */
  background-color: transparent; /* Ensure no double background */
  box-shadow: none; border: none; padding: 0; margin-top: 0;
}
@media (min-width: 992px) { /* 2 columns on wider screens */
  .contact-grid { grid-template-columns: 1fr 1fr; } /* Info takes less space */
}

.contact-info { /* Info block */
  background-color: var(--bg-dark-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}
.contact-info h3 { /* "Contact Information" title */
  font-size: var(--text-xl);
  color: var(--primary-light);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--primary-dark);
  padding-bottom: var(--space-sm);
}
.contact-method { /* Individual method: email, phone */
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  color: var(--text-medium);
}
.contact-method .contact-icon {
  font-size: var(--text-xl);
  color: var(--accent-color);
  margin-top: var(--space-xxs);
  width: 28px; text-align: center;
  flex-shrink: 0;
}
.contact-method .contact-detail {
  flex: 1;
  line-height: 1.7;
}
.contact-method .contact-detail a {
  color: var(--accent-light);
  font-weight: 500;
}
.contact-method .contact-detail a:hover {
  color: var(--white-color);
}

.contact-form { /* Form block */
  background-color: var(--bg-dark-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}
.contact-form h3 { /* "Send us a Message" title */
    font-size: var(--text-xl);
    color: var(--primary-light);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--primary-dark);
    padding-bottom: var(--space-sm);
}
.form-group { margin-bottom: var(--space-lg); }
.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-light);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: var(--text-base);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
  background-color: var(--bg-dark-tertiary);
  color: var(--text-light);
}
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
    color: var(--text-medium); opacity: 0.6;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px hsla(var(--hue-accent), 70%, 50%, 0.2);
  background-color: var(--bg-dark-primary); /* Darken on focus */
}
.form-group textarea { min-height: 180px; resize: vertical; }

.submit-btn { /* Button for contact form */
  width: 100%;
  padding: var(--space-md);
  background: linear-gradient(45deg, var(--accent-dark), var(--accent-color));
  color: var(--bg-dark-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-md);
}
.submit-btn:hover {
  background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-lg), var(--shadow-glow-accent);
}

/* ===== ERROR PAGE STYLES ===== */
.error-container {
  text-align: center;
  padding: var(--space-xxxl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - var(--space-xxxl) * 2); /* Adjust based on footer */
}
.error-container h1 {
  color: var(--error-color);
  font-size: var(--text-5xl); /* Larger error code */
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 15px hsla(0, 75%, 60%, 0.5);
}
.error-container p {
  font-size: var(--text-lg);
  color: var(--text-light);
  margin-bottom: var(--space-xl);
}
.error-container pre { /* Debug trace */
  background-color: var(--bg-dark-secondary);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: left;
  font-size: var(--text-xs);
  overflow-x: auto;
  margin-top: var(--space-lg);
  max-width: 100%;
  color: var(--text-medium);
  box-shadow: var(--shadow-inset);
}

/* Empty state for lists */
.sellers-list-empty, .networks-list-empty { /* If you create a similar one for networks */
    text-align: center;
    padding: var(--space-xxxl) var(--space-lg);
    background-color: hsla(var(--hue-neutral), 18%, 15%, 0.5);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
    color: var(--text-medium);
    margin: var(--space-xl) 0;
}
.sellers-list-empty p, .networks-list-empty p {
    font-size: var(--text-lg);
    font-style: italic;
    margin: 0;
}

/* Network Page Titles (network.php, shared with .section-title) */
.network-title { /* Already covered by .section-title, ensure it applies */ }

/* ===== RESPONSIVE DESIGN ADJUSTMENTS ===== */

/* Tablet & Smaller Desktops (e.g., up to 1024px) */
@media (max-width: 1024px) {
  :root {
    --container-padding: var(--space-lg);
    --text-4xl: 2.8rem;
    --text-5xl: 3.5rem;
  }
  .hero { clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%); }
  .detail-row { grid-template-columns: 150px 1fr; }
}

/* Tablet (e.g., up to 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 60px; /* Slimmer header on mobile */
    --container-padding: var(--space-md);
    --text-3xl: 2rem;
    --text-4xl: 2.25rem;
    --text-5xl: 2.8rem;
  }
  body { padding-top: var(--header-height); }
  html { scroll-padding-top: calc(var(--header-height) + var(--space-sm)); }

  .logo { font-size: var(--text-lg); }

  .burger-icon { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; /* Align with viewport top for full coverage */
    right: -100%;
    width: min(80vw, 300px);
    height: 100vh;
    background-color: var(--bg-dark-primary);
    box-shadow: -5px 0 25px hsla(var(--hue-neutral), 20%, 5%, 0.5);
    padding: var(--header-height) 0 var(--space-lg); /* Padding top to clear header visually */
    transition: right var(--transition-smooth);
    z-index: calc(var(--z-navigation) - 1); /* Below burger button */
    overflow-y: auto;
    display: flex; /* For flex-direction column */
    flex-direction: column;
  }
  .main-nav.active { right: 0; } /* JS toggles this */
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start; /* Align items to the start */
    gap: var(--space-xxs);
    padding: var(--space-lg);
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-md);
  }
  .main-nav a:hover, .main-nav a.active { background-color: hsla(var(--hue-accent),70%,50%,0.15); }
  .main-nav a::before { display: none; } /* Remove underline hover for mobile */

  .hero { 
    clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%); 
    padding: var(--space-xxl) 0; 
    border-radius: 25px;
    margin: 20px 0;
  }
  .hero-title { font-size: var(--text-4xl); }
  .hero-subtitle { font-size: var(--text-md); }
  #networkSearch { padding-right: 120px; font-size: var(--text-sm); }
  .search-btn { padding: var(--space-sm) var(--space-md); font-size: var(--text-xs); }

  .section-title { font-size: var(--text-2xl); }
  .section-title::after { width: 80px; height: 3px; }
  .section-subtitle { font-size: var(--text-base); margin-bottom: var(--space-lg); }

    .seo-report-section{
    padding: 10px;
  }
    .seo-report-results{
        padding: 10px;
  }
   .seller-profile .card-header h1{
    font-size: 25px;
  }

  .features-grid { grid-template-columns: 1fr; }
  #networkCards, .network-cards-grid, .sellers-list-grid { grid-template-columns: 1fr; }

  .faq-question { padding: var(--space-md); font-size: var(--text-base); }
  .faq-answer { padding: 0 var(--space-md); }
  .faq-item.active .faq-answer { padding: var(--space-sm) var(--space-md) var(--space-md); }

  .seller-profile.card { margin: var(--space-xl) auto; }
  .detail-row { grid-template-columns: 120px 1fr; gap: var(--space-md); }
  .metrics-grid { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-section { padding: var(--space-md) 0; }
  .social-links { justify-content: center; }
  .footer-links { text-align: center; }
  .footer-heading { text-align: center; }
  .footer-description { max-width: none; margin-left: auto; margin-right: auto; }
  .footer-section .contact-method { justify-content: center; }
  
  .contact-grid { grid-template-columns: 1fr; }
  .pagination-link { font-size: var(--text-xs); padding: var(--space-xs) var(--space-sm); min-width: 38px; min-height: 38px; }
}

/* Mobile (e.g., up to 480px) */
@media (max-width: 480px) {
  :root {
    --text-base: 0.9375rem; /* 15px for slightly better readability on small screens */
    --text-3xl: 1.8rem;
    --text-4xl: 2rem;
    --text-5xl: 2.5rem;
    --container-padding: var(--space-sm);
  }
  .hero { 
    padding: var(--space-xl) 0;
    border-radius: 25px;
    margin: 20px 0;

}
  .hero-title { font-size: var(--text-4xl); letter-spacing: 0; }
  .hero-subtitle { font-size: var(--text-sm); }
  
  #networkSearch {
    padding: var(--space-sm) var(--space-md);
    padding-right: 100px;
    font-size: var(--text-xs);
  }
  .search-btn { padding: calc(var(--space-xs) + 1px) var(--space-sm); font-size: var(--text-xs); }
  .search-btn i { display: none; } /* Remove icon on very small buttons */
  
  .seo-report-section{
    padding: 10px;
  }
  .seo-report-results{
        padding: 10px;
  }
  
  .section-title { font-size: var(--text-xl); }
  .section-subtitle { font-size: var(--text-sm); }

  .feature-card, .card-content { padding: var(--space-md); }
  .favicon, .network-favicon, .seller-favicon { width: 32px; height: 32px; }
  .domain, .seller-name { font-size: var(--text-md); }

  .seller-profile .card-header h1 { font-size: 25px; }
  .detail-row { grid-template-columns: 1fr; text-align: center; } /* Stack label and value */
  .detail-row p:first-child { margin-bottom: var(--space-xxs); }
  .metric-card { padding: var(--space-md); }
  .metric-value { font-size: var(--text-xl); }
  #generate-seo-btn { font-size: var(--text-sm); padding: var(--space-sm) var(--space-md); }

  .privacy-section, .terms-section, .about-section, .contact-section { padding: var(--space-lg) 0; }
  .privacy-content, .terms-content, .about-content, .contact-info, .contact-form { padding: var(--space-lg); }
  .form-group input[type="text"], .form-group input[type="email"], .form-group textarea {
    padding: var(--space-sm); font-size: var(--text-sm);
  }
  .submit-btn { font-size: var(--text-base); padding: var(--space-sm); }
}

/* Body class for when mobile nav is open */
body.nav-open {
  overflow-y: hidden; /* Prevent body scroll when mobile menu is open */
}
/* Optional: Add an overlay to the main content when nav is open */
body.nav-open main {
  /* filter: blur(3px) brightness(0.7); */
  /* transition: filter var(--transition-smooth); */
  /* pointer-events: none; */ /* Be careful with this, might affect accessibility */
}

/* Final check for existing classes that might not be covered by generic patterns */
.mobile-menu-container { /* This seems to be an inner wrapper in your nav */
  /* Styles for this are implicitly handled by .main-nav ul, but can be specific if needed */
}
.search-input { /* This is an alias for #networkSearch, styles are covered */ }
.cards { /* This is an alias for #networkCards, styles are covered */ }


/* Smooth scroll polyfill for browsers that don't support scroll-padding-top */
@supports (not (scroll-padding-top: 1px)) {
  html {
    scroll-behavior: auto; /* Disable smooth scroll if polyfill needed */
  }
  /* JS would handle the offset for anchor links if scroll-padding-top is not supported */
}