/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

/* =========================
   BODY
========================= */
html,
body {
  max-width: 100vw;
}

body {
  background: #0f172a;
  color: #e5e7eb;
  min-height: 100vh;
  overflow-x: hidden;
  text-align: center; /* 🔥 CENTER EVERYTHING */
}

/* ===== HEADER ===== */
.site-header {
  background: #0b132b;
  padding: 15px 20px;
}

.header-inner {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #fff;
  font-size: 22px;
  white-space: nowrap;
}

/* Nav links */
.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: #cfd3ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #ffc107;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0b132b;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    display: none;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    font-size: 16px;
    padding: 8px 0;
  }
}

/* =========================
   MAIN
========================= */
main {
  max-width: 1200px;
  margin: auto;
  padding: 50px 40px;
}

@media (max-width: 480px) {
  main {
    padding: 1px 1px;
  }
}

/* =========================
   HEADINGS
========================= */
h1,
h2,
h3 {
  color: #f9fafb;
  margin-bottom: 18px;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.6rem;
  margin-top: 40px;
}

p {
  color: #cbd5f5;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* =========================
   BUTTONS
========================= */
button {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #020617;
  border: none;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.4);
}

/* =========================
   FORMS
========================= */
form {
  margin: 3px auto;
  padding: 16px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  text-align: left;
}

form button {
  width: 90%;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: 0.3s ease;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #e5e7eb;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #020617;
  color: #f9fafb;
}

input:focus,
select:focus {
  outline: none;
  border-color: #fbbf24;
}

/* =========================
   CARDS (PACKAGES, DASHBOARD)
========================= */
.card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 26px;
  transition: 0.3s ease;
}

.card:hover {
  border-color: #fbbf24;
  transform: translateY(-5px);
}

.card h3 {
  color: #fbbf24;
  margin-bottom: 10px;
}

/* =========================
   PACKAGE GRID
========================= */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* =========================
   TOASTS
========================= */

.toast-container {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 24px);
  max-width: 420px;
}

.toast {
  width: 100%;
  box-sizing: border-box;
}

.toast-success {
  border-color: #22c55e;
}
.toast-error {
  border-color: #ef4444;
}
.toast-warning {
  border-color: #f59e0b;
}
.toast-info {
  border-color: #3b82f6;
}

.toast-text {
  font-weight: 600;
  color: #f9fafb;
}

.toast.hide {
  opacity: 0;
  transform: translateX(40px);
  transition: 0.4s ease;
}

/* =========================
   LINKS
========================= */
a {
  color: #fbbf24;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.contact-info a {
  text-decoration: none; /* removes underline */
  color: #007bff; /* optional: keeps it link-colored */
}

.contact-info a:hover {
  text-decoration: none; /* prevents underline on hover */
}

/* General toast styling */
.toast {
  display: flex;
  align-items: center;
  background-color: #fbbf24; /* gold background */
  color: #000; /* black text for contrast */
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  font-weight: 600;
  animation: slideIn 0.5s ease forwards;
}

/* Toast icons */
.toast-icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Optional hide animation */
.toast.hide {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s ease;
}

/* Slide-in animation */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Optional: different categories styling overrides */
.toast-success {
  border-left: 4px solid #16a34a; /* green accent */
}
.toast-error {
  border-left: 4px solid #dc2626; /* red accent */
}
.toast-warning {
  border-left: 4px solid #f97316; /* orange accent */
}
.toast-info {
  border-left: 4px solid #3b82f6; /* blue accent */
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal content */
.modal > div {
  border-radius: 16px;
  padding: 20px 20px 30px 20px; /* less top padding */
  width: 350px;
  text-align: center;
  position: relative;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Close button — snug at top-right */
#closeModal {
  position: absolute;
  top: 10px; /* closer to top */
  right: 10px; /* closer to right */
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff; /* dark green */
  font-weight: bold;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 60px 20px 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  text-align: center;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fbbf24;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1d5db;
}

.footer-links h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #fbbf24;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-container {
    gap: 40px;
  }
}

.legal-page {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 25px;
  text-align: center;
}

.legal-page h1 {
  margin-bottom: 25px;
}

.legal-page h3 {
  margin-top: 35px;
  margin-bottom: 10px;
}

.legal-page p,
.legal-page li {
  line-height: 1.8;
  font-size: 1rem;
}

.legal-page ul {
  list-style: none;
  padding: 0;
}

.legal-page ul li::before {
  content: "✔ ";
  color: #fbbf24;
  font-weight: bold;
}

.legal-page a {
  display: inline-block;
  margin-top: 40px;
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  margin: 15px 0;
}

.actions a {
  width: 100%;
}

.actions button {
  width: 90%;
  padding: 10px 4px;
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: #ffc107;
  color: #000;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.actions button:hover {
  background: #ffb300;
  transform: translateY(-1px);
}

/* Extra safety for very small screens */
@media (max-width: 360px) {
  .actions button {
    font-size: 10px;
    padding: 8px 2px;
  }
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

.investments-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: #0c142b;
  border-radius: 10px;
  overflow: hidden;
}

.investments-table th,
.investments-table td {
  padding: 12px 10px;
  text-align: center;
  font-size: 14px;
}

.investments-table th {
  background: #111c3d;
  color: #ffc107;
  text-transform: uppercase;
  font-size: 13px;
}

.investments-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.investments-table tr:hover {
  background: rgba(255, 193, 7, 0.08);
}

/* Status styling */
.status.active {
  color: #00e676;
  font-weight: 600;
}

.status.pending {
  color: #ffc107;
  font-weight: 600;
}

.status.completed {
  color: #03a9f4;
  font-weight: 600;
}

/* QR code responsive */
#qrCode {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* center image */
}

/* Inputs and selects */
input,
select {
  width: 90%;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #020617;
  color: #f9fafb;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  main {
    padding: 24px 12px; /* reduce padding on tiny phones */
  }

  form {
    width: 95%; /* almost full width */
    max-width: 360px;
    padding: 15px;
    box-sizing: border-box;
  }

  button {
    padding: 12px 14px;
    font-size: 14px;
  }

  input,
  select {
    width: 90%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #020617;
    color: #f9fafb;
    box-sizing: border-box;
  }
}
