:root {
  --bg: #0b0c10;
  --card: #111319;
  --muted: #9aa3ad;
  --text: #e8eef6;
  --line: #1e2430;
  --accent: #6c5ce7;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s
}

a:hover {
  opacity: 0.8
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 24px
}

.nav a.logo {
  font-weight: 900;
  letter-spacing: -0.5px;
  font-size: 24px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav .links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 500
}

.nav .links a:hover {
  color: var(--text)
}

/* Modern Hero */
.hero-modern {
  background: var(--accent-gradient);
  border-radius: 24px;
  padding: 60px 24px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px -10px rgba(118, 75, 162, 0.4);
}

.hero-modern h1 {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: -1px;
}

.hero-modern p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.hero-modern .btn {
  background: white;
  color: #764ba2;
  border: none;
  font-weight: 700;
  padding: 12px 24px;
}

.hero-modern .btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Features/Info Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.feature-card .kpi {
  color: #667eea;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.feature-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.deal-card {
  background: #151922;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(118, 75, 162, 0.5);
}

.deal-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: white;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.deal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.deal-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deal-card h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
}

.deal-card .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deal-card .price-row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.deal-card .price {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.deal-card .profit {
  color: #4CAF50;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.deal-card .btn {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
  background: var(--accent-gradient);
  border: none;
  font-weight: 600;
}

/* Existing Utilities preserved/updated */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px
}

.hero {
  display: grid;
  gap: 10px;
  margin-top: 10px
}

.hero h1 {
  margin: 0;
  font-size: 34px
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 10px;
  background: #141826;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s
}

.grid3 {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px
}

.kpi {
  color: var(--muted);
  font-size: 13px
}

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center
}

.t-excellent {
  background: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.t-good {
  background: rgba(33, 150, 243, 0.15);
  color: #42a5f5;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.t-fair {
  background: rgba(255, 193, 7, 0.15);
  color: #ffca28;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.t-poor {
  background: rgba(244, 67, 54, 0.15);
  color: #ef5350;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Filters & Table */
.filters {
  display: grid;
  grid-template-columns: 160px 160px 180px 180px 160px 1fr;
  gap: 10px;
  margin-bottom: 14px
}

input,
select {
  background: #0f121a;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
}

input:focus,
select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px
}

.row {
  background: #151922;
  border: 1px solid var(--line)
}

tr.row td {
  padding: 16px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

tr.row td:first-child {
  border-left: 1px solid var(--line);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px
}

tr.row td:last-child {
  border-right: 1px solid var(--line);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px
}

.small {
  color: var(--muted);
  font-size: 12px
}

.prod {
  display: flex;
  gap: 14px;
  align-items: center
}

.prod img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 2px
}

.right {
  white-space: nowrap;
  text-align: right
}

footer {
  margin-top: 60px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line)
}

footer .legal {
  display: flex;
  gap: 20px
}

@media (max-width: 980px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .grid3,
  .features-grid {
    grid-template-columns: 1fr
  }

  .right {
    white-space: normal
  }

  .hero-modern h1 {
    font-size: 32px;
  }

  .nav {
    flex-direction: column;
    gap: 16px;
  }
}

/* FAQ Modern Styles */
details.faq-item {
  background: #151922;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

details.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

details.faq-item[open] {
  background: #1a1f2b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

summary.faq-question {
  padding: 24px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  /* Hide default arrow */
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

summary.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s;
  color: var(--accent);
}

details.faq-item[open] summary.faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 24px 24px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid transparent;
  /* spacing fix */
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

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