:root {
  --primary: #d8d3c8;
  --primary-dark: #c4bfb2;
  --link-dark: #d8d3c8;
  --navy: #f0f0f2;
  --accent: #d8d3c8;
  --bg: #0d0d10;
  --card: rgba(255,255,255,0.045);
  --card-2: rgba(255,255,255,0.07);
  --text: #f0f0f2;
  --muted: #8a8a92;
  --border: rgba(255,255,255,0.09);
  --success: #7bdba0;
  --danger: #f75555;
  --dc-active: #a16207;
  --dc-limited: #2563eb;
  --dc-hover: #be185d;
  --radius: 8px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face {
  font-family: 'Pretendard Variable';
  src: url('https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/syne@5.2.5/latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/cormorant-garamond@5.2.8/latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Pretendard Variable', 'Pretendard', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }

a { color: var(--link-dark); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1720px; }

/* Header */
header {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 18px;
}
.logo { font-size: 24px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; flex: 0 0 auto; white-space: nowrap; }
.logo-mark { flex-shrink: 0; margin-right: 9px; display: block; }
.logo span { color: var(--primary); }
.nav-links {
  display: flex; gap: 16px; align-items: center; flex-wrap: nowrap; justify-content: flex-end; min-width: 0;
}
#auth-area { display: inline-flex; gap: 20px; align-items: center; flex-shrink: 0; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; white-space: nowrap; flex-shrink: 0; }
.nav-links a:hover { color: var(--primary); }

.nav { position: relative; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--primary); color: var(--primary); }
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }


/* Dedicated Servers / VPS nav mega-menus: primary category panel + side
   flyout with the real datacenter POPs / Windows-Linux split, dark glass.
   Click-toggled (see initNavDropdowns in common.js), not hover-based —
   works the same on mouse and touch. */
