/* Modern Binance-Style CSS for $2GTHR */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #f1f5f9;
    background: #0f172a;
}

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

/* Dark Binance Color Scheme */
:root {
    --binance-yellow: #f0b90b;
    --binance-dark: #0f172a;
    --binance-darker: #020617;
    --binance-gray: #64748b;
    --binance-light-gray: #1e293b;
    --binance-success: #02c076;
    --binance-hover: #fcd535;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --card-bg: #1e293b;
    --card-border: #334155;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--binance-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(240, 185, 11, 0.3);
    border-top: 3px solid var(--binance-yellow);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

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

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Banner Section */
.banner-section {
    margin-top: 80px; /* Account for fixed navbar */
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 48px;
    width: 48px;
    border-radius: 8px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--binance-yellow);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--binance-yellow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--binance-yellow);
    color: var(--binance-dark);
}

.btn-primary:hover {
    background: var(--binance-hover);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: var(--binance-yellow);
    color: var(--binance-yellow);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--binance-darker) 0%, var(--binance-dark) 100%);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(240, 185, 11, 0.1);
    color: var(--binance-yellow);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(240, 185, 11, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--binance-yellow);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    min-width: 150px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--binance-yellow);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

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

/* How It Works */
.how-it-works {
    padding: 6rem 0;
    background: var(--binance-dark);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

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

.step {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--binance-yellow);
    color: var(--binance-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tokenomics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tokenomics-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    text-align: center;
}

.tokenomics-card.highlight {
    background: var(--binance-yellow);
    color: var(--binance-dark);
}

.tokenomics-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: inherit;
}

.tokenomics-card p {
    font-size: 0.9rem;
    font-weight: 500;
    color: inherit;
    opacity: 0.8;
}

.tokenomics-card:not(.highlight) h3 {
    color: var(--text-primary);
}

.tokenomics-card:not(.highlight) p {
    color: var(--text-secondary);
}

/* Live Tracker */
.live-tracker {
    padding: 6rem 0;
    background: var(--binance-darker);
    color: white;
    text-align: center;
}

.live-tracker .section-title {
    color: var(--binance-yellow);
}

.tracker-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tracker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tracker-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(240, 185, 11, 0.1);
}

.tracker-card.main {
    background: rgba(240, 185, 11, 0.1);
    border-color: var(--binance-yellow);
}

