@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --radius: 18px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --bg: #091424;
  --panel: rgba(15, 32, 56, .78);
  --panel-alt: #132846;
  --border: rgba(147, 176, 214, .14);
  --text: #f3f6fb;
  --text-dim: #93a5bc;
  --green: #f2c200;
  --green-fg: #1c1600;
  --green-dim: rgba(242, 194, 0, .16);
  --amber: #fee96c;
  --amber-fg: #2b2100;
  --red: #ed4245;
  --blue: #5c9eff;
  --ring: #f2c200;

  --overlay-subtle: rgba(147, 176, 214, .06);
  --overlay-soft: rgba(147, 176, 214, .1);
  --overlay-medium: rgba(147, 176, 214, .18);

  --shadow-sm: 0 10px 28px rgba(2, 8, 18, .32);
  --shadow-md: 0 16px 34px rgba(242, 194, 0, .12);
  --shadow-lg: 0 24px 60px rgba(2, 8, 18, .55);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  margin: 0;
  background-color: #091424;
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(242, 194, 0, .09), transparent 60%),
    radial-gradient(900px 600px at 95% 0%, rgba(60, 120, 200, .12), transparent 60%),
    linear-gradient(#091424, #091424);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

/* ---------- Top nav ---------- */

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 20, 36, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(9, 20, 36, .28);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topnav .brand { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.brand-link {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap;
}
.brand-link img { width: 26px; height: 26px; border-radius: var(--radius-sm); flex-shrink: 0; }
.brand-link .accent { color: var(--green); }

.topnav .links { display: flex; align-items: center; gap: 0.4rem; }

.topnav .links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color .12s, color .12s;
}

.topnav .links a:hover { color: var(--text); background: var(--overlay-subtle); }
.topnav .links a.active { color: var(--text); background: var(--panel-alt); }

.topnav .profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.topnav .avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem;
}

/* ---------- Panels / cards ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--overlay-subtle);
  border-bottom: 1px solid var(--border);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.panel-header h2 { margin: 0; font-size: 1rem; font-weight: 600; }

/* ---------- Pills / badges (tinted, not flat) ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  line-height: 1.3;
}

.pill-running { background: color-mix(in oklab, var(--green) 16%, transparent); border-color: color-mix(in oklab, var(--green) 32%, transparent); color: var(--green); }
.pill-off { background: color-mix(in oklab, var(--text-dim) 12%, transparent); border-color: color-mix(in oklab, var(--text-dim) 28%, transparent); color: var(--text-dim); }
.pill-warn { background: color-mix(in oklab, var(--amber) 18%, transparent); border-color: color-mix(in oklab, var(--amber) 35%, transparent); color: var(--amber); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ---------- Buttons ---------- */

button, .btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  transition: opacity .15s, background-color .15s, color .15s, border-color .15s, transform .08s;
}

button:active { transform: translateY(1px); }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.nav-action { margin-left: 0.9rem; color: var(--text-dim); font-size: 0.85rem; }
.nav-action:hover { color: var(--text); }

/* ---------- Auth pages ---------- */

.auth-wrap { min-height: calc(100vh - 61px); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { margin: 0 0 1.5rem; font-size: 1.4rem; text-align: center; font-weight: 700; }

.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.4rem; font-weight: 500; }
.form-input {
  width: 100%; padding: 0.6rem 0.8rem; background: var(--overlay-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem; font-family: inherit;
  transition: border-color .12s, box-shadow .12s, background-color .12s;
}
.form-input:focus {
  outline: none; border-color: var(--ring); background: var(--panel);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 45%, transparent);
}

.btn-primary {
  width: 100%; padding: 0.7rem; background: var(--green); color: var(--green-fg); font-weight: 700;
  border: none; border-radius: var(--radius-sm); font-size: 0.9rem; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: opacity .15s, transform .08s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary:active { transform: translateY(1px); }

.form-error { color: var(--red); font-size: 0.85rem; margin-bottom: 1rem; min-height: 1.2em; }
.form-success { color: var(--green); font-size: 0.85rem; margin-bottom: 1rem; min-height: 1.2em; }
.form-hint { color: var(--text-dim); font-size: 0.8rem; margin-top: 1rem; text-align: center; }

.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Toast notifications ---------- */

.toast-stack {
  position: fixed; top: 1rem; right: 1rem; z-index: 1000;
  display: flex; flex-direction: column; gap: 0.6rem; max-width: min(360px, calc(100vw - 2rem));
}

.toast {
  display: flex; align-items: flex-start; gap: 0.65rem;
  background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--green);
  border-radius: var(--radius-md); padding: 0.8rem 1rem; box-shadow: var(--shadow-lg);
  font-size: 0.85rem; color: var(--text);
  animation: toast-in .22s cubic-bezier(.16,1,.3,1);
}
.toast--warn { border-left-color: var(--amber); }
.toast--error { border-left-color: var(--red); }
.toast.toast--leaving { animation: toast-out .18s ease forwards; }

