/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #333333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #333333;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --warning-color: #ff9800;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #0f1419 25%, #1a1a2e 50%, #0f3460 75%, #162447 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
    z-index: 0;
}

/* Animated particles layer 1 - Large orbs */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    25% { 
        transform: translate(30px, 30px) scale(1.05);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-20px, 40px) scale(0.95);
        opacity: 1;
    }
    75% { 
        transform: translate(40px, -20px) scale(1.02);
        opacity: 0.9;
    }
}

/* Animated grid overlay */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Ensure content is above background */
nav, main, section, footer, .modal {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(26, 26, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes logoGlow {
    0%, 100% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
    }
    50% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-auth, .nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.btn-nav:hover {
    color: var(--text-primary);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-large {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary::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: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-copy {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-copy:hover {
    background-color: var(--border-color);
}

.btn-delete {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    flex: 1;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-welcome {
    text-align: left;
    margin-bottom: 2rem;
}

.hero-welcome h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-signup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signup-form {
    display: flex;
    gap: 0.5rem;
}

.signup-form input {
    flex: 1;
    padding: 1rem;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.signup-form input:focus {
    outline: none;
    border-color: #10b981;
}

.btn-hero-signup {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-hero-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.signup-methods {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.signup-method {
    padding: 0.75rem 1.5rem;
    background: rgba(51, 51, 51, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.signup-method:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.terms-agreement {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

.terms-link {
    color: #10b981;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.market-overview, .news-section {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.market-header, .news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.market-title, .news-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.view-all {
    color: #10b981;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

.investment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.investment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(51, 51, 51, 0.3);
    border-radius: 8px;
    transition: all 0.3s;
}

.investment-item:hover {
    background: rgba(51, 51, 51, 0.5);
}

.investment-icon {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.investment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.investment-name {
    font-weight: 500;
    color: var(--text-primary);
}

.investment-return {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

.investment-price {
    font-weight: 600;
    color: var(--text-primary);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-item {
    padding: 0.75rem;
    background: rgba(51, 51, 51, 0.3);
    border-radius: 6px;
    transition: all 0.3s;
}

.news-item:hover {
    background: rgba(51, 51, 51, 0.5);
}

.news-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.hero-actions {
    margin-top: 2rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: rgba(26, 26, 46, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.about-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.visual-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.visual-element:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.visual-icon {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.visual-element span:last-child {
    font-weight: 500;
    color: var(--text-primary);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    padding: 2rem;
    background: rgba(51, 51, 51, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.feature-icon {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-block;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: rgba(26, 26, 46, 0.3);
}

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

.service-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 52, 96, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.service-icon {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: rgba(26, 26, 46, 0.5);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(51, 51, 51, 0.3);
    border-radius: 8px;
}

.contact-icon {
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    width: 60px;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-align: center;
    display: inline-block;
}

.contact-form {
    background: rgba(26, 26, 46, 0.5);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #10b981;
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.contact-form textarea:focus {
    outline: none;
    border-color: #10b981;
}

/* Terms Agreement Checkbox */
.terms-agreement {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.terms-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    text-align: center;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 30, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
    backdrop-filter: blur(10px);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-primary);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem;
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

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

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem 0;
    font-style: italic;
}

.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    display: none;
}

.message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

.message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    display: block;
}

/* Investment Page */
.invest-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.invest-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 52, 96, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* ensure overlay never blocks clicks inside card */
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

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

.project-card.featured-project {
    border: 2px solid rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(16, 185, 129, 0.15) 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-actions button {
    flex: 1;
}

/* Make links inside project actions behave like buttons and fill space */
.project-actions a {
    flex: 1;
    text-align: center;
}

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

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 500;
}

.risk-low {
    color: var(--success-color);
}

.risk-medium {
    color: var(--warning-color);
}

.risk-high {
    color: var(--error-color);
}

.invest-btn {
    width: 100%;
}

/* Crypto Options */
.crypto-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-label:hover {
    border-color: var(--text-secondary);
}

.radio-label input[type="radio"] {
    margin-right: 0.75rem;
    width: auto;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Payment Instructions */
.payment-instructions {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--accent-color);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wallet-address {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wallet-address code {
    flex: 1;
    padding: 0.5rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Admin Page */
.admin-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.admin-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

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

.admin-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.admin-tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

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

.table-header h2 {
    font-size: 1.5rem;
}

.table-container {
    overflow-x: auto;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--accent-color);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-primary);
}

td {
    color: var(--text-secondary);
}

tbody tr:hover {
    background-color: var(--accent-color);
}

tbody tr:last-child td {
    border-bottom: none;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background-color: rgba(255, 152, 0, 0.2);
    color: var(--warning-color);
}

.status-verified {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 52, 96, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Footer */
footer {
    background: rgba(26, 26, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
}

footer p {
    color: var(--text-secondary);
}

/* Contract Page */
.contract-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.contract-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contract-content {
    max-width: 900px;
    margin: 3rem auto;
}

.contract-status-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 52, 96, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contract-status-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-label {
    color: var(--text-secondary);
}

.status-message {
    margin-top: 0.5rem;
    line-height: 1.6;
}

.contract-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
}

.contract-step:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(51, 51, 51, 0.3);
}

.upload-area:hover {
    border-color: var(--text-primary);
    background: rgba(51, 51, 51, 0.5);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.selected-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(51, 51, 51, 0.5);
    border-radius: 8px;
    margin-top: 1rem;
}

/* Dashboard Page */
.dashboard-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.dashboard-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-section {
    margin-bottom: 3rem;
}

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

.dashboard-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Wallet Cards */
.wallet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wallet-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 52, 96, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wallet-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.crypto-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    border-radius: 50%;
}

.crypto-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.crypto-balance {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.crypto-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Portfolio Stats */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.portfolio-stat-card {
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.portfolio-stat-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 12px;
}

/* Investments List */
.investments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.investment-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 52, 96, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.investment-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.investment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.investment-header h3 {
    font-size: 1.3rem;
}

.investment-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.investment-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tx-hash {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.investment-actions {
    display: flex;
    gap: 1rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.action-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.action-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .nav-auth, .nav-user {
        gap: 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

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

    .hero-welcome h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .signup-form {
        flex-direction: column;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-visual {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    table {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-welcome h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .signup-methods {
        flex-direction: column;
    }

    .about-visual {
        gap: 1rem;
    }

    .visual-element {
        padding: 1rem;
    }

    .visual-icon {
        font-size: 2rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }

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

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 3rem 0;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

