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

:root {
  --primary: #FF8C42;
  --primary-light: #FFB380;
  --secondary: #5BC0EB;
  --secondary-light: #A8DEFF;
  --accent: #4CAF82;
  --accent-light: #A8E6C3;
  --bg: #FFF8F0;
  --bg2: #FFF0E0;
  --card: #FFFFFF;
  --text: #4A3728;
  --text-light: #8B6E5E;
  --border: #FFD4B2;
  --danger: #FF6B6B;
  --warning: #FFD93D;
  --shadow: 0 4px 20px rgba(255, 140, 66, 0.15);
  --shadow-hover: 0 8px 30px rgba(255, 140, 66, 0.3);
  --radius: 20px;
  --radius-sm: 12px;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Floating background shapes */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; right: -100px;
}
body::after {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -100px; left: -100px;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.navbar-brand .logo-icon {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

.navbar-brand .brand-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.navbar-brand .brand-sub {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 600;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.btn:hover::after { opacity: 0.15; }
.btn:active { transform: scale(0.95); }

.btn-white {
  background: white;
  color: var(--primary);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 140, 66, 0.5); }

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: white;
}
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(91, 192, 235, 0.4); }

.btn-success {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
}
.btn-success:hover { transform: translateY(-3px); }

.btn-danger {
  background: linear-gradient(135deg, #FF6B6B, #FF9999);
  color: white;
}
.btn-danger:hover { transform: translateY(-3px); }

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: 60px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 60px 2rem 40px;
  position: relative;
  z-index: 1;
}