.tracker-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tracker-amount, .donation-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--binance-yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.donation-usd {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.tracker-label {
    font-size: 1rem;
    font-weight: 500;
    color: #b7bdc6;
}

.tracker-usd {
    font-size: 0.9rem;
    color: var(--binance-yellow);
    font-weight: 600;
    margin-top: 0.5rem;
}

.tracker-subtitle {
    font-size: 0.9rem;
    color: #b7bdc6;
    font-weight: 500;
    margin-top: 0.5rem;
}

.charity-current {
    margin-top: 3rem;
}

.charity-header {
    text-align: center;
    margin-bottom: 2rem;
}

.charity-header h3 {
    color: var(--binance-yellow);
    font-size: 1.5rem;
    font-weight: 700;
}

.charity-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(240, 185, 11, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.charity-logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.charity-logo {
    width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.charity-content {
    text-align: center;
}

.charity-content h4 {
    color: var(--binance-yellow);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.charity-content p {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wallet-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(240, 185, 11, 0.1);
}

.wallet-label {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wallet-label:first-child {
    margin-top: 0;
}

.wallet-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wallet-address code {
    background: rgba(240, 185, 11, 0.1);
    color: var(--binance-yellow);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(240, 185, 11, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-address code:hover {
    background: rgba(240, 185, 11, 0.2);
    transform: translateY(-1px);
}

.copy-btn {
    background: var(--binance-yellow);
    color: var(--binance-dark);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--binance-hover);
    transform: translateY(-1px);
}

/* Security & Buy Section */
.security-buy {
    padding: 6rem 0;
    background: var(--binance-dark);
}

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

.security-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.check {
    width: 24px;
    height: 24px;
    background: var(--binance-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature strong {
    display: block;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.buy-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    text-align: center;
}

.buy-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.buy-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contract-info {
    background: var(--binance-darker);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--card-border);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.info-row span:last-child {
    color: var(--text-primary);
}

.contract-link {
    color: var(--binance-yellow);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contract-link:hover {
    color: var(--binance-hover);
    text-decoration: underline;
}

.info-row code {
    background: rgba(240, 185, 11, 0.1);
    color: var(--binance-yellow);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', monospace;
    font-size: 0.8rem;
}

.buy-note {
    margin-top: 1rem;
    color: var(--binance-success);
    font-weight: 500;
}

/* Donation Mechanism Section */
.donation-mechanism {
    padding: 4rem 0;
    background: var(--binance-darker);
}

.mechanism-explanation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.mechanism-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.mechanism-card:hover {
    transform: translateY(-5px);
    border-color: var(--binance-yellow);
}

.mechanism-card h3 {
    color: var(--binance-yellow);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.mechanism-arrow {
    font-size: 2rem;
    color: var(--binance-yellow);
    font-weight: bold;
    align-self: center;
    margin: 0 1rem;
}

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

.benefit-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.benefit-item:hover {
    border-color: var(--binance-yellow);
}

.benefit-item strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--binance-dark);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text strong {
    color: var(--binance-yellow);
}

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

.footer-links a {
    color: #b7bdc6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--binance-yellow);
}

.status-badge {
    background: rgba(2, 192, 118, 0.1);
    color: var(--binance-success);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(2, 192, 118, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 0.75rem;
        max-width: 100%;
    }
    
    /* Navigation improvements */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
    
    .stat-card {
        padding: 0.75rem;
        min-width: 100px;
        font-size: 0.85rem;
    }
    
    .stat-card h3 {
        font-size: 1.1rem;
    }
    
    /* Button and action improvements */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Grid improvements */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tracker-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tracker-card {
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1.5rem;
    }
    
    .tracker-amount, .donation-amount {
        font-size: 2rem;
        word-break: break-word;
        text-align: center;
    }
    
    .tracker-label {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tokenomics-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Card improvements */
    .charity-card, .buy-card {
        padding: 1.25rem;
        margin: 0;
    }
    
    .charity-logo {
        width: 120px;
        height: auto;
    }
    
    .charity-content h4 {
        font-size: 1.1rem;
    }
    
    .charity-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Address and code improvements */
    .wallet-address, .contract-info {
        width: 100%;
    }
    
    .wallet-address code, .contract-info code {
        font-size: 0.75rem;
        padding: 0.5rem;
        word-break: break-all;
        line-height: 1.3;
        display: block;
        width: 100%;
    }
    
    .info-row {
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
    }
    
    /* Section spacing improvements */
    section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        text-align: center;
        line-height: 1.3;
    }
    
    /* Tracker improvements */
    .tracker-amount {
        font-size: 1.5rem;
        line-height: 1.2;
        word-break: break-word;
    }
    
    .tracker-label {
        font-size: 0.9rem;
    }
    
    .tracker-subtitle {
        font-size: 0.8rem;
    }
    
    /* Footer improvements */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Navigation improvements */
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .nav-link-desktop {
        display: none;
    }
    
    .logo {
        height: 32px;
        width: 32px;
    }
    
    /* Banner improvements */
    .banner-section {
        margin-top: 65px;
    }
    
    .banner-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Loading screen */
    .loading-logo {
        width: 50px;
        height: 50px;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
    
    /* Donation Mechanism Mobile */
    .donation-mechanism {
        padding: 2rem 0;
    }
    
    .mechanism-explanation {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .mechanism-arrow {
        transform: rotate(90deg);
        margin: 0;
        font-size: 1.5rem;
    }
    
    .mechanism-card {
        min-width: auto;
        padding: 1.25rem;
        margin: 0;
    }
    
    .mechanism-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .mechanism-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .mechanism-benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    .benefit-item strong {
        font-size: 0.9rem;
    }
    
    .benefit-item p {
        font-size: 0.8rem;
    }
}

/* Additional mobile breakpoint for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .tracker-card {
        min-height: 120px;
        padding: 1rem;
    }
    
    .tracker-amount, .donation-amount {
        font-size: 1.5rem;
        line-height: 1.1;
        word-break: break-all;
    }
    
    .tracker-label {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    .charity-card, .buy-card, .mechanism-card, .benefit-item {
        padding: 1rem;
    }
    
    .wallet-address code, .contract-info code {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.image-modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--binance-yellow);
    color: var(--binance-dark);
    transform: scale(1.1);
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid var(--binance-yellow);
}

.modal-caption {
    margin-top: 1.5rem;
    text-align: center;
    color: #fff;
    max-width: 600px;
}

.modal-caption h3 {
    color: var(--binance-yellow);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-caption p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Make charity logo clickable */
.charity-logo {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.charity-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(240, 185, 11, 0.3);
    border: 2px solid var(--binance-yellow);
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .modal-close {
        top: -30px;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }
    
    .modal-image {
        max-height: 60vh;
    }
    
    .modal-caption {
        margin-top: 1rem;
        padding: 0 1rem;
    }
    
    .modal-caption h3 {
        font-size: 1.25rem;
    }
    
    .modal-caption p {
        font-size: 0.9rem;
    }
}