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

:root {
  --bg-primary: #080A09;
  --bg-secondary: #0D100E;
  --bg-elevated: #121613;
  --bg-higher: #171B18;

  --green-primary: #39FF88;
  --green-strong: #22E06F;
  --green-soft: rgba(57, 255, 136, 0.10);
  --green-border: rgba(57, 255, 136, 0.30);

  --text-primary: #F1F5F2;
  --text-secondary: #A7B0AA;
  --text-muted: #6F7972;

  --border-default: #202621;
  --border-strong: #303A33;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --gold: #D4AF37;
  --gold-bright: #F5C542;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --gold-border: rgba(212, 175, 55, 0.55);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  overflow-x: hidden;

  background: var(--bg-primary);
  color: var(--text-primary);

  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: var(--green-primary);
  text-decoration: none;
}

a:hover {
  color: var(--green-strong);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 2px;
}

.iconify {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: currentColor;

  flex-shrink: 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 0.75rem;

  padding: 1rem 2rem;

  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-text {
  padding: 0.4rem 0.8rem;

  border: none;
  border-radius: var(--radius-sm);

  background: none;
  color: var(--text-secondary);

  font-family: var(--font-body);
  font-size: 0.9rem;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.btn-text:hover {
  background: var(--green-soft);
  color: var(--green-primary);
}

.logo {
  display: block;

  width: auto;
  height: 32px;

  object-fit: contain;
}

.brand {
  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;

  letter-spacing: -0.5px;
}

.hero {
  padding: 1.5rem 1rem 1rem;

  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);

  text-align: center;
}

.hero-title {
  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;

  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-title::after {
  content: '';

  display: block;

  width: 80px;
  height: 4px;

  margin: 0.6rem auto 0;

  border-radius: 2px;

  background: var(--green-primary);
}

.hero-sub {
  margin-top: 0.5rem;

  color: var(--text-secondary);

  font-size: 1.1rem;
}

.stats-bar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;

  column-gap: 1.75rem;
  row-gap: 0.35rem;

  padding: 0.6rem 1rem;

  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
}

.stat-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;

  white-space: nowrap;
}

.stat-label {
  color: var(--text-muted);

  font-size: 0.68rem;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.stat-item.stat-money .stat-value {
  color: var(--green-primary);
}

.map-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;          
  flex: 1 1 0%;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0.5rem 0.75rem 0.75rem;
  background: var(--bg-primary);
  overflow: hidden;
}

.map-container {
  --map-ar: 1000 / 812;         

  position: relative;
  box-sizing: border-box;


  width: min(100%, 1000px, calc(min(75vh, 100%) * 1000 / 812));
  max-width: 100%;
  aspect-ratio: var(--map-ar);
  height: auto;
  max-height: min(75vh, 100%);
  margin: 0 auto;

  overflow: hidden;
  isolation: isolate;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);

  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;

  flex: 0 0 auto;              
  min-width: 0;
  min-height: 0;
}

#mapSvgContainer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#mapSvgContainer svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#mapSvgContainer > svg:active {
  cursor: grabbing;
}

@media (min-width: 769px) {
  .map-wrapper {
    height: 100%;
    min-height: 420px;
    overflow: hidden;
  }

  .map-container {
   
    width: min(100%, 1000px, calc(min(100%, 75vh) * 1000 / 812));
    max-height: 100%;
    min-height: 0;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 768px) {
  .map-wrapper {
    min-height: 0;
    overflow: hidden;
  }

  .map-container {
    width: min(100%, calc(min(75vh, 100%) * 1000 / 812));
    max-width: none;
    aspect-ratio: var(--map-ar);
    height: auto;
    max-height: 75vh;
    border-radius: 10px;
  }
}

.state-path {
  cursor: pointer;

  fill: #1E251F;

  stroke: var(--border-strong);
  stroke-width: 1.2;

  transition:
    fill 0.2s ease,
    stroke 0.2s ease,
    stroke-width 0.2s ease;
}

.state-path.unclaimed {
  fill: #1E251F;
}

.state-path.claimed {
  fill: var(--green-soft);
}

.state-path.fct {
  fill: #241C0E;
  stroke: var(--gold);
  stroke-width: 2;
}

.state-path.fct:hover {
  stroke: var(--gold-bright);
  stroke-width: 2.4;

  filter: brightness(1.15);
}

.state-path.fct.selected {
  stroke: var(--gold-bright);
  stroke-width: 3;
}

.state-path.reserved {
  stroke: rgba(251, 191, 36, 0.7);
}

.state-path:hover {
  stroke: var(--green-primary);
  stroke-width: 2;

  filter: brightness(1.2);
}

.state-path.selected {
  stroke: var(--green-primary);
  stroke-width: 3;
}

.state-path .state-label {
  pointer-events: none;

  fill: var(--text-secondary);

  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
}

.state-path .state-label.claimed-label {
  fill: var(--text-primary);
}

.state-path.fct .state-label {
  fill: var(--gold-bright);
  font-weight: 700;
}

#mapSvgContainer #claimantLogoOverlay {
  position: absolute;

  pointer-events: none;

  overflow: visible;

  user-select: none;
  -webkit-user-select: none;
}

