/* ============================================================
   ETT STATS — Stylesheet
   Tema: dark industrial, portocaliu accent (ca graficul ELO)
   ============================================================ */

:root {
  --bg:        #0d0d0f;
  --surface:   #141417;
  --surface2:  #1c1c21;
  --border:    #2a2a32;
  --accent:    #f97316;
  --accent2:   #fbbf24;
  --win:       #22c55e;
  --loss:      #ef4444;
  --text:      #e8e8ee;
  --text-dim:  #9a9aaa;
  --text-muted:#6a6a7a;
  --radius:    6px;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding-bottom: 40px;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  height: 60px;
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.logo-ett   { color: var(--accent); }
.logo-stats { color: var(--text); }

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
}

#searchInput {
  width: 100%;
  padding: 8px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
#searchInput:focus {
  border-color: var(--accent);
}
#searchInput::placeholder { color: var(--text-muted); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 200;
  max-height: 360px;
  overflow-y: auto;
}
.search-loading-msg {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-loading-msg::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--surface); }
.search-item-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}
.search-item-elo {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.search-item-country {
  font-size: 12px;
  color: var(--text-dim);
  min-width: 28px;
  text-align: right;
}

/* ── LANDING ── */
.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 40px 32px;
}
.landing-inner { max-width: 560px; }
.landing-inner h1 {
  font-family: var(--font-head);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.landing-inner h1 em {
  font-style: normal;
  color: var(--accent);
}
.landing-inner p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.landing-hint {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 3px;
  animation: pulse-border 2s ease-in-out infinite;
}
@keyframes pulse-border {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ── HERO ── */
.hero {
  padding: 48px 32px 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
  animation: fadeUp 0.4s ease both;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-name-wrap {
  flex: 1;
  min-width: 200px;
  max-width: 420px;
}
.hero-label {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-name-wrap h2 {
  font-family: var(--font-head);
  font-size: 64px;  /* suprascris din JS in functie de lungimea numelui */
  white-space: nowrap;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.hero-country {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-online {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-stats-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 90px;
  text-align: center;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--text-muted); }
.stat-card.accent {
  border-color: var(--accent);
  background: rgba(249,115,22,0.07);
}
.stat-card.highlight {
  border-color: var(--win);
  background: rgba(34,197,94,0.06);
}
.stat-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card.accent  .stat-value { color: var(--accent); }
.stat-card.highlight .stat-value { color: var(--win); }
.stat-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-note {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.stat-peak {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.stat-peak strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.stat-peak-date {
  color: var(--text-muted);
  font-size: 10px;
}

.hof-scope {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: none;
}

/* ── SECTIUNI ── */
.section-elo,
.section-matches {
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.5s ease both;
}

.section-elo {
  padding: 0;  /* zero padding — bara e compacta */
}

.section-matches {
  padding: 36px 32px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ── LANGUAGE SELECTOR ── */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.lang-btn img {
  border-radius: 1px;
  flex-shrink: 0;
}
.lang-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.lang-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(249,115,22,0.07);
}

/* ── HALL OF FAME ── */
.section-hof {
  padding: 36px 32px;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.45s ease both;
}

.hof-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hof-scope {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-weight: 400;
  text-transform: none;
}

.hof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.hof-loading {
  color: var(--text-dim);
  font-size: 13px;
  padding: 12px 0;
  grid-column: 1/-1;
}

.hof-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.hof-card:hover { border-color: var(--text-muted); }

.hof-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.hof-card-body { flex: 1; min-width: 0; }

.hof-card-title {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.hof-card-value {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  word-break: break-word;
}

.hof-sub {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
}

.hof-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.hof-link:hover { color: var(--accent); }

/* Buton statistici complete */
.hof-actions { margin-top: 16px; }

.hof-full-btn {
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hof-full-btn:hover {
  background: var(--accent);
  color: #000;
}

/* Progress bar */
.hof-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  height: 24px;
}
.hof-progress-track {
  flex: 1;
  max-width: 300px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.hof-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}
.hof-progress-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ── GRAFIC ELO — bara subtire colapsabila ── */
.elo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 10px 32px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}
.elo-toggle:hover {
  background: var(--surface);
}
.elo-toggle:hover .elo-toggle-icon { color: var(--accent); }

.elo-toggle-icon {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  transition: color 0.2s;
}

.chart-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.chart-collapse.open {
  max-height: 280px;
  opacity: 1;
}

.chart-wrap {
  position: relative;
  height: 220px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 16px 32px;
}
.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--surface2);
}

/* ── MECIURI ── */
.loading-text {
  color: var(--text-dim);
  font-size: 13px;
  padding: 16px 0;
}

.matches-wrap {
  max-width: 1100px;
  margin: 0 auto;
  overflow: visible;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
}

.match-row {
  display: grid;
  /* sageata | nume | elo-opp | diff | scor | elo-change | data | aborted */
  /* sageata | nume | elo-opp | diff | scor | elo-change | timp | aborted */
  grid-template-columns: 36px 200px 52px 52px 200px 60px 110px 1fr;
  gap: 0;
  align-items: center;
  padding: 7px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
  font-size: 14px;
}
.match-row:hover { background: var(--surface); }
.match-row.win   { border-left-color: var(--win); }
.match-row.loss  { border-left-color: var(--loss); }
.match-row.aborted {
  border-left-color: var(--text-muted);
  opacity: 0.6;
}
.match-row.aborted:hover { opacity: 0.85; }

.match-aborted {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aborted-me  { color: var(--loss); }
.aborted-opp { color: var(--text-muted); }



.match-result {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Numele oponentului — coloana fixa, truncat */
.match-opponent {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.opp-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.opp-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pastilele sunt fiecare in propria coloana din grid → perfect aliniate */
.opp-elo {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 3px;
  padding: 1px 4px;
  text-align: center;
  margin-right: 4px;
}

.opp-elo-diff {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  padding: 1px 4px;
  text-align: center;
}
.elo-diff-normal {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
}
.elo-diff-upset-win {
  color: var(--win);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
}
.elo-diff-upset-loss {
  color: var(--loss);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
}

.match-cell-elo,
.match-cell-diff {
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-score {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: left;
  padding: 0 8px;
  white-space: nowrap;
}

.match-elo {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  padding-right: 8px;
}
.match-elo.pos { color: var(--win); }
.match-elo.neg { color: var(--loss); }
.match-elo.match-unranked {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: right;
}

.match-date {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.match-duration {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.7;
  margin-left: 3px;
}



.day-dow {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  line-height: 1;
}

.day-num {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
}

.day-mon {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  line-height: 1;
}

.day-yr {
  font-size: 8px;
  color: var(--text-muted);
  line-height: 1.3;
}

.day-elo-value {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}
.day-elo-pos .day-elo-value { color: var(--win); }
.day-elo-neg .day-elo-value { color: var(--loss); }
.day-elo-zero .day-elo-value { color: var(--text-dim); }

.day-elo-label {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  line-height: 1;
}

/* ── PAGINARE ── */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}

.load-more-btn {
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 32px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.load-more-btn:hover {
  background: var(--accent);
  color: #000;
}
.load-more-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.load-more-done {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding: 8px 0;
}

/* ── UTILITARE ── */
.hidden { display: none !important; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  header { padding: 0 16px; gap: 12px; }
  .hero  { padding: 28px 16px; }
  .section-elo, .section-matches { padding: 24px 16px; }
  .match-row {
    grid-template-columns: 40px 1fr 60px 56px;
  }
  .match-date { display: none; }
}
/* ── SEPARATOR ZI ── */
.day-separator {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 36px;
  margin-top: 12px;
  background: transparent;
  border-top: 2px solid var(--accent);
  border-bottom: none;
  gap: 10px;
}

.day-banner-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}

.day-center-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.day-match-count {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.day-center-sep {
  color: var(--text-muted);
  font-size: 12px;
}

.day-duration {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.day-dow {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.day-num {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.day-mon {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.day-yr {
  font-size: 11px;
  color: var(--text-muted);
}

.day-line-center { display: none; }

.day-banner-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.day-elo-value {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.day-elo-pos .day-elo-value { color: var(--win); }
.day-elo-neg .day-elo-value { color: var(--loss); }
.day-elo-zero .day-elo-value { color: var(--text-dim); }

.day-elo-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── ELO EVOLUTION bara ascunsa vizual ── */
.section-elo { display: none; }


.stat-peak-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.stat-peak-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── FOOTER ── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  z-index: 50;
}

.footer-version {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent);
}

.footer-sep {
  opacity: 0.4;
}

.footer-author {
  color: var(--text-dim);
}

.footer-contact {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-contact:hover {
  color: var(--accent);
}

/* ── MODAL CONTACT ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text); background: var(--surface); }

.modal-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-field {
  margin-bottom: 16px;
}

.modal-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.modal-optional { color: var(--text-muted); }
.modal-required { color: var(--accent); }

.modal-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.modal-input:focus { border-color: var(--accent); }
.modal-input::placeholder { color: var(--text-muted); }

.modal-textarea {
  height: 120px;
  resize: vertical;
}

.modal-error {
  font-size: 12px;
  color: var(--loss);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.modal-error.hidden { display: none; }

.modal-submit {
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: #000;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}
.modal-submit:hover { opacity: 0.85; }
.modal-submit:disabled { opacity: 0.5; cursor: default; }

.modal-success {
  text-align: center;
  padding: 24px 0;
}
.modal-success.hidden { display: none; }

.modal-success-icon {
  font-size: 40px;
  color: var(--win);
  margin-bottom: 12px;
}

.modal-success-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-contact-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}
.footer-contact-btn:hover { opacity: 0.75; }
