/* ═══════════════════════════════════════════════════════
   PUBLIC LAYOUT — Dark Premium Theme
═══════════════════════════════════════════════════════ */
body.public-layout {
  background: #0a0e1a;
  color: #c8cdd8;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}
html {
  overflow-x: hidden;
  width: 100vw;
}

/* ─── NAVBAR ─── */
.public-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1000;
  display: flex; align-items: center;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
  color: #f0f0f8; text-decoration: none;
}
.brand-logo svg { color: #8b7cf7; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link {
  color: rgba(255,255,255,0.6); font-weight: 500;
  transition: color 0.2s; font-size: 13.5px; text-decoration: none;
}
.nav-link:hover { color: #fff; }

.btn-glow {
  background: linear-gradient(135deg, #7c6cf7, #5a4ee0);
  color: #fff; padding: 8px 20px; border-radius: 8px;
  font-weight: 600; font-size: 13px; text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(124,108,247,0.25);
}
.btn-glow:hover {
  background: linear-gradient(135deg, #8b7cf7, #6858e8);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124,108,247,0.45);
}

/* ─── HAMBURGER MENU ─── */
#public-menu-toggle {
  background: rgba(124,108,247,0.1);
  border: 1px solid rgba(124,108,247,0.25);
  border-radius: 8px;
  cursor: pointer;
  color: #8b7cf7;
  display: flex; align-items: center; justify-content: center;
  padding: 7px 10px;
  transition: all 0.2s ease;
}
#public-menu-toggle:hover {
  background: rgba(124,108,247,0.2);
  color: #a99bf7;
  border-color: rgba(124,108,247,0.4);
}

.public-dropdown {
  display: none;
  background: rgba(18, 22, 38, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  position: absolute; top: 68px; right: 24px;
  width: 200px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  z-index: 999;
  overflow: hidden;
}
.public-dropdown.open {
  display: block;
  animation: dropIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-item {
  display: block; padding: 13px 20px;
  color: rgba(255,255,255,0.7); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05); text-align: left;
  font-size: 14px; transition: all 0.15s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover {
  background: rgba(124,108,247,0.1);
  color: #a99bf7;
  padding-left: 24px;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ctaBreathe {
  0%,100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.0), 0 4px 20px rgba(124,58,237,0.45); }
  50% { box-shadow: 0 0 0 8px rgba(168,85,247,0.18), 0 4px 28px rgba(124,58,237,0.6); }
}

/* ─── MAIN CONTENT ─── */
.public-main {
  flex: 1;
  padding-top: 60px;
  display: flex; flex-direction: column;
}

/* ─── FOOTER ─── */
.public-footer {
  text-align: center; padding: 24px;
  color: rgba(255,255,255,0.25); font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(10,14,26,0.9);
  margin-top: auto;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 100;
}

/* ─── HERO SECTION ─── */
.landing-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  position: relative;
}
/* Glow orbs */
.landing-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(124,108,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.landing-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  top: 0; right: -100px;
  background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 30px;
  background: rgba(124,108,247,0.1);
  border: 1px solid rgba(124,108,247,0.2);
  color: #a99bf7; font-size: 13px; font-weight: 600; margin-bottom: 28px;
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.landing-title {
  font-size: 56px; font-weight: 800; line-height: 1.1;
  letter-spacing: -2px; margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #c4b8ff 50%, #7c6cf7 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.landing-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.45);
  max-width: 560px; margin: 0 auto 36px;
  line-height: 1.7;
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* ─── CTA BUTTONS ─── */
.hero-cta {
  display: flex; justify-content: center; gap: 14px;
  position: relative;
  animation: slideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline-glow {
  padding: 13px 28px; font-size: 15px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: all 0.3s ease;
}
.btn-outline-glow:hover {
  border-color: rgba(124,108,247,0.4);
  color: #a99bf7;
  background: rgba(124,108,247,0.05);
}

/* ─── GLASS FEATURE CARDS ─── */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px; margin: 20px auto 80px; padding: 0 24px;
}
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 28px;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,108,247,0.3), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,108,247,0.2);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 60px rgba(124,108,247,0.05);
}
.glass-card:hover::before { opacity: 1; }

.gc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,108,247,0.15), rgba(14,165,233,0.1));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #8b7cf7;
  transition: transform 0.3s ease;
}
.glass-card:hover .gc-icon { transform: scale(1.1) rotate(-3deg); }

.gc-title {
  font-size: 16px; font-weight: 600; margin-bottom: 10px;
  color: rgba(255,255,255,0.9);
}
.gc-desc {
  color: rgba(255,255,255,0.35);
  font-size: 13.5px; line-height: 1.7;
}

