/* ==========================================================================
   Noor al-Basirah Panel & Slide-in Window — basirah-panel.css (v1.3.0)
   Canonical Al-Noor Sanctuary Palette:
   Pure White Marble · Noble Imperial Emerald (#0A5C36) · Sacred Chishti Gold (#C59B27)
   ========================================================================== */

:root {
  --nnbp-accent:        #0A5C36;
  --nnbp-accent-dark:   #073B28;
  --nnbp-gold:          #C59B27;
  --nnbp-gold-light:    #F7E9C4;
  --nnbp-gold-bg:       rgba(197, 155, 39, 0.08);
  --nnbp-bg:            #FFFFFF;
  --nnbp-border:        rgba(197, 155, 39, 0.35);
  --nnbp-ink:           #11261D;
  --nnbp-muted:         #4B5563;
  --nnbp-radius:        16px;
  --nnbp-shadow:        0 12px 36px rgba(10, 92, 54, 0.07), 0 2px 10px rgba(197, 155, 39, 0.05);
}

/* ==========================================================================
   1. STREAMLINED LUMINOUS IN-LINE CARD
   ========================================================================== */

.nnbp-panel {
  margin: 2.5rem 0 3rem;
  padding: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 100%);
  border: 1.5px solid var(--nnbp-border);
  border-radius: var(--nnbp-radius);
  box-shadow: var(--nnbp-shadow);
  color: var(--nnbp-ink);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  position: relative;
}

/* Sacred Decorative Top Accent Ribbon */
.nnbp-top-ornament {
  height: 4px;
  background: linear-gradient(90deg, #C59B27 0%, #0A5C36 50%, #C59B27 100%);
  width: 100%;
}

.nnbp-panel-inner {
  padding: 2rem 2.2rem 2.2rem;
}

@media (max-width: 640px) {
  .nnbp-panel-inner {
    padding: 1.5rem 1.25rem 1.6rem;
  }
}

/* Sacred Apex: Bismillah & Eyebrow */
.nnbp-apex {
  text-align: center;
  margin-bottom: 0.9rem;
}

.nnbp-bismillah {
  display: block;
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.25rem;
  line-height: 1.9;
  color: #C59B27;
  opacity: 0.95;
  margin-bottom: 0.35rem;
}

.nnbp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nnbp-gold-bg);
  color: #8C6D1F;
  border: 1px solid rgba(197, 155, 39, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nnbp-sparkle {
  color: var(--nnbp-gold);
}

/* Emotional Hook Title */
.nnbp-title {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--nnbp-accent-dark);
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 640px) {
  .nnbp-title {
    font-size: 1.24rem;
    text-align: left;
  }
}

.nnbp-title strong {
  color: var(--nnbp-accent);
  text-decoration: underline;
  text-decoration-color: var(--nnbp-gold);
  text-underline-offset: 4px;
}

/* Neuroscience & Sunnah Bridge Card */
.nnbp-neuroscience-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #F4F8F5;
  border: 1px solid rgba(10, 92, 54, 0.12);
  border-left: 4px solid var(--nnbp-accent);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.4rem;
}

.nnbp-neuro-icon {
  font-size: 1.4rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.nnbp-neuro-text {
  margin: 0;
  font-size: 0.94rem;
  color: #374151;
  line-height: 1.6;
}

.nnbp-neuro-text strong {
  color: var(--nnbp-ink);
  font-weight: 600;
}

.nnbp-neuro-text em {
  display: block;
  margin-top: 0.35rem;
  color: var(--nnbp-accent-dark);
  font-style: normal;
  font-weight: 600;
}

/* Pillars Section Header */
.nnbp-pillars-header {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--nnbp-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* 4 Quick Pillars Grid */
.nnbp-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1.3rem;
}

@media (max-width: 640px) {
  .nnbp-pills-grid {
    grid-template-columns: 1fr;
  }
}

.nnbp-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 92, 54, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  text-decoration: none !important;
}

.nnbp-pill-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 92, 54, 0.08);
  border-color: rgba(10, 92, 54, 0.35);
}

.nnbp-pill-badge-icon {
  font-size: 1.25rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F4F8F5;
  border-radius: 50%;
  flex-shrink: 0;
}

.nnbp-pill-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nnbp-pill-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--nnbp-ink);
  line-height: 1.3;
}

.nnbp-pill-desc {
  font-size: 0.76rem;
  color: #6B7280;
  line-height: 1.3;
  margin-top: 1px;
}

/* Zakir Gemstone Highlight Card */
.nnbp-pill-gemstone {
  background: #FCFBF7;
  border-color: rgba(197, 155, 39, 0.45);
}

.nnbp-pill-gemstone .nnbp-pill-badge-icon {
  background: rgba(197, 155, 39, 0.12);
}

.nnbp-pill-gemstone .nnbp-pill-title {
  color: var(--nnbp-accent) !important;
}

.nnbp-pill-gemstone:hover {
  border-color: var(--nnbp-gold);
  background: #F7F3E9;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.15);
}

.nnbp-link-arrow {
  font-size: 0.85rem;
  color: var(--nnbp-gold);
  margin-left: 2px;
}

