/* ===================================================
   DealDial – Premium Glassmorphism CSS
   Warm pink-orange-purple gradient aesthetic
   =================================================== */

/* --- Google Fonts & CSS Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --grad-1: #ff6b9d;
  --grad-2: #ff8c42;
  --grad-3: #c26ef7;
  --grad-4: #f7a5d3;
  --bg-dark: #0e0414;
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(255, 255, 255, 0.14);
  --border-glass: rgba(255, 255, 255, 0.2);
  --border-glass-strong: rgba(255, 255, 255, 0.35);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.45);
  --amazon-color: #ff9900;
  --flipkart-color: #2874f0;
  --shadow-glow: 0 8px 32px rgba(255, 107, 157, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --radius-card: 20px;
  --radius-sm: 12px;
  --radius-pill: 50px;
  --font: 'Outfit', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

/* --- Background Animated Orbs --- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ff6b9d 0%, #ff8c42 100%);
  top: -150px; left: -150px;
  animation-duration: 20s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #c26ef7 0%, #7b5ea7 100%);
  top: 20%; right: -100px;
  animation-duration: 25s; animation-delay: -5s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #ff8c42 0%, #ffd166 100%);
  bottom: 30%; left: 10%;
  animation-duration: 22s; animation-delay: -10s;
}
.orb-4 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #f7a5d3 0%, #c26ef7 100%);
  bottom: -80px; right: 20%;
  animation-duration: 28s; animation-delay: -3s;
}
.orb-5 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #06b6d4 0%, #3b82f6 100%);
  top: 60%; left: 50%;
  animation-duration: 30s; animation-delay: -15s;
  opacity: 0.3;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.03); }
}

/* --- Glassmorphism Utility --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.1);
}

.glass-nav {
  background: rgba(14, 4, 20, 0.7);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--border-glass);
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon { font-size: 1.6rem; }

.brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-accent {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-link:hover { color: #fff; }

.sale-badges { display: flex; gap: 8px; }

.sale-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sale-badge.bbd {
  background: linear-gradient(135deg, #ff6b9d, #ff8c42);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255, 107, 157, 0.4);
}
.sale-badge.gif {
  background: linear-gradient(135deg, #ff9900, #ff6b00);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255, 153, 0, 0.4);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 5% 60px;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 860px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 107, 157, 0.15);
  border: 1px solid rgba(255, 107, 157, 0.4);
  color: var(--grad-1);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 157, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Search Container --- */
.search-container {
  padding: 28px;
  margin-bottom: 40px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.search-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3));
}

.search-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.search-prompt-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slm-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c4b5fd;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
}

.slm-toggle-btn {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #c4b5fd;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.slm-toggle-btn:hover {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
  border-color: rgba(139, 92, 246, 0.8);
}
.slm-toggle-btn.pure {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.35));
  border-color: #a855f7;
  color: #f3e8ff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.slm-indicator-badge.ready {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.slm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
}

.slm-dot.ready {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.slm-dot.pulse {
  animation: slm-pulse 1.6s infinite ease-in-out;
}

@keyframes slm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.neural-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #e9d5ff;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 8px;
}

/* --- Enhanced Inline Search Capsule --- */
.search-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 6px 6px 6px 18px;
  gap: 10px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
}

.search-input-wrap:focus-within {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 107, 157, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.22), 0 12px 36px rgba(255, 107, 157, 0.16);
}

.search-input-icon {
  font-size: 1.15rem;
  opacity: 0.75;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: none;
}

.nlp-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 10px 4px;
  line-height: 1.4;
}

.nlp-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.search-clear-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  padding: 0;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: scale(1.1);
}

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 4px 18px rgba(255, 107, 157, 0.4);
}

.search-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 24px rgba(255, 107, 157, 0.55);
}

.search-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.search-btn-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.search-btn-text {
  letter-spacing: 0.3px;
}

