/* ============================================
   OpenCampux Premium Donation Site — CSS
   ============================================ */

:root {
    --bg: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --accent: #064E3B;
    --accent-hover: #065F46;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.12);
    --font-serif: 'DM Serif Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-w: 1280px;
}

/* --- Keyframes --- */
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes count-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section, div[id] { scroll-margin-top: 80px; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* --- Layout --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
}
.section-padded {
    padding-top: 120px;
    padding-bottom: 120px;
}

/* --- Nav --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    height: 72px;
    display: flex;
    align-items: center;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 48px;
}
.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--text-primary);
}
.nav-links {
    display: flex;
    gap: 36px;
}
.nav-links a {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    padding: 14px 28px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(6,78,59,0.2);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(6,78,59,0.22);
}
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 14px 4px;
}
.btn-primary:active, .btn-nav:active { transform: scale(0.97); }
.btn-nav {
    background: var(--text-primary);
    color: #fff;
    padding: 10px 22px;
    font-size: 13px;
}
.btn-nav:hover { background: var(--accent); }
.btn-donate {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 18px;
    border-radius: 8px;
    letter-spacing: 0.03em;
}

/* --- Eyebrow Labels --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 1.5px;
    background: var(--text-secondary);
    flex-shrink: 0;
}

/* --- Hero --- */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: var(--bg);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.hero-content { display: flex; flex-direction: column; }
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 76px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
}
.hero-subheader {
    display: block;
    font-size: 34px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 500;
    margin-top: 20px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.hero-body {
    border-left: 2px solid var(--border);
    padding-left: 28px;
}
.hero-body p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 440px;
}
.hero-actions { display: flex; align-items: center; gap: 24px; }
.hero-visual { position: relative; }
.hero-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-img { width: 100%; height: auto; display: block; }
.hero-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 10px 16px;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 0 auto 120px;
}
.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.stat-number {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--text-primary);
}
.stat-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}
.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* --- University Strip --- */
.uni-strip {
    padding: 40px 0 60px;
    text-align: center;
}
.uni-strip-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.uni-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 4px;
}
.uni-name {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--text-primary);
    padding: 0 8px;
}
.uni-dot {
    color: var(--border);
    font-size: 24px;
    font-weight: 300;
}
.uni-name:last-child {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
}

/* --- Funding Section --- */
.funding-section {
    background: var(--border-light);
}
.funding-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.funding-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.funding-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.funding-icon {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
}
.funding-card h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
}
.funding-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    flex: 1;
}
.funding-amount {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.funding-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6,78,59,0.04);
    border: 1px solid rgba(6,78,59,0.12);
    color: var(--text-primary);
    padding: 24px 32px;
    border-radius: 12px;
}
.funding-total span {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}
.funding-total strong {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--accent);
}

/* --- Problem Section --- */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 8px;
}
.section-heading {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.problem-body p {
    color: var(--text-secondary);
    line-height: 1.75;
}

/* --- Testimonial Section --- */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 8px;
}
.video-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.video-text p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 17px;
}
.video-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}
.author-name {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.author-role {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.video-player-wrap {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    background: #000;
    aspect-ratio: 16/9;
}
.video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #000;
}
.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.video-thumbnail:hover .thumbnail-img {
    transform: scale(1.05);
    opacity: 0.6;
}
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}
.video-thumbnail:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #FFFFFF;
}

/* --- Feature Rows --- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    border-top: 1px solid var(--border-light);
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-img-wrap {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-row:hover .feature-img-wrap {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
.feature-img { width: 100%; height: auto; display: block; }
.feature-text { display: flex; flex-direction: column; gap: 16px; }
.feature-number {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}
.feature-text h3 {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
}
.feature-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    max-width: 420px;
}
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.tag {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(6,78,59,0.06);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(6,78,59,0.12);
}

/* --- Vision Section --- */
.vision-box {
    background: rgba(6, 78, 59, 0.03);
    padding: 64px 48px;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}
