/* ============================================================
   URLHOST — Dedicated Server page
   (builds on css/shared-hosting.css + css/vps.css)
   ============================================================ */

.route__title { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: #cfe3d9; }
.route__title i { color: #6fe0ac; }
.route__live { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; color: #9FE3C2; background: rgba(111,224,172,.12); padding: .3rem .65rem; border-radius: 99px; }
.route__live span { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; animation: pulse 2s infinite; }

/* ---------------- Rack visual ---------------- */
.rack {
  border-radius: 22px; padding: 1.4rem;
  background: linear-gradient(180deg, #13201a, #0b1511);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(111,224,172,.18);
}
.rack__top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.rack__units { display: grid; gap: .5rem; padding: .7rem; border-radius: 14px; background: #070e0b; border: 1px solid rgba(255,255,255,.06); }
.unit {
  display: flex; align-items: center; gap: .9rem; height: 46px; padding: 0 .9rem; border-radius: 8px;
  background: linear-gradient(180deg, #1b2a23, #14201a); border: 1px solid rgba(255,255,255,.06);
}
.unit__leds { display: flex; gap: .3rem; }
.unit__leds i { width: 7px; height: 7px; border-radius: 50%; background: #2c3d35; }
.unit__leds i:first-child { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; animation: led 1.6s infinite; }
.unit__leds i:nth-child(2) { background: #6fe0ac; animation: led 0.9s infinite .3s; }
@keyframes led { 50% { opacity: .25; } }
.unit__vents { flex: 1; display: flex; gap: 4px; justify-content: flex-end; }
.unit__vents i { width: 4px; height: 20px; border-radius: 2px; background: rgba(255,255,255,.06); }
.unit--main { height: 62px; background: linear-gradient(180deg, #1a4a34, #123826); border-color: rgba(111,224,172,.4); box-shadow: 0 0 0 1px rgba(111,224,172,.15), 0 10px 24px -8px rgba(47,191,113,.45); }
.unit__label b { display: block; font-family: var(--font-display); color: #fff; font-size: .95rem; line-height: 1.1; }
.unit__label small { font-size: .72rem; color: #9fc2b2; }
.unit__tag { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: #2fbf71; color: #062014; padding: .2rem .5rem; border-radius: 99px; }

.cores { margin-top: 1.1rem; }
.cores__head { display: flex; justify-content: space-between; font-size: .76rem; color: #7fa596; margin-bottom: .5rem; font-family: var(--font-mono); }
.cores__head b { color: #fff; }
.cores__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .4rem; }
.cores__grid i {
  height: 46px; border-radius: 7px; background: rgba(255,255,255,.05); position: relative; overflow: hidden;
  border: 1px solid rgba(111,224,172,.18);
}
.cores__grid i::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--l);
  background: linear-gradient(180deg, #6fe0ac, #2fbf71); animation: load 3s ease-in-out infinite alternate;
}
.cores__grid i:nth-child(2n)::after { animation-delay: .6s; }
.cores__grid i:nth-child(3n)::after { animation-delay: 1.2s; }
@keyframes load { from { transform: scaleY(.7); transform-origin: bottom; } to { transform: scaleY(1.1); transform-origin: bottom; } }

.rack__specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.1rem; }
.rack__specs div { text-align: center; padding: .7rem .3rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.rack__specs i { display: block; color: #6fe0ac; font-size: 1.05rem; margin-bottom: .2rem; }
.rack__specs b { display: block; color: #fff; font-family: var(--font-display); font-size: 1rem; }
.rack__specs span { font-size: .7rem; color: #7fa596; }

/* ---------------- Plan spec grid ---------------- */
.dspec { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.4rem; }
.dspec div { padding: .75rem .8rem; border-radius: 12px; background: var(--brand-tint); border: 1px solid var(--brand-border); }
.dspec b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.dspec span { font-size: .74rem; font-weight: 600; color: var(--muted); }
.pcard--featured .dspec div { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.pcard--featured .dspec b { color: #fff; }
.pcard--featured .dspec span { color: #9fc2b2; }
.dcard .pcard__inc { margin-top: 1.4rem; }

/* ---------------- Shared vs dedicated CPU ---------------- */
.cpu-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.4rem; max-width: 960px; margin: 0 auto; }
.cpu-card { padding: 1.6rem; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.cpu-card--you { background: rgba(47,191,113,.1); border-color: rgba(111,224,172,.45); box-shadow: 0 20px 50px -20px rgba(47,191,113,.4); }
.cpu-card__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.cpu-card__head > span:last-child { font-size: .8rem; color: #8fb3a3; }
.cpu-card__pill { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .3rem .7rem; border-radius: 99px; background: rgba(255,255,255,.08); color: #cfe3d9; }
.cpu-card__pill--you { background: #2fbf71; color: #062014; }
.cpu-card__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1.2rem; }
.cpu-card__grid i { height: 54px; border-radius: 10px; background: linear-gradient(180deg, #6fe0ac, #2fbf71); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.cpu-card__grid--shared i { background: #3a4b44; }
.cpu-card__grid--shared i.u1 { background: linear-gradient(180deg, #6fe0ac, #2fbf71); }
.cpu-card__grid--shared i.u2 { background: #5b6f8f; }
.cpu-card__grid--shared i.u3 { background: #8a6a3a; }
.cpu-card__grid--shared i.u4 { background: #6b4f7a; }
.cpu-card p { color: #b8d6c8; font-size: .94rem; line-height: 1.6; margin: 0; }
.cpu-vs__arrow { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(111,224,172,.14); color: #6fe0ac; font-size: 1.2rem; }
.cpu-legend { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1.6rem; flex-wrap: wrap; }
.cpu-legend span { font-size: .82rem; color: #9fc2b2; display: inline-flex; align-items: center; gap: .45rem; }
.cpu-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; background: linear-gradient(90deg, #5b6f8f 0 33%, #8a6a3a 33% 66%, #6b4f7a 66%); }
.cpu-dot--you { background: #2fbf71; }

/* ---------------- Use cases ---------------- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.use { padding: 1.6rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: .25s ease; }
.use:hover { border-color: var(--brand-border); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.use__ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 1.3rem; margin-bottom: 1rem; }
.use:hover .use__ico { background: var(--brand); color: #fff; }
.use h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .35rem; }
.use p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.55; }

/* ---------------- Ladder ---------------- */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; max-width: 1000px; margin: 0 auto; }
.rung {
  display: flex; flex-direction: column; gap: .15rem; padding: 1.5rem; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); transition: .2s ease;
}
.rung:nth-child(1) { min-height: 170px; }
.rung:nth-child(2) { min-height: 200px; }
.rung:nth-child(3) { min-height: 235px; }
.rung:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-4px); color: var(--ink); }
.rung__lvl { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: auto; }
.rung b { font-family: var(--font-display); font-size: 1.25rem; margin-top: 1rem; }
.rung small { font-size: .86rem; color: var(--muted); }
.rung__price { margin-top: .6rem; font-weight: 700; color: var(--brand); font-size: .92rem; }
.rung--you { background: linear-gradient(160deg, var(--dark-bg), #13573a); border: 0; color: #fff; box-shadow: 0 24px 50px -18px rgba(14,42,28,.55); }
.rung--you:hover { color: #fff; border: 0; }
.rung--you small { color: #b8d6c8; }
.rung--you .rung__lvl, .rung--you .rung__price { color: #6fe0ac; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
  .cpu-vs { grid-template-columns: 1fr; }
  .cpu-vs__arrow { transform: rotate(90deg); justify-self: center; }
  .uses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .ladder { grid-template-columns: 1fr; }
  .rung:nth-child(n) { min-height: 0; }
}
@media (max-width: 575.98px) {
  .rack { padding: 1rem; }
  .unit__vents i:nth-child(n+6) { display: none; }
  .unit--main .unit__vents { display: none; }
  .unit--main .unit__label { flex: 1; min-width: 0; }
  .unit__label small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cores__grid { gap: .25rem; }
  .cores__grid i { height: 36px; }
  .rack__specs { grid-template-columns: repeat(2, 1fr); }
  .uses { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cores__grid i::after, .unit__leds i { animation: none !important; }
}
