/* ============================================
   EduBoard Pro — Frontend Styles
   ============================================ */

:root {
  --ebp-primary: #6c63ff;
  --ebp-primary-dark: #4a42d6;
  --ebp-secondary: #ff6584;
  --ebp-accent: #43e97b;
  --ebp-gold: #f5a623;
  --ebp-dark: #1a1a2e;
  --ebp-darker: #0d0d1a;
  --ebp-light: #f8f9ff;
  --ebp-gray: #6b7280;
  --ebp-border: #e2e8f0;
  --ebp-success: #10b981;
  --ebp-error: #ef4444;
  --ebp-warning: #f59e0b;
  --ebp-radius: 12px;
  --ebp-shadow: 0 4px 24px rgba(108,99,255,0.12);
  --ebp-shadow-lg: 0 16px 48px rgba(108,99,255,0.2);
  --ebp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ebp-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

/* ============ BASE ============ */
.ebp-courses-wrap,
.ebp-course-detail,
.ebp-my-courses-wrap,
.ebp-ai-gen-wrap,
.ebp-whiteboard-wrap { font-family: var(--ebp-font); }

/* ============ BUTTONS ============ */
.ebp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; font-weight: 600;
  font-size: 14px; border: none; cursor: pointer;
  transition: var(--ebp-transition); text-decoration: none;
  line-height: 1.4; white-space: nowrap;
}
.ebp-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ebp-btn-primary { background: linear-gradient(135deg, var(--ebp-primary), var(--ebp-primary-dark)); color: #fff; box-shadow: 0 4px 15px rgba(108,99,255,0.3); }
.ebp-btn-primary:hover { box-shadow: 0 8px 25px rgba(108,99,255,0.4); color: #fff; }
.ebp-btn-outline { background: transparent; border: 2px solid var(--ebp-primary); color: var(--ebp-primary); }
.ebp-btn-outline:hover { background: var(--ebp-primary); color: #fff; }
.ebp-btn-gold { background: linear-gradient(135deg, #f5a623, #e8901a); color: #fff; box-shadow: 0 4px 15px rgba(245,166,35,0.3); }
.ebp-btn-gold:hover { box-shadow: 0 8px 25px rgba(245,166,35,0.45); color: #fff; }
.ebp-btn-full { width: 100%; justify-content: center; }
.ebp-btn-sm { padding: 6px 14px; font-size: 12px; }
.ebp-btn-lg { padding: 14px 32px; font-size: 16px; }

/* ============ COURSES GRID ============ */
.ebp-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; padding: 20px 0;
}

.ebp-course-card {
  background: #fff; border-radius: var(--ebp-radius);
  box-shadow: var(--ebp-shadow); overflow: hidden;
  transition: var(--ebp-transition);
  animation-fill-mode: both;
}
.ebp-course-card:hover { transform: translateY(-6px); box-shadow: var(--ebp-shadow-lg); }

.ebp-course-thumb {
  position: relative; display: block; height: 180px; overflow: hidden;
  background: linear-gradient(135deg, var(--ebp-primary), var(--ebp-secondary));
}
.ebp-course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ebp-course-card:hover .ebp-course-thumb img { transform: scale(1.05); }
.ebp-course-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 60px;
}
.ebp-course-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--ebp-gold); color: #fff; padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.ebp-badge-enrolled { background: var(--ebp-success); }
.ebp-badge-free { background: var(--ebp-accent); color: var(--ebp-dark); }

.ebp-course-body { padding: 20px; }
.ebp-course-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.ebp-course-title a { color: var(--ebp-dark); text-decoration: none; }
.ebp-course-title a:hover { color: var(--ebp-primary); }
.ebp-course-excerpt { color: var(--ebp-gray); font-size: 13px; margin: 0 0 12px; line-height: 1.6; }
.ebp-course-meta { display: flex; gap: 12px; margin-bottom: 16px; font-size: 12px; color: var(--ebp-gray); flex-wrap: wrap; }

/* ============ COURSE HERO ============ */
.ebp-course-hero {
  position: relative; min-height: 280px; display: flex;
  align-items: flex-end; padding: 40px; overflow: hidden;
  background: linear-gradient(135deg, var(--ebp-dark) 0%, var(--ebp-primary) 100%);
  border-radius: var(--ebp-radius); margin-bottom: 32px; color: #fff;
}
.ebp-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.35); border-radius: inherit;
}
.ebp-hero-content { position: relative; z-index: 1; max-width: 700px; }
.ebp-hero-content h1 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 42px); }
.ebp-hero-content p { margin: 0 0 16px; opacity: 0.9; font-size: 15px; }
.ebp-course-stats { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; opacity: 0.9; }

