:root {
    --primary: #E62D55;
    --primary-hover: #D1254A;
    --secondary: #00AEEF;
    --bg-light: #F8F9FA;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
}

/* Header */
.header {
    padding: 16px 20px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #F1F2F6;
}

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

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    margin-left: 15px;
}

/* Media */
.campaign-media {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.campaign-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.campaign-media:hover img {
    transform: scale(1.05);
}

/* Info Section */
.campaign-info {
    padding: 24px 20px;
}

.campaign-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-main);
}

.donation-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #F1F2F6;
}

.raised-amount .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.raised-amount .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.progress-container {
    height: 8px;
    background: #EBEEF0;
    border-radius: 4px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%; /* Will be animated via JS */
    transition: width 1.5s cubic-bezier(0.1, 0.7, 1.0, 0.1);
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.percentage {
    color: var(--primary);
}

.target {
    color: var(--text-muted);
}

.campaign-meta {
    display: flex;
    border-top: 1px solid #F1F2F6;
    padding-top: 16px;
}

.meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.meta-value {
    font-weight: 700;
    font-size: 1rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Campaigner */
.campaigner {
    padding: 0 20px 24px;
}

.profile-chip {
    display: flex;
    align-items: center;
    background: #F8F9FA;
    padding: 12px 16px;
    border-radius: 50px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 12px;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-info .name {
    font-weight: 700;
    font-size: 0.95rem;
}

.profile-info .verified {
    font-size: 0.75rem;
    color: #27AE60;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Story */
.campaign-story {
    padding: 24px 20px;
    border-top: 8px solid #F1F2F6;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.story-content p {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Donors */
.donors {
    padding: 24px 20px;
    border-top: 8px solid #F1F2F6;
}

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

.see-all {
    font-size: 0.85rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.donor-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F1F2F6;
}

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

.donor-avatar {
    width: 36px;
    height: 36px;
    background: #E1F5FE;
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 12px;
}

.donor-details {
    display: flex;
    flex-direction: column;
}

.donor-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.donor-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.donor-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    border-top: 1px solid #F1F2F6;
    z-index: 1000;
}

.cta-content {
    display: flex;
    gap: 12px;
}

.share-btn {
    flex: 0 0 54px;
    height: 54px;
    border-radius: 12px;
    border: 1px solid #EBEEF0;
    background: var(--white);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #F8F9FA;
}

.donate-btn {
    flex: 1;
    height: 54px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

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

.donate-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.donation-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: flex-end; /* Mobile-style bottom sheet */
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 480px;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.close-btn {
    background: #F1F2F6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Bank Card */
.bank-card {
    background: linear-gradient(135deg, #00AEEF 0%, #0077B6 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 174, 239, 0.2);
}

.bank-name {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.9;
    display: block;
    margin-bottom: 12px;
}

.account-number-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.account-number {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.account-name {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
}

.payment-steps h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.payment-steps ul {
    list-style: none;
}

.payment-steps li {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.payment-steps li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}