#mapSvgContainer #claimantLogoOverlay image,
#mapSvgContainer #claimantLogoOverlay rect,
#mapSvgContainer #claimantLogoOverlay .claimant-logo,
#mapSvgContainer #claimantLogoOverlay .claimant-logo-card {
  pointer-events: none;

  user-select: none;
  -webkit-user-select: none;
}

#mapSvgContainer #claimantLogoOverlay .claimant-logo {
  display: block;

  overflow: hidden;

  object-fit: contain;

  image-rendering: auto;

  pointer-events: none;
}

#mapSvgContainer #claimantLogoOverlay .claimant-logo-card {
  fill: #0A0D0B;
  fill-opacity: 0.96;

  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 1;

  vector-effect: non-scaling-stroke;
}

#mapSvgContainer #claimantLogoOverlay image {
  overflow: hidden;

  opacity: 1;

  pointer-events: none;
}

.map-controls {
  position: absolute;

  right: 1rem;
  bottom: 1rem;

  display: flex;
  flex-direction: column;

  gap: 0.5rem;

  z-index: 20;
}

.map-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  min-width: 40px;

  border: 1px solid var(--border-default);
  border-radius: 50%;

  background: var(--bg-elevated);
  color: var(--text-secondary);

  cursor: pointer;

  touch-action: manipulation;

  -webkit-tap-highlight-color: transparent;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

.map-control-btn:hover {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green-primary);
}

.map-control-btn:active {
  transform: scale(0.94);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 0.75rem;

  padding: 1rem 2rem;

  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);

  color: var(--text-muted);

  font-size: 0.85rem;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;

  gap: 1rem;
}

.footer-logo {
  display: block;

  width: auto;
  height: 24px;

  object-fit: contain;
}

.footer-right a {
  color: var(--text-muted);
}

.footer-right a:hover {
  color: var(--text-secondary);
}

.footer-middle p {
  margin: 0;
  text-align: center;
  color: #ccc;
}

.footer-middle b {
  color: #fff;
}

.modal-overlay {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 1rem;

  background: rgba(0, 0, 0, 0.7);

  backdrop-filter: blur(4px);

  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;

  width: 100%;
  max-width: 600px;
  max-height: 90vh;

  overflow-y: auto;

  padding: 2rem;

  background: var(--bg-higher);

  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);

  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;

  top: 1rem;
  right: 1rem;

  background: none;
  border: none;

  color: var(--text-muted);

  font-size: 1.5rem;

  cursor: pointer;

  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  margin-bottom: 1rem;

  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
}

.modal-body {
  color: var(--text-secondary);
}

.modal-body p {
  margin-bottom: 0.8rem;
}

.modal-body .highlight {
  color: var(--green-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 0.65rem;

  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 0.7rem 1.8rem;

  border-radius: var(--radius-sm);

  font-family: var(--font-body);
  font-size: 1rem;

  cursor: pointer;
}

.btn-primary {
  border: none;

  background: var(--green-primary);
  color: var(--bg-primary);

  font-weight: 600;

  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--green-strong);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--bg-primary);
  outline-offset: 2px;

  box-shadow: 0 0 0 4px var(--green-soft);
}

.btn-secondary {
  border: 1px solid var(--border-default);

  background: transparent;
  color: var(--text-secondary);

  font-weight: 500;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green-primary);
}

.btn-danger {
  border: 1px solid #F87171;

  background: transparent;
  color: #F87171;

  font-weight: 500;

  transition: background 0.2s ease;
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;

  margin-bottom: 0.3rem;

  color: var(--text-secondary);

  font-size: 0.9rem;
  font-weight: 500;
}

