/* ============================================================
   LMS v3 - iOS 26 Glass • Colorful Liquid • Dark
   ============================================================ */

:root {
  --bg:            #000000;
  --surface:       rgba(255,255,255,.04);
  --surface-hover: rgba(255,255,255,.08);
  --surface-card:  rgba(20,20,30,.7);
  --border:        rgba(255,255,255,.08);
  --border-light:  rgba(255,255,255,.12);
  --accent-purple: #a78bfa;
  --accent-blue:   #60a5fa;
  --accent-pink:   #f472b6;
  --accent-teal:   #2dd4bf;
  --accent-green:  #34d399;
  --accent-red:    #f87171;
  --accent-amber:  #fbbf24;
  --text:          #e4e4ec;
  --text-secondary:#9ca3af;
  --text-muted:    #6b7280;
  --text-white:    #f9fafb;
  --gradient-1:    linear-gradient(135deg, #a78bfa, #60a5fa);
  --gradient-2:    linear-gradient(135deg, #60a5fa, #2dd4bf);
  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --shadow:        0 8px 32px rgba(0,0,0,.4);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.5);
  --transition:    0.3s cubic-bezier(0.25, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-purple); }
img { max-width: 100%; height: auto; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

/* ===== LIQUID GLASS BACKGROUND ===== */
#liquid-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }

/* ===== NAVBAR - frosted glass ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,.6); backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text-white); font-weight: 700; font-size: 1.1rem; letter-spacing: -.3px; }
.nav-brand:hover { color: var(--text-white); }
.brand-icon { display: flex; }
.brand-text { background: linear-gradient(135deg, #a78bfa, #60a5fa, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: .88rem; font-weight: 500; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-white); background: rgba(255,255,255,.06); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  cursor: pointer; font-family: inherit; color: var(--text); font-size: .88rem;
  padding: 7px 14px; border-radius: 24px; transition: var(--transition);
}
.nav-user-btn:hover { background: rgba(255,255,255,.08); }
.user-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: .7rem; color: #fff; flex-shrink: 0;
}
.dropdown-menu {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: rgba(0,0,0,.85); backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 8px; min-width: 180px; box-shadow: 0 16px 48px rgba(0,0,0,.6); z-index: 500;
}
.dropdown-menu a {
  display: block; padding: 10px 16px; border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: .88rem; transition: .15s; white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(255,255,255,.06); color: var(--text-white); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 24px; font-family: inherit;
  font-size: .92rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  border: none; text-decoration: none; line-height: 1; position: relative; overflow: hidden;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: linear-gradient(135deg, #a78bfa, #60a5fa); color: #fff; box-shadow: 0 4px 24px rgba(167,139,250,.25); }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(167,139,250,.4); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid rgba(255,255,255,.08); }
.btn-secondary:hover { background: rgba(255,255,255,.1); }
.btn-success { background: linear-gradient(135deg, #34d399, #2dd4bf); color: #000; }
.btn-danger { background: rgba(248,113,113,.2); color: var(--accent-red); border: 1px solid rgba(248,113,113,.3); }
.btn-danger:hover { background: rgba(248,113,113,.3); }
.btn-outline { background: rgba(255,255,255,.06); color: var(--accent-blue); border: 1px solid rgba(96,165,250,.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-outline:hover { background: rgba(96,165,250,.12); border-color: var(--accent-blue); }
.btn-sm { padding: 7px 16px; font-size: .84rem; border-radius: 20px; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 28px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-size: .84rem; color: var(--text-secondary); font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); font-family: inherit;
  font-size: .93rem; outline: none; transition: var(--transition); resize: vertical;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(167,139,250,.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-select option { background: #1a1a2e; color: var(--text); }
.form-textarea { min-height: 120px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; color: var(--text-secondary); }
.form-check input[type="checkbox"] { accent-color: var(--accent-purple); width: 16px; height: 16px; }

/* ===== CARDS - frosted glass ===== */
.card {
  background: rgba(20,20,35,.55); backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-xl);
  padding: 24px; transition: var(--transition);
}
.card:hover { border-color: rgba(255,255,255,.1); background: rgba(25,25,40,.6); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-white); }

