/* ========== ANNOUNCEMENT BANNER ========== */
#announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffcc00;
    color: #333;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#announcement-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#announcement-text {
    flex-grow: 1;
    text-align: center;
}

#close-banner {
    background: transparent;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}
#close-banner:hover {
    color: #000;
}

/* Responsive fix */
@media (max-width: 768px) {
    #announcement-banner {
        font-size: 14px;
        padding: 8px;
    }
}

/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #f5f5f5;
  min-height: 100vh;
  padding: 1rem;
}

/* ========== HEADER & NAV ========== */
.header, .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav a:hover {
  color: #00f7ff;
}

/* ========== HERO SECTION ========== */
.hero {
  text-align: center;
  margin-top: 2rem;
  background: url('https://images.unsplash.com/photo-1611078489935-d6aa46ec0722?auto=format&fit=crop&w=1600&q=80') no-repeat center center;
  background-size: cover;
  padding: 5rem 1rem;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.hero h2,
.hero p,
.hero .btn-cta {
  background: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 1rem;
  border-radius: 10px;
}

/* ========== BUTTONS ========== */
.btn, .btn-primary, .btn-outline, .btn-cta {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem;
}

.btn-primary {
  background: #00f7ff;
  color: #000;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid #00f7ff;
  color: #00f7ff;
}

.btn-cta {
  background: #ffffff;
  color: #2c5364;
  border: none;
}

/* ========== AUTH FORMS ========== */
.auth-container {
  max-width: 400px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}

.auth-container h2, h4 {
  text-align: center;
  margin-bottom: 1rem;
}

.auth-container input, select {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 6px;
  border: none;
  outline: none;
}

/* ========== DASHBOARD ========== */
.wallets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.wallet {
  flex: 1 1 30%;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.wallet h3 {
  margin-bottom: 0.5rem;
  color: #00f7ff;
}

/* ========== INVESTMENT CARDS ========== */
.investment-cards {
  margin-top: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.07);
  margin: 1rem 0;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.12);
}

.invest-btn {
  margin-top: 1rem;
}

/* ========== ACTIVE INVESTMENTS ========== */
.investment-status-card {
  background: rgba(0, 255, 255, 0.1);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ========== WITHDRAW SECTION ========== */
.withdrawal-section {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 12px;
}

.withdrawal-section select, #withdrawBtn {
  margin-top: 0.75rem;
  width: 100%;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.testimonials blockquote {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  font-style: italic;
  color: #fff;
}

/* ========== TEAM / ABOUT ========== */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.member {
  text-align: center;
}

.member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #00f7ff;
  object-fit: cover;
}

/* ========== CONTACT & FOOTER ========== */
.section {
  padding: 2rem 1rem;
  text-align: center;
}

.footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

/* ========== RESPONSIVENESS ========== */
@media (max-width: 768px) {
  .wallets {
    flex-direction: column;
    align-items: center;
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav a {
    margin: 0.25rem 0;
  }

  .team {
    flex-direction: column;
  }
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: #ffffff;
  border: 2px solid #003366;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  z-index: 9999;
}
.chat-window.open {
  display: flex;
}

/* Message List */
.chat-messages {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  background: #ffffff;
}

/* Individual Message */
.chat-message {
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 16px;
  max-width: 75%;
  line-height: 1.4;
  font-size: 14px;
  word-wrap: break-word;
}

.chat-message.me {
  align-self: flex-end;
  background: #003366;
  color: #ffffff;
  border: 1px solid #002244;
}

.chat-message.them {
  align-self: flex-start;
  background: #ffffff;
  color: #003366;
  border: 1px solid #003366;
}

.chat-message .time {
  display: block;
  font-size: 10px;
  color: #999;
  margin-top: 4px;
  text-align: right;
}

.chat-form {
  display: flex;
  border-top: 1px solid #ccc;
  background: #f9f9f9;
}
.chat-form input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 0 0 0 8px;
  font-size: 14px;
}
.chat-form button {
  padding: 0 16px;
  border: none;
  background: #003366;
  color: white;
  font-weight: bold;
  border-radius: 0 0 8px 0;
  cursor: pointer;
}

.btn-chat {
  position: fixed;
  bottom: 10px;
  right: 20px;
  padding: 10px 16px;
  border: none;
  background: #003366;
  color: white;
  border-radius: 24px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* ========== ADMIN DASHBOARD SPECIFIC ========== */
#usersList, #chatPanel {
  background: #fff !important;
  color: #000 !important;
}
.message, .message.user, .message.admin {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}

.message-timestamp {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.25rem;
}

.withdraw-inputs input,
.withdraw-inputs button {
  margin: 0;
}

/* ========== GLOBAL LOADER STYLES ========== */
#globalLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #004d00;
  font-weight: bold;
  visibility: hidden;
}
#globalLoader.show {
  visibility: visible;
}

/* Animated Loader (Box with Rotating Circle) */
.loader-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.loader-circle {
  width: 50px;
  height: 50px;
  border: 5px solid #004d00;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-center {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== PAYMENT PROOF POP-UP (UNDER LOGOUT BUTTON) ========== */
/* Fade-in/out scale animations */
@keyframes fadeInScale {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)       scale(1);    }
}
@keyframes fadeOutScale {
  from { opacity: 1; transform: translateY(0)       scale(1);    }
  to   { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* Pop-up base */
.payment-proof-popup {
  position: absolute;        /* JS positions under #logoutBtn */
  width: 220px;              /* small fixed width */
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #333333;
  border: 1px solid #dddddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 0.85rem;
  line-height: 1.4;
  z-index: 10001;
  opacity: 0;
}

/* Show (fade-in + scale) */
.payment-proof-popup.show {
  animation: fadeInScale 0.4s ease-out forwards;
}

/* Hide (fade-out + scale) */
.payment-proof-popup.hide {
  animation: fadeOutScale 0.3s ease-in forwards;
}

.payment-proof-popup .popup-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
