/* =====================================================
   EEG PWA Header & Footer — Frontend Styles
   ===================================================== */

/* ── Base Variables ────────────────────────────────── */
:root {
  --eeg-hdr-bg:     #ffffff;
  --eeg-hdr-text:   #333333;
  --eeg-hdr-accent: #28a745;
  --eeg-bp:         768px;
  --eeg-hdr-h:      60px;
  --eeg-ftr-h:      68px;
  --eeg-ftr-pb:     env(safe-area-inset-bottom, 0px);
  --eeg-radius-hdr: 0;
  --eeg-shadow-hdr: 0 2px 12px rgba(0,0,0,.1);
  --eeg-transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ── Show only on mobile ───────────────────────────── */
.eeg-phf-header,
.eeg-phf-footer,
.eeg-phf-drawer,
.eeg-phf-drawer-overlay {
  display: none;
}

@media (max-width: var(--eeg-bp)) {
  .eeg-phf-header,
  .eeg-phf-footer { display: flex; }
  .eeg-phf-drawer.open,
  .eeg-phf-drawer-overlay.open { display: block; }
}

/* Use a real px breakpoint since CSS var doesn't work in @media */
@media (max-width: 768px) {
  .eeg-phf-header { display: flex !important; }
  .eeg-phf-footer { display: flex !important; }
}

/* ── Body padding compensation ─────────────────────── */
@media (max-width: 768px) {
  body.eeg-phf-active {
    padding-top: var(--eeg-hdr-h) !important;
    padding-bottom: calc(var(--eeg-ftr-h) + var(--eeg-ftr-pb)) !important;
  }
}

/* ═══════════════════════════════════════════════════
   HEADER BASE
═══════════════════════════════════════════════════ */
.eeg-phf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--eeg-hdr-h);
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  background: var(--eeg-hdr-bg);
  color: var(--eeg-hdr-text);
  box-shadow: var(--eeg-shadow-hdr);
  transition: var(--eeg-transition);
  will-change: transform;
}

