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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #ffffff;
    background-color: #050a10;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(0, 10, 20, 0.45); /* more transparent */
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon svg {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.logo-text {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.92); /* slightly transparent */
    text-transform: uppercase;
}

/* Make major headings slightly less opaque */
.main-heading,
.team-welcome,
.form-title,
.modal-title {
    color: rgba(255,255,255,0.92);
    filter: brightness(0.96);
}

.team-subtitle,
.backers-title {
    filter: brightness(0.94);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.25s ease;
    position: relative; /* required for underline pseudo */
    padding-bottom: 6px; /* space for underline */
}

/* Underline indicator (desktop only) */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    bottom: -8px;
    width: 140%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffe599, #d4af37, #a88318, transparent);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(212,175,55,0.35);
    transition: transform 0.28s ease;
}

/* Hover and active states */
.nav-links a:hover,
.nav-links a:focus {
    color: #d4af37;
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hide underline on small screens where menu becomes sidebar */
@media (max-width: 768px) {
    .nav-links a::after { display: none; }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    background-image: url('images/background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 50px 50px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 10, 20, 0.2);
    background: radial-gradient(circle at center, rgba(0, 10, 20, 0.1) 0%, rgba(0, 10, 20, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    display: flex;
    gap: 60px;
    align-items: center;
}

/* Hero Content */
.hero-content {
    flex: 1;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(2, 11, 31, 0.85) 0%, rgba(2, 11, 31, 0.7) 40%, rgba(2, 11, 31, 0) 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

.welcome-text {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #eeeeee;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: 'Roboto Condensed', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.welcome-text::before,
.welcome-text::after {
    content: '';
    display: block;
    height: 1px;
    width: 60px;
    background: #666666;
    box-shadow: none;
}

.main-heading {
    color: rgba(255, 255, 255, 0.85);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    padding-bottom: 25px; /* Added padding for space */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Oswald', 'Impact', sans-serif;
    text-shadow: 0 4px 8px #000000;
    position: relative; /* For pseudo-element support */
}


.page-container .main-heading::before,
.term-section .main-heading::before,
.contact-section .main-heading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 300%;
    background: radial-gradient(ellipse at center, rgba(2, 11, 31, 0.95) 0%, rgba(2, 11, 31, 0.8) 40%, rgba(2, 11, 31, 0) 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

.main-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffe599, #d4af37, #a88318, transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.highlight {
    background: linear-gradient(to bottom, #ffe599 0%, #d4af37 30%, #ffd700 60%, #ffe599 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    text-shadow: none; /* Removed glow to be sharper */
    filter: drop-shadow(0 2px 0px rgba(0,0,0,0.3));
}

.where-highlight {
    font-style: italic;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #d4af37;
    text-underline-offset: 5px;
    text-decoration-style: solid; 
    /* Adding a glow to the underline if possible, or just keeping it simple first */
}

.description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.description p {
    margin-bottom: 20px;
}

.not-public {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 4px #000000;
}

.gateway-text,
.not-public,
.conviction-text,
.circle-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 19px;
    line-height: 1.8;
    font-weight: 700; /* Made heavier matching image */
    font-family: 'Roboto', sans-serif; /* Ensuring condensed look */
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* Adding shadow for better readability */
}

.conviction-text {
    position: relative;
    padding-top: 25px;
    margin-top: 25px !important; /* Ensure spacing overrides other margins */
}

.conviction-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffe599, #d4af37, #a88318, transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.circle-text {
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 25px !important;
}

.circle-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffe599, #d4af37, #a88318, transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.learn-more-btn {
    background: linear-gradient(to bottom, #d4af37 0%, #fcf6ba 50%, #b38728 51%, #aa771c 100%);
    color: #000000;
    border: 1px solid #7c5912;
    padding: 18px 50px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.learn-more-btn::after {
    /* Removed the previous shiny sweep for a more static cylinder look or simple hover */
    content: none; 
}

.learn-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
    filter: brightness(1.1);
}

/* Signup Form */
.signup-form {
    background: rgba(0, 5, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px; /* Sharper corners */
    padding: 30px;
    width: 380px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.form-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(to bottom, #d4af37 0%, #fcf6ba 50%, #b38728 51%, #aa771c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    text-shadow: none;
    letter-spacing: 1px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.form-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
    color: #ffffff;
    text-align: center;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.signup-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}

.signup-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.signup-form input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
}

.apply-btn {
    width: 100%;
    background: linear-gradient(to bottom, #d4af37 0%, #fcf6ba 50%, #b38728 51%, #aa771c 100%);
    color: #000000;
    border: 1px solid #7c5912;
    padding: 18px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
    filter: brightness(1.1);
}

/* Hexagon Decorations */
.hex-decoration-left,
.hex-decoration-right {
    position: absolute;
    z-index: 2;
}

.hex-decoration-left {
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hex-decoration-right {
    right: 50px;
    top: 30%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hex {
    position: relative;
    filter: drop-shadow(0 0 5px currentColor);
    animation: float 6s ease-in-out infinite;
    background: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Creating outline hexagons using CSS clip-path is tricky for outlines only. 
   Using an SVG background is easier or a ::before/::after hack. 
   Let's use a simpler approach for visual similarity: solid translucent fill with border (if clip-path supports it, which it doesn't easily).
   
   Better approach: Use SVG in HTML or pseudo element with SVG bg. 
   For now, we'll use a border hack with clip-path (which clips the border).
   
   Actually, easiest way to get an outline hexagon in CSS is two stacked elements or an SVG image.
   Since I cannot upload images easily, I will use a generated SVG background.
*/

.hex {
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 100 100' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L93.3 25 L93.3 75 L50 100 L6.7 75 L6.7 25 Z' fill='rgba(0,0,0,0.2)' stroke='currentColor' stroke-width='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hex::before {
    display: none; /* Remove old solid fill */
}

.hex-small {
    width: 40px;
    height: 40px;
}

.hex-medium {
    width: 60px;
    height: 60px;
}

.hex-large {
    width: 80px;
    height: 80px;
}

.hex-blue {
    color: #4a90e2;
}

.hex-gold {
    color: #d4af37;
}

.hex:nth-child(1) {
    animation-delay: 0s;
}

.hex:nth-child(2) {
    animation-delay: 0.5s;
}

.hex:nth-child(3) {
    animation-delay: 1s;
}

.hex:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
    75% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Dotted Lines Background Effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 75px 75px;
    background-position: 0 0, 25px 25px;
    z-index: 1;
    pointer-events: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        flex-direction: column;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        display: flex; /* Establish flex context for content */
        flex-direction: column;
        align-items: center; /* Center children including .welcome-text */
    }
    
    .description {
        margin-left: auto;
        margin-right: auto;
        max-width: 800px;
    }

    .signup-form {
        width: 100%;
        max-width: 450px;
    }

    .hex-decoration-left,
    .hex-decoration-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 70px; /* Adjust based on navbar height */
        height: calc(100vh - 70px);
        background: url('images/sidebar_bg.jpeg'); /* Updated background */
        background-size: cover;
        background-position: center;
        flex-direction: column;
        align-items: center;
        width: 100%; /* Full width or 50% */
        max-width: 100vw;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 50px;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
    }
    
    .nav-links.active li {
        opacity: 1;
        transition: opacity 0.5s ease 0.3s;
    }

    .hero {
        padding: 100px 20px 50px;
        overflow-x: hidden;
    }

    .main-heading {
        font-size: 28px;
    }

    .welcome-text {
        font-size: 20px;
        flex-wrap: wrap; /* Allow wrapping on small screens */
    }
    
    /* Adjust separator lines for mobile */
    .welcome-text::before,
    .welcome-text::after {
        width: 30px; 
    }

    .description {
        font-size: 14px;
    }

    .signup-form {
        padding: 30px 20px;
    }
}

/* Team Section */
.team-section {
    padding: 80px 50px;
    position: relative;
}

.team-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}

.team-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(2, 11, 31, 0.85) 0%, rgba(2, 11, 31, 0.7) 40%, rgba(2, 11, 31, 0) 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

.team-welcome {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 34px;
     color: #d4af37;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.team-welcome-sep {
    width: 220px;
    height: 3px;
    margin: 10px auto 30px auto;
    background: linear-gradient(90deg, transparent, #ffe599, #d4af37, #a88318, transparent);
    box-shadow: 0 0 10px rgba(212,175,55,0.35);
}

.team-subtitle {
    font-size: 25px;
    color: #d4af37;
    margin-bottom: 30px;
    font-family: 'Roboto Condensed', sans-serif;
    position: relative;
    display: inline-block;
}

.team-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffe599, #d4af37, #a88318, transparent);
}

.team-about {
    max-width: 900px;
    margin: 8px auto 18px auto;
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.backers-title {
    color: #d4af37;
    font-size: 25px;
    margin: 40px 0 20px 0;
    position: relative;
    font-family: 'Roboto Condensed', sans-serif;
}

.backers-title::before,
.backers-title::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    width: 28%;
    background: linear-gradient(90deg, transparent, #ffe599, #d4af37, transparent);
    transform: translateY(-50%);
}

.backers-title::before { left: 0; }
.backers-title::after { right: 0; }

.team-card:hover {
    transform: translateY(-6px);
    transition: transform 0.25s ease;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    align-items: start;
    justify-items: center;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.team-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: #d4af37;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.x-icon-link {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.x-icon-link:hover {
    opacity: 0.8;
}

.x-icon-link svg {
    fill: #d4af37;
    width: 12px;
    height: 12px;
}

.team-avatar-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    border-radius: 8px; /* Match avatar radius */
}

.team-avatar-link:hover {
    transform: translateY(-3px);
}

.team-handle {
    font-size: 12px;
    color: rgba(212,212,212,0.8);
}

/* More Card Styling */
.more-card {
    position: relative;
    cursor: default;
}

.more-card:hover {
    transform: none;
}

.more-avatar {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 3px solid rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
}

.more-card:hover .more-avatar {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.more-count {
    font-size: 32px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
}

.more-text {
    font-size: 16px;
    color: rgba(212, 175, 55, 0.9);
    margin-top: 4px;
}

@media (max-width: 1200px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .team-section { padding: 60px 20px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .team-avatar { width: 70px; height: 70px; }
    .more-avatar { width: 70px; height: 70px; }
    .more-count { font-size: 24px; }
    .more-text { font-size: 14px; }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.3); /* Increased transparency even more */
    backdrop-filter: blur(3px); /* Slightly reduced blur */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: radial-gradient(circle at center, rgba(42, 42, 42, 0.8) 0%, rgba(10, 10, 10, 0.85) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    width: 90%;
    max-width: 650px;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), inset 0 0 100px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.modal-glow-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, #ffe599, #d4af37, transparent);
    box-shadow: 0 0 15px #d4af37;
}

.close-modal {
    color: #aaaaaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #d4af37;
    text-shadow: 0 0 10px #d4af37;
}

.modal-title {
    font-family: 'Roboto Condensed', sans-serif;
    color: #d4af37;
    background: linear-gradient(to bottom, #d4af37 0%, #ffe599 50%, #b38728 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    font-size: 32px;
    margin-bottom: 25px;
    text-transform: capitalize; 
    letter-spacing: 0.5px;
    font-weight: 700;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.modal-copy {
    font-family: 'Roboto', sans-serif;
    color: #e6e6e6; /* Lighter text color */
    font-size: 15px; /* Slightly adjusted size */
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #dddddd;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.modal input,
.modal select,
.modal textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
}

.modal input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: auto;
    width: auto;
    padding: 0;
    margin-right: 5px;
    height: auto;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: 'v'; 
    font-size: 10px;
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) scaleX(1.5) scaleY(0.8);
    pointer-events: none;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.request-access-btn {
    width: 100%;
    background: linear-gradient(to bottom, #d4af37 0%, #fcf6ba 50%, #b38728 51%, #aa771c 100%);
    color: #000000;
    border: 1px solid #7c5912;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.request-access-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
    filter: brightness(1.1);
}

/* Payment method buttons */
.payment-methods {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.payment-btn {
    background: rgba(255,255,255,0.03);
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
}

.payment-btn.active {
    background: linear-gradient(to bottom, #d4af37 0%, #fcf6ba 50%, #b38728 100%);
    color: #000;
    border-color: #7c5912;
    box-shadow: 0 6px 18px rgba(212,175,55,0.25);
}

.wallet-address {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wallet-address input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px 12px;
    border-radius: 4px;
    color: #fff;
}

.copy-address {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.copy-address:hover {
    background: rgba(255,255,255,0.06);
}

/* Dashboard Styles */
.dashboard-hero {
    min-height: 100vh;
    padding: 120px 0 60px;
    background-image: url('images/background.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
    background-color: #050a10; /* Dark fallback */
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.highlight-gold {
    color: #ffd700;
    font-weight: 500;
}

.dashboard-subtitle {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Dashboard Panels */
.dashboard-panel {
    background: linear-gradient(180deg, rgba(30, 25, 10, 0.9) 0%, rgba(10, 5, 0, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    padding: 25px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
    position: relative;
    margin-bottom: 20px;
}

/* Balance Row */
.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.15);
    margin: 0 -25px 20px -25px; /* Full width negative margin */
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.deals-row .section-title {
    margin-bottom: 15px;
}

/* Balance Section (Deprecated, styles moved to dashboard-panel) */

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.balance-actions {
    display: flex;
    gap: 10px;
}

.balance-btn {
    padding: 8px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deposit-btn {
    background: linear-gradient(135deg, #fff 0%, #ffd700 40%, #bf953f 100%);
    color: #1a1a1a;
    border: 1px solid #aa771c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.deposit-btn:hover {
    filter: brightness(1.1);
}

.withdraw-btn {
    background: rgba(30, 30, 30, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.withdraw-btn:hover {
    background: rgba(50, 50, 50, 0.8);
}

/* Deals Section */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.deal-card {
    background: rgba(0,0,0,0.4); /* Darker inner card */
    border: 1px solid rgba(255,255,255,0.08); /* Subtle border */
    border-radius: 4px;
    padding: 15px;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.deal-name {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.deal-metrics {
    display: flex;
    justify-content: flex-start; /* items next to each other */
    align-items: center;
    gap: 15px; /* space between % and button */
    margin-bottom: 5px;
}

.deal-return {
    font-family: 'Oswald', sans-serif;
    font-size: 38px; /* Slightly larger */
    font-weight: 700;
    color: #d4af37;
    background: linear-gradient(135deg, #fff 0%, #ffd700 40%, #bf953f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.deal-btn {
    padding: 2px 10px;
    background: linear-gradient(135deg, #fff 0%, #ffd700 40%, #bf953f 100%);
    color: #1a1a1a;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid #aa771c;
    border-radius: 2px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.deal-btn:hover {
    padding: 2px 10px; /* Prevent jump on hover */
    filter: brightness(1.15);
}

.deal-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Ended Deals Section */
.ended-deal-inner {
    background: rgba(0,0,0,0.4); /* Dark inner card */
    border: 1px solid rgba(255,255,255,0.08); 
    border-radius: 4px;
    padding: 20px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.ended-deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.ended-deal-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    margin-bottom: 5px;
}

.ended-deal-return {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff 0%, #f6e6b4 30%, #d4af37 60%, #aa771c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-block;
}

.ended-deal-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: inline-block;
    margin-left: 10px;
}

.completed-badge {
    background: rgba(60, 80, 60, 0.3);
    color: #8dbf90;
    padding: 4px 10px;
    border-radius: 2px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
}

.ended-deal-rewards {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.rewards-amount {
    color: #fff;
}

.earnings-report-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #fff 0%, #ffd700 40%, #bf953f 100%);
    color: #1a1a1a;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid #aa771c;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.earnings-report-btn:hover {
    filter: brightness(1.1);
}

/* Returns Panel */
.dashboard-right {
    position: sticky;
    top: 100px;
}

.returns-panel {
    background: linear-gradient(180deg, rgba(30, 25, 10, 0.9) 0%, rgba(10, 5, 0, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    padding: 25px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

.returns-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.available-balance {
    margin-bottom: 20px;
}

.balance-label {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    margin-right: 5px;
}

.balance-value {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #d4af37;
    background: linear-gradient(to bottom, #f3cb51 0%, #aa771c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.returns-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    padding: 2px;
    margin-bottom: 20px;
    gap: 0;
}

.returns-tab {
    flex: 1;
    padding: 6px 2px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.returns-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.returns-tab.active {
    background: linear-gradient(to bottom, #f3cb51 0%, #d4af37 100%);
    color: #1a1a1a;
    border-radius: 2px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.returns-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: none; /* Removed border */
}

.stat-label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.stat-value {
    font-family: 'Roboto Mono', monospace; /* Monospace for numbers */
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Cylinder Coin Visualization */
.coin-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.coin-cylinder {
    position: relative;
    width: 140px;
    height: 70px; /* Height of the cylinder extrusion */
    perspective: 1000px;
}

.cylinder-top {
    position: absolute;
    top: -30px; /* Shift up to create top face */
    left: 0;
    width: 140px;
    height: 100px; /* Oval height */
    background: radial-gradient(ellipse at center, #f3cb51 0%, #d4af37 60%, #aa771c 100%);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.4);
    border: 1px solid #f6e6b4;
}

.cylinder-content {
    text-align: center;
    transform: scaleY(0.7); /* Counteract the perspective squeeze visually */
}

.cylinder-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    color: #5d4008;
    font-weight: 600;
    text-transform: uppercase;
}

.cylinder-value {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #3e2b05;
}

.cylinder-side {
    position: absolute;
    top: 20px; /* Starts halfway down the top oval */
    left: 0;
    width: 140px;
    height: 50px;
    background: linear-gradient(to right, #aa771c 0%, #f3cb51 40%, #d4af37 60%, #aa771c 100%);
    border-radius: 0 0 50% 50% / 0 0 35px 35px; /* Creates the curved bottom */
    z-index: 5;
    box-shadow: 0 20px 30px rgba(0,0,0,0.5);
}

.pie-segment {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    /* To mimic the pie slice check in logo, can add an SVG or CSS clip-path later if needed */
}

.fees-info {
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    display: block;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-right {
        position: static;
    }
    
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 20px;
    }
    
    .dashboard-title {
        font-size: 36px;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-actions {
        flex-direction: column;
    }
    
    .coin-3d {
        width: 150px;
        height: 150px;
    }
}

/* Ended Deals Section (New) */
.ended-deals-section {
    position: relative;
    padding: 50px 20px;
    background-image: url('images/background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    overflow: hidden; /* Ensure overlay doesn't spill */
}

/* Dark Overlay */
.ended-deals-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 10, 20, 0.1) 0%, rgba(0, 10, 20, 0.4) 100%);
    z-index: 1;
}

/* Content Wrapper */
.ended-deals-content {
    position: relative;
    z-index: 2; /* Sits above the overlay */
}

/* Login Error Message */
.login-error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.08));
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-left: 4px solid #f44336;
    color: #ff6b6b;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.15);
    transition: opacity 0.3s ease;
    animation: slideInError 0.3s ease;
}

.login-error-message svg {
    flex-shrink: 0;
    color: #f44336;
}

.login-error-message span {
    flex: 1;
    line-height: 1.4;
}

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

/* Universal Toast Notifications */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
}

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

.notification-toast svg {
    flex-shrink: 0;
}

.notification-toast span {
    flex: 1;
    line-height: 1.4;
}

/* Success notification */
.notification-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
    border: 1px solid rgba(76, 175, 80, 0.6);
    color: #fff;
}

.notification-success svg {
    color: #fff;
}

/* Error notification */
.notification-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.95), rgba(211, 47, 47, 0.95));
    border: 1px solid rgba(244, 67, 54, 0.6);
    color: #fff;
}

.notification-error svg {
    color: #fff;
}

/* Info notification */
.notification-info {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(168, 131, 24, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: #fff;
}

.notification-info svg {
    color: #fff;
}

/* Spinner animation for loading states */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notification-toast {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

