/* ── Variables ─────────────────────────────── */
:root {
    --ink: #111827;
    --muted: #5b6474;
    --paper: #f7f2ea;
    --sand: #efe4d4;
    --copper: #c76b3a;
    --teal: #0f766e;
    --teal-light: #14b8a6;
    --teal-dark: #0b4f4a;
    --stone: #1f2937;
    --white: #ffffff;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow-soft: 0 20px 60px rgba(17,24,39,.12);
    --shadow-card: 0 12px 24px rgba(17,24,39,.08);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --nav-height: 68px;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }

/* ── Scroll progress bar ───────────────────── */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--copper));
    z-index: 9999;
    transition: width .1s linear;
}

/* ── Body ───────────────────────────────────── */
body {
    font-family: "Space Grotesk", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top right, #f3ebdd 0%, #f8f4ee 42%, #fbf9f5 100%);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: -20% -20% auto;
    height: 65vh;
    background: radial-gradient(circle at 20% 20%, rgba(15,118,110,.12), transparent 45%),
                radial-gradient(circle at 75% 15%, rgba(199,107,58,.12), transparent 40%);
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
    animation: ambientDrift 14s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(0, 20px, 0) scale(1.05); }
}

/* ── Navigation ─────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(251,249,245,.86);
    border-bottom: 1px solid rgba(17,24,39,.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1200;
    transition: background .2s ease, box-shadow .2s ease;
    animation: navDrop .45s ease both;
}

.site-nav.is-scrolled {
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 24px rgba(17,24,39,.12);
}

.site-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    font-family: "DM Serif Display", serif;
    font-size: 1.22rem;
    color: var(--stone);
    letter-spacing: .02em;
    white-space: nowrap;
    transition: color .2s ease;
}

.brand:hover { color: var(--teal-dark); }

.nav-back {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid rgba(17,24,39,.1);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-back:hover {
    color: var(--teal-dark);
    background: var(--sand);
    transform: translateX(-2px);
}

@keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Page wrapper ───────────────────────────── */
.page {
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 48px) 20px 90px;
    position: relative;
    z-index: 1;
}

/* ── Scroll-reveal ──────────────────────────── */
.reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(.985);
    transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Hero section ───────────────────────────── */
.support-hero {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 52px 44px;
    box-shadow: 0 18px 40px rgba(17,24,39,.08);
    border: 1px solid rgba(17,24,39,.06);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: heroLift .55s ease both;
}

.support-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-light), var(--copper), var(--teal));
    animation: shimmerBar 2.4s linear infinite;
    background-size: 220% 100%;
}

@keyframes shimmerBar {
    from { background-position: 0 0; }
    to   { background-position: 220% 0; }
}

@keyframes heroLift {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Avatar ─────────────────────────────────── */
.avatar-wrap {
    position: relative;
    display: inline-flex;
    margin-bottom: 20px;
}

.avatar-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--copper));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "DM Serif Display", serif;
    font-size: 2.4rem;
    color: var(--white);
    animation: avatarPulse 3s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(15,118,110,.4);
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15,118,110,.4); }
    50%       { box-shadow: 0 0 0 12px rgba(15,118,110,0); }
}

.coffee-badge {
    position: absolute;
    bottom: -4px; right: -4px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--copper);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    border: 2px solid var(--white);
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15) rotate(8deg); }
}

/* ── Hero text ──────────────────────────────── */
.support-hero h1 {
    font-family: "DM Serif Display", serif;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    color: var(--teal-dark);
    line-height: 1.12;
    margin-bottom: 12px;
}

.support-hero .tagline {
    color: var(--muted);
    font-size: clamp(.95rem, 2vw, 1.1rem);
    max-width: 50ch;
    margin: 0 auto 28px;
}

.dev-name {
    color: var(--copper);
    font-style: normal;
}

/* ── Stats row ──────────────────────────────── */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: "DM Serif Display", serif;
    font-size: 1.6rem;
    color: var(--teal-dark);
    line-height: 1;
}

.stat-label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-divider {
    width: 1px;
    background: rgba(17,24,39,.1);
    align-self: stretch;
}

/* ── Section card ───────────────────────────── */
.section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 8px 20px rgba(17,24,39,.06);
    border: 1px solid rgba(17,24,39,.05);
    position: relative;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
    margin-top: 24px;
}

.section-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(20,184,166,.9), rgba(199,107,58,.9), rgba(15,118,110,.9));
    background-size: 220% 100%;
    opacity: .35;
    transform: scaleX(.22);
    transform-origin: left;
    transition: transform .35s ease, opacity .35s ease;
}

.section-card:hover {
    box-shadow: 0 12px 24px rgba(17,24,39,.08);
    transform: translateY(-2px);
}

.section-card:hover::before {
    opacity: .95;
    transform: scaleX(1);
    animation: sectionSweep 2.4s linear infinite;
}

@keyframes sectionSweep {
    from { background-position: 0 0; }
    to   { background-position: 220% 0; }
}

.section-card h2 {
    font-family: "DM Serif Display", serif;
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    color: var(--teal-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-card h2::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-light), transparent);
    border-radius: 2px;
}

/* ── Perks list ─────────────────────────────── */
.perk-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.perk-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--paper);
    border-radius: var(--radius-md);
    border: 1px solid rgba(17,24,39,.07);
    transition: background .2s ease, transform .2s ease;
}

.perk-item:hover {
    background: var(--white);
    transform: translateX(4px);
}

.perk-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.perk-text strong {
    display: block;
    color: var(--stone);
    font-size: .96rem;
    margin-bottom: 2px;
}