/* ── Hamburger ─────────────────────────────────────── */
.eeg-phf-ham {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  font-size: 20px;
  color: var(--eeg-hdr-text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background .15s;
}
.eeg-phf-ham:hover { background: rgba(0,0,0,.06); }
.eeg-phf-ham-light { color: #fff !important; }
.eeg-phf-ham-light:hover { background: rgba(255,255,255,.15) !important; }

/* ── Brand ─────────────────────────────────────────── */
.eeg-phf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.eeg-phf-brand-center { justify-content: center; }
.eeg-phf-brand-text { display: flex; flex-direction: column; }

.eeg-phf-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.eeg-phf-logo-img.eeg-phf-logo-sm { height: 28px; }
.eeg-phf-logo-img.eeg-phf-logo-lg { height: 36px; }
.eeg-phf-logo-img.eeg-phf-logo-white { filter: brightness(0) invert(1); }

.eeg-phf-logo-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--eeg-hdr-accent);
}
.eeg-phf-site-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--eeg-hdr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eeg-phf-tagline {
  font-size: 10px;
  color: var(--eeg-hdr-text);
  opacity: .6;
}
.eeg-phf-text-white { color: #fff !important; }

/* ── Header Actions ────────────────────────────────── */
.eeg-phf-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.eeg-phf-icon-btn {
  background: none;
  border: none;
  padding: 7px;
  cursor: pointer;
  font-size: 17px;
  color: var(--eeg-hdr-text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .15s, transform .1s;
  position: relative;
}
.eeg-phf-icon-btn:hover { background: rgba(0,0,0,.06); transform: scale(1.1); }
.eeg-phf-icon-white { color: #fff !important; }
.eeg-phf-icon-white:hover { background: rgba(255,255,255,.15) !important; }

.eeg-phf-badge-btn { position: relative; }
.eeg-phf-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--eeg-hdr-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}
.eeg-phf-badge-red { background: #ef4444; }
.eeg-phf-badge-orange { background: #f97316; }

.eeg-phf-avatar-btn {
  display: flex;
  align-items: center;
}
.eeg-phf-avatar-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--eeg-hdr-accent);
}

/* ── Style 1: White Clean ──────────────────────────── */
.eeg-phf-header-1 {
  background: #ffffff;
  color: #333333;
  border-bottom: 1px solid #f0f0f0;
}

/* ── Style 2: Green Solid ──────────────────────────── */
.eeg-phf-header-2 {
  background: var(--eeg-hdr-accent, #28a745);
  color: #ffffff;
  border-bottom: none;
}

/* ── Style 3: White Minimal ────────────────────────── */
.eeg-phf-header-3 {
  background: #ffffff;
  color: #333333;
  border-bottom: 1px solid #f0f0f0;
}

/* ── Style 4: Dark Navy + Search ───────────────────── */
.eeg-phf-header-4 {
  background: #1e2d78;
  color: #ffffff;
  padding: 0 12px;
  gap: 8px;
}
.eeg-phf-search-inline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border-radius: 24px;
  padding: 6px 14px;
  color: rgba(255,255,255,.8);
}
.eeg-phf-search-inline input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}
.eeg-phf-search-inline input::placeholder { color: rgba(255,255,255,.6); }

/* ── Style 5: Greeting ─────────────────────────────── */
.eeg-phf-header-5 {
  background: #ffffff;
  color: #333333;
  border-bottom: 1px solid #f0f0f0;
}
.eeg-phf-greeting {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.eeg-phf-greeting-text {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eeg-phf-greeting-sub {
  font-size: 10px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Style 6: Teal Gradient ────────────────────────── */
.eeg-phf-header-6 {
  background: linear-gradient(135deg, #009688 0%, #00bcd4 100%);
  color: #ffffff;
  border-bottom: none;
}

/* ── Style 7: White + Dark Toggle ──────────────────── */
.eeg-phf-header-7 {
  background: #ffffff;
  color: #333333;
  border-bottom: 1px solid #f0f0f0;
}
.eeg-phf-dark-icon {
  font-size: 14px;
  color: #f59e0b;
}
.eeg-phf-dark-toggle {
  width: 38px;
  height: 21px;
  background: #e2e8f0;
  border-radius: 21px;
  border: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .25s;
  padding: 0;
}
.eeg-phf-dark-toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  display: block;
}
.eeg-phf-dark-toggle.active { background: #4f46e5; }
.eeg-phf-dark-toggle.active span { transform: translateX(17px); }

/* ── Style 8: Orange Progress ──────────────────────── */
.eeg-phf-header-8 {
  background: #ff9800;
  color: #ffffff;
  border-bottom: none;
}
.eeg-phf-course-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.eeg-phf-course-label {
  font-size: 10px;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.eeg-phf-course-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eeg-phf-progress-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.eeg-phf-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

/* ── Style 9: Dark Navy ────────────────────────────── */
.eeg-phf-header-9 {
  background: #1a1a2e;
  color: #ffffff;
  border-bottom: none;
}

/* ── Style 10: White Premium ───────────────────────── */
.eeg-phf-header-10 {
  background: #ffffff;
  color: #333333;
  border-bottom: 1px solid #f0f0f0;
}
.eeg-phf-premium-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--eeg-hdr-accent, #28a745);
  color: var(--eeg-hdr-accent, #28a745);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--eeg-transition);
  flex-shrink: 0;
}
.eeg-phf-premium-pill:hover {
  background: var(--eeg-hdr-accent, #28a745);
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════
   FOOTER BASE
═══════════════════════════════════════════════════ */
.eeg-phf-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  height: var(--eeg-ftr-h);
  padding-bottom: var(--eeg-ftr-pb);
  align-items: stretch;           /* each fi stretches to full footer height */
  justify-content: space-around;
  background: #ffffff;
  box-shadow: 0 -2px 16px rgba(0,0,0,.1);
  transition: var(--eeg-transition);
  overflow: visible;              /* allow FAB circle to pop above bar */
}

/* ── Footer Icon ───────────────────────────────────── */
.eeg-phf-fi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;      /* center icon+text inside each item */
  gap: 4px;
  flex: 1;
  padding: 0 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #9ca3af;
  font-size: 22px;
  transition: color .2s, transform .15s;
  position: relative;
  /* important: explicit height so centering works with align-items:stretch on parent */
  height: 100%;
}
.eeg-phf-fi span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #6b7280;               /* slightly darker for readability */
  line-height: 1;
}
.eeg-phf-fi:hover { color: var(--eeg-hdr-accent); }

/* Active state */
.eeg-phf-fi-active {
  color: var(--eeg-hdr-accent, #4f46e5) !important;
}
.eeg-phf-fi-active span { font-weight: 700; }
.eeg-phf-fi-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--eeg-hdr-accent, #4f46e5);
  border-radius: 0 0 4px 4px;
}
/* ── Footer Styles 3–10: Distinctive CSS ───────────────────── */

/* Style 2: Green FAB */
.eeg-phf-footer-2 .eeg-phf-fi-fab i { background: #28a745; box-shadow: 0 4px 16px rgba(40,167,69,.45); }

/* Style 3: Indigo FAB */
.eeg-phf-footer-3 .eeg-phf-fi-fab i { background: #6366f1; box-shadow: 0 4px 16px rgba(99,102,241,.5); }
.eeg-phf-footer-3 .eeg-phf-fi-active { color: #6366f1; }
.eeg-phf-footer-3 .eeg-phf-fi-active span { color: #6366f1; }
.eeg-phf-footer-3 .eeg-phf-fi-active::before { background: #6366f1; }

/* Style 4: Blue-active, no FAB */
.eeg-phf-footer-4 .eeg-phf-fi-active,
.eeg-phf-footer-blue-active .eeg-phf-fi-active { color: #2563eb !important; }
.eeg-phf-footer-4 .eeg-phf-fi-active span,
.eeg-phf-footer-blue-active .eeg-phf-fi-active span { color: #2563eb; }
.eeg-phf-footer-4 .eeg-phf-fi-active::before,
.eeg-phf-footer-blue-active .eeg-phf-fi-active::before { background: #2563eb; }

/* Style 5: Red FAB */
.eeg-phf-footer-5 .eeg-phf-fi-fab i,
.eeg-phf-footer-fab-red .eeg-phf-fi-fab i { background: #ef4444; box-shadow: 0 4px 16px rgba(239,68,68,.45); }

/* Style 6: Amber/orange active */
.eeg-phf-footer-6 .eeg-phf-fi-active { color: #f59e0b; }
.eeg-phf-footer-6 .eeg-phf-fi-active span { color: #f59e0b; }
.eeg-phf-footer-6 .eeg-phf-fi-active::before { background: #f59e0b; }

/* Style 7: Gradient purple bar */
.eeg-phf-footer-7 {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 -2px 16px rgba(79,70,229,.3);
}
.eeg-phf-footer-7 .eeg-phf-fi { color: rgba(255,255,255,.6); }
.eeg-phf-footer-7 .eeg-phf-fi span { color: rgba(255,255,255,.6); }
.eeg-phf-footer-7 .eeg-phf-fi:hover { color: #fff; }
.eeg-phf-footer-7 .eeg-phf-fi-active { color: #fff; }
.eeg-phf-footer-7 .eeg-phf-fi-active span { color: #fff; }
.eeg-phf-footer-7 .eeg-phf-fi-active::before { background: #fff; }

/* Style 8: Dark slate */
.eeg-phf-footer-8 {
  background: #1e293b;
  box-shadow: 0 -2px 16px rgba(0,0,0,.3);
}
.eeg-phf-footer-8 .eeg-phf-fi { color: rgba(255,255,255,.45); }
.eeg-phf-footer-8 .eeg-phf-fi span { color: rgba(255,255,255,.45); }
.eeg-phf-footer-8 .eeg-phf-fi:hover { color: #fff; }
.eeg-phf-footer-8 .eeg-phf-fi-active { color: #818cf8; }
.eeg-phf-footer-8 .eeg-phf-fi-active span { color: #818cf8; }
.eeg-phf-footer-8 .eeg-phf-fi-active::before { background: #818cf8; }

/* Style 9: Midnight dark + indigo FAB */
.eeg-phf-footer-9,
.eeg-phf-footer-dark {
  background: #0f172a;
  box-shadow: 0 -2px 16px rgba(0,0,0,.4);
}
.eeg-phf-footer-9 .eeg-phf-fi,
.eeg-phf-footer-dark .eeg-phf-fi { color: rgba(255,255,255,.4); }
.eeg-phf-footer-9 .eeg-phf-fi span,
.eeg-phf-footer-dark .eeg-phf-fi span { color: rgba(255,255,255,.4); }
.eeg-phf-footer-9 .eeg-phf-fi-active,
.eeg-phf-footer-dark .eeg-phf-fi:hover { color: rgba(255,255,255,.7); }
.eeg-phf-footer-9 .eeg-phf-fi-active { color: #22d3ee; }
.eeg-phf-footer-9 .eeg-phf-fi-active span { color: #22d3ee; }
.eeg-phf-footer-9 .eeg-phf-fi-active::before { background: #22d3ee; }
.eeg-phf-footer-9 .eeg-phf-fi-fab i,
.eeg-phf-footer-fab-indigo .eeg-phf-fi-fab i { background: #6366f1; box-shadow: 0 4px 16px rgba(99,102,241,.5); }

/* Style 10: Clean minimal, sky-blue active */
.eeg-phf-footer-10 {
  border-top: 2px solid #e2e8f0;
  box-shadow: none;
}
.eeg-phf-footer-10 .eeg-phf-fi-active { color: #0ea5e9; }
.eeg-phf-footer-10 .eeg-phf-fi-active span { color: #0ea5e9; }
.eeg-phf-footer-10 .eeg-phf-fi-active::before { background: #0ea5e9; }

/* Shared FAB center helper (keeps space for circle pop) */
.eeg-phf-footer-fab-center { padding-top: 4px; } 

/* FAB (Floating Action Button) */
.eeg-phf-fi-fab {
  position: relative;
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;      /* center the label in the footer height */
  overflow: visible;
}
.eeg-phf-fi-fab i {
  width: 54px;
  height: 54px;
  background: var(--eeg-hdr-accent, #4f46e5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(79,70,229,.45);
  position: absolute;
  top: 10px;                    /* slightly inside footer → less aggressive pop */
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .2s, box-shadow .2s;
  z-index: 1;
}
.eeg-phf-fi-fab:hover i {
  transform: translate(-50%, -60%) scale(1.08);
  box-shadow: 0 8px 24px rgba(79,70,229,.55);
}
/* Label: absolute at same bottom position as regular fi labels.
   Regular fi: justify-content:center in 68px → label bottom ≈ 15px from footer bottom */
.eeg-phf-fi-fab span {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1;
  position: absolute;
  bottom: 15px;                 /* matches regular fi label bottom position */
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}

/* ── Footer Style 2: Green FAB ─────────────────────── */
.eeg-phf-footer-2 .eeg-phf-fi-fab i { background: #28a745; box-shadow: 0 4px 16px rgba(40,167,69,.45); }

/* ── Footer Style 4: Blue Active ───────────────────── */
.eeg-phf-footer-blue-active .eeg-phf-fi-active { color: #2563eb !important; }
.eeg-phf-footer-blue-active .eeg-phf-fi-active::after { background: #2563eb; }

/* ── Footer Style 5: Red FAB Rocket ────────────────── */
.eeg-phf-footer-fab-red .eeg-phf-fi-fab i { background: #ef4444; box-shadow: 0 4px 16px rgba(239,68,68,.45); }

/* ── Footer Style 9: Dark Navy ─────────────────────── */
.eeg-phf-footer-dark {
  background: #1a1a2e !important;
  box-shadow: 0 -2px 16px rgba(0,0,0,.3) !important;
  color: #aaa;
}
.eeg-phf-footer-dark .eeg-phf-fi { color: #6b7280; }
.eeg-phf-footer-dark .eeg-phf-fi:hover { color: #a5b4fc; }

/* ── Footer Style 9: Indigo FAB ────────────────────── */
.eeg-phf-footer-fab-indigo .eeg-phf-fi-fab i { background: #6366f1; box-shadow: 0 4px 16px rgba(99,102,241,.5); }

/* ── FAB center layout helper ──────────────────────── */
.eeg-phf-footer-fab-center {
  padding-top: 8px;
}

/* ═══════════════════════════════════════════════════
   SLIDE DRAWER
═══════════════════════════════════════════════════ */
.eeg-phf-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s;
  display: none;
}
.eeg-phf-drawer-overlay.open {
  display: block;
  opacity: 1;
}

/* Base drawer: position only, NO transform/transition here (animation class handles it) */
.eeg-phf-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(280px, 85vw);
  z-index: 10001;
  background: #1a1a2e;
  display: none;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,.25);
  overflow: hidden;
}
.eeg-phf-drawer.open {
  display: flex;
}

/* ── 10 Drawer Animation Classes ──────────────────────────── */

/* 1: Classic Slide from Left */
.drawer-anim-1 { transform: translateX(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
.drawer-anim-1.open { transform: translateX(0); }

/* 2: Slide from Right */
.drawer-anim-2 { left: auto; right: 0; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
.drawer-anim-2.open { transform: translateX(0); }

/* 3: Spring Bounce */
.drawer-anim-3 { transform: translateX(-110%); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.drawer-anim-3.open { transform: translateX(0); }

/* 4: Scale + Slide */
.drawer-anim-4 { transform: translateX(-100%) scaleX(.85); transform-origin: left center; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.drawer-anim-4.open { transform: translateX(0) scaleX(1); }

/* 5: Glide Fade */
.drawer-anim-5 { transform: translateX(-100%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.drawer-anim-5.open { transform: translateX(0); opacity: 1; }

/* 6: Flip 3D */
.drawer-anim-6 { transform-origin: left center; transform: perspective(800px) rotateY(-90deg); transition: transform .45s cubic-bezier(.4,0,.2,1); }
.drawer-anim-6.open { transform: perspective(800px) rotateY(0deg); }

/* 7: Drop from Top (full-width) */
.drawer-anim-7 {
  left: 0 !important; right: 0; width: 100% !important;
  top: 0; bottom: auto; max-height: 80vh;
  border-radius: 0 0 24px 24px;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.drawer-anim-7.open { transform: translateY(0); }

/* 8: Curtain (scaleX) */
.drawer-anim-8 { transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.drawer-anim-8.open { transform: scaleX(1); }

/* 9: Rise from Bottom (sheet style) */
.drawer-anim-9 {
  left: 0 !important; right: 0; width: 100% !important;
  top: auto; bottom: 0; max-height: 80vh;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.drawer-anim-9.open { transform: translateY(0); }

/* 10: Zoom Fade */
.drawer-anim-10 { transform: scale(.85); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.drawer-anim-10.open { transform: scale(1); opacity: 1; }

.eeg-phf-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--eeg-hdr-accent, #4f46e5);
  flex-shrink: 0;
}
.eeg-phf-drawer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.eeg-phf-drawer-logo-text {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}
.eeg-phf-drawer-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.eeg-phf-drawer-close:hover { background: rgba(255,255,255,.25); }

.eeg-phf-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  flex: 1;
  overflow-y: auto;
}
.eeg-phf-drawer-menu li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.eeg-phf-drawer-menu li a:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-left-color: rgba(255,255,255,.3);
}
.eeg-phf-drawer-menu li.current-menu-item a {
  color: #fff;
  background: rgba(99,102,241,.2);
  border-left-color: #6366f1;
  font-weight: 600;
}
.eeg-phf-drawer-menu li a i {
  width: 18px;
  text-align: center;
  opacity: .7;
}
.eeg-phf-drawer-placeholder {
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,.4);
}

.eeg-phf-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.eeg-phf-drawer-login {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 0;
  transition: color .15s;
}
.eeg-phf-drawer-login:hover { color: #fff; }

/* ── Depth-1 sub-items ─────────────────────────────── */
.eeg-phf-drawer-menu li.depth-1 a {
  padding-left: 40px;
  font-size: 13px;
  opacity: .85;
}

/* ═══════════════════════════════════════════════════
   SEARCH OVERLAY
═══════════════════════════════════════════════════ */
#eeg-phf-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0,0,0,.6);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  backdrop-filter: blur(4px);
}
#eeg-phf-search-overlay.open { display: flex; }
.eeg-phf-search-box {
  background: #fff;
  border-radius: 16px;
  width: min(480px, 90vw);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.eeg-phf-search-box i { color: #9ca3af; font-size: 18px; }
.eeg-phf-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
}
.eeg-phf-search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 18px;
  padding: 4px;
}

/* ═══════════════════════════════════════════════════
   DARK MODE SUPPORT
═══════════════════════════════════════════════════ */
body.eeg-dark-mode .eeg-phf-header-1,
body.eeg-dark-mode .eeg-phf-header-3,
body.eeg-dark-mode .eeg-phf-header-5,
body.eeg-dark-mode .eeg-phf-header-7,
body.eeg-dark-mode .eeg-phf-header-10 {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
body.eeg-dark-mode .eeg-phf-footer-1,
body.eeg-dark-mode .eeg-phf-footer-3,
body.eeg-dark-mode .eeg-phf-footer-4,
body.eeg-dark-mode .eeg-phf-footer-6,
body.eeg-dark-mode .eeg-phf-footer-7,
body.eeg-dark-mode .eeg-phf-footer-8,
body.eeg-dark-mode .eeg-phf-footer-10 {
  background: #1e293b !important;
  box-shadow: 0 -2px 16px rgba(0,0,0,.3) !important;
}
body.eeg-dark-mode .eeg-phf-fi { color: #6b7280 !important; }
body.eeg-dark-mode .eeg-phf-fi:hover { color: #a5b4fc !important; }
body.eeg-dark-mode .eeg-phf-fi span { color: #9ca3af; }

/* ═══════════════════════════════════════════════════
   ANIMATIONS & MICRO-INTERACTIONS
═══════════════════════════════════════════════════ */
@keyframes eeg-bounce-in {
  0%   { opacity: 0; transform: scale(.8) translateY(8px); }
  60%  { opacity: 1; transform: scale(1.04) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}

.eeg-phf-footer .eeg-phf-fi:active { transform: scale(.9); }
.eeg-phf-header { animation: eeg-bounce-in .3s ease both; }
.eeg-phf-footer { animation: eeg-bounce-in .35s .05s ease both; }

/* ── Tap highlight ripple ─────────────────────────── */
.eeg-phf-fi::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  background: var(--eeg-hdr-accent, #4f46e5);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: none;
}
.eeg-phf-fi.rippling::before {
  width: 60px;
  height: 60px;
  opacity: .15;
  transition: width .3s, height .3s, opacity .3s;
  left: 50%;
  top: 50%;
}

/* Fix regular fi items — override the rule that was added in a previous pass */
.eeg-phf-fi:not(.eeg-phf-fi-fab) {
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  padding-bottom: 0;
}

/* ═══════════════════════════════════════════════════
   5 DRAWER STYLES
═══════════════════════════════════════════════════ */

/* Base drawer — overridden per style */
.eeg-phf-drawer { --drw-bg: #1a1a2e; --drw-text: rgba(255,255,255,.75); --drw-active-bg: rgba(99,102,241,.2); --drw-active-text: #fff; --drw-active-border: #6366f1; --drw-head-bg: var(--eeg-hdr-accent, #4f46e5); }

/* ── Style 1: Dark Navy (default) ──────────────────── */
.eeg-phf-drawer.drawer-style-1 { background: #1a1a2e; }
.eeg-phf-drawer.drawer-style-1 .eeg-phf-drawer-menu li a { color: rgba(255,255,255,.75); }
.eeg-phf-drawer.drawer-style-1 .eeg-phf-drawer-menu li a:hover { color:#fff; background: rgba(255,255,255,.07); border-left-color: rgba(255,255,255,.3); }
.eeg-phf-drawer.drawer-style-1 .eeg-phf-drawer-menu li.current-menu-item a { color:#fff; background: rgba(99,102,241,.2); border-left-color: #6366f1; }
/* Slide in from left (default) */
.eeg-phf-drawer.drawer-style-1 { transform: translateX(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
.eeg-phf-drawer.drawer-style-1.open { transform: translateX(0); }

/* ── Style 2: Pure Light ───────────────────────────── */
.eeg-phf-drawer.drawer-style-2 { background: #ffffff; box-shadow: 4px 0 32px rgba(0,0,0,.12); }
.eeg-phf-drawer.drawer-style-2 .eeg-phf-drawer-menu li a { color: #475569; }
.eeg-phf-drawer.drawer-style-2 .eeg-phf-drawer-menu li a:hover { color: #1e293b; background: #f1f5f9; border-left-color: #cbd5e1; }
.eeg-phf-drawer.drawer-style-2 .eeg-phf-drawer-menu li.current-menu-item a { color: #4f46e5; background: #ede9fe; border-left-color: #4f46e5; font-weight: 700; }
.eeg-phf-drawer.drawer-style-2 .eeg-phf-drawer-footer { border-top-color: #e2e8f0; }
.eeg-phf-drawer.drawer-style-2 .eeg-phf-drawer-login { color: #64748b; }
.eeg-phf-drawer.drawer-style-2 .eeg-phf-drawer-login:hover { color: #1e293b; }
/* Bounce in */
.eeg-phf-drawer.drawer-style-2 { transform: translateX(-110%); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.eeg-phf-drawer.drawer-style-2.open { transform: translateX(0); }

/* ── Style 3: Glassmorphism ────────────────────────── */
.eeg-phf-drawer.drawer-style-3 {
  background: rgba(15,15,40,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,.12);
}
.eeg-phf-drawer.drawer-style-3 .eeg-phf-drawer-menu li a { color: rgba(255,255,255,.7); }
.eeg-phf-drawer.drawer-style-3 .eeg-phf-drawer-menu li a:hover { color:#fff; background: rgba(255,255,255,.1); border-left-color: rgba(255,255,255,.4); }
.eeg-phf-drawer.drawer-style-3 .eeg-phf-drawer-menu li.current-menu-item a { color:#fff; background: rgba(255,255,255,.15); border-left-color: #fff; }
/* Scale + slide */
.eeg-phf-drawer.drawer-style-3 { transform: translateX(-100%) scaleX(.92); transform-origin: left; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.eeg-phf-drawer.drawer-style-3.open { transform: translateX(0) scaleX(1); }

/* ── Style 4: Gradient Bold ────────────────────────── */
.eeg-phf-drawer.drawer-style-4 {
  background: linear-gradient(160deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
}
.eeg-phf-drawer.drawer-style-4 .eeg-phf-drawer-head { background: rgba(0,0,0,.25); }
.eeg-phf-drawer.drawer-style-4 .eeg-phf-drawer-menu li a { color: rgba(255,255,255,.8); border-left-color: transparent; }
.eeg-phf-drawer.drawer-style-4 .eeg-phf-drawer-menu li a:hover { color:#fff; background: rgba(255,255,255,.12); border-left-color: rgba(255,255,255,.5); }
.eeg-phf-drawer.drawer-style-4 .eeg-phf-drawer-menu li.current-menu-item a { color:#fff; background: rgba(255,255,255,.2); border-left-color: #fff; font-weight: 700; }
.eeg-phf-drawer.drawer-style-4 .eeg-phf-drawer-footer { border-top-color: rgba(255,255,255,.2); }
.eeg-phf-drawer.drawer-style-4 .eeg-phf-drawer-login { color: rgba(255,255,255,.75); }
/* Slide down from top */
.eeg-phf-drawer.drawer-style-4 { transform: translateY(-100%); transition: transform .4s cubic-bezier(.4,0,.2,1); width: 100%; max-width: 100%; top: 0; }
.eeg-phf-drawer.drawer-style-4.open { transform: translateY(0); }

/* ── Style 5: Midnight Neon ────────────────────────── */
.eeg-phf-drawer.drawer-style-5 {
  background: #060612;
  border-right: 1px solid rgba(0,245,160,.2);
}
.eeg-phf-drawer.drawer-style-5 .eeg-phf-drawer-head { background: transparent; border-bottom: 1px solid rgba(0,245,160,.3); }
.eeg-phf-drawer.drawer-style-5 .eeg-phf-drawer-logo-text { color: #00f5a0; text-shadow: 0 0 12px rgba(0,245,160,.5); }
.eeg-phf-drawer.drawer-style-5 .eeg-phf-drawer-menu li a { color: rgba(255,255,255,.55); }
.eeg-phf-drawer.drawer-style-5 .eeg-phf-drawer-menu li a:hover { color: #00f5a0; background: rgba(0,245,160,.06); border-left-color: rgba(0,245,160,.4); }
.eeg-phf-drawer.drawer-style-5 .eeg-phf-drawer-menu li.current-menu-item a { color: #00f5a0; background: rgba(0,245,160,.1); border-left-color: #00f5a0; font-weight: 700; }
.eeg-phf-drawer.drawer-style-5 .eeg-phf-drawer-footer { border-top-color: rgba(0,245,160,.15); }
.eeg-phf-drawer.drawer-style-5 .eeg-phf-drawer-login { color: rgba(0,245,160,.7); }
/* Fade slide */
.eeg-phf-drawer.drawer-style-5 { transform: translateX(-100%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.eeg-phf-drawer.drawer-style-5.open { transform: translateX(0); opacity: 1; }

/* ═══════════════════════════════════════════════════
   NOTIFICATION PANEL (FRONTEND)
═══════════════════════════════════════════════════ */
#obp-notif-bell-btn {
  position: relative;
  background: none;
  border: none;
  padding: 7px;
  cursor: pointer;
  font-size: 18px;
  color: var(--eeg-hdr-text, #333);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .15s, transform .1s;
}
#obp-notif-bell-btn:hover { background: rgba(0,0,0,.06); transform: scale(1.1); }
.obp-notif-bell-white { color: #fff !important; }
.obp-notif-bell-white:hover { background: rgba(255,255,255,.15) !important; }

.obp-notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--obp-bell-color, #ef4444);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #fff;
  animation: obp-pulse 1.5s ease-in-out infinite;
}
@keyframes obp-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

/* Panel */
#obp-notif-panel {
  display: none;
  position: fixed;
  top: var(--eeg-hdr-h, 60px);
  right: 0;
  left: 0;
  z-index: 10003;
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  max-height: 70vh;
  overflow-y: auto;
  animation: obp-panel-drop .25s cubic-bezier(.4,0,.2,1);
}
#obp-notif-panel.open { display: block; }
@keyframes obp-panel-drop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.obp-notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.obp-notif-panel-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}
.obp-notif-mark-read {
  background: none;
  border: none;
  font-size: 12px;
  color: #6366f1;
  cursor: pointer;
  font-weight: 600;
}

.obp-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.obp-notif-item:hover { background: #f8fafc; }
.obp-notif-item.unread { background: #faf8ff; }
.obp-notif-item.unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
}
.obp-notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.obp-notif-body { flex: 1; min-width: 0; }
.obp-notif-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.obp-notif-msg {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.obp-notif-time {
  font-size: 10px;
  color: #94a3b8;
  flex-shrink: 0;
}
.obp-notif-empty {
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
  font-size: 13px;
}

