:root {
  --ink: #394063;
  --ink-strong: #29304f;
  --body: #55586b;
  --muted: #838697;
  --teal: #65c9d1;
  --teal-dark: #369ba5;
  --teal-soft: #e9f8f9;
  --coral: #ff905a;
  --coral-dark: #ea7740;
  --coral-soft: #fff1e9;
  --green: #36a777;
  --green-soft: #eaf8f1;
  --red: #d95f64;
  --red-soft: #fff0f0;
  --yellow: #d59636;
  --yellow-soft: #fff8e7;
  --paper: #ffffff;
  --canvas: #fbfcfd;
  --line: #e8eaf0;
  --line-strong: #d9dce6;
  --shadow-sm: 0 8px 28px rgba(57, 64, 99, 0.07);
  --shadow-lg: 0 24px 70px rgba(57, 64, 99, 0.13);
  --font-main: "Nunito", sans-serif;
  --font-copy: "Lato", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--body);
  background:
    radial-gradient(circle at 5% 13%, rgba(101, 201, 209, 0.15), transparent 25rem),
    radial-gradient(circle at 97% 34%, rgba(255, 144, 90, 0.1), transparent 22rem),
    var(--canvas);
  font-family: var(--font-copy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(101, 201, 209, 0.42);
  outline-offset: 3px;
}

.app-container {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

/* Brand header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 24px;
  isolation: isolate;
}

.app-header::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  content: "";
  background: rgba(251, 252, 253, 0.97);
  border-bottom: 1px solid rgba(57, 64, 99, 0.16);
  box-shadow: 0 8px 24px rgba(57, 64, 99, 0.045);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

#checker,
#results {
  scroll-margin-top: 112px;
}

.header-brand,
.header-actions,
.quota-badge,
.api-status-badge,
.btn,
.hero-proof,
.hero-proof span,
.section-intro,
.results-toolbar,
.filter-group,
.export-group,
.input-toolbar,
.left-tools,
.right-tools,
.stat-card,
.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
}

.header-brand { gap: 13px; }

.logo-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: var(--ink);
  background: linear-gradient(145deg, var(--teal-soft), #fff);
  border: 2px solid var(--teal);
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(57, 64, 99, 0.11);
}

.header-brand h1,
.hero-copy h2,
.card-header h3,
.section-intro h2,
.stat-value,
.modal-header h3 {
  color: var(--ink);
  font-family: var(--font-main);
}

.header-brand h1 {
  font-size: 1.26rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.header-brand h1 span { color: var(--coral); }

.subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.035em;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.quota-badge,
.api-status-badge {
  min-height: 38px;
  gap: 8px;
  padding: 7px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
}

.quota-badge {
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-color: rgba(101, 201, 209, 0.55);
}

.quota-badge svg { color: var(--teal-dark); }

.quota-badge.warning {
  color: #9a6518;
  background: var(--yellow-soft);
  border-color: #f0d99f;
}

.quota-badge.danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: #f1c7c9;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.status-dot.green {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(54, 167, 119, 0.12);
}

.status-dot.red {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 95, 100, 0.12);
}

.api-status-text {
  display: flex;
  align-items: center;
  gap: 7px;
}

.api-status-text small {
  padding-left: 7px;
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  font-size: 0.68rem;
  font-weight: 700;
}

/* Hero */
.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  align-items: center;
  gap: clamp(44px, 6vw, 82px);
  min-height: 650px;
  padding: 82px 0 90px;
  isolation: isolate;
}

.hero-section::before,
.hero-section::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero-section::before {
  top: 70px;
  left: -140px;
  width: 290px;
  height: 290px;
  background: rgba(101, 201, 209, 0.13);
  border-radius: 48% 52% 67% 33% / 41% 40% 60% 59%;
  transform: rotate(18deg);
}

