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

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #0a1628;
    color: #fff;
}

.btn-primary:hover {
    background: #1a2a44;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 22, 40, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #0a1628;
    border: 2px solid #0a1628;
}

.btn-secondary:hover {
    background: #0a1628;
    color: #fff;
}

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ===== Header ===== */
.header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    color: #0a1628;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #0a1628;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a44 100%);
    color: #fff;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: #f0b90b;
    color: #0a1628;
}

.hero-actions .btn-primary:hover {
    background: #d4a008;
}

.hero-actions .btn-secondary {
    border-color: #fff;
    color: #fff;
}

.hero-actions .btn-secondary:hover {
    background: #fff;
    color: #0a1628;
}

/* ===== Sections ===== */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 80px 0;
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: #0a1628;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-card p {
    color: #64748b;
    font-size: 14px;
}

/* ===== Featured Campaigns ===== */
.featured {
    padding: 80px 0;
    background: #f8fafc;
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .campaign-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .campaign-grid {
        grid-template-columns: 1fr;
    }
}

.campaign-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: block;
    border: 1px solid #e2e8f0;
}

.campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.campaign-category {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #0a1628;
    padding: 2px 12px;
    border-radius: 20px;
}

.campaign-progress {
    font-size: 14px;
    font-weight: 700;
    color: #f0b90b;
}

.campaign-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.campaign-desc {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.campaign-footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.campaign-raised {
    color: #0a1628;
}

.campaign-goal {
    color: #94a3b8;
}

/* ===== Progress Bar ===== */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f0b90b, #d4a008);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.progress-bar-large {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-large .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f0b90b, #d4a008);
    border-radius: 6px;
    transition: width 0.6s ease;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: #fff;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-section .btn-primary {
    background: #f0b90b;
    color: #0a1628;
}

.cta-section .btn-primary:hover {
    background: #d4a008;
}

/* ===== Footer ===== */
.footer {
    background: #0a1628;
    color: #94a3b8;
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
}

/* ===== Forms ===== */
.campaign-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-section {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #0a1628;
}

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0a1628;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 4px;
}

/* ===== Alerts ===== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ===== Campaign Page ===== */
.campaign-page {
    padding: 40px 0;
}

.campaign-header-section {
    margin-bottom: 40px;
}

.campaign-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.campaign-status {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-success { background: #dcfce7; color: #166534; }
.status-warning { background: #fef9c3; color: #854d0e; }
.status-info { background: #dbeafe; color: #1e40af; }
.status-danger { background: #fecaca; color: #991b1b; }

.campaign-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.campaign-description {
    font-size: 18px;
    color: #475569;
}

/* Progress Section */
.progress-section {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #0a1628;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
}

/* Campaign Grid (two columns) */
.campaign-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .campaign-grid {
        grid-template-columns: 1fr;
    }
}

.campaign-main .card {
    margin-bottom: 24px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.story-content {
    white-space: pre-wrap;
    line-height: 1.8;
    color: #1e293b;
}

/* Wallet Address */
.wallet-address {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    word-break: break-all;
}

.wallet-address code {
    font-size: 14px;
    flex: 1;
    color: #0a1628;
}

.btn-copy {
    background: #0a1628;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #1a2a44;
}

/* Transaction List */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.transaction-item:last-child {
    border-bottom: none;
}

.tx-amount {
    font-weight: 700;
    color: #0a1628;
}

.tx-hash {
    color: #64748b;
    font-size: 13px;
    font-family: monospace;
}

.tx-time {
    color: #94a3b8;
    font-size: 13px;
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.btn-share {
    display: block;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    transition: opacity 0.2s;
}

.btn-share:hover {
    opacity: 0.8;
}

.whatsapp { background: #25D366; }
.twitter { background: #1DA1F2; }
.facebook { background: #1877F2; }

#campaign-link {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    margin: 8px 0 12px;
    background: #f8fafc;
}

/* ===== Create Page ===== */
.create-page {
    padding: 40px 0;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.page-desc {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .campaign-title {
        font-size: 28px;
    }
    
    .card {
        padding: 16px;
    }
    
    .form-section {
        padding: 20px;
    }
}