/* --- Quick Filter Chips --- */
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-chip-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover {
  background: linear-gradient(135deg, rgba(255,107,157,0.2), rgba(255,140,66,0.2));
  border-color: rgba(255,107,157,0.5);
  color: #fff;
  transform: translateY(-1px);
}
.chip.active {
  background: linear-gradient(135deg, rgba(255,107,157,0.4), rgba(255,140,66,0.4));
  border-color: #ff6b9d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(255, 107, 157, 0.4), inset 0 0 10px rgba(255, 107, 157, 0.2);
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-card {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* ===================================================
   SEARCH RESULTS BANNER
   =================================================== */
.search-banner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto 20px;
  padding: 0 5%;
}

.banner-content {
  background: linear-gradient(135deg, rgba(255,107,157,0.15), rgba(194,110,247,0.15));
  border: 1px solid rgba(255,107,157,0.3);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(10px);
}

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

.clear-btn {
  background: rgba(255, 107, 157, 0.15);
  border: 1px solid rgba(255, 107, 157, 0.4);
  color: var(--grad-1);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.clear-btn:hover {
  background: rgba(255, 107, 157, 0.3);
  transform: translateY(-1px);
}

/* ===================================================
   FILTER BAR
   =================================================== */
.filter-bar {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto 40px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.filter-select {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 10px 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: border-color var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--grad-1); }
.filter-select option { background: #1a0825; color: #fff; }

.reset-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-end;
}
.reset-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ===================================================
   DEALS SECTION
   =================================================== */
#deals {
  position: relative;
  z-index: 2;
  padding: 0 5% 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 40px; }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.deal-count-badge {
  background: linear-gradient(135deg, rgba(255,107,157,0.2), rgba(194,110,247,0.2));
  border: 1px solid rgba(255,107,157,0.3);
  color: var(--grad-1);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

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

/* --- Deals Grid --- */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

/* --- Loading State --- */
.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px;
  color: var(--text-muted);
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--grad-1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================================
   PHONE DEAL CARD
   =================================================== */
.deal-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.09) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
.deal-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.14) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 107, 157, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Card top gradient stripe */
.deal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.deal-card.platform-amazon::before {
  background: linear-gradient(90deg, #ff9900, #ffd166);
}
.deal-card.platform-flipkart::before {
  background: linear-gradient(90deg, #2874f0, #c26ef7);
}

/* --- Card Header --- */
.card-header {
  padding: 18px 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 110px);
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-primary {
  background: rgba(255, 107, 157, 0.15);
  border: 1px solid rgba(255, 107, 157, 0.35);
  color: #ff9ec1;
}
.badge-platform-amazon {
  background: rgba(255, 153, 0, 0.18);
  border: 1px solid rgba(255, 153, 0, 0.4);
  color: #ffb84d;
}
.badge-platform-flipkart {
  background: rgba(40, 116, 240, 0.18);
  border: 1px solid rgba(40, 116, 240, 0.4);
  color: #70aaff;
}

.discount-pill {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

/* --- Card Image --- */
.card-img-wrap {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 185px;
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  margin: 14px 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card-img-wrap::after {
  display: none;
}

.phone-img {
  max-height: 155px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(104%) brightness(102%) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition), filter var(--transition);
}
.deal-card:hover .phone-img {
  transform: scale(1.06) translateY(-4px);
  filter: contrast(104%) brightness(102%) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.2));
}

.img-placeholder {
  font-size: 4rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
}

/* --- Card Body --- */
.card-body { padding: 0 18px 18px; flex: 1; display: flex; flex-direction: column; }

.phone-brand {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--grad-1);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.phone-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* --- Score Bar --- */
.score-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.score-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.score-pill.highlight {
  background: rgba(225, 29, 72, 0.22);
  border-color: rgba(225, 29, 72, 0.45);
  color: #fda4af;
  font-weight: 700;
}

/* --- Key Specs --- */
.key-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}
.spec-icon { font-size: 0.85rem; width: 16px; flex-shrink: 0; }
.spec-val { font-weight: 700; color: #ffffff; }

/* --- Pricing --- */
.pricing-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.sale-price-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.sale-price-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sale-price {
  font-size: 1.55rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b9d, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.original-price {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
}

.savings-text {
  font-size: 0.76rem;
  color: #4ade80;
  font-weight: 700;
  margin-bottom: 8px;
}

/* --- Price History Tags --- */
.price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.price-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.launch-tag {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.prev-sale-tag {
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #a5b4fc;
}

.axis-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-weight: 700;
}

.emi-tag {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}

.bank-offer-pill {
  font-size: 0.88rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.emi-offer-pill {
  font-size: 0.88rem;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.modal-price-tags .price-tag {
  font-size: 0.78rem;
  padding: 5px 12px;
}

/* --- Rating --- */
.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 1px; }
.rating-num { font-size: 0.85rem; font-weight: 700; color: #ffffff; }
.review-count { font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }

/* --- Card Actions --- */
.card-actions { display: flex; gap: 8px; margin-top: auto; }

.btn-buy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-amazon {
  background: linear-gradient(135deg, #ff9900, #ff6b00);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 153, 0, 0.3);
}
.btn-amazon:hover {
  box-shadow: 0 6px 24px rgba(255, 153, 0, 0.5);
  transform: translateY(-1px);
}

.btn-flipkart {
  background: linear-gradient(135deg, #2874f0, #6c63ff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(40, 116, 240, 0.3);
}
.btn-flipkart:hover {
  box-shadow: 0 6px 24px rgba(40, 116, 240, 0.5);
  transform: translateY(-1px);
}

.btn-wishlist {
  flex: 1;
  background: rgba(139,92,246,0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,0.4);
  box-shadow: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.btn-wishlist:hover {
  background: rgba(139,92,246,0.3);
  box-shadow: 0 4px 15px rgba(139,92,246,0.3);
  transform: translateY(-1px);
}

/* --- Upcoming / Coming Soon overlay --- */
.card-img-wrap { position: relative; overflow: hidden; }
.upcoming-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 25, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}
.upcoming-label {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(124,58,237,0.6);
}

.btn-details {
  background: rgba(20, 6, 35, 0.05);
  border: 1px solid rgba(20, 6, 35, 0.12);
  color: #3b2354;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-details:hover {
  background: rgba(20, 6, 35, 0.1);
  color: #150624;
  border-color: rgba(20, 6, 35, 0.28);
}

/* --- Match Badge --- */
.match-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, rgba(194,110,247,0.35), rgba(255,107,157,0.35));
  border: 1px solid rgba(194,110,247,0.55);
  color: #e9c5ff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(194, 110, 247, 0.25);
  backdrop-filter: blur(8px);
}

/* ===================================================
   NO RESULTS
   =================================================== */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}
.no-results-icon { font-size: 4rem; margin-bottom: 16px; }
.no-results h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.no-results p { color: var(--text-muted); margin-bottom: 24px; }

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about-section {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 48px;
  text-align: center;
}

.about-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }

.about-section > .about-content > p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.feature-icon { font-size: 1rem; }

.disclaimer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-glass);
  padding: 40px 5% 24px;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; max-width: 280px; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--grad-1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  text-align: center;
  max-width: 1300px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }

/* ===================================================
   MODAL
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-glass-strong);
}

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

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

.modal-content { padding: 32px; }

.modal-header { display: flex; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }

.modal-img-wrap {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.modal-img-wrap img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(104%) brightness(102%) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.modal-info { flex: 1; min-width: 200px; }
.modal-brand { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.modal-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; line-height: 1.25; }
.modal-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }

.modal-pricing { margin-bottom: 24px; }
.modal-sale-price { font-size: 2rem; font-weight: 900; }
.modal-original-price { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 10px; }
.modal-savings { color: #4ade80; font-size: 0.85rem; font-weight: 600; margin-top: 4px; }

/* Modal Score Grid */
.modal-scores-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }

.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }

.score-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.score-icon { font-size: 1.3rem; margin-bottom: 4px; }
.score-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.score-bar-wrap { background: rgba(255,255,255,0.08); border-radius: 4px; height: 6px; margin-bottom: 4px; overflow: hidden; }
.score-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--grad-1), var(--grad-2)); transition: width 0.6s ease; }
.score-val { font-size: 1rem; font-weight: 800; color: #fff; }

/* Modal Full Specs */
.modal-specs-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }

.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.specs-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 10px 4px; font-size: 0.88rem; }
.specs-table td:first-child { color: var(--text-muted); font-weight: 600; width: 40%; }
.specs-table td:last-child { color: var(--text-primary); font-weight: 500; }

.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-actions .btn-buy { padding: 14px 24px; font-size: 0.95rem; }
.modal-actions .btn-buy.btn-amazon { flex: 1; min-width: 200px; }
.modal-actions .btn-buy.btn-flipkart { flex: 1; min-width: 200px; }

/* ===================================================
   HIDDEN UTILITY
   =================================================== */
.hidden { display: none !important; }