.perk-text small {
    color: var(--muted);
    font-size: .85rem;
}

/* ── UPI payment card ───────────────────────── */
.upi-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 8px 20px rgba(17,24,39,.06);
    border: 1px solid rgba(17,24,39,.05);
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    transition: box-shadow .3s ease, transform .3s ease;
}

.upi-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--copper), var(--teal), var(--copper));
    background-size: 220% 100%;
    animation: shimmerBar 2.4s linear infinite;
}

.upi-card h2 {
    font-family: "DM Serif Display", serif;
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    color: var(--teal-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.upi-card h2::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-light), transparent);
    border-radius: 2px;
}

/* ── UPI ID display ─────────────────────────── */
.upi-id-box {
    background: linear-gradient(135deg, #f0fdf9 0%, #f7f2ea 100%);
    border: 1.5px solid rgba(15,118,110,.2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.upi-id-content {
    display: grid;
    gap: 2px;
}

.upi-id-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--teal-dark);
    opacity: .7;
}

.upi-id-value {
    font-family: "Space Grotesk", monospace;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--stone);
    letter-spacing: .02em;
}

/* ── Copy button ────────────────────────────── */
.copy-btn {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--teal);
    color: var(--white);
    border: none;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15,118,110,.28);
}

.copy-btn:active { transform: scale(.97); }
.copy-btn.copied { background: #16a34a; }

/* ── Amount presets ─────────────────────────── */
.amount-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 12px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.amount-btn {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    background: var(--paper);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    text-align: center;
    transition: all .2s var(--ease-spring);
    display: grid;
    gap: 2px;
}

.amount-btn .rupee {
    font-size: 1.35rem;
    color: var(--stone);
}

.amount-btn .label {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 500;
}

.amount-btn:hover {
    background: var(--white);
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15,118,110,.15);
}

.amount-btn.selected {
    background: var(--teal);
    border-color: var(--teal);
}

.amount-btn.selected .rupee,
.amount-btn.selected .label {
    color: var(--white);
}

/* ── Custom Amount ──────────────────────────── */
.custom-amount-wrap {
    margin-bottom: 28px;
    text-align: left;
}

.custom-amount-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
    cursor: pointer;
}

.custom-amount-row {
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 2px solid rgba(17,24,39,.08);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    transition: all .2s ease;
}

.custom-amount-row:focus-within,
.custom-amount-input.active {
    background: var(--white);
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(15,118,110,.1);
}

.custom-rupee-prefix {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--stone);
    margin-right: 8px;
}

.custom-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--stone);
    outline: none;
    width: 100%;
}

.custom-amount-input::placeholder {
    color: rgba(91, 100, 116, 0.5);
}

/* Hide spinner for number input */
.custom-amount-input::-webkit-outer-spin-button,
.custom-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
}



/* ── QR Code Layout ─────────────────────────── */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--paper);
    border-radius: var(--radius-md);
    border: 1px solid rgba(17,24,39,.06);
}

.qr-frame {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1.5px solid rgba(15,118,110,.15);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 252px;
    height: 252px;
}

.qr-image {
    width: 220px;
    height: 220px;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}

.qr-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--copper));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "DM Serif Display", serif;
    font-size: 1.35rem;
    border: 4px solid var(--white);
    box-shadow: 0 4px 10px rgba(17,24,39,.15);
}

.download-qr-btn {
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--white);
    color: var(--teal);
    border: 1.5px solid var(--teal);
    font-family: inherit;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s ease;
}

.download-qr-btn:hover {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(15,118,110,.25);
    transform: translateY(-1px);
}

.download-qr-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.qr-instructions {
    text-align: left;
    background: var(--white);
    border: 1px dashed rgba(17,24,39,.12);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.instr-title {
    font-weight: 700;
    color: var(--stone);
    font-size: .92rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instr-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.instr-list li {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.5;
    position: relative;
    padding-left: 16px;
}

.instr-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
}



/* ── Note card ──────────────────────────────── */
.note-card {
    background: linear-gradient(135deg, #f0fdf9, #f7f2ea);
    border: 1px solid rgba(15,118,110,.15);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.note-icon {
    font-size: 1.4rem;
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.note-card p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}

.note-card strong {
    color: var(--teal-dark);
}

/* ── Back link ──────────────────────────────── */
.back-link-row {
    text-align: center;
    margin-top: 36px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid rgba(17,24,39,.1);
    color: var(--muted);
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s ease;
}

.back-link:hover {
    color: var(--teal-dark);
    background: var(--sand);
    transform: translateX(-3px);
}

/* ── Footer ─────────────────────────────────── */
footer {
    margin-top: 48px;
    text-align: center;
    color: var(--muted);
    font-size: .88rem;
}

.socials {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.socials a {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: var(--white);
    font-size: 1.1rem;
    transition: transform .25s var(--ease-spring), box-shadow .25s ease, background .2s ease;
}

.socials a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15,118,110,.24);
    background: var(--teal-dark);
}

/* ── Back to top ────────────────────────────── */
#top-btn {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(15,118,110,.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
    z-index: 999;
}

#top-btn.show { opacity: 1; transform: translateY(0); }
#top-btn:hover { background: var(--teal-dark); transform: translateY(-3px); }

/* ── Toast ──────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--stone);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 600px) {
    .support-hero { padding: 36px 24px; }
    .section-card, .upi-card { padding: 24px 20px; }
    .upi-id-box { flex-direction: column; align-items: flex-start; }
    .stats-row { gap: 20px; }
    .stat-divider { display: none; }
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}
