:root {
  --primary: #0071e3;
  --primary-dark: #0066cc;
  --link-dark: #2997ff;
  --navy: #f5f5f7;
  --accent: #ffb340;
  --bg: #000000;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --text: #f5f5f7;
  --muted: #98989d;
  --border: #38383a;
  --success: #22c55e;
  --danger: #f87171;
  --radius: 8px;
  --radius-lg: 18px;
  --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;
}

* { 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;
}

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;
}
.logo { font-size: 24px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; }
.logo-mark { flex-shrink: 0; margin-right: 9px; }
.logo span { color: var(--primary); }
.nav-links {
  display: flex; gap: 20px; align-items: center; flex-wrap: nowrap;
}
#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); }

/* 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: 230px; }
.nav-sub-panel { left: 238px; 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(0,113,227,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; }
.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; }

.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-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--link-dark); border: 1px solid var(--link-dark); }
.btn-outline:hover { background: rgba(41,151,255,0.1); }
.btn-dark { background: var(--navy); color: #fff; }
.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: #fff; padding: 14px 28px; border-radius: 980px;
  font-weight: 700; font-size: 15px; text-decoration: none; transition: background 0.15s;
}
.btn-order-lg:hover { background: var(--primary-dark); color: #fff; }
.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(0,113,227,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,113,227,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(0,113,227,0.28) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero-copy { text-align: left; }
@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-visual { animation: heroIn 0.7s var(--ease) 0.1s both; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,113,227,0.14); border: 1px solid rgba(0,113,227,0.4);
  color: #9cc0ff; 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 {
  background: linear-gradient(92deg, #7db2ff 0%, #0071e3 55%, #ffb340 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: 18px; opacity: 0.88; margin-bottom: 30px; max-width: 520px; }
.hero-service-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.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; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 0; margin-top: 40px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.04); backdrop-filter: blur(6px); width: fit-content; }
.stat-bubble { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 26px; }
.stat-bubble + .stat-bubble { border-left: 1px solid var(--border); }
.stat-bubble strong { font-size: 24px; font-weight: 800; color: #fff; }
.stat-bubble span { font-size: 12.5px; color: var(--muted); }

/* Hero 3D illustration */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,0.45)); }
.float-slow { animation: floatY 6s ease-in-out infinite; }
.float-fast { animation: floatY 4.2s ease-in-out 0.8s infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .float-slow, .float-fast,
  .hero-eyebrow, .hero h1, .hero p.sub, .hero-service-chips, .hero-cta, .hero-stats, .hero-visual {
    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);
  padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(0,113,227,0.5); }
.feature-card .icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255,179,64,0.12); border: 1px solid rgba(255,179,64,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;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,113,227,0.6);
  box-shadow: 0 18px 40px rgba(0,102,204,0.25);
}
.service-card .svc-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,113,227,0.14); border: 1px solid rgba(0,113,227,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: linear-gradient(120deg, var(--card) 0%, #14264a 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 38px; margin: 40px 0;
}
.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(0,113,227,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(0,113,227,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-tables.theme-light { background: var(--card-2); padding: 20px; border-radius: var(--radius-lg); }
.plan-card-grid { display: flex; flex-direction: column; gap: 16px; }
.plan-card { background: var(--card); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.plan-card.sold-out { opacity: 0.6; }
.plan-card-name { font-size: 22px; font-weight: 800; }
.plan-card-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; color: var(--muted); }
.plan-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 20px 0; }
.plan-spec { display: flex; align-items: center; gap: 12px; background: var(--card-2); border-radius: 10px; padding: 12px 14px; }
.plan-spec-icon { flex: none; width: 38px; height: 38px; border-radius: 9px; background: rgba(0,113,227,0.12); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.plan-spec-label { font-size: 12px; color: var(--muted); }
.plan-spec-value { font-size: 14.5px; font-weight: 600; }
.plan-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.plan-card-price { font-size: 26px; font-weight: 800; color: var(--navy); }
.plan-card-price small { font-size: 13px; 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;
}

/* 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(0,113,227,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: #fff; 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(0,113,227,0.08); }
.tree-row.selected { background: rgba(0,113,227,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: #0071e3; --primary-dark: #0066cc; --link-dark: #0066cc;
  background: #ffffff; color: #1d1d1f;
}
.theme-light .status-PENDING_PAYMENT, .theme-light .status-PENDING, .theme-light .status-OPEN { color: #92720a; }
.theme-light .status-READY { color: #0071e3; }
.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);
  padding: 26px; overflow: auto; max-height: 80vh;
}
.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-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(0,113,227,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(0,113,227,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(0,113,227,0.15); width: 100%; max-width: 110px; }
.provision-bar-fill {
  height: 100%; width: 100%;
  background: repeating-linear-gradient(45deg, var(--primary) 0 8px, #5b9bff 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: linear-gradient(120deg, #1c1c1e, #0071e3);
  color: #fff; 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; }
  .configure-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 320px; }
  .hero-stats { width: 100%; justify-content: space-between; }
  .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;
}
.dc-map-wrap svg { width: 100%; height: 100%; display: block; }
.dc-map-wrap svg path { fill: #48484a; stroke: var(--bg); stroke-width: 0.6; }
.dc-dot {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--success); 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 { opacity: 0.45; }
.dc-dot.limited { background: var(--primary); }
.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(--success); }
.dc-map-legend .lg-dot.limited span { background: var(--primary); }

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

/* 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; }
}
