* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #233447;
  --muted: #66758a;
  --primary: #2563eb;
  --primary-dark: #1e4fc7;
  --secondary: #475569;
  --success: #15803d;
  --danger: #dc2626;
  --light: #eef2f7;
  --dark: #10233f;
  --border: #d8e1eb;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(135deg, #10233f 0%, #1e3a5f 100%);
  color: white;
  padding: 26px 0 34px;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-wrap h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.subtitle {
  color: #d6e2f0;
  font-size: 0.98rem;
}

.nav-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.main-layout {
  padding: 24px 0 36px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 22px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel {
  margin-top: -22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.hero-grid h2 {
  font-size: 2rem;
  margin: 12px 0 14px;
}

.hero-grid p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 760px;
}

.mini-tag {
  display: inline-block;
  background: #eaf2fd;
  color: #23466d;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: bold;
}

.feature-card,
.notice-box {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card ul {
  padding-left: 18px;
}

.hero-buttons,
.results-actions,
.answer-buttons,
.next-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hidden {
  display: none;
}

.section-head {
  margin-bottom: 18px;
}

.section-head p {
  color: var(--muted);
}

.dashboard-grid,
.results-grid,
.activity-stats {
  display: grid;
  gap: 16px;
}

.dashboard-grid,
.results-grid {
  grid-template-columns: repeat(4, 1fr);
}

.activity-stats {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 18px;
}

.stat-card,
.result-card,
.mini-stat {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.stat-title,
.result-label,
.mini-label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.stat-value,
.result-value,
.mini-value {
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--dark);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.compact-form {
  max-width: 700px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  font-weight: bold;
  margin-bottom: 8px;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 0.97rem;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid #cfd8e4;
  background: white;
}

textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-weight: normal;
}

.checkbox-row input {
  width: auto;
  margin-top: 6px;
}

.activity-top {
  margin-bottom: 18px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 14px;
  background: #e8eef6;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.question-card {
  background: #fbfdff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.message-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.message-header {
  border-bottom: 1px solid #e5ebf3;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.message-header p {
  margin-bottom: 6px;
}

.website-preview {
  border: 1px solid #d8e1eb;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.browser-bar {
  background: #eef2f7;
  padding: 10px;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #d8e1eb;
}

.website-content {
  padding: 18px;
}

.website-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.fake-input {
  border: 1px solid #cfd8e4;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  background: #f8fbff;
  color: var(--muted);
}

.message-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  background: #eaf2fd;
  color: #23466d;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.feedback {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.96rem;
}

.feedback.success {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
}

.feedback.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.summary-box {
  margin-top: 18px;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.learning-list {
  padding-left: 20px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 0 0 36px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.96rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-light {
  background: var(--light);
  color: var(--dark);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
}

.selected-correct {
  outline: 4px solid rgba(21, 128, 61, 0.25);
}

.selected-wrong {
  outline: 4px solid rgba(220, 38, 38, 0.25);
}

@media (max-width: 900px) {
  .nav-wrap,
  .admin-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .dashboard-grid,
  .results-grid,
  .form-grid,
  .activity-stats {
    grid-template-columns: 1fr;
  }
}