/* =========================================================
   vijay.tools — editorial premium system
   Palette: warm paper · ink · burnt amber
   Type:    Fraunces (display) · Inter (UI) · JetBrains Mono (data)
   ========================================================= */

:root {
    --paper:        #faf6ee;
    --paper-raised: #ffffff;
    --paper-sunk:   #f3ecdb;
    --ink:          #1a140e;
    --ink-soft:     #3a322a;
    --ink-muted:    #7a6e60;
    --ink-faint:    #b7ad9b;

    --rule:         #ead9b8;
    --rule-soft:    #efe4cb;

    --accent:       #8b5a1a;
    --accent-hover: #6b4413;
    --accent-soft:  #f2e3c3;

    --success:      #2f7d4e;
    --danger:       #a83232;

    --shadow-1: 0 1px 0 rgba(26,20,14,.02), 0 1px 2px rgba(26,20,14,.04);
    --shadow-2: 0 1px 0 rgba(26,20,14,.02), 0 6px 18px -10px rgba(26,20,14,.18), 0 2px 4px -2px rgba(26,20,14,.06);
    --shadow-3: 0 2px 4px -2px rgba(26,20,14,.06), 0 14px 36px -14px rgba(26,20,14,.22), 0 36px 80px -32px rgba(26,20,14,.14);

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;

    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --serif: 'Fraunces', ui-serif, Georgia, serif;
    --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    background-image:
        radial-gradient(1200px 640px at 15% -10%, rgba(139,90,26,.06), transparent 60%),
        radial-gradient(1000px 520px at 100% 110%, rgba(139,90,26,.04), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
}

/* =========================================================
   Typography helpers
   ========================================================= */
.font-serif { font-family: var(--serif); }
.mono       { font-family: var(--mono); }
.muted      { color: var(--ink-muted); font-size: 13px; margin: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow-dot {
    display:inline-block;
    width:6px; height:6px;
    border-radius:50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.label-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* =========================================================
   Site nav
   ========================================================= */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--rule-soft);
    background: rgba(250, 246, 238, .85);
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -.01em;
}
.brand-name { font-size: 15px; }
.brand-dot  { color: var(--accent); font-weight: 700; }
.nav-meta {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-breadcrumb {
    color: var(--ink-muted);
    font-size: 13px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.nav-breadcrumb .slash { color: var(--ink-faint); }
.nav-breadcrumb .current { color: var(--ink); font-weight: 500; }

.nav-link {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nav-link:hover { background: var(--paper-sunk); color: var(--ink); }

/* Accent variant used by the "Buy me a chai" nav button */
.nav-link-accent {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: rgba(139, 90, 26, 0.25);
}
.nav-link-accent:hover {
    color: #fef4e1;
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 560px) {
    .nav-link-label { display: none; }
    .nav-link-accent { padding: 6px 9px; }
}

@media (max-width: 720px) {
    .nav-breadcrumb { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 28px 40px;
}
.hero-title {
    margin: 14px 0 0;
    font-family: var(--serif);
    font-weight: 550;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--ink);
    max-width: 880px;
    font-variation-settings: 'opsz' 144;
}
.hero-title-accent {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}
.hero-sub {
    margin: 20px 0 0;
    max-width: 640px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.trust-row {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-soft);
}
.pill::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
}

/* =========================================================
   Workbench (form + preview)
   ========================================================= */
.workbench {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 28px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

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

.form-card,
.preview-col {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
}

.form-card {
    padding: 28px 28px 24px;
}
.form-head h2 {
    margin: 0 0 4px;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    font-variation-settings: 'opsz' 48;
}
.form-head { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule-soft); }

.field-group {
    border: 0;
    padding: 0;
    margin: 0 0 24px;
}
.field-group legend {
    padding: 0;
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.field {
    margin-bottom: 14px;
}
.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
}
.field label .hint {
    font-weight: 400;
    font-size: 11.5px;
    color: var(--ink-muted);
    margin-left: 6px;
    letter-spacing: normal;
    text-transform: none;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--paper-raised);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--paper-raised);
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-faint);
}

textarea {
    resize: vertical;
    min-height: 72px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237a6e60' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.field-row:has(.field-grow:nth-child(1)):not(:has(.field:nth-child(3))) {
    grid-template-columns: 2fr 1fr;
}
.field-grow { min-width: 0; }

/* Segmented control */
.segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    background: var(--paper-sunk);
    border: 1px solid var(--rule);
    border-radius: 10px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
    text-align: center;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    margin: 0;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.segmented input:checked + label {
    background: var(--paper-raised);
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 2px 6px -2px rgba(26,20,14,.15);
}

