/* ==========================================================================
   Nexora Core Design System & Theme Stylesheet
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  /* Color Palettes */
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #d946ef 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 16px -6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 0 12px 20px -8px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.35);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Dark Theme Variables (Default) */
[data-theme="dark"] {
  --bg-primary: #080b11;
  --bg-secondary: #0f131c;
  --bg-tertiary: #171d2b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.04);
  --card-bg: rgba(15, 19, 28, 0.7);
  --card-bg-rgb: 15, 19, 28;
  --border-rgb: 255, 255, 255;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --input-bg: #131924;
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --hero-dot-grid: rgba(255, 255, 255, 0.02);
  --hero-glow-color: rgba(99, 102, 241, 0.12);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.04);
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-bg-rgb: 255, 255, 255;
  --border-rgb: 0, 0, 0;
  --glass-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.15);
  --input-bg: #f1f5f9;
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --hero-dot-grid: rgba(0, 0, 0, 0.02);
  --hero-glow-color: rgba(79, 70, 229, 0.06);
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Sleek custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Core Layout: Sticky Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--card-bg-rgb), 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  height: 4.5rem;
}

/* Branding logo styling */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  filter: blur(20px);
  opacity: 0.6;
  z-index: -1;
  animation: logo-pulse 4s infinite alternate;
}

.logo-symbol {
  background: var(--primary-gradient);
  color: white;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

/* Navigation Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.nav-link .material-symbols-outlined {
  font-size: 1.2rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
  background: rgba(var(--border-rgb), 0.03);
  border-color: var(--border-light);
}

/* Badges for Wishlist / Compare counts */
.badge {
  background: var(--accent-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 12px;
  min-width: 1.2rem;
  text-align: center;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Search Box Layout */
.search-container {
  position: relative;
  width: 280px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
  background: var(--bg-secondary);
}

.search-icon {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
}

.clear-search-btn.active {
  display: flex;
}

.clear-search-btn:hover {
  color: var(--text-primary);
}

/* Search suggestions box */
.search-suggestions-dropdown {
  position: absolute;
  top: 105%;
  right: 0;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 350px;
  overflow-y: auto;
  z-index: 110;
  display: none;
  animation: slide-up-suggestions 0.2s ease-out;
}

.search-suggestions-dropdown.active {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(var(--border-rgb), 0.04);
}

.suggestion-thumb {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 6px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-details {
  display: flex;
  flex-direction: column;
}

.suggestion-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.suggestion-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.no-suggestions-item {
  padding: 1rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: rgba(var(--border-rgb), 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: rgba(var(--border-rgb), 0.1);
  color: var(--primary-color);
  transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle-btn .light-icon { display: block; }
[data-theme="dark"] .theme-toggle-btn .dark-icon { display: none; }
[data-theme="light"] .theme-toggle-btn .light-icon { display: none; }
[data-theme="light"] .theme-toggle-btn .dark-icon { display: block; }

/* Currency Selector */
.currency-selector-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(var(--border-rgb), 0.05);
  border: 1px solid var(--border-color);
  padding: 0 0.65rem;
  height: 2.4rem;
  border-radius: 99px;
  color: var(--text-secondary);
}

.currency-select-dropdown {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 0;
  margin: 0;
}

.currency-select-dropdown option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Universal Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45), var(--shadow-glow);
}

.btn-secondary {
  background: rgba(var(--border-rgb), 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover:not(.disabled) {
  background: rgba(var(--border-rgb), 0.1);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 15px;
}

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

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
}

/* Global Grid Containers */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

/* ==========================================================================
   HOMEPAGE SPECIFIC VIEWS
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  padding: 6rem 2rem 5rem;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* Tech dot grid background overlay */
.hero-dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--hero-dot-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.hero-glow-1, .hero-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

.hero-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--hero-glow-color);
}

.hero-glow-2 {
  bottom: -200px;
  left: -200px;
  background: rgba(6, 182, 212, 0.08);
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 3;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--text-primary) 0%, rgba(var(--border-rgb), 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Interactive phone mock-up graphic */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-glow-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 2px dashed rgba(99, 102, 241, 0.15);
  animation: rotate-dashed 40s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow-ring::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.hero-mockup-wrapper {
  position: relative;
  width: 280px;
  height: 560px;
  background: #000;
  border-radius: 40px;
  border: 4px solid var(--border-color);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  overflow: hidden;
  animation: float-y 6s ease-in-out infinite alternate;
}

.hero-mockup-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #030712 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mockup-camera-island {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
}

.mockup-camera-island::after {
  content: '';
  width: 8px;
  height: 8px;
  background: radial-gradient(#0c4a6e 0%, #0284c7 100%);
  border-radius: 50%;
}

.mockup-screen-content {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.mockup-ui-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.mockup-ui-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  margin-top: 1rem;
}

.chart-bar {
  width: 18px;
  background: var(--primary-gradient);
  border-radius: 4px;
  animation: height-growth 1.5s ease-out forwards;
}

/* Brands section */
.section-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-primary);
}

.brand-carousel-wrapper {
  margin-bottom: 4rem;
  overflow: hidden;
  position: relative;
}

.brand-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: thin;
}

