/* ═══════════════════════════════════════════════════════
   GDATA GROUP — component.css
   Scope: Component / Linh kiện page (hero, Server | Linh kiện
   tabs, config matrix table, parts price table, CTA).
   Reuses the same palette & design language as dedicated.css:
   --accent #0D59F2 / #3D7FFF, cyan #48D6FF / #00C8D4, on the
   --bg-main #00193C background.
   ═══════════════════════════════════════════════════════ */

:root {
  --cmp-text: #FFFFFF;
  --cmp-muted: #94A3B8;
  --cmp-line: rgba(255, 255, 255, 0.08);
  --cmp-card: rgba(255, 255, 255, 0.03);
}

/* ─────────────────────────────────────────────────────
   0. SHARED LAYOUT
   ───────────────────────────────────────────────────── */
.cmp-container {
  margin: 0 auto;
  padding: 0 102px;
}

@media (max-width: 991px) {
  .cmp-container { padding: 0 24px; }
}

/* ─────────────────────────────────────────────────────
   1. HERO
   ───────────────────────────────────────────────────── */
.cmp-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(13, 89, 242, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 100%, rgba(0, 200, 212, 0.10) 0%, transparent 60%);
}

.cmp-hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 214, 255, 0.16) 0%, transparent 65%);
  filter: blur(12px);
  pointer-events: none;
}

.cmp-hero .cmp-container { position: relative; z-index: 1; }

.cmp-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(13, 89, 242, 0.16);
  border: 1px solid rgba(72, 214, 255, 0.35);
  color: #48D6FF;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cmp-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48D6FF;
  box-shadow: 0 0 10px rgba(72, 214, 255, 0.7);
  animation: cmp-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes cmp-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.7; }
}

.cmp-hero-title {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cmp-text);
  margin: 0 auto 20px;
  max-width: 880px;
}

.cmp-hero-desc {
  max-width: 660px;
  margin: 0 auto;
  color: var(--cmp-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────
   2. SECTION + TABS
   ───────────────────────────────────────────────────── */
.cmp-section { padding: 56px 0 88px; }

.cmp-tabs {
  position: relative;
  display: flex;
  gap: 0;
  max-width: 620px;
  margin: 0 auto 56px;
}

.cmp-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 12px 22px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--cmp-muted);
  transition: color var(--dur, .3s) var(--ease, ease);
}

.cmp-tab-name {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.cmp-tab-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity var(--dur, .3s) var(--ease, ease),
              transform var(--dur, .3s) var(--ease, ease);
}

.cmp-tab:hover { color: #CBD5E1; }

.cmp-tab.is-active { color: var(--cmp-text); }
.cmp-tab.is-active .cmp-tab-sub {
  opacity: 1;
  transform: translateY(0);
  color: #48D6FF;
}

.cmp-tabs-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.cmp-tabs-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #0D59F2), #48D6FF);
  transition: transform var(--dur, .3s) var(--ease, ease);
}

/* ─────────────────────────────────────────────────────
   3. PANELS
   ───────────────────────────────────────────────────── */
.cmp-panel { animation: cmp-fade .35s var(--ease, ease); }
.cmp-panel[hidden] { display: none; }

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

/* ─────────────────────────────────────────────────────
   4. TABLES (shared)
   ───────────────────────────────────────────────────── */
.cmp-table-wrap {
  border: 1px solid var(--cmp-line);
  border-radius: 16px;
  overflow-x: auto;
  background: var(--cmp-card);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cmp-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(13, 89, 242, 0.16);
}

.cmp-table tbody td,
.cmp-table tbody th {
  padding: 14px 20px;
  border-top: 1px solid var(--cmp-line);
  color: var(--cmp-text);
  vertical-align: middle;
  text-align: left;
}

.cmp-table tbody tr:nth-child(odd) td,
.cmp-table tbody tr:nth-child(odd) th { background: rgba(255, 255, 255, 0.015); }
.cmp-table tbody tr:hover td,
.cmp-table tbody tr:hover th { background: rgba(72, 214, 255, 0.07); }

/* ── Parts table specifics ── */
.cmp-th-price { text-align: center !important; }
.cmp-th-act { width: 130px; }

.cmp-td-name { font-weight: 600; }

.cmp-td-price {
  text-align: center !important;
  font-weight: 700;
  color: #48D6FF;
  white-space: nowrap;
}

.cmp-td-act { text-align: center !important; }

.cmp-table-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(90deg, var(--accent, #0D59F2), #3D7FFF);
  box-shadow: 0 6px 16px rgba(13, 89, 242, 0.4);
  transition: transform var(--dur, .3s) var(--ease, ease),
              box-shadow var(--dur, .3s) var(--ease, ease);
}

.cmp-table-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 89, 242, 0.6);
}

/* ── Config matrix table (Server panel) ── */
.cmp-table-matrix { font-size: 13px; }

.cmp-table-matrix thead th { white-space: nowrap; }

/* first column (row labels) — sticky so specs stay readable while scrolling */
.cmp-table-matrix .cmp-th-row,
.cmp-table-matrix .cmp-td-rowlabel {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 140px;
  font-weight: 700;
  background: #06234d;
}

.cmp-table-matrix thead .cmp-th-row {
  z-index: 3;
  background: #0a2c5e;
  text-transform: uppercase;
}