/* Actions */
.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--rule-soft);
}
.btn-primary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.005em;
    cursor: pointer;
    transition: transform .08s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
    border: 1px solid transparent;
}
.btn-primary {
    flex: 1;
    background: var(--ink);
    color: var(--paper);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 2px 8px -2px rgba(26,20,14,.2);
}
.btn-primary:hover  { background: #2a2218; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 6px 14px -4px rgba(26,20,14,.3); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-ghost {
    background: transparent;
    border-color: var(--rule);
    color: var(--ink-soft);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-muted); }

/* =========================================================
   Preview column
   ========================================================= */
.preview-col {
    position: sticky;
    top: 80px;
    padding: 22px 22px 24px;
}
.preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule-soft);
}
.preview-title {
    margin: 2px 0 0;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.01em;
    font-variation-settings: 'opsz' 36;
}
.preview-counter {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-muted);
    white-space: nowrap;
    background: var(--paper-sunk);
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--rule-soft);
}

.preview-stage {
    margin-top: 16px;
    padding: 18px;
    background: var(--paper-sunk);
    border-radius: var(--radius);
    border: 1px solid var(--rule-soft);
    max-height: 640px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* A single receipt rendered in the preview */
.receipt-card {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 22px 22px 18px;
    box-shadow: var(--shadow-2);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.receipt-card:last-child { margin-bottom: 0; }

.receipt-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 35%, var(--rule) 35.5%, var(--rule) 100%);
}

.receipt-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--rule);
}
.receipt-heading {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0;
    font-variation-settings: 'opsz' 24;
}
.receipt-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-muted);
    text-align: right;
    line-height: 1.5;
}
.receipt-meta strong { color: var(--ink); font-weight: 600; }

.receipt-body {
    padding: 14px 0 12px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--ink);
}
.receipt-body .received {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .02em;
    font-variation-settings: 'opsz' 24;
}
.receipt-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 2px 8px;
    background: var(--accent-soft);
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--mono);
    color: var(--ink);
    border: 1px solid rgba(139,90,26,.2);
}
.receipt-body .names {
    font-weight: 600;
    color: var(--ink);
}
.receipt-body .property {
    font-style: italic;
    color: var(--ink-soft);
}

.receipt-signature {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--rule);
}
.sig-block { font-size: 12.5px; }
.sig-line {
    margin: 0 0 4px;
    color: var(--ink-muted);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}
.sig-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--ink);
    margin: 0;
}
.sig-pan {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-muted);
    margin-top: 2px;
}

/* Revenue stamp placeholder */
.revenue-stamp {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px dashed var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--ink-faint);
    text-align: center;
    line-height: 1.15;
    letter-spacing: .04em;
    text-transform: uppercase;
    flex-shrink: 0;
    transform: rotate(-6deg);
}

/* Empty preview state */
.preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    color: var(--ink-muted);
}
.preview-empty svg { color: var(--ink-faint); margin-bottom: 10px; }
.preview-empty p { margin: 0; font-size: 13px; }

.preview-more {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--paper-raised);
    border: 1px dashed var(--rule);
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--ink-muted);
    text-align: center;
    font-style: italic;
}

/* =========================================================
   Info strip ("How it works")
   ========================================================= */
.info-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 28px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 800px) {
    .info-strip { grid-template-columns: 1fr; }
}
.info-strip article {
    padding: 22px 22px 20px;
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    transition: transform .2s ease, box-shadow .2s ease;
}
.info-strip article:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}
.info-num {
    font-family: var(--mono);
    font-weight: 500;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: .1em;
    margin-bottom: 12px;
}
.info-strip h4 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -.01em;
    color: var(--ink);
    font-variation-settings: 'opsz' 36;
}
.info-strip p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
}

/* =========================================================
   Footer
   ========================================================= */
.site-foot {
    border-top: 1px solid var(--rule-soft);
    background: var(--paper-raised);
    margin-top: 0;
}
.foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 700px) {
    .foot-inner { grid-template-columns: 1fr; }
}
.foot-brand { margin: 0 0 6px; font-weight: 600; font-size: 15px; }
.foot-note {
    margin: 0;
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.55;
    max-width: 320px;
}
.foot-note a { color: var(--accent); text-decoration: none; }
.foot-note a:hover { text-decoration: underline; }
.foot-legal {
    color: var(--ink-muted);
    font-size: 12.5px;
    line-height: 1.6;
    max-width: 520px;
    justify-self: end;
    text-align: right;
}
@media (max-width: 700px) {
    .foot-legal { justify-self: start; text-align: left; }
}
.foot-legal p { margin: 0; }