/* ─── ANIMATIONS ─── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .landing-hero::before, .landing-hero::after { display: none; }
  .landing-title { font-size: 32px; letter-spacing: -0.5px; margin-bottom: 16px; }
  .landing-subtitle { font-size: 14px; padding: 0 10px; }
  .glass-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
  .landing-hero { padding: 40px 16px 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; padding: 0 20px; }
  .hero-cta a { text-align: center; }
}


/* --- BUTTON STYLES --- */
.btn-glow-alt {
  background: linear-gradient(135deg, #4b5563, #374151);
  color: #fff; padding: 8px 16px; border-radius: 8px;
  font-weight: 600; font-size: 13px; text-decoration: none;
}
.btn-glow-red {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important; padding: 6px 14px; border-radius: 8px;
  font-weight: 600; font-size: 13px; text-decoration: none;
  border: none !important; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
  display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}

/* --- DARK MODE TOGGLE --- */
.dm-checkbox { display: none !important; }
.dm-label { width: 44px; height: 24px; background-color: #cbd5e1; border-radius: 12px; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; transition: background-color 0.3s; margin-left: 15px; }


.dm-ball { width: 18px; height: 18px; background-color: #fff; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); box-shadow: 0 2px 4px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; }
.dm-checkbox:checked + .dm-label { background-color: #334155; }
.dm-checkbox:checked + .dm-label .dm-ball { transform: translateX(20px); }

/* --- DARK MODE STYLES --- */
body.dark-mode { background: #0f172a !important; color: #e2e8f0; }
body.dark-mode .public-nav { background: rgba(15,23,42,0.95); border-bottom-color: #1e293b; }
body.dark-mode .public-nav .brand-logo { color: #f8fafc; }
body.dark-mode .nv-card { background: #1e293b; border-color: #334155; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark-mode .nv-header { background: #172336; border-bottom: 1px solid #334155; }
body.dark-mode .nv-title { color: #f8fafc; }
body.dark-mode .nv-body { background: #1e293b; }
body.dark-mode .note-content { color: #cbd5e1; }
body.dark-mode .note-content a { color: #38bdf8; }
body.dark-mode .nv-footer { background: #172336; border-top-color: #334155; }
body.dark-mode .nv-action-grid { border-top-color: #334155 !important; }
body.dark-mode .public-footer { background: #0f172a; border-top-color: #1e293b; }
body.dark-mode .nv-signature { color: #94a3b8; }
body.dark-mode .nv-btn-outline-red { border-color: #ef4444; color: #ef4444; }
body.dark-mode .nv-btn-outline-red:hover { background: rgba(239,68,68,0.1); }
body.dark-mode #sticky-banner { background: #1e293b; color: #cbd5e1; border-top-color:#334155; }

/* Neon blue CTA button */
body.dark-mode .custom-cta-btn { 
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.45) !important;
    border: none !important;
    color: #fff !important;
}
@keyframes ctaBreatheDark { 
    0%,100%{box-shadow:0 0 0 0 rgba(14,165,233,0.0),0 4px 20px rgba(14,165,233,0.45)} 
    50%{box-shadow:0 0 0 8px rgba(14,165,233,0.2),0 4px 28px rgba(14,165,233,0.6)} 
}
body.dark-mode .custom-cta-btn { animation: ctaBreatheDark 2.4s ease-in-out infinite; }

.dm-icon-dark { display: none !important; color: #0f172a; font-size: 11px; }
.dm-icon-light { display: block !important; color: #f59e0b; font-size: 11px; }
.dm-checkbox:checked + .dm-label .dm-icon-light { display: none !important; }
.dm-checkbox:checked + .dm-label .dm-icon-dark { display: block !important; }

body.dark-mode .report-modal-box { background: #1e293b; border-color: #334155; }
body.dark-mode .report-modal-box div[style*="color:var(--text-hi)"] { color: #f8fafc !important; }
body.dark-mode .report-modal-box .form-label { color: #cbd5e1; }
body.dark-mode .report-modal-box .form-control { background: #0f172a; border-color: #334155; color: #f8fafc; }
body.dark-mode .report-modal-box .form-control:focus { border-color: #38bdf8; }
body.dark-mode .report-modal-box .btn-secondary { background: #334155; color: #cbd5e1; border: none; }
body.dark-mode .report-modal-box .btn-secondary:hover { background: #475569; }

/* DARK MODE TEXT FIX - Only specific dark text colors output by Quill editor */
/* Note: Quill outputs color as "color: rgb(x, y, z)" and background as "background-color: rgb(...)" */
/* Using exact color value matches to avoid false positives with background-color */
body.dark-mode .note-content [style*="color: rgb(0, 0, 0)"],
body.dark-mode .note-content [style*="color:rgb(0, 0, 0)"],
body.dark-mode .note-content [style*="color: rgb(0,0,0)"],
body.dark-mode .note-content [style*="color: rgb(33, 37, 41)"],
body.dark-mode .note-content [style*="color: rgb(36, 41, 47)"],
body.dark-mode .note-content [style*="color: #000000"],
body.dark-mode .note-content [style*="color: #000"],
body.dark-mode .note-content [style*="color:#000"],
body.dark-mode .note-content [style*="color: black"],
body.dark-mode .note-content [style*="color:black"],
body.dark-mode .note-content font[color="#000000"],
body.dark-mode .note-content font[color="#000"],
body.dark-mode .note-content font[color="black"] {
    color: #f8fafc !important;
}

/* LIGHT BACKGROUND OVERRIDE - Elements with light bg need dark readable text */
body.dark-mode .note-content [style*="background-color: rgb(1"],
body.dark-mode .note-content [style*="background-color: rgb(2"],
body.dark-mode .note-content [style*="background-color: #f"],
body.dark-mode .note-content [style*="background-color: #e"],
body.dark-mode .note-content [style*="background-color: #d"],
body.dark-mode .note-content [style*="background-color: #c"],
body.dark-mode .note-content [style*="background-color: #b"],
body.dark-mode .note-content [style*="background-color: #a"],
body.dark-mode .note-content [style*="background-color:rgb(1"],
body.dark-mode .note-content [style*="background-color:rgb(2"] {
    color: #0f172a !important;
}
