:root {
  --linko-blue: #4BA7FF;
  --linko-blue-2: #24E0FF;
  --linko-bg: #050711;
}

body {
  background: var(--linko-bg);
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

/* Reusable UI utilities */

.card {
  background: radial-gradient(circle at top left, rgba(75,167,255,0.12), rgba(12,14,25,0.95));
  border-radius: 1.2rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

/* ------------------------------- */
/* HERO CARDS (Preview server stack) */
/* ------------------------------- */

.hero-card-stack {
  position: relative !important;
  transform-style: preserve-3d !important;
  perspective: 1200px !important;
  width: 100%;
  height: 260px;
}

.hero-card {
  position: absolute !important;
  inset: 0 !important;
  padding: 1rem !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(255,255,255,0.11) !important;
  background: linear-gradient(145deg, rgba(10,12,25,0.95), rgba(42,54,92,0.9)) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.7) !important;
}

.hero-card-top {
  transform: translate3d(0, -12px, 40px) rotateX(6deg) rotateY(-8deg) !important;
}

.hero-card-mid {
  transform: translate3d(-22px, 22px, 0) scale(0.92) !important;
  opacity: 0.85 !important;
}

.hero-card-back {
  transform: translate3d(22px, 36px, -30px) scale(0.86) !important;
  opacity: 0.7 !important;
}

.ping-bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(75,167,255,0.2), rgba(36,224,255,0.8));
  transform-origin: left center;
  animation: pingMove 2.4s infinite alternate ease-in-out;
}

@keyframes pingMove {
  from { transform: scaleX(0.2); }
  to   { transform: scaleX(0.9); }
}

/* ------------------------------- */
/* SECTION TITLES */
/* ------------------------------- */

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
}

/* ------------------------------- */
/* FEATURE CARDS */
/* ------------------------------- */

.feature-card {
  padding: 1.4rem;
  border-radius: 1.1rem;
  background: radial-gradient(circle at top right, rgba(75,167,255,0.16), rgba(8,10,20,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 30px rgba(0,0,0,0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(75,167,255,0.7);
  box-shadow: 0 18px 40px rgba(32,142,255,0.45);
}

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.feature-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.feature-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ------------------------------- */
/* SOFTWARE PILLS */
/* ------------------------------- */

.software-pill {
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(6,9,22,0.95);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.software-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(75,167,255,0.8);
  box-shadow: 0 18px 40px rgba(75,167,255,0.35);
}

.software-pill-disabled {
  opacity: 0.45;
  position: relative;
}

.software-pill-disabled::after {
  content: "Soon";
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,215,0,0.15);
  color: #ffd76a;
  border: 1px solid rgba(255,215,0,0.4);
}

/* ------------------------------- */
/* TIERS */
/* ------------------------------- */

.tier-card {
  border-radius: 1.2rem;
  padding: 1.6rem 1.7rem;
  background: radial-gradient(circle at top, rgba(75,167,255,0.18), rgba(6,9,20,0.98));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 36px rgba(0,0,0,0.78);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(75,167,255,0.8);
  box-shadow: 0 22px 50px rgba(75,167,255,0.45);
}

.tier-card-hot {
  border-color: rgba(75,167,255,1);
  background: radial-gradient(circle at top, rgba(75,167,255,0.32), rgba(6,9,20,0.98));
}

.tier-card-disabled {
  opacity: 0.6;
  border-style: dashed;
}

.tier-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.tier-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.tier-price {
  margin-top: 0.2rem;
  font-weight: 600;
}

.tier-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.tier-list li {
  margin-bottom: 0.25rem;
}

/* ------------------------------- */
/* INPUTS */
/* ------------------------------- */

.input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(8,10,22,0.96);
  font-size: 0.9rem;
  color: white;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input:focus {
  border-color: rgba(75,167,255,0.9);
  box-shadow: 0 0 0 1px rgba(75,167,255,0.5);
}

/* ------------------------------- */
/* ANIMATIONS */
/* ------------------------------- */

.animate-fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.animate-delay-0 { transition-delay: 0s; }
.animate-delay-1 { transition-delay: 0.08s; }
.animate-delay-2 { transition-delay: 0.16s; }

.animate-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ------------------------------- */
/* PING RESULT VISIBILITY */
/* ------------------------------- */

.ping-result-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ping-result-visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

/* ------------------------------- */
/* VULTR-STYLE REGION ROW */
/* ------------------------------- */

.region-row {
  width: 100%;
  padding: 1.3rem 1.4rem;
  border-radius: 0.9rem;
  background: rgba(8, 10, 22, 0.85);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.2s ease;
}

.region-row:hover {
  border-color: var(--linko-blue);
  background: rgba(10, 12, 28, 0.95);
  box-shadow: 0 8px 30px rgba(75,167,255,0.25);
}

.region-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.region-flag {
  font-size: 1.6rem;
}

.region-name {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.region-right {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
}

.region-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

.region-value {
  font-weight: 600;
  color: white;
}

.region-flag-img {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.region-flag-img {
  image-rendering: -webkit-optimize-contrast;
}

/* DASHBOARD ELEMENTS */

.dash-card {
  border-radius: 1.1rem;
  padding: 1.3rem 1.4rem;
  background: radial-gradient(circle at top left, rgba(75,167,255,0.16), rgba(8,10,22,0.96));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
}

.dash-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
}

.dash-nav-item {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.9rem;
  border-radius: 0.7rem;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.65);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.dash-nav-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
  transform: translateX(1px);
}
.dash-nav-active {
  background: linear-gradient(135deg, rgba(75,167,255,0.25), rgba(36,224,255,0.14));
  border-color: rgba(75,167,255,0.95);
  color: white;
}

/* Metric cards */

.metric-card {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(5,7,18,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.85);
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.metric-bar {
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(12,16,32,0.95);
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4BA7FF, #24E0FF);
  box-shadow: 0 0 12px rgba(75,167,255,0.7);
  transition: width 0.5s ease-out;
}

/* Buttons / pills */

.btn-ghost {
  padding: 0.5rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(8,10,20,0.9);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}
.btn-ghost:hover {
  background: rgba(15,22,38,0.95);
  border-color: rgba(75,167,255,0.9);
  box-shadow: 0 12px 30px rgba(75,167,255,0.4);
  transform: translateY(-1px);
}

.file-pill {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(10,14,28,0.95);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.8);
}