.toast-icon { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-top: 0.05rem; color: var(--green); }
.toast--warn .toast-icon { color: var(--amber); }
.toast--error .toast-icon { color: var(--red); }

.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; margin-bottom: 0.15rem; }
.toast-desc { color: var(--text-dim); font-size: 0.8rem; line-height: 1.4; }

.toast-close {
  flex-shrink: 0; background: none; border: none; color: var(--text-dim); cursor: pointer;
  padding: 0.1rem; line-height: 1; font-size: 1rem;
}
.toast-close:hover { color: var(--text); }

@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(16px); } }

/* ---------- Skeleton loading shimmer ---------- */

.skeleton {
  display: inline-block;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--overlay-subtle) 0%, var(--overlay-soft) 50%, var(--overlay-subtle) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  color: transparent !important;
}

/* ---------- Hosting shop surfaces ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(9, 20, 36, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(9, 20, 36, .28);
}

.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.site-header .brand { display: flex; align-items: center; gap: .8rem; color: var(--green); font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--green), #ffe06b); display: grid; place-items: center; color: var(--green-fg); font-weight: 800; overflow: hidden; }
.brand-mark__text { display: grid; place-items: center; width: 100%; height: 100%; }
.brand-logo-preview { display: none; width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .35rem; }
.nav-links a { padding: .6rem .7rem; border-radius: 999px; color: rgba(255, 255, 255, .85); white-space: nowrap; transition: 180ms ease; }
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(242, 194, 0, .16); box-shadow: inset 0 0 0 1px rgba(242, 194, 0, .12); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1rem; border-radius: 999px; background: linear-gradient(135deg, var(--green), #ffe06b); color: var(--green-fg); font-weight: 800; box-shadow: 0 16px 34px rgba(242, 194, 0, .2); }
.section { padding: 3.8rem 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-title h1, .section-title h2 { margin: 0 0 .35rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-title p { margin: 0; color: var(--text-dim); }
.glass-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft, var(--shadow-md)); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.plan-card { display: flex; flex-direction: column; padding: 1.35rem; }
.plan-card.featured { border-color: var(--green); box-shadow: 0 18px 44px rgba(242, 194, 0, .14); }
.plan-card h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.plan-price { margin: 0 0 1.1rem; color: var(--green); font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.plan-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; color: var(--text-dim); font-size: .84rem; line-height: 1.45; }
.plan-list li::before { content: '✓'; margin-right: .45rem; color: var(--green); font-weight: 800; }
.plan-card .btn-primary, .plan-card .btn-secondary { width: 100%; margin-top: auto; padding: .7rem 1rem; text-align: center; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); padding: .7rem 1rem; font-weight: 700; }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.shop-forwho-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; padding: .25rem; gap: .25rem; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; }
.shop-forwho-btn { padding: .55rem .9rem; border-radius: 999px; background: transparent; color: var(--text-dim); font-weight: 700; }
.shop-forwho-btn.active { background: var(--green); color: var(--green-fg); }
.shop-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem; align-items: start; }
.shop-card { padding: 1.5rem; }
.shop-card h2, .shop-card h3 { margin-top: 0; }
.field { display: grid; gap: .4rem; color: var(--text-dim); font-size: .85rem; }
.field input, .field textarea, .field select { width: 100%; padding: .7rem .8rem; color: var(--text); background: var(--overlay-subtle); border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.shop-amounts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 1.2rem; }
.giftcard-option { min-width: 62px; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--overlay-subtle); color: var(--text); font-weight: 700; }
.giftcard-option.active, .giftcard-option:hover { background: var(--green); border-color: var(--green); color: var(--green-fg); }
.shop-divider { height: 1px; margin: 1.2rem 0; background: var(--border); }
.activity-list { display: grid; gap: .1rem; }
.activity-item { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); color: var(--text-dim); font-size: .86rem; }
.activity-item:last-child { border-bottom: 0; }
.activity-item strong, .activity-item a { color: var(--green); }
.form-message { min-height: 1.2em; color: var(--green); font-size: .85rem; line-height: 1.45; }
.compare-table { overflow-x: auto; padding: 1.2rem; margin-top: 1rem; }
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--border); text-align: left; font-size: .85rem; }
.compare-table th { color: var(--text-dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 2.5rem 0; color: var(--text-dim); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 1.5rem; }
.footer .brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--green); font-family: var(--font-display); font-weight: 800; }
.footer h3 { color: var(--text); font-size: .95rem; }
.footer p { font-size: .82rem; line-height: 1.6; }
.footer a:hover { color: var(--green); }

@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } .shop-layout { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .navbar { align-items: flex-start; flex-wrap: wrap; } .nav-links { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; } .section { padding: 2.5rem 0; } }
@media (max-width: 520px) { .container { width: min(100% - 1.25rem, 1180px); } .pricing-grid, .footer-grid { grid-template-columns: 1fr; } .section-title { display: block; } }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 640px) {
  .topnav { flex-wrap: wrap; gap: 0.6rem; padding: 0.75rem 1rem; }
  .topnav .links { gap: 0.25rem; flex-wrap: wrap; }
  .topnav .profile { flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; }
  .nav-action { margin-left: 0; }

  .page { padding: 1rem; }

  .auth-wrap { padding: 1rem; }
  .auth-card { max-width: 100%; }
  .auth-card-body { padding: 1.5rem 1.25rem; }
}

/* ---------- Staff Dashboard Tabs ---------- */

