/* ==================================================================
   TFNUYSP SMS Portal - Cyberpunk / Glassmorphism tema
   Saf CSS, sıfır bağımlılık.
   ================================================================== */

:root {
  --bg-0: #05070a;
  --bg-1: #0a0f16;
  --glass: rgba(18, 26, 36, 0.55);
  --glass-brd: rgba(120, 255, 190, 0.14);
  --neon: #00ff9c;
  --neon-dim: #0bd47f;
  --neon-glow: rgba(0, 255, 156, 0.45);
  --danger: #ff3b5c;
  --danger-glow: rgba(255, 59, 92, 0.4);
  --warn: #ffc24b;
  --txt: #e8f4ee;
  --txt-dim: #8ba099;
  --radius: 16px;
  --mono: "SF Mono", "JetBrains Mono", "Consolas", ui-monospace, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--txt);
  background: var(--bg-0);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Arka plan: neon ızgara + iki radyal parıltı ------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(0, 255, 156, 0.10), transparent 60%),
    radial-gradient(800px 500px at 92% 8%, rgba(255, 59, 92, 0.08), transparent 60%),
    linear-gradient(180deg, #05070a 0%, #070c12 45%, #05070a 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(0, 255, 156, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 156, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 7, 10, 0.72);
  border-bottom: 1px solid rgba(0, 255, 156, 0.1);
}

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

.brand { display: flex; align-items: center; gap: 12px; }

.logo {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--neon);
  text-shadow: 0 0 18px var(--neon-glow);
}
.logo span { color: var(--txt); }

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 156, 0.35);
  background: rgba(0, 255, 156, 0.07);
  color: var(--neon);
  white-space: nowrap;
}
.badge-live.is-down {
  border-color: rgba(255, 59, 92, 0.4);
  background: rgba(255, 59, 92, 0.08);
  color: var(--danger);
}

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(0, 255, 156, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 255, 156, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 156, 0); }
}

.lang-switch { display: flex; gap: 6px; }

.lang-btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--txt-dim);
  cursor: pointer;
  transition: all 0.18s ease;
}
.lang-btn:hover { color: var(--txt); border-color: rgba(0, 255, 156, 0.3); }
.lang-btn.active {
  color: var(--neon);
  border-color: rgba(0, 255, 156, 0.5);
  background: rgba(0, 255, 156, 0.1);
  box-shadow: 0 0 18px rgba(0, 255, 156, 0.15);
}

/* ---------------- Hero ---------------- */

.hero { text-align: center; padding: 54px 0 30px; }

.hero h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--neon), #6bfff0 55%, var(--neon-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 12px;
  color: var(--txt-dim);
  font-size: clamp(0.92rem, 1.7vw, 1.05rem);
  max-width: 620px;
  margin-inline: auto;
}

.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 22px;
}
.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--txt-dim);
}

/* ---------------- Card / Glass ---------------- */

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 28px;
}

.card + .card { margin-top: 22px; }

.card-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 9px;
}
.card-title::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

/* ---------------- Form ---------------- */

.field-label {
  display: block;
  font-size: 0.8rem;
  color: var(--txt-dim);
  margin-bottom: 8px;
}

.auth-row { display: flex; gap: 12px; flex-wrap: wrap; }

.input {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  padding: 15px 17px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--txt);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input::placeholder { color: #4d5c57; letter-spacing: 0.1em; }
.input:focus {
  border-color: rgba(0, 255, 156, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 255, 156, 0.12);
}
.input.err {
  border-color: rgba(255, 59, 92, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.12);
}

.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 15px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--neon), var(--neon-dim));
  color: #04120c;
  box-shadow: 0 10px 30px rgba(0, 255, 156, 0.22);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 14px 40px rgba(0, 255, 156, 0.35); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--txt);
}
.btn-ghost:hover:not(:disabled) { border-color: rgba(0, 255, 156, 0.4); color: var(--neon); }

.btn-danger {
  background: rgba(255, 59, 92, 0.1);
  border-color: rgba(255, 59, 92, 0.4);
  color: var(--danger);
}
.btn-danger:hover:not(:disabled) { background: rgba(255, 59, 92, 0.18); }

.btn-warn {
  background: rgba(255, 194, 75, 0.12);
  border-color: rgba(255, 194, 75, 0.45);
  color: var(--warn);
}
.btn-warn:hover:not(:disabled) {
  background: rgba(255, 194, 75, 0.2);
  box-shadow: 0 10px 30px rgba(255, 194, 75, 0.14);
}

.btn-sm { padding: 10px 15px; font-size: 0.8rem; border-radius: 10px; }

/* Ülke başarı oranı rozeti */
.rate-pill {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 156, 0.28);
  background: rgba(0, 255, 156, 0.06);
  color: var(--neon);
}
.rate-pill.mid { border-color: rgba(255, 194, 75, 0.35); background: rgba(255, 194, 75, 0.07); color: var(--warn); }

.attempt-line {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--txt-dim);
}

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(4, 18, 12, 0.3);
  border-top-color: #04120c;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-hint { margin-top: 12px; font-size: 0.78rem; color: var(--txt-dim); }

.alert {
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 11px;
  font-size: 0.86rem;
  border: 1px solid rgba(255, 59, 92, 0.35);
  background: rgba(255, 59, 92, 0.08);
  color: #ffb3c0;
}
.alert.ok {
  border-color: rgba(0, 255, 156, 0.35);
  background: rgba(0, 255, 156, 0.07);
  color: #a5ffd8;
}

/* ---------------- Aktivasyon paneli ---------------- */

.activation-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

.panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.3);
  padding: 22px;
}

.panel-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-dim);
  margin-bottom: 12px;
}

