/* ==========================================================================
   LOG SkillHub - Cyberpunk & Neon Dark Theme Design System (v2.5.0)
   100 โลจิสติกส์อัจฉริยะ AI Occupations Platform
   ========================================================================== */

:root {
  --bg-primary: #070913;
  --bg-secondary: #0e1322;
  --bg-card: rgba(19, 27, 46, 0.75);
  --bg-card-hover: rgba(26, 36, 61, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --neon-cyan: #00f2fe;
  --electric-blue: #4facfe;
  --neon-purple: #7928ca;
  --neon-pink: #ff007f;
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.35);
  --success: #10b981;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-std: 1px solid rgba(255, 255, 255, 0.1);
  --border-cyan: 1px solid rgba(0, 242, 254, 0.4);
  --border-gold: 1px solid rgba(251, 191, 36, 0.5);
  
  --shadow-cyan-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-purple-glow: 0 0 25px rgba(121, 40, 202, 0.3);
  --shadow-gold-glow: 0 0 25px rgba(251, 191, 36, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --font-heading: 'Orbitron', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Sukhumvit Set', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(121, 40, 202, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0, 242, 254, 0.12) 0%, transparent 40%),
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

/* Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: var(--border-std);
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--neon-cyan), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-item {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item:hover, .nav-item.active {
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
  border-bottom: 2px solid var(--neon-cyan);
}

.user-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-quota {
  background: rgba(0, 242, 254, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-role {
  background: rgba(121, 40, 202, 0.2);
  color: #c084fc;
  border: 1px solid rgba(121, 40, 202, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge-role.pro {
  background: rgba(251, 191, 36, 0.2);
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}
.badge-role.admin {
  background: rgba(255, 0, 127, 0.2);
  color: #ff007f;
  border-color: rgba(255, 0, 127, 0.4);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* Language Capsule Button */
.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-std);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lang-btn:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), #0284c7);
  color: #070913;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: var(--border-std);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #070913;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.6rem 1.35rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6);
}

/* Screens */
.screen {
  display: none;
  animation: fadeIn 0.35s ease-in-out;
}
.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3.5rem 1rem 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero-title span {
  background: linear-gradient(135deg, var(--neon-cyan), #c084fc, #ff007f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Filters & Search */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: rgba(19, 27, 46, 0.85);
  border: var(--border-std);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.25s ease;
}
.search-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) rgba(255,255,255,0.05);
}

.category-tab {
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-std);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.category-tab:hover {
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--text-primary);
}
.category-tab.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Course Grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-card {
  background: var(--bg-card);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  position: relative;
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), var(--shadow-cyan-glow);
}

.course-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  overflow: hidden;
}
.course-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-img {
  transform: scale(1.06);
}