/* Inclusions Ribbon */
.nnbp-inclusions-ribbon {
  background: var(--nnbp-gold-bg);
  border: 1px solid rgba(197, 155, 39, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 1.4rem;
}

.nnbp-ribbon-tag {
  font-weight: 800;
  color: #8C6D1F;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

/* CTA & Trust Container */
.nnbp-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.nnbp-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nnbp-price-val {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--nnbp-accent);
  line-height: 1;
}

.nnbp-price-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.nnbp-price-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #8C6D1F;
  background: rgba(197, 155, 39, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.nnbp-price-time {
  font-size: 0.78rem;
  color: #6B7280;
  margin-top: 2px;
}

.nnbp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.95rem 2.4rem;
  background: linear-gradient(135deg, var(--nnbp-accent) 0%, var(--nnbp-accent-dark) 100%);
  color: #FFFFFF !important;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 50px;
  border: 1px solid rgba(197, 155, 39, 0.4);
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(10, 92, 54, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  min-width: 300px;
  max-width: 100%;
}

@media (max-width: 640px) {
  .nnbp-cta-btn {
    width: 100%;
    min-width: unset;
    padding: 0.9rem 1.2rem;
    font-size: 0.96rem;
  }
}

.nnbp-cta-btn:hover,
.nnbp-cta-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(10, 92, 54, 0.36);
  color: #FFFFFF !important;
}

.nnbp-guarantee-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 0.76rem;
  color: #6B7280;
}

/* ==========================================================================
   2. 10-SECOND ENGAGEMENT SLIDE-IN (BULLETPROOF FIXED POSITION)
   ========================================================================== */

/* Base Slide-In Guard — Never appears in normal document flow */
.nnbp-slidein {
  display: none;
  position: fixed !important;
  z-index: 999999 !important;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0 !important;
}

.nnbp-slidein.nnbp-slidein-active {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Desktop: Bottom-Right Corner Concierge Card */
@media (min-width: 641px) {
  .nnbp-slidein {
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
    width: 380px !important;
    max-width: calc(100vw - 48px) !important;
    background: #FFFFFF !important;
    border: 1.5px solid rgba(197, 155, 39, 0.4) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(10, 92, 54, 0.16), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    padding: 18px 20px !important;
  }
  .nnbp-slidein-mobile { display: none !important; }
  .nnbp-slidein-desktop { display: block !important; }
}

.nnbp-slidein-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.nnbp-slidein-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nnbp-ink);
}

.nnbp-slidein-title strong {
  color: var(--nnbp-accent);
}

.nnbp-slidein-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #9CA3AF;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.nnbp-slidein-close:hover {
  color: #374151;
  background: #F3F4F6;
}

.nnbp-slidein-body {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4B5563;
}

.nnbp-slidein-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nnbp-slidein-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--nnbp-accent) 0%, var(--nnbp-accent-dark) 100%);
  color: #FFFFFF !important;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 30px;
  border: 1px solid rgba(197, 155, 39, 0.4);
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(10, 92, 54, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.nnbp-slidein-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 92, 54, 0.35);
}

.nnbp-slidein-dismiss-btn {
  background: none;
  border: 1px solid #E5E7EB;
  color: #6B7280;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nnbp-slidein-dismiss-btn:hover {
  background: #F9FAFB;
  color: #374151;
}

/* Mobile: Slim Floating Bottom Bar (<70px height) */
@media (max-width: 640px) {
  .nnbp-slidein {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    background: #FFFFFF !important;
    border: 1.5px solid rgba(197, 155, 39, 0.45) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    padding: 10px 14px !important;
  }
  .nnbp-slidein-desktop { display: none !important; }
  .nnbp-slidein-mobile {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .nnbp-slidein-mobile-content {
    flex: 1;
    min-width: 0;
  }
  .nnbp-slidein-mobile-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--nnbp-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }
  .nnbp-slidein-mobile-title strong {
    color: var(--nnbp-accent);
  }
  .nnbp-slidein-mobile-sub {
    font-size: 0.74rem;
    color: #6B7280;
    line-height: 1.25;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nnbp-slidein-mobile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .nnbp-slidein-btn-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nnbp-accent);
    color: #FFFFFF !important;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 20px;
    text-decoration: none !important;
    white-space: nowrap;
  }
  .nnbp-slidein-close-mobile {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
  }
}

/* ==========================================================================
   3. ADMIN CTR OVERLAY BAR
   ========================================================================== */

#nnbp-ctr-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 38, 29, 0.96);
  color: #fff;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.18);
  border-top: 1px solid rgba(197, 155, 39, 0.35);
  backdrop-filter: blur(8px);
}

#nnbp-ctr-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.nnbp-ctr-label {
  font-weight: 700;
  color: var(--nnbp-gold-light);
  letter-spacing: 0.05em;
}

.nnbp-ctr-tag {
  color: #86efac;
  font-weight: 600;
}

.nnbp-ctr-stat {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

.nnbp-ctr-green {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
  font-weight: 600;
}

.nnbp-ctr-amber {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  font-weight: 600;
}

.nnbp-ctr-red {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  font-weight: 600;
}

.nnbp-ctr-grey {
  opacity: 0.6;
}

.nnbp-ctr-divider {
  opacity: 0.3;
}

.nnbp-ctr-kw {
  background: rgba(167, 139, 250, 0.15);
  color: #e9d5ff;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: help;
}

.nnbp-ctr-kw small {
  opacity: 0.75;
  margin-left: 3px;
}

.nnbp-ctr-editlink {
  color: var(--nnbp-gold-light) !important;
  text-decoration: underline !important;
  margin-left: auto;
}

.nnbp-ctr-close {
  background: none;
  border: none;
  color: #fff;
  opacity: 0.6;
  cursor: pointer;
  padding: 0 4px;
  font-size: 14px;
}

.nnbp-ctr-close:hover {
  opacity: 1;
}
