/* ======================================
   THEME VARIABLES
====================================== */
:root {
  --bg:          #030608;
  --bg2:         rgba(255,255,255,0.03);
  --bg3:         rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.08);
  --text-main:   #f1f5f9;
  --text-muted:  #64748b;
  --text-sub:    #94a3b8;
  --header-bg:   rgba(3,6,8,0.78);
  --card-bg:     rgba(255,255,255,0.03);
  --input-bg:    rgba(255,255,255,0.04);
  --footer-bg:   rgba(3,6,8,0.8);
  --accent:      #60a5fa;
}

[data-theme="light"] {
  --bg:          #f0f4f8;
  --bg2:         #ffffff;
  --bg3:         #e2e8f0;
  --border:      rgba(0,0,0,0.09);
  --text-main:   #0f172a;
  --text-muted:  #475569;
  --text-sub:    #64748b;
  --header-bg:   rgba(248,250,252,0.92);
  --card-bg:     #ffffff;
  --input-bg:    #f8fafc;
  --footer-bg:   rgba(226,232,240,0.9);
  --accent:      #2563eb;
}

[data-theme="light"] body {
  background: var(--bg);
  color: var(--text-main);
}
[data-theme="light"] body::before,
[data-theme="light"] body::after { opacity: 0.25; }
[data-theme="light"] .header {
  background: var(--header-bg);
  border-bottom-color: rgba(0,0,0,0.08);
  color: #0f172a;
}
[data-theme="light"] .logo-btn,
[data-theme="light"] .header-link { color: #0f172a; }
[data-theme="light"] .footer {
  background: var(--footer-bg);
  color: #475569;
  border-top-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .home-section-alt { background: rgba(226,232,240,0.5); }
[data-theme="light"] .home-testimonial-card,
[data-theme="light"] .home-mv-card,
[data-theme="light"] .home-feature-card,
[data-theme="light"] .home-plan-pill,
[data-theme="light"] .home-contact-box { background: #fff; border-color: rgba(0,0,0,0.08); color: #1e293b; }
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 { color: #0f172a; }
[data-theme="light"] p,
[data-theme="light"] li { color: #334155; }
[data-theme="light"] .section-subtext,
[data-theme="light"] .admin-page-sub,
[data-theme="light"] .home-about-text { color: #475569; }
[data-theme="light"] .admin-sidebar {
  background: rgba(241,245,249,0.95);
  border-right-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .sidebar-link { color: #334155; }
[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active { background: rgba(37,99,235,0.08); color: #1d4ed8; }
[data-theme="light"] .admin-content { background: transparent; }
[data-theme="light"] .admin-stat-card,
[data-theme="light"] .admin-action-card,
[data-theme="light"] .fin-summary-banner,
[data-theme="light"] .analytics-card,
[data-theme="light"] .maint-toggle-card { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .admin-page-title,
[data-theme="light"] .admin-section-title { color: #0f172a; }
[data-theme="light"] .asc-label,
[data-theme="light"] .aac-desc,
[data-theme="light"] .fin-item-title,
[data-theme="light"] .fin-item-sub { color: #475569; }
[data-theme="light"] .asc-value,
[data-theme="light"] .aac-title,
[data-theme="light"] .fin-item-value { color: #0f172a; }
[data-theme="light"] .dash-stat-card { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .dsc-label { color: #475569; }
[data-theme="light"] .dsc-value { color: #0f172a; }
[data-theme="light"] .dash-section { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .dash-section h2 { color: #0f172a; }
[data-theme="light"] .dinv-card,
[data-theme="light"] .wd-history-card,
[data-theme="light"] .wd-eligible-card,
[data-theme="light"] .wd-payout-card { background: #f8fafc; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .wdhc-amount,
[data-theme="light"] .wdec-plan { color: #0f172a; }
[data-theme="light"] .wdhc-date,
[data-theme="light"] .wdec-meta-label { color: #64748b; }
[data-theme="light"] .profile-card,
[data-theme="light"] .profile-banner { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .profile-banner-name { color: #0f172a; }
[data-theme="light"] .profile-field input,
[data-theme="light"] .profile-field select,
[data-theme="light"] .profile-field textarea {
  background: #f1f5f9;
  border-color: rgba(0,0,0,0.12);
  color: #0f172a;
}
[data-theme="light"] .notif-dropdown,
[data-theme="light"] .chat-panel {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  color: #1e293b;
}
[data-theme="light"] .notif-item { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .notif-msg { color: #1e293b; }
[data-theme="light"] .notif-time { color: #64748b; }
[data-theme="light"] .chat-msg-time { color: #64748b; }
[data-theme="light"] .chat-bubble { background: #e2e8f0; color: #1e293b; }
[data-theme="light"] .chat-msg.outgoing .chat-bubble { background: #2563eb; color: #fff; }
[data-theme="light"] .chat-input { background: #f1f5f9; color: #0f172a; border-color: rgba(0,0,0,0.12); }

/* ── Tour Guide ── */
#tourOverlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}
#tourCard {
  position: absolute;
  width: 320px;
  background: #0d1a2e;
  border: 1px solid rgba(96,165,250,0.35);
  border-radius: 14px;
  padding: 20px 22px 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  pointer-events: all;
  z-index: 9001;
}
#tourArrow {
  position: absolute;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
}
#tourArrow.arrow-top {
  top: -9px;
  border-bottom: 9px solid rgba(96,165,250,0.35);
}
#tourArrow.arrow-bottom {
  bottom: -9px;
  border-top: 9px solid rgba(96,165,250,0.35);
}
#tourHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
#tourStep {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #60a5fa;
  font-weight: 600;
}
#tourSkip {
  background: none;
  border: none;
  color: #475569;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
#tourSkip:hover { color: #94a3b8; }
#tourTitle {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #f1f5f9;
  margin-bottom: 8px;
  line-height: 1.3;
}
#tourText {
  font-size: 0.83rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
}
#tourFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#tourDots { display: flex; gap: 5px; }
.tour-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.tour-dot.active { background: #60a5fa; }
#tourNext {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#tourNext:hover { background: #1d4ed8; }

/* Highlight ring on target element */
.tour-highlight {
  outline: 2px solid #3b82f6 !important;
  outline-offset: 4px !important;
  border-radius: 8px;
  position: relative;
  z-index: 8999;
}

/* ── Theme toggle button ── */
.theme-toggle-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 5px 10px;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.theme-toggle-btn:hover { background: rgba(255,255,255,0.06); color: #cbd5e1; }
[data-theme="light"] .theme-toggle-btn {
  border-color: rgba(0,0,0,0.15);
  color: #475569;
}
[data-theme="light"] .theme-toggle-btn:hover { background: rgba(0,0,0,0.05); }

/* ======================================
   RESET / BASE
====================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #030608;
  color: #ffffff;
  line-height: 1.5;
}

/* Global ambient aurora — subtle sitewide glow */
body::before {
  content: "";
  position: fixed;
  width: 80vw;
  height: 75vh;
  top: -15%;
  right: -15%;
  background: rgba(0, 80, 200, 0.18);
  border-radius: 50%;
  filter: blur(130px);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  width: 60vw;
  height: 60vh;
  bottom: -20%;
  left: -10%;
  background: rgba(0, 45, 150, 0.15);
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

/* ======================================
   HEADER
====================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  isolation: isolate;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  color: #f8f8f0;
  font-weight: 700;
  background: rgba(3, 6, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(45deg, #3b82f6, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: opacity 0.2s ease;
}

.logo-btn:hover {
  opacity: 0.85;
}

/* Logo icon — crop text from bottom, white bg removed via CSS blend */
.logo-icon-wrap {
  display: inline-block;
  width: 38px;
  height: 30px;   /* shows ~80% of image height = diamond only, no text */
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.logo-icon {
  width: 100%;
  display: block;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.nav-links a,
.header-link {
  margin-left: 18px;
  text-decoration: none;
  color: #f8f8f0;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.header-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.7);
}

.header-link.active {
  opacity: 0.65;
  pointer-events: none;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#adminButtonContainer {
  display: inline-flex;
  align-items: center;
}

#adminButtonContainer .header-link {
  display: inline-block;
}

/* ======================================
   HAMBURGER / MOBILE NAV
====================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #f8f8f0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-links.open {
  display: flex;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(3, 14, 40, 0.97);
    padding: 16px 24px;
    gap: 14px;
    z-index: 100;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
  }

  .nav-links a,
  .nav-links .header-link,
  .nav-links button,
  .notif-bell-wrap,
  .theme-toggle-btn {
    margin-left: 0;
  }

  .admin-badge-pill {
    font-size: 0.6rem;
    padding: 3px 8px;
    letter-spacing: 1px;
  }

  .header {
    padding: 14px 16px;
  }
}

/* ======================================
   CHAT WIDGET
====================================== */
#chatWidget { position: fixed; bottom: 28px; right: 28px; z-index: 900; font-family: Inter, sans-serif; }

.chat-fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(59,130,246,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.chat-fab:hover, .chat-fab.active { transform: scale(1.08); box-shadow: 0 6px 28px rgba(59,130,246,0.6); }
.chat-fab-badge {
  position: absolute; top: 2px; right: 2px;
  color: #ef4444; font-size: 1rem; line-height: 1;
  pointer-events: none;
}

.chat-panel {
  display: none;
  position: absolute; bottom: 64px; right: 0;
  width: 320px;
  background: #0f172a;
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }

.chat-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: rgba(96,165,250,0.06);
  border-bottom: 1px solid rgba(96,165,250,0.1);
}
.chat-panel-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600; color: #e2e8f0;
}
.chat-panel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  animation: chat-pulse 2s ease-in-out infinite;
}
@keyframes chat-pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.chat-panel-close {
  background: none; border: none; color: #64748b;
  font-size: 1rem; cursor: pointer; line-height: 1; padding: 2px;
  transition: color 0.2s;
}
.chat-panel-close:hover { color: #e2e8f0; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 260px; max-height: 340px;
}
.chat-loading, .chat-empty {
  text-align: center; color: #475569; font-size: 0.82rem;
  margin: auto; padding: 12px;
}
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg.outgoing { align-self: flex-end; align-items: flex-end; }
.chat-msg.incoming { align-self: flex-start; align-items: flex-start; }
.chat-msg-name { font-size: 0.68rem; color: #64748b; margin-bottom: 3px; padding-left: 4px; }
.chat-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem; line-height: 1.45;
  word-break: break-word;
}
.chat-msg.outgoing .chat-bubble {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.incoming .chat-bubble {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}
.chat-msg-time { font-size: 0.65rem; color: #475569; margin-top: 3px; padding: 0 4px; }

.chat-input-wrap {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(96,165,250,0.1);
}
.chat-input {
  flex: 1; resize: none; overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 10px;
  color: #e2e8f0; font-family: Inter, sans-serif; font-size: 0.85rem;
  padding: 9px 12px; outline: none; line-height: 1.4;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: #60a5fa; }
.chat-input::placeholder { color: #475569; }
.chat-send-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border: none; border-radius: 10px;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s, transform 0.15s;
}
.chat-send-btn:hover { opacity: 0.85; transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.4; }

@media (max-width: 480px) {
  #chatWidget { bottom: 16px; right: 16px; }
  .chat-panel { width: calc(100vw - 32px); right: 0; }
}

/* ======================================
   NOTIFICATION BELL
====================================== */
.notif-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 18px;
  flex-shrink: 0;
}
.notif-bell-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.notif-bell-btn:hover { color: #60a5fa; background: rgba(96,165,250,0.1); }
.notif-badge {
  position: absolute;
  top: 0; right: 0;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: #0f172a;
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 500;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(96,165,250,0.1);
}
.notif-dropdown-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.notif-read-all {
  background: none;
  border: none;
  color: #60a5fa;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: Inter, sans-serif;
  padding: 0;
}
.notif-read-all:hover { text-decoration: underline; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-empty { padding: 24px 16px; text-align: center; color: #475569; font-size: 0.85rem; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.notif-item:hover { background: rgba(96,165,250,0.05); }
.notif-item.unread { background: rgba(96,165,250,0.04); }
.notif-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-icon.success { background: rgba(52,211,153,0.15); color: #34d399; }
.notif-icon.error   { background: rgba(239,68,68,0.15);  color: #f87171; }
.notif-icon.warning { background: rgba(251,191,36,0.15); color: #fbbf24; }
.notif-icon.info    { background: rgba(96,165,250,0.15); color: #60a5fa; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-msg  { font-size: 0.82rem; color: #cbd5e1; line-height: 1.4; }
.notif-time { font-size: 0.72rem; color: #475569; margin-top: 3px; }
.notif-dot  {
  width: 7px; height: 7px;
  background: #3b82f6;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ======================================
   FOOTER
====================================== */
.footer {
  width: 100%;
  text-align: center;
  padding: 18px 12px;
  background: #030608;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #d1d5db;
  font-size: 0.9rem;
}

/* ======================================
   GENERIC BUTTONS
====================================== */
.btn,
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn {
  background: #3b82f6;
  color: #ffffff;
}

.btn-primary {
  background: #ffffff;
  color: #030608;
  -webkit-text-fill-color: #030608;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 30px !important;
  padding: 14px 36px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-small {
  padding: 7px 12px;
  font-size: 0.85rem;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-small:hover {
  background: #2563eb;
}

/* ======================================
   HERO / HOME
====================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 120px 24px 80px;
  background: #030608;
  overflow: hidden;
}

/* ── Hero aurora blob layer ── */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
}

/* Main large mass — center-right, sweeping upward */
.aurora-blob-1 {
  width: 110vw;
  height: 85vh;
  top: -10%;
  left: 10%;
  background: rgba(0, 88, 210, 0.62);
  filter: blur(90px);
  transform: rotate(-18deg) scaleY(0.85);
}

/* Lower-left deep navy wave */
.aurora-blob-2 {
  width: 75vw;
  height: 70vh;
  bottom: -25%;
  left: -8%;
  background: rgba(0, 48, 155, 0.55);
  filter: blur(100px);
  transform: rotate(12deg);
}

/* Bright cyan accent — upper area */
.aurora-blob-3 {
  width: 45vw;
  height: 50vh;
  top: 2%;
  right: 5%;
  background: rgba(0, 158, 255, 0.28);
  filter: blur(80px);
  transform: rotate(-28deg);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  width: 100%;
  padding: 0 16px;
  color: #fff;
  animation: fadeInUp 0.9s ease both;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 20px;
  padding: 6px 18px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 30px;
  background: rgba(59, 130, 246, 0.08);
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 1.2rem;
  margin: 0 auto 20px;
  font-weight: 400;
  color: #94a3b8;
  max-width: 600px;
  line-height: 1.7;
  -webkit-text-fill-color: #94a3b8;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1rem;
  line-height: 1.85;
  color: #64748b;
  -webkit-text-fill-color: #64748b;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cta-buttons a {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 28px;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
}

/* ======================================
   HOMEPAGE SECTIONS
====================================== */
main {
  background: transparent;
  position: relative;
  z-index: 1;
}

.home-section {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  background: transparent;
  overflow: hidden;
}

.home-section-alt,
.home-section-main {
  background: transparent;
}

.home-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.home-section-label {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 16px;
  padding: 5px 16px;
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 30px;
  background: rgba(59,130,246,0.07);
}

.home-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.home-section .section-subtext {
  color: #64748b;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* About intro */
.home-about-text {
  max-width: 720px;
  margin: 0 auto 56px;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* Mission / Vision cards */
.home-mv-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 8px auto 0;
  text-align: left;
}

.home-mv-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.home-mv-card:hover {
  border-color: rgba(0, 160, 240, 0.35);
  transform: translateY(-3px);
}

.home-mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 16px 16px 0 0;
}

.home-mv-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.home-mv-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.home-mv-card p {
  color: #94a3b8;
  font-size: 0.97rem;
  line-height: 1.8;
}

/* Stats bar */
.home-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.home-stat-item {
  text-align: center;
}

.home-stat-item .stat-num {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #60a5fa;
  line-height: 1;
}

.home-stat-item .stat-label {
  font-size: 0.82rem;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Testimonial cards */
.home-testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.home-testimonial-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.home-testimonial-card:hover {
  border-color: rgba(0, 160, 240, 0.35);
}

.home-testimonial-card p {
  color: #cbd5e1;
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.home-testimonial-card .tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.tc-avatar-img {
  object-fit: cover;
  padding: 0;
}

.tc-name {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.92rem;
}

.tc-label {
  font-size: 0.8rem;
  color: #60a5fa;
}

.home-section-cta {
  margin-top: 40px;
}

.home-section-cta a {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 28px;
  background: transparent;
  border: 1px solid #3b82f6;
  color: #60a5fa;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.home-section-cta a:hover {
  background: #3b82f6;
  color: #fff;
}

/* How It Works — numbered steps */
.home-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.home-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.home-step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(96,165,250,0.2);
  line-height: 1;
  min-width: 52px;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.step-body p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Why Choose Us — feature grid */
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
  text-align: left;
}

.home-feature-card {
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s;
}

.home-feature-card:hover {
  border-color: rgba(0,160,240,0.3);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: block;
}

.home-feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.home-feature-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Plans preview strip */
.home-plans-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.home-plan-pill {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px 20px;
  background: rgba(255,255,255,0.02);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.home-plan-pill:hover {
  border-color: rgba(0,160,240,0.3);
  transform: translateY(-2px);
}

.plan-pill-name {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.plan-pill-desc {
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.5;
}

.plan-pill-badge {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #60a5fa;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Contact section */
.home-contact-box {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: left;
}

.home-contact-box p {
  color: #94a3b8;
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.7;
}

.home-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 0.97rem;
}

.home-contact-item .ci-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.home-contact-item a {
  color: #60a5fa;
  text-decoration: none;
}

.home-contact-item a:hover {
  text-decoration: underline;
}

/* ======================================
   AUTH PAGES
====================================== */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
  background: #070e1c;
}

.auth-box {
  background: #070e1c;
  border-radius: 12px;
  padding: 30px 25px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  animation: fadeIn 0.7s ease forwards;
}

.auth-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #60a5fa;
  text-align: center;
}

.auth-subtext {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  text-align: center;
}

.auth-link {
  margin-top: 15px;
  font-size: 0.85rem;
  text-align: center;
}

.auth-link a {
  color: #60a5fa;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.auth-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 450px;
  gap: 18px;
  background: #0f1f3d;
  padding: 36px 28px;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
  text-align: center;
  animation: fadeInUp 0.8s ease forwards;
}

.auth-form input,
.auth-form select,
.auth-form button {
  font-size: 0.95rem;
  padding: 12px 14px;
}

.auth-form input,
.auth-form select {
  border-radius: 10px;
  border: none;
  background-color: #152748;
  color: #f0f0f0;
  transition: all 0.3s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  background-color: #1e3a5f;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.auth-form button.cta {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.auth-form button.cta:hover {
  background-color: #2563eb;
  transform: scale(1.03);
}

/* ======================================
   ABOUT PAGE
====================================== */
.about-page {
  background-color: #070e1c;
  color: #fefefe;
  font-family: "Inter", sans-serif;
  padding: 80px 20px;
  line-height: 1.8;
}

.about-page h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #60a5fa;
}

.about-page p {
  max-width: 800px;
  margin: 20px auto;
  font-size: 1.15rem;
}

.mission-vision {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.mission-vision .mission,
.mission-vision .vision {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.mission-vision .mission:hover,
.mission-vision .vision:hover {
  transform: translateY(-4px);
  background: rgba(59, 130, 246, 0.08);
}

.mission-vision h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #60a5fa;
  margin-bottom: 18px;
}

/* ======================================
   DASHBOARD LAYOUT
====================================== */
.dashboard,
.dashboard-main {
  position: relative;
  min-height: calc(100vh - 80px);
  color: #fff;
}

.dashboard-main {
  padding: 30px 20px 50px;
}

.centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dashboard-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.dashboard-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

.dashboard-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 40px auto 30px;
  padding: 20px;
  color: #fff;
}

.dashboard-hero-content h1 {
  font-size: 2.5rem;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.18);
}

.dashboard-hero-content p {
  margin-top: 10px;
  font-size: 1.1rem;
  opacity: 0.92;
}

#welcomeMessage {
  transition: opacity 0.8s ease-in-out;
}

.dashboard-main h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.subtext {
  color: #cfd3da;
  max-width: 560px;
  margin-bottom: 26px;
  line-height: 1.6;
}

/* ======================================
   STATS
====================================== */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.stat-card {
  min-width: 180px;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #fff;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.12);
}

.stat-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #f3f4f6;
}

.stat-card p {
  font-size: 1.7rem;
  font-weight: 700;
}

/* ======================================
   CHART / INVESTMENT SECTION
====================================== */
.chart-container,
.investment-growth-section {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 20px;
}

.chart-container {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08);
}

canvas#investmentChart {
  width: 100% !important;
  height: 400px !important;
}

.investment-growth-section {
  margin-top: 36px;
  text-align: center;
}

.investment-growth-section h3 {
  font-size: 1.75rem;
  color: #60a5fa;
  margin-bottom: 18px;
}

.investment-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ======================================
   CARDS / BOXES
====================================== */
.announcement-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px 28px;
  border-radius: 14px;
  color: #e5e7eb;
  max-width: 640px;
  width: 100%;
  margin: 16px auto;
}

.announcement-box h3 {
  color: #ffffff;
  margin-bottom: 14px;
}

.announcement-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #f3f4f6;
}

.announcement-box input,
.announcement-box select,
.announcement-box textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
}

.announcement-box input::placeholder,
.announcement-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.announcement-box input:focus,
.announcement-box select:focus,
.announcement-box textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.form-group {
  margin-bottom: 16px;
}

.form-note,
.note-text {
  margin-top: 12px;
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.5;
}

.investment-box,
.withdrawal-box,
.admin-withdrawal-card,
.admin-investment-card,
.admin-testimony-card,
.public-testimony-card,
.testimonial-card {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.investment-box {
  background: rgba(15, 31, 61, 0.95);
  border: 1px solid #3b82f6;
  padding: 20px;
  min-width: 260px;
  max-width: 320px;
  margin: 15px auto;
  color: #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.investment-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.investment-box p {
  margin: 6px 0;
  font-size: 0.98rem;
  color: #cbd5e1;
}

.investment-box strong {
  color: #f1f5f9;
}

.investment-box .detail {
  display: none;
}

.investment-box.expanded .detail {
  display: block;
}

.withdrawal-box {
  background: rgba(15, 31, 61, 0.95);
  border: 1px solid #3b82f6;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  color: #e5e7eb;
}

.withdraw-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #ffffff;
  margin-top: 10px;
}

.approve-btn {
  background-color: #28a745;
}

.complete-btn {
  background-color: #007bff;
}

.withdraw-btn:hover {
  opacity: 0.92;
}

/* ======================================
   PROGRESS BAR
====================================== */
.progress-wrapper {
  margin-top: 10px;
}

.progress-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 8px;
  transition: width 0.6s ease;
}

.investment-box.active .progress-fill {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.investment-box.completed .progress-fill {
  background: linear-gradient(90deg, #9acd32, #6fa832);
}

/* ======================================
   INVEST / WITHDRAW BUTTON GROUPS
====================================== */
.invest-button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 25px 0;
}

#investBtn,
#withdrawBtn {
  background: #3b82f6;
  color: #fff;
  font-size: 1.6rem;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

#investBtn:hover,
#withdrawBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.45);
}

/* ======================================
   INVEST FORM / PLAN PREVIEW
====================================== */
.investment-form,
.investment-form-container {
  background: rgba(0, 0, 0, 0.6);
  padding: 22px;
  border-radius: 15px;
  color: #fff;
}

.investment-form {
  margin-bottom: 30px;
}

.investment-form-container {
  max-width: 500px;
  margin: 30px auto;
  text-align: left;
}

.investment-form input,
.investment-form select,
.investment-form button,
.investment-form-container input,
.investment-form-container select,
.investment-form-container button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}

.investment-form button,
.investment-form-container button {
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.invest-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.invest-form label {
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.invest-form input,
.invest-form select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.invest-form input:focus,
.invest-form select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.invest-submit {
  margin-top: 10px;
  font-size: 18px;
  padding: 14px;
}

.plan-preview {
  margin-top: 35px;
  text-align: center;
}

.plan-preview h3 {
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.plan-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.plan-card h4 {
  margin-bottom: 10px;
  color: #60a5fa;
}

.plan-card.featured {
  border-color: #3b82f6;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.28);
}

/* ======================================
   DASHBOARD LINKS
====================================== */
.dashboard-links {
  margin-top: 80px;
  padding: 50px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.dashboard-links-container h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #e5e7eb;
}

.dashboard-link-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.dash-link {
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.dash-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.learn-more-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(45deg, #3b82f6, #60a5fa);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
  margin: 40px auto 25px;
}

.learn-more-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 12px #3b82f6;
}

/* ======================================
   TESTIMONIALS
====================================== */
.testimonial-box {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 700px;
}

.testimonial-avatar,
.public-testimony-avatar,
.admin-testimony-avatar,
.testimonial-image,
.announcement-avatar {
  object-fit: cover;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.testimonial-content {
  text-align: left;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 10px;
}

.testimonial-name {
  font-size: 0.85rem;
  color: #cfd3da;
}

.testimonial-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 25px;
  max-width: 850px;
  margin: 30px auto;
}

.testimonial-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.6);
  flex-shrink: 0;
}

.testimonial-content h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #f5f5f5;
}

.testimonial-content p {
  margin: 0;
  line-height: 1.6;
  color: #dcdcdc;
}

/* Public testimonials page */
.testimonials-page {
  min-height: calc(100vh - 80px);
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#testimonialsContainer,
#adminTestimonyContainer,
#adminWithdrawalContainer {
  width: 100%;
  max-width: 900px;
}

.public-testimony-card,
.admin-testimony-card,
.admin-withdrawal-card,
.admin-investment-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 22px;
  margin-bottom: 20px;
  text-align: left;
}

.public-testimony-top,
.admin-testimony-top {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.admin-testimony-top {
  align-items: flex-start;
  margin-bottom: 16px;
}

.public-testimony-avatar,
.admin-testimony-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.4);
  flex-shrink: 0;
}

.public-testimony-meta,
.admin-testimony-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.public-testimony-name {
  margin: 0;
  color: #f3f4f6;
  font-weight: 600;
  font-size: 1rem;
}

.public-testimony-message p,
.admin-testimony-message,
.admin-testimony-meta p,
.admin-withdrawal-card p {
  color: #e5e7eb;
  line-height: 1.6;
}

.admin-testimony-actions,
.admin-withdrawal-actions,
.admin-investment-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ======================================
   ADMIN PAGES
====================================== */
.admin-summary-page,
.admin-testimonials-page,
.admin-withdrawals-page {
  min-height: calc(100vh - 80px);
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.admin-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 40px;
}

.stat-box {
  min-width: 200px;
  padding: 24px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

.stat-box h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.stat-box p {
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
}

.admin-nav-section {
  width: 100%;
  max-width: 1100px;
  margin-top: 10px;
}

.admin-nav-section h2 {
  margin-bottom: 20px;
}

.admin-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.admin-nav-card {
  display: block;
  text-align: left;
  padding: 24px;
  border-radius: 14px;
  text-decoration: none;
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.admin-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.admin-nav-card h3 {
  margin-bottom: 10px;
  color: #60a5fa;
}

.admin-nav-card p {
  color: #d8dde6;
  line-height: 1.5;
}

.admin-proof-img {
  width: 100%;
  max-width: 200px;
  margin-top: 10px;
  border-radius: 8px;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.admin-proof-img:hover {
  opacity: 0.85;
}

/* ======================================
   PAGINATION
====================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 30px;
  flex-wrap: wrap;
}

.pagination-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-info {
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ======================================
   MODALS
====================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-box,
.modal-content {
  background: #ffffff;
  color: #111111;
  width: min(92vw, 420px);
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.modal-box p,
.modal-content p,
#modalMessage,
#completionMessage {
  color: #111111;
  line-height: 1.5;
}

.modal-box button,
.modal-content button,
#modalOkBtn,
#closeModalBtn {
  margin-top: 15px;
  padding: 10px 18px;
  border: none;
  background: #28a745;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.modal-box button:hover,
.modal-content button:hover,
#modalOkBtn:hover,
#closeModalBtn:hover {
  opacity: 0.92;
}

/* ======================================
   TESTIMONY MODAL
====================================== */
.testimony-trigger-wrap {
  margin-top: 18px;
}

.testimony-trigger-btn,
#openTestimonyModal {
  display: inline-block;
  min-width: 220px;
  text-align: center;
  background: #3b82f6 !important;
  color: #fff !important;
  font-size: 18px !important;
  padding: 12px 25px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.testimony-trigger-btn:hover,
#openTestimonyModal:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
}

#testimonyModal .testimony-modal-box {
  background: #ffffff !important;
  color: #111111 !important;
  width: min(92vw, 480px) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

#testimonyModal h3,
#testimonyModal label,
#testimonyModal span,
#testimonyModal small {
  color: #111111 !important;
}

#testimonyModal textarea,
#testimonyModal input[type="text"],
#testimonyModal input[type="file"],
#testimonyText,
#displayName,
#avatarFile {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px !important;
  margin-bottom: 16px !important;
  border: 1px solid #cfcfcf !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #111111 !important;
  font-size: 14px !important;
}

#testimonyModal textarea,
#testimonyText {
  min-height: 120px !important;
  resize: vertical !important;
}

#testimonyModal textarea::placeholder,
#testimonyModal input[type="text"]::placeholder,
#testimonyText::placeholder,
#displayName::placeholder {
  color: #777777 !important;
}

#testimonyModal .checkbox-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  font-weight: 500;
}

#testimonyModal .checkbox-row input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

#testimonyModal .testimony-modal-actions {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  margin-top: 8px !important;
}

/* ======================================
   ANNOUNCEMENT PROFILE / REFER
====================================== */
.announcement-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.announcement-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

/* ======================================
   POPUP NOTIFICATION
====================================== */
.popup-notification {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 20px 25px;
  z-index: 1000;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: popupFadeIn 0.5s ease forwards;
}

.popup-notification p {
  margin: 0;
}

.popup-notification #closePopup {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #111;
}

/* ======================================
   ANIMATIONS
====================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 60px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero h2 {
    font-size: 1.05rem;
  }
  .hero p {
    font-size: 0.93rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-buttons a {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 13px 24px;
    font-size: 0.97rem;
  }
  .header {
    padding: 12px 16px;
  }
  .logo-btn {
    font-size: 1.5rem;
  }
  .nav-links a,
  .header-link {
    margin-left: 10px;
    font-size: 0.9rem;
  }
  .home-section {
    padding: 60px 18px;
  }
  .home-section h2 {
    font-size: 1.7rem;
  }
  .home-mv-card {
    padding: 28px 22px;
  }
  .home-stats-row {
    gap: 28px;
  }
  .home-stat-item .stat-num {
    font-size: 2rem;
  }
  .home-contact-box {
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  .announcement-box {
    padding: 18px;
  }

  .stats {
    gap: 14px;
  }

  .stat-card {
    min-width: 140px;
    width: calc(50% - 14px);
  }

  .btn,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .invest-button-container {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .testimonial-box,
  .testimonial-card,
  .public-testimony-top,
  .admin-testimony-top {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .testimonial-content,
  .public-testimony-card,
  .admin-testimony-card {
    text-align: center;
  }

  .progress-bar {
    height: 10px;
  }

  .progress-label {
    font-size: 11px;
  }
}

/* ======================================
   FINAL SELECT / OPTION FIX
====================================== */
select {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

select option {
  color: #111111;
  background-color: #ffffff;
}

select:disabled {
  color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.06);
}
