/* ═══════════════════════════════════════════════════════
   GDATA GROUP — dedicated.css
   Scope: Dedicated Server page (hero, plan tabs, server
   cards, features, CTA). Uses the same palette as the rest
   of the site: --accent #0D59F2 / #3D7FFF, cyan #48D6FF /
   #00C8D4, on the --bg-main #00193C background.
   ═══════════════════════════════════════════════════════ */

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

/* ─────────────────────────────────────────────────────
   0. SHARED LAYOUT
   ───────────────────────────────────────────────────── */
.ded-container {
  /* max-width: 1320px; */
  margin: 0 auto;
  padding: 0 102px;
}

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

.ded-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

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

.ded-section-desc {
  color: var(--ded-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ─────────────────────────────────────────────────────
   1. HERO
   ───────────────────────────────────────────────────── */
.ded-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%);
}

.ded-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;
}

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

.ded-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;
}

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

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

.ded-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(--ded-text);
  margin: 0 auto 20px;
  max-width: 880px;
}

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

/* ─────────────────────────────────────────────────────
   2. PLANS — TABS
   ───────────────────────────────────────────────────── */
.ded-plans { padding: 56px 0 88px; }

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

.ded-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(--ded-muted);
  transition: color var(--dur, .3s) var(--ease, ease);
}

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

.ded-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);
}

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

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

/* progress track under the tabs (mirrors the reference design) */
.ded-tabs-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ded-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);
}

/* ─────────────────────────────────────────────────────
   2b. PLANS — CARDS GRID
   ───────────────────────────────────────────────────── */
.ded-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.ded-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ded-line);
  border-radius: 18px;
  background: var(--ded-card);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform var(--dur, .3s) var(--ease, ease),
              border-color var(--dur, .3s) var(--ease, ease),
              box-shadow var(--dur, .3s) var(--ease, ease);
}

.ded-card:hover {
  transform: translateY(-6px);
  border-color: rgba(72, 214, 255, 0.4);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.ded-card.is-featured {
  border-color: rgba(72, 214, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(72, 214, 255, 0.25), 0 20px 56px rgba(13, 89, 242, 0.28);
}

.ded-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #0D59F2), #48D6FF);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(13, 89, 242, 0.45);
}

/* media */
.ded-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 22px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 40%, rgba(72, 214, 255, 0.12) 0%, transparent 70%),
    rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--ded-line);
}

.ded-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

/* graceful fallback icon shown by JS when the server PNG is missing */
.ded-card-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  line-height: 1;
  color: #48D6FF;
  filter: drop-shadow(0 8px 16px rgba(13, 89, 242, 0.4));
}

.ded-card-name {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 20px 0 16px;
  background: linear-gradient(90deg, #3D7FFF 0%, #48D6FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* spec list */
.ded-spec-list {
  list-style: none;
  margin: 0;
  padding: 0 18px;
}

.ded-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--ded-line);
  font-size: 13.5px;
}

.ded-spec:last-child { border-bottom: 0; }

.ded-spec-label {
  flex-shrink: 0;
  color: var(--ded-muted);
  font-weight: 500;
}

.ded-spec-value {
  text-align: right;
  color: var(--ded-text);
  font-weight: 600;
}

/* OS toggle */
.ded-os {
  position: relative;
  display: flex;
  margin: 18px 18px 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ded-line);
}

.ded-os-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #0D59F2), #3D7FFF);
  box-shadow: 0 4px 12px rgba(13, 89, 242, 0.45);
  transition: transform var(--dur, .3s) var(--ease, ease);
}

.ded-os[data-os-active="linux"] .ded-os-knob { transform: translateX(100%); }

.ded-os-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ded-muted);
  transition: color var(--dur, .3s) var(--ease, ease);
}

.ded-os-btn.is-active { color: #fff; }

/* price selector */
.ded-price {
  position: relative;
  margin: 16px 18px 0;
}

.ded-price-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(72, 214, 255, 0.3);
  background: rgba(13, 89, 242, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color var(--dur, .3s) var(--ease, ease),
              background var(--dur, .3s) var(--ease, ease);
}

.ded-price-toggle:hover { border-color: rgba(72, 214, 255, 0.55); }

.ded-price-term { color: var(--ded-muted); font-weight: 500; }

.ded-price-amount { color: #48D6FF; font-weight: 700; }
.ded-price-amount::after { content: " đ/th"; font-size: 11px; color: var(--ded-muted); font-weight: 500; }

.ded-price-caret {
  font-size: 12px;
  color: var(--ded-muted);
  transition: transform var(--dur, .3s) var(--ease, ease);
}

.ded-price.is-open .ded-price-caret { transform: rotate(180deg); }

.ded-price-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--ded-line);
  background: #06234d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease, ease), transform .2s var(--ease, ease), visibility .2s;
}

