/* style.css - Premium Glassmorphism Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@700&display=swap');

:root {
  --bg-main: #050505;
  --bg-card: rgba(15, 15, 15, 0.65);
  --bg-card-hover: rgba(25, 25, 25, 0.85);
  
  --text-color: #ffffff;
  --text-muted: #a0a0a0;
  
  --accent-green: #10b981;
  --accent-gold: #f5a623;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  
  --primary-color: #ef4444;
  --primary-hover: #dc2626;

  --glass-bg: rgba(15, 15, 15, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --gradient-primary: linear-gradient(135deg, #ef4444, #f5a623);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 15% 50%, rgba(239, 68, 68, 0.1), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(245, 166, 35, 0.1), transparent 25%);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-btn:hover, .nav-btn.active {
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

/* User Profile Header */
.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 5px 15px 5px 5px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.user-info-header {
  display: flex;
  flex-direction: column;
}

.user-name-header { font-size: 0.85rem; font-weight: 600; }
.user-balance-header { font-size: 0.75rem; color: var(--accent-green); }

/* Main Content */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
  width: 100%;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards (Glassmorphism) */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active { opacity: 1; }

.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--glass-shadow);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content { transform: scale(1); }

/* Inputs */
.input-group { margin-bottom: 1rem; }
.input-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem;}
.input-group input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  color: white;
  outline: none;
}
.input-group input:focus { border-color: var(--accent-blue); }

/* Toasts */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  animation: slideIn 0.3s ease forwards;
  transition: all 0.3s ease;
}

.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid var(--accent-red); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* Dropdown Menu */
.user-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--glass-bg);
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 8px 0;
  animation: slideDown 0.2s ease-out;
}

.user-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-item {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--glass-border);
  margin: 4px 0;
}

.dropdown-header {
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* Old Site Hero Stats & Layout */
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 40px; animation: fadeInUp .8s ease 1s backwards; }
.hero-stat { text-align: center; }
.hero-stat .stat-value { font-family: "Outfit", sans-serif; font-size: 2rem; font-weight: 800; }
.hero-stat .stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Info Cards Grid (Hero Bottom) */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.info-card { background: rgba(20, 22, 38, 0.6); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 28px 24px; text-align: center; backdrop-filter: blur(16px); transition: all 0.3s; }
.info-card:hover { transform: translateY(-6px); border-color: rgba(239,68,68,0.4); box-shadow: 0 10px 40px rgba(239,68,68,0.15); }
.info-card .ic-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h4 { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.info-card p { color: var(--text-muted); font-size: .85rem; line-height: 1.5; }

.hero-leaderboard {
  position: absolute; top: 50%; transform: translateY(-50%); width: 350px; background: rgba(20, 22, 38, 0.6); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 20px; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px); z-index: 10;
}
.hero-left-leaderboard { left: 5%; }
.hero-right-leaderboard { right: 5%; }

@media (max-width: 1200px) {
  .hero-leaderboard { position: relative; width: 100%; top: auto; left: auto; right: auto; transform: none; margin-top: 20px; }
}
@media (max-width: 768px) {
  .info-cards { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
}


/* ========== FOOTER ========== */
.footer { background: var(--bg-main); border-top: 1px solid var(--glass-border); padding: 80px 0 30px; position: relative; overflow: hidden; margin-top: 40px; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-red), transparent); opacity: 0.5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand { max-width: 320px; }
.footer-brand .logo { margin-bottom: 20px; font-size: 1.5rem; font-weight: bold; color: white; }
.footer-brand p { color: var(--text-muted); font-size: .95rem; line-height: 1.8; margin-bottom: 24px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a, .footer-contact span { color: var(--text-muted); font-size: .9rem; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.footer-col h4 { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; font-weight: 800; margin-bottom: 24px; color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; }
.footer-col ul li a { color: var(--text-muted); font-size: .95rem; transition: all 0.2s; display: flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.footer-col ul li a:hover { color: var(--accent-red); transform: translateX(6px); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: all 0.3s; text-decoration: none;}
.footer-social a:hover { background: var(--accent-red); border-color: var(--accent-red); transform: translateY(-4px); color: #fff; box-shadow: 0 6px 20px rgba(239,68,68,0.4); }
.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: var(--text-muted); font-size: .85rem; }

@media(max-width:1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ========== DONATORS LEADERBOARD ========== */
.donator-item { display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 8px; background: var(--bg-card); align-items: center; font-weight: 600; font-family: "Space Grotesk", sans-serif; transition: all 0.3s; margin-bottom: 8px; }
.donator-1 { border: 2px solid #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); background: linear-gradient(45deg, rgba(255, 215, 0, 0.15), rgba(0,0,0,0.4)); color: #ffd700; font-size: 1.1rem; text-shadow: 0 0 5px rgba(255,215,0,0.5); }
.donator-2 { border: 2px solid #e0e0e0; box-shadow: 0 0 10px rgba(224, 224, 224, 0.3); background: linear-gradient(45deg, rgba(224, 224, 224, 0.1), rgba(0,0,0,0.4)); color: #e0e0e0; }
.donator-3 { border: 2px solid #cd7f32; box-shadow: 0 0 8px rgba(205, 127, 50, 0.2); background: linear-gradient(45deg, rgba(205, 127, 50, 0.1), rgba(0,0,0,0.4)); color: #cd7f32; }
.donator-4, .donator-5 { border: 1px solid var(--glass-border); color: var(--text-color); }
