@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #1c2d4a;
  --accent-color: #4da5b3;
  --background-color: #f5f6f9;
  --container-bg: #ffffff;
  --text-color: #1d2330;
  --border-color: rgba(28, 45, 74, 0.16);
  --focus-glow-color: rgba(28, 45, 74, 0.25);
  --success-color: #2f9b63;
  --error-color: #d04848;
  --muted-color: rgba(28, 35, 48, 0.65);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  padding: 48px 16px;
}

.container {
  background-color: var(--container-bg);
  padding: 32px 36px;
  border-radius: 12px;
  border: 1px solid rgba(28, 45, 74, 0.08);
  box-shadow: 0 18px 36px rgba(16, 27, 46, 0.06);
  width: 100%;
  max-width: 760px;
  text-align: center;
  margin: 72px auto 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 16px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  box-shadow: 0 18px 32px rgba(17, 26, 45, 0.18);
  color: #ffffff;
}

.site-nav a,
.site-nav button {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.site-nav a:focus-visible,
.site-nav button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.site-nav .nav-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
}

.site-nav .nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.site-nav .nav-logo .nav-brand {
  margin-left: 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.site-nav button {
  cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 12px 18px rgba(12, 27, 43, 0.16);
}

.site-nav a.active,
.site-nav button.active {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.nav-auth-btn {
  border: none;
}

.top-indicators {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.domain-indicator,
.donate-button {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-color);
  background: #f8f9fb;
  border: 1px solid rgba(28, 45, 74, 0.16);
  border-radius: 10px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}

.domain-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f84d6, #1c2d4a);
  box-shadow: 0 0 6px rgba(47, 132, 214, 0.55);
}

.donate-button {
  text-decoration: none;
  color: rgba(28, 45, 74, 0.82);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.donate-button:hover {
  background: rgba(28, 45, 74, 0.12);
  color: rgba(28, 45, 74, 0.94);
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

header h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: #1c2d4a;
}

.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.2s ease-in-out;
}

.input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(28, 45, 74, 0.12);
}

input {
  flex-grow: 1;
  border: none;
  padding: 14px;
  font-size: 0.98rem;
  background: transparent;
  outline: none;
  color: var(--text-color);
}

.input-select {
  width: 100%;
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  padding: 14px;
  color: var(--text-color);
  cursor: pointer;
  outline: none;
}

.input-select:focus {
  outline: none;
}

.field-helper {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: rgba(28, 35, 48, 0.65);
}

.domain-suffix {
  padding-right: 14px;
  color: rgba(29, 35, 48, 0.6);
  font-weight: 500;
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

#subdomain-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
  text-align: left;
  width: 100%;
}

.form-section {
  margin-top: 24px;
  display: block;
}

.managed-domains-list {
  margin-top: 12px;
  font-size: 0.98rem;
  color: rgba(29, 35, 48, 0.68);
}

#availability-results {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #f8f9fb;
  padding: 18px 20px;
  margin-top: 16px;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(120px, max-content)
    minmax(160px, max-content);
  align-items: center;
  column-gap: clamp(18px, 5vw, 52px);
  padding: 12px 2px;
}

.result-row + .result-row {
  border-top: 1px solid rgba(28, 45, 74, 0.08);
}

.result-row .domain-name {
  font-weight: 600;
  color: rgba(28, 35, 48, 0.88);
  word-break: break-all;
}

.result-row .status {
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 96px;
  text-align: center;
  justify-self: center;
}

.result-row .status.available {
  color: var(--success-color);
}

.result-row .status.taken {
  color: rgba(28, 35, 48, 0.6);
}

.result-row .primary-button {
  justify-self: end;
}

.form-label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(28, 35, 48, 0.78);
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  margin-bottom: 8px;
}

.field-label .form-label {
  margin-bottom: 0;
}

.tooltip-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(28, 45, 74, 0.2);
  background: #ffffff;
  color: rgba(28, 45, 74, 0.8);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s;
}

.tooltip-toggle:hover,
.tooltip-toggle:focus-visible {
  border-color: rgba(28, 45, 74, 0.6);
  background: rgba(28, 45, 74, 0.05);
  outline: none;
}

.tooltip-bubble {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #1c2d4a;
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.22);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.tooltip-bubble::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 16px;
  width: 12px;
  height: 12px;
  background: #1c2d4a;
  transform: rotate(45deg);
  box-shadow: -2px -2px 6px rgba(17, 24, 39, 0.18);
}

.tooltip-bubble.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
}

.loader-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.loader-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--accent-color);
  animation: loader-spin 0.8s linear infinite;
  box-shadow: 0 12px 24px rgba(12, 27, 43, 0.2);
}

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

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.input-group.with-button {
  padding: 0;
  overflow: hidden;
  align-items: center;
}

.input-group.with-button input {
  padding: 14px 14px;
  min-width: 0;
  border-radius: 10px 0 0 10px;
}

.input-group.with-button .domain-suffix {
  padding: 0 14px;
  white-space: nowrap;
}

