:root {
    --primary: #10b981;
    --primary-dark: #064e3b;
    --secondary: #fbbf24;
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

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

.nav-links a:hover {
    color: var(--primary);
}

.cta-btn {
    background: var(--primary);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.hero-image-bg {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 80%;
    z-index: 1;
    border-radius: 40px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
}

.hero-image-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-dark) 5%, transparent 40%);
}

/* Cards & Sections */
.section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-dim);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 24px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-dim);
}

/* Investment Tiers */
.tier-card {
    border: 2px solid var(--border);
    text-align: center;
}

.tier-card.featured {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--primary);
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

input, textarea, select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 1.5rem;
    outline: none;
}

select option {
    background: #121212;
    color: #fff;
}

/* ==========================================================================
   Investor Portal & Dashboard Styling
   ========================================================================== */

/* Login/Registration Styling */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 5% 60px;
    background-color: #050505;
    background: radial-gradient(circle at 10% 20%, #062219 0%, #050505 90%);
}

.auth-card {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}


.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    color: var(--text-dim);
    font-weight: 600;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Dashboard Layout */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    padding-top: 80px;
}

.db-sidebar {
    background: #080808;
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.db-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.db-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #064e3b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
}

.db-user-details h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

.db-user-details p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.db-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.db-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    color: var(--text-dim);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.db-nav-link:hover, .db-nav-link.active {
    color: #fff;
    background: rgba(16, 185, 129, 0.08);
}

.db-nav-link.active {
    border-left: 3px solid var(--primary);
}

.db-content {
    padding: 3rem;
    background: #050505;
    overflow-y: auto;
}

.db-section {
    display: none;
    animation: db-fadeIn 0.4s ease-in-out forwards;
}

.db-section.active {
    display: block;
}

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

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-3px);
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.stat-value.primary {
    color: var(--primary);
}

/* Chart visualization */
.chart-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 24px;
    margin-bottom: 3rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Crypto Invoice Modal */
.crypto-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    overflow-y: auto;
    padding: 2.5rem 1rem;
}

.crypto-modal.active {
    opacity: 1;
    pointer-events: all;
}

.crypto-card {
    background: #0c0c0c;
    border: 1px solid var(--border);
    padding: 2rem 2rem 2.2rem;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    margin: auto;
}

.crypto-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
}

.crypto-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d2ff 0%, #00d15b 100%);
    color: #000;
    font-weight: 900;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.crypto-qr {
    background: #fff;
    width: 150px;
    height: 150px;
    margin: 1.2rem auto;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crypto-address-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1.2rem;
}

.crypto-address {
    font-family: monospace;
    font-size: 0.85rem;
    color: #cbd5e1;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.crypto-copy-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
}

/* Custom Circular Loader */
.verify-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 2rem;
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(16, 185, 129, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: db-spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes db-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Payment Success Screen */
.success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 50%;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: db-scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes db-scaleUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding-top: 75px;
    }
    .db-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.8rem 1rem;
        gap: 1rem;
        position: sticky;
        top: 75px;
        z-index: 100;
        background: rgba(8, 8, 8, 0.95);
        backdrop-filter: blur(15px);
        scrollbar-width: none;
    }
    .db-sidebar::-webkit-scrollbar {
        display: none;
    }
    .db-user-info {
        display: none;
    }
    .db-nav {
        flex-direction: row;
        gap: 0.5rem;
        flex: auto;
        overflow-x: auto;
    }
    .db-nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .db-nav-link.active {
        border-left: none;
        border-bottom: 3px solid var(--primary);
    }
    .db-content {
        padding: 1.5rem 1rem;
    }
    .stats-grid {
        gap: 1rem;
        margin-bottom: 2rem;
    }
}



input:focus, textarea:focus {
    border-color: var(--primary);
}

button.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

button.submit-btn:hover {
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Footer */
footer {
    padding: 80px 10%;
    background: #000;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: none;
}

.footer-col .logo {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #222;
    color: var(--text-dim);
    font-size: 0.75rem;
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
        height: auto;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image-bg {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 300px;
        margin-top: 2rem;
    }

    .hero-image-bg::after {
        background: linear-gradient(to top, var(--bg-dark) 5%, transparent 40%);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.6rem 1rem;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
        position: fixed;
        height: auto;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 30px !important;
        width: 30px !important;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1.2rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.2rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .section {
        padding: 60px 5%;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 1s forwards;
}

/* Why Ethanol Demand Section Styling */
.demand-section {
    position: relative;
    z-index: 10;
}

.demand-subtitle {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 1.15rem;
    line-height: 1.8;
}

.demand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.demand-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.demand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.demand-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(16, 185, 129, 0.1);
}

.demand-card:hover::before {
    opacity: 1;
}

.demand-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.2));
}

.demand-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
}

.demand-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Future & Mission Grid */
.future-mission-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.future-growth-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 24px;
}

.future-growth-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.opportunity-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.opportunity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s;
}

.opportunity-item:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(5px);
}

.opportunity-bullet {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.mission-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 78, 59, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(120px);
    top: -50px;
    right: -50px;
    opacity: 0.15;
    pointer-events: none;
}

.mission-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
}

.mission-card p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
}

@media (max-width: 992px) {
    .future-mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .opportunity-list {
        grid-template-columns: 1fr;
    }
}

.demand-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: block;
}

.demand-card:hover .demand-card-img {
    transform: scale(1.02);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Layout classes to replace inline grids */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-split-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: start;
}

.gap-sm {
    gap: 1rem;
}

.gap-lg {
    gap: 4rem;
}

.m-bottom-sm {
    margin-bottom: 1rem;
}

.m-bottom-md {
    margin-bottom: 2rem;
}

.w-full {
    width: 100%;
}

.d-block {
    display: block;
}

.f-column {
    flex-direction: column;
}

@media (max-width: 992px) {
    .grid-split-main {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

.col-span-2 {
    grid-column: span 2;
}

@media (max-width: 992px) {
    .col-span-2 {
        grid-column: span 1 !important;
    }
}

@media (max-width: 576px) {
    .auth-card, .form-container {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    .crypto-card {
        padding: 1.5rem 1rem !important;
    }
}

/* Responsive Heading Utilities to prevent mobile overflows */
.heading-xl {
    font-size: 3.5rem !important;
    line-height: 1.2 !important;
}

.heading-lg {
    font-size: 3rem !important;
    line-height: 1.2 !important;
}

@media (max-width: 992px) {
    .heading-xl {
        font-size: 2.5rem !important;
    }
    .heading-lg {
        font-size: 2.1rem !important;
    }
}

@media (max-width: 576px) {
    .heading-xl {
        font-size: 1.85rem !important;
    }
    .heading-lg {
        font-size: 1.65rem !important;
    }
}
