:root {
  --bg: #0B0B0B;
  --surface: #111111;
  --surface2: #1A1A1A;
  --border: #2B2B2B;
  --text: #EDEDED;
  --muted: #B0B0B0;
  --gold: #CEB350;
  --goldGlow: #F5EDA7;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 11, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 43, 43, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}

.brand .wordmark {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover { color: var(--text); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(206,179,80, 0.6);
  box-shadow: 0 0 0 3px rgba(206,179,80, 0.08);
}

.btn-primary {
  background: var(--gold);
  color: #0b0b0b;
  border-color: rgba(206,179,80, 0.8);
}

.btn-primary:hover {
  box-shadow: 0 0 0 3px rgba(245,237,167, 0.14);
}

.btn-outline-gold {
  border-color: rgba(206,179,80, 0.55);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(206,179,80, 0.35);
  color: var(--gold);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.hero {
  padding: 56px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

.h1 {
  font-size: 44px;
  line-height: 1.06;
  margin: 0 0 14px;
}

.p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
}

.card {
  background: linear-gradient(180deg, rgba(17,17,17, 1), rgba(14,14,14, 1));
  border: 1px solid rgba(43,43,43, 1);
  border-radius: var(--radius);
  padding: 18px;
}

.card:hover {
  border-color: rgba(206,179,80, 0.35);
  box-shadow: 0 0 0 3px rgba(206,179,80, 0.05);
}

.video-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 300px at 20% 10%, rgba(206,179,80, 0.25), transparent 45%),
    radial-gradient(600px 240px at 90% 80%, rgba(245,237,167, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(26,26,26,0.7), rgba(11,11,11,0.9));
}

.video-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.play {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(206,179,80, 0.6);
  display: grid;
  place-items: center;
  color: var(--gold);
  box-shadow: 0 0 0 4px rgba(206,179,80, 0.08);
}

.section {
  padding: 42px 0;
}

.section h2 {
  font-size: 26px;
  margin: 0 0 12px;
}

.section .lead {
  color: var(--muted);
  margin: 0 0 18px;
}

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

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.course-card {
  position: relative;
  overflow: hidden;
}

.lock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(11,11,11,0.7);
  border: 1px solid rgba(206,179,80, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--gold);
  font-size: 12px;
}

.price {
  font-weight: 800;
  color: var(--gold);
}

.hr {
  height: 1px;
  background: rgba(43,43,43, 0.8);
  margin: 16px 0;
}

.footer {
  border-top: 1px solid rgba(43,43,43, 0.7);
  padding: 26px 0;
  color: var(--muted);
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.flash {
  padding: 12px 0 0;
}

.flash .msg {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(43,43,43, 1);
  background: rgba(17,17,17, 0.7);
}

.flash .msg.success { border-color: rgba(206,179,80, 0.4); }
.flash .msg.error { border-color: rgba(255, 90, 90, 0.45); }
.flash .msg.warning { border-color: rgba(255, 170, 60, 0.45); }

.form {
  display: grid;
  gap: 12px;
}

label { font-size: 13px; color: var(--muted); }

input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(43,43,43, 1);
  background: rgba(11,11,11, 0.6);
  color: var(--text);
  outline: none;
}
input[type="checkbox"] { width: auto; padding: 0; border-radius: 6px; }


input:focus, textarea:focus, select:focus {
  border-color: rgba(206,179,80, 0.7);
  box-shadow: 0 0 0 3px rgba(206,179,80, 0.08);
}

.help { font-size: 12px; color: var(--muted); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
}

.modal.open { display: flex; }

.modal-content {
  width: 100%;
  max-width: 520px;
  background: rgba(17,17,17, 0.98);
  border: 1px solid rgba(43,43,43, 1);
  border-radius: 18px;
  padding: 18px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-title { font-weight: 800; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(43,43,43, 1);
  background: rgba(11,11,11, 0.4);
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover { border-color: rgba(206,179,80, 0.4); }

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  text-align: left;
  font-size: 13px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(43,43,43, 0.8);
}

.table th { color: var(--muted); font-weight: 600; }
