/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Inter, system-ui, sans-serif;
  position: relative;
  min-height: 100vh;
  color: #F2EEE1;
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(circle at top left, #2a0033, #000018 70%),
              radial-gradient(circle at bottom right, #001a33, #000010 80%);
  background-blend-mode: overlay;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg,
              rgba(212,255,40,.07), rgba(255,45,244,.07), rgba(0,224,255,.07));
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(20,0,20,.7);
  backdrop-filter: blur(3px);
  z-index: -1;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero */
.hero { text-align: center; padding: 60px 20px; position: relative; z-index: 1; }
.hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 8px; color: #F2EEE1; }
.hero p { color: #A8A3AD; margin-bottom: 15px; }
.cta-btn {
  display: inline-block;
  background: #D4FF28; color: #1A1400;
  padding: 12px 28px; border-radius: 8px; font-weight: 700;
  text-decoration: none; transition: .25s;
}
.cta-btn:hover { background: #FF2DF4; color: #fff; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.music-toggle {
  background: #c6ff00; color: #000; font-weight: 700; border: 0;
  padding: 12px 20px; border-radius: 8px; cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.3); transition: background .2s;
}
.music-toggle:hover { background: #b0e800; }

/* Team grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  padding: 30px 40px;
  max-width: 1400px;
  margin: auto;
  position: relative;
  z-index: 1;
}


.card img{
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #D4FF28;
  box-shadow: 0 0 6px #FF2DF4, 0 0 12px #D4FF28;
  margin-bottom: 12px;
  object-fit: cover;            
}


.avatar-fallback {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1400;
  background: #c6ff00;   /* neon green bg */
  border: 2px solid #FF2DF4;
  box-shadow: 0 0 6px #FF2DF4, 0 0 12px #D4FF28;
}

/* Keep mobile sizes in sync */
@media (max-width: 768px) {
  .card img,
  .avatar-fallback {
    width: 55px;
    height: 55px;
  }
}

.card {
  background: rgba(26,20,0,.75);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 0 20px #FF2DF4, 0 0 30px #D4FF28; }
.card img {
  width: 70px; height: 70px; border-radius: 50%;
  border: 2px solid #D4FF28; box-shadow: 0 0 6px #FF2DF4, 0 0 12px #D4FF28;
  margin-bottom: 12px;
}
.card .name { font-size: 1.3rem; font-weight: 700; color: #c6ff00; margin-bottom: 2px; }
.card .meta { font-size: .95rem; color: #aaa; font-style: italic; }
.card p.story { font-size: .95rem; color: #F2EEE1; line-height: 1.5; margin-top: 8px; }
.socials { margin-top: 12px; }
.socials a { color: #FF2DF4; font-size: 1.2rem; transition: .3s; }
.socials a:hover { color: #D4FF28; }

/* Card buttons */
.card .msg-btn, .card .view-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; margin: 12px 4px 0 0;
  border-radius: 8px; font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 1px solid #FF2DF4; color: #FF2DF4; background: transparent;
  transition: all .25s ease-in-out;
}
.card .msg-btn { border-color: #D4FF28; color: #D4FF28; }
.card .msg-btn:hover { background: #D4FF28; color: #1A1400; box-shadow: 0 0 12px #D4FF28, 0 0 18px #FF2DF4; }
.card .view-btn:hover { background: #FF2DF4; color: #1A1400; box-shadow: 0 0 12px #FF2DF4, 0 0 18px #D4FF28; }

/* Stats section (optional) */
.stats { display: flex; justify-content: center; gap: 50px; padding: 60px 20px; text-align: center; font-size: 1.4rem; font-weight: 600; color: #F2EEE1; }
.stats .stat { background: rgba(26,20,0,.7); padding: 20px 30px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); min-width: 180px; transition: transform .3s; }
.stats .stat:hover { transform: translateY(-5px); box-shadow: 0 0 15px #FF2DF4, 0 0 25px #D4FF28; }
.stats .count { font-size: 2rem; font-weight: 800; color: #D4FF28; display: block; margin-bottom: 6px; }

/* Footer */
footer { text-align: center; padding: 25px 20px; background: rgba(0,18,46,.85); color: #A8A3AD; font-size: .85rem; backdrop-filter: blur(3px); position: relative; z-index: 1; }
footer .built { margin-top: 8px; font-size: .95rem; color: #FF2DF4; font-weight: 600; }
footer .built span { color: #D4FF28; font-weight: 700; }

/* Generic modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center; justify-content: center;
  z-index: 2000;
}
.modal.hidden { display: none; }
.modal:not(.hidden) { display: flex; }
.modal-content {
  background: #1a1400; color: #F2EEE1;
  padding: 25px; border-radius: 12px;
  max-width: 400px; width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,.6);
  text-align: center;
}
.modal-content h2 { margin-bottom: 15px; font-size: 1.4rem; }
.modal-content input, .modal-content textarea {
  width: 100%; margin-bottom: 12px; padding: 10px;
  border: 1px solid #D4FF28; border-radius: 8px; background: rgba(0,18,46,.5); color: #F2EEE1;
  font-family: inherit;
}
.modal-content textarea { min-height: 100px; }
.modal-actions { display: flex; gap: 10px; justify-content: space-between; }
.modal-actions .btn {
  background: #D4FF28; color: #1A1400; border: none; padding: 8px 16px;
  border-radius: 6px; font-weight: 700; cursor: pointer; transition: .2s;
}
.modal-actions .btn:hover { background: #FF2DF4; color: #fff; }

/* View Messages Modal */
#view-messages-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
#view-messages-modal.show { display: flex; }

#view-messages-modal .modal-content {
  background: #1a1400;
  padding: 22px;
  border-radius: 12px;
  max-width: 600px;
  width: 95%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0,0,0,.6);
}

#view-modal-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #c6ff00;
  margin-bottom: 14px;
}

#messages-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 6px;
}


.message-item {
  background: #222;
  border: 1px solid #333;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,.35);
  text-align: left;   
}


.comment-meta .dot {
  display: none !important;
}


.comment-meta .dot {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}


.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #2b2b2b;
  border-bottom: 1px solid #333;
  border-radius: 8px 8px 0 0;
}

/* Username badge */
.message-user {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
  background: #c6ff00;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

/* Styled date */
.message-date {
  font-size: 0.8rem;
  font-style: italic;
  color: #d1d1d1;
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Comment text */
.message-content {
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f2f2f2;
  background: #1d1d1d;    /* ✅ clear separation */
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;       /* ✅ aligned left */
}

/* Close button */
#closeViewModal {
  background: #c6ff00;
  color: #000;
  font-weight: bold;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-self: center;
  transition: background 0.2s;
}
#closeViewModal:hover { background: #b0e800; }

/* Toast */
.toast {
  position: fixed; top: 20px; right: 20px;
  background: rgba(26,20,0,.95); color: #D4FF28;
  padding: 14px 20px; border-radius: 10px; font-weight: 800;
  box-shadow: 0 0 15px #FF2DF4, 0 0 25px #D4FF28; z-index: 3000;
  opacity: 0; transform: translateY(-20px); transition: all .35s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.hidden { opacity: 0; }

/* Mobile tweaks */
@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; gap: 20px; padding: 0 12px 20px; }
  .card { padding: 15px; }
}
@media (max-width: 600px) {
  #view-messages-modal .modal-content {
    width: 95%;
    padding: 16px;
  }
  .message-item { padding: 10px; }
  .message-user { font-size: 0.9rem; }
  .message-date { font-size: 0.7rem; }
}