/* ===== GRID ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== LAYOUT ===== */
.main-content { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 32px 28px; min-height: calc(100vh - 64px - 200px); }

/* ===== PAGE HEADER ===== */
.page-header { text-align: center; padding: 64px 0 40px; position: relative; }
.page-header h1 {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px;
  background: linear-gradient(135deg, #a78bfa, #60a5fa, #f472b6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-header p { font-size: 1.12rem; color: var(--text-secondary); max-width: 580px; margin: 0 auto; }

/* ===== HERO ===== */
.hero { text-align: center; padding: 100px 28px 80px; position: relative; }
.hero h1 { font-size: 3.4rem; font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 20px; }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #a78bfa, #60a5fa, #f472b6, #2dd4bf, #a78bfa);
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: hueShift 8s linear infinite;
}
@keyframes hueShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes rippleOut { to { transform: scale(30); opacity: 0; } }
.hero p { font-size: 1.2rem; color: var(--text-secondary); max-width: 540px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== STATS ===== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 60px; }
.stat-card {
  text-align: center; padding: 28px 20px;
  background: rgba(20,20,35,.55); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-xl);
}
.stat-card:hover { border-color: rgba(167,139,250,.3); }
.stat-value { font-size: 2.2rem; font-weight: 700; color: var(--text-white); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 2px; }

/* ===== COURSE CARDS ===== */
.course-card { display: flex; flex-direction: column; }
.course-thumb { height: 180px; background: rgba(255,255,255,.02); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; position: relative; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-thumb .badge { position: absolute; top: 12px; right: 12px; padding: 5px 12px; border-radius: 14px; font-size: .68rem; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; backdrop-filter: blur(12px); border: none; }
.badge-locked { background: rgba(245,158,11,.18); color: #fcd34d; }
.badge-free { background: rgba(52,211,153,.15); color: #6ee7b7; }
.course-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; color: var(--text-white); }
.course-card p { font-size: .84rem; color: var(--text-muted); flex-grow: 1; }
.course-meta { display: flex; gap: 12px; margin-top: 12px; font-size: .78rem; color: var(--text-muted); }

/* ===== BLOG CARDS ===== */
.blog-card .blog-thumb { height: 200px; background: rgba(255,255,255,.02); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .blog-cat { display: inline-block; padding: 3px 10px; background: rgba(167,139,250,.15); border-radius: 20px; font-size: .73rem; color: var(--accent-purple); margin-bottom: 8px; font-weight: 600; }
.blog-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; color: var(--text-white); }
.blog-card p { font-size: .84rem; color: var(--text-muted); }
.blog-meta { display: flex; gap: 14px; margin-top: 12px; font-size: .77rem; color: var(--text-muted); }

/* ===== MEMBERSHIP PLANS ===== */
.plan-card {
  text-align: center; padding: 40px 28px;
  background: rgba(20,20,35,.55); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-xl); position: relative;
}
.plan-card.featured {
  border-color: rgba(167,139,250,.3);
  background: linear-gradient(180deg, rgba(167,139,250,.08) 0%, rgba(20,20,35,.55) 100%);
}
.plan-card.featured::before { content: 'POPULAR'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 4px 16px; background: linear-gradient(135deg, #a78bfa, #f472b6); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 20px; letter-spacing: 1px; }
.plan-name { font-size: 1.15rem; font-weight: 700; color: var(--text-white); margin-bottom: 4px; }
.plan-price { font-size: 2.4rem; font-weight: 700; color: var(--text-white); margin: 12px 0; }
.plan-price span { font-size: .95rem; color: var(--text-muted); font-weight: 400; }
.plan-features { list-style: none; margin: 24px 0; text-align: left; }
.plan-features li { padding: 8px 0; font-size: .9rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.04); }
.plan-features li:last-child { border: none; }
.plan-features li::before { content: '\25C6'; color: var(--accent-purple); font-size: .5rem; }

/* ===== AUTH ===== */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-card {
  width: 100%; max-width: 420px; padding: 40px;
  background: rgba(20,20,35,.6); backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); position: relative; z-index: 1;
}
.auth-card h2 { font-size: 1.7rem; font-weight: 700; color: var(--text-white); text-align: center; margin-bottom: 8px; }
.auth-sub { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: .9rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.06); }

