/* RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

input,
select,
textarea {
    font-size: 16px;
}

:root {
    /* Modern Glossy Theme */
    --bg-grad: radial-gradient(circle at top right, #1a2a3a, #0a0e14);
    --glass-bg: rgba(21, 29, 38, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --gold: #d4af37;
    --gold-light: #f1c40f;
    --text: #ffffff;
    --blue-accent: #2e89ff;
    --blue-mid: #151d26;
    --blue-glow: rgba(30, 58, 95, 0.4);
    --muted: #8b99a6;
    /* Background Base Color (Deepest Blue) */
/* ... keep your existing gold/glass variables ... */
    --bg-deep: #000000;
    --dot-color: rgba(255, 255, 255, 0.2); /* White dots with low opacity */
}

body {
    /* Layer 1: Base Dark Blue */
    background-color: var(--bg-deep);
    
    /* Layer 2: The Dot Pattern (CSS-only) */
    background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
    background-size: 30px 30px; /* Adjust this to change spacing */
    
    /* Layer 3: Subtle Wave Animation */
    animation: waveShift 40s linear infinite;
    
    background-attachment: fixed;
    color: var(--text);
    padding-bottom: 90px;
}

/* The Animation Keyframes */
@keyframes waveShift {
    0% { background-position: 0 0; }
    100% { background-position: 600px 600px; }
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(15, 21, 28, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
}

.logo i { color: var(--gold); }

.walletBtn {
    border: none;
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: #000;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.walletBtn:hover { transform: translateY(-2px); }

/* CARDS & GLASS ELEMENTS */
.card, .info div, .modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: 0.3s;
    margin: 20px;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
}

.card h2 { color: var(--gold); text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }

/* PROGRESS BAR */
.progress {
    height: 14px;
    background: rgba(0,0,0,0.3);
    border-radius: 30px;
    overflow: hidden;
    margin: 20px 0;
}

.progressFill {
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 30px;
}

/* BUTTONS */
.card button, .actionBtn {
    width: 100%;
    margin-top: 20px;
    border: none;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover, .actionBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* FLOATING BOTTOM NAV */
.bottomNav {
    /* Positioning & Layout */
    position: fixed;
    bottom: 20px;            /* Distance from the bottom */
    left: 20px;              /* Distance from left */
    right: 20px;             /* Distance from right */
    margin: 0 auto;          /* Center it */
    max-width: 450px;        /* Limits width on large screens */
    height: 70px;
    
    /* Styling */
    background: rgba(15, 21, 28, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 35px;     /* Pill shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    
    /* Internal Items */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    z-index: 1000;
    padding: 0 10px;
}

/* Ensure buttons look clean inside the pill */
.bottomNav button {
    border: none;
    background: none;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.bottomNav button:hover, .bottomNav button.active {
    color: var(--gold);
}
.bottomNav i { color: var(--gold); }

/* INPUTS */
.modal input, .modal select, .referralBox input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: white;
    margin-bottom: 10px;
}

/* MODAL OVERLAY */
.modal {
    position: fixed;
    inset: 0;
    display: none; /* Default hidden */
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

small{
    color: var(--blue-accent);
    font-weight: 500;
}
.blue{
    color: var(--blue-accent);
}

.modal.active {
    display: flex !important;
}

/* MODAL CONTENT */
.modal-content {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

/* MODAL HEADER & CLOSE BUTTON */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: var(--gold);
    margin: 0;
}

.close {
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.close:hover {
    background: var(--gold);
    color: #000;
    transform: rotate(90deg);
}

/* SUMMARY BOXES (Glossy Style) */
.summary {
    display: grid;
    gap: 12px;
}

.summary div {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary h2, .summary h3 {
    margin-top: 4px;
    color: var(--text);
}

.summary small {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Hero Section Container */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 20px;
    text-align: center;
    min-height: 50vh; /* Ensures a prominent look */
}

.hero-content {
    max-width: 700px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: var(--glass-shadow);
}

/* Badge Style (Gold theme) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Typography */
.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Features List */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--text);
    font-size: 0.95rem;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-features i {
    color: var(--gold);
}

.nav-icon {
    font-size: large;
}

#toast{
    position:fixed;
    top:80px;
    right:20px;
    min-width:280px;
    max-width:380px;
    padding:16px 20px;
    border-radius:12px;
    background:#161b22;
    color:#fff;
    font-size:15px;
    font-weight:500;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    transform:translateX(450px);
    opacity:0;
    transition:.35s;
    z-index:99999;
    border-left:5px solid #3b82f6;
}

#toast.show{
    transform:translateX(0);
    opacity:1;
}

#toast.success{
    border-color:#22c55e;
}

#toast.error{
    border-color:#ef4444;
}

#toast.info{
    border-color:#3b82f6;
}

#loader{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(4px);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
    opacity:0;
    visibility:hidden;
    transition:.3s;
}

#loader.show{
    opacity:1;
    visibility:visible;
}

.loader-box{
    background:#121212;
    padding:30px;
    border-radius:16px;
    text-align:center;
    min-width:240px;
    color:#fff;
}

.spinner{
    width:55px;
    height:55px;
    margin:0 auto 18px;
    border:5px solid rgba(255,255,255,.15);
    border-top:5px solid #3ddc84;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .hero-content { padding: 30px 20px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-features { flex-direction: column; gap: 15px; }
}

/* RESPONSIVE */
@media(max-width:768px) {
    .dashboard, .info { grid-template-columns: 1fr; }
    .logo span { display: none; }
}

@media(min-width:900px) {
    .bottomNav {
        width: 420px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        border-radius: 24px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    }
}

.mt-1{
    margin-top: 0px;
}

.styled-table {
  width: 80%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 13px;
  text-align: left;
}

.styled-table th,
.styled-table td {
  border: 1px solid #dddddd;
  padding: 1px 3px;
}

.styled-table th {
  background-color: var(--blue-mid);
  color: #e2e2e2;
  font-weight: bold;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.styled-table {
    width: 100%;
    min-width: 600px; /* Adjust depending on your columns */
    border-collapse: collapse;
}