.brand-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.brand-chip-logo {
  font-size: 1.25rem;
}

.brand-chip-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.brand-chip:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
  background: var(--bg-tertiary);
}

/* Showcase Phone Cards Grid */
.phones-showcase-section {
  margin-bottom: 5rem;
}

.phones-showcase-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.showcase-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition-fast);
}

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

.showcase-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.phones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Phone Card Premium Graphic Layout */
.phone-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.phone-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(99, 102, 241, 0.1);
}

/* Glowing corner borders on hover */
.phone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

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

.phone-card-favorite-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(var(--card-bg-rgb), 0.7);
  border: 1px solid var(--border-color);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.phone-card-favorite-btn:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: #f43f5e;
}

.phone-card-favorite-btn.active {
  background: #f43f5e;
  border-color: #f43f5e;
  color: white;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
}

/* Graphic frame visual */
.phone-card-visual {
  height: 220px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--border-rgb), 0.02) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  overflow: hidden;
}

.phone-card-visual img,
.phone-img-asset {
  max-height: 185px;
  max-width: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-normal), opacity 0.3s ease;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));
  border-radius: 4px;
  opacity: 0;
  animation: fadeInImg 0.5s ease forwards;
}

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

.phone-card:hover .phone-card-visual img,
.phone-card:hover .phone-img-asset {
  transform: scale(1.07) rotate(-2deg);
}

/* Custom Dynamic SVG mockups overlay */
.phone-svg-mockup {
  width: 130px;
  height: 190px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.25));
}

.phone-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.phone-card-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 0.05em;
}

.phone-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.phone-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.phone-card-rating span.star {
  color: #f59e0b;
  font-size: 1.1rem;
}

