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

:root {
  --bg: #050816;
  --bg-soft: #0b1120;
  --card: #020617;
  --accent: #16a34a;
  --accent-soft: #22c55e33;
  --danger: #ef4444;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2933;
}

* {
  box-sizing: border-box;
}

body.page-body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%);
  color: var(--text);
  min-height: 100vh;
}



.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 32px;
  background: #020617e6;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #111827;
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s, transform 0.18s;
}

.top-nav a.brand {
  font-weight: 600;
  color: var(--text);
}

.top-nav a.active,
.top-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}



.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 32px;
  padding: 60px 8vw;
}

.center-layout {
  padding: 40px 16px 80px;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 32px 16px 80px;
  }
}



.hero-text h1 {
  font-size: 36px;
  margin: 8px 0 16px;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--accent);
}

.hero-desc {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.hero-bullets li {
  margin-bottom: 6px;
}



.login-card,
.chat-card,
.quiz-card,
.scam-card,
.history-card {
  background: radial-gradient(circle at top left, #0f172a 0, #020617 65%);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 24px 22px 26px;
  max-width: 420px;
  box-shadow: 0 20px 40px #00000066;
}

.chat-card {
  max-width: 780px;
  width: 100%;
}

.quiz-card,
.scam-card,
.history-card {
  max-width: 720px;
  width: 100%;
}



.floating {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}



.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.login-form label {
  font-size: 13px;
}

.login-form input,
.login-form select {
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid #1f2933;
  background: #020617;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}

.login-form input:focus,
.login-form select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.login-sub {
  color: var(--muted);
  font-size: 13px;
}



.btn,
.primary-btn,
.ghost-btn,
.small-btn,
.circle-btn {
  border-radius: 999px;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.primary-btn {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #022c22;
  padding: 9px 16px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px #16a34a55;
}

.ghost-btn {
  padding: 8px 14px;
  background: transparent;
  color: var(--muted);
  border: 1px solid #1f2933;
  font-size: 13px;
  margin-top: 10px;
}

.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.small-btn {
  padding: 4px 9px;
  font-size: 11px;
  background: #020617;
  color: var(--muted);
  border: 1px solid #1f2933;
}

.small-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.small-btn.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn.danger {
  background: #b91c1c;
  color: #fee2e2;
}

.btn.full-width {
  width: 100%;
  padding: 9px 0;
}

.circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111827;
  color: var(--muted);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.circle-btn:hover {
  background: #1f2937;
  color: var(--accent);
}



.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.chat-header h2 {
  margin: 0 0 4px;
  font-size: 19px;
}

.chat-sub {
  margin: 4px 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.chat-tags span {
  display: inline-block;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1f2933;
  margin-right: 6px;
  color: var(--muted);
}

.status-box {
  text-align: right;
  font-size: 12px;
}

#status-label {
  color: var(--accent);
  font-weight: 500;
}

.messages {
  margin-top: 18px;
  background: #020617;
  border-radius: 14px;
  padding: 14px;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #111827;
}

.msg {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.user-msg {
  background: #16a34a;
  color: #022c22;
  border-radius: 999px;
  padding: 7px 13px;
  align-self: flex-end;
  display: inline-block;
  max-width: 80%;
}

.ai-msg {
  background: #020617;
  border-radius: 12px;
  padding: 10px 13px;
  border: 1px solid #1f2937;
  max-width: 90%;
  white-space: pre-wrap;
}

.ai-msg .read-btn {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
}

.typing-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.chat-input-row {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

#chat-input {
  flex: 1;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid #1f2933;
  background: #020617;
  color: var(--text);
  font-size: 13px;
  margin-right: 8px;
}

#chat-input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.chat-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}



.quiz-card h2 {
  margin-top: 0;
}

#options {
  margin-top: 12px;
}

.quiz-btn {
  display: block;
  width: 100%;
  background: #020617;
  border: 1px solid #1f2933;
  color: var(--text);
  padding: 9px 11px;
  margin-bottom: 7px;
  border-radius: 9px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.quiz-btn:hover {
  background: #111827;
}

.quiz-btn.correct {
  border-color: #22c55e;
  background: #166534;
}

.quiz-btn.wrong {
  border-color: #ef4444;
  background: #7f1d1d;
}

.quiz-feedback {
  margin-top: 8px;
  font-size: 13px;
}



.scam-card textarea {
  width: 100%;
  min-height: 150px;
  border-radius: 12px;
  border: 1px solid #1f2933;
  background: #020617;
  color: var(--text);
  font-family: inherit;
  padding: 10px;
  margin: 10px 0 12px;
  font-size: 13px;
}

.file-label {
  font-size: 12px;
  color: var(--muted);
}

.scam-result {
  margin-top: 14px;
  background: #020617;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #1f2933;
  font-size: 13px;
}



.history-item {
  border-radius: 12px;
  border: 1px solid #1f2933;
  padding: 10px 12px;
  background: #020617;
  margin-bottom: 8px;
  font-size: 13px;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.history-preview {
  margin: 4px 0 0;
}

.empty {
  color: var(--muted);
  font-size: 13px;
}



.footer {
  position: fixed;
  bottom: 8px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}
