/* SMS Aggregator — single lightweight stylesheet
   Light content surface + dark navy chrome (topbar + sidebar), one accent. */

:root {
  /* chrome (navigation) */
  --navy: #0e1726;
  --navy-2: #182338;
  --chrome-text: #b9c5d9;
  --chrome-faint: #7d8ba6;
  --chrome-line: rgba(255, 255, 255, 0.07);

  /* content surface */
  --bg: #f4f5f8;
  --panel: #ffffff;
  --surface-2: #f8fafc;
  --border: #e4e8ef;
  --border-strong: #cfd6e0;
  --text: #1b2839;
  --ink-2: #3d4c63;
  --muted: #5f6f85;

  /* accent + semantics */
  --accent: #1d4ed8;
  --accent-dark: #1a41b4;
  --accent-soft: #e8effd;
  --ring: rgba(29, 78, 216, 0.25);
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --ok-line: #b5e5c8;
  --bad: #b91c1c;
  --bad-bg: #fef2f2;
  --bad-line: #f6c9c9;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --warn-line: #f4dfa4;
  --info: #0e7490;
  --info-bg: #ecfeff;
  --info-line: #b3e7f1;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14.5px/1.55 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 18px; }
h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 14.5px; font-weight: 650; margin: 0 0 10px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.ok-text { color: var(--ok); }
.danger { color: var(--bad); }

code {
  font: 12.5px/1.5 var(--mono);
  background: #eef1f6;
  color: var(--ink-2);
  padding: 1.5px 6px;
  border-radius: 5px;
  word-break: break-all;
}
pre.code {
  background: #0d1526;
  color: #d7e3f8;
  padding: 14px 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  font: 12.5px/1.6 var(--mono);
  white-space: pre;
  margin: 0;
}

/* icons */
.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.topbar :focus-visible, .sidebar :focus-visible { outline-color: #7ea6f8; }

/* ================= top bar ================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--navy);
  color: #fff;
  padding: 9px 20px;
  min-height: 54px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  flex: none;
}
.brand-mark .ico { width: 15px; height: 15px; stroke-width: 2; }
.topnav { display: flex; align-items: center; gap: 16px; font-size: 13.5px; }
.topnav > a { color: var(--chrome-text); font-weight: 500; }
.topnav > a:hover { color: #fff; text-decoration: none; }
.userchip { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who-name { color: #e6ecf6; font-weight: 600; font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-role { color: var(--chrome-faint); font-size: 11px; }
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--chrome-text);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.iconbtn:hover { background: var(--navy-2); color: #fff; }
.iconbtn .ico { width: 17px; height: 17px; }

/* ================= layout ================= */
.layout { display: flex; align-items: flex-start; }
.content-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar {
  width: 230px;
  flex: 0 0 230px;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  border-right: 1px solid var(--chrome-line);
  padding: 8px 8px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidenav { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.sidenav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--chrome-text);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidenav a .ico { width: 17px; height: 17px; opacity: 0.92; }
.sidenav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.sidenav a.on { background: var(--accent); color: #fff; font-weight: 600; }
.sidenav a.on .ico { opacity: 1; }
.nav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--chrome-faint);
  margin: 10px 10px 2px;
}
.sidenav .sep { height: 10px; }
.content { flex: 1; min-width: 0; padding: 26px 30px 48px; max-width: 1500px; }
.side-spacer { flex: 1 1 0; min-height: 8px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px 20px; }
.footer { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center; text-align: center; padding: 22px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }

/* ================= contacts (support) ================= */
.contacts { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.contact-link { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.contact-link:hover { color: var(--text); text-decoration: none; }
.contact-link .ico, .contact-card .ico { flex: none; }
.contact-link .ico { width: 14px; height: 14px; }
.contact-note { font-size: 12px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.contact-card { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); color: var(--text); font-weight: 600; }
.contact-card:hover { border-color: var(--accent); text-decoration: none; }
.contact-card .ico { width: 20px; height: 20px; color: var(--accent); }

/* support contacts in the customer sidebar */
.side-support { margin: 12px 2px 4px; padding: 10px; border: 1px solid var(--chrome-line); border-radius: 8px; background: var(--navy-2); }
.side-support-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--chrome-faint); margin-bottom: 7px; }
.side-contact { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--chrome-text); font-size: 12.5px; }
.side-contact span { overflow-wrap: anywhere; }
.side-contact:hover { color: #fff; text-decoration: none; }
.side-contact .ico { width: 14px; height: 14px; flex: none; }
.side-contact-note { margin-top: 7px; font-size: 11.5px; line-height: 1.45; color: var(--chrome-faint); }

/* ================= cards & stats ================= */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.card.narrow { max-width: 430px; margin: 48px auto; }
.center { text-align: center; }
.center-card { margin-top: 72px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px 16px;
}
.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.stat-value { font-size: 24px; font-weight: 750; margin: 3px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat-ico {
  position: absolute;
  top: 13px;
  right: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.stat-ico .ico { width: 17px; height: 17px; }

/* ================= grids ================= */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.grow { grid-column: 1 / -1; }
.grid-send { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }

/* ================= forms ================= */
label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="url"], select, textarea {
  width: 100%;
  margin-top: 5px;
  padding: 7px 11px;
  min-height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #a9b4c4; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
input[disabled] { background: #f2f4f7; color: var(--muted); cursor: not-allowed; }
textarea { min-height: 90px; resize: vertical; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: auto; margin: 0; accent-color: var(--accent); }

/* captcha */
.captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}
.captcha-img { flex: none; line-height: 0; }
.captcha-img svg { display: block; max-width: 100%; height: auto; }
.captcha-field { flex: 1; min-width: 120px; margin-bottom: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.filters label { margin-bottom: 0; min-width: 150px; }
.inline { display: inline; }
details summary { cursor: pointer; margin-bottom: 8px; font-weight: 600; color: var(--ink-2); }

/* ================= buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0 15px;
  min-height: 36px;
  font: 600 13.5px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn .ico { width: 15px; height: 15px; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn.ghost { background: transparent; border-color: var(--border-strong); color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); border-color: #a9b4c4; color: var(--text); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #991b1b; border-color: #991b1b; }
.btn.light { background: #fff; border-color: #fff; color: var(--navy); }
.btn.light:hover { background: #e8eefb; border-color: #e8eefb; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-sm { min-height: 31px; padding: 0 12px; font-size: 12.5px; }
button.link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--accent);
  cursor: pointer;
}
button.link:hover { text-decoration: underline; }
button.link.danger { color: var(--bad); }
.actions { white-space: nowrap; }
.actions form { margin-left: 8px; }

/* ================= tables ================= */
.tbl { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #eef1f5; vertical-align: top; }
.tbl thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.tbl tbody tr:hover { background: #f7f9fc; }
.tbl.kv th { width: 190px; color: var(--muted); font-weight: 500; background: transparent; }
.tbl.kv tbody tr:hover { background: transparent; }
table.tbl { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tbl td { font-variant-numeric: tabular-nums; }

/* ================= badges ================= */
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--muted);
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }

/* ================= alerts ================= */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 500;
}
.alert .ico { width: 17px; height: 17px; margin-top: 1px; }
.alert.ok { background: var(--ok-bg); color: #14532d; border: 1px solid var(--ok-line); }
.alert.bad { background: var(--bad-bg); color: #7f1d1d; border: 1px solid var(--bad-line); }

/* ================= chart ================= */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 10px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar { width: 70%; max-width: 44px; background: var(--accent); border-radius: 5px 5px 0 0; min-height: 2px; opacity: 0.9; }
.bar-col:hover .bar { opacity: 1; }
.bar-label { font-size: 10.5px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ================= pagination / tabs ================= */
.pagination { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.pg {
  border: 1px solid var(--border-strong);
  background: var(--panel);
  border-radius: 8px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.pg:hover { background: var(--surface-2); text-decoration: none; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab {
  border: 1px solid var(--border-strong);
  background: var(--panel);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.tab:hover { background: var(--surface-2); text-decoration: none; }
.tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.counter { font-size: 12.5px; margin: -4px 0 10px; }

/* ================= public / landing ================= */
.hero { text-align: center; padding: 58px 20px 30px; }
.hero h1 { font-size: 34px; margin-bottom: 10px; }
.hero .lead { max-width: 640px; margin: 0 auto 22px; color: var(--muted); font-size: 17px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 48px 0 36px; }
.hero-grid h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero-grid .lead { font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 54ch; margin: 0 0 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.code-card { border: 1px solid #1e293b; border-radius: 12px; overflow: hidden; background: #0d1526; }
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: #101b30;
  border-bottom: 1px solid #1e293b;
  font: 500 12px var(--mono);
  color: #93c5fd;
}
.code-card pre.code { background: transparent; border-radius: 0; }

.section { margin: 44px 0; }
.section-head h2 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 6px; }
.section-head .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; max-width: 62ch; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.feat-ico .ico { width: 19px; height: 19px; }
.feat h3 { margin: 0 0 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--panel); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.spec-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.spec {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--navy);
  border-radius: 14px;
  padding: 30px 34px;
  margin: 44px 0 10px;
}
.cta-band h2 { color: #fff; font-size: 21px; margin: 0 0 4px; }
.cta-band p { color: var(--chrome-text); margin: 0; font-size: 14px; }

/* ================= responsive ================= */
@media (max-width: 960px) {
  .layout { flex-direction: column; align-items: stretch; }
  .sidebar {
    width: 100%;
    flex: none;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--chrome-line);
    padding: 6px 8px 10px;
  }
  .sidenav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sidenav a { white-space: nowrap; }
  .sidenav .sep, .nav-label { display: none; }
  .side-support, .side-spacer { display: none; }
  .content { padding: 18px 16px 40px; }
  .topbar { flex-wrap: wrap; padding: 9px 14px; }
  .grid2, .grid-send, .hero-grid, .feat-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 26px; padding-top: 26px; }
  .steps { grid-template-columns: 1fr; }
  .who { display: none; }
  .content { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ================= license ================= */
.trial-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--warn-bg);
  color: var(--warn);
  border-bottom: 1px solid var(--warn-line);
  padding: 8px 18px;
  font-size: 13px;
}
.trial-banner .ico { width: 14px; height: 14px; flex: none; }
.trial-banner a { color: inherit; font-weight: 600; }
.lockwrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lockcard { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 30px 26px; max-width: 480px; width: 100%; text-align: center; }
.lockmark { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.lockmark .ico { width: 24px; height: 24px; }
.lockmsg { color: var(--ink-2); margin: 0 0 16px; }
.lockmeta { text-align: left; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; background: var(--surface-2); }
.lockmeta > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; }
.lockmeta span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.lockback { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); }
.rowactions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 220px; }
.rowactions .inline { display: flex; gap: 6px; align-items: center; }