/* ===================================================
   SCROLLBAR
   =================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--grad-1), var(--grad-3));
  border-radius: 3px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-stats { gap: 10px; }
  .stat-card { padding: 12px 18px; }
  .filter-bar { padding: 16px; }
  .filter-group { min-width: 120px; }
  .about-section { padding: 32px 24px; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-header { flex-direction: column; }
  .modal-img-wrap { width: 100%; }
  .modal-img-wrap img { max-height: 180px; }
}

@media (max-width: 600px) {
  .deals-grid { grid-template-columns: 1fr; }
  .hero { padding: 75px 12px 35px; width: 100%; }
  .hero-tag { font-size: 0.76rem; padding: 6px 12px; white-space: normal; line-height: 1.35; margin-bottom: 16px; }
  .hero-title { font-size: clamp(1.75rem, 6.5vw, 2.3rem); word-break: break-word; line-height: 1.15; margin-bottom: 14px; }
  .hero-subtitle { font-size: 0.92rem; line-height: 1.5; margin-bottom: 24px; }
  .about-section { margin-left: 4%; margin-right: 4%; }
  #deals { padding: 0 4% 60px; }
  .filter-bar { flex-direction: column; }
  .filter-group { width: 100%; }
  .section-title { font-size: 1.5rem; flex-wrap: wrap; }
  .modal-content { padding: 20px; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }

  /* Inline Search Phone Optimization */
  .search-container {
    padding: 18px 14px;
    border-radius: var(--radius-card);
    margin-bottom: 24px;
  }
  .search-prompt-label {
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
  }
  .search-input-wrap {
    padding: 4px 4px 4px 12px;
    gap: 6px;
    margin-bottom: 14px;
  }
  .search-input-icon {
    font-size: 1rem;
  }
  .nlp-input {
    font-size: 0.88rem;
    padding: 8px 4px;
  }
  .search-btn {
    padding: 10px 16px;
    font-size: 0.86rem;
    gap: 5px;
  }
  .search-btn-icon {
    font-size: 0.95rem;
  }
  .search-clear-btn {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
}

@media (max-width: 440px) {
  .search-container {
    padding: 14px 10px;
  }
  .search-input-wrap {
    padding: 3px 3px 3px 10px;
    gap: 4px;
  }
  .search-input-icon {
    font-size: 0.9rem;
  }
  .nlp-input {
    font-size: 0.82rem;
    padding: 7px 2px;
  }
  .nlp-input::placeholder {
    font-size: 0.8rem;
  }
  .search-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    gap: 4px;
  }
  .search-btn-icon {
    font-size: 0.9rem;
  }
  .search-clear-btn {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }
}

/* ===================================================
   FLOATING COMPARISON DRAWER & TOAST
   =================================================== */
.deal-toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: rgba(20, 6, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass-strong);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 157, 0.3);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.deal-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.deal-toast.warning {
  border-color: #f59e0b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Floating Compare FAB (Bottom-Right) */
.floating-compare-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.95), rgba(255, 140, 66, 0.95));
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 107, 157, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}

.floating-compare-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 35px rgba(255, 107, 157, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.floating-compare-fab .fab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.floating-compare-fab .fab-label {
  letter-spacing: 0.4px;
}

.floating-compare-fab .fab-badge {
  background: #ffffff;
  color: #e11d48;
  font-size: 0.75rem;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  margin-left: 2px;
}

@media (max-width: 600px) {
  .floating-compare-fab {
    bottom: 20px;
    right: 18px;
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}

.compare-drawer {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 900px);
  background: rgba(18, 6, 28, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass-strong);
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 107, 157, 0.25);
  z-index: 1000;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.compare-drawer.active {
  bottom: 24px;
}
.drawer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.drawer-header-mobile {
  display: none;
}
.drawer-items-list {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 6px 10px;
  min-width: 140px;
  max-width: 170px;
  position: relative;
  flex-shrink: 0;
}
.drawer-img {
  width: 32px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
}
.drawer-placeholder {
  width: 32px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.drawer-phone-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.2;
}
.drawer-phone-name {
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.drawer-phone-price {
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 700;
}
.drawer-remove-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
  flex-shrink: 0;
}
.drawer-remove-btn:hover {
  background: #ef4444;
}
.drawer-empty-slot {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 48px;
  flex-shrink: 0;
}
.drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-clear-compare {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-clear-compare:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn-compare-now {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-compare-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

/* Nav Actions & Links */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.nav-back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}
.nav-back-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glass-strong);
}
.nav-compare-btn {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(194, 110, 247, 0.25));
  border: 1px solid var(--border-glass-strong);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.nav-compare-btn:hover {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  box-shadow: 0 4px 16px rgba(194, 110, 247, 0.4);
}
.compare-nav-count {
  background: #fff;
  color: var(--bg-dark);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
}

/* Card Compare Toggle Button */
.btn-card-compare {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.btn-card-compare:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: var(--border-glass-strong);
}
.btn-card-compare.in-compare {
  background: rgba(74, 222, 128, 0.18);
  border-color: #4ade80;
  color: #4ade80;
}

.deal-card {
  cursor: pointer;
}
.deal-card .btn-buy,
.deal-card .btn-card-compare,
.deal-card .btn-details {
  cursor: pointer;
}