.inline-button {
  margin-top: 0;
  width: auto;
  padding: 0 18px;
  display: inline-flex;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.input-group.with-button .inline-button {
  border-left: 1px solid rgba(28, 45, 74, 0.12);
  border-radius: 0 10px 10px 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.primary-button {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  margin-top: 8px;
}

.primary-button.small {
  width: auto;
  margin-top: 12px;
  align-self: flex-end;
}

.primary-button.inline-button,
.primary-button.small.inline-button {
  width: auto;
  align-self: center;
  height: 100%;
  margin-top: 0;
}

.primary-button:hover {
  background-color: #14223a;
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.message-box {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.4;
  opacity: 0;
  border: 1px solid rgba(28, 45, 74, 0.12);
  background: #eef1f7;
  color: rgba(28, 45, 74, 0.9);
  transition: opacity 0.3s ease;
}

.message-box.show {
  opacity: 1;
}

.message-box.success {
  background-color: #e5f6ec;
  color: var(--success-color);
}

.message-box.error {
  background-color: #fdeaea;
  color: var(--error-color);
}

.message-box.info {
  background-color: #eef1f7;
  color: rgba(28, 45, 74, 0.9);
}

.message-box.ticker {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 10px;
  display: block;
  box-shadow: none;
  text-align: center;
}

.danger-button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(208, 72, 72, 0.22);
  background: rgba(208, 72, 72, 0.08);
  color: #c03e3e;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.danger-button:hover {
  background: rgba(208, 72, 72, 0.16);
  color: #a52f2f;
  transform: translateY(-1px);
}

.danger-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: translateY(0);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.secondary-button,
.link-button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.secondary-button:hover,
.link-button:hover {
  background: rgba(28, 45, 74, 0.1);
  color: rgba(28, 45, 74, 0.94);
}

.secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: translateY(0);
}

.link-button {
  margin-top: 12px;
}

.dashboard-list-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-item {
  border: 1px solid rgba(28, 45, 74, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-item.expanded {
  border-color: rgba(28, 45, 74, 0.28);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08);
}

.dashboard-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.dashboard-item-header:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: -4px;
}

.dashboard-item-title {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.dashboard-item-domain {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-item .domain-name {
  font-weight: 600;
  font-size: 1.02rem;
  color: rgba(28, 35, 48, 0.9);
}

.record-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(28, 45, 74, 0.1);
  color: rgba(28, 45, 74, 0.85);
}

.record-type-badge.type-cname {
  background: rgba(64, 106, 255, 0.1);
  color: rgba(49, 89, 214, 0.9);
}

.dashboard-item .record-value {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: rgba(29, 35, 48, 0.68);
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(28, 45, 74, 0.08);
}

.dashboard-item-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(28, 45, 74, 0.68);
  border-bottom: 2px solid rgba(28, 45, 74, 0.68);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.dashboard-item.expanded .dashboard-item-chevron {
  transform: rotate(225deg);
}

.dashboard-item-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 22px 24px;
  border-top: 1px solid rgba(28, 45, 74, 0.08);
}

.dashboard-item-detail[hidden] {
  display: none;
}

.dashboard-item-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-item-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(28, 35, 48, 0.78);
}

.dashboard-item-field input {
  border: 1px solid rgba(28, 45, 74, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--text-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.dashboard-item-field input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(28, 45, 74, 0.12);
  outline: none;
}

.dashboard-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-item-actions .primary-button,
.dashboard-item-actions .danger-button {
  min-width: 150px;
}

.hidden {
  display: none;
}

.content-section {
  text-align: left;
  margin-top: 48px;
  padding: 28px;
  border-radius: 12px;
  background: #fafbfe;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(28, 45, 74, 0.1);
}

.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: #1c2d4a;
}

.content-section h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
  color: rgba(28, 35, 48, 0.8);
}

.content-section h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.content-section p {
  line-height: 1.6;
  color: rgba(29, 35, 48, 0.72);
}

.feature-list,
.step-list {
  margin: 16px 0 0 18px;
  padding-left: 18px;
  color: rgba(29, 35, 48, 0.72);
  line-height: 1.6;
}

.feature-list {
  list-style: disc;
}

.feature-list li {
  margin-bottom: 8px;
}

.step-list li {
  margin-bottom: 10px;
}

.step-cards {
  display: grid;
  gap: 18px;
  margin: 16px 0 0;
}

.step-cards article {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(28, 45, 74, 0.12);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.05);
}

.tip {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--primary-color);
  background: rgba(28, 45, 74, 0.08);
  border-radius: 10px;
  font-size: 0.95rem;
}

.use-case-grid {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

.use-case-grid article {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(28, 45, 74, 0.12);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.05);
}

.info-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.info-list dt {
  font-weight: 700;
  color: rgba(28, 35, 48, 0.84);
  margin-bottom: 6px;
}

.info-list dd {
  margin: 0;
  line-height: 1.6;
  color: rgba(29, 35, 48, 0.72);
}