.country-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: var(--txt-dim);
  margin-bottom: 10px;
}
.flag {
  font-size: 1.35rem;
  line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", var(--sans);
}
.flag-iso {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 156, 0.3);
  color: var(--neon);
}

.phone-number {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 3.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 26px rgba(0, 255, 156, 0.28);
  word-break: break-all;
  margin-bottom: 16px;
}

/* Geri sayım */
.countdown-box { display: flex; align-items: baseline; gap: 12px; }
.countdown {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.06em;
}
.countdown.low { color: var(--warn); }
.countdown.critical { color: var(--danger); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.4; } }

.progress {
  margin-top: 14px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress > i {
  display: block; height: 100%;
  width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--neon), #6bfff0);
  box-shadow: 0 0 14px var(--neon-glow);
  transition: width 1s linear;
}

/* Radar / bekleme durumu */
.waiting-state {
  display: flex; align-items: center; gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 255, 156, 0.22);
  background: rgba(0, 255, 156, 0.03);
}

.radar {
  position: relative;
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 156, 0.35);
}
.radar::before, .radar::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--neon);
  animation: radar-ping 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.radar::after { animation-delay: 1.1s; }
@keyframes radar-ping {
  0%   { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}
.radar > i {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
}

.waiting-text { font-size: 0.88rem; color: var(--txt-dim); }
.waiting-text b { color: var(--txt); display: block; font-size: 0.95rem; margin-bottom: 2px; }

/* SMS kod ekranı */
.code-stage { margin-top: 20px; }

.code-display {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 6px 0 18px;
}
.digit {
  width: clamp(42px, 11vw, 62px);
  height: clamp(56px, 14vw, 78px);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--neon);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 156, 0.45);
  background: rgba(0, 255, 156, 0.06);
  box-shadow: 0 0 26px rgba(0, 255, 156, 0.25), inset 0 0 22px rgba(0, 255, 156, 0.07);
  animation: code-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
}
@keyframes code-pop {
  0%   { transform: scale(0.5) translateY(14px); opacity: 0; filter: blur(6px); }
  100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}

.burst {
  animation: burst 0.9s ease-out;
}
@keyframes burst {
  0%   { box-shadow: 0 0 0 0 rgba(0, 255, 156, 0.5); }
  100% { box-shadow: 0 0 0 34px rgba(0, 255, 156, 0); }
}

.sms-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--txt-dim);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 14px;
  word-break: break-word;
}

.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.action-row .btn { flex: 1 1 190px; }

/* ---------------- Adımlar / SSS ---------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.step {
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--neon);
  margin-bottom: 8px;
}
.step h3 { font-size: 0.98rem; margin-bottom: 6px; }
.step p { font-size: 0.85rem; color: var(--txt-dim); }

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 194, 75, 0.3);
  background: rgba(255, 194, 75, 0.07);
  color: #ffdf9e;
  font-size: 0.86rem;
}

.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
  list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--neon);
  font-family: var(--mono);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 9px; font-size: 0.86rem; color: var(--txt-dim); }

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 46px;
  padding: 26px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 0.84rem; color: var(--txt-dim);
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a {
  color: var(--txt-dim);
  text-decoration: none;
  transition: color 0.16s;
}
.footer-links a:hover { color: var(--neon); }

/* ---------------- Onay penceresi (modal) ---------------- */

.modal-host {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease;
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 30px 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 194, 75, 0.22);
  background: linear-gradient(180deg, rgba(21, 27, 33, 0.96), rgba(11, 15, 20, 0.98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  overflow: hidden;
  animation: modal-in 0.28s cubic-bezier(0.2, 1.2, 0.4, 1);
}

/* Üstten inen ince ışık şeridi */
.modal-glow {
  position: absolute;
  top: 0; left: 50%;
  width: 60%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--warn), transparent);
  opacity: 0.7;
}

.modal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--warn);
  border: 1px solid rgba(255, 194, 75, 0.28);
  background: rgba(255, 194, 75, 0.08);
  box-shadow: 0 0 30px rgba(255, 194, 75, 0.12);
}
.modal-icon svg { width: 26px; height: 26px; }

.modal-card.is-danger { border-color: rgba(255, 59, 92, 0.25); }
.modal-card.is-danger .modal-glow { background: linear-gradient(90deg, transparent, var(--danger), transparent); }
.modal-card.is-danger .modal-icon {
  color: var(--danger);
  border-color: rgba(255, 59, 92, 0.3);
  background: rgba(255, 59, 92, 0.08);
  box-shadow: 0 0 30px rgba(255, 59, 92, 0.12);
}

.modal-title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 0.9rem;
  color: var(--txt-dim);
  line-height: 1.6;
}

.modal-points {
  list-style: none;
  margin: 18px 0 4px;
  text-align: left;
  display: grid;
  gap: 8px;
}
.modal-points li {
  position: relative;
  padding-left: 24px;
  font-size: 0.82rem;
  color: var(--txt-dim);
}
.modal-points li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-glow);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.modal-actions .btn { flex: 1; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
}

@media (max-width: 520px) {
  .modal-card { padding: 26px 20px 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}

/* ---------------- Toast ---------------- */

.toast-host {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid rgba(0, 255, 156, 0.4);
  background: rgba(6, 20, 14, 0.95);
  color: var(--neon);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.25s ease, toast-out 0.3s ease 2.4s forwards;
}
.toast.err { border-color: rgba(255, 59, 92, 0.45); color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------------- Yardımcılar ---------------- */

.hidden { display: none !important; }
.mt-16 { margin-top: 16px; }
.copy-btn { margin-top: 4px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .activation-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .card { padding: 20px 17px; }
  .hero { padding: 34px 0 22px; }
  .header-row { padding: 11px 0; }
  .action-row .btn { flex: 1 1 100%; }
  .btn { width: 100%; }
  .auth-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