.deal-card .btn-card-compare {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}
.deal-card .btn-card-compare:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}
.deal-card .btn-card-compare.in-compare {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
}
.deal-card .btn-details {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}
.deal-card .btn-details:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}
.deal-card .btn-wishlist {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
  font-weight: 700;
}
.deal-card .btn-wishlist:hover {
  background: rgba(124, 58, 237, 0.35);
  color: #ffffff;
}

/* ===================================================
   PHONE DETAIL PAGE (phone.html)
   =================================================== */
.detail-page-body {
  padding-bottom: 90px;
}
.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 40px;
  position: relative;
  z-index: 1;
}
.detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-secondary);
  gap: 16px;
}
.detail-not-found {
  text-align: center;
  padding: 60px 30px;
  max-width: 500px;
  margin: 60px auto;
}
.not-found-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

/* Hero Section */
.detail-hero {
  padding: 36px;
  margin-bottom: 40px;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}
.detail-hero-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-img-wrapper {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.detail-main-img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(104%) brightness(102%) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.detail-main-img:hover {
  transform: scale(1.04);
  filter: contrast(104%) brightness(102%) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22));
}
.detail-img-fallback {
  font-size: 6rem;
}
.detail-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-hero-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-brand-tag {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--grad-1);
}
.detail-id-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}
.detail-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}
.detail-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}
.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

/* Price Box */
.detail-price-box {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-strong);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-price-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.price-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.price-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.detail-price-box .sale-price {
  font-size: 2.5rem;
  font-weight: 900;
}
.detail-price-box .original-price {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.detail-savings-highlight {
  font-size: 0.92rem;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.detail-price-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.history-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  flex: 1;
  min-width: 180px;
}
.history-tag.launch-tag {
  border-left: 3px solid #38bdf8;
}
.history-tag.prev-tag {
  border-left: 3px solid #f59e0b;
}
.tag-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-val {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}
.tag-diff {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 600;
}
.tag-diff.match {
  color: var(--text-muted);
}

/* Detail Actions */
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.btn-large {
  padding: 16px 30px;
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
}
.btn-compare-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass-strong);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.btn-compare-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}
.btn-compare-pill.in-compare {
  background: rgba(74, 222, 128, 0.2);
  border-color: #4ade80;
  color: #4ade80;
}
.btn-share {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-share:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Section Headings */
.detail-section-heading {
  margin: 50px 0 24px;
}
.detail-section-heading h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.detail-section-heading p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Separate Spec Cards Grid */
.spec-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.spec-card {
  padding: 28px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition);
}
.spec-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glass-strong);
}
.spec-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.spec-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.performance-icon { background: rgba(255, 140, 66, 0.2); border: 1px solid rgba(255, 140, 66, 0.4); }
.memory-icon { background: rgba(194, 110, 247, 0.2); border: 1px solid rgba(194, 110, 247, 0.4); }
.camera-icon { background: rgba(255, 107, 157, 0.2); border: 1px solid rgba(255, 107, 157, 0.4); }
.display-icon { background: rgba(56, 189, 248, 0.2); border: 1px solid rgba(56, 189, 248, 0.4); }
.battery-icon { background: rgba(74, 222, 128, 0.2); border: 1px solid rgba(74, 222, 128, 0.4); }
.build-icon { background: rgba(168, 85, 247, 0.2); border: 1px solid rgba(168, 85, 247, 0.4); }