.support-cta {
  margin-top: 28px;
  padding: 24px;
  border-radius: 12px;
  background: #f7f8fb;
  border: 1px solid rgba(28, 45, 74, 0.1);
  box-shadow: none;
}

.support-cta h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #1c2d4a;
}

.support-cta p {
  margin-bottom: 18px;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.support-actions .donate-button {
  font-size: 1rem;
  font-weight: 600;
}

.wallet-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(28, 45, 74, 0.12);
  background: #ffffff;
}

.wallet-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(28, 35, 48, 0.64);
}

.wallet-address {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  color: rgba(28, 35, 48, 0.78);
  word-break: break-all;
}

@media (min-width: 720px) {
  .action-buttons {
    flex-direction: row;
  }

  .action-buttons > button {
    flex: 1;
  }

  .step-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .use-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    padding: 40px 20px;
  }

  .container {
    max-width: 640px;
  }

  .step-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-item-header {
    padding: 18px 20px;
  }

  .dashboard-item-detail {
    padding: 18px 20px 22px;
  }
}

@media (max-width: 680px) {
  body {
    padding: 32px 16px;
  }

  .container {
    max-width: 100%;
    padding: 20px;
    margin: 60px auto 0;
  }

  .step-cards,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 22px;
  }

  .content-section h2 {
    font-size: 1.35rem;
  }

  #subdomain-form {
    gap: 20px;
    margin-top: 20px;
  }

  .input-group {
    padding: 12px;
    gap: 10px;
  }

  .input-group.with-button input {
    padding: 14px 12px;
  }

  .input-group.with-button .domain-suffix {
    padding: 0 12px;
  }

  .input-group.with-button .inline-button,
  .primary-button.small.inline-button {
    padding: 14px 18px;
  }

  .primary-button.small {
    margin-top: 0;
  }

  .field-label {
    align-items: flex-start;
  }

  .tooltip-bubble {
    max-width: 90vw;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 18px 16px;
    gap: 12px;
  }

  .nav-left,
  .nav-center,
  .nav-right {
    justify-content: center;
    width: 100%;
  }

  .nav-center {
    flex: initial;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
  }

  .site-nav .nav-logo {
    justify-content: center;
  }

  .result-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: start;
    gap: 12px;
  }

  .result-row .status {
    min-width: 0;
    text-align: left;
    justify-self: start;
  }

  .result-row .primary-button {
    width: 100%;
    justify-self: stretch;
  }

  .dashboard-item-header {
    align-items: flex-start;
  }

  .dashboard-item-title {
    align-items: flex-start;
  }

  .dashboard-item-domain {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .dashboard-item .record-value {
    align-self: flex-start;
  }

  .dashboard-item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-item-actions .primary-button,
  .dashboard-item-actions .danger-button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 24px 12px;
  }

  .container {
    margin: 48px auto 0;
  }

  .top-indicators {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
  }

  .domain-indicator {
    font-size: 0.82rem;
    padding: 6px 14px;
  }

  header h1 {
    font-size: clamp(1.4rem, 6vw, 2.1rem);
  }

  .message-box.ticker {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  #subdomain-form {
    gap: 18px;
    margin-top: 18px;
  }

  .input-group {
    padding: 10px;
    gap: 8px;
  }

  .input-group.with-button .domain-suffix {
    font-size: 0.85rem;
  }

  .inline-button,
  .primary-button.small.inline-button {
    font-size: 0.95rem;
  }

  .primary-button {
    padding: 14px;
  }

  .danger-button {
    padding: 12px;
  }
}

@media (max-width: 400px) {
  body {
    padding: 18px 8px;
  }

  .container {
    margin: 40px auto 0;
  }

  .top-indicators {
    align-items: flex-end;
    gap: 6px;
  }

  .domain-indicator {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  header h1 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .message-box.ticker {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  #subdomain-form {
    gap: 16px;
    margin-top: 16px;
  }

  input {
    padding: 12px;
    font-size: 0.9rem;
  }

  .input-group {
    padding: 8px;
    gap: 6px;
  }

  .input-group.with-button .domain-suffix {
    font-size: 0.75rem;
    padding: 0 6px;
  }

  .inline-button,
  .primary-button.small.inline-button {
    font-size: 0.88rem;
  }

  .primary-button {
    padding: 12px;
    font-size: 0.95rem;
  }
}
.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-center {
  flex: 1;
  justify-content: center;
}

.nav-right {
  justify-content: flex-end;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
  padding: 28px 32px;
  width: min(440px, calc(100vw - 32px));
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  color: rgba(28, 35, 48, 0.6);
  cursor: pointer;
}

.modal-close:hover {
  color: rgba(28, 35, 48, 0.9);
}

.modal-subtitle {
  font-size: 0.95rem;
  color: rgba(28, 35, 48, 0.72);
}

body.modal-open {
  overflow: hidden;
}

.site-footer {
  margin-top: 44px;
  padding: 18px 24px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  box-shadow: 0 18px 32px rgba(17, 26, 45, 0.16);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.65);
}
