/* Xray Console — clean dark admin theme. */

:root {
  --bg: #0b0f17;
  --bg-soft: #111827;
  --surface: #151c2b;
  --surface-2: #1b2436;
  --border: #283349;
  --border-soft: #1f2a3d;
  --text: #e7ecf4;
  --text-dim: #9aa7bd;
  --text-faint: #6b7888;
  --accent: #5b8cff;
  --accent-strong: #3b6fe0;
  --success: #34d399;
  --danger: #f87171;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(91, 140, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(52, 211, 153, 0.06), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.86em; }
a { color: inherit; text-decoration: none; }

.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 550;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { background: #222d44; border-color: #34425e; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.07); background: linear-gradient(180deg, var(--accent), var(--accent-strong)); }
.btn-danger { background: transparent; border-color: #4a2a32; color: var(--danger); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.12); border-color: #6b3640; }

/* ---------- inputs ---------- */
.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-faint); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--text-dim); font-weight: 550; }
.date-input { color-scheme: dark; width: auto; }

/* ---------- toast / empty ---------- */
.toast {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.toast-success { border-color: rgba(52, 211, 153, 0.4); color: #b9f3da; background: rgba(52, 211, 153, 0.08); }
.toast-error { border-color: rgba(248, 113, 113, 0.4); color: #ffd1d1; background: rgba(248, 113, 113, 0.08); }
.empty { padding: 36px 16px; text-align: center; color: var(--text-faint); font-size: 14px; }

/* ---------- boot / cover / signin ---------- */
.app-root { min-height: 100vh; }

.boot, .signin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.boot-card { display: flex; align-items: center; gap: 10px; color: var(--text-dim); }
.boot-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

/* ---------- public cover site ---------- */
.site { min-height: 100vh; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 11px; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 15, 23, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 15px 26px;
}
.site-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.site-logo-icon { color: var(--accent); width: 24px; height: 24px; }
.site-logo-name { font-size: 18px; letter-spacing: -0.02em; }

.hero {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center;
  padding: 80px 26px 64px;
}
.hero-eyebrow {
  color: var(--accent); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.hero-title { font-size: 46px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 720; }
.hero-sub { color: var(--text-dim); font-size: 18px; margin: 20px 0 0; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { color: var(--text-faint); font-size: 13px; margin-top: 16px; }

/* hero dashboard widget */
.chart-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.chart-head { display: flex; align-items: center; justify-content: space-between; }
.chart-title { font-weight: 600; font-size: 14px; color: var(--text-dim); }
.chart-live { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--success); }
.chart-metric { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.chart-metric strong { font-size: 30px; font-weight: 720; letter-spacing: -0.02em; }
.chart-metric-label { color: var(--text-faint); font-size: 12px; }
.chart-svg { width: 100%; height: 150px; display: block; }
.chart-foot { display: flex; justify-content: space-between; color: var(--text-faint); font-size: 11px; margin-top: 6px; }

.section { max-width: 1140px; margin: 0 auto; padding: 72px 26px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-eyebrow {
  color: var(--accent); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.section-title { font-size: 32px; letter-spacing: -0.02em; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.feature:hover { border-color: var(--border); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(91, 140, 255, 0.12); color: var(--accent); margin-bottom: 16px;
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14px; line-height: 1.55; }

/* steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 24px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(91, 140, 255, 0.14); color: var(--accent);
  font-weight: 700; font-size: 16px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14px; line-height: 1.55; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px;
}
.plan-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-badge {
  position: absolute; top: -11px; left: 28px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 12px; border-radius: 999px;
}
.plan-name { font-size: 18px; }
.plan-price { font-size: 32px; font-weight: 720; letter-spacing: -0.02em; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.check-list li { position: relative; padding-left: 30px; color: var(--text); font-size: 14px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.15); color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.plan-cta { justify-content: center; }

/* faq */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 15px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin-top: 12px; }

/* cta + footer */
.cta-band { max-width: 880px; margin: 0 auto; text-align: center; padding: 64px 26px; }
.cta-band h2 { font-size: 30px; letter-spacing: -0.02em; }
.cta-band p { color: var(--text-dim); font-size: 17px; margin: 14px 0 28px; }

.site-footer { border-top: 1px solid var(--border-soft); margin-top: 40px; }
.footer-bottom {
  max-width: 1140px; margin: 0 auto; padding: 24px 26px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--text-faint); font-size: 13px; flex-wrap: wrap;
}
.footer-copy { margin-right: auto; margin-left: 16px; }
.footer-link { color: var(--text-dim); font-size: 14px; transition: color 0.15s; }
.footer-link:hover { color: var(--text); }

.signin-card {
  width: 100%; max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow);
}
.signin-head { text-align: center; margin-bottom: 4px; }
.signin-head h1 { font-size: 21px; margin-top: 8px; }
.signin-head p { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.signin-icon { width: 34px; height: 34px; color: var(--accent); }

/* ---------- panel layout ---------- */
.panel { min-height: 100vh; }
.panel-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.panel-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; }
.brand-icon { color: var(--accent); width: 22px; height: 22px; }
.brand-name { font-size: 16px; letter-spacing: -0.01em; }
.panel-header-right { display: flex; align-items: center; gap: 14px; }
.panel-user { color: var(--text-dim); font-size: 14px; }
.panel-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px;
  display: flex; flex-direction: column; gap: 20px;
}

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.tile-top { display: flex; align-items: center; gap: 8px; color: var(--text-dim); }
.tile-top .icon { color: var(--accent); width: 16px; height: 16px; }
.tile-label { font-size: 13px; font-weight: 550; }
.tile-value { font-size: 24px; font-weight: 680; letter-spacing: -0.02em; }
.tile-hint { font-size: 12px; color: var(--text-faint); }

/* ---------- card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card-title h2 { font-size: 18px; }
.card-title h3 { font-size: 16px; }
.card-title p { color: var(--text-dim); font-size: 13px; margin-top: 3px; }
.card-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box .icon { position: absolute; left: 11px; color: var(--text-faint); width: 16px; height: 16px; pointer-events: none; }
.search-box .input { padding-left: 34px; width: 220px; }
.count-chip {
  font-size: 13px; color: var(--text-dim);
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 5px 11px; white-space: nowrap;
}
.create-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.create-form .input { max-width: 280px; }
.create-error { color: var(--danger); font-size: 13px; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; }
.data-table thead th { border-bottom: 1px solid var(--border); color: var(--text-dim); font-weight: 550; }
.data-table tbody tr { border-bottom: 1px solid var(--border-soft); transition: background 0.12s; }
.data-table tbody tr:last-child { border-bottom: none; }
.row-clickable { cursor: pointer; }
.row-clickable:hover { background: var(--surface-2); }
.row-dead { background: rgba(239, 68, 68, 0.055); }
.row-dead:hover { background: rgba(239, 68, 68, 0.09); }
.row-deleting {
  cursor: wait;
  opacity: 0.68;
  background: rgba(245, 158, 11, 0.08);
}
.row-deleting:hover { background: rgba(245, 158, 11, 0.1); }
.group-row td {
  padding: 10px 14px 8px;
  background: rgba(148, 163, 184, 0.07);
  border-bottom: 1px solid var(--border-soft);
}
.group-title { font-weight: 650; color: var(--text); }
.group-meta { margin-left: 10px; color: var(--text-faint); font-size: 12px; }
.th-sort { background: none; border: none; color: inherit; font: inherit; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; padding: 0; }
.th-sort:hover { color: var(--text); }
.th-arrow { font-size: 10px; color: var(--accent); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.strong { font-weight: 600; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-name { font-weight: 560; }
.group-input {
  width: 150px;
  min-width: 120px;
  padding: 7px 9px;
  font-size: 13px;
}
.config-badges { display: inline-flex; gap: 5px; }
.badge {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim);
}
.badge-primary { color: #cdddff; border-color: rgba(91, 140, 255, 0.4); background: rgba(91, 140, 255, 0.12); }
.badge-accent { color: #b9f3da; border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.14); }
.badge-hysteria { color: #e3cdff; border-color: rgba(167, 110, 255, 0.45); background: rgba(167, 110, 255, 0.14); }
.badge-tuic { color: #ace7ef; border-color: rgba(34, 211, 238, 0.42); background: rgba(34, 211, 238, 0.12); }
.badge-shadowsocks { color: #fed7aa; border-color: rgba(251, 146, 60, 0.42); background: rgba(251, 146, 60, 0.12); }
.badge-dead { color: #fecaca; border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.14); }
.row-actions { display: inline-flex; gap: 8px; justify-content: flex-end; align-items: center; }
.row-progress { color: var(--warning); font-size: 12px; white-space: nowrap; }

/* ---------- user detail ---------- */
.detail-top { display: flex; align-items: center; gap: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 14px; font-weight: 550; }
.back-link:hover { color: var(--text); }
.back-link .icon { width: 16px; height: 16px; }
.detail-title { font-size: 24px; }
.detail-body { display: flex; flex-direction: column; gap: 20px; }

.range-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: #34425e; }
.chip-active { background: rgba(91, 140, 255, 0.16); border-color: var(--accent); color: #dbe6ff; }
.custom-range { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.range-sep { color: var(--text-faint); }
.range-note { color: var(--text-faint); font-size: 13px; margin-top: -6px; }

.transport-grid, .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.transport-card { gap: 14px; }
.transport-head { display: flex; align-items: center; justify-content: space-between; }
.transport-title { font-weight: 600; }
.qr-box { display: flex; justify-content: center; background: #fff; border-radius: var(--radius-sm); padding: 18px; }
.qr { width: 248px; height: 248px; max-width: 100%; display: block; }
.link-area {
  width: 100%; resize: vertical;
  background: var(--bg-soft); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-family: var(--mono); font-size: 12px; line-height: 1.5;
}
.link-area:focus { outline: none; border-color: var(--accent); }

.protocol-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.protocol-item {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0; padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.protocol-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.protocol-main strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.protocol-item code { color: var(--text-dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.protocol-status { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0; }
.protocol-on { color: var(--success); }
.protocol-off { color: var(--danger); }

.list-card { gap: 12px; }
.muted-note { color: var(--text-faint); font-size: 12px; }

/* domains card toolbar */
.domains-card { gap: 14px; }
.range-controls {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.excluded-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.domains-table code { word-break: break-all; }
.stat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stat-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--border-soft);
}
.stat-list li:last-child { border-bottom: none; }
.stat-list code { color: var(--text); word-break: break-all; }
.stat-count { color: var(--text-dim); font-size: 13px; white-space: nowrap; }

/* ---------- status + ports ---------- */
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.status-cell { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status-on { background: var(--success); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.status-off { background: var(--text-faint); }
.muted { color: var(--text-faint); }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4, 7, 12, 0.66);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; overflow-y: auto;
}
.modal-card {
  width: 100%; max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-soft);
}
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .tiles, .tiles-3 { grid-template-columns: repeat(2, 1fr); }
  .protocol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transport-grid, .detail-grid { grid-template-columns: 1fr; }
  .features-grid, .steps-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 60px 26px 52px; }
  .hero-title { font-size: 38px; }
}
@media (max-width: 600px) {
  .panel-main { padding: 18px 14px; }
  .panel-header { padding: 12px 16px; }
  .tiles, .tiles-3 { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: 1fr; }
  .search-box .input { width: 100%; }
  .card-tools { width: 100%; }
  .modal-overlay { padding: 16px 10px; }
  .site-header-inner { padding: 13px 16px; }
  .hero { padding: 56px 18px 48px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .features-grid, .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 18px; }
}