.hero-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* Main nav cards */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 2rem 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.nav-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.nav-card:nth-child(1)::before { background: linear-gradient(90deg, #FF8C42, #FF6B35); }
.nav-card:nth-child(2)::before { background: linear-gradient(90deg, #5BC0EB, #3BA8D9); }
.nav-card:nth-child(3)::before { background: linear-gradient(90deg, #4CAF82, #3D9A70); }
.nav-card:nth-child(4)::before { background: linear-gradient(90deg, #FFD93D, #F0C020); }
.nav-card:nth-child(5)::before { background: linear-gradient(90deg, #FF6B9E, #E0508A); }
.nav-card:nth-child(6)::before { background: linear-gradient(90deg, #9B59B6, #7D3C98); }

.nav-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.nav-card .card-icon {
  font-size: 3rem;
  display: block;
  line-height: 1;
}

.nav-card .card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.nav-card .card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.nav-card .card-arrow {
  margin-top: auto;
  font-size: 1.2rem;
  opacity: 0.4;
  transition: all 0.3s;
}

.nav-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* Page container */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 2rem;
  position: relative;
  z-index: 1;
}

.page-container.wide { max-width: 1200px; }

.page-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.page-title .title-icon { font-size: 2.5rem; }

.page-title h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
}

.page-title p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 212, 178, 0.5);
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: white;
  transition: all 0.3s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.15);
}

.form-control::placeholder { color: #BBA08C; }

select.form-control { cursor: pointer; }

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

/* Alert / Messages */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

.alert-error {
  background: #FFF0F0;
  border: 2px solid #FFCDD2;
  color: #C62828;
}

.alert-success {
  background: #F0FFF4;
  border: 2px solid #C8E6C9;
  color: #2E7D32;
}

.alert-info {
  background: #E3F2FD;
  border: 2px solid #BBDEFB;
  color: #1565C0;
}

.alert-warning {
  background: #FFFDE7;
  border: 2px solid #FFF59D;
  color: #F57F17;
}

/* Test cards grid */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.test-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 2px solid transparent;
}

.test-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.test-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg2), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.test-card-img img { width: 100%; height: 100%; object-fit: cover; }

.test-card-body {
  padding: 20px;
}

.test-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.test-card-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.news-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #FFE0CC, #FFB380);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-card-img img { width: 100%; height: 100%; object-fit: cover; }

.news-card-body { padding: 20px; }

.news-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.news-card-content {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.search-bar .form-control {
  flex: 1;
  border-radius: 50px;
  padding: 12px 20px;
}

.search-bar .btn { border-radius: 50px; }

/* Question card for test */
.question-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.question-card.answered { border-color: var(--accent-light); }

.question-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.question-text {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.6;
  color: var(--text);
}

.options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.option-item:hover {
  border-color: var(--primary);
  background: rgba(255, 140, 66, 0.05);
}

.option-item input[type="radio"] { display: none; }

.option-item.selected {
  border-color: var(--primary);
  background: rgba(255, 140, 66, 0.1);
  color: var(--primary);
}

.option-radio {
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-item.selected .option-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.option-item.selected .option-radio::after {
  content: '';
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  display: block;
}

/* Result card */
.result-card {
  background: linear-gradient(135deg, #FFF0E6, #FFE0CC);
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  animation: resultAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-emoji { font-size: 4rem; margin-bottom: 15px; display: block; }

.result-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
}

.result-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

/* Calendar */
.calendar-wrapper {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day-name {
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--bg2);
  border-color: var(--primary);
  transform: scale(1.1);
}

.calendar-day.today {
  background: var(--bg2);
  border-color: var(--primary);
  color: var(--primary);
}

.calendar-day.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.calendar-day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-day.weekend { color: var(--danger); }
.calendar-day.empty { cursor: default; }

/* Time slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.time-slot {
  padding: 10px 8px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.time-slot:hover:not(.unavailable) {
  border-color: var(--primary);
  background: rgba(255, 140, 66, 0.1);
  transform: scale(1.05);
}

.time-slot.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.time-slot.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  background: #F5F5F5;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}

thead tr {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid rgba(255, 212, 178, 0.5);
  transition: background 0.2s;
}

tbody tr:hover { background: rgba(255, 140, 66, 0.04); }

tbody td {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-pending { background: #FFF9E6; color: #E6A817; border: 1px solid #FFE082; }
.badge-approved { background: #F0FFF4; color: #2E7D32; border: 1px solid #A5D6A7; }
.badge-rejected { background: #FFF0F0; color: #C62828; border: 1px solid #FFCDD2; }
.badge-info { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }

/* Notification bell */
.notif-btn {
  position: relative;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.notif-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: white;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.notif-dropdown {
  position: absolute;
  top: 80px; right: 20px;
  width: 340px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 200;
  overflow: hidden;
  display: none;
}

.notif-dropdown.open { display: block; animation: slideDown 0.3s ease; }

.notif-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-list { max-height: 350px; overflow-y: auto; }

.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,212,178,0.3);
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.2s;
}

.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: rgba(255, 140, 66, 0.06); font-weight: 700; }

.notif-time {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Login/Register page */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D0 50%, #FFF8F0 100%);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: var(--radius);
  padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(255, 140, 66, 0.2);
}

.auth-icon {
  font-size: 4rem;
  text-align: center;
  display: block;
  margin-bottom: 10px;
  animation: bounce 2s ease-in-out infinite;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 248, 240, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none;
}

.loading-overlay.active { display: flex; animation: fadeIn 0.3s ease; }

.loading-emoji {
  font-size: 5rem;
  animation: spin-bounce 1.5s ease-in-out infinite;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 20px;
  text-align: center;
}

.loading-dots { display: inline-block; }
.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

/* Progress bar */
.test-progress {
  background: var(--bg2);
  border-radius: 50px;
  height: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.test-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 50px;
  transition: width 0.5s ease;
}

/* My results page */
.results-table-container {
  overflow-x: auto;
}

.results-test-block {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.results-test-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.results-test-header a {
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

.results-test-header a:hover { text-decoration: underline; }

.results-entry {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,212,178,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.results-entry:last-child { border-bottom: none; }

/* Floating mascot */
.mascot {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 3rem;
  cursor: pointer;
  z-index: 50;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  transition: transform 0.2s;
}

.mascot:hover { transform: scale(1.2); }

.mascot-bubble {
  position: fixed;
  bottom: 100px;
  right: 25px;
  background: white;
  border-radius: 20px 20px 0 20px;
  padding: 14px 18px;
  max-width: 220px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  z-index: 50;
  display: none;
  color: var(--text);
  line-height: 1.5;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-bubble.show { display: block; }

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: white;
  border-radius: 50px;
  padding: 14px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
}

.toast.success { border-left: 4px solid var(--accent); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--secondary); }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes spin-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(-15deg); }
  75% { transform: translateY(-20px) rotate(15deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes resultAppear {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-grid { grid-template-columns: 1fr; padding: 20px 1rem 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-emoji { font-size: 3.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.three { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 24px; }
  .navbar { padding: 0 1rem; }
  .navbar-brand .brand-sub { display: none; }
  .page-container { padding: 24px 1rem; }
  .tests-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .mascot { bottom: 20px; right: 20px; font-size: 2.5rem; }
}

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 24px 0;
}

/* Image upload preview */
.img-preview {
  width: 100%;
  max-width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  margin-top: 10px;
}

.upload-area {
  border: 3px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-light);
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(255, 140, 66, 0.05);
}

.upload-area .upload-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.upload-area .upload-text { font-weight: 700; font-size: 0.95rem; }
.upload-area .upload-hint { font-size: 0.8rem; margin-top: 4px; }