.form-group .required {
  color: #F87171;
}

.form-control {
  width: 100%;

  padding: 0.7rem 1rem;

  background: var(--bg-secondary);

  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);

  color: var(--text-primary);

  font-family: var(--font-body);
  font-size: 0.95rem;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;

  border-color: var(--green-primary);

  box-shadow: 0 0 0 3px var(--green-soft);
}

.form-control.error {
  border-color: #F87171;
}

.form-hint,
.form-error {
  margin-top: 0.2rem;

  font-size: 0.8rem;
}

.form-hint {
  color: var(--text-muted);
}

.form-error {
  color: #F87171;
}

.claim-flow {
  display: flex;
  flex-direction: column;

  gap: 1.1rem;
}

.claim-step-header {
  display: flex;
  flex-direction: column;

  gap: 0.5rem;
}

.claim-step-kicker {
  display: inline-flex;
  align-items: center;

  width: fit-content;

  gap: 0.35rem;

  padding: 0.3rem 0.65rem;

  border: 1px solid var(--green-border);
  border-radius: 999px;

  background: var(--green-soft);
  color: var(--green-primary);

  font-size: 0.72rem;
  font-weight: 600;
}

.claim-step-title {
  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;

  letter-spacing: -0.02em;
}

.claim-step-description {
  max-width: 46ch;

  color: var(--text-secondary);

  font-size: 0.88rem;
  line-height: 1.6;
}

.claim-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  padding: 0.9rem 1rem;

  background: var(--bg-elevated);

  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.claim-price-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.claim-price-value {
  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.claim-amount-field {
  display: flex;
  align-items: stretch;

  overflow: hidden;

  background: var(--bg-secondary);

  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.claim-amount-field:focus-within {
  border-color: var(--green-primary);

  box-shadow: 0 0 0 3px var(--green-soft);
}

.claim-amount-prefix {
  display: flex;
  align-items: center;

  padding: 0 0.85rem;

  background: var(--bg-elevated);

  border-right: 1px solid var(--border-default);

  color: var(--text-secondary);

  font-weight: 600;
}

.claim-amount-input.form-control {
  border: none;
  border-radius: 0;

  background: transparent;
}

.claim-amount-input.form-control:focus {
  border: none;
  box-shadow: none;
}

.reservation-flow {
  display: flex;
  flex-direction: column;

  gap: 1.25rem;
}

.reservation-header {
  display: flex;
  flex-direction: column;

  gap: 0.9rem;
}

.reservation-state {
  display: flex;
  align-items: center;

  gap: 0.75rem;
}

.reservation-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  border-radius: 12px;

  background: var(--bg-elevated);

  border: 1px solid var(--border-default);

  color: var(--green-primary);
}

.reservation-state-text {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.reservation-state-label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.reservation-state-name {
  overflow: hidden;

  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.reservation-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  row-gap: 0.4rem;
  gap: 0.75rem;

  padding: 0.75rem 1rem;

  background: var(--green-soft);

  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);

  color: var(--green-primary);

  font-family: var(--font-heading);

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.reservation-timer-left {
  display: flex;
  align-items: center;

  gap: 0.5rem;

  min-width: 0;
}

.reservation-timer-icon {
  display: flex;
  flex: 0 0 auto;
}

.reservation-timer-label {
  color: inherit;

  font-family: var(--font-body);
  font-size: 0.82rem;

  opacity: 0.85;
}

#timerDisplay {
  font-size: 1.3rem;
  font-weight: 700;

  font-variant-numeric: tabular-nums;
}

.reservation-timer.timer-warning {
  background: rgba(251, 191, 36, 0.1);

  border-color: rgba(251, 191, 36, 0.3);

  color: #FBBF24;
}

.reservation-timer.timer-critical {
  background: rgba(248, 113, 113, 0.1);

  border-color: rgba(248, 113, 113, 0.3);

  color: #F87171;
}

.reservation-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.6rem 0;

  border-top: 1px solid var(--border-default);
}

.reservation-summary-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.reservation-summary-value {
  color: var(--text-primary);

  font-family: var(--font-heading);
  font-weight: 600;
}

.claim-form {
  display: flex;
  flex-direction: column;
}

.claim-form .form-group:last-of-type {
  margin-bottom: 0;
}

.claim-form .optional {
  color: var(--text-muted);
  font-weight: 400;
}

