:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #ec4899;
  --bg-dark: #0f172a;
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --bot-msg-bg: rgba(30, 41, 59, 0.7);
  --user-msg-bg: #6366f1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

/* Global Utilities */
.hidden {
  display: none !important;
}

/* Background Effects */
.background-glow {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0f172a 50%);
  z-index: -1;
  pointer-events: none;
}

.background-glow::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: var(--primary-glow);
  filter: blur(100px);
  opacity: 0.3;
  animation: float 10s infinite alternate;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

/* Layout */
/* Layout */
.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: rgba(15, 23, 42, 0.6);
  border-right: 1px solid var(--glass-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex-shrink: 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.nav-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.custom-select-wrapper {
  position: relative;
}

.custom-select-wrapper select {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.8rem;
  border-radius: 12px;
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-select-wrapper select:hover {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
}

.arrow-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.footer-group {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 10%;
  padding-bottom: 120px;
  scroll-behavior: smooth;
}

/* Ensure messages don't overflow */
.message {
  max-width: 800px;
  /* Constrain message width */
  margin: 0 auto 1.5rem auto;
  /* Center messages if wanted, or align left/right */
  width: fit-content;
}

.bot-message {
  margin-left: 0;
  max-width: 85%;
}

.user-message {
  margin-right: 0;
  max-width: 70%;
  margin-left: auto;
}

/* Input Area Redesign */
.input-container {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header {
  display: none;
}

/* Hide old header styles if referenced anywhere */

/* Intro Message */
.intro-message .content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.intro-message h2 {
  font-size: 1.5rem;
  font-weight: 500;
}

.chips {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.chips button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.chips button:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #fff;
}

/* Messages */
.message {
  display: flex;
  gap: 1rem;
  max-width: 85%;
  opacity: 0;
  animation: fadeIn 0.4s forwards;
  /* Ensure flex item doesn't overflow parent */
  min-width: 0;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.bot-message .avatar {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: white;
}

.user-message .avatar {
  background: var(--text-muted);
  /* Fallback */
  display: none;
  /* Hide user avatar usually cleaner */
}

.content {
  padding: 1rem 1.25rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  /* Text Overflow Fix */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* Markdown Styling */
.content h1,
.content h2,
.content h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}
.content h1 {
  font-size: 1.4rem;
}
.content h2 {
  font-size: 1.25rem;
}
.content h3 {
  font-size: 1.1rem;
}

.content p {
  margin-bottom: 0.8rem;
}
.content p:last-child {
  margin-bottom: 0;
}

.content ul,
.content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content li {
  margin-bottom: 0.4rem;
}

.content strong {
  font-weight: 700;
  color: #fff;
}

.content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  color: #a5b4fc;
}

.content pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.content pre code {
  display: block;
  white-space: normal;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: inherit;
  text-align: left;
  max-width: 100%;
  word-wrap: break-word;
}

.bot-message .content {
  background: var(--bot-msg-bg);
  border: 1px solid var(--glass-border);
  border-top-left-radius: 4px;
}

.user-message .content {
  background: var(--user-msg-bg);
  color: white;
  border-top-right-radius: 4px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

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

  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Input Area */
.input-container {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.model-selector select {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

.model-selector select:hover {
  border-color: var(--accent-color);
}

.input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.input-wrapper {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.8rem 1rem;
  color: white;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#sendBtn {
  background: var(--primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

#sendBtn:hover {
  transform: scale(1.05);
  background: #4f46e5;
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* Loader */
.thinking-dots {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0;
}

.dot-anim {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot-anim:nth-child(1) {
  animation-delay: -0.32s;
}

.dot-anim:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Debug SQL Pill */
.debug-pill {
  font-size: 0.7rem;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  border: 1px solid transparent;
}

.debug-pill:hover {
  border-color: var(--glass-border);
  color: var(--text-main);
}

.debug-content {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #000;
  border-radius: 6px;
  color: #4ade80;
  /* Matrix green */
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
}

/* Product Cards */
.product-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.2rem;
  padding: 0.8rem 0.5rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 0.5rem;
}

.product-carousel::-webkit-scrollbar {
  height: 6px;
  /* Visible scrollbar for desktop usability */
}

.product-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.product-carousel {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  padding: 0.8rem 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.product-carousel::-webkit-scrollbar {
  height: 6px;
}

.product-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.product-carousel::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 10px;
}

.product-card {
  display: flex !important;
  flex-direction: row !important;
  /* width: 500px !important; */
  min-width: 500px !important;
  /* height: 260px; */
  height: 330px;
  max-height: 480px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  /* background-color: white; */
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.card-img-container {
  /* width: 180px; */
  min-width: 180px;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
  background-color: white;
}

.card-thumb {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.spec-score-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #82b440;
  color: white;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.spec-score-badge span {
  font-size: 0.5rem;
  text-transform: uppercase;
  margin-top: 2px;
}

.card-content {
  flex: 1 !important;
  height: 100%;
  padding: 1.2rem 1.4rem;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem;
  min-width: 250px !important;
  max-width: 300px !important;
  word-wrap: normal;
  white-space: normal;
}

.card-header-top {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card-header-top h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  word-wrap: normal;
  white-space: normal;
  overflow: visible;
}

.card-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.card-meta span i {
  color: var(--primary);
  margin-right: 0.4rem;
}

.key-specs-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.key-specs-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.key-specs-title::before {
  content: "";
  width: 3px;
  height: 1.1rem;
  background: #f15a24;
  display: inline-block;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.spec-item i {
  color: #82b440;
  font-size: 0.95rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.spec-info {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.3rem;
}

.spec-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
}

.spec-value {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.3;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-box .main-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

@media (max-width: 600px) {
  .product-card {
    width: 280px;
    min-width: 280px;
    flex-direction: column;
    height: auto;
  }
  .card-img-container {
    width: 100%;
    height: 180px;
  }
}

.product-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.2rem;
}

.specs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.specs span {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.specs i {
  color: var(--primary);
  font-size: 0.9rem;
  width: 14px;
}
/* Standardize score badge colors */
.score-badge.high {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}
.score-badge.med {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}

/* --- MODAL & BUTTONS --- */
.glow-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: transform 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.glow-btn-small {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.glow-btn-small:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #fff;
}

.glow-btn:hover {
  transform: scale(1.05);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-content {
  background: #1e293b;
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

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

.modal-header h2 {
  font-size: 1.25rem;
  margin: 0;
  color: #fff;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

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

.comp-table th,
.comp-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-table th {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
}

.comp-table td {
  color: #e2e8f0;
  font-size: 0.95rem;
}

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

.text-green {
  color: #4ade80;
  font-weight: 600;
}

.text-red {
  color: #ef4444;
  opacity: 0.8;
}

.bold {
  font-weight: 700;
  color: #fff;
}

.specs i {
  color: #64748b;
}

/* --- COMPARISON MODE STYLES --- */
.comparison-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.comparison-card {
  width: 250px;
  /* Slightly narrower to fit side-by-side */
  border-color: rgba(255, 255, 255, 0.08);
}

.vs-badge {
  background: #000;
  color: #fff;
  font-weight: 800;
  font-style: italic;
  padding: 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  z-index: 10;
  font-size: 1.2rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.comp-win {
  color: #4ade80 !important;
  /* Green */
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.comp-lose {
  color: #ef4444 !important;
  /* Red */
  opacity: 0.8;
}

/* Mobile responsive for comparison */
@media (max-width: 600px) {
  .comparison-container {
    flex-direction: column;
    gap: 2rem;
  }

  .vs-badge {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }
}

/* --- DASHBOARD STYLES --- */

/* Sidebar Navigation */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.3);
}

.nav-item i {
  font-size: 1.2rem;
}

/* View Container */
.view-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.view-container.hidden {
  display: none;
}

/* Dashboard Header */
.dashboard-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--glass-border);
}

.dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.7;
}

.stat-card h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Recent Runs Table */
.recent-runs {
  flex: 1;
  margin: 0 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  min-height: 400px; /* Ensure it has space */
}

.recent-runs h3 {
  padding: 1.5rem;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--glass-border);
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
}

.table-wrapper {
  flex: 1;
  overflow: auto;
}

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

.runs-table th,
.runs-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

/* Dashboard Filter Custom Styles */
.dashboard-select,
.dashboard-date-input {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: 1px solid var(--glass-border);
  padding: 0.5rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

/* Dashboard Redesign */
.dashboard-controls {
  margin: 0 2rem 1.5rem 2rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
}

.compact-stats-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.5rem 0.5rem 1.2rem 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.mini-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: "Outfit", sans-serif;
}

.mini-stat-sep {
  width: 1px;
  height: 30px;
  background: var(--glass-border);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  align-items: end;
}

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

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

/* Big View / Expanded Table Styles */
.recent-runs.expanded {
  position: fixed;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  margin: 0 !important;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(40px);
  display: flex !important;
  flex-direction: column;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
}

.recent-runs.expanded .table-wrapper {
  flex: 1;
  overflow: auto;
}

/* Premium Modal Styling */
.premium-modal {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(40px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  max-width: 900px !important;
  width: 90% !important;
  border-radius: 20px !important;
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-title h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.modal-body {
  padding: 0;
  max-height: 60vh;
}

.error-table-container {
  overflow-x: auto;
}

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

.error-modal-table th {
  text-align: left;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--glass-border);
}

.error-modal-table td {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
  vertical-align: top;
}

.error-modal-table tr:last-child td {
  border-bottom: none;
}

.error-modal-table td:first-child {
  font-family: inherit;
  font-weight: 600;
  color: var(--text-main);
}

.error-modal-table td:last-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.02);
}

.modal-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.1);
}

.error-item {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

.error-item strong {
  color: #ef4444;
}

.runs-table th {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--glass-border);
}

.runs-table td {
  font-size: 0.95rem;
  color: #e2e8f0;
}

.runs-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.success {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-badge.partial {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-badge.running {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-badge.failed {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    transition: left 0.3s ease;
    width: 280px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .sidebar.active {
    left: 0;
  }

  .main-content {
    width: 100%;
    padding-top: 60px; /* Header space */
  }

  /* Mobile Header */
  .mobile-header {
    display: flex !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 900;
  }

  .mobile-menu-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Chat Adjustments */
  .chat-area {
    padding: 1rem;
    padding-bottom: 140px;
  }

  .message {
    max-width: 95%;
  }

  .input-container {
    width: 95%;
    bottom: 1rem;
  }

  /* Dashboard Adjustments */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    margin: 0 1rem 1rem 1rem !important;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  /* Hide sidebar close button on desktop, show on mobile inside sidebar */
  .sidebar-close-btn {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
  }
}

/* Helper to hide mobile header on desktop */
.mobile-header {
  display: none;
}

.sidebar-close-btn {
  display: none;
}

/* Product Detail View Styling */
.product-details-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  padding: 1.5rem;
}

.spec-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.spec-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.spec-card h4 {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.spec-item span {
  color: var(--text-muted);
}

.spec-item strong {
  color: #fff;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.platform-column {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.platform-header {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.platform-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.platform-price-box {
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.current-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.mrp {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.75rem;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.rating-summary .count {
  color: var(--text-muted);
}

.detail-section {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.offers-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.offer-pill {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-review {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: 10px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.review-meta .user {
  font-weight: 600;
  color: #fff;
}

.review-meta .rating {
  color: #fbbf24;
}

.review-meta .date {
  color: var(--text-muted);
}

.review-text {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .product-details-container {
    grid-template-columns: 1fr;
  }
}

/* Clickable Dashboard Rows */
.clickable-row {
  cursor: pointer;
  transition: background 0.2s ease;
}

.clickable-row:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.clickable-row td {
  transition: color 0.2s ease;
}

.clickable-row:hover td {
  color: #fff !important;
}

.clickable-row:active {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Consolidated Grid View */
.product-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.product-grid-view .product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.platform-links {
  display: flex;
  gap: 0.4rem;
  font-size: 1.1rem;
}

.card-overlay-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(99, 102, 241, 0.9), transparent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2rem 1rem 0.75rem;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.product-card:hover .card-overlay-hint {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .product-grid-view {
    grid-template-columns: 1fr;
  }
}

/* --- NEW PREMIUM UI COMPONENTS --- */

/* Table Image */
.table-img-container {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

.row-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hover-row:hover .row-img {
  transform: scale(1.1);
}

/* Modal Hero Section */
.product-hero-section {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.5), transparent);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2rem;
  border-radius: 20px 20px 0 0;
}

.hero-image-container {
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tech Highlights Bar */
.tech-highlight-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  min-width: 160px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.highlight-item i {
  font-size: 1.8rem;
  color: var(--primary);
}

.highlight-content {
  display: flex;
  flex-direction: column;
}

.highlight-content .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.highlight-content .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

/* Chat Product Card Images */
.card-img-container {
  width: 100%;
  /* height: 120px; */
  max-height: 480px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  background-color: white;
}

.card-img-container.mini {
  /* height: 80px; */
  max-height: 420px;
}

.card-thumb {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.product-card:hover .card-thumb {
  transform: scale(1.1);
}

/* Existing responsive adjustments */
@media (max-width: 768px) {
  .product-hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-image-container {
    width: 200px;
    height: 200px;
  }

  .tech-highlight-bar {
    justify-content: center;
  }
}
/* Modal Tabs */
.modal-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.tab-content {
  display: none;
  padding: 1.5rem;
}

.tab-content.active {
  display: block;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.spec-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
}

.spec-category h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-category h4 i {
  color: var(--primary);
  font-size: 1.1rem;
}

.spec-category .spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-category .spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.spec-category .spec-item span {
  color: var(--text-muted);
  flex: 0 0 120px;
}

.spec-category .spec-item strong {
  color: #fff;
  text-align: right;
  flex: 1;
}

/* Platform Reviews */
.platform-reviews {
  margin-bottom: 2rem;
}

.platform-reviews h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Full-Screen Modal */
.modal-content-fullscreen {
  /* position: fixed; */
  top: 0;
  left: 0;
  width: 80vw;
  height: 100vh;
  background: var(--bg-dark); /* Use bg-dark variable */
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999; /* Ensure it's on top of everything */
}

.modal-header-fixed {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-header-fixed .header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-header-fixed .back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-header-fixed .back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.modal-header-fixed h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.modal-body-scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

/* Hero Section - Full Width */
.product-hero-section {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  padding: 2rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(30, 41, 59, 0.8) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image-container {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 80px;
  height: fit-content;
}

.hero-img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-highlight-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.highlight-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.highlight-item i {
  font-size: 2rem;
  color: var(--primary);
}

.highlight-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.highlight-content .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.highlight-content .value {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
}

/* Sidebar Spec Card */
.spec-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.spec-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.spec-card h4 {
  margin: 0 0 1.25rem 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Product Details Container */
.product-details-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
}

.comparisons-main {
  flex: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-hero-section {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .hero-image-container {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

  .product-details-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .spec-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .modal-header-fixed {
    padding: 1rem;
  }

  .modal-header-fixed h2 {
    font-size: 1.2rem;
  }

  .tech-highlight-bar {
    grid-template-columns: 1fr;
  }
}

/* New Layout Structure */
.sidebar-and-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-sidebar {
  position: static;
  width: 100%;
  max-width: 450px;
  padding: 2rem 3rem;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.spec-card h4 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparisons-main-fullwidth {
  width: 100%;
  flex: 1;
}

/* Override previous product-details-container */
.product-details-container {
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: 100%;
  gap: 0;
}

@media (max-width: 768px) {
  .spec-sidebar {
    padding: 1.5rem;
    max-width: 100%;
  }
}

/* Spec Card Inline (in hero section) */
.spec-card-inline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0;
}

.spec-card-inline h4 {
  margin: 0 0 0.75rem 0;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-card-inline .spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.spec-card-inline .spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.spec-card-inline .spec-item span {
  color: var(--text-muted);
}

.spec-card-inline .spec-item strong {
  color: #fff;
  text-align: right;
  margin-left: 1rem;
}

/* Ensure comparisons main takes full width */
.comparisons-main-fullwidth {
  width: 100%;
}

@media (max-width: 768px) {
  .spec-card-inline .spec-list {
    grid-template-columns: 1fr;
  }
}

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Spec Table Format */
.spec-table {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.2fr;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.spec-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.spec-value {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Large Empty State */
.empty-state-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  min-height: 300px;
}

.empty-state-large i {
  font-size: 4rem;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

.empty-state-large h3 {
  margin: 0 0 0.75rem 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.empty-state-large p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
}

@media (max-width: 768px) {
  .spec-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .spec-row .spec-label:nth-child(3),
  .spec-row .spec-value:nth-child(4) {
    grid-column: 1;
  }
}

/* Spec Table Vertical Partitions */
.spec-row .spec-label,
.spec-row .spec-value {
  padding: 0.75rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-row .spec-value:last-child {
  border-right: none;
}

/* Add left border to create column groups */
.spec-row .spec-label:nth-child(3) {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* 3-Column Hero Section */
.product-hero-section-3col {
  display: grid;
  grid-template-columns: 280px 220px 1fr;
  gap: 1.5rem;
  padding: 2rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(30, 41, 59, 0.8) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: start;
}

.hero-highlights-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-item-vertical {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  height: 70px;
  min-height: 70px;
}

.highlight-item-vertical:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateX(2px);
}

.highlight-item-vertical i {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.highlight-item-vertical .highlight-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.highlight-item-vertical .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.highlight-item-vertical .value {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .product-hero-section-3col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Enhanced Platform Cards */
.platform-column {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.platform-column:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.platform-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.platform-price-box {
  margin-bottom: 1.5rem;
}

.current-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.mrp {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.rating-summary .count {
  color: var(--text-muted);
}

/* Offers Section */
.detail-section {
  margin-top: 1.5rem;
}

.detail-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.75rem 0;
}

.offers-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.offer-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 3px solid rgb(16, 185, 129);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.85rem;
  color: rgb(16, 185, 129);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.offer-badge i {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Reviews Styling */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mini-review {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.mini-review:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.review-meta .user {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.review-meta .rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
}

.review-meta .date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: auto;
}

.review-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Platform Reviews Section */
.platform-reviews {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

.platform-reviews h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Fix VS Card Price Styling */
.vs-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success);
  margin: 0.5rem 0;
  letter-spacing: -0.5px;
  display: block;
}

.vs-card-header .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success);
}

.avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.message-metadata {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
}

.message-metadata span {
  display: flex;
  align-items: center;
  gap: 2px;
}
/* Modern Product Detail Modal Styles */

.modern-modal {
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-modal::-webkit-scrollbar {
  width: 8px;
}

.modern-modal::-webkit-scrollbar-track {
  background: transparent;
}

.modern-modal::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

.modern-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

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

.modern-header {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(236, 72, 153, 0.08) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modern-header .title-container {
  flex: 1;
}

.modern-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.modern-body {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.95)
  );
}

/* Modern Hero Section */
.product-hero-section-modern {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 3rem 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(236, 72, 153, 0.06) 100%
  );
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.product-hero-section-modern::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.product-hero-section-modern > * {
  position: relative;
  z-index: 1;
}

.hero-image-container-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 350px;
  perspective: 1000px;
}

.image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%); */
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 8px 32px rgba(99, 102, 241, 0.1);
  transition: all 0.4s ease;
  background-color: white;
}

.image-wrapper:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(236, 72, 153, 0.15) 100%
  );
  /* background-color: white; */
}

.hero-img-modern {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.image-wrapper:hover .hero-img-modern {
  transform: scale(1.05);
}

.hero-info-modern {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-title-section {
  margin-bottom: 1rem;
}

.hero-title-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.75rem;
}

.hero-title-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.launch-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: fit-content;
  transition: all 0.3s ease;
}

.launch-date:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-main);
}

.hero-highlights-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.highlight-card-modern {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(236, 72, 153, 0.05) 100%
  );
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.highlight-card-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.highlight-card-modern:hover {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(236, 72, 153, 0.1) 100%
  );
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.3),
    rgba(236, 72, 153, 0.3)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background-clip: padding-box;
  border: 1px solid transparent;
  position: relative;
  flex-shrink: 0;
}

.highlight-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.5),
    rgba(236, 72, 153, 0.5)
  );
  border-radius: 12px;
  z-index: -1;
}

.highlight-icon i {
  color: #818cf8;
  position: relative;
  z-index: 1;
}

.highlight-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.highlight-text .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 0.35rem;
}

.highlight-text .value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

/* Modern Modal Content */
.modal-content-modern {
  padding: 0;
}

.modal-tabs-modern {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 2rem 0;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.modal-tabs-modern::-webkit-scrollbar {
  height: 4px;
}

.modal-tabs-modern::-webkit-scrollbar-track {
  background: transparent;
}

.modal-tabs-modern::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 2px;
}

.tab-btn-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 1.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
}

.tab-btn-modern:hover {
  color: var(--text-main);
}

.tab-btn-modern:hover::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary),
    transparent
  );
}

.tab-btn-modern.active {
  color: var(--text-main);
  border-bottom-color: var(--primary);
}

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

.tab-btn-modern i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.tab-content-modern {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.tab-content-modern.active {
  display: block;
}

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

/* Modern Platform Grid */
.platform-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.platform-column {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(236, 72, 153, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.platform-column:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(236, 72, 153, 0.04) 100%
  );
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.platform-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.platform-price-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.current-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 0.5rem;
}

.mrp {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.rating-summary i {
  color: #fbbf24;
}

.rating-summary .count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.offers-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.offer-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #10b981;
}

.reviews-list-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card-modern {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.review-card-modern:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.2);
}

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

.review-header .user {
  font-size: 0.95rem;
  font-weight: 600;
}

.review-header .rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #fbbf24;
  font-size: 0.9rem;
  font-weight: 600;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.review-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* Enhanced Pricing Platform Cards */
.platform-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.platform-card-enhanced {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(236, 72, 153, 0.05) 100%
  );
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  border-radius: 18px;
  padding: 1.75rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.platform-card-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary),
    var(--secondary),
    transparent
  );
}

.platform-card-enhanced:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(236, 72, 153, 0.1) 100%
  );
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.platform-header-enhanced {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.platform-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.platform-icon-enhanced {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
}

.platform-header-enhanced h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.discount-badge {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.price-section-enhanced {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.current-price-enhanced {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.mrp-enhanced {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 1rem;
}

.rating-section-enhanced {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stars {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
}

.stars i {
  color: #fbbf24;
}

.rating-value {
  font-weight: 700;
  color: var(--text-main);
  margin-left: 0.25rem;
}

.rating-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.visit-btn-enhanced {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.3),
    rgba(236, 72, 153, 0.2)
  );
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.visit-btn-enhanced:hover {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.5),
    rgba(236, 72, 153, 0.3)
  );
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

.offers-section-enhanced {
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.offers-section-enhanced h5,
.reviews-section-enhanced h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offers-list-enhanced {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.offer-pill {
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.offer-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.reviews-section-enhanced {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.reviews-list-enhanced {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-review {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.mini-review:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(4px);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.review-meta .user {
  font-weight: 700;
  color: var(--text-main);
}

.review-meta .rating {
  color: #fbbf24;
  margin-left: auto;
}

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

.review-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* Modern Specs Grid */
.specs-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.spec-category-modern {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(236, 72, 153, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.spec-category-modern:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(236, 72, 153, 0.04) 100%
  );
}

.spec-category-modern h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-category-modern i {
  font-size: 1.2rem;
}

.spec-list-modern {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-item-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.spec-item-modern span:first-child {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.spec-item-modern strong {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
  max-width: 60%;
  text-align: right;
}

/* Modern Empty State */
.empty-state-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(236, 72, 153, 0.2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.empty-state-modern h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.empty-state-modern p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 400px;
}

.empty-state-text {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.95rem;
}

.platform-reviews-modern {
  margin-bottom: 2rem;
}

.platform-reviews-modern h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .product-hero-section-modern {
    /* grid-template-columns: 1fr; */
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .hero-highlights-modern {
    grid-template-columns: 1fr;
  }

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

  .platform-grid-modern {
    grid-template-columns: 1fr;
  }

  .modal-tabs-modern {
    padding: 1rem;
  }

  .tab-btn-modern {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .tab-content-modern {
    padding: 1.5rem;
  }

  .hero-title-section h2 {
    font-size: 1.5rem;
  }
}

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

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

.dashboard-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  min-width: 150px;
}

.dashboard-select:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.5);
}

/* Pagination Controls */
.pagination-controls {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.pagination-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}

/* Collapsible Reviews Arrow Animation */
details.reviews-details[open] summary i.ri-arrow-down-s-line {
  transform: rotate(180deg);
}

/* --- Product Detail Pages --- */
.detail-page-body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  padding: 2rem;
  overflow-y: auto; /* Enable vertical scrolling */
  height: auto; /* Allow body to grow */
  display: block; /* Override flex center layout of main body */
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 90vh;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
}

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

.back-btn-large {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-btn-large:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-4px);
}

.action-btn {
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Loading */
.loading-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.loading-container p {
  color: var(--text-muted);
  margin-top: 1rem;
}

.error-text {
  color: #ef4444;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

.hero-image-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  height: auto;
  min-height: 350px;
  aspect-ratio: 1/1; /* Ensure square aspect ratio for consistency */
}

.hero-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

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

.brand-badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.product-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text; /* Fix lint error */
  -webkit-text-fill-color: transparent;
}

.price-block {
  margin-top: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: inline-flex;
  flex-direction: column;
  align-self: flex-start;
}

.price-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

/* Specs Grid */
.specs-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

.spec-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.spec-section h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.spec-item .label {
  color: var(--text-muted);
}

.spec-item .value {
  color: var(--text-main);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

/* Ecommerce Section */
.ecommerce-section {
  margin-top: 2rem;
}

.ecommerce-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ecommerce-list {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 column */
  gap: 1.5rem;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .ecommerce-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .ecommerce-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ecom-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.ecom-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.ecom-platform {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.ecom-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.ecom-link {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.ecom-link:hover {
  background: #4f46e5;
}

@media (max-width: 768px) {
  .detail-container {
    padding: 1rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    height: auto;
  }

  .hero-image-wrapper {
    height: 300px;
  }

  .product-title {
    font-size: 2rem;
  }
}

/* Page Level Tabs */
.page-tabs {
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.page-tab-btn {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px 8px 0 0;
}

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

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

@media (max-width: 768px) {
  .page-tabs {
    overflow-x: auto;
    padding-bottom: 0;
  }
  .page-tab-btn {
    white-space: nowrap;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
}
/* Variant Grouping & Chips */
.variant-groups {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  margin-top: 1.5rem;
}

.variant-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.attr-chip {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.attr-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.attr-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.attr-chip.disabled {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(1);
}

/* Ecommerce Deals Cards */
.ecommerce-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.deal-group-header {
  grid-column: 1 / -1;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-left-width: 4px;
}

.deal-group-header:first-child {
  margin-top: 0;
}

.deal-group-header i {
  color: var(--primary);
  font-size: 1.4rem;
}

.ecom-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.ecom-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-glow);
  transform: translateY(-4px);
}

.ecom-platform {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.platform-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.platform-details {
  flex: 1;
}

.platform-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}

.spec-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.ecom-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.ecom-link {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.deal-actions {
  display: flex;
  gap: 0.8rem;
}

.info-badge {
  flex: 1;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.info-badge.offers {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.2);
}

.info-badge.reviews {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}

.expandable-section {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 0.5rem;
}

.offer-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.offer-item i {
  color: #22c55e;
  margin-top: 2px;
}