.vision-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}
.vision-box .section-heading {
    margin-bottom: 24px;
    font-size: 36px;
}
.vision-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
}
.vision-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}
.vision-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.vision-check {
    font-size: 20px;
    flex-shrink: 0;
}

/* --- Support Section --- */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 40px;
}
.support-img-wrap {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}
.support-img { width: 100%; height: auto; display: block; }
.progress-block {
    background: var(--border-light);
    padding: 28px;
    border-radius: 4px;
    margin-bottom: 28px;
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}
.progress-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.progress-amount {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--text-primary);
}
.progress-bar-bg {
    height: 6px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 12px;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 99px;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.progress-note {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}
.use-of-funds h4 {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.fund-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
    color: var(--text-secondary);
}
.fund-row strong { color: var(--text-primary); font-weight: 700; }

.urgency-heading {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #DC2626;
}

/* --- Donation Control --- */
.donation-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.preset-btn {
    padding: 14px 8px;
    border: 1px solid var(--border);
    background: var(--border-light);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.preset-btn:hover { border-color: var(--accent); background: rgba(6,78,59,0.04); }
.preset-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.custom-amount {
    position: relative;
    margin-bottom: 20px;
}
.currency-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 15px;
    pointer-events: none;
}
.custom-amount input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    background: var(--border-light);
    color: var(--text-primary);
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.custom-amount input:focus { border-color: var(--accent); background: #fff; }
.secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 14px;
    justify-content: center;
}

/* --- Footer --- */
.footer { padding-top: 100px; padding-bottom: 60px; border-top: 1px solid var(--border); }
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}
.footer-links { display: flex; gap: 80px; }
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-col-title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}
.footer-col a {
    font-size: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Responsive & Mobile Premium Experience --- */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .hero-grid, .support-grid, .problem-grid, .video-grid { grid-template-columns: 1fr; gap: 56px; }
    .feature-row { grid-template-columns: 1fr; gap: 40px; }
    .feature-row.reverse { direction: ltr; }
    .hero-content h1 { font-size: 52px; }
    .hero-subheader { font-size: 26px; margin-top: 12px; }
    .section-heading { font-size: 42px; }
    .stats-bar { padding: 32px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }
    .nav-links { display: none; }
    .logo { font-size: 20px; }
    .btn-nav { padding: 8px 16px; font-size: 13px; }
    
    .section-padded { padding-top: 80px; padding-bottom: 80px; }
    .hero { padding-top: 110px; padding-bottom: 60px; }
    .hero-content h1 { font-size: 42px; margin-bottom: 24px; }
    .hero-body { padding-left: 20px; }
    .hero-body p { font-size: 16px; margin-bottom: 28px; }
    .hero-actions { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    .section-heading { font-size: 34px; }
    
    /* Stats Bar 2x2 Grid */
    .stats-bar { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 32px; 
        padding: 32px 20px;
        border-radius: 12px;
        margin-bottom: 80px;
    }
    .stat-divider { display: none; }
    .stat { gap: 4px; }
    .stat-number { font-size: 32px; }
    
    .uni-strip { padding: 20px 0 60px; }
    .uni-name { font-size: 18px; }
    
    .feature-row { padding: 60px 0; }
    .feature-text h3 { font-size: 32px; }
    
    .vision-box { padding: 40px 24px; }
    .vision-box .section-heading { font-size: 28px; }
    .vision-body { font-size: 15px; }

    .urgency-heading { font-size: 34px; margin-bottom: 16px; }

    .funding-grid { grid-template-columns: 1fr; gap: 16px; }
    .funding-card { padding: 32px 24px; }
    .funding-card h3 { font-size: 24px; }
    .funding-total { 
        flex-direction: row; 
        align-items: center; 
        justify-content: space-between;
        padding: 20px;
        gap: 12px;
    }
    .funding-total span { font-size: 11px; }
    .funding-total strong { font-size: 24px; }
    
    .presets { grid-template-columns: repeat(2, 1fr); }
    .custom-amount input { font-size: 16px; } /* Prevents iOS Zoom */
    
    .footer { padding-top: 80px; padding-bottom: 40px; }
    .footer-top { flex-direction: column; gap: 48px; }
    .footer-links { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 40px; 
        width: 100%;
    }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 38px; line-height: 1.1; }
    .hero-body { border-left-width: 1px; }
    .section-heading { font-size: 32px; }
    .footer-links { grid-template-columns: 1fr; }
}