.claim-status {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 0.5rem;

  padding: 1rem 0 0.5rem;

  text-align: center;
}

.claim-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 60px;
  height: 60px;

  margin-bottom: 0.4rem;

  border: 1px solid var(--border-default);
  border-radius: 50%;

  background: var(--bg-elevated);

  color: var(--text-secondary);
}

.claim-status-icon.error {
  border-color: rgba(248, 113, 113, 0.3);

  background: rgba(248, 113, 113, 0.08);

  color: #F87171;
}

.claim-status-title {
  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.claim-status-description {
  max-width: 40ch;

  color: var(--text-secondary);

  font-size: 0.88rem;
  line-height: 1.6;
}

.state-modal-header {
  margin-bottom: 1.25rem;
}

.state-modal-header .modal-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 0.5rem;

  margin-bottom: 0.75rem;
}

.fct-badge {
  display: inline-flex;
  align-items: center;

  gap: 0.25rem;

  padding: 0.25rem 0.55rem;

  border-radius: 999px;

  background: var(--gold-soft);

  border: 1px solid var(--gold-border);

  color: var(--gold-bright);

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.02em;
}

.state-status {
  display: inline-flex;
  align-items: center;

  gap: 0.5rem;

  color: var(--text-secondary);

  font-size: 0.85rem;
}

.state-status strong {
  color: var(--text-primary);
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;

  border-radius: 50%;
}

.state-status-claimed .status-dot {
  background: var(--green-primary);
}

.state-status-unclaimed .status-dot {
  background: #22C55E;
}

.state-pricing {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 0.75rem;

  margin-bottom: 1rem;
}