.hero-section::after {
  right: -90px;
  bottom: 25px;
  width: 190px;
  height: 190px;
  background: rgba(255, 144, 90, 0.12);
  border-radius: 64% 36% 42% 58% / 54% 61% 39% 46%;
  transform: rotate(-14deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.step-label {
  color: var(--teal-dark);
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.eyebrow span {
  width: 28px;
  height: 3px;
  background: var(--coral);
  border-radius: 999px;
}

.hero-copy h2 {
  max-width: 650px;
  font-size: clamp(3.15rem, 5.1vw, 4.65rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-copy h2 em {
  position: relative;
  display: inline;
  color: var(--coral);
  font-style: normal;
}

.hero-copy h2 em::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  z-index: -1;
  height: 10px;
  content: "";
  background: rgba(101, 201, 209, 0.28);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.hero-copy > p {
  max-width: 610px;
  margin-top: 25px;
  color: var(--body);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-proof {
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 30px;
}

.hero-proof span {
  gap: 6px;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-proof i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 50%;
  font-size: 0.7rem;
  font-style: normal;
}

/* Cards and form controls */
.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.input-section {
  position: relative;
  z-index: 1;
  padding: clamp(25px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
}

.card-header { margin-bottom: 20px; }

.card-header .step-label {
  display: block;
  margin-bottom: 7px;
  color: var(--coral);
}

.card-header h3 {
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.card-header .hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

.input-wrapper textarea,
.text-input,
.search-box,
.select-input {
  width: 100%;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.input-wrapper textarea {
  min-height: 142px;
  padding: 16px 17px;
  resize: vertical;
  font-family: "Lato", sans-serif;
  font-size: 0.93rem;
  line-height: 1.65;
  outline: none;
  transition: 160ms ease;
}

.input-wrapper textarea::placeholder,
.text-input::placeholder,
.search-box input::placeholder { color: #a8aab5; }

.input-wrapper textarea:focus,
.text-input:focus,
.search-box:focus-within,
.select-input:focus {
  background: #fff;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(101, 201, 209, 0.14);
}

.input-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
}

.left-tools,
.right-tools,
.filter-group,
.export-group { gap: 9px; }

.btn {
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 10px 19px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.btn:hover:not(:disabled) { transform: translateY(-2px); }

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 9px 24px rgba(255, 144, 90, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  box-shadow: 0 12px 30px rgba(255, 144, 90, 0.32);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line-strong);
}

.btn-secondary:hover:not(:disabled) {
  color: var(--coral-dark);
  background: var(--coral-soft);
  border-color: rgba(255, 144, 90, 0.56);
}

.btn-ghost {
  min-height: 38px;
  padding: 8px 9px;
  color: var(--teal-dark);
  background: transparent;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--ink);
  background: var(--teal-soft);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.78rem;
}

.progress-container {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: var(--teal-soft);
  border-radius: 999px;
}

.progress-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  border-radius: inherit;
  transition: width 300ms ease;
}

/* Stats */
.section-intro {
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0 22px;
  border-top: 1px solid var(--line-strong);
}

.section-intro .step-label {
  display: block;
  margin-bottom: 5px;
}

.section-intro h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-intro > p {
  max-width: 310px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  min-width: 0;
  gap: 15px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 34px rgba(57, 64, 99, 0.1);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.stat-icon.total { color: var(--ink); background: #eef0f7; }
.stat-icon.clean { color: var(--green); background: var(--green-soft); }
.stat-icon.blacklisted { color: var(--red); background: var(--red-soft); }
.stat-icon.error { color: var(--yellow); background: var(--yellow-soft); }

.stat-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-yellow { color: var(--yellow) !important; }
.text-muted { color: var(--muted) !important; }
.text-right { text-align: right !important; }

/* Results */
.results-section {
  overflow: hidden;
  margin-bottom: 42px;
  box-shadow: var(--shadow-sm);
}

.results-toolbar {
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fff, #fdfdfd);
  border-bottom: 1px solid var(--line);
}

.filter-group { flex: 1; }

.search-box {
  display: flex;
  align-items: center;
  width: min(100%, 280px);
  gap: 9px;
  padding: 0 13px;
  transition: 160ms ease;
}

.search-box svg {
  flex: 0 0 auto;
  color: var(--teal-dark);
}

.search-box input {
  width: 100%;
  min-height: 42px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.84rem;
}

.select-input {
  width: auto;
  min-height: 42px;
  padding: 0 36px 0 13px;
  outline: 0;
  font-size: 0.84rem;
  cursor: pointer;
}

.status-select {
  position: relative;
  width: 220px;
  flex: 0 0 auto;
  font-family: var(--font-main);
}

.status-select-trigger {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 13px;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.status-select-trigger:hover {
  background: #fff;
  border-color: rgba(101, 201, 209, 0.85);
}

.status-select-trigger[aria-expanded="true"] {
  background: #fff;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(101, 201, 209, 0.14);
}

.status-select-value {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.status-select-indicator,
.option-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(101, 201, 209, 0.1);
}

.status-select-trigger[data-value="blacklisted"] .status-select-indicator,
.status-select-option[data-value="blacklisted"] .option-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 95, 100, 0.1);
}

.status-select-trigger[data-value="clean"] .status-select-indicator,
.status-select-option[data-value="clean"] .option-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(54, 167, 119, 0.1);
}

.status-select-trigger[data-value="error"] .status-select-indicator,
.status-select-option[data-value="error"] .option-dot {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(213, 150, 54, 0.1);
}

.status-select-chevron {
  flex: 0 0 auto;
  color: var(--ink);
  transition: transform 160ms ease;
}

.status-select-trigger[aria-expanded="true"] .status-select-chevron {
  transform: rotate(180deg);
}

.status-select-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  z-index: 40;
  padding: 7px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(57, 64, 99, 0.18);
  backdrop-filter: blur(12px);
}

.status-select-option {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 8px 34px 8px 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.status-select-option:hover,
.status-select-option:focus-visible {
  background: var(--teal-soft);
  outline: 0;
}

.status-select-option[aria-selected="true"] {
  color: var(--teal-dark);
  background: linear-gradient(90deg, var(--teal-soft), rgba(233, 248, 249, 0.35));
}

.status-select-option[aria-selected="true"]::after {
  position: absolute;
  right: 12px;
  content: "✓";
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.table-wrapper { width: 100%; overflow-x: auto; }

.results-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.results-table th {
  padding: 13px 17px;
  color: #8c8f9e;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-main);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.results-table td {
  padding: 16px 17px;
  color: var(--body);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.results-table tbody tr:last-child td { border-bottom: 0; }
.results-table tbody tr:not(.empty-row):hover td { background: #fcfefe; }

.domain-name {
  color: var(--ink) !important;
  font-family: var(--font-main);
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.71rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.badge-clean::before,
.badge-blacklisted::before,
.badge-error::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.badge-clean { color: #26845b; background: var(--green-soft); border-color: #c6ead7; }
.badge-blacklisted { color: #bd454b; background: var(--red-soft); border-color: #f1c9cb; }
.badge-error { color: #946219; background: var(--yellow-soft); border-color: #eedcae; }

.blacklist-tag,
.passed-tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 800;
}

.blacklist-tag { color: var(--red); background: var(--red-soft); }
.passed-tag { color: var(--green); background: var(--green-soft); }

.empty-state {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
  text-align: center;
}

.empty-state svg { margin-bottom: 15px; color: var(--teal); }

.empty-state p {
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 900;
}

.empty-state span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.81rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(41, 48, 79, 0.55);
  backdrop-filter: blur(9px);
}

.modal-card {
  width: min(100%, 760px);
  max-height: 88vh;
  overflow: hidden auto;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(41, 48, 79, 0.28);
}

.modal-card.modal-sm { width: min(100%, 500px); }

.modal-header {
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin-bottom: 7px;
  font-size: 1.35rem;
  font-weight: 900;
}

.btn-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--ink);
  background: #f3f4f7;
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.btn-close:hover { color: var(--coral-dark); background: var(--coral-soft); }

.modal-body { padding: 24px; }

.modal-section + .modal-section {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 900;
}

.blacklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.blacklist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px;
  background: var(--red-soft);
  border: 1px solid #f2d1d3;
  border-radius: 14px;
}

.blacklist-name {
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 900;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.delist-link {
  color: var(--red);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.delist-link:hover { text-decoration: underline; }

.passed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.transcript-box {
  max-height: 250px;
  overflow: auto;
  padding: 16px;
  color: #586071;
  background: #f6f8f9;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.73rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.83rem;
  font-weight: 900;
}

.text-input {
  min-height: 46px;
  padding: 0 13px;
  outline: 0;
}

.modal-footer {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 90px;
  color: var(--muted);
  border-top: 1px solid var(--line-strong);
  font-size: 0.78rem;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.footer-mark span {
  width: 22px;
  height: 8px;
  background: var(--teal);
  border-radius: 999px;
  transform: rotate(-5deg);
}

.hidden { display: none !important; }

@media (max-width: 1020px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 68px 0 76px;
  }

  .hero-copy, .hero-copy h2 { max-width: 760px; }
  .input-section { width: min(100%, 720px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .export-group { justify-content: flex-end; }
}

@media (max-width: 760px) {
  .app-container { width: min(100% - 28px, 1200px); }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  #checker,
  #results {
    scroll-margin-top: 190px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-section {
    min-height: auto;
    padding: 54px 0 64px;
  }

  .hero-copy h2 { font-size: clamp(2.6rem, 12vw, 3.9rem); }

  .input-toolbar,
  .section-intro,
  .results-toolbar,
  .app-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .input-toolbar { gap: 13px; }
  .left-tools { justify-content: space-between; }
  .right-tools .btn-primary { width: 100%; }

  .section-intro > p {
    max-width: none;
    text-align: left;
  }

  .filter-group {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box, .select-input, .status-select { width: 100%; }
  .export-group { justify-content: flex-start; }
  .blacklist-grid { grid-template-columns: 1fr; }

  .app-footer {
    justify-content: center;
    padding: 24px 0;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .brand-copy .subtitle { display: none; }
  .header-brand h1 { font-size: 1.1rem; }
  .logo-icon { width: 42px; height: 42px; }
  .quota-badge { max-width: 170px; }
  .hero-copy > p { font-size: 1rem; }

  .hero-proof {
    align-items: flex-start;
    flex-direction: column;
  }

  .input-section {
    padding: 22px 18px;
    border-radius: 19px;
  }

  .left-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid { grid-template-columns: 1fr; }

  .export-group {
    align-items: stretch;
    flex-direction: column;
  }

  .results-section { border-radius: 19px; }

  .modal-overlay {
    align-items: flex-end;
    padding: 8px;
  }

  .modal-card {
    max-height: 94vh;
    border-radius: 20px 20px 12px 12px;
  }

  .modal-header, .modal-body { padding: 19px; }

  .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
