*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #FFCC33;
    --gold-light: #EDEAB5;
    --gold-dark: #8B0000;
    --ink: #1A1712;
    --ink-soft: #3D3830;
    --parchment: #FAF7F0;
    --cream: #F2EDE1;
    --sage: #5C7A5C;
    --sage-light: #E8F0E8;
    --progress-bg: #E8E0CC;
    --shadow: rgba(26, 23, 18, 0.12);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--parchment);
    color: var(--ink);
    min-height: 100vh;
}

/* Hero */
.hero {
    background: var(--ink);
    color: var(--parchment);
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.18) 0%, transparent 70%);
}

.hero-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    position: relative;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(250, 247, 240, 0.7);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 300;
}

.deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 13px;
    color: var(--gold-light);
}

.deadline-badge svg {
    width: 14px;
    height: 14px;
}

/* Main layout */
.main {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Goal card */
.goal-card {
    background: white;
    border-radius: 20px;
    padding: 36px 40px;
    margin: -40px auto 32px;
    box-shadow: 0 8px 40px var(--shadow);
    position: relative;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.goal-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.goal-amount span {
    font-size: 1.2rem;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}

.goal-target {
    font-size: 14px;
    color: #888;
    text-align: right;
}

.goal-target strong {
    display: block;
    font-size: 1.1rem;
    color: var(--ink-soft);
    font-weight: 600;
}

/* Progress bar */
.progress-track {
    background: var(--progress-bg);
    border-radius: 100px;
    height: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 100%);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--gold);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
}

.progress-labels strong {
    color: var(--sage);
    font-weight: 600;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--cream);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 28px;
}

.stat-item {
    background: white;
    padding: 18px 20px;
    text-align: center;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    display: block;
    color: var(--ink);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-top: 2px;
    display: block;
}

/* Section heading */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 20px;
}

/* Two-col layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 720px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .goal-card {
        padding: 28px 20px;
        margin: -30px 0 24px;
    }

    .goal-amount {
        font-size: 1.8rem;
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pledge tiers */
.tiers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.tier {
    background: white;
    border: 1.5px solid var(--cream);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tier:hover {
    border-color: var(--gold);
    transform: translateX(3px);
}

.tier.selected {
    border-color: var(--gold);
    background: #FFFBF0;
}

.tier-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--cream);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tier.selected .tier-radio {
    border-color: var(--gold);
    background: var(--gold);
}

.tier.selected .tier-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.tier-info {
    flex: 1;
}

.tier-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--sage-light);
    color: var(--sage);
    border-radius: 100px;
    padding: 2px 8px;
}

.tier-desc {
    font-size: 13px;
    color: #888;
    margin-top: 3px;
}

.tier-amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-dark);
    flex-shrink: 0;
}

/* Custom amount */
.custom-amount-wrap {
    position: relative;
    margin-bottom: 18px;
}

.custom-amount-wrap span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #aaa;
}

.custom-amount-wrap input {
    width: 100%;
    border: 1.5px solid var(--cream);
    border-radius: 10px;
    padding: 14px 16px 14px 32px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--ink);
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.custom-amount-wrap input:focus {
    border-color: var(--gold);
}

.custom-amount-wrap input::placeholder {
    color: #ccc;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
}

/* Form */
.pledge-form {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(26, 23, 18, 0.07);
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 6px;
}

.form-row input {
    width: 100%;
    border: 1.5px solid var(--cream);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.form-row input:focus {
    border-color: var(--gold);
}

.form-row input::placeholder {
    color: #ccc;
}

.form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.anonymous-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.anonymous-check input[type="checkbox"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

.cta-btn {
    width: 100%;
    background: var(--ink);
    color: var(--parchment);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.35);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-btn .amount-preview {
    color: var(--gold);
}

/* Pledge feed */
.pledge-feed {
    background: white;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(26, 23, 18, 0.07);
    margin-bottom: 28px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pledges-list {
    list-style: none;
}

.pledge-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cream);
}

.pledge-item:last-child {
    border-bottom: none;
}

.pledge-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.pledge-meta {
    flex: 1;
}

.pledge-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.pledge-time {
    font-size: 12px;
    color: #bbb;
}

.pledge-msg {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
    font-style: italic;
}

.pledge-val {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold-dark);
    flex-shrink: 0;
}

/* About section */
.about-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(26, 23, 18, 0.07);
}

.about-card p {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* Success toast */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--ink);
    color: var(--parchment);
    border-radius: 14px;
    padding: 16px 22px;
    font-size: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
    max-width: 320px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast strong {
    color: var(--gold);
}

/* Inline edit hint */
.edit-hint {
    font-size: 12px;
    color: #bbb;
    text-align: center;
    margin-top: 12px;
}

/* Footer Disclaimer Card */
/* .disclaimer {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(26, 23, 18, 0.07);
} */

.footer {
background: var(--cream);
border-top: 1px solid #E3DDD0;
padding: 28px 24px;
text-align: center;
}
.disclaimer {
max-width: 720px;
margin: 0 auto;
/* font-size: 12px; */
color: #999;
line-height: 1.7;
}
.disclaimer strong {
color: #777;
}