.price-item {
  min-width: 0;

  padding: 0.9rem;

  background: var(--bg-elevated);

  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.price-label {
  display: block;

  margin-bottom: 0.3rem;

  color: var(--text-muted);

  font-size: 0.78rem;
  font-weight: 500;
}

.price-value {
  display: block;

  color: var(--text-primary);

  font-size: 1rem;
}

.claimant-card {
  margin: 1rem 0;

  padding: 1rem;

  background: var(--bg-elevated);

  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.claimant-header {
  display: flex;
  align-items: center;

  gap: 0.85rem;

  min-width: 0;
}

.claimant-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  flex: 0 0 58px;

  overflow: hidden;

  border-radius: 16px;

  background: var(--bg-primary);

  border: 1px solid var(--border-default);
}

.claimant-logo-wrap .claimant-logo {
  display: block;

  width: 100%;
  height: 100%;

  padding: 6px;

  object-fit: contain;
}

.claimant-info {
  min-width: 0;
  flex: 1;
}

.claimant-name {
  overflow: hidden;

  color: var(--text-primary);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.claimant-domain {
  display: block;

  margin-top: 0.2rem;

  overflow: hidden;

  color: var(--text-muted);

  font-size: 0.78rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.claimant-description {
  margin: 0.85rem 0 0;

  color: var(--text-secondary);

  font-size: 0.88rem;
  line-height: 1.55;

  overflow-wrap: anywhere;
}

.claimant-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 0.5rem;

  margin-top: 0.9rem;
}

.claimant-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 36px;

  gap: 0.4rem;

  padding: 0.55rem 0.8rem;

  border: 1px solid var(--border-default);
  border-radius: 9px;

  text-decoration: none;

  font-size: 0.78rem;
  font-weight: 650;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.claimant-link:hover {
  transform: translateY(-1px);
}

.claimant-link-primary {
  background: var(--text-primary);

  color: var(--bg-primary);

  border-color: var(--text-primary);
}

.claimant-link-primary:hover {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
}

.claimant-link-secondary {
  background: var(--bg-primary);

  color: var(--text-primary);
}

.claimant-link-secondary:hover {
  background: var(--bg-elevated);
}

.unclaimed-card {
  display: flex;
  align-items: center;

  gap: 0.85rem;

  margin: 1rem 0;
  padding: 1rem;

  background: var(--bg-elevated);

  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
}

.unclaimed-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  border-radius: 12px;

  background: var(--bg-primary);

  color: var(--text-primary);

  font-size: 1.4rem;
  font-weight: 400;
}

.unclaimed-card strong {
  color: var(--text-primary);

  font-size: 0.9rem;
}

.unclaimed-card p {
  margin: 0.25rem 0 0;

  color: var(--text-muted);

  font-size: 0.8rem;
  line-height: 1.4;
}

.modal-divider {
  height: 1px;

  margin: 1.35rem 0;

  background: var(--border-default);
}

.state-section-title {
  margin: 0 0 0.75rem;

  color: var(--text-primary);

  font-size: 0.95rem;
}

.history-list {
  list-style: none;

  margin: 0;
  padding: 0;
}

.history-item {
  padding: 0.7rem 0;

  border-bottom: 1px solid var(--border-default);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;

  gap: 0.25rem;

  color: var(--text-secondary);

  font-size: 0.82rem;
  line-height: 1.45;
}

.history-main strong {
  color: var(--text-primary);
}

.history-meta {
  display: flex;
  align-items: center;

  gap: 0.4rem;

  margin-top: 0.25rem;

  color: var(--text-muted);

  font-size: 0.72rem;
}

.empty-history {
  margin: 0;

  color: var(--text-muted);

  font-size: 0.82rem;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
  min-height: 44px;
}

.modal-footer .btn-primary {
  flex: 1;
}

.page-content {
  flex: 1;

  max-width: 700px;

  margin: 2rem auto;

  padding: 0 1.5rem;
}

.page-content h1 {
  margin-bottom: 1rem;

  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
}

.page-content p {
  margin-bottom: 1rem;

  color: var(--text-secondary);
}

.success-page {
  min-height: calc(100vh - 140px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 3rem 1.25rem;
}

.success-container {
  width: 100%;
  max-width: 620px;

  margin: 0 auto;

  text-align: center;
}

.success-page .loader {
  width: 40px;
  height: 40px;

  margin: 1rem auto;

  border: 4px solid var(--border-default);
  border-top-color: var(--green-primary);

  border-radius: 50%;

  animation: spin 0.8s linear infinite;
}

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

.success-status {
  animation: successFadeUp 0.45s ease both;
}

.success-loading-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 72px;

  margin: 0 auto 1.25rem;

  border: 1px solid var(--green-border);
  border-radius: 50%;

  background: var(--green-soft);

  color: var(--green-primary);

  animation: successPulse 2s ease-in-out infinite;
}

.success-loading-icon .iconify {
  animation: successSpin 1.2s linear infinite;
}

.success-status h1,
.success-result h1,
.success-error h1 {
  margin: 0.45rem 0 0.75rem;

  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 700;

  line-height: 1.1;
  letter-spacing: -0.035em;
}

.success-status > p,
.success-description,
.success-error > p {
  max-width: 500px;

  margin: 0 auto;

  color: var(--text-secondary);

  font-size: 0.95rem;
  line-height: 1.7;
}

.success-processing-card {
  display: flex;
  align-items: center;

  width: fit-content;
  max-width: 100%;

  gap: 0.65rem;

  margin: 1.5rem auto 0;
  padding: 0.7rem 0.95rem;

  border: 1px solid var(--border-default);
  border-radius: 999px;

  background: var(--bg-secondary);

  color: var(--text-secondary);

  font-size: 0.78rem;
}

.processing-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--green-primary);

  box-shadow: 0 0 0 5px var(--green-soft);

  animation: processingDot 1.5s ease-in-out infinite;
}

.success-result {
  animation: successFadeUp 0.5s ease both;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 76px;
  height: 76px;

  margin: 0 auto 1.2rem;

  border: 1px solid var(--green-border);
  border-radius: 50%;

  background:
    radial-gradient(
      circle at center,
      var(--green-soft),
      transparent 70%
    );

  color: var(--green-primary);

  box-shadow:
    0 0 0 8px rgba(57, 255, 136, 0.035),
    0 0 40px rgba(57, 255, 136, 0.08);
}

.success-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.35rem 0.7rem;

  border: 1px solid var(--green-border);
  border-radius: 999px;

  background: var(--green-soft);

  color: var(--green-primary);

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.success-description {
  margin-bottom: 1.5rem;
}

.success-card {
  width: 100%;

  margin: 0 auto 1.25rem;

  padding: 0.25rem 1rem;

  overflow: hidden;

  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);

  background:
    linear-gradient(
      135deg,
      rgba(57, 255, 136, 0.055),
      transparent 55%
    ),
    var(--bg-secondary);

  text-align: left;

  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.12);
}

.success-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 68px;

  gap: 1rem;
}

.success-row-label {
  display: flex;
  align-items: center;

  gap: 0.6rem;

  color: var(--text-secondary);

  font-size: 0.84rem;
}

