:root {
    --bg-dark: #050511;
    --bg-card: rgba(20, 20, 35, 0.6);
    --text-main: #ffffff;
    --text-muted: #8F9BB3;
    --accent-blue: #00E0FF;
    --accent-purple: #BD00FF;
    --accent-pink: #FF007A;
    --gradient-main: linear-gradient(135deg, #BD00FF 0%, #00E0FF 100%);
    --gradient-glow: radial-gradient(circle, rgba(189, 0, 255, 0.2) 0%, rgba(5, 5, 17, 0) 70%);
    --font-main: 'Inter', sans-serif;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;

    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Updated Form Styling */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50px !important;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    margin-bottom: 1rem;
}

input:focus {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
}


form label {
    margin-left: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue) !important;
}

/* Select/Dropdown Styling */
select {
    width: 100%;
    padding: 1rem;
    background: rgba(20, 20, 35, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    border-radius: 50px !important;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    margin-bottom: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300E0FF' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.5rem center !important;
    padding-right: 3rem;
}

select:focus {
    border-color: var(--accent-purple);
    background: rgba(20, 20, 35, 0.95) !important;
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
}

select option {
    background: rgba(20, 20, 35, 0.95) !important;
    color: white !important;
    padding: 0.75rem;
}

select option:hover,
select option:checked {
    background: rgba(189, 0, 255, 0.3) !important;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px !important;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    margin-bottom: 1rem;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

textarea:focus {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
}

/* Header - Navigation header only */
body>header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: 0.3s;
    background: transparent;
    /* Initially transparent */
}

body>header.scrolled {
    background: rgba(5, 5, 17, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
}

.logo i {
    color: var(--accent-purple);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a {
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-main);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Added to center content horizontally */
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* Admin Panel Button */
.btn-admin {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.btn-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-admin:hover::before {
    left: 100%;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(189, 0, 255, 0.6), 0 0 30px rgba(0, 224, 255, 0.4);
}

@keyframes pulse-admin {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(189, 0, 255, 0.4), 0 0 10px rgba(0, 224, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(189, 0, 255, 0.6), 0 0 20px rgba(0, 224, 255, 0.5);
    }
}

.btn-admin {
    animation: pulse-admin 2s infinite;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background Glows */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(189, 0, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 224, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(to bottom, #ffffff 0%, #a0a0a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
}

/* Central Box Style */
.hero-box {
    display: inline-block;
    border: 2px solid var(--accent-purple);
    padding: 2rem 4rem;
    border-radius: 20px;
    position: relative;
    background: rgba(10, 10, 24, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(189, 0, 255, 0.2);
    margin: 2rem 0;
}

/* Decor lines for Hero Box */
.hero-box::before,
.hero-box::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent-pink);
    border-radius: 50%;
    background: var(--bg-dark);
    display: none;
    /* Hide dots as they overlap with text tags */
}

.hero-box::before {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-box::after {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-box h2 {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    background: -webkit-linear-gradient(top, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.hero-box .tag-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    padding: 0 1rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
}

.hero-box .tag-bottom {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    padding: 0 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Lookup Input */
.lookup-container {
    margin-top: 3rem;
    position: relative;
    display: inline-block;
    width: 600px;
    max-width: 100%;
}

.lookup-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent-purple);
    border-radius: 50px;
    padding: 0.4rem 0.5rem;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between;
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.2);
    gap: 0.5rem;
    height: 60px;
}

.lookup-box input {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: white;
    padding: 0.5rem 1rem !important;
    font-size: 1rem;
    flex: 1 !important;
    min-width: 0;
    outline: none;
    height: auto !important;
    line-height: 1.5;
    margin: 0 !important;
    width: auto !important;
}

.lookup-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.lookup-box .select-wrapper {
    background: black;
    border-radius: 40px;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    white-space: nowrap;
    height: 48px;
    flex-shrink: 0;
}

.lookup-box .go-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.3s;
}

.lookup-box .go-btn:hover {
    transform: scale(1.05);
}


/* Stats Section */
.stats-section {
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background: rgba(30, 30, 50, 0.4);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: 0.4s;
}

.stat-card:hover {
    background: rgba(30, 30, 50, 0.6);
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-purple);
    border: 1px solid rgba(189, 0, 255, 0.3);
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Broker Slider (Simulated) */
.broker-slider {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    margin: 1rem 0;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 4rem;
    justify-content: center;
    /* Center for now */
    opacity: 0.6;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Section Headings */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--gradient-main);
    bottom: -15px;
    left: 20%;
    border-radius: 2px;
}

/* Process Steps */
.process-section {
    padding: 1rem 0;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.3);
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: #020208;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* Utility */
.text-gradient {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== USER DASHBOARD ==================== */
.user-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem 3rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-section {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

/* Form Control (fix white background) */
.form-control {
    width: 100%;
    padding: 1rem !important;
    background: rgba(20, 20, 35, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 12px !important;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--accent-purple) !important;
    background: rgba(20, 20, 35, 0.8) !important;
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(255, 69, 96, 0.1);
    border: 1px solid rgba(255, 69, 96, 0.3);
    color: #ff4560;
}

.alert-success {
    background: rgba(0, 227, 150, 0.1);
    border: 1px solid rgba(0, 227, 150, 0.3);
    color: #00e396;
}

/* Force select styling - Admin override */
select,
.form-select,
.custom-select,
input[type="select"] {
    background: rgba(20, 20, 35, 0.9) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

select option,
.form-select option,
.custom-select option {
    background: #1a1f3a !important;
    color: white !important;
    padding: 0.75rem !important;
}

select option:checked,
.form-select option:checked {
    background: rgba(189, 0, 255, 0.5) !important;
    color: white !important;
}

/* Fix white text in admin forms */
.admin-content select,
.admin-panel select,
form select {
    background-color: rgba(20, 20, 35, 0.9) !important;
    color: #ffffff !important;
}

.admin-content select option,
.admin-panel select option,
form select option {
    background-color: #1a1f3a !important;
    color: #ffffff !important;
}

/* Table Styles for Dark Theme */
.article-content table,
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    color: white;
    background: transparent !important;
}

.article-content th,
.article-content td,
th,
td {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.article-content th,
th {
    background: rgba(255, 255, 255, 0.05) !important;
    font-weight: 600;
    color: #00E0FF;
    /* Accent Blue */
}

/* Fix for specific AI generated tables having white bg */
.article-content tr,
.article-content td {
    background-color: transparent !important;
}

.article-content tr:nth-child(even),
tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.article-content tr:hover,
tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Blockquote Styles for Dark Theme */
.article-content blockquote {
    background: rgba(255, 255, 255, 0.05) !important;
    border-left: 4px solid #00E0FF;
    /* Accent Blue */
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    color: #e0e0e0 !important;
    font-style: italic;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content blockquote p {
    margin-bottom: 0;
    color: inherit !important;
}

.article-content blockquote strong {
    color: white !important;
}

/* NUCLEAR OPTION: Force transparent background on ALL elements inside article content */
.article-content * {
    background-color: transparent !important;
    text-shadow: none !important;
}

/* Restore background for specific elements that NEED it */
.article-content mark {
    background-color: rgba(255, 255, 0, 0.2) !important;
    color: #fff !important;
}

.article-content code,
.article-content pre {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.article-content blockquote {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.article-content th {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.article-content tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.article-content tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* 3D Floating Coins Styles */
.hero-coin {
    position: absolute;
    top: 35%;
    width: 100px;
    height: 100px;
    z-index: 10;
    pointer-events: none;
    /* Click through */
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 1200px) {
    .hero-coin {
        display: block;
    }
}

.coin-left {
    left: 8%;
    animation: floatLeft 6s ease-in-out infinite;
}

.coin-right {
    right: 8%;
    animation: floatRight 7s ease-in-out infinite;
}

.coin-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Glass Effect Purple (Dollar) */
    background: radial-gradient(circle at 30% 30%, rgba(189, 0, 255, 0.15), rgba(10, 10, 24, 0.8));
    backdrop-filter: blur(5px);
    border: 2px solid rgba(189, 0, 255, 0.4);
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 4px solid rgba(130, 0, 200, 0.8);
    box-shadow:
        0 0 40px rgba(189, 0, 255, 0.25),
        inset 0 0 20px rgba(189, 0, 255, 0.2);

    display: flex;
    align-items: center;
    justify-content: center;

    transform: perspective(600px) rotateY(25deg);
}

.coin-right .coin-inner {
    /* Glass Effect Blue (Bitcoin) */
    background: radial-gradient(circle at 30% 30%, rgba(0, 224, 255, 0.15), rgba(10, 10, 24, 0.8));
    border-color: rgba(0, 224, 255, 0.4);
    border-top-color: rgba(255, 255, 255, 0.6);
    border-bottom-color: rgba(0, 150, 200, 0.8);
    box-shadow:
        0 0 40px rgba(0, 224, 255, 0.25),
        inset 0 0 20px rgba(0, 224, 255, 0.2);

    transform: perspective(600px) rotateY(-25deg);
}

.hero-coin i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes floatLeft {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(5deg);
    }
}

@keyframes floatRight {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-35px) rotate(-5deg);
    }
}