:root {
  --bg: #fff;
  --bg-s: #f8f9fc;
  --card: #fff;
  --border: #e5e7eb;
  --border-l: #f0f0f5;
  --ora: #f4a300;
  --ora-l: #fff7e6;
  --pur: #6c63ff;
  --pur-l: #eeedff;
  --pur-d: #4f46e5;
  --ice: #3b82f6;
  --ice-l: #eff6ff;
  --green: #10b981;
  --green-l: #d1fae5;
  --red: #ef4444;
  --red-l: #fee2e2;
  --text: #1f2937;
  --text-s: #6b7280;
  --text-m: #9ca3af;
  --fh: "Bebas Neue", sans-serif;
  --fb: "Inter", system-ui, sans-serif;
  --t: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --r: 12px;
  --rl: 16px;
  --sh: 0 4px 16px rgba(0, 0, 0, 0.06);
  --sh-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#pageWrap {
  flex: 1 0 auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fh);
  letter-spacing: 1.5px;
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
  transition: all var(--t);
}
::selection {
  background: var(--ora-l);
  color: var(--ora);
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-s);
}
::-webkit-scrollbar-thumb {
  background: var(--ora);
  border-radius: 3px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ora);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fb);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: 0;
  box-shadow: 0 4px 15px rgba(244, 163, 0, 0.3);
  flex-shrink: 0;
  transition: all var(--t);
}
.brand-logo:hover .brand-logo-icon {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244, 163, 0, 0.4);
}
.brand-logo-text {
  font-family: var(--fb);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--text);
}
.brand-logo-text .voor {
  color: var(--ora);
}
.brand-logo-sub {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-m);
  margin-top: -0.1rem;
}
.brand-logo-dark .brand-logo-text {
  color: #fff;
}
.brand-logo-dark .brand-logo-sub {
  color: rgba(255, 255, 255, 0.4);
}

.navbar {
  padding: 0.65rem 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--t);
  z-index: 1030;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.nav-link {
  color: var(--text-s) !important;
  font-weight: 500;
  font-size: 0.84rem;
  padding: 0.5rem 0.65rem !important;
}
.nav-link:hover {
  color: var(--text) !important;
}
.btn-nav {
  background: var(--ora) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.4rem 1rem !important;
  font-size: 0.82rem;
  border: none;
}
.btn-nav:hover {
  background: #e09300 !important;
  box-shadow: 0 4px 16px rgba(244, 163, 0, 0.3);
}
.btn-login2 {
  background: transparent !important;
  color: var(--ora) !important;
  font-weight: 600;
  border: 1.5px solid var(--ora);
  border-radius: 8px;
  padding: 0.35rem 0.85rem !important;
  font-size: 0.82rem;
}
.btn-login2:hover {
  background: var(--ora-l) !important;
}
.navbar-toggler {
  border: 1px solid var(--border);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-glow {
  background: var(--ora);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.8rem;
  font-size: 0.92rem;
  transition: all var(--t);
}
.btn-glow:hover {
  background: #e09300;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 163, 0, 0.3);
}
.btn-outline-soft {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  transition: all var(--t);
}
.btn-outline-soft:hover {
  border-color: var(--ora);
  background: var(--ora-l);
  color: var(--ora);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
  background: linear-gradient(180deg, var(--ora-l) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-l);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--ora-l);
  color: var(--ora);
  border: 1px solid rgba(244, 163, 0, 0.2);
}
.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  background: var(--ora);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fb);
  font-weight: 800;
  font-size: 2.2rem;
  color: #fff;
  position: relative;
  box-shadow: 0 8px 35px rgba(244, 163, 0, 0.3);
}
.author-avatar .ai-ring {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 2px solid transparent;
  background: conic-gradient(
      from 0deg,
      transparent,
      var(--ora) 30%,
      transparent 60%,
      var(--pur) 80%,
      transparent
    )
    border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rr 10s linear infinite;
}
@keyframes rr {
  to {
    transform: rotate(360deg);
  }
}
.stat-box {
  text-align: center;
  padding: 0 1.2rem;
  border-right: 1px solid var(--border);
}
.stat-box:last-child {
  border: none;
}
.stat-num {
  font-family: var(--fh);
  font-size: 1.7rem;
  color: var(--ora);
}
.stat-label {
  font-size: 0.68rem;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.usp-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.8rem;
  box-shadow: var(--sh);
}
.usp-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 0.6rem;
}
.usp-icon-ora {
  background: var(--ora-l);
}
.usp-icon-pur {
  background: var(--pur-l);
}
.usp-icon-ice {
  background: var(--ice-l);
}

.cat-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-s);
  transition: all var(--t);
  font-family: var(--fb);
}
.cat-pill:hover {
  border-color: var(--ora);
  color: var(--ora);
  background: var(--ora-l);
}
.cat-pill.active {
  background: var(--ora);
  border-color: var(--ora);
  color: #fff;
}

/* ═══ CARDS ═══ */
.course-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: all var(--t);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: rgba(244, 163, 0, 0.3);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.th-c0 {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.th-c1 {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.th-c2 {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
}
.th-c3 {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}
.th-c4 {
  background: linear-gradient(135deg, #0ba360, #3cba92);
}
.th-c5 {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}
.th-c6 {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
}
.th-c7 {
  background: linear-gradient(135deg, #eb3349, #f45c43);
}
.th-c8 {
  background: linear-gradient(135deg, #f2994a, #f2c94c);
}
.th-c9 {
  background: linear-gradient(135deg, #ee9ca7, #ffdde1);
}
.th-c10 {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}
.th-c11 {
  background: linear-gradient(135deg, #0c3483, #a2b6df);
}
.th-c12 {
  background: linear-gradient(135deg, #005bea, #ffd600);
}
.th-c13 {
  background: linear-gradient(135deg, #00ea5a, #b9277c);
}
.th-c14 {
  background: linear-gradient(135deg, #f0b820, #cf164e);
}
.th-c15 {
  background: linear-gradient(135deg, #ea2300, #003cff);
}
.th-c16 {
  background: linear-gradient(135deg, #15cac1, #f06a11);
}
.th-c17 {
  background: linear-gradient(135deg, #2a8f11, #00aeff);
}
.th-c18 {
  background: linear-gradient(135deg, #f19393, #7fdb72);
}
.th-c19 {
  background: linear-gradient(135deg, #a716c4, #ffe044);
}
.th-c20 {
  background: linear-gradient(135deg, #005bea, #ffd600);
}
.thumb-ill {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.thumb-ill::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 90%;
  top: -20%;
  right: -15%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  transition: transform 0.5s;
}
.thumb-ill::after {
  content: "";
  position: absolute;
  width: 45%;
  height: 70%;
  bottom: -20%;
  left: -8%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.5s;
}
.thumb-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 12px 12px;
}
.thumb-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 26px;
  z-index: 1;
  pointer-events: none;
}
.thumb-wave svg {
  width: 100%;
  height: 100%;
}
.thumb-ill .ti {
  font-size: 2.6rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.2));
  transition: all 0.4s;
}
.course-card:hover .ti {
  transform: scale(1.1) translateY(-3px);
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ora);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 3;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: all var(--t);
  opacity: 0;
}
.course-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  background: var(--ora);
  color: #fff;
}
.thumb-dur {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.14rem 0.38rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  z-index: 3;
}
.thumb-ai {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.14rem 0.4rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ora);
  font-size: 0.56rem;
  font-weight: 700;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.thumb-cat-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.14rem 0.38rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 0.6rem;
  font-weight: 600;
  z-index: 3;
}
.cb-custom {
  padding: 0.75rem 0.85rem;
}
.cb-custom h5 {
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cb-custom .desc {
  font-size: 0.74rem;
  color: var(--text-s);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.card-meta-item {
  font-size: 0.66rem;
  color: var(--text-m);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* ═══ DETAIL ═══ */
#detailView {
  display: none;
  padding-top: 72px;
}
.detail-hero {
  background: var(--bg-s);
  border-bottom: 1px solid var(--border-l);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ora);
  transition: gap var(--t);
}
.back-link:hover {
  gap: 0.7rem;
}
.detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-pur {
  background: var(--pur-l);
  color: var(--pur);
}
.tag-ora {
  background: var(--ora-l);
  color: #b47800;
}
.tag-green {
  background: var(--green-l);
  color: #047857;
}
.detail-video {
  aspect-ratio: 16/9;
  border-radius: var(--rl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--border);
}
.detail-video .play-lg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ora);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
  transition: all var(--t);
  cursor: pointer;
}
.detail-video:hover .play-lg {
  transform: translate(-50%, -50%) scale(1.07);
  background: var(--ora);
  color: #fff;
}

/* ═══ INFO BLOCKS (detail page) ═══ */
.info-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.ib-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ib-pur {
  background: var(--pur-l);
}
.ib-ora {
  background: var(--ora-l);
}
.ib-ice {
  background: var(--ice-l);
}
.ib-green {
  background: var(--green-l);
}
.ib-red {
  background: var(--red-l);
}
.info-block h6 {
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0;
}
.info-block p,
.info-block li {
  font-size: 0.8rem;
  color: var(--text-s);
  line-height: 1.6;
  margin-bottom: 0;
}
.info-block ul {
  padding-left: 1rem;
  margin: 0;
}
.info-block li {
  margin-bottom: 0.2rem;
}
.mod-card {
  background: var(--bg-s);
  border: 1px solid var(--border-l);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  transition: all var(--t);
}
.mod-card:hover {
  background: var(--ora-l);
  border-color: rgba(244, 163, 0, 0.2);
}
.mod-num {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ora-l);
  color: var(--ora);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mod-card:hover .mod-num {
  background: var(--ora);
  color: #fff;
}
.status-yes {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--green-l);
  color: #047857;
}
.status-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--ora-l);
  color: #92400e;
}
.status-no {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--red-l);
  color: #b91c1c;
}
.cta-box {
  background: linear-gradient(135deg, var(--ora-l), var(--pur-l));
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.5rem;
  text-align: center;
}
.sidebar-card {
  position: sticky;
  top: 85px;
}

/* ═══ MODAL ═══ */
.modal-content {
  border-radius: var(--rl);
  border: 1px solid var(--border);
}
.modal-header {
  background: var(--bg-s);
  border-bottom: 1px solid var(--border-l);
  padding: 1rem 1.5rem;
}
.modal-header .modal-title {
  font-family: var(--fh);
  letter-spacing: 2px;
  font-size: 1.2rem;
}
.form-control {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}
.form-control:focus {
  border-color: var(--ora);
  box-shadow: 0 0 0 3px rgba(244, 163, 0, 0.1);
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-s);
  margin-bottom: 0.25rem;
}
.login-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ora);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fb);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 auto 0.7rem;
  box-shadow: 0 4px 15px rgba(244, 163, 0, 0.3);
}