/* ============================================
   THANK YOU SCREEN
   ============================================ */

@keyframes stroke-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes scale-in {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes ty-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Generic Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Success Modal Card */
.modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 56px 48px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

/* Video Modal Card */
.video-modal-card {
    background: #000;
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
}
.modal-overlay.active .video-modal-card {
    transform: translateY(0) scale(1);
}
.fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.video-close {
    background: rgba(255,255,255,0.1);
    color: #fff;
    z-index: 100;
}
.video-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Modal Close Button (Generic) */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--border-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
    background: var(--border);
    color: var(--text-primary);
}


/* Animated SVG checkmark */
.ty-check-wrap {
    margin: 0 auto 40px;
    width: 88px;
    height: 88px;
    animation: scale-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ty-check {
    width: 88px;
    height: 88px;
}
.ty-check-circle {
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke-draw 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}
.ty-check-path {
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke-draw 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Text */
.ty-eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 16px;
    animation: ty-fade-up 0.5s ease 0.5s both;
}
.ty-heading {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    animation: ty-fade-up 0.5s ease 0.6s both;
}
.ty-body {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 40px;
    animation: ty-fade-up 0.5s ease 0.7s both;
}

/* Receipt block */
.ty-receipt {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
    text-align: left;
    animation: ty-fade-up 0.5s ease 0.8s both;
}
.ty-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}
.ty-receipt-row:last-child { border-bottom: none; }
.ty-receipt-row span { color: var(--text-secondary); }
.ty-receipt-row strong { color: var(--text-primary); font-weight: 700; }
.ty-status { color: var(--accent) !important; }

/* Action buttons */
.ty-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    animation: ty-fade-up 0.5s ease 0.9s both;
}
.btn-outline-dark {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.btn-outline-dark:hover {
    border-color: var(--text-primary);
    background: var(--border-light);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-overlay { padding: 0; }
    
    /* Success Modal Mobile */
    .modal-card { 
        padding: 40px 24px; 
        border-radius: 0;
        width: 100%;
        height: 100%;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    
    /* Video Modal Mobile */
    .video-modal-card {
        border-radius: 0;
        height: auto;
        max-height: 100dvh;
        aspect-ratio: auto; /* Allow natural aspect or force container */
    }
    .video-close {
        top: 16px;
        right: 16px;
        background: rgba(0,0,0,0.5);
    }
    .ty-inner {
        margin: auto 0; /* Safely centers content vertically but allows top scrolling if needed */
        flex-shrink: 0;
    }
    .ty-check-wrap { width: 64px; height: 64px; margin-bottom: 24px; }
    .ty-check { width: 64px; height: 64px; }
    .ty-eyebrow { margin-bottom: 12px; }
    .ty-heading { font-size: 32px; margin-bottom: 16px; }
    .ty-body { font-size: 15px; margin-bottom: 24px; line-height: 1.6; }
    
    .ty-receipt { margin-bottom: 24px; }
    .ty-receipt-row { padding: 12px 16px; font-size: 13px; }
    
    .ty-actions { flex-direction: column; gap: 12px; margin-bottom: 24px; }
    .ty-actions .btn, .ty-actions .btn-outline-dark { width: 100%; }
    
    .modal-close { 
        top: 16px; 
        right: 16px; 
        background: var(--border-light);
        z-index: 10;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
    }
}

/* Footnote */
.ty-footnote {
    font-size: 13px;
    color: var(--text-secondary);
    animation: ty-fade-up 0.5s ease 1s both;
}
.ty-footnote a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