/* ============ PROGRESS BAR ============ */
.ebp-progress-section { margin: 0 0 24px; }
.ebp-progress-label { font-size: 13px; color: var(--ebp-gray); margin-bottom: 8px; font-weight: 600; }
.ebp-progress-bar-wrap {
  background: var(--ebp-border); border-radius: 20px; height: 10px; overflow: hidden;
}
.ebp-progress-bar {
  height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--ebp-primary), var(--ebp-accent));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.ebp-mini-progress { height: 6px; background: var(--ebp-border); border-radius: 20px; margin: 8px 0 4px; overflow: hidden; }
.ebp-mini-progress-bar { height: 100%; background: linear-gradient(90deg, var(--ebp-primary), var(--ebp-accent)); border-radius: 20px; transition: width 0.8s; }
.ebp-progress-lg { height: 16px; }

/* ============ COURSE LAYOUT ============ */
.ebp-course-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .ebp-course-layout { grid-template-columns: 1fr; } }

/* ============ CURRICULUM ============ */
.ebp-curriculum h2 { margin: 0 0 20px; font-size: 22px; color: var(--ebp-dark); }
.ebp-module-accordion { border: 1px solid var(--ebp-border); border-radius: var(--ebp-radius); margin-bottom: 12px; overflow: hidden; }
.ebp-module-header {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  background: var(--ebp-light); cursor: pointer; user-select: none;
  transition: var(--ebp-transition);
}
.ebp-module-header:hover { background: #eef0ff; }
.ebp-module-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ebp-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.ebp-module-title { flex: 1; font-weight: 600; color: var(--ebp-dark); }
.ebp-module-count { font-size: 12px; color: var(--ebp-gray); }
.ebp-module-arrow { transition: transform 0.3s; }
.ebp-module-accordion.open .ebp-module-arrow { transform: rotate(180deg); }
.ebp-module-lessons { padding: 8px 0; display: none; }
.ebp-module-accordion.open .ebp-module-lessons { display: block; }

.ebp-lesson-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; transition: var(--ebp-transition);
}
.ebp-lesson-item:hover { background: #f8f7ff; }
.ebp-lesson-item.ebp-done { background: #f0fdf4; }
.ebp-lesson-icon { font-size: 16px; }
.ebp-lesson-num { font-size: 12px; color: var(--ebp-gray); width: 28px; flex-shrink: 0; }
.ebp-lesson-link { color: var(--ebp-dark); text-decoration: none; font-size: 14px; flex: 1; }
.ebp-lesson-link:hover { color: var(--ebp-primary); }
.ebp-locked { color: var(--ebp-gray); cursor: not-allowed; }

/* ============ SIDEBAR / ENROLL CARD ============ */
.ebp-course-sidebar { position: sticky; top: 24px; }
.ebp-enroll-card {
  background: #fff; border-radius: var(--ebp-radius);
  box-shadow: var(--ebp-shadow); padding: 28px;
  border: 1px solid var(--ebp-border); text-align: center;
}
.ebp-price-display { font-size: 36px; font-weight: 800; color: var(--ebp-primary); margin-bottom: 16px; }
.ebp-enrolled-badge {
  background: linear-gradient(135deg, var(--ebp-success), #059669);
  color: #fff; padding: 10px 20px; border-radius: 8px;
  font-weight: 700; margin-bottom: 16px; font-size: 14px;
}
.ebp-payment-note { font-size: 12px; color: var(--ebp-gray); margin-top: 10px; }

/* ============ WHITEBOARD ============ */
.ebp-whiteboard-wrap {
  display: flex; flex-direction: column;
  height: calc(100vh - 80px); min-height: 500px;
  background: #fff; border-radius: var(--ebp-radius);
  box-shadow: var(--ebp-shadow); overflow: hidden;
}

.ebp-wb-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--ebp-dark);
  flex-wrap: wrap; position: sticky; top: 0; z-index: 100;
  min-height: 56px;
}
.ebp-wb-toolbar-left, .ebp-wb-toolbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ebp-wb-toolbar-center { flex: 1; text-align: center; }
.ebp-lesson-title-bar { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600; }

.ebp-tool-group { display: flex; align-items: center; gap: 4px; padding: 0 6px; border-right: 1px solid rgba(255,255,255,0.1); }
.ebp-tool-group:last-child { border-right: none; }

.ebp-tool-btn {
  width: 32px; height: 32px; border: none; border-radius: 6px;
  background: rgba(255,255,255,0.1); color: #fff; cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: var(--ebp-transition); white-space: nowrap; padding: 0 8px;
  width: auto; min-width: 32px;
}
.ebp-tool-btn:hover { background: rgba(255,255,255,0.25); }
.ebp-tool-btn.active { background: var(--ebp-primary); }
.ebp-btn-save { background: var(--ebp-success) !important; }
.ebp-btn-complete { background: var(--ebp-gold) !important; color: var(--ebp-dark) !important; }

.ebp-slider { width: 70px; accent-color: var(--ebp-primary); }
.ebp-select-sm { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 4px 8px; font-size: 12px; max-width: 120px; }
.ebp-select-sm option { background: var(--ebp-dark); color: #fff; }

.ebp-bg-swatches { display: flex; gap: 4px; align-items: center; }
.ebp-bg-swatch {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3); transition: var(--ebp-transition);
}
.ebp-bg-swatch:hover, .ebp-bg-swatch.active { border-color: #fff; transform: scale(1.2); }
#ebp-bg-custom { width: 28px; height: 28px; border: none; border-radius: 50%; cursor: pointer; padding: 0; }

/* Canvas Area */
.ebp-wb-main { display: flex; flex: 1; overflow: hidden; }
.ebp-wb-sidebar { background: var(--ebp-darker); display: flex; flex-direction: column; width: 44px; align-items: center; padding: 8px 0; gap: 4px; }
.ebp-wb-sidebar-tab {
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(255,255,255,0.6); transition: var(--ebp-transition);
}
.ebp-wb-sidebar-tab:hover, .ebp-wb-sidebar-tab.active { background: rgba(108,99,255,0.4); color: #fff; }

.ebp-wb-panels { width: 240px; background: #fafbff; border-right: 1px solid var(--ebp-border); overflow-y: auto; }
.ebp-wb-panel { padding: 16px; display: none; }
.ebp-wb-panel.active { display: block; }
.ebp-wb-panel h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--ebp-dark); text-transform: uppercase; letter-spacing: 0.5px; }

.ebp-lesson-text-preview { font-size: 13px; line-height: 1.6; color: var(--ebp-dark); max-height: 400px; overflow-y: auto; margin-bottom: 12px; }
.ebp-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.ebp-media-item { border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--ebp-border); }
.ebp-media-item img, .ebp-media-item video { width: 100%; height: 100%; object-fit: cover; }

.ebp-shapes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ebp-shape-btn {
  height: 44px; border: 1px solid var(--ebp-border); border-radius: 8px; cursor: pointer;
  background: #fff; font-size: 20px; transition: var(--ebp-transition);
}
.ebp-shape-btn:hover { background: var(--ebp-primary); color: #fff; border-color: var(--ebp-primary); }

.ebp-wb-canvas-wrap {
  flex: 1; position: relative; overflow: hidden;
  background: #fff;
}
#ebp-whiteboard-canvas { display: block; cursor: crosshair; touch-action: none; }
#ebp-wb-media-overlay { position: absolute; inset: 0; pointer-events: none; }
.ebp-wb-media-item {
  position: absolute; pointer-events: all; cursor: move;
  border: 2px solid transparent; border-radius: 4px; transition: border-color 0.2s;
}
.ebp-wb-media-item:hover { border-color: var(--ebp-primary); }
.ebp-wb-media-item video { max-width: 100%; border-radius: 4px; }
.ebp-wb-media-item img { max-width: 100%; border-radius: 4px; }
.ebp-wb-video-player { width: 100%; max-width: 600px; }

/* Nav */
.ebp-wb-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: var(--ebp-light); border-top: 1px solid var(--ebp-border);
  flex-wrap: wrap; gap: 10px;
}

/* ============ MODALS ============ */
.ebp-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.ebp-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.ebp-modal-content {
  position: relative; z-index: 1; background: #fff;
  border-radius: 16px; padding: 32px; max-width: 500px; width: 90%;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  animation: ebpSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ebp-modal-large { max-width: 800px; }
.ebp-cert-modal-content { max-width: 700px; }
.ebp-modal-content h2 { margin: 0 0 20px; color: var(--ebp-dark); }
.ebp-modal-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

@keyframes ebpSlideIn {
  from { transform: translateY(-20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ============ FORMS ============ */
.ebp-form-group { margin-bottom: 20px; }
.ebp-form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ebp-dark); }
.ebp-input, .ebp-select, .ebp-textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--ebp-border);
  border-radius: 8px; font-size: 14px; color: var(--ebp-dark);
  transition: var(--ebp-transition); font-family: var(--ebp-font);
  background: #fff;
}
.ebp-input:focus, .ebp-select:focus, .ebp-textarea:focus {
  outline: none; border-color: var(--ebp-primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.ebp-textarea { min-height: 100px; resize: vertical; }
.ebp-textarea-large { min-height: 300px; resize: vertical; width: 100%; }
.ebp-form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ebp-form-row { grid-template-columns: 1fr; } }

/* ============ NOTIFICATIONS ============ */
.ebp-notifications { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.ebp-notif {
  background: var(--ebp-dark); color: #fff; padding: 14px 20px;
  border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  font-size: 14px; font-weight: 500; max-width: 360px;
  animation: ebpSlideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all; display: flex; align-items: center; gap: 10px;
}
.ebp-notif.success { background: linear-gradient(135deg, var(--ebp-success), #059669); }
.ebp-notif.error { background: linear-gradient(135deg, var(--ebp-error), #dc2626); }
.ebp-notif.warning { background: linear-gradient(135deg, var(--ebp-warning), #d97706); }
.ebp-notif.fadeout { opacity: 0; transform: translateX(20px); transition: all 0.4s; }

@keyframes ebpSlideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============ SPINNERS ============ */
.ebp-spinner {
  width: 36px; height: 36px; border: 3px solid rgba(108,99,255,0.2);
  border-top-color: var(--ebp-primary); border-radius: 50%;
  animation: ebpSpin 0.8s linear infinite; margin: 0 auto;
}
.ebp-spinner-lg { width: 60px; height: 60px; border-width: 5px; }
@keyframes ebpSpin { to { transform: rotate(360deg); } }

/* ============ LOCKED CONTENT ============ */
.ebp-locked-content {
  text-align: center; padding: 60px 40px;
  background: linear-gradient(135deg, #f8f7ff, #fff);
  border-radius: var(--ebp-radius); border: 2px dashed var(--ebp-primary);
}
.ebp-lock-icon { font-size: 64px; margin-bottom: 16px; }
.ebp-lock-price { font-size: 42px; font-weight: 800; color: var(--ebp-primary); margin: 16px 0 24px; }

/* ============ AI GENERATOR ============ */
.ebp-ai-gen-wrap { max-width: 860px; margin: 0 auto; padding: 20px; }
.ebp-ai-hero { text-align: center; padding: 40px 20px; }
.ebp-ai-hero h2 { font-size: 36px; color: var(--ebp-dark); margin: 0 0 12px; }
.ebp-ai-hero p { color: var(--ebp-gray); font-size: 16px; }

.ebp-ai-form-card {
  background: #fff; border-radius: 16px; padding: 32px;
  box-shadow: var(--ebp-shadow); border: 1px solid var(--ebp-border);
}

.ebp-cost-display {
  background: linear-gradient(135deg, var(--ebp-primary), var(--ebp-primary-dark));
  color: #fff; padding: 14px 20px; border-radius: 10px; margin: 20px 0;
  font-size: 16px;
}

.ebp-trial-notice {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid var(--ebp-accent); border-radius: 10px;
  padding: 16px 20px; margin: 16px 0;
}
.ebp-trial-badge { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--ebp-success); }
.ebp-ai-actions { display: flex; justify-content: center; margin-top: 24px; }

.ebp-ai-progress-wrap { text-align: center; padding: 40px 20px; }
.ebp-ai-spinner-wrap { margin-bottom: 24px; }
.ebp-success-card {
  text-align: center; padding: 48px 32px;
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border-radius: 16px; border: 2px solid var(--ebp-accent);
}
.ebp-success-icon { font-size: 64px; margin-bottom: 16px; }

/* ============ CERTIFICATE ============ */
#ebp-cert-display {
  font-family: 'Georgia', serif;
}
.ebp-certificate {
  background: linear-gradient(135deg, #fffef7 0%, #fff8e1 50%, #fffef7 100%);
  border: 12px solid transparent;
  border-image: linear-gradient(135deg, #c6a84b, #f5d875, #c6a84b) 1;
  padding: 48px; text-align: center; position: relative;
  font-family: 'Georgia', serif;
}
.ebp-cert-corners { position: absolute; inset: 8px; border: 2px solid #c6a84b; pointer-events: none; }
.ebp-cert-logo { font-size: 48px; margin-bottom: 8px; }
.ebp-cert-site { font-size: 13px; color: #8b6914; text-transform: uppercase; letter-spacing: 3px; font-weight: 600; }
.ebp-cert-divider { border: none; border-top: 2px solid #c6a84b; margin: 20px auto; width: 60%; }
.ebp-cert-presents { font-size: 14px; color: #666; font-style: italic; margin: 0 0 8px; }
.ebp-cert-title { font-size: 42px; color: #1a1a2e; font-weight: 700; margin: 0 0 12px; letter-spacing: -1px; }
.ebp-cert-subtitle { font-size: 18px; color: #555; font-style: italic; margin: 0 0 24px; }
.ebp-cert-awarded { font-size: 13px; color: #888; text-transform: uppercase; letter-spacing: 2px; }
.ebp-cert-name { font-size: 32px; color: var(--ebp-primary); font-weight: 700; margin: 8px 0 20px; }
.ebp-cert-course-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 2px; }
.ebp-cert-course { font-size: 22px; color: var(--ebp-dark); font-weight: 700; margin: 8px 0 24px; }
.ebp-cert-footer { display: flex; justify-content: space-around; align-items: flex-end; margin-top: 32px; }
.ebp-cert-date, .ebp-cert-code { font-size: 11px; color: #888; }
.ebp-cert-date span, .ebp-cert-code span { display: block; font-size: 14px; color: var(--ebp-dark); font-weight: 600; }
.ebp-cert-seal { font-size: 52px; }
.ebp-cert-star-border {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, #f5d875 1px, transparent 1px);
  background-size: 24px 24px; opacity: 0.2;
}

/* ============ MY COURSES ============ */
.ebp-my-courses-wrap { padding: 20px 0; }
.ebp-my-courses-wrap h2 { font-size: 28px; margin: 0 0 24px; color: var(--ebp-dark); }
.ebp-empty-state { text-align: center; padding: 64px 20px; }
.ebp-empty-icon { font-size: 64px; margin-bottom: 16px; }

/* ============ LOGIN PROMPT ============ */
.ebp-login-prompt { text-align: center; padding: 32px; background: var(--ebp-light); border-radius: var(--ebp-radius); }
.ebp-login-prompt a { color: var(--ebp-primary); font-weight: 600; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .ebp-whiteboard-wrap { height: auto; min-height: 600px; }
  .ebp-wb-main { flex-direction: column; }
  .ebp-wb-sidebar { flex-direction: row; width: 100%; height: 44px; justify-content: center; }
  .ebp-wb-panels { width: 100%; height: 150px; }
  .ebp-wb-toolbar { padding: 6px 8px; gap: 4px; }
  .ebp-tool-btn { min-width: 28px; height: 28px; font-size: 12px; }
  .ebp-wb-toolbar-center { display: none; }
  .ebp-course-hero { padding: 24px; min-height: 200px; }
  .ebp-cert-title { font-size: 28px; }
  .ebp-cert-name { font-size: 24px; }
  .ebp-certificate { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .ebp-courses-grid { grid-template-columns: 1fr; }
  .ebp-modal-content { padding: 20px; }
}

/* ============ UTILITY ============ */
.ebp-empty { color: var(--ebp-gray); text-align: center; padding: 40px; font-size: 16px; }
.ebp-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ebp-badge-active { background: #d1fae5; color: #065f46; }
.ebp-badge-pending { background: #fef3c7; color: #92400e; }

/* ============ FACILITATOR DASHBOARD ============ */
.ebp-facilitator-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; font-family: var(--ebp-font); }

.ebp-fac-header {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, var(--ebp-dark) 0%, #2d2d5e 100%);
  padding: 28px 32px; border-radius: 16px; margin-bottom: 28px; color: #fff;
  flex-wrap: wrap;
}
.ebp-fac-avatar { flex-shrink: 0; }
.ebp-avatar-img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); }
.ebp-fac-welcome { flex: 1; }
.ebp-fac-welcome h1 { margin: 0 0 4px; font-size: clamp(18px, 3vw, 26px); font-weight: 800; }
.ebp-fac-welcome p  { margin: 0; opacity: 0.7; font-size: 13px; }
.ebp-fac-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Stat cards */
.ebp-fac-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.ebp-fac-stat {
  background: #fff; border-radius: 14px; padding: 24px 20px; text-align: center;
  box-shadow: var(--ebp-shadow); border: 1px solid var(--ebp-border);
  transition: var(--ebp-transition); animation-fill-mode: both;
}
.ebp-fac-stat:hover { transform: translateY(-4px); box-shadow: var(--ebp-shadow-lg); }
.ebp-fac-stat-icon { font-size: 32px; margin-bottom: 8px; }
.ebp-fac-stat-val  { font-size: 28px; font-weight: 800; color: var(--ebp-primary); margin-bottom: 4px; }
.ebp-fac-stat-lbl  { font-size: 12px; color: var(--ebp-gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Tabs */
.ebp-fac-tabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  background: var(--ebp-light); border-radius: 12px; padding: 6px;
  overflow-x: auto; flex-wrap: nowrap;
}
.ebp-fac-tab {
  padding: 10px 20px; border: none; border-radius: 8px;
  background: transparent; cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--ebp-gray); transition: var(--ebp-transition); white-space: nowrap;
}
.ebp-fac-tab:hover  { background: rgba(108,99,255,0.08); color: var(--ebp-primary); }
.ebp-fac-tab.active { background: #fff; color: var(--ebp-primary); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

/* Panels */
.ebp-fac-panel { display: none; }
.ebp-fac-panel.active { display: block; }

/* Course card extras for facilitator */
.ebp-fac-course-card { position: relative; animation-fill-mode: both; }
.ebp-fac-card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ebp-fac-badge {
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.ebp-badge-pub  { background: #d1fae5; color: #065f46; }
.ebp-badge-draft{ background: #fef9c3; color: #713f12; }
.ebp-badge-mon  { background: linear-gradient(135deg,#fef3c7,#fde68a); color: #78350f; }
.ebp-badge-free { background: #dbeafe; color: #1e40af; }

.ebp-fac-card-actions {
  display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap;
}

/* WB selector */
.ebp-fac-wb-intro { padding: 8px 0; }
.ebp-fac-wb-intro h2 { margin: 0 0 8px; }
.ebp-fac-wb-intro > p { color: var(--ebp-gray); margin-bottom: 20px; }
.ebp-fac-wb-selector { background: var(--ebp-light); border-radius: 12px; padding: 24px; margin-bottom: 28px; }

/* Shortcode chips */
.ebp-fac-shortcode-box {
  background: var(--ebp-dark); color: #fff; border-radius: 16px; padding: 28px; margin-top: 24px;
}
.ebp-fac-shortcode-box h3 { margin: 0 0 8px; color: #fff; font-size: 18px; }
.ebp-fac-shortcode-box > p { color: rgba(255,255,255,0.7); margin: 0 0 20px; font-size: 14px; }
.ebp-shortcode-chips { display: flex; flex-direction: column; gap: 10px; }
.ebp-shortcode-chip {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.07); border-radius: 10px; padding: 12px 16px;
  flex-wrap: wrap;
}
.ebp-shortcode-chip code {
  background: rgba(108,99,255,0.3); color: #c4b5fd; padding: 4px 10px;
  border-radius: 6px; font-size: 13px; font-family: 'Courier New', monospace;
  white-space: nowrap;
}
.ebp-shortcode-chip span { flex: 1; color: rgba(255,255,255,0.6); font-size: 13px; }
.ebp-copy-btn {
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 6px; cursor: pointer; font-size: 14px;
  transition: var(--ebp-transition); flex-shrink: 0;
}
.ebp-copy-btn:hover { background: var(--ebp-primary); }

/* New course modal options */
.ebp-new-course-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.ebp-option-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 16px; background: var(--ebp-light); border: 2px solid var(--ebp-border);
  border-radius: 14px; cursor: pointer; transition: var(--ebp-transition); text-align: center;
}
.ebp-option-card:hover { border-color: var(--ebp-primary); background: #f0efff; transform: translateY(-2px); }
.ebp-option-card span  { font-size: 36px; }
.ebp-option-card strong { font-size: 15px; color: var(--ebp-dark); }
.ebp-option-card small  { font-size: 12px; color: var(--ebp-gray); }

/* Settings grid */
.ebp-settings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px;
}
.ebp-settings-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px;
  background: #fff; border-radius: 14px; box-shadow: var(--ebp-shadow);
  text-decoration: none; color: var(--ebp-dark); text-align: center;
  transition: var(--ebp-transition); border: 1px solid var(--ebp-border);
}
.ebp-settings-card:hover { transform: translateY(-4px); box-shadow: var(--ebp-shadow-lg); color: var(--ebp-primary); }
.ebp-settings-card span  { font-size: 32px; }
.ebp-settings-card strong{ font-size: 15px; }
.ebp-settings-card small { font-size: 12px; color: var(--ebp-gray); }

/* Responsive */
@media (max-width: 600px) {
  .ebp-fac-header { padding: 20px; }
  .ebp-new-course-options { grid-template-columns: 1fr; }
  .ebp-shortcode-chip { flex-direction: column; align-items: flex-start; }
}