/* ═══ DEVICE ═══ */
.device-section {
  background: var(--bg-s);
  border-top: 1px solid var(--border-l);
  border-bottom: 1px solid var(--border-l);
}
.device-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  transition: all var(--t);
  margin: 0 auto 0.4rem;
}
.device-icon-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: var(--ora);
}
.qr-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.1rem;
  box-shadow: var(--sh);
  text-align: center;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--t);
  border: none;
}
.app-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* ═══ FOOTER ═══ */
.site-footer {
  flex-shrink: 0;
  background: #1a1f2e;
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0 0;
}
.site-footer h6 {
  font-family: var(--fh);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  transition: color var(--t);
}
.site-footer a:hover {
  color: var(--ora);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  margin-top: 1.5rem;
}
.fc-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}
.offcanvas {
  background: var(--bg) !important;
}
@media (max-width: 768px) {
  .author-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
    border-radius: 16px;
  }
  .stat-box {
    padding: 0 0.5rem;
  }
  .stat-num {
    font-size: 1.1rem;
  }
  .hero-section {
    padding: 5.5rem 0 3rem;
  }
  #detailView {
    padding-top: 66px;
  }
  .sidebar-card {
    position: static;
  }
}
@media (max-width: 500px) {
  .brand-logo-text {
    font-size: 0.88rem;
  }
  .brand-logo-sub {
    display: none;
  }
}
