/* ==========================================================
   EDUFUTURE GRANT - PROP PHỤC VỤ DỰ ÁN TUYÊN TRUYỀN PHÒNG CHỐNG LỪA ĐẢO
   Design System: Modern, Premium, Responsive, Clean
   ========================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Palette */
  --bg-main: #0b1120;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  
  --primary-blue: #0284c7;
  --primary-blue-hover: #0369a1;
  
  /* GooBook Palette - Xanh nước biển đặc trưng */
  --goobook-blue: #0066cc;
  --goobook-blue-hover: #0052a3;
  --goobook-bg-soft: #e7f3ff;
  
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --alert-bg: #dc2626;
  --alert-border: #f87171;
  --alert-text: #ffffff;
}

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

body {
  font-family: var(--font-family);
  background: radial-gradient(circle at 50% 0%, #172554 0%, #0b1120 70%, #030712 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ----------------------------------------------------------
   1. BANNER KHÓA CỨNG: CẢNH BÁO TUYÊN TRUYỀN
   ---------------------------------------------------------- */
.disclaimer-banner {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
  color: #ffffff;
  padding: 10px 16px;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  border-bottom: 2px solid #fecaca;
  text-align: center;
}

.disclaimer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.92rem;
}

.warning-badge {
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.disclaimer-text {
  letter-spacing: 0.4px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.disclaimer-sub {
  color: #fed7aa;
  font-size: 0.82rem;
}

/* Nút Reset nổi tiện lợi cho quay phim */
.floating-reset-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.floating-reset-btn:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.4);
}

/* ----------------------------------------------------------
   2. HEADER & NAV
   ---------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--bg-card-border);
  backdrop-filter: blur(12px);
  background: rgba(11, 17, 32, 0.7);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.nav-item {
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.nav-item:hover, .nav-item.active {
  color: #38bdf8;
}

.badge-status {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ----------------------------------------------------------
   3. GIAO DIỆN CHÍNH - HERO & ACTION CARD
   ---------------------------------------------------------- */
.page-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.portal-container {
  animation: fadeIn 0.4s ease;
}

.hero-section {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.highlight-text {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-desc strong {
  color: #38bdf8;
}

/* Khung hành động đăng nhập GooBook */
.action-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(2, 132, 199, 0.1);
  backdrop-filter: blur(16px);
  margin-bottom: 48px;
}

.action-card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.action-card-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.cta-action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

/* NÚT BẤM ĐĂNG NHẬP GOOBOOK XANH NƯỚC BIỂN */
.btn-goobook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 36px;
  font-size: 1.12rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.45);
  transition: all 0.25s ease;
  width: 100%;
  max-width: 440px;
}

.btn-goobook:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.6);
}

.btn-goobook:active {
  transform: translateY(0);
}

.goobook-icon {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.subtext-note {
  font-size: 0.92rem;
  color: #94a3b8;
  font-style: italic;
}

.security-guarantee {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Thống kê mồi nhử */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------
   4. MODAL POPUP ĐĂNG NHẬP GOOBOOK GIẢ LẬP
   ---------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: all 0.25s ease;
}

.modal-backdrop.hidden-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-dialog {
  background: #ffffff;
  color: #1e293b;
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.08);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Thanh địa chỉ giả lập */
.browser-fake-titlebar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-traffic-dots {
  display: flex;
  gap: 6px;
}

.browser-traffic-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-fake-url {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.76rem;
  color: #475569;
  padding: 4px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}

.lock-icon {
  font-size: 0.8rem;
  margin-right: 4px;
}

.modal-close-icon {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.modal-close-icon:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Thân form GooBook */
.goobook-form-body {
  padding: 28px 30px;
}

.goobook-header {
  text-align: center;
  margin-bottom: 24px;
}

.goobook-brand-symbol {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.letter-g {
  background: #0284c7;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.3rem;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.brand-text-style {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: -0.5px;
}

.goobook-form-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.goobook-form-sub {
  font-size: 0.85rem;
  color: #64748b;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #f8fafc;
}

.form-group input:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.form-actions {
  margin-top: 20px;
}

.btn-goobook-submit {
  width: 100%;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.btn-goobook-submit:hover {
  background: #0369a1;
}

.form-help-links {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
}

.fake-link {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}

.fake-link:hover {
  text-decoration: underline;
}

.divider {
  color: #cbd5e1;
  margin: 0 8px;
}

.modal-internal-notice {
  margin-top: 20px;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px dashed #f87171;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #991b1b;
  line-height: 1.4;
  text-align: center;
}

/* Spinner hiệu ứng khi bấm đăng nhập */
.submit-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hidden-spinner {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------
   5. GIAO DIỆN 2: TRANG NHẬN HỌC BỔNG SAU ĐĂNG NHẬP
   ---------------------------------------------------------- */
.scholarship-success-container {
  animation: fadeIn 0.4s ease;
}

.success-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.success-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
}

.success-check-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
  flex-shrink: 0;
}

.badge-congrats {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 6px;
}

.success-title-box h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.user-greeting {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.user-greeting strong {
  color: #38bdf8;
}

/* Thẻ tóm tắt gói học bổng */
.award-summary-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 36px;
}

.award-title {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.award-id {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 12px;
}

.award-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
  margin-bottom: 12px;
}

.award-amount span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #cbd5e1;
}

.award-note {
  font-size: 0.9rem;
  color: #94a3b8;
}

.award-note strong {
  color: #34d399;
}

/* Timeline */
.timeline-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  height: 100%;
}

.timeline-step {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.timeline-step.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-left: 4px solid #10b981;
}

.timeline-step.active {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border-left: 4px solid #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

/* Khu vực phân tích hỗ trợ quay video */
.educational-analysis-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 32px;
}

.analysis-tag {
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.educational-analysis-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

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

.analysis-item {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.88rem;
}

.analysis-item strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 6px;
}

.analysis-item p {
  color: #94a3b8;
  line-height: 1.5;
}

.success-footer-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.btn-primary {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #0369a1;
}

.btn-outline {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #475569;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #94a3b8;
  color: #ffffff;
}

/* ----------------------------------------------------------
   6. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 0.85rem;
}

.footer-alert {
  color: #ef4444;
  margin-top: 6px;
  font-weight: 600;
}

/* Utilities */
.hidden-view {
  display: none !important;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .stats-row, .award-summary-card, .analysis-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .success-header {
    flex-direction: column;
    text-align: center;
  }
  .success-footer-actions {
    flex-direction: column;
  }
}