.course-badge-top {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(7, 9, 19, 0.85);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.course-lock-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(7, 9, 19, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}
.course-lock-badge.free {
  border: 1px solid #10b981;
  color: #10b981;
}
.course-lock-badge.locked {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.course-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.course-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.course-actions .btn-primary,
.course-actions .btn-secondary,
.course-actions .btn-gold {
  flex: 1;
  padding: 0.5rem 0.5rem;
  font-size: 0.82rem;
}

/* Dual-Mode Viewer */
.detail-header {
  background: var(--bg-card);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.dual-tab-switcher {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.tab-btn {
  background: transparent;
  border: var(--border-std);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(0, 242, 254, 0.4);
}
.tab-btn.active-video {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}
.tab-btn.active-ebook {
  background: rgba(251, 191, 36, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.25);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-cyan);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), var(--shadow-cyan-glow);
  background: #000;
  margin-bottom: 2.5rem;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}

/* Ebook Reader & Chapter Sidebar */
.ebook-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 860px) {
  .ebook-layout {
    grid-template-columns: 1fr;
  }
}

.ebook-sidebar {
  background: var(--bg-card);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.ebook-sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.chapter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chapter-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chapter-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}
.chapter-item.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.ebook-content-box {
  background: var(--bg-card);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  min-height: 500px;
  line-height: 1.8;
}
.ebook-content-box h1, .ebook-content-box h2, .ebook-content-box h3 {
  color: var(--neon-cyan);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.ebook-content-box p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.ebook-content-box ul, .ebook-content-box ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.ebook-content-box li {
  margin-bottom: 0.5rem;
}
.ebook-content-box blockquote {
  background: rgba(0, 242, 254, 0.06);
  border-left: 4px solid var(--neon-cyan);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-style: italic;
}
.ebook-content-box pre, .ebook-content-box code {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.4);
  color: #38bdf8;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* AI Playground Screen */
.playground-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .playground-container {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-card);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.form-select, .form-textarea, .form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(11, 16, 29, 0.85);
  border: var(--border-std);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}
.form-select:focus, .form-textarea:focus, .form-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.prompt-preview-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.88rem;
  color: #7dd3fc;
  line-height: 1.6;
  min-height: 100px;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-output-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  min-height: 260px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

/* User Dashboard Screen */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.stat-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--neon-cyan);
}
.stat-icon.gold {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--gold);
}
.stat-icon.purple {
  background: rgba(121, 40, 202, 0.1);
  border-color: rgba(121, 40, 202, 0.3);
  color: #c084fc;
}

.stat-info h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-info .stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

/* NotebookLM VIP Banner */
.notebooklm-banner {
  background: linear-gradient(135deg, rgba(20, 25, 45, 0.9), rgba(30, 20, 50, 0.9));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.15);
}

/* News Section & Cards */
.news-section {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: rgba(13, 17, 34, 0.6);
  border: var(--border-std);
  border-radius: var(--radius-lg);
}
.news-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.news-card {
  background: rgba(7, 9, 19, 0.85);
  border: var(--border-std);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.news-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan-glow);
}
.news-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 48%;
  background: #000;
  overflow: hidden;
}
.news-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-img {
  transform: scale(1.05);
}
.news-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-excerpt {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(4, 6, 14, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: var(--bg-secondary);
  border: var(--border-std);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover {
  color: #fff;
}

.tier-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.tier-btn {
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-std);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tier-btn:hover {
  border-color: rgba(0, 242, 254, 0.4);
}
.tier-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.qr-display-box {
  background: #0b0f1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.qr-image {
  max-width: 220px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.qr-image:hover {
  transform: scale(1.03);
}

/* Lightbox QR Modal */
.lightbox-card {
  max-width: 420px;
  text-align: center;
}
.lightbox-qr-img {
  max-width: 320px;
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  background: rgba(15, 23, 42, 0.95);
  border-left: 4px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--neon-pink); }
.toast.gold { border-left-color: var(--gold); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .tier-select-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Disclaimer & Terms of Use (Master Road 2569 Standard)
   ========================================================================== */
.disclaimer-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1rem 3.5rem;
}

.disclaimer-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), var(--shadow-cyan-glow);
  position: relative;
}

.disclaimer-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.4rem;
  margin-bottom: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.disclaimer-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.disclaimer-subtitle {
  color: var(--neon-cyan);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 6px;
}

.disclaimer-item {
  background: rgba(19, 27, 46, 0.65);
  border-left: 3px solid var(--neon-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.disclaimer-item:hover {
  background: rgba(19, 27, 46, 0.95);
  border-left-color: var(--gold);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.disclaimer-item-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclaimer-item-content {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.75;
}

/* Course Detail Alert Banner */
.disclaimer-alert-banner {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #fef08a;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.08);
}

.disclaimer-alert-banner a {
  color: var(--neon-cyan);
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
}

.disclaimer-alert-banner a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* Payment Modal Disclaimer Checkbox */
.disclaimer-checkbox-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(0, 242, 254, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 1.25rem;
}

/* Site Footer */
.site-footer {
  background: rgba(7, 9, 19, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 1.5rem;
}

.footer-link-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