.ded-price.is-open .ded-price-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ded-price-menu li {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ded-muted);
  cursor: pointer;
  transition: background var(--dur, .3s) var(--ease, ease), color var(--dur, .3s) var(--ease, ease);
}

.ded-price-menu li:hover,
.ded-price-menu li.is-selected {
  background: rgba(72, 214, 255, 0.12);
  color: #fff;
}

/* CTA button (blue gradient — matches site palette) */
.ded-card-cta {
  display: block;
  margin: 20px 18px 22px;
  padding: 13px 0;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--accent, #0D59F2), #3D7FFF);
  box-shadow: 0 8px 22px rgba(13, 89, 242, 0.4);
  transition: transform var(--dur, .3s) var(--ease, ease),
              box-shadow var(--dur, .3s) var(--ease, ease);
}

.ded-card-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 89, 242, 0.6);
}

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

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

/* ─────────────────────────────────────────────────────
   2c. ADD-ON SERVICES & EQUIPMENT
   ───────────────────────────────────────────────────── */
.ded-addons { padding: 0 0 88px; }

.ded-addons-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: -16px 0 36px;
}

.ded-addons-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(72, 214, 255, 0.3);
  background: rgba(13, 89, 242, 0.16);
  color: #fff;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur, .3s) var(--ease, ease),
              border-color var(--dur, .3s) var(--ease, ease),
              transform var(--dur, .3s) var(--ease, ease);
}

.ded-addons-toggle:hover {
  background: rgba(13, 89, 242, 0.28);
  border-color: rgba(72, 214, 255, 0.55);
  transform: translateY(-2px);
}

.ded-addons-toggle-caret {
  font-size: 13px;
  transition: transform var(--dur, .3s) var(--ease, ease);
}

.ded-addons-toggle[aria-expanded="true"] .ded-addons-toggle-caret { transform: rotate(180deg); }

.ded-addons-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ded-addons-body[hidden] { display: none; }

/* table */
.ded-table-wrap {
  border: 1px solid var(--ded-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ded-card);
}

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

.ded-table thead th {
  padding: 16px 22px;
  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);
}

.ded-th-price, .ded-th-qty { text-align: center; }
.ded-th-act { width: 130px; }

.ded-th-note {
  display: inline-block;
  margin-left: 6px;
  font-weight: 600;
  color: #48D6FF;
  opacity: 0.95;
}

.ded-table tbody td {
  padding: 14px 22px;
  border-top: 1px solid var(--ded-line);
  color: var(--ded-text);
  vertical-align: middle;
}

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

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

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

.ded-td-qty { text-align: center; }

.ded-qty {
  min-width: 64px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--ded-line);
  background: #06234d;
  color: #fff;
  font-size: 13.5px;
  cursor: pointer;
}

.ded-qty:focus { outline: none; border-color: rgba(72, 214, 255, 0.6); }

.ded-td-act { text-align: center; }

.ded-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);
}

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

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

/* ─────────────────────────────────────────────────────
   3. FEATURES
   ───────────────────────────────────────────────────── */
.ded-features { padding: 80px 0; border-top: 1px solid var(--ded-line); }

.ded-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ded-feature {
  padding: 30px 24px;
  border: 1px solid var(--ded-line);
  border-radius: 16px;
  background: var(--ded-card);
  transition: transform var(--dur, .3s) var(--ease, ease),
              border-color var(--dur, .3s) var(--ease, ease);
}

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

.ded-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #0D59F2), var(--cyan, #00C8D4));
  box-shadow: 0 0 20px rgba(13, 89, 242, 0.4);
}

.ded-feature-title {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ded-text);
  margin: 0 0 10px;
}

.ded-feature-desc {
  color: var(--ded-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────────────────
   4. CTA
   ───────────────────────────────────────────────────── */
.ded-cta { padding: 0 0 96px; }

.ded-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;
}

.ded-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;
}

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

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

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

.ded-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);
}

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

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

/* ─────────────────────────────────────────────────────
   5. RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .ded-grid { grid-template-columns: repeat(2, 1fr); }
  .ded-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .ded-grid { grid-template-columns: 1fr; }
  .ded-feature-grid { grid-template-columns: 1fr; }
  .ded-tab-name { font-size: 17px; }
}
