:root {
    /* Color Palette */
    --bg-dark: #1A1A1A;
    --text-dark: #FFFFFF;
    --primary: #F3BA2F;
    /* BNB Gold */
    --primary-hover: #D4A017;
    --secondary: #2C2C2C;
    /* Darker card bg */
    --accent: #00D1B2;
    /* Success/Action */

    /* Force Dark Theme */
    --bg-body: var(--bg-dark);
    --bg-card: var(--secondary);
    --text-main: var(--text-dark);
    --border-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    /* Ensure footer pushes down */
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #FFF;
    border: 1px solid var(--border-color);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Ad Placements */
.ad-slot {
    margin: 20px auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #555;
    font-size: 0.8rem;
}

/* Default hidden */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block !important;
}

/* Responsive Ads Logic */
@media (min-width: 1024px) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .ad-leaderboard {
        width: 728px;
        height: 90px;
    }

    .ad-skyscraper {
        width: 120px;
        height: 600px;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
    }

    .ad-left {
        left: 10px;
    }

    .ad-right {
        right: 10px;
    }
}

@media (max-width: 1023px) {
    .ad-mobile-banner {
        width: 320px;
        height: 100px;
    }
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.input-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Custom Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Referral & Copy */
.copy-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    padding: 10px;
    border-radius: 8px;
    max-width: 500px;
    margin: 10px auto;
    border: 1px solid var(--border-color);
}

.input-group input {
    color: var(--text-main) !important;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

table th,
table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

table th {
    color: var(--primary);
}

.amount-text {
    font-weight: bold;
    color: var(--primary);
}

/* Table Card Override */
.table-card {
    max-width: 800px !important;
    margin: 20px auto !important;
}

/* Removed Light Theme Block */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #FFF;
    border: 1px solid var(--border-color);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

/* Ad Placements */
.ad-slot {
    margin: 20px auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Default hidden */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block !important;
}

/* Responsive Ads Logic */
@media (min-width: 1024px) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .ad-leaderboard {
        width: 728px;
        height: 90px;
    }

    .ad-skyscraper {
        width: 120px;
        height: 600px;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
    }

    .ad-left {
        left: 10px;
    }

    .ad-right {
        right: 10px;
    }
}

@media (max-width: 1023px) {
    .ad-mobile-banner {
        width: 320px;
        height: 100px;
    }
}

.ad-rect {
    width: 300px;
    height: 250px;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.input-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
}

.card {
    background: var(--bg-card);
    /* Force Dark Theme */
    --bg-body: var(--bg-dark);
    --bg-card: var(--secondary);
    --text-main: var(--text-dark);
    --border-color: #333;
}

/* Removed Light Theme Block */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #FFF;
    border: 1px solid var(--border-color);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

/* Ad Placements */
.ad-slot {
    margin: 20px auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Default hidden */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block !important;
}

/* Responsive Ads Logic */
@media (min-width: 1024px) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .ad-leaderboard {
        width: 728px;
        height: 90px;
    }

    .ad-skyscraper {
        width: 120px;
        height: 600px;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
    }

    .ad-left {
        left: 10px;
    }

    .ad-right {
        right: 10px;
    }
}

@media (max-width: 1023px) {
    .ad-mobile-banner {
        width: 320px;
        height: 100px;
    }
}

.ad-rect {
    width: 300px;
    height: 250px;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.input-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.card:hover {
    border-color: #444;
}

/* Custom Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Copy Button */
.copy-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

/* Input group */
.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    padding: 10px;
    border-radius: 8px;
    max-width: 500px;
    margin: 10px auto;
}