.spec-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.spec-card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.spec-card-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.spec-row:last-of-type {
  border-bottom: none;
}
.spec-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 130px;
}
.spec-value {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}
.spec-value-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.code-pill {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
  color: #f7a5d3;
}
.code-pill.pill-fastest {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}
.spec-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-ultra {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.badge-fast {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-standard {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}
.badge-entry {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.spec-score-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}
.score-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}
.mini-bar-wrap {
  width: 90px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.mini-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
}
.gaming-bar { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.camera-bar { background: linear-gradient(90deg, #ec4899, #f43f5e); }
.display-bar { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.battery-bar { background: linear-gradient(90deg, #10b981, #84cc16); }

.spec-callout {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--grad-1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Detail Scores Radar Section */
.detail-scores-section {
  padding: 30px;
  border-radius: var(--radius-card);
  margin-bottom: 40px;
}
.scores-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.scores-title {
  font-size: 1.3rem;
  font-weight: 800;
}
.overall-badge {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}
.detail-scores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.detail-score-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-score-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.score-item-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.score-item-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.detail-score-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}
.detail-score-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s ease;
}
.fill-camera { background: linear-gradient(90deg, #ff6b9d, #f43f5e); }
.fill-performance { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.fill-display { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.fill-gaming { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.fill-battery { background: linear-gradient(90deg, #10b981, #84cc16); }
.fill-overall { background: linear-gradient(90deg, var(--grad-1), var(--grad-2)); }

/* Similar Deals Section */
.similar-deals-section {
  margin-top: 50px;
}
.similar-heading {
  margin-bottom: 20px;
}
.similar-heading h3 {
  font-size: 1.4rem;
  font-weight: 800;
}
.similar-heading p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.similar-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.91) 60%, rgba(248, 245, 253, 0.93) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 18px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.similar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}
.similar-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 6px;
  mix-blend-mode: multiply;
  filter: contrast(104%) brightness(102%) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}
.similar-brand {
  font-size: 0.72rem;
  font-weight: 800;
  color: #78648c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.similar-name {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.3;
  color: #150624;
}
.similar-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0;
}
.similar-sale-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.similar-orig-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.similar-discount {
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 700;
}
.similar-specs-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}
.similar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.btn-similar-view {
  font-size: 0.8rem;
  color: var(--grad-1);
  text-decoration: none;
  font-weight: 700;
}

/* ===================================================
   COMPARE PAGE (compare.html)
   =================================================== */
.compare-page-body {
  padding-bottom: 90px;
}
.compare-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 24px 40px;
  position: relative;
  z-index: 1;
}
.compare-header {
  padding: 32px;
  border-radius: var(--radius-card);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.compare-header-text {
  max-width: 700px;
}
.compare-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 6px 0 10px;
}
.compare-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.compare-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-clear-large {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 600;
}
.btn-clear-large:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}
.btn-add-phone-main {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}
.btn-add-phone-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

.compare-empty {
  text-align: center;
  padding: 70px 30px;
  max-width: 550px;
  margin: 40px auto;
  border-radius: var(--radius-card);
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}
.empty-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn-suggest-compare {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-strong);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-suggest-compare:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

/* Compare Table Container & Sticky Columns */
.compare-table-wrapper {
  background: rgba(18, 6, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  overflow-x: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  table-layout: fixed;
}

/* Columns */
.col-spec-label {
  width: 240px;
  min-width: 240px;
  padding: 16px 20px;
  text-align: left;
  background: rgba(14, 4, 20, 0.95);
  position: sticky;
  left: 0;
  z-index: 5;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.spec-head-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.spec-head-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.col-phone-card {
  padding: 24px 18px;
  text-align: center;
  vertical-align: top;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.91) 60%, rgba(248, 245, 253, 0.94) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  min-width: 210px;
}
.col-add-slot {
  width: 180px;
  min-width: 180px;
  padding: 24px 16px;
  text-align: center;
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.015);
}
.add-slot-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-glass-strong);
  border-radius: 14px;
  color: var(--text-secondary);
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.add-slot-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--grad-1);
}
.add-slot-icon {
  font-size: 2rem;
  color: var(--grad-1);
}
.slot-rem {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-remove-phone {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.btn-remove-phone:hover {
  background: #ef4444;
  color: #fff;
}
.phone-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.compare-phone-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  margin-bottom: 6px;
  mix-blend-mode: multiply;
  filter: contrast(104%) brightness(102%) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s ease;
}
.phone-card-link:hover .compare-phone-img {
  transform: scale(1.06);
}
.compare-phone-brand {
  font-size: 0.7rem;
  font-weight: 800;
  color: #78648c;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.compare-phone-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: #150624;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compare-price-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 6px 0;
  flex-wrap: wrap;
}
.compare-sale-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #e11d48;
}
.compare-orig-price {
  font-size: 0.8rem;
  color: #8c7b9e;
  text-decoration: line-through;
}
.btn-remove-phone {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(20, 6, 35, 0.08);
  border: none;
  color: #554168;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.compare-badges-row {
  margin: 6px 0 10px;
}
.compare-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.btn-compact {
  padding: 8px 14px;
  font-size: 0.82rem;
}
.btn-details-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.btn-details-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Section Dividers */
.section-divider-row td {
  background: linear-gradient(90deg, rgba(255, 107, 157, 0.15), rgba(194, 110, 247, 0.15));
  border-top: 1px solid var(--border-glass-strong);
  border-bottom: 1px solid var(--border-glass-strong);
  padding: 12px 20px;
}
.section-divider-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.divider-icon {
  font-size: 1.2rem;
}

/* Table Body Rows */
.compare-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.compare-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.col-val {
  padding: 14px 18px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: var(--text-secondary);
  vertical-align: middle;
}
.val-bold {
  font-weight: 700;
  color: #fff;
}
.chip-text {
  color: #f7a5d3;
}
.sub-val {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.text-green {
  color: #4ade80;
}
.winner-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin: 6px auto 0;
  width: fit-content;
}
.highlight-winner {
  color: #4ade80;
  font-weight: 900;
  font-size: 1.05rem;
}
.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.score-val-large {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

/* Verdict Cell */
.verdict-cell {
  text-align: left;
  line-height: 1.45;
}
.point-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 140, 66, 0.15);
  color: var(--grad-2);
  border: 1px solid rgba(255, 140, 66, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.crisp-verdict-text {
  font-size: 0.84rem;
  color: var(--text-primary);
}

/* Add Phone Modal */
.add-phone-modal-card {
  max-width: 650px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 30px;
}
.add-modal-header {
  margin-bottom: 18px;
}
.add-modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.add-modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.add-phone-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
}
.add-phone-search:focus {
  border-color: var(--grad-1);
  box-shadow: 0 0 15px rgba(255, 107, 157, 0.3);
}
.add-phone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 480px;
  padding-right: 6px;
}
.add-phone-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform var(--transition);
}
.add-phone-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glass-strong);
}
.add-item-img {
  width: 44px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.add-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.add-item-brand {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
}
.add-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.add-item-specs {
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.add-item-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.add-item-price {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.add-item-orig {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.btn-select-add {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* Responsive adjustments for Detail & Compare */
@media (max-width: 900px) {
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }
  .spec-cards-grid {
    grid-template-columns: 1fr;
  }
  .detail-scores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare-drawer {
    width: 95%;
    padding: 12px 14px;
  }
  .drawer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .drawer-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .drawer-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
  }
  .drawer-close-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
  }
  .drawer-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .detail-main {
    padding: 85px 16px 40px;
  }
  .detail-hero {
    padding: 20px;
  }
  .spec-card {
    padding: 20px;
  }
  .detail-scores-grid {
    grid-template-columns: 1fr;
  }
  .compare-main {
    padding: 85px 16px 40px;
  }
  .compare-header {
    padding: 20px;
  }
}

/* ===================================================
   MAIN VIEW TABS SWITCHER (Deals vs Performance)
   =================================================== */
.main-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 28px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.main-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.main-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.main-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25) 0%, rgba(194, 110, 247, 0.25) 100%);
  border: 1px solid rgba(255, 107, 157, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

.tab-btn-icon {
  font-size: 1.15rem;
}

.tab-btn-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tab-btn-pill.hot {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8c42 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

/* ===================================================
   PERFORMANCE VIEW CONTAINER
   =================================================== */
.performance-view-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px 60px;
  animation: fadeIn 0.35s ease-out forwards;
}

.performance-view-container.hidden {
  display: none !important;
}

/* Perf Header */
.perf-header {
  padding: 32px 36px;
  margin-bottom: 24px;
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

.perf-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.perf-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}

.perf-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 820px;
  margin-bottom: 24px;
}

