:root {
  --bg: #0f172a;
  --bg-2: #060b14;
  --card: rgba(15, 23, 42, 0.95);
  --border: rgba(148, 163, 184, 0.14);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --surface: rgba(2, 6, 23, 0.72);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px 12px;
}

.card {
  width: 100%;
  max-width: 600px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 20px 16px;
  margin: auto 0;
}

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

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.1;
}

.brand p,
.hero p,
.status,
.feature span,
.result p {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: 1.2rem;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s ease;
}

input::placeholder {
  color: #64748b;
}

input:focus {
  border-color: rgba(59, 130, 246, 0.82);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.actions .btn {
  flex: 1;
}

.btn {
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn:active {
  transform: scale(0.98);
}

.primary {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.secondary {
  background: rgba(59, 130, 246, 0.14);
  color: #dbeafe;
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.ghost {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.1);
  min-height: 46px;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
}

.result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.hidden {
  display: none;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  color: #dbeafe;
  font-size: 0.78rem;
  border: 1px solid rgba(59, 130, 246, 0.18);
}

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

.feature {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

.feature strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.feature span {
  font-size: 0.72rem;
}

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

/* Mobil Telefon Ekrani Ucun Tam Mesuliyyetli Adaptasiya */
@media (max-width: 600px) {
  .app {
    padding: 8px;
  }

  .card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .features {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .feature {
    padding: 8px 4px;
  }
}