.phone-card-specs-preview {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.spec-badge {
  background: rgba(var(--border-rgb), 0.04);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.phone-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.phone-card-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.launch-price-strike {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
}

.phone-card-actions {
  display: flex;
  gap: 0.5rem;
}

.phone-card-btn {
  background: rgba(var(--border-rgb), 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.phone-card-btn:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.phone-card-btn.active-compare {
  background: var(--secondary-gradient);
  color: white;
  border-color: transparent;
}

/* Compare Hub Section on Homepage */
.homepage-compare-cta {
  background: var(--primary-gradient);
  border-radius: 30px;
  padding: 4rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 5rem;
  box-shadow: var(--shadow-lg);
}

.homepage-compare-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.compare-cta-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 5;
}

.compare-cta-content h2 {
  font-size: 2.8rem;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.compare-cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.compare-cta-interactive {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.compare-cta-slots {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.compare-cta-slot {
  flex: 1;
  height: 120px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.compare-cta-slot:hover {
  border-color: white;
  background: rgba(0,0,0,0.3);
  color: white;
}

/* Buying Guides & News sections */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.editorial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.editorial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-md);
}

.editorial-banner {
  height: 200px;
  background: var(--bg-tertiary);
  overflow: hidden;
  position: relative;
}

.editorial-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.editorial-card:hover .editorial-banner img {
  transform: scale(1.05);
}

.editorial-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.editorial-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.editorial-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.editorial-title {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.editorial-title:hover {
  color: var(--primary-color);
}

.editorial-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   EXPLORE / SEARCH & BRAND FILTER VIEWS
   ========================================================================== */

.explore-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Left Filter Sidebar Panel */
.filter-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

.filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-sidebar-title {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reset-filters-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-group {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.25rem;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

/* Checkbox and range input styling */
.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
  accent-color: var(--primary-color);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.filter-range-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-range-slider {
  width: 100%;
  accent-color: var(--primary-color);
}

/* Right Explorer Grid view */
.explore-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.explore-results-count {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.explore-sorting-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.explore-sorting-widget label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.explore-select-dropdown {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
}

/* Empty search states */
.empty-results-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  background: var(--card-bg);
  border: 1px dashed var(--border-color);
  border-radius: 24px;
}

.empty-results-state span.icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.empty-results-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-results-state p {
  color: var(--text-secondary);
  max-width: 400px;
}

/* ==========================================================================
   PHONE DETAILS PAGE GRAPHIC LAYOUT
   ========================================================================== */

.detail-view-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Hero Detail Banner Layout */
.phone-detail-hero {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.phone-detail-hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.phone-detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  padding: 3rem;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.phone-detail-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  position: relative;
}

.phone-detail-hero-visual img {
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
  animation: fadeInImg 0.5s ease forwards, float-y 5s ease-in-out infinite alternate 0.5s;
}

.phone-detail-hero-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.phone-detail-brand-badge {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 0.08em;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  width: fit-content;
}

.phone-detail-name {
  font-size: 3rem;
  line-height: 1.1;
  color: var(--text-primary);
}

.phone-detail-quick-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.phone-detail-rating-pill {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-weight: 700;
}

.phone-detail-colors-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.color-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  cursor: pointer;
  position: relative;
}

.color-dot.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.phone-detail-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Key Stats Ribbon bar */
.phone-detail-key-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.key-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.key-stat-icon {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-stat-icon span {
  font-size: 1.8rem;
}

.key-stat-details {
  display: flex;
  flex-direction: column;
}

.key-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.key-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Dual Column Specs & Reviews Layout */
.phone-detail-main-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
}

/* Interactive specification tables */
.specs-matrix-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.specs-section-accordion {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.specs-section-accordion:focus-within, .specs-section-accordion:hover {
  border-color: rgba(99, 102, 241, 0.25);
}

.specs-accordion-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.specs-accordion-trigger span.arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.specs-section-accordion.active .specs-accordion-trigger span.arrow {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.specs-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  border-top: 1px solid transparent;
}

.specs-section-accordion.active .specs-accordion-content {
  max-height: 1000px;
  border-top-color: var(--border-color);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 1rem 1.5rem;
  font-size: 0.92rem;
}

.specs-table td.label-col {
  width: 28%;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(var(--border-rgb), 0.01);
}

.specs-table td.value-col {
  color: var(--text-primary);
}

/* Right Side Pros / Cons & Review widgets */
.detail-sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sentiment-widget {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros-cons-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pro-item, .con-item {
  display: flex;
  gap: 0.75rem;
  align-items: start;
}

.pro-item span.icon {
  color: #10b981;
  font-size: 1.3rem;
}

.con-item span.icon {
  color: #f43f5e;
  font-size: 1.3rem;
}

.pros-cons-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.pros-cons-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* User Review Block */
.reviews-widget {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-right: 0.25rem;
}

.review-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.review-user {
  font-weight: 700;
  font-size: 0.9rem;
}

.review-stars {
  display: flex;
  color: #f59e0b;
}

.review-stars span {
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.review-comment {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Review Submission Form */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.review-form-stars {
  display: flex;
  gap: 0.25rem;
  cursor: pointer;
  color: var(--text-muted);
}

.review-form-stars span {
  font-size: 1.5rem;
  transition: color var(--transition-fast);
}

.review-form-stars span.active, .review-form-stars span:hover {
  color: #f59e0b;
}

.review-form input, .review-form textarea {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.review-form textarea {
  resize: vertical;
  height: 80px;
}

/* ==========================================================================
   COMPARE PHONE DETAILS SCREEN
   ========================================================================== */

.compare-viewport {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.compare-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.25rem 2rem;
}

.compare-header-info {
  display: flex;
  flex-direction: column;
}

.compare-highlight-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.compare-highlight-toggle input {
  accent-color: var(--primary-color);
  width: 1.2rem;
  height: 1.2rem;
}

/* Side by side comparison table columns grid */
.compare-matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
}

.compare-matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.compare-matrix-table th, .compare-matrix-table td {
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border-color);
  vertical-align: middle;
}

.compare-matrix-table th:last-child, .compare-matrix-table td:last-child {
  border-right: none;
}

.compare-matrix-table th {
  background: rgba(var(--border-rgb), 0.02);
  border-bottom: 1px solid var(--border-color);
}

.compare-col-header-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.compare-col-remove-btn {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: rgba(244,63,94,0.1);
  color: #f43f5e;
  border: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.compare-col-remove-btn:hover {
  background: #f43f5e;
  color: white;
}

.compare-col-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-col-thumb img {
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.25));
}

.compare-col-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.compare-col-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.15rem;
}

/* Category header rows */
.compare-matrix-table tr.compare-category-row td {
  background: rgba(var(--border-rgb), 0.04);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: left;
  font-size: 1.05rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.compare-matrix-table tr.compare-data-row {
  border-bottom: 1px solid var(--border-light);
}

.compare-matrix-table tr.compare-data-row:last-child {
  border-bottom: none;
}

.compare-matrix-table tr.compare-data-row td.compare-row-label {
  font-weight: 700;
  text-align: left;
  color: var(--text-secondary);
  width: 20%;
  background: rgba(var(--border-rgb), 0.01);
}

/* Better specifications highlight styles */
.highlight-better-val {
  background: rgba(16, 185, 129, 0.07) !important;
  color: #10b981 !important;
  font-weight: 700;
  position: relative;
}

.highlight-better-val::after {
  content: 'BEST';
  position: absolute;
  top: 0.25rem;
  right: 0.5rem;
  font-size: 0.65rem;
  background: #10b981;
  color: white;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-weight: 800;
}

/* ==========================================================================
   COMPARE FLOATING STICKY DRAWER
   ========================================================================== */

.compare-floating-drawer {
  position: fixed;
  bottom: -120px;
  left: 0;
  right: 0;
  background: rgba(var(--card-bg-rgb), 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  z-index: 95;
  transition: bottom var(--transition-slow) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.compare-floating-drawer.active {
  bottom: 0;
}

.compare-drawer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.compare-drawer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.compare-drawer-info span.compare-icon {
  color: var(--primary-color);
  font-size: 2rem;
}

.compare-text {
  display: flex;
  flex-direction: column;
}

.compare-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.compare-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.compare-drawer-items {
  display: flex;
  gap: 1rem;
  flex-grow: 1;
  max-width: 700px;
}

.compare-drawer-item {
  flex: 1;
  height: 60px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  gap: 0.5rem;
  position: relative;
}

.compare-drawer-item img {
  height: 100%;
  object-fit: contain;
}

.compare-drawer-item-name {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.compare-drawer-item-remove {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  background: #f43f5e;
  color: white;
  border: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
}

.compare-drawer-empty-slot {
  flex: 1;
  height: 60px;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.compare-drawer-actions {
  display: flex;
  gap: 0.75rem;
}

/* ==========================================================================
   MOBILE MENU DRAWER DRAWER PANELS
   ========================================================================== */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--bg-secondary);
  z-index: 130;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  transition: right var(--transition-normal) cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  background: rgba(var(--border-rgb), 0.04);
  color: var(--primary-color);
}

.mobile-nav-link .badge {
  margin-left: auto;
}

/* ==========================================================================
   TOAST NOTIFICATION STYLING
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 5.5rem;
  right: 2rem;
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slide-in-toast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: auto;
}

.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error { border-left-color: #f43f5e; }

.toast-icon-success { color: #10b981; }
.toast-icon-error { color: #f43f5e; }

.toast-message {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */

.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 0;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 4rem;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.social-link {
  background: rgba(var(--border-rgb), 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

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

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-column-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.footer-newsletter-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.newsletter-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.newsletter-form {
  display: flex;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  padding: 0.25rem;
}

.newsletter-form input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.newsletter-form button {
  border-radius: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.1);
}

.footer-bottom-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */

@keyframes logo-pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

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

@keyframes float-y {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

@keyframes height-growth {
  0% { height: 0; }
}

@keyframes slide-up-suggestions {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-toast {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slide-out-toast {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(50px); }
}

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1200px) {
  .hero-title { font-size: 3.2rem; }
  .explore-layout { grid-template-columns: 260px 1fr; }
  .phone-detail-hero-grid { padding: 2rem; gap: 2rem; }
  .phone-detail-name { font-size: 2.5rem; }
}

@media (max-width: 992px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-content { align-items: center; }
  .hero-desc { margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  
  .explore-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; max-height: none; }
  
  .phone-detail-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .phone-detail-hero-info { align-items: center; }
  .phone-detail-hero-visual { height: 320px; }
  .phone-detail-key-stats { grid-template-columns: repeat(2, 1fr); }
  .phone-detail-main-layout { grid-template-columns: 1fr; }
  
  .compare-cta-container { grid-template-columns: 1fr; }
  
  .footer-container { grid-template-columns: 1fr; gap: 3rem; }
  .footer-links-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .search-container { width: 100%; position: absolute; top: 4.5rem; left: 0; background: var(--bg-secondary); padding: 0.5rem 1rem; box-shadow: var(--shadow-sm); display: none; }
  .search-container.active { display: block; }
  
  .section-title-area { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .showcase-tab { font-size: 0.95rem; padding: 0.5rem 0.5rem; }
  
  .compare-control-bar { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .compare-drawer-container { flex-direction: column; gap: 1rem; }
  .compare-drawer-items { width: 100%; }
  
  .footer-links-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom-container { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.5rem; }
  .phone-detail-name { font-size: 2rem; }
  .phone-detail-key-stats { grid-template-columns: 1fr; }
  .compare-cta-slots { flex-direction: column; }
  .compare-cta-slot { height: 80px; }
}

/* Load More Button Styles */
.explore-load-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 3rem 0 1.5rem 0;
  grid-column: 1 / -1; /* spans full width of results grid wrapper if in a grid */
}

.load-more-btn {
  background: var(--primary-gradient);
  color: white;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all var(--transition-fast) ease-in-out;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45), var(--shadow-glow);
}

.load-more-btn:active {
  transform: translateY(0);
}


/* ===== Community Discussion Section ===== */
.discussion-tag-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.discussion-tag-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.discussion-tag-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
}
.community-comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
.community-comment:last-child {
  border-bottom: none;
}
.community-comment:hover {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}
.discussion-like-btn:hover,
.discussion-reply-btn:hover {
  color: var(--primary-color) !important;
}

/* ==========================================================================
   ADMIN PORTAL & COMPLIANCE PAGES STYLES
   ========================================================================== */

.admin-login-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}
.login-icon {
  font-size: 3.5rem !important;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}
.form-group-admin {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group-admin label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group-admin input,
.form-group-admin select,
.form-group-admin textarea {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}
.form-group-admin input:focus,
.form-group-admin select:focus,
.form-group-admin textarea:focus {
  border-color: var(--primary-color);
}
.admin-dashboard-layout {
  padding: 3rem 0;
}
.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}
.admin-grid-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
}
.admin-form-panel,
.admin-output-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
}
.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.admin-code-output {
  width: 100%;
  height: 380px;
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #c9d1d9;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  padding: 1rem;
  resize: none;
  line-height: 1.5;
}
.admin-custom-list-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 250px;
  overflow-y: auto;
}
.custom-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(var(--border-rgb), 0.02);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.5rem 1rem;
}
.custom-list-thumb {
  width: 32px;
  height: 48px;
  display: flex;
  align-items: center;
}
.custom-list-thumb svg,
.custom-list-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.custom-list-details {
  display: flex;
  flex-direction: column;
}
.custom-list-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.custom-list-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.no-customs {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: 10px;
}

/* Compliance Documents Layout */
.compliance-document {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
}
.doc-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}
.doc-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.doc-title {
  font-size: 2.5rem;
  margin-top: 0.25rem;
}
.doc-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}
.doc-section {
  margin-bottom: 2rem;
}
.doc-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.doc-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.doc-section ul {
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.doc-section li {
  margin-bottom: 0.5rem;
}
.doc-section a {
  color: var(--primary-color);
  text-decoration: underline;
}
.doc-section a:hover {
  color: var(--primary-hover);
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info-panel h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* AdSense Placeholder Units */
.adsense-slot-wrapper {
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 100%);
  border: 1px dashed var(--primary-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.adsense-slot-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
}
.adsense-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.adsense-slot-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.adsense-slot-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive Queries for new layouts */
@media (max-width: 992px) {
  .admin-grid-columns,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 576px) {
  .admin-form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .admin-form-panel,
  .admin-output-panel,
  .compliance-document {
    padding: 1.5rem;
  }
}

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

/* Ad Slots and Sponsorship Layouts */
.ad-slot {
  background: rgba(var(--border-rgb), 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  position: relative;
  overflow: hidden;
  margin: 1.5rem 0;
  width: 100%;
}

.ad-label {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.ad-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.4rem 0;
}

.ad-content-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}

.ad-icon {
  font-size: 2rem;
  color: var(--accent-color);
  background: rgba(var(--border-rgb), 0.05);
  padding: 0.5rem;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-content div p, .ad-content-vertical p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.ad-content div strong, .ad-content-vertical strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.ad-leaderboard-slot {
  max-width: 728px;
  margin: 2rem auto;
}

.ad-sidebar-slot {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