.cmp-table-matrix .cmp-td-rowlabel {
  color: var(--cmp-muted);
  text-align: left;
}

.cmp-table-matrix tbody td {
  min-width: 160px;
  line-height: 1.5;
  color: #CBD5E1;
}

/* keep sticky label readable on hover/zebra */
.cmp-table-matrix tbody tr:nth-child(odd) .cmp-td-rowlabel { background: #082750; }
.cmp-table-matrix tbody tr:hover .cmp-td-rowlabel { background: #0a2f60; }

/* price rows — highlighted */
.cmp-row-price td.cmp-td-price {
  text-align: right !important;
  font-weight: 700;
  color: #48D6FF;
  white-space: nowrap;
}
.cmp-row-price .cmp-td-rowlabel { color: #fff; }
.cmp-table-matrix tbody tr.cmp-row-price td,
.cmp-table-matrix tbody tr.cmp-row-price th { background: rgba(13, 89, 242, 0.10); }
.cmp-table-matrix tbody tr.cmp-row-price:hover td,
.cmp-table-matrix tbody tr.cmp-row-price:hover th { background: rgba(13, 89, 242, 0.18); }
.cmp-table-matrix tbody tr.cmp-row-price .cmp-td-rowlabel { background: #0a2c5e; }

/* ── note ── */
.cmp-note {
  margin: 28px auto 0;
  max-width: 820px;
  text-align: center;
  color: var(--cmp-muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.cmp-note i { color: #48D6FF; margin-right: 6px; }
.cmp-note strong { color: #fff; font-weight: 600; }

/* ── table → cards on small screens (parts table only) ── */
@media (max-width: 767px) {
  .cmp-table:not(.cmp-table-matrix) thead { display: none; }
  .cmp-table:not(.cmp-table-matrix),
  .cmp-table:not(.cmp-table-matrix) tbody,
  .cmp-table:not(.cmp-table-matrix) tr,
  .cmp-table:not(.cmp-table-matrix) td { display: block; width: 100%; }
  .cmp-table:not(.cmp-table-matrix) tbody tr {
    border-top: 1px solid var(--cmp-line);
    padding: 8px 0;
  }
  .cmp-table:not(.cmp-table-matrix) tbody td {
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 18px;
    text-align: right !important;
  }
  .cmp-table:not(.cmp-table-matrix) tbody td.cmp-td-name { font-size: 15px; }
  .cmp-table:not(.cmp-table-matrix) tbody td::before {
    content: attr(data-label);
    color: var(--cmp-muted);
    font-size: 12px;
    font-weight: 600;
  }
  .cmp-table:not(.cmp-table-matrix) tbody td.cmp-td-act::before { content: ""; }
}

/* ─────────────────────────────────────────────────────
   5. BENEFITS & COMMITMENTS
   ───────────────────────────────────────────────────── */
.cmp-benefits { padding: 16px 0 88px; }

.cmp-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cmp-benefit-card {
  border: 1px solid var(--cmp-line);
  border-radius: 18px;
  background: var(--cmp-card);
  padding: 32px 30px;
  transition: transform var(--dur, .3s) var(--ease, ease),
              border-color var(--dur, .3s) var(--ease, ease);
}

.cmp-benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(72, 214, 255, 0.4);
}

.cmp-benefit-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cmp-text);
  margin: 0 0 22px;
}

.cmp-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #0D59F2), var(--cyan, #00C8D4));
  box-shadow: 0 0 20px rgba(13, 89, 242, 0.4);
}

.cmp-benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cmp-benefit-list li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px dashed var(--cmp-line);
  color: #CBD5E1;
  font-size: 14.5px;
  line-height: 1.6;
}

.cmp-benefit-list li:last-child { border-bottom: 0; }

.cmp-benefit-list li::before {
  content: "\F26E"; /* bi-check-circle-fill */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 15px;
  line-height: 1.6;
  color: #48D6FF;
}

.cmp-benefit-summary {
  max-width: 880px;
  margin: 36px auto 0;
  text-align: center;
  color: var(--cmp-muted);
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .cmp-benefit-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────
   6. CTA
   ───────────────────────────────────────────────────── */
.cmp-cta { padding: 0 0 96px; }

.cmp-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(72, 214, 255, 0.25);
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(13, 89, 242, 0.28) 0%, transparent 60%),
    rgba(255, 255, 255, 0.03);
  padding: 64px 32px;
  text-align: center;
}

.cmp-cta-glow {
  position: absolute;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 212, 0.18) 0%, transparent 65%);
  filter: blur(12px);
  pointer-events: none;
}

.cmp-cta-inner { position: relative; z-index: 1; }

.cmp-cta-title {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: var(--cmp-text);
  margin: 0 0 14px;
}

.cmp-cta-desc {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--cmp-muted);
  font-size: 15px;
  line-height: 1.7;
}

.cmp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 10px;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur, .3s) var(--ease, ease),
              transform var(--dur, .3s) var(--ease, ease),
              box-shadow var(--dur, .3s) var(--ease, ease);
}

.cmp-btn-primary {
  background: #0D59F2;
  color: #fff;
  box-shadow: 0 0 24px rgba(13, 89, 242, 0.45);
}

.cmp-btn-primary:hover {
  background: #3D7FFF;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(13, 89, 242, 0.6);
}

/* ─────────────────────────────────────────────────────
   6. RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .cmp-tab-name { font-size: 17px; }
}