/* ===== COURSE VIEW ===== */
.course-hero { padding: 48px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.course-hero h1 { font-size: 2.2rem; color: var(--text-white); margin-bottom: 12px; }
.course-hero .desc { color: var(--text-secondary); max-width: 680px; }
.course-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; margin-top: 40px; }
.module-sidebar { position: sticky; top: 80px; align-self: start; }
.module-item {
  padding: 13px 16px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  margin-bottom: 4px; font-size: .88rem; color: var(--text-secondary); display: flex; align-items: center; gap: 9px; transition: var(--transition);
}
.module-item:hover { background: rgba(255,255,255,.04); }
.module-item.active { background: rgba(167,139,250,.1); color: var(--accent-purple); border-color: rgba(167,139,250,.2); font-weight: 600; }
.module-item.done { color: var(--accent-green); }
.module-content { padding: 20px 0; }
.module-content h2 { font-size: 1.6rem; color: var(--text-white); margin-bottom: 16px; }
.module-content .content-body {
  color: var(--text-secondary); line-height: 1.8;
  background: rgba(20,20,35,.5); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.module-video { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; background: #000; user-select: none; -webkit-user-select: none; }
.module-video video, .module-video iframe { width: 100%; aspect-ratio: 16/9; border: none; pointer-events: auto; }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar {
  background: rgba(10,10,25,.7); backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-right: 1px solid rgba(255,255,255,.04); padding: 20px 16px;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.admin-sidebar h3 { font-size: .68rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--text-muted); padding: 0 12px; margin: 20px 0 10px; }
.admin-sidebar h3:first-child { margin-top: 0; }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: .88rem; transition: var(--transition); margin-bottom: 2px;
}
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(167,139,250,.1); color: var(--accent-purple); font-weight: 600; }
.admin-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-content { padding: 32px; overflow-x: auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-header h2 { font-size: 1.6rem; color: var(--text-white); }

/* Admin stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card-admin {
  padding: 24px; background: rgba(20,20,35,.55); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 16px;
}
.stat-card-admin .stat-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-card-admin .stat-icon svg { width: 24px; height: 24px; }
.stat-card-admin .stat-info h4 { font-size: 1.6rem; font-weight: 700; color: var(--text-white); }
.stat-card-admin .stat-info p { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* ===== TABLES ===== */
.table-container { overflow-x: auto; background: rgba(20,20,35,.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; padding: 14px 16px; background: rgba(255,255,255,.02); color: var(--text-muted); font-size: .73rem; text-transform: uppercase; letter-spacing: 1.5px; border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 600; }
.table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--text-secondary); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .76rem; font-weight: 600; }
.status-pending { background: rgba(251,191,36,.1); color: var(--accent-amber); }
.status-approved { background: rgba(52,211,153,.1); color: var(--accent-green); }
.status-rejected { background: rgba(248,113,113,.1); color: var(--accent-red); }
.status-published { background: rgba(52,211,153,.1); color: var(--accent-green); }
.status-draft { background: rgba(148,163,184,.1); color: var(--text-muted); }