.success-row-label .iconify {
  color: var(--green-primary);
}

.success-row strong {
  max-width: 58%;

  overflow-wrap: anywhere;

  color: var(--text-primary);

  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;

  text-align: right;
}

.success-divider {
  height: 1px;

  background: var(--border-default);
}

.success-share {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 50px;

  gap: 0.55rem;

  font-size: 0.9rem;
  font-weight: 700;
}

.success-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.45rem;

  margin-top: 1rem;

  color: var(--text-secondary);

  font-size: 0.82rem;
  font-weight: 600;

  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.success-map-link:hover {
  color: var(--green-primary);

  transform: translateY(-1px);
}

.success-error {
  animation: successFadeUp 0.45s ease both;
}

.success-error-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 76px;
  height: 76px;

  margin: 0 auto 1.2rem;

  border: 1px solid rgba(255, 150, 80, 0.25);
  border-radius: 50%;

  background: rgba(255, 150, 80, 0.06);

  color: #FF9B62;
}

.error-kicker {
  border-color: rgba(255, 150, 80, 0.25);

  background: rgba(255, 150, 80, 0.06);

  color: #FF9B62;
}

.success-error-card {
  display: flex;
  align-items: flex-start;

  gap: 0.7rem;

  margin: 1.5rem auto;

  padding: 1rem;

  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);

  background: var(--bg-secondary);

  text-align: left;
}

.success-error-card > .iconify {
  flex: 0 0 auto;

  margin-top: 0.1rem;

  color: var(--text-secondary);
}

.success-error-card p {
  margin: 0;

  color: var(--text-secondary);

  font-size: 0.82rem;
  line-height: 1.6;
}

.success-error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  gap: 0.5rem;

  padding-inline: 1.25rem;

  text-decoration: none;
}

@keyframes successFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes successSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes processingDot {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.toast-container {
  position: fixed;

  left: 50%;
  bottom: 24px;

  display: flex;
  flex-direction: column;

  width: calc(100% - 32px);
  max-width: 380px;

  gap: 0.5rem;

  transform: translateX(-50%);

  z-index: 2000;

  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;

  gap: 0.6rem;

  padding: 0.75rem 1rem;

  background: var(--bg-higher);
  color: var(--text-primary);

  border: 1px solid var(--border-default);
  border-left: 3px solid var(--text-muted);
  border-radius: 10px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35);

  font-size: 0.88rem;
  line-height: 1.35;

  opacity: 0;

  transform: translateY(12px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  pointer-events: auto;
}

.toast.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  color: var(--text-secondary);
}

.toast-message {
  flex: 1;

  min-width: 0;
}

.toast-warning {
  border-left-color: #FBBF24;
}

.toast-warning .toast-icon {
  color: #FBBF24;
}

.toast-error {
  border-left-color: #F87171;
}

.toast-error .toast-icon {
  color: #F87171;
}

.toast-info {
  border-left-color: var(--green-primary);
}

.toast-info .toast-icon {
  color: var(--green-primary);
}