/* =========================================================
   Toast
   ========================================================= */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 50;
}
.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.danger  { background: var(--danger); }
.toast.success { background: var(--success); }
.toast svg { width: 14px; height: 14px; }

/* Entry animation for hero */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero > * { animation: fade-up .5s ease-out both; }
.hero > *:nth-child(2) { animation-delay: .05s; }
.hero > *:nth-child(3) { animation-delay: .1s; }
.hero > *:nth-child(4) { animation-delay: .15s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus ring for keyboard users */
:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Print (if anyone prints this page) */
@media print {
    .site-nav, .site-foot, .form-col, .info-strip, .toast, .preview-head,
    .support-fab, .support-dialog { display: none; }
    body { background: white; }
    .preview-stage { padding: 0; background: white; border: 0; }
}

/* =========================================================
   Support FAB + Dialog — matched to editorial cream palette
   ========================================================= */
.support-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, #d88f3a 0%, #b06f1f 50%, #8b5a1a 100%);
    color: #fef4e1;
    box-shadow:
        0 10px 20px -5px rgba(139, 90, 26, 0.35),
        0 0 0 1px rgba(26, 20, 14, 0.08);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    transition: transform .15s ease, box-shadow .15s ease;
}
.support-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 14px 24px -5px rgba(139, 90, 26, 0.45),
        0 0 0 1px rgba(26, 20, 14, 0.08);
}
.support-fab:active { transform: translateY(0) scale(1); }
.support-fab-arc {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.support-fab-text {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    fill: #fef4e1;
    stroke: #fef4e1;
    stroke-width: 0.9;
    paint-order: stroke fill;
}
.support-fab-icon {
    position: relative;
    width: 16px;
    height: 16px;
    z-index: 1;
    transition: transform .15s ease;
}
.support-fab:hover .support-fab-icon {
    transform: rotate(-6deg) scale(1.1);
}

/* Dialog container */
.support-dialog {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}
.support-dialog.open {
    display: flex;
    animation: support-fade-in 0.2s ease-out;
}

.support-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 14, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.support-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(26, 20, 14, 0.25),
        0 0 0 1px rgba(139, 90, 26, 0.05);
    animation: support-slide-up 0.25s ease-out;
    color: var(--ink);
}

.support-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.support-close:hover { background: var(--paper-raised); color: var(--ink); border-color: var(--ink-muted); }
.support-close svg { width: 16px; height: 16px; }

.support-body {
    padding: 32px 24px 24px;
    text-align: center;
}

.support-badge {
    margin: 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #d88f3a 0%, var(--accent) 55%, #6b4413 100%);
    box-shadow:
        0 10px 20px -5px rgba(139, 90, 26, 0.35),
        0 0 0 4px var(--paper-raised);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fef4e1;
    overflow: visible;
    flex-shrink: 0;
}
.support-badge svg {
    width: 26px;
    height: 26px;
    overflow: visible;
    display: block;
}

.support-title {
    margin: 16px 0 0;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    font-variation-settings: 'opsz' 36;
}

.support-sub {
    margin: 6px auto 0;
    max-width: 280px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.support-amounts {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.support-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--paper);
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.support-amount:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 6px 16px -8px rgba(139, 90, 26, 0.3);
}
.support-amount:hover .support-amount-label { color: var(--accent); }
.support-amount-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color .15s ease;
}
.support-amount-value {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.support-qr-wrap {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.support-qr-label {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.support-qr {
    padding: 6px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px -12px rgba(26, 20, 14, 0.2);
}
.support-qr img {
    width: 200px;
    height: auto;
    display: block;
    border-radius: 6px;
}

.support-copy {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--paper);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.support-copy:hover { background: var(--paper-raised); border-color: var(--ink-muted); }
.support-copy svg { width: 14px; height: 14px; color: var(--ink-muted); }
.support-copy.copied svg { color: var(--success); }

.support-hint {
    margin: 12px 0 0;
    font-size: 10.5px;
    color: var(--ink-muted);
}

.support-foot {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--rule-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--ink-muted);
}
.support-foot svg { width: 12px; height: 12px; color: var(--accent); }
.support-foot strong { font-weight: 600; color: var(--ink); }

@keyframes support-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes support-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .support-panel { max-width: 100%; }
    .support-fab { right: 14px; bottom: 14px; }
}