.staff-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  width: fit-content;
}

.staff-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all .12s ease;
}

.staff-tab.active {
  background: var(--green);
  color: var(--green-fg);
  font-weight: 700;
}

.staff-tab:hover:not(.active) {
  color: var(--text);
  background: var(--overlay-subtle);
}

.staff-content-pane {
  display: none;
}

.staff-content-pane.active {
  display: block;
}

/* ---------- Staff VM Table ---------- */

.staff-vm-table {
  width: 100%;
  border-collapse: collapse;
}

.staff-vm-table th, .staff-vm-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  white-space: nowrap;
}

.staff-vm-table th {
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.staff-vm-table tr:hover td {
  background: var(--panel-alt);
}

.staff-vm-actions {
  display: flex;
  gap: 0.4rem;
}

.staff-vm-actions button {
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.staff-vm-actions button:hover {
  border-color: var(--green);
  color: var(--green);
}

.staff-vm-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Smile Hosting theme (matches smilehosting.tech) ---- */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -0.015em; }
.topnav, .site-header, .buy-header { background: rgba(9, 20, 36, .78) !important; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(147, 176, 214, .14); box-shadow: none; }
.btn-primary, .nav-cta { background: linear-gradient(180deg, #ffd84d, #f2c200); color: #1c1600; box-shadow: 0 8px 20px rgba(242, 194, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .35); }
.panel, .card, .plan { border-color: rgba(147, 176, 214, .14); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(242, 194, 0, .22); }

/* ==========================================================================
   Smile Hosting parity - the same layout and components as smilehosting.tech
   (Hosting Website/assets/css/styles.css). Everything above still works; this
   brings the sizes, corners, header, sidebar, cards and footer in line.
   ========================================================================== */
:root {
  --primary: #f2c200; --primary-2: #ffd84d; --primary-ink: #1c1600; --primary-soft: rgba(242, 194, 0, .13);
  --surface: #0f2038; --surface-2: #132846; --surface-3: #183152;
  --text-2: #d3dce8; --muted: #93a5bc; --faint: #677c96;
  --border-2: rgba(147, 176, 214, .26); --border-accent: rgba(242, 194, 0, .38);
  --success: #6ee7a0; --danger: #fb8f8f;
  --radius: 12px; --radius-sm: 9px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 16px;
  --shadow-soft: 0 10px 28px rgba(2, 8, 18, .32); --shadow: 0 24px 60px rgba(2, 8, 18, .55);
  --panel: var(--surface); --panel-alt: var(--surface-2);
}
body { font-size: 15px; line-height: 1.6; background-attachment: fixed; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.container { width: min(1200px, calc(100% - 2.5rem)); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.muted { color: var(--muted); }

/* ---- brand: logo tile + "Smile Corp", like "Smile Hosting" */
.brand, .site-header .brand, .footer .brand, .sidebar .brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--text); text-transform: none; white-space: nowrap;
}
.brand b { color: var(--primary); font-weight: 800; }
.brand-mark { position: relative; width: 36px; height: 36px; border-radius: 11px; flex: none; background: linear-gradient(135deg, var(--primary), #ffe27a); box-shadow: 0 6px 16px rgba(242, 194, 0, .18); overflow: hidden; display: grid; place-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- public header */
.site-header, .topnav { position: sticky; top: 0; z-index: 40; background: rgba(9, 20, 36, .78) !important; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--border); box-shadow: none; }
.site-header .navbar { display: flex; align-items: center; gap: 1.5rem; height: 68px; padding: 0; }
.site-header .nav-links { display: flex; align-items: center; gap: .2rem; flex: 1; min-width: 0; justify-content: flex-start; flex-wrap: nowrap; }
.site-header .nav-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .75rem; border-radius: 8px; color: var(--muted); font-size: .92rem; font-weight: 500; white-space: nowrap; background: none; box-shadow: none; transition: color 140ms ease, background 140ms ease; }
.site-header .nav-links a:hover { color: var(--text); background: rgba(147, 176, 214, .08); box-shadow: none; }
.site-header .nav-links a.active { color: var(--text); background: none; box-shadow: none; }
.nav-spacer { flex: 1; }
.site-header .nav-links a.nav-login { color: var(--text-2); }
.site-header .nav-links a.nav-dash, .nav-cta {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  padding: .55rem 1rem; border-radius: 9px; border: 0;
  background: linear-gradient(180deg, var(--primary-2), var(--primary)); color: var(--primary-ink); font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 18px rgba(242, 194, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.site-header .nav-links a.nav-dash:hover, .nav-cta:hover { color: var(--primary-ink); background: linear-gradient(180deg, #ffe066, var(--primary-2)); transform: none; }
.mobile-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 900px) {
  .mobile-toggle { display: inline-flex; }
  .site-header .navbar { flex-wrap: wrap; height: auto; min-height: 64px; padding: .6rem 0; }
  .site-header .nav-links { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: .4rem 0 .8rem; }
  .site-header .nav-links.open { display: flex; }
  .site-header .nav-links .nav-spacer { display: none; }
  .site-header .nav-links a.nav-dash { justify-content: center; margin-top: .4rem; }
}

/* ---- header menu groups (nav.js): dropdowns on computers, tap-to-open sections on phones */
.nav-group { position: relative; }
.nav-group-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .75rem; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; transition: color 140ms ease, background 140ms ease; }
.nav-group-btn:hover, .nav-group.open .nav-group-btn, .nav-group.has-active .nav-group-btn { color: var(--text); }
.nav-group-btn:hover { background: rgba(147, 176, 214, .08); }
.nav-chev { width: 15px; height: 15px; opacity: .7; transition: transform 160ms ease; }
.nav-group.open .nav-chev { transform: rotate(180deg); }
.nav-menu { display: none; }
.site-header .nav-links .nav-menu a { display: grid; gap: .1rem; padding: .55rem .7rem; border-radius: 8px; white-space: normal; color: var(--text); }
.site-header .nav-links .nav-menu a b { font-weight: 600; font-size: .9rem; }
.site-header .nav-links .nav-menu a span { color: var(--muted); font-size: .78rem; font-weight: 400; }
.site-header .nav-links .nav-menu a.active b { color: var(--primary); }
@media (min-width: 901px) {
  .nav-menu { position: absolute; top: 100%; left: 0; z-index: 50; min-width: 250px; padding: .4rem; margin-top: .35rem; border: 1px solid var(--border); border-radius: 12px; background: #0d1a2e; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
  .nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
  .nav-group:hover .nav-menu, .nav-group.open .nav-menu { display: grid; }
}
@media (max-width: 900px) {
  .site-header .nav-links .nav-group { border-bottom: 1px solid var(--border); }
  .nav-group-btn { width: 100%; justify-content: space-between; padding: .8rem .4rem; font-size: 1rem; font-weight: 600; color: var(--text); border-radius: 0; }
  .nav-group-btn:hover { background: none; }
  .nav-group.open .nav-menu { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; padding: 0 0 .7rem; }
  .site-header .nav-links .nav-menu a { padding: .55rem .6rem; background: rgba(147, 176, 214, .06); }
  .site-header .nav-links a.nav-dash { margin-top: .8rem; }
}

/* ---- buttons (the full-width default on forms is kept) */
.btn-primary { border-radius: 10px; font-weight: 650; padding: .68rem 1.1rem; background: linear-gradient(180deg, var(--primary-2), var(--primary)); color: var(--primary-ink); box-shadow: 0 8px 20px rgba(242, 194, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .35); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-primary:hover:not(:disabled) { opacity: 1; background: linear-gradient(180deg, #ffe066, var(--primary-2)); box-shadow: 0 10px 26px rgba(242, 194, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); font-weight: 650; padding: .68rem 1.1rem; }
.btn-secondary:hover { background: var(--surface-3); border-color: rgba(147, 176, 214, .4); color: var(--text); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; border-radius: 12px; }
/* The pages' own button styles (btn-gold / btn-line / btn-ghost / credit-btn) were pill-shaped;
   Hosting's buttons have 10px corners. "html body" outranks each page's inline <style> block.
   Status badges keep their pill shape, as on Hosting. */
html body .btn-gold, html body .btn-line, html body .btn-ghost, html body .credit-btn { border-radius: 10px; }

/* ---- cards */
.panel, .glass-card, .plan-card, .auth-card, .stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, 0)), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.panel-header { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.plan-card { padding: 1.5rem; position: relative; transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.plan-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); }
.plan-card.featured { border-color: var(--border-accent); background: radial-gradient(420px 200px at 50% 0%, rgba(242, 194, 0, .12), transparent 70%), var(--surface-2); box-shadow: 0 24px 60px rgba(242, 194, 0, .09), var(--shadow-soft); }
.plan-card h3 { margin: 0; font-size: 1.1rem; }
.plan-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); margin: 1rem 0 1.1rem; }
.plan-list { color: var(--text-2); font-size: .92rem; flex: 1; align-content: start; margin: 0 0 1.2rem; }
.plan-list li { position: relative; padding-left: 1.6rem; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.05em; height: 1.05em; margin: 0; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c200' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.section { padding: 4rem 0; }
.section-title h1, .section-title h2 { letter-spacing: -0.03em; }

/* ---- forms */
.form-input, .field input, .field select, .field textarea {
  padding: .68rem .85rem; border-radius: 10px; border: 1px solid var(--border-2);
  background: rgba(6, 14, 26, .55); color: var(--text); font-size: .93rem;
}
.form-input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--border-accent); box-shadow: 0 0 0 3px rgba(242, 194, 0, .22); background: rgba(6, 14, 26, .8); }
.field > span, .form-row label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(242, 194, 0, .22); }

/* ---- footer, like Hosting's: five columns and a bottom bar */
.footer { margin-top: 2rem; padding: 3.5rem 0 2rem; color: var(--muted); border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(6, 13, 25, .4), rgba(6, 13, 25, .9)); font-size: .9rem; }
.footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
.footer h3 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 .9rem; }
.footer p { margin: 0 0 .55rem; font-size: .9rem; }
.footer a:hover { color: var(--text); }
.footer .brand { margin-bottom: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: .84rem; }
.footer-bottom a { display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-grid > div:first-child { grid-column: 1 / -1; } .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* Download section: "Need an older version?" in each app card */
.app-card details.older { margin-top: .8rem; border-top: 1px solid var(--border); padding-top: .6rem; text-align: left; }
.app-card details.older summary { cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 600; }
.app-card details.older summary:hover { color: var(--primary); }
.app-card .older-list { display: grid; gap: .45rem; margin-top: .6rem; max-height: 360px; overflow-y: auto; padding-right: .2rem; }
.app-card .older-platform { margin: .4rem 0 0; font-size: .9rem; }
.app-card .older-note { margin: 0; color: var(--muted); font-size: .8rem; }
.app-card .older-row { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.app-card .older-what { flex: 1; min-width: 0; font-size: .86rem; }
.app-card .older-meta { color: var(--muted); font-size: .78rem; }
.app-card .older-change { margin: .15rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.app-card .older-dl { flex: none; padding: .35rem .7rem; font-size: .8rem; }