.nav-drop { position: relative; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-drop > a { cursor: pointer; }
.nav-drop.open > a { color: var(--primary); }
.nav-drop-caret { display: inline-flex; color: var(--muted); transition: transform 0.15s, color 0.15s; }
.nav-drop.open .nav-drop-caret { transform: rotate(180deg); color: var(--primary); }
.nav-drop-panel, .nav-sub-panel {
  position: absolute; top: 100%; margin-top: 14px; padding: 8px;
  max-height: 360px; overflow-y: auto;
  background: rgba(28,28,30,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(6px); transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
  z-index: 200;
}
.nav-drop-panel {
  left: 0; width: 380px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; align-content: start;
}
.nav-drop-panel > :first-child { grid-column: 1 / -1; }
.nav-sub-panel { left: 388px; width: 220px; }
.nav-drop.open .nav-drop-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-drop.open .nav-sub-panel.active {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-drop-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: var(--text) !important; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.nav-drop-item:hover, .nav-drop-cat.active { background: rgba(216,211,200,0.16); color: var(--primary) !important; }
.nav-drop-item-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; font-size: 16px; line-height: 1; }
.flag-icon { width: 16px; height: 12px; border-radius: 2px; vertical-align: -2px; object-fit: cover; }
.nav-drop-cat { cursor: pointer; justify-content: space-between; }
.nav-drop-cat-label { display: inline-flex; align-items: center; gap: 10px; }
.nav-drop-item-chevron { display: inline-flex; color: var(--muted); flex: none; }

/* Type tabs (Dedicated/VPS switcher above a plan table or grid) */
.type-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.type-tab {
  padding: 10px 20px; font-size: 15px; font-weight: 700; color: var(--muted);
  background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.type-tab:hover { color: var(--text); border-color: var(--primary); }
.type-tab.active { background: var(--primary); border-color: var(--primary); color: #14141a; }
.nav-links a[aria-current="page"] { color: var(--primary); }
.catalog-type-tabs { margin: 16px 0 0; flex-wrap: wrap; }
.catalog-type-tabs .type-tab { text-decoration: none; display: inline-flex; align-items: center; }
.catalog-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; margin: 0 0 22px;
}
.catalog-group-tabs { margin: 16px 0 0; }
.catalog-group-tabs .type-tab { font-size: 13px; padding: 8px 16px; text-decoration: none; display: inline-flex; }
.plan-group-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-group-heading .cpu-badge { height: 22px; width: auto; }

/* Filter panel (servers.html): Location select, CPU/Storage type checkbox
   pills, and dual-thumb range sliders for price/RAM/storage. Adjusting any
   filter live-narrows what's shown and re-derives the other sliders'
   min/max from whatever's still reachable (see applyFilters in servers.html). */
.filter-region-row { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.filter-region-row .dc-region-cards { flex: 1.6; margin: 0; }
.filter-region-row .dc-region-grid { grid-template-columns: repeat(3, 1fr); }
.filter-region-row .filter-panel { flex: 1; margin: 0; }
@media (max-width: 900px) {
  .filter-region-row { flex-direction: column; }
}
.filter-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 26px; margin-bottom: 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.filter-panel-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--primary); }
.filter-reset-btn { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.filter-reset-btn:hover { color: var(--text); border-color: var(--primary); }
.filter-row { display: flex; align-items: center; gap: 24px; padding: 16px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.filter-row:first-of-type { border-top: none; }
.filter-label { flex: none; width: 110px; font-size: 14px; font-weight: 600; color: var(--text); }
.filter-control { flex: 1; min-width: 220px; }
.filter-control select {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
  background: var(--card-2); color: var(--text); min-width: 220px;
}
.checkbox-pills { display: flex; gap: 16px; flex-wrap: wrap; }
.checkbox-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; user-select: none; color: var(--text); }
.checkbox-pill input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.range-values { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.dual-range { position: relative; height: 20px; }
.dual-range-track { position: absolute; top: 8px; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--border); }
.dual-range-track-fill { position: absolute; top: 8px; height: 4px; border-radius: 2px; background: var(--primary); }
.dual-range input[type="range"] {
  position: absolute; top: 4px; left: 0; width: 100%; height: 12px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.dual-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto; -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.dual-range input[type="range"]::-moz-range-track { background: transparent; }

.btn {
  display: inline-block; padding: 11px 21px; border-radius: 980px;
  font-weight: 400; font-size: 17px; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn.btn-primary { background: var(--primary); color: #14141a; }
.btn.btn-primary:hover { background: var(--primary-dark); color: #14141a; }
.btn.btn-outline { background: transparent; color: var(--link-dark); border: 1px solid var(--link-dark); }
.btn.btn-outline:hover { background: rgba(216,211,200,0.14); }
.btn.btn-dark { background: var(--navy); color: #14141a; }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-block { width: 100%; }

/* Black pill "ORDER NOW" button used in server listing tables */
.btn-order {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #18181b; color: #fff; padding: 10px 20px; border-radius: 980px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em; text-decoration: none;
  transition: background 0.15s;
}
.btn-order:hover { background: #000; color: #fff; }

/* Big pill order button used on the plan-card listing (servers.html) */
.btn-order-lg {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--primary); color: #14141a; padding: 11px 20px; border-radius: 980px;
  font-weight: 700; font-size: 14px; text-decoration: none; transition: background 0.15s;
}
.btn-order-lg:hover { background: var(--primary-dark); color: #14141a; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn { transition: background 0.15s; } .btn:active:not(:disabled) { transform: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 20% -20%, #1c1c1e 0%, #0a0a0a 45%, #000000 100%);
  color: #fff; padding: 84px 0 96px;
  border-bottom: 1px solid var(--border);
}
/* Perspective grid floor */
.hero::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -35%; height: 70%;
  background-image:
    linear-gradient(rgba(216,211,200,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,211,200,0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(480px) rotateX(62deg);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 55%);
  mask-image: linear-gradient(to top, transparent 0%, #000 55%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; top: -180px; right: -120px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(216,211,200,0.28) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: block; text-align: center;
}
.hero-copy { text-align: center; max-width: 720px; margin: 0 auto; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow, .hero h1, .hero p.sub, .hero-service-chips, .hero-cta, .hero-stats {
  animation: heroIn 0.6s var(--ease) both;
}
.hero-eyebrow { animation-delay: 0s; }
.hero h1 { animation-delay: 0.06s; }
.hero p.sub { animation-delay: 0.12s; }
.hero-service-chips { animation-delay: 0.18s; }
.hero-cta { animation-delay: 0.24s; }
.hero-stats { animation-delay: 0.3s; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(216,211,200,0.14); border: 1px solid rgba(216,211,200,0.4);
  color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 999px; text-transform: uppercase; margin-bottom: 18px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: -0.28px; margin-bottom: 16px; }
.hero h1 .grad { color: var(--primary); }
.hero p.sub { font-size: 18px; opacity: 0.88; margin: 0 auto 30px; max-width: 520px; }
.hero-service-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.service-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--text);
  backdrop-filter: blur(6px);
}
.service-chip svg { flex: none; }
.hero-cta { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; max-width: 640px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,0.045); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.stat-bubble { display: flex; flex-direction: column; align-items: center; padding: 22px 20px; text-align: center; }
.stat-bubble + .stat-bubble { border-left: 1px solid var(--border); }
.stat-bubble strong { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-bubble span { font-size: 12px; color: var(--muted); margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero p.sub, .hero-service-chips, .hero-cta, .hero-stats {
    animation: none;
  }
}

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: -40px auto 0; position: relative; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(216,211,200,0.5); }
.feature-card .icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(216,211,200,0.12); border: 1px solid rgba(216,211,200,0.3);
}
.feature-card h4 { font-size: 15px; margin: 12px 0 2px; }
.feature-card p { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .feature-card, .service-card { transition: border-color 0.25s; } .feature-card:hover, .service-card:hover { transform: none; } }

/* Sections */
.section { padding: 70px 0; }
.section h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: normal; text-align: center; margin-bottom: 8px; }
.section h2 .hl { color: var(--primary); }
.section .section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

/* Service cards (Dedicated / VPS / DNS) */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative; background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216,211,200,0.6);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.service-card .svc-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(216,211,200,0.14); border: 1px solid rgba(216,211,200,0.35); margin-bottom: 16px;
}
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.service-card .svc-link { font-size: 14px; font-weight: 700; }

/* CPU vendor badge */
.plan-cell { display: flex; align-items: center; gap: 14px; }
.cpu-badge { display: block; border-radius: 6px; flex: none; }

/* Payment currency badge */
.currency-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.currency-badge img { display: block; border-radius: 50%; flex: none; }

/* Support banner */
.support-banner {
  display: flex; align-items: center; gap: 28px;
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 38px; margin: 40px 0;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.support-banner img { width: 88px; height: 88px; flex: none; }
.support-banner h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.support-banner p { color: var(--muted); font-size: 15px; }
.support-banner .btn { margin-left: auto; flex: none; }

/* Support console */
.console-stats { display: flex; gap: 14px; margin: 22px 0; flex-wrap: wrap; }
.console-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 26px; display: flex; flex-direction: column;
}
.console-stat strong { font-size: 26px; font-weight: 800; color: var(--navy); }
.console-stat span { font-size: 12.5px; color: var(--muted); }
.console-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.console-tab {
  background: var(--card-2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 10px 10px 0 0; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.console-tab.active { background: var(--card); color: var(--text); border-bottom-color: var(--card); }
.tab-count {
  display: inline-block; background: rgba(216,211,200,0.18); color: var(--primary);
  border-radius: 999px; padding: 1px 9px; font-size: 12px; margin-left: 4px;
}
.request-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; background: var(--card-2); }
.speech-bubble {
  position: relative; border: 1px solid var(--accent); border-radius: 14px;
  padding: 12px 16px; margin-bottom: 18px; cursor: pointer; background: var(--card-2);
  transition: background .15s;
}
.speech-bubble:hover { background: var(--card); }
.speech-bubble::after {
  content: ''; position: absolute; left: 24px; bottom: -8px; width: 14px; height: 14px;
  background: var(--card-2); border-left: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
  transform: rotate(-45deg);
}
.speech-bubble .bubble-tag {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent); margin-bottom: 4px;
}
.request-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.request-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.request-body { font-size: 14px; margin-top: 10px; white-space: pre-wrap; }
.request-thread { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.thread-msg { font-size: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.thread-msg.staff { border-color: rgba(216,211,200,0.5); }
.thread-who { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.thread-msg.staff .thread-who { color: var(--primary); }
.request-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.request-actions input {
  flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--card); color: var(--text); font-size: 14px;
}

/* Guest inquiry form */
.inquiry-panel { max-width: 720px; margin: 0 auto; }
.inquiry-panel h3 { font-size: 22px; }
.inquiry-sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 22px; }
.inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Server table */
.server-table {
  width: 100%; background: var(--card); border-radius: var(--radius);
  border-collapse: separate; border-spacing: 0; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.server-table th {
  background: var(--card-2); text-align: left; padding: 16px; font-size: 13px;
  letter-spacing: 0.05em; color: var(--navy); text-transform: uppercase;
}
.server-table td { padding: 18px 16px; border-top: 1px solid var(--border); font-size: 15px; }
.server-table .plan-name { font-weight: 700; }
.server-table .plan-cpu { font-size: 13px; color: var(--muted); }
.price { font-size: 22px; font-weight: 800; color: var(--navy); }
.price small { font-size: 13px; color: var(--muted); font-weight: 500; }

/* Plan card grid (servers.html order view) */
.plan-card-grid { display: flex; flex-direction: column; gap: 16px; }
.plan-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-left-width: 3px;
}
.plan-card.sold-out { opacity: 0.6; }
.plan-card--dedicated { border-left-color: var(--dc-limited); }
.plan-card--vps { border-left-color: var(--primary); }
.plan-card--hosting { border-left-color: var(--success); }
.plan-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-card-name { font-size: 20px; font-weight: 800; }
.plan-card-flag { display: inline-flex; align-items: center; margin-right: 6px; font-size: 22px; line-height: 1; vertical-align: -2px; }
.plan-type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap; flex: none;
}
.plan-type-badge svg { margin-right: 0 !important; }
.plan-type-badge--dedicated { background: rgba(37, 99, 235, 0.18); color: #93c5fd; }
.plan-type-badge--vps { background: rgba(216, 211, 200, 0.16); color: var(--primary); }
.plan-type-badge--hosting { background: rgba(123, 219, 160, 0.16); color: var(--success); }
.plan-compare-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.plan-compare {
  display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 12px; margin: 0 0 22px;
}
.plan-compare--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-compare--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-compare-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; color: var(--text); text-decoration: none;
  min-width: 0; min-height: 226px; height: auto; box-shadow: inset 0 2px 0 var(--compare-tone, var(--primary));
  transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease);
}
.plan-compare-card:hover {
  border-color: var(--compare-tone, var(--primary));
  background: rgba(216,211,200,0.08);
  transform: translateY(-2px);
}
.plan-compare-watermark {
  position: absolute; right: -22px; top: -18px; width: 108px; height: 108px;
  opacity: 0.14; pointer-events: none; color: var(--compare-tone, var(--primary));
}
.plan-compare-watermark svg { width: 100%; height: 100%; display: block; }
.plan-compare-top {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  position: relative; z-index: 1;
}
.plan-compare-mark {
  flex: none; width: 36px; height: 36px; color: var(--compare-tone, var(--primary));
}
.plan-compare-mark svg { width: 100%; height: 100%; display: block; }
.plan-compare-id { min-width: 0; flex: 1; }
.plan-compare-series {
  display: block; font-style: normal; font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--compare-badge-tone, var(--compare-tone, var(--muted))); margin-bottom: 1px;
}
.plan-compare-card--dedicated { --compare-badge-tone: #fdba74; }
.plan-compare-product {
  display: block; font-family: Syne, 'Pretendard Variable', sans-serif;
  font-size: clamp(20px, 1.55vw, 26px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em;
  color: var(--compare-tone, var(--navy));
  text-shadow: 0 0 18px color-mix(in srgb, var(--compare-tone, var(--primary)) 28%, transparent);
}
.plan-compare-plus {
  flex: none; align-self: flex-start;
  padding: 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--compare-tone, var(--primary)) 22%, transparent);
  color: var(--compare-tone, var(--primary));
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.plan-compare-card:not(.plan-compare-card--plus) .plan-compare-top::after {
  content: ""; flex: none; width: 38px; height: 22px;
}
.plan-compare-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px;
  position: relative; z-index: 1;
}
.plan-compare-specs span {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  min-height: 42px; padding-top: 2px;
  font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.2;
}
.plan-compare-specs svg { width: 13px; height: 13px; flex: none; color: var(--compare-tone, var(--muted)); }
.plan-compare-specs .plan-compare-traffic { grid-column: 1 / -1; min-height: 28px; color: var(--compare-tone, var(--primary)); }
.plan-compare-specs .plan-compare-traffic svg { color: var(--compare-tone, var(--primary)); }
.plan-compare-card b {
  font-size: 20px; font-weight: 800; color: var(--compare-tone, var(--navy)); margin-top: auto;
  position: relative; z-index: 1;
}
.plan-compare-card b small { font-size: 12px; font-weight: 600; color: var(--muted); }
.plan-compare-card b small:last-child { margin-left: 2px; }
.plan-compare-card--smart { --compare-tone: #fbbf24; }
.plan-compare-card--starter { --compare-tone: #4ade80; }
.plan-compare-card--basic { --compare-tone: #cbd5e1; }
.plan-compare-card--advanced { --compare-tone: #60a5fa; }
.plan-compare-card--premium { --compare-tone: #f5d76e; }
.plan-compare-card--ruby { --compare-tone: #fb7185; }
.plan-compare-card--diamond { --compare-tone: #7dd3fc; }
.plan-compare-card--expert { --compare-tone: #c4b5fd; }
.plan-compare-card--super { --compare-tone: #f0abfc; }
.plan-compare-card--unit { --compare-tone: #fdba74; }
.plan-compare-card--generic { --compare-tone: var(--primary); }
.plan-compare-card--ruby .plan-compare-product,
.plan-compare-card--diamond .plan-compare-product,
.plan-compare-card--premium .plan-compare-product,
.plan-compare-card--super .plan-compare-product {
  font-family: 'Cormorant Garamond', Palatino, Georgia, serif;
  font-weight: 700; font-size: 26px; letter-spacing: 0.01em; line-height: 1;
}
.plan-compare-card--generic .plan-compare-product {
  font-family: Syne, 'Pretendard Variable', sans-serif;
  font-size: clamp(20px, 1.55vw, 26px); letter-spacing: -0.035em;
  color: var(--compare-tone, var(--navy));
}
.plan-family-grid { display: flex; flex-direction: column; gap: 18px; }
.plan-family {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px 14px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-left-width: 3px; scroll-margin-top: 90px;
}
.plan-family-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap;
}
.plan-family-title { display: flex; align-items: center; gap: 10px; min-height: 32px; flex-wrap: wrap; }
.plan-family-title .plan-card-name { margin: 0; font-size: 22px; }
.plan-family-title .plan-type-badge,
.plan-family-title .cpu-badge { height: 28px; width: auto; }
.plan-family-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.plan-family-count {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(216,211,200,0.10); color: var(--muted);
  font-size: 12px; font-weight: 700;
}
.plan-family-from { font-size: 28px; font-weight: 800; color: var(--navy); white-space: nowrap; line-height: 1.1; }
.plan-family-from small { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-family .plan-specs { flex-wrap: wrap; overflow: visible; margin-top: 16px; }
.plan-family .plan-spec { flex: 1 1 160px; }
.plan-loc-panel { margin-top: 8px; }
.plan-loc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 14px 0 8px;
}
.plan-loc-toolbar-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.plan-loc-search {
  flex: 1; min-width: 180px; max-width: 280px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card-2); color: var(--text); font-size: 14px;
}
.plan-loc-search:focus { outline: none; border-color: var(--primary); }
.plan-loc-list { display: flex; flex-direction: column; gap: 8px; }
.plan-loc-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: 12px 16px;
  min-height: 54px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card-2); transition: border-color 0.15s, background 0.15s;
}
.plan-loc-row:hover { border-color: var(--primary); background: rgba(216,211,200,0.08); }
.plan-loc-row.plan-loc-row--best { border-color: rgba(123, 219, 160, 0.4); }
.plan-loc-row.sold-out { opacity: 0.55; }
.plan-loc-place { min-width: 0; min-height: 28px; display: flex; align-items: center; align-content: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.plan-loc-place .plan-card-flag { margin-right: 0; font-size: 18px; }
.plan-loc-note { font-weight: 600; font-size: 12.5px; color: var(--muted); }
.plan-loc-best {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #14141a; background: var(--success); border-radius: 999px; padding: 3px 8px;
}
.plan-loc-price { font-size: 18px; font-weight: 800; white-space: nowrap; }
.plan-loc-price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.plan-loc-row .btn-order-lg { padding: 9px 16px; font-size: 13px; justify-self: end; }
.plan-loc-more {
  width: 100%; margin-top: 4px; padding: 10px;
  background: transparent; border: 1px dashed var(--border); border-radius: 10px;
  color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer;
}
.plan-loc-more:hover { color: var(--text); border-color: var(--primary); }
.plan-loc-empty { display: none; text-align: center; color: var(--muted); font-size: 14px; padding: 16px 8px; }
.plan-family:not(.plan-family--open) .plan-loc-row--overflow { display: none; }
.plan-loc-row--nomatch { display: none !important; }
.plan-family--open .plan-loc-more,
.plan-family--expanded .plan-loc-more { display: none; }
.plan-family.is-empty .plan-loc-empty { display: block; }
@media (max-width: 700px) {
  .plan-compare { display: flex; overflow-x: auto; padding-bottom: 8px; }
  .plan-compare-card { min-width: 200px; flex: 0 0 auto; }
  .plan-family { padding: 16px 16px 10px; }
  .plan-family-from { font-size: 22px; }
  .plan-loc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-loc-row .btn-order-lg { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}
.plan-card-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; color: var(--muted); }
.plan-traffic-badge {
  display: inline-block; margin-top: 6px; max-width: 340px;
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--card-2); color: var(--text); font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
.offer-traffic-badge {
  display: inline-block; margin: -8px 0 16px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(216,211,200,0.12);
  color: var(--text); font-size: 16px; font-weight: 800; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plan-group-heading .plan-group-speed {
  display: inline-block; margin-left: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgba(216,211,200,0.14); border: 1px solid var(--border);
  color: var(--primary); font-size: 14px; font-weight: 800; letter-spacing: 0.02em;
  vertical-align: middle;
}
/* One horizontal row: spec boxes, order button, and price all inline.
   Compact chips keep this fitting on one line at normal desktop widths;
   nowrap + auto-scroll remains the fallback for narrow viewports instead
   of wrapping to a second row. */
.plan-card-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin-top: 16px; }
.plan-specs { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 6px; flex: 1 1 auto; min-width: 0; }
.plan-spec {
  display: flex; align-items: center; gap: 8px;
  background: var(--card-2); border-radius: 8px;
  padding: 12px 14px; flex: 1 1 0; min-width: 0; min-height: 58px;
}
.plan-spec > div { min-width: 0; }
.plan-spec-icon { flex: none; width: 30px; height: 30px; border-radius: 8px; background: rgba(216,211,200,0.12); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.plan-spec-icon svg { width: 16px; height: 16px; }
.plan-spec-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.plan-spec-value {
  font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: none;
}
.plan-spec-traffic {
  background: rgba(216,211,200,0.18);
  border: 1px solid rgba(216,211,200,0.4);
}
.plan-spec-traffic .plan-spec-label { color: var(--primary); }
.plan-spec-traffic .plan-spec-value { color: var(--text); }
.offer-spec-traffic {
  font-size: 17px; font-weight: 700;
}
.offer-spec-traffic .offer-spec-label {
  font-size: 15px; font-weight: 800; color: var(--primary);
}
.plan-card-footer { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; padding-left: 8px; }
.plan-card-price { font-size: 19px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.plan-card-price small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }

.coming-soon-cell { text-align: center; padding: 56px 16px; }
.coming-soon-title { font-size: 22px; font-weight: 800; color: var(--muted); }
.coming-soon-sub { font-size: 14px; color: var(--muted); opacity: 0.7; margin-top: 4px; }
.coming-soon-specs { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.spec-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; color: var(--muted); opacity: 0.6;
}

/* index.html "Buy It Now": 3 cheapest-per-continent offer cards replacing
   the old full plan table — colored name badge, big "Starts at" price,
   plain label:value spec list. */
.offer-card { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; display: flex; flex-direction: column; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.offer-card.sold-out { opacity: 0.6; }
.offer-badge {
  display: inline-block; background: var(--primary); color: #14141a; font-weight: 700;
  font-size: 14px; letter-spacing: 0.02em; padding: 10px 18px; border-radius: 8px; margin-bottom: 20px;
}
.offer-price-label { font-size: 16px; font-weight: 700; }
.offer-price-value { font-size: 42px; font-weight: 800; line-height: 1; margin: 4px 0 20px; color: var(--primary); }
.offer-price-suffix { font-size: 19px; font-weight: 700; color: var(--primary); margin-left: 2px; }
.offer-specs { text-align: center; }
.offer-spec-row { padding: 11px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.offer-spec-row:first-child { border-top: none; }
.offer-spec-label { font-weight: 700; }
.offer-flag { font-size: 22px; line-height: 1; vertical-align: -4px; filter: brightness(1.15) saturate(1.15); }
.offer-flag .flag-icon { width: 22px; height: 16px; vertical-align: -3px; border-radius: 3px; }
.offer-footer { margin-top: auto; padding-top: 22px; }

/* Cards grid (locations etc.) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.select-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 18px; cursor: pointer; transition: border-color 0.15s;
}
.select-card:hover { border-color: var(--primary); }
.select-card.selected { border-color: var(--primary); background: rgba(216,211,200,0.12); }
.select-card .title { font-weight: 700; }
.select-card .badge { display: inline-block; background: var(--card-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.select-card .save { float: right; background: var(--primary); color: #14141a; font-size: 12px; border-radius: 6px; padding: 2px 8px; }

/* Checkout payment-method radio list */
.method-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.method-row:last-child { border-bottom: none; }
.method-row:hover .method-name { color: var(--primary); }
.method-radio {
  flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border);
  position: relative; transition: border-color 0.15s;
}
.method-row.selected .method-radio { border-color: var(--primary); }
.method-row.selected .method-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary);
}
.method-name { font-weight: 600; font-size: 14px; }
.method-badge { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }

/* Collapsible payment-method dropdown (trigger + panel of .method-row items) */
.method-dropdown { position: relative; }
.method-dropdown-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-2); color: var(--text); font-size: 14px; cursor: pointer;
}
.method-dropdown-current { display: flex; align-items: center; gap: 10px; }
.method-dropdown-panel {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); padding: 0 12px;
}
.method-dropdown-panel .method-row { padding: 10px 4px; }

/* Admin: user -> orders tree rows */
.tree-row:hover { background: rgba(216,211,200,0.08); }
.tree-row.selected { background: rgba(216,211,200,0.18); }

/* White-background variant for print-style surfaces (invoice, order listing) */
.theme-light {
  --bg: #ffffff; --card: #ffffff; --card-2: #f5f5f7;
  --text: #1d1d1f; --muted: #6e6e73; --border: #d4d4d8; --navy: #1d1d1f;
  --primary: #f7931a; --primary-dark: #d97b0a; --link-dark: #d97b0a;
  background: #ffffff; color: #1d1d1f;
}
.theme-light .status-PENDING_PAYMENT, .theme-light .status-PENDING, .theme-light .status-OPEN { color: #92720a; }
.theme-light .status-READY { color: #f7931a; }
.theme-light .status-ACTIVE, .theme-light .status-CONFIRMED, .theme-light .status-ANSWERED, .theme-light .status-PAID { color: #15803d; }
.theme-light .status-SUSPENDED, .theme-light .status-EXPIRED, .theme-light .status-FAILED, .theme-light .status-UNPAID { color: #b91c1c; }
.support-banner.theme-light { background: #ffffff; }
.theme-light .status-CANCELLED, .theme-light .status-CLOSED { color: #475569; }

/* Configure layout */
.configure-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; overflow: auto; max-height: 80vh;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.panel::-webkit-scrollbar { width: 10px; height: 10px; }
.panel::-webkit-scrollbar-track { background: var(--card-2); border-radius: 5px; }
.panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
.panel::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.panel h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.summary-row:last-of-type { border-bottom: none; }
.summary-total { font-size: 30px; font-weight: 800; color: var(--navy); }

/* Forms */
.form-page { max-width: 440px; margin: 60px auto; }

/* Form / inquiry panels grow with content — avoid nested scroll hiding submit */
.form-page .panel,
.inquiry-panel.panel,
.inquiry-panel {
  max-height: none;
  overflow: visible;
}

.form-page-wide { max-width: 960px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; background: var(--card-2); color: var(--text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(216,211,200,0.25);
}
.form-error { color: var(--danger); font-size: 14px; margin: 10px 0; min-height: 20px; }

/* Status badges */
.status { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-PENDING_PAYMENT, .status-PENDING, .status-OPEN { background: rgba(250,204,21,0.15); color: #facc15; }
.status-READY { background: rgba(216,211,200,0.15); color: var(--link-dark); }
.status-ACTIVE, .status-CONFIRMED, .status-ANSWERED, .status-PAID { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-SUSPENDED, .status-EXPIRED, .status-FAILED, .status-UNPAID { background: rgba(248,113,113,0.15); color: #f87171; }
.status-CANCELLED, .status-CLOSED { background: rgba(148,163,184,0.15); color: #94a3b8; }

/* Awaiting-payment progress bar (freshest pending order, dashboard order table) */
.provision-bar { height: 7px; border-radius: 4px; overflow: hidden; background: rgba(216,211,200,0.15); width: 100%; max-width: 110px; }
.provision-bar-fill {
  height: 100%; width: 100%;
  background: repeating-linear-gradient(45deg, var(--primary) 0 8px, #efece5 8px 16px);
  background-size: 22px 22px; animation: provisionStripe 0.9s linear infinite;
}
.provision-label { font-size: 11px; color: var(--muted); margin-top: 3px; }
@keyframes provisionStripe { from { background-position: 0 0; } to { background-position: 22px 0; } }
@media (prefers-reduced-motion: reduce) { .provision-bar-fill { animation: none; } }

/* Sold-out plan rows: dim everything except the status badge */
/* Tables inside panels: compact single-line cells, panel scrolls horizontally instead of overflowing */
.panel .server-table th, .panel .server-table td { white-space: nowrap; padding: 12px 10px; font-size: 14px; }

.server-table tr.sold-out td { opacity: 0.55; }
.server-table tr.sold-out td:last-child { opacity: 1; }

/* BTC banner */
.btc-banner {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: var(--text); border-radius: var(--radius-lg); padding: 48px; text-align: center; margin: 40px 0;
}
.btc-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
.btc-banner h2, .btc-banner p { position: relative; }
.btc-banner h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; }
.btc-banner p { opacity: 0.9; margin-top: 8px; font-size: 18px; }

/* Footer */
footer { background: var(--card-2); border-top: 1px solid var(--border); color: var(--muted); padding: 44px 0; margin-top: 80px; font-size: 14px; }
footer .logo { color: var(--text); margin-bottom: 10px; }

/* Modal */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 200; align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; max-width: 480px; width: 92%; max-height: 90vh; overflow-y: auto;
}
.crypto-address {
  background: var(--card-2); border: 1px dashed var(--primary); border-radius: 8px;
  padding: 12px; font-family: monospace; font-size: 13px; word-break: break-all; margin: 12px 0;
}

@media (max-width: 900px) {
  .features, .grid-3 { grid-template-columns: 1fr 1fr; }
  .region-cheapest-grid { grid-template-columns: 1fr; }
  .configure-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px;
    background: rgba(21,21,26,0.98);
    border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    max-height: min(70vh, 520px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > a,
  .nav-links .nav-drop,
  .nav-links #auth-area,
  .nav-links #lang-switch {
    padding: 12px 14px; border-radius: 10px;
  }
  .nav-links > a:hover { background: rgba(216,211,200,0.12); }
  .nav-drop-panel, .nav-sub-panel {
    position: static; margin-top: 6px; max-height: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; display: none;
    box-shadow: none; width: auto !important; left: auto;
  }
  .nav-drop.open .nav-drop-panel,
  .nav-drop.open .nav-sub-panel.active { display: grid; }
  .hero-stats { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .service-cards { grid-template-columns: 1fr; }
  .support-banner { flex-direction: column; text-align: center; }
  .support-banner .btn { margin-left: 0; }
  .inquiry-grid { grid-template-columns: 1fr; }
  .plan-cell { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dc-map-wrap { aspect-ratio: 4 / 3; }
}

/* Datacenters Worldwide map */
.dc-map-panel { text-align: center; margin-top: 24px; }
.dc-map-panel .section-sub { max-width: 640px; margin: 0 auto 28px; }
.dc-map-wrap {
  position: relative; aspect-ratio: 2 / 1; background: var(--card-2);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.dc-map-scroll { position: absolute; inset: 0; overflow: auto; scrollbar-width: none; }
.dc-map-scroll::-webkit-scrollbar { display: none; }
.dc-map-wrap.zoomed .dc-map-scroll { cursor: grab; }
.dc-map-scroll.dragging { cursor: grabbing; }
.dc-map-scale { transform-origin: 0 0; width: 100%; height: 100%; transition: transform 0.15s ease; }
.dc-map-scale svg { width: 100%; height: 100%; display: block; }
.dc-map-scale svg path { fill: #48484a; stroke: var(--bg); stroke-width: 0.6; }
.dc-map-zoom { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.dc-map-zoom-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: 16px; font-weight: 700; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.dc-map-zoom-btn:hover { background: var(--card-2); }
.dc-dot {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--dc-active); cursor: pointer; z-index: 1;
}
.dc-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  background: inherit; opacity: 0.25;
}
.dc-dot:hover::after, .dc-dot.open::after { background: var(--dc-hover); opacity: 0.45; }
.dc-dot.limited { background: var(--dc-limited); }
.dc-map-legend {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 24px; margin-top: 18px; font-size: 13px; color: var(--muted);
}
.dc-map-legend .lg-dot { display: inline-flex; align-items: center; gap: 7px; }
.dc-map-legend .lg-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--dc-active); }
.dc-map-legend .lg-dot.limited span { background: var(--dc-limited); }

.dc-popup {
  position: absolute; z-index: 2; width: 210px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; text-align: left; box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.dc-popup-close {
  position: absolute; top: 8px; right: 10px; background: none; border: none;
  color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px;
}
.dc-popup-close:hover { color: var(--text); }
.dc-popup-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--dc-active); margin-bottom: 4px; padding-right: 16px;
}
.dc-popup-title { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.dc-popup-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--muted); padding: 3px 0;
}
.dc-popup-row span:last-child { color: var(--text); text-align: right; }
.dc-popup-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; }

/* Datacenter region directory (map + leader-line layout) */
.dc-region-cards {
  display: flex; flex-direction: column; gap: 32px; margin-top: 28px; text-align: left;
  background: #e8dcc4; border-radius: var(--radius-lg); padding: 28px 24px;
}
.dc-region-cards-white { background: #fff; }
.dc-region-cards-dark {
  background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.dc-region-cards-dark .dc-region-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content; max-height: 150px; overflow-y: auto;
  padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.dc-region-cards-dark .dc-region-grid::-webkit-scrollbar { width: 6px; }
.dc-region-cards-dark .dc-region-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.dc-region-cards-dark .dc-region-grid::-webkit-scrollbar-track { background: transparent; }
.dc-region-cards-dark .dc-region-section h2 { color: var(--muted); border-bottom-color: var(--border); }
.dc-region-cards-dark .dc-region-entry {
  color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--border);
}
.dc-region-cards-dark .dc-region-count { color: var(--muted); background: var(--card-2); }

/* Apple Editorial-style paper card: light background, country chips arranged
   as a clickable array (flag + name pills) — used for the homepage region
   directory regardless of the surrounding page theme. */
.dc-region-cards-paper { background: #f5f5f7; border-radius: var(--radius-lg); gap: 10px; }
.dc-region-cards-paper .dc-region-section h2 { display: none; }
.dc-region-cards-paper .dc-region-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.dc-region-cards-paper .dc-region-entry {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid #e2e2e5; border-radius: 999px;
  background: #fff; color: #1d1d1f; font-size: 14px; font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.dc-region-cards-paper .dc-region-entry:hover {
  text-decoration: none; border-color: #e8590c; background: #fdf0e8; color: #e8590c;
}
.dc-region-cards-paper .dc-region-flag { filter: none; }
.dc-region-cards-paper .dc-region-count { color: #6e6e73; background: rgba(0,0,0,0.06); }
.dc-region-section h2 {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: rgba(43,36,23,0.65); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(43,36,23,0.2);
}
.dc-region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 24px; }
.dc-region-cards-dark .dc-region-section-emea .dc-region-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 48px);
  grid-auto-rows: 48px;
  height: 150px;
}
.dc-region-entry {
  display: flex; align-items: center; gap: 8px; padding: 5px 0;
  font-size: 14px; color: #2b2417; text-decoration: none;
}
.dc-region-entry:hover { text-decoration: underline; }
.dc-region-flag { font-size: 22px; filter: brightness(1.15) saturate(1.15); }
.dc-region-flag .flag-icon { width: 22px; height: 16px; vertical-align: -3px; border-radius: 3px; }
.dc-region-count {
  font-size: 11.5px; font-weight: 700; color: rgba(43,36,23,0.65);
  background: rgba(43,36,23,0.1); border-radius: 999px; padding: 2px 8px; margin-left: 2px;
}

/* Leader lines: static decorative SVG only, desktop only (no resize-aware
   pin-tracking geometry — see plan notes for upgrade path if ever needed). */
.dc-leader-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: none; }
@media (min-width: 1024px) { .dc-leader-lines { display: block; } }

@media (max-width: 900px) {
  .dc-region-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dc-region-grid { grid-template-columns: 1fr; }
}

/* Invoice print/PDF: hide everything except the invoice modal (rather than
   visibility:hidden, which would keep the rest of the dashboard's height and
   spill the print onto blank extra pages), compacted to fit one sheet */
@media print {
  :root {
    --bg: #fff; --card: #f7f7f8; --card-2: #f0f0f2; --text: #111; --muted: #555; --border: #ccc; --navy: #111;
  }
  header, .container > *:not(#invoice-modal) { display: none !important; }
  #invoice-modal { position: static !important; display: block !important; background: #fff; }
  #invoice-modal .modal {
    max-width: none; width: auto; margin: 0; max-height: none; overflow: visible;
    box-shadow: none; padding: 14px; background: #fff;
  }
  #invoice-modal .no-print { display: none !important; }
  #invoice-modal .summary-row { padding: 4px 0 !important; }
  #invoice-modal .inv-box { padding: 8px 10px !important; margin: 6px 0 !important; }
  #invoice-modal .crypto-address { padding: 8px !important; margin: 6px 0 !important; }
}

/* Legal / FAQ pages */
.legal-wrap { max-width: 820px; }
.legal-note { margin-top: 28px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* FAQ search + empty-state ticket handoff */
.faq-search { margin-bottom: 22px; }
.faq-search-label {
  display: block; font-size: 13px; font-weight: 700; color: var(--muted);
  margin-bottom: 8px; letter-spacing: 0.02em; text-transform: uppercase;
}
.faq-search-row { display: flex; gap: 10px; align-items: center; }
.faq-search-row input[type="search"] {
  flex: 1; min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 16px; padding: 12px 14px;
}
.faq-search-row input[type="search"]:focus {
  outline: none; border-color: rgba(216,211,200,0.55);
}
.faq-search-meta {
  min-height: 18px; margin-top: 8px; font-size: 13px; color: var(--muted);
}
.faq-empty { margin-top: 18px; }
.faq-empty-copy { color: var(--muted); margin: 0 0 16px; line-height: 1.55; }
.form-success {
  color: var(--success); font-size: 14px; margin: 10px 0 14px; min-height: 20px;
}
.form-success a { color: var(--primary); }

/* Markdown-like FAQ with accordion: Q. summary / A. panel */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(216,211,200,0.28); }
.faq-q {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 18px 52px 18px 22px;
  position: relative;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}
.faq-item[open] > .faq-q::after { content: '–'; }
.faq-q:hover { background: rgba(255,255,255,0.03); }
.faq-q .faq-prefix {
  flex: none;
  color: var(--primary);
  font-weight: 800;
  min-width: 1.4em;
}
.faq-q-text { flex: 1; min-width: 0; }
.faq-a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 4px 22px 20px;
  margin: 0 22px 18px 22px;
  border-left: 3px solid rgba(216,211,200,0.45);
  background: rgba(255,255,255,0.03);
  border-radius: 0 10px 10px 0;
  padding-top: 14px;
  padding-right: 16px;
  padding-bottom: 14px;
  padding-left: 16px;
}
.faq-a > .faq-prefix {
  flex: none;
  min-width: 1.4em;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.faq-a-body { flex: 1; min-width: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq-a-body p { margin: 0 0 10px; }
.faq-a-body p:last-child { margin-bottom: 0; }
.faq-a-body ul { margin: 8px 0 0; padding-left: 1.2em; }
.faq-a-body li { margin: 4px 0; }
.faq-a-body strong { color: var(--text); }
.faq-a-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--primary);
}
.faq-a-body a { color: var(--primary); }

/* Buying guides (use-cases / compare): 2-col blocks and unclipped panels.
   These pages reuse homepage hero / service-card / footer chrome; they must
   not inherit the configure-page panel max-height. */
.guide-overlap {
  margin: -48px auto 24px;
  position: relative;
  z-index: 1;
}
.guide-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.guide-split .panel {
  max-height: none;
  overflow: visible;
}
.guide-split .panel p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.guide-split .panel p + p { margin-top: 12px; }
.guide-split .service-card {
  display: flex;
  flex-direction: column;
}
.guide-split .service-card .svc-link { margin-top: auto; }
@media (max-width: 900px) {
  .guide-split { grid-template-columns: 1fr; }
  .guide-overlap { margin-top: -24px; }
}

.faq-list, .faq-item, .faq-q-text, .faq-a-body { overflow-wrap: anywhere; word-break: break-word; }
.faq-list { max-width: 100%; }