@media (max-width: 768px) {
  .header {
    padding: 0.6rem 1rem;
  }

  .hero {
    padding: 1rem 1rem 0.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .stats-bar {
    column-gap: 1.1rem;
    row-gap: 0.3rem;

    padding: 0.5rem 0.75rem;
  }

  .stat-value {
    font-size: 0.88rem;
  }

  .map-wrapper {
    padding: 0.4rem 0.5rem 0.5rem;
  }

  .map-container {
    aspect-ratio: 4 / 3.3;
    height: auto;
    max-height: 75vh;

    border-radius: 10px;
  }

  .state-path .state-label {
    font-size: 9px;
  }

  .map-controls {
    right: 0.8rem;
    bottom: 0.8rem;

    gap: 0.4rem;
  }

  .map-control-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .modal-content {
    margin: 0.5rem;
    padding: 1.5rem;

    max-height: 88vh;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .footer {
    flex-direction: column;

    gap: 0.5rem;

    padding: 0.8rem 1rem;

    text-align: center;
  }

  .footer-left,
  .footer-right {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .state-pricing {
    grid-template-columns: 1fr;

    gap: 0.5rem;
  }

  .price-item {
    padding: 0.75rem;
  }

  .claimant-card {
    padding: 0.85rem;
  }

  .claimant-logo-wrap {
    width: 52px;
    height: 52px;
    flex-basis: 52px;

    border-radius: 14px;
  }

  .claimant-actions {
    display: grid;

    grid-template-columns: 1fr;
  }

  .claimant-link {
    width: 100%;
  }

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

  .modal-footer .btn-primary,
  .modal-footer .btn-secondary {
    width: 100%;
  }

  .history-main {
    font-size: 0.78rem;
  }

  .success-page {
    min-height: calc(100vh - 120px);

    padding: 2.5rem 1rem;
  }

  .success-container {
    max-width: 100%;
  }

  .success-status h1,
  .success-result h1,
  .success-error h1 {
    font-size: 1.75rem;
  }

  .success-status > p,
  .success-description,
  .success-error > p {
    font-size: 0.88rem;
  }

  .success-card {
    padding-inline: 0.85rem;
  }

  .success-row {
    min-height: 62px;
  }

  .success-row strong {
    max-width: 52%;

    font-size: 0.85rem;
  }

  .success-processing-card {
    font-size: 0.74rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 0.85rem 0.75rem 0.6rem;
  }

  .hero-title {
    font-size: 1.6rem;

    letter-spacing: -0.6px;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-title::after {
    width: 60px;
    height: 3px;
  }

  .stats-bar {
    column-gap: 0.85rem;
    row-gap: 0.25rem;

    padding: 0.45rem 0.5rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .stat-value {
    font-size: 0.85rem;
  }

  .map-wrapper {
    padding: 0.3rem 0.35rem 0.4rem;
  }

  .map-container {
    width: 100%;

    aspect-ratio: 4 / 3.3;
    height: auto;
    max-height: 72vh;

    border-radius: 8px;
  }

  .map-controls {
    right: 0.65rem;
    bottom: 0.65rem;

    gap: 0.35rem;
  }

  .map-control-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-content {
    margin: 0;

    padding: 1.25rem;

    border-radius: var(--radius-md);
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-footer {
    gap: 0.6rem;
  }

  .modal-footer button {
    flex: 1;

    min-width: 120px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger {
    padding: 0.65rem 1.2rem;
  }
}

@media (max-width: 380px) {
  .success-page {
    padding-inline: 0.75rem;
  }

  .success-icon,
  .success-error-icon,
  .success-loading-icon {
    width: 68px;
    height: 68px;
  }

  .success-status h1,
  .success-result h1,
  .success-error h1 {
    font-size: 1.55rem;
  }

  .success-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;

    gap: 0.25rem;
  }

  .success-row strong {
    max-width: 100%;

    text-align: left;
  }
}

@media (max-width: 360px) {
  .header {
    padding: 0.55rem 0.75rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .logo {
    height: 28px;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .map-container {
    aspect-ratio: 4 / 3.3;
    height: auto;
    max-height: 68vh;

    border-radius: 8px;
  }

  .state-path .state-label {
    font-size: 8px;
  }

  .map-controls {
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .map-control-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .stats-bar {
    column-gap: 0.6rem;
  }

  .stat-label {
    font-size: 0.55rem;
  }

  .stat-value {
    font-size: 0.8rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .map-container,
  #mapSvgContainer,
  #mapSvgContainer > svg {
    touch-action: none;
  }

  .state-path:hover {
    stroke: var(--border-strong);
    stroke-width: 1.2;

    filter: none;
  }

  .state-path.selected {
    stroke: var(--green-primary);
    stroke-width: 3;
  }

  .map-control-btn:hover {
    background: var(--bg-elevated);

    border-color: var(--border-default);

    color: var(--text-secondary);
  }

  .map-control-btn:active {
    background: var(--green-soft);

    border-color: var(--green-border);

    color: var(--green-primary);
  }

  #mapSvgContainer > svg {
    -webkit-touch-callout: none;
  }
}

@media (min-width: 640px) {
  .toast-container {
    left: auto;
    right: 24px;
    bottom: 24px;

    transform: none;
  }
}

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

    transition-duration: 0.01ms !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;
  }

  .success-status,
  .success-result,
  .success-error {
    animation: none;
  }

  .success-loading-icon,
  .success-loading-icon .iconify,
  .processing-dot {
    animation: none;
  }

  .success-map-link {
    transition: none;
  }
}

.history-scroll {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.history-scroll::-webkit-scrollbar {
  width: 6px;
}

.history-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.history-item:last-child {
  border-bottom: none;
}