/* ===== PAYMENT FLOW ===== */
.payment-card { max-width: 600px; margin: 0 auto; background: rgba(20,20,35,.55); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-xl); padding: 40px; text-align: center; }
.bank-info { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.bank-info .bank-name { font-size: 1.2rem; font-weight: 700; color: var(--text-white); }
.bank-info .account-number { font-size: 2rem; font-weight: 700; color: var(--accent-blue); letter-spacing: 3px; margin: 8px 0; }
.bank-info .account-holder { color: var(--text-muted); font-size: .85rem; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 16px; background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.2); color: var(--accent-blue); border-radius: 20px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.copy-btn:hover { background: var(--accent-blue); color: #000; }
.copy-btn.copied { background: var(--accent-green); border-color: var(--accent-green); color: #000; }
.contact-card { background: rgba(167,139,250,.05); border: 1px solid rgba(167,139,250,.15); border-radius: var(--radius); padding: 24px; margin-top: 24px; text-align: center; }
.status-waiting { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.15); border-radius: var(--radius); margin: 20px 0; color: var(--accent-amber); }
.status-waiting .spinner { width: 20px; height: 20px; border: 2px solid var(--accent-amber); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FLASH ===== */
.flash { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; }
.flash-success { background: rgba(52,211,153,.06); color: var(--accent-green); border: 1px solid rgba(52,211,153,.15); }
.flash-error   { background: rgba(248,113,113,.06); color: var(--accent-red); border: 1px solid rgba(248,113,113,.15); }
.flash-info    { background: rgba(167,139,250,.06); color: var(--accent-purple); border: 1px solid rgba(167,139,250,.15); }
.flash-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 1.2rem; opacity: .7; }
.flash-close:hover { opacity: 1; }

/* ===== BUILDER / MODAL ===== */
.builder-empty { text-align: center; padding: 56px 20px; color: var(--text-muted); border: 2px dashed rgba(255,255,255,.06); border-radius: var(--radius-lg); }
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: rgba(20,20,35,.9); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl); padding: 32px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-box h3 { color: var(--text-white); margin-bottom: 20px; font-size: 1.25rem; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ===== EDITOR ===== */
.editor-toolbar { display: flex; gap: 4px; padding: 8px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius) var(--radius) 0 0; flex-wrap: wrap; }
.editor-toolbar button { padding: 6px 10px; background: none; border: none; color: var(--text-secondary); border-radius: 6px; cursor: pointer; font-family: inherit; font-size: .82rem; }
.editor-toolbar button:hover { background: rgba(255,255,255,.06); color: var(--text-white); }
.editor-content { min-height: 280px; padding: 16px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.08); border-top: none; border-radius: 0 0 var(--radius) var(--radius); color: var(--text); font-family: inherit; outline: none; overflow-y: auto; line-height: 1.8; }

/* ===== UPLOAD ZONE ===== */
.upload-zone { border: 2px dashed rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 36px 20px; text-align: center; color: var(--text-muted); cursor: pointer; position: relative; }
.upload-zone:hover { border-color: var(--accent-purple); background: rgba(167,139,250,.05); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { margin-top: 12px; }
.upload-preview img { max-width: 200px; border-radius: var(--radius); }

/* ===== BADGES ===== */
.membership-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.membership-active { background: rgba(52,211,153,.1); color: var(--accent-green); }
.membership-expired { background: rgba(248,113,113,.1); color: var(--accent-red); }
.membership-none { background: rgba(148,163,184,.1); color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid rgba(255,255,255,.04); padding: 48px 28px 24px; position: relative; z-index: 1; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text-white); font-weight: 700; }
.footer-col p { color: var(--text-muted); font-size: .9rem; }
.footer-col h4 { color: var(--text-white); margin-bottom: 12px; font-size: .92rem; }
.footer-col a { display: block; color: var(--text-muted); font-size: .88rem; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--accent-purple); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.04); color: var(--text-muted); font-size: .84rem; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 64px; height: 64px; opacity: .25; margin-bottom: 16px; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.w-full { width: 100%; }
.category-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.category-pill { padding: 6px 16px; border-radius: 20px; font-size: .8rem; font-weight: 500; background: rgba(255,255,255,.04); color: var(--text-secondary); border: 1px solid rgba(255,255,255,.06); cursor: pointer; transition: var(--transition); }
.category-pill:hover, .category-pill.active { background: rgba(167,139,250,.1); color: var(--accent-purple); border-color: rgba(167,139,250,.2); }
.search-box { position: relative; max-width: 360px; }
.search-box input { width: 100%; padding: 10px 16px 10px 42px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); color: var(--text); font-size: .9rem; outline: none; font-family: inherit; }
.search-box input:focus { border-color: var(--accent-purple); }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block; position: fixed; inset: 64px 0 0 0; z-index: 50; height: auto; }
  .course-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .page-header h1 { font-size: 1.9rem; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(0,0,0,.95); backdrop-filter: blur(40px); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media print {
  .navbar, .footer, .admin-sidebar, #liquid-bg { display: none; }
  body { background: #fff; color: #000; }
}
