:root {
  --bg: #f4f7fb;
  --panel: #fff;
  --ink: #172033;
  --muted: #667085;
  --line: #d8e0ea;
  --blue: #1565c0;
  --blue-dark: #0d47a1;
  --green: #10763f;
  --yellow: #966000;
  --red: #b42318;
  --navy: #10233f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

a { color: inherit; }

.site-header,
.site-footer,
main {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  color: var(--navy);
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
}

.top-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.top-nav a,
.site-footer a,
.link-button {
  border: 0;
  background: transparent;
  color: #334155;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 9px;
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 28px;
  align-items: center;
  padding: 46px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 54px;
  line-height: 1;
}

.subtitle {
  margin: 0;
  color: #24324a;
  font-size: 27px;
  font-weight: 750;
}

.hero-line {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 35, 63, .10);
  overflow: hidden;
}

.mini-toolbar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.mini-table {
  display: grid;
  grid-template-columns: 1fr 1fr .8fr;
  gap: 1px;
  background: #e5ebf3;
  padding: 1px;
}

.mini-table span,
.mini-table b {
  background: #fff;
  padding: 12px;
}

.mini-table span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.mini-table .ok { color: var(--green); }
.mini-table .review { color: var(--yellow); }

.panel,
.pricing {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(28, 39, 60, .05);
  margin-bottom: 16px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 0;
}

.panel-head h2,
.pricing h2,
.price-card h3,
.modal-card h2 {
  margin: 0 0 4px;
}

.panel-head p,
.price-card p,
.advanced-body p {
  margin: 0;
  color: var(--muted);
}

.plan-pill {
  border: 1px solid #b9d4f6;
  border-radius: 999px;
  background: #edf5ff;
  color: #174f94;
  padding: 6px 10px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}

.pro-status {
  border: 1px solid #96d7b2;
  border-radius: 999px;
  background: #eaf8ef;
  color: #146033;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.account-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 18px 0;
}

.mode-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.mode-card.active {
  border-color: #8cbff5;
  background: #f6fbff;
  box-shadow: inset 0 0 0 1px #cce3fb;
}

.mode-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.mode-card b {
  font-size: 17px;
}

.mode-card small {
  color: var(--muted);
  font-size: 13px;
}

.mode-card em {
  display: inline-block;
  margin-left: 6px;
  border-radius: 999px;
  background: #edf4fd;
  color: #2d4f78;
  padding: 2px 7px;
  font-size: 11px;
  font-style: normal;
}

.custom-beta {
  margin: 14px 18px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #d7e5f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.custom-beta p {
  margin: 4px 0 0;
  color: var(--muted);
}

.custom-beta input[type="file"] {
  display: none;
}

.custom-beta span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

.drop-zone {
  margin: 18px;
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 4px;
  border: 2px dashed #95b7e2;
  border-radius: 8px;
  background: #fbfdff;
  cursor: pointer;
  transition: .15s ease;
}

.drop-zone strong {
  display: block;
  font-size: 18px;
}

.drop-zone span,
.file-list,
.toolbar span {
  color: var(--muted);
}

.drop-zone.drag {
  background: #eef6ff;
  border-color: var(--blue);
}

input[type="file"] { display: none; }

.file-list {
  padding: 0 18px 16px;
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 4px 7px 0 0;
  padding: 5px 9px;
  border: 1px solid #cfe1f8;
  border-radius: 999px;
  background: #edf5ff;
  color: #24527e;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.export-limit {
  margin: 0 18px 18px;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 750;
}

button,
.button-link {
  border: 0;
  border-radius: 8px;
  padding: 10px 13px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.primary {
  background: var(--blue);
  color: #fff;
}

.primary:hover:not(:disabled) { background: var(--blue-dark); }

.secondary {
  border: 1px solid #cdddf1;
  background: #edf4fd;
  color: #2d4f78;
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  padding: 16px 18px;
}

.summary div,
.sender-grid div,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.summary span,
.sender-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary b {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.1;
}

.notice {
  padding: 11px 18px;
  border-top: 1px solid #f1dfad;
  border-bottom: 1px solid #f1dfad;
  background: #fff9eb;
  color: #8b4b00;
}

.empty {
  padding: 38px 18px;
  text-align: center;
  color: var(--muted);
}

.hidden { display: none !important; }

.table-wrap {
  overflow: auto;
  max-height: 560px;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f6fa;
  color: #4e5d70;
  text-align: left;
  text-transform: uppercase;
  font-size: 11px;
}

th,
td {
  padding: 8px;
  border-bottom: 1px solid #edf1f5;
  vertical-align: top;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 750;
  white-space: nowrap;
}

.status-ok { background: #e6f7ed; color: var(--green); }
.status-review { background: #fff6df; color: var(--yellow); }
.status-blocked { background: #ffebeb; color: var(--red); }

.pricing {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 12px;
  align-items: stretch;
  padding: 18px;
}

.price-card b {
  display: block;
  margin-top: 12px;
  font-size: 22px;
}

.price-card.highlighted {
  border-color: #9ec5f4;
  background: #f8fbff;
}

.advanced summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 750;
}

.advanced-body {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.sender-note {
  border: 1px solid #f1dfad;
  border-radius: 8px;
  background: #fff9eb;
  padding: 11px 12px;
}

.sender-config {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sender-config summary {
  padding: 12px;
}

.sender-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.sender-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.sender-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
}

.sender-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 40px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(16, 35, 63, .48);
  padding: 18px;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(16, 35, 63, .28);
}

.modal-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
}

.modal-price {
  display: inline-block;
  margin: 6px 0 2px;
  font-size: 22px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.auth-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.auth-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  border: 1px solid #c6d4e2;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
}

.auth-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.content-page {
  padding-bottom: 48px;
}

.content-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 34px;
  margin: 20px 0 16px;
}

.content-hero h1 {
  font-size: 40px;
}

.content-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  margin-bottom: 14px;
}

.content-section h2 {
  margin-top: 0;
}

.cta-box {
  border: 1px solid #b9d4f6;
  border-radius: 8px;
  background: #edf5ff;
  padding: 18px;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .pricing {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .summary,
  .sender-grid,
  .feature-list,
  .mode-grid,
  .sender-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .summary,
  .sender-grid,
  .feature-list,
  .custom-beta,
  .mode-grid,
  .sender-form {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .site-footer {
    flex-direction: column;
  }

}
