/* ═══════════════════════════════════════════════════════════════
   LIMITLESS TRAINING HUB — style.css
   Theme: Corporate Real Estate | Dark Navy + Gold + White
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0b1f3a;
  --navy-mid:   #122843;
  --navy-light: #1a3a5c;
  --gold:       #c9a84c;
  --gold-light: #e8c96b;
  --gold-pale:  #f5e6b8;
  --white:      #ffffff;
  --off-white:  #f7f8fb;
  --gray-100:   #eef0f5;
  --gray-200:   #dde1eb;
  --gray-400:   #9aa3b2;
  --gray-600:   #5c6475;
  --text:       #1a2438;
  --text-light: #4a5568;
  --green:      #27ae60;
  --yellow:     #f39c12;
  --red:        #e74c3c;
  --shadow-sm:  0 2px 8px rgba(11,31,58,0.08);
  --shadow-md:  0 6px 24px rgba(11,31,58,0.12);
  --shadow-lg:  0 16px 48px rgba(11,31,58,0.18);
  --radius:     12px;
  --radius-lg:  20px;
  --sidebar-w:  260px;
  --topbar-h:   64px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--off-white); line-height: 1.6; min-height: 100vh; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: 'DM Sans', sans-serif; border: none; outline: none; }
input { font-family: 'DM Sans', sans-serif; outline: none; border: none; }
ul { list-style: none; }

.page { display: none; }
.page.active { display: block; }
.inner-page { display: none; padding: 32px; }
.inner-page.active { display: block; }

/* ══════════════════════════════════════════════════════════
   LOGIN / AUTH PAGE
══════════════════════════════════════════════════════════ */
#page-login { min-height: 100vh; position: relative; overflow: hidden; }
.login-bg { position: fixed; inset: 0; z-index: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.login-bg-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.15) 0%, transparent 60%); }
.login-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.login-container { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: stretch; justify-content: center; }

.login-card {
  background: var(--white);
  width: 460px;
  padding: 40px 40px 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
  overflow-y: auto;
}
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.login-logo { display: flex; align-items: center; gap: 14px; }
.logo-icon { width: 52px; height: 52px; background: var(--navy); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 22px; flex-shrink: 0; }
.logo-text h1 { font-size: 26px; color: var(--navy); letter-spacing: 3px; }
.logo-text p { font-size: 12px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; font-weight: 500; margin-top: 1px; }
.login-tagline { font-size: 13px; color: var(--gray-400); font-style: italic; border-left: 3px solid var(--gold); padding-left: 12px; }

/* AUTH TABS */
.auth-tabs { display: flex; border-bottom: 2px solid var(--gray-200); gap: 0; }
.auth-tab {
  flex: 1; padding: 10px 16px; background: none;
  font-size: 14px; font-weight: 600; color: var(--gray-400);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.auth-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.auth-tab:hover:not(.active) { color: var(--text); }

.login-form { display: flex; flex-direction: column; gap: 14px; }

/* Form rows for 2-column layout */
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--navy); letter-spacing: 0.5px; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.form-group label i { color: var(--gold); }
.label-opt { font-weight: 400; text-transform: none; color: var(--gray-400); font-size: 10px; letter-spacing: 0; }
.form-group input {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--gray-200); border-radius: 8px;
  font-size: 14px; background: var(--off-white); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); background: var(--white); }
.form-group input.error { border-color: var(--red); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.toggle-pw { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); cursor: pointer; font-size: 14px; transition: color var(--transition); }
.toggle-pw:hover { color: var(--gold); }

/* Password strength */
.pw-strength-bar { height: 4px; background: var(--gray-200); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.pw-strength-fill { height: 100%; width: 0%; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.pw-strength-label { font-size: 11px; margin-top: 3px; font-weight: 500; }

.login-error {
  background: #fdf2f2; border: 1px solid #f5c6c6; color: var(--red);
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
  display: flex; align-items: center; gap: 7px;
}
.login-success {
  background: #edfaf3; border: 1px solid #a9dfbf; color: var(--green);
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
  display: flex; align-items: center; gap: 7px;
}

.btn-login {
  width: 100%; padding: 13px;
  background: var(--navy); color: var(--white);
  border-radius: 8px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.btn-login::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 60%, rgba(201,168,76,0.2)); }
.btn-login:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(11,31,58,0.3); }
.btn-login:disabled { opacity: 0.6; pointer-events: none; }

