:root {
    --bg-color: #0b1121;
    --text-color: #f8fafc;
    --primary-color: #3b82f6;
    --accent-color: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.15);
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    min-height: 100vh;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    letter-spacing: 0.05em;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.upload-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    margin: 1rem 0;
    transition: border-color 0.3s;
}

.upload-zone:hover {
    border-color: var(--primary-color);
}

.btn-primary,
.btn-api {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-api {
    background: var(--accent-color);
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    opacity: 0.9;
}

section {
    padding: 2rem;
}

.stake-list {
    list-style: none;
    padding: 0;
}

.stake-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.status.pending {
    color: #f59e0b;
}

/* Landing Page Specific Premium Styles */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 45%;
}

.hero-graphic img {
    max-width: 75%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.2));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.solid-text {
    color: #93c5fd;
}

.gradient-text {
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-glow {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(96, 165, 250, 0.5);
    border-radius: 30px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.modern-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.feature-card {
    padding: 1.5rem 2rem;
    text-align: left;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.icon-container {
    width: 70px;
    height: 70px;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 1rem;
}

/* Background glow effects for the page */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

body::before {
    top: -200px;
    left: -100px;
    background: var(--primary-color);
}

body::after {
    bottom: -200px;
    right: -100px;
    background: var(--accent-color);
}

/* Auth Pages */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-container {
    padding: 3rem;
    width: 100%;
    max-width: 400px;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.alert {
    padding: 1rem;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Nonprofit Search Page */
.nonprofit-search-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

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

.search-bar-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-bar {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-button:hover {
    opacity: 0.9;
}

.cause-filters {
    text-align: center;
}

.filter-label {
    color: #94a3b8;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-chip {
    padding: 0.5rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-chip:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #94a3b8;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    text-align: center;
    margin-bottom: 2rem;
}

.results-container {
    min-height: 200px;
}

.results-placeholder,
.no-results {
    text-align: center;
    color: #94a3b8;
    padding: 3rem;
    font-size: 1.1rem;
}

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

.nonprofit-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.nonprofit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.nonprofit-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.nonprofit-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.nonprofit-info {
    flex: 1;
    margin-bottom: 1rem;
}

.nonprofit-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.nonprofit-description {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.nonprofit-ein {
    color: #64748b;
    font-size: 0.8rem;
}

.nonprofit-actions {
    display: flex;
    justify-content: center;
}

.donate-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.2s;
    text-align: center;
}

.donate-btn:hover {
    opacity: 0.9;
}

/* Container and Navigation */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

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

    .user-profile {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-graphic {
        max-width: 100%;
        margin-top: 2rem;
        justify-content: center;
    }

    .modern-features {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

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

    .search-bar-container {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    section {
        padding: 1rem;
    }

    .auth-container {
        padding: 1.5rem;
    }
}