/* Quick Highlight Stats */
.perf-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.perf-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.perf-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glass-strong);
}

.perf-stat-card .stat-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.perf-stat-card .stat-info {
  display: flex;
  flex-direction: column;
}

.perf-stat-card .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 3px;
}

.perf-stat-card .stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* Controls Bar */
.perf-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.perf-search-box {
  position: relative;
  flex: 1 1 280px;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.perf-search-box .search-icon {
  position: absolute;
  left: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}

.perf-search-box input {
  width: 100%;
  padding: 11px 36px 11px 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.perf-search-box input:focus {
  border-color: var(--grad-1);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 16px rgba(255, 107, 157, 0.25);
}

.perf-clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.perf-tier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.perf-chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.perf-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.perf-chip.active {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.3) 0%, rgba(194, 110, 247, 0.3) 100%);
  border-color: var(--grad-1);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 107, 157, 0.25);
}

.perf-sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.perf-sort-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.perf-sort-select {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.perf-sort-select option {
  background: #1a0826;
  color: #fff;
}

/* ===================================================
   BENCHMARK TABLE
   =================================================== */
.perf-table-wrapper {
  padding: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.perf-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.perf-table th {
  padding: 18px 20px;
  background: rgba(20, 6, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.perf-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.perf-table th.sortable:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.perf-table th.active-sort {
  color: var(--grad-1);
}

.perf-table th .sort-indicator {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.75rem;
  color: var(--grad-1);
}

.perf-table th .sub-th {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: none;
  font-weight: 400;
}

.perf-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease;
}

.perf-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.perf-table td {
  padding: 16px 20px;
  vertical-align: middle;
}

/* Rank column */
.td-rank {
  width: 70px;
  text-align: center;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: var(--radius-pill);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffae00);
  color: #1a0826;
  font-size: 0.85rem;
  padding: 4px 10px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #e0e0e0, #a0a0a0);
  color: #1a0826;
  font-size: 0.85rem;
  padding: 4px 10px;
  box-shadow: 0 0 10px rgba(220, 220, 220, 0.3);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #a05a18);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 10px;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.rank-badge.rank-num {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Processor Info Cell */
.proc-info-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proc-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.maker-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.maker-qualcomm {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.maker-mediatek {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.maker-apple {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.maker-google {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.maker-samsung {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.maker-unisoc {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.proc-full-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.proc-specs-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* AnTuTu Score Cell */
.antutu-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.antutu-score {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffd166;
  letter-spacing: 0.02em;
}

.antutu-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.antutu-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #ff6b9d 0%, #ff8c42 50%, #ffd166 100%);
  box-shadow: 0 0 8px rgba(255, 140, 66, 0.5);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Geekbench Cell */
.gb-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  white-space: nowrap;
}

.gb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gb-pill .gb-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.gb-pill .gb-val {
  font-weight: 700;
  color: #fff;
}

.gb-pill.gb-multi {
  border-color: rgba(194, 110, 247, 0.3);
  background: rgba(194, 110, 247, 0.08);
}

.gb-pill.gb-multi .gb-val {
  color: #d8b4fe;
}

/* Tier Column */
.tier-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.tier-extreme {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.tier-flagship {
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.tier-uppermid {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tier-midrange {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tier-budget {
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.tier-entry {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Phones with this SoC Cell */
.phones-cell-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
  max-width: 380px;
}

.phones-header-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phones-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.proc-phones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proc-phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.proc-phone-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--grad-1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.chip-brand-icon {
  font-size: 0.85rem;
}

.chip-phone-name {
  font-weight: 600;
}

.chip-phone-price {
  font-size: 0.72rem;
  color: #ffd166;
  font-weight: 700;
  background: rgba(255, 209, 102, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

.no-phones-muted {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Lowest Deal Price Cell */
.proc-price-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.proc-min-price {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.proc-best-val {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.proc-best-val .val-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #6ee7b7;
}

.val-phone-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease;
}

.val-phone-link:hover {
  color: #fff;
  text-decoration-color: var(--grad-1);
}

.proc-view-deal-btn {
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 107, 157, 0.15);
  border: 1px solid rgba(255, 107, 157, 0.35);
  color: #fff;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.proc-view-deal-btn:hover {
  background: linear-gradient(135deg, #ff6b9d 0%, #c26ef7 100%);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.35);
  transform: translateX(2px);
}

/* Empty State */
.perf-no-results {
  padding: 60px 20px;
  text-align: center;
}

.perf-no-results.hidden {
  display: none !important;
}

/* Media Queries */
@media (max-width: 900px) {
  .perf-header {
    padding: 24px 20px;
  }
  .perf-title {
    font-size: 1.6rem;
  }
  .perf-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .perf-search-box {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .main-tabs-bar {
    flex-direction: column;
    border-radius: var(--radius-card);
    gap: 8px;
    padding: 10px;
  }
  .main-tab-btn {
    width: 100%;
    justify-content: center;
  }
  .perf-table th, .perf-table td {
    padding: 12px 14px;
  }
}

/* ===================================================
   RAM & STORAGE VARIANT SELECTORS
   =================================================== */

/* Card Variant Selector (Grid View) */
.card-variants-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.card-variants-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.card-variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-variant-btn {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.card-variant-btn:hover {
  background: rgba(255, 107, 157, 0.2);
  border-color: rgba(255, 107, 157, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.card-variant-btn.active {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.35) 0%, rgba(194, 110, 247, 0.35) 100%);
  border-color: #ff6b9d;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
}

/* Detail Page Variant Selector */
.variant-selector-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-top: 14px;
}

.variant-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.variant-selector-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.variant-count-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grad-1);
  background: rgba(255, 107, 157, 0.15);
  border: 1px solid rgba(255, 107, 157, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.variant-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.variant-btn {
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.variant-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 157, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.variant-btn.active {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(194, 110, 247, 0.18) 100%);
  border-color: #ff6b9d;
  box-shadow: 0 0 16px rgba(255, 107, 157, 0.35), inset 0 0 12px rgba(255, 107, 157, 0.1);
}

.variant-btn-spec {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.variant-btn-price {
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b9d, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.variant-btn-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