.auth-switch { font-size: 13px; color: var(--gray-400); text-align: center; }
.auth-switch a { color: var(--gold); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* LOGIN SIDE PANEL */
.login-side { flex: 1; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); display: flex; align-items: center; justify-content: center; padding: 60px 48px; position: relative; overflow: hidden; }
.login-side::before { content: ''; position: absolute; bottom: -60px; right: -60px; width: 300px; height: 300px; border-radius: 50%; background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.15); }
.login-side::after { content: ''; position: absolute; top: -40px; left: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(201,168,76,0.05); border: 1px solid rgba(201,168,76,0.1); }
.login-side-content { position: relative; z-index: 1; max-width: 400px; }
.login-side-content h2 { font-size: 44px; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
.login-side-content p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 32px; }
.login-features { display: flex; flex-direction: column; gap: 14px; }
.lf-item { display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255,255,255,0.85); font-weight: 500; }
.lf-item i { color: var(--gold); font-size: 17px; width: 22px; text-align: center; }

/* ══════════════════════════════════════════════════════════
   APP SHELL — SIDEBAR
══════════════════════════════════════════════════════════ */
#app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--navy); color: var(--white); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; transition: transform var(--transition); overflow-y: auto; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.sidebar-header { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.logo-icon-sm { width: 38px; height: 38px; background: rgba(201,168,76,0.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 18px; flex-shrink: 0; }
.sidebar-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 18px; letter-spacing: 2px; color: var(--white); }
.sidebar-sub { font-size: 10px; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }
.sidebar-close { display: none; background: none; color: rgba(255,255,255,0.5); font-size: 16px; margin-left: auto; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.su-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.su-name { font-size: 13px; font-weight: 600; color: var(--white); }
.su-role { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links { padding: 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.65); transition: background var(--transition), color var(--transition); }
.nav-link i { width: 18px; text-align: center; font-size: 15px; }
.nav-link:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.nav-link.active { background: rgba(201,168,76,0.15); color: var(--gold); }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.08); }
.btn-logout { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 11px; border-radius: 8px; background: rgba(231,76,60,0.12); color: #ff6b6b; font-size: 13px; font-weight: 500; transition: background var(--transition); }
.btn-logout:hover { background: rgba(231,76,60,0.22); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; }

.main-content { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; background: var(--off-white); }
.topbar { height: var(--topbar-h); background: var(--white); border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; gap: 16px; padding: 0 28px 0 24px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.hamburger { display: none; background: none; color: var(--text); font-size: 20px; padding: 6px; border-radius: 6px; }
.topbar-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: var(--navy); flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.search-quick { position: relative; display: flex; align-items: center; }
.search-quick input { padding: 8px 36px 8px 14px; border: 1.5px solid var(--gray-200); border-radius: 20px; font-size: 13px; background: var(--off-white); width: 200px; transition: all var(--transition); }
.search-quick input:focus { border-color: var(--gold); width: 250px; background: var(--white); }
.search-quick i { position: absolute; right: 12px; color: var(--gray-400); font-size: 12px; pointer-events: none; }
.topbar-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--gold); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ══ DASHBOARD ══ */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); border-radius: var(--radius-lg); padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -30px; right: -30px; width: 200px; height: 200px; border-radius: 50%; background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.15); }
.page-hero::after { content: '\221E'; position: absolute; right: 40px; bottom: -10px; font-size: 140px; color: rgba(201,168,76,0.06); font-family: 'Cormorant Garamond', serif; font-weight: 700; line-height: 1; pointer-events: none; }
.hero-greeting { font-size: 13px; color: var(--gold); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.page-hero-text h2 { font-size: 36px; color: var(--white); margin-bottom: 8px; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.65); }
.page-hero-stats { display: flex; gap: 16px; flex-shrink: 0; }
.stat-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 16px 22px; text-align: center; min-width: 90px; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.section-label { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }

/* ══ MODULE CARDS ══ */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.module-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: transform var(--transition), box-shadow var(--transition); cursor: pointer; position: relative; overflow: hidden; }
.module-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--module-color, var(--gold)); opacity: 0.8; }
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.module-card-num { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.module-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--module-bg, #f5e6b8); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.module-card-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-family: 'Cormorant Garamond', serif; }
.module-card-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }
.module-card-footer { display: flex; align-items: center; justify-content: space-between; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-green { background: #e8f8ef; color: var(--green); }
.badge-yellow { background: #fef9e7; color: var(--yellow); }
.badge-gray { background: var(--gray-100); color: var(--gray-400); }
.btn-start { padding: 8px 18px; border-radius: 20px; background: var(--navy); color: var(--white); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: background var(--transition), transform var(--transition); }
.btn-start:hover { background: var(--navy-light); transform: scale(1.03); }
.btn-start.locked { background: var(--gray-200); color: var(--gray-400); pointer-events: none; }

/* ══ MODULES LIST ══ */
.page-header-block { margin-bottom: 28px; }
.page-header-block h2 { font-size: 36px; color: var(--navy); margin-bottom: 8px; }
.page-header-block p { font-size: 14px; color: var(--text-light); max-width: 600px; }
.modules-list { display: flex; flex-direction: column; gap: 16px; }
.module-list-item { background: var(--white); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.module-list-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.mli-num { width: 48px; height: 48px; border-radius: 12px; background: var(--module-bg, #f5e6b8); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.mli-body { flex: 1; }
.mli-title { font-size: 18px; font-family: 'Cormorant Garamond', serif; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.mli-desc { font-size: 13px; color: var(--text-light); }
.mli-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mli-duration { font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 5px; }
.btn-arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--off-white); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background var(--transition), color var(--transition); }
.module-list-item:hover .btn-arrow { background: var(--navy); color: var(--gold); }

/* ══ MODULE DETAIL ══ */
.btn-back { display: inline-flex; align-items: center; gap: 8px; background: none; font-size: 14px; font-weight: 600; color: var(--navy); padding: 8px 0; margin-bottom: 20px; transition: color var(--transition), gap var(--transition); }
.btn-back:hover { color: var(--gold); gap: 12px; }
.module-detail-wrap { max-width: 1100px; }
.module-detail-header { margin-bottom: 24px; }
.module-detail-header h2 { font-size: 36px; color: var(--navy); margin-bottom: 8px; }
.module-detail-header p { font-size: 14px; color: var(--text-light); }
.video-container { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); margin-bottom: 28px; }
.video-container iframe { width: 100%; height: 100%; border: none; display: block; }
.module-meta-row { display: flex; gap: 28px; align-items: flex-start; }
.module-detail-body { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.detail-section { background: var(--white); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.detail-section h3 { font-size: 18px; color: var(--navy); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: 'Cormorant Garamond', serif; }
.detail-section h3 i { color: var(--gold); }
.detail-section ul li { padding: 8px 0; font-size: 14px; color: var(--text-light); border-bottom: 1px solid var(--gray-100); display: flex; align-items: flex-start; gap: 10px; }
.detail-section ul li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.detail-section ul li:last-child { border-bottom: none; }
.detail-section p { font-size: 14px; color: var(--text-light); line-height: 1.8; }
.module-sidebar-actions { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--topbar-h) + 20px); }
.progress-ring-wrap { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.progress-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--gray-200); stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 251; transition: stroke-dashoffset 0.8s ease; }
.ring-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 20px; font-weight: 700; color: var(--navy); font-family: 'Cormorant Garamond', serif; }
.module-status-badge { text-align: center; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 600; transition: background var(--transition), transform var(--transition); }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; background: var(--off-white); color: var(--navy); font-size: 13px; font-weight: 600; border: 1.5px solid var(--gray-200); transition: background var(--transition), border-color var(--transition); }
.btn-secondary:hover { background: var(--gray-100); border-color: var(--navy); }
.btn-block { width: 100%; }

/* ══ VIDEO LIBRARY ══ */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.video-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: transform var(--transition), box-shadow var(--transition); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-thumb { width: 100%; aspect-ratio: 16/9; background: var(--navy); }
.video-thumb iframe { width: 100%; height: 100%; border: none; pointer-events: none; display: block; }
.video-card-body { padding: 18px 20px; }
.video-card-cat { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 6px; }
.video-card-title { font-size: 16px; font-family: 'Cormorant Garamond', serif; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.video-card-desc { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* ══ SEARCH ══ */
.search-bar-wrap { position: relative; margin-bottom: 28px; display: flex; align-items: center; }
.search-bar-wrap input { width: 100%; padding: 16px 20px 16px 56px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 16px; background: var(--white); color: var(--text); transition: border-color var(--transition), box-shadow var(--transition); box-shadow: var(--shadow-sm); }
.search-bar-wrap input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.1); }
.search-icon-big { position: absolute; left: 20px; color: var(--gold); font-size: 18px; pointer-events: none; }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-result-item { background: var(--white); border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); cursor: pointer; transition: border-color var(--transition), transform var(--transition); }
.search-result-item:hover { border-color: var(--gold); transform: translateX(4px); }
.sr-icon { width: 42px; height: 42px; border-radius: 10px; background: #f5e6b8; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 18px; flex-shrink: 0; }
.sr-type { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 600; }
.sr-title { font-size: 15px; font-weight: 600; color: var(--navy); margin: 2px 0; }
.sr-desc { font-size: 12px; color: var(--text-light); }
.search-empty, .search-placeholder { text-align: center; padding: 60px 20px; color: var(--gray-400); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.search-placeholder i { opacity: 0.3; }

/* ══ CERTIFICATES ══ */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cert-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); text-align: center; transition: transform var(--transition), box-shadow var(--transition); }
.cert-card.earned { border-color: var(--gold); cursor: pointer; }
.cert-card.earned:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card.locked { opacity: 0.6; }
.cert-card-seal { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; border: 3px solid var(--gold); font-size: 28px; color: var(--gold); }
.cert-card.locked .cert-card-seal { border-color: var(--gray-200); color: var(--gray-400); }
.cert-card-title { font-size: 18px; font-family: 'Cormorant Garamond', serif; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.cert-card-sub { font-size: 12px; color: var(--text-light); margin-bottom: 16px; }
.cert-card-ribbon { display: inline-block; font-size: 11px; font-weight: 600; padding: 5px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.ribbon-earned { background: #e8f8ef; color: var(--green); }
.ribbon-locked { background: var(--gray-100); color: var(--gray-400); }
.cert-card-btn { width: 100%; padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cert-card-btn.active { background: var(--navy); color: var(--white); }
.cert-card-btn.inactive { background: var(--gray-100); color: var(--gray-400); pointer-events: none; }

/* ══ CERTIFICATE MODAL ══ */
.cert-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.cert-modal { background: var(--white); border-radius: var(--radius-lg); padding: 32px; max-width: 720px; width: 100%; box-shadow: var(--shadow-lg); position: relative; max-height: 90vh; overflow-y: auto; }
.cert-modal-close { position: absolute; top: 16px; right: 16px; background: var(--gray-100); color: var(--text); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.cert-modal-close:hover { background: var(--gray-200); }
.cert-download-btn { width: 100%; margin-top: 24px; padding: 14px; font-size: 15px; }
.certificate { background: var(--white); border-radius: 12px; overflow: hidden; }
.cert-border { border: 3px solid var(--navy); border-radius: 10px; padding: 40px; position: relative; background: linear-gradient(135deg, #fdfcf7 0%, var(--white) 100%); }
.cert-border::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--gold-pale); border-radius: 6px; pointer-events: none; }
.cert-header { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 20px; }
.cert-logo { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: 4px; display: flex; align-items: center; gap: 10px; }
.cert-logo i { color: var(--gold); }
.cert-subtitle { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-weight: 500; }
.cert-divider { height: 2px; width: 100%; margin: 20px 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cert-body { text-align: center; padding: 10px 0; }
.cert-presents { font-size: 14px; color: var(--text-light); margin-bottom: 10px; font-style: italic; }
.cert-name { font-size: 40px; color: var(--navy); font-family: 'Cormorant Garamond', serif; font-weight: 700; margin-bottom: 12px; line-height: 1.1; }
.cert-has { font-size: 14px; color: var(--text-light); margin-bottom: 10px; font-style: italic; }
.cert-module { font-size: 22px; color: var(--gold); font-family: 'Cormorant Garamond', serif; font-weight: 700; margin-bottom: 8px; }
.cert-desc { font-size: 13px; color: var(--text-light); }
.cert-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cert-sig { text-align: center; font-size: 12px; color: var(--text-light); flex: 1; }
.cert-sig-line { height: 1px; background: var(--navy); margin-bottom: 6px; }
.cert-sig-name { font-weight: 600; color: var(--navy); margin-top: 2px; font-size: 13px; }
.cert-seal { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); background: #fffdf4; flex-shrink: 0; }
.cert-seal i { font-size: 20px; margin-bottom: 2px; }

/* ══ ANIMATIONS ══ */
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.stagger > * { opacity: 0; animation: fadeIn 0.4s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .page-hero { flex-direction: column; align-items: flex-start; }
  .page-hero-stats { align-self: stretch; }
  .module-meta-row { flex-direction: column; }
  .module-sidebar-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .progress-ring-wrap { display: none; }
}
@media (max-width: 768px) {
  .login-side { display: none; }
  .login-card { width: 100%; max-width: 100%; min-height: 100vh; border-radius: 0; padding: 32px 24px; }
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .hamburger { display: flex; }
  .search-quick { display: none; }
  .inner-page { padding: 20px 16px; }
  .page-hero { padding: 24px 20px; }
  .page-hero-text h2 { font-size: 26px; }
  .page-hero-stats { gap: 10px; }
  .stat-card { padding: 12px 14px; min-width: 70px; }
  .stat-num { font-size: 28px; }
  .modules-grid, .videos-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .module-list-item { padding: 16px 18px; }
  .mli-meta { display: none; }
  .cert-border { padding: 24px 20px; }
  .cert-name { font-size: 28px; }
  .cert-footer { flex-direction: column; align-items: center; }
  .form-row { flex-direction: column; gap: 14px; }
}
@media (max-width: 480px) {
  .cert-grid { grid-template-columns: 1fr; }
  .page-hero-stats { flex-wrap: wrap; }
  .topbar { padding: 0 16px; }
}
