/* =========================================================
   vijay.tools — editorial premium system (shared)
   ========================================================= */
: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;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
}

.mono, .tabular { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    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-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* =========================================================
   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: 12px; }
.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); }
.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: 720px) { .nav-breadcrumb { display: none; } }
@media (max-width: 560px) {
    .nav-link-label { display: none; }
    .nav-link-accent { padding: 6px 9px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 28px 32px;
}
.hero-title {
    margin: 14px 0 0;
    font-family: var(--serif);
    font-weight: 550;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    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: 18px 0 0;
    max-width: 640px;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.trust-row {
    margin-top: 22px;
    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);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-primary, .btn-ghost, .btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--radius);
    font-family: inherit;
    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;
    text-decoration: none;
}
.btn-primary {
    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, .btn-accent:disabled, .btn-ghost:disabled {
    opacity: .5; cursor: not-allowed; transform: none;
}

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

.btn-accent {
    background: var(--accent);
    color: #fef4e1;
    border-color: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 8px -2px rgba(139,90,26,.35);
}
.btn-accent:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* =========================================================
   Paper card
   ========================================================= */
.paper-card {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
}

/* =========================================================
   Workbench
   ========================================================= */
.workbench {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 28px 48px;
}

/* Empty / drop state */
.empty-stage {
    padding: 24px 0 80px;
    display: flex;
    justify-content: center;
}
.drop-zone {
    width: 100%;
    max-width: 620px;
    padding: 56px 32px;
    border: 2px dashed var(--rule);
    border-radius: 20px;
    background: var(--paper-raised);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: var(--shadow-1);
}
.drop-zone:hover,
.drop-zone:focus-visible {
    border-color: var(--ink-muted);
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
    outline: none;
}
.drop-zone.dragging {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-2px);
}
.drop-icon {
    width: 56px; height: 56px;
    margin: 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
}
.drop-title {
    margin: 20px 0 0;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    font-variation-settings: 'opsz' 48;
}
.drop-sub {
    margin: 6px auto 0;
    max-width: 440px;
    color: var(--ink-soft);
    font-size: 14px;
}
.drop-btn {
    margin-top: 24px;
    pointer-events: none;
}

/* Work grid */
.work-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .work-grid { grid-template-columns: 1fr; }
}

/* Controls card */
.controls-card {
    padding: 22px 22px 20px;
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule-soft);
    margin-bottom: 16px;
}
.card-title {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    font-variation-settings: 'opsz' 32;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
    max-width: 220px;
}

/* Stat grid */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin: 0 0 18px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--rule-soft);
    border-radius: 12px;
}
.stat-grid > div { text-align: center; }
.stat-grid dt {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 3px;
}
.stat-grid dd {
    margin: 0;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}
.savings { color: var(--success); }
.savings.neutral { color: var(--ink-muted); }
.savings.worse   { color: var(--danger); }

/* Field groups */
.field-group {
    border: 0; padding: 0; margin: 0 0 18px;
}
.field-group legend {
    padding: 0;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.field-hint {
    margin: 6px 0 0;
    font-size: 11.5px;
    color: var(--ink-muted);
    line-height: 1.45;
}

.field { margin-bottom: 0; }
.field label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
}
input[type="text"], input[type="number"] {
    width: 100%;
    padding: 9px 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.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder { color: var(--ink-faint); }
input:disabled { opacity: .55; cursor: not-allowed; }

/* Slider */
.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.slider-row input[type="range"] { flex: 1; }
.slider-value {
    min-width: 44px;
    text-align: right;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
}
input[type="range"] {
    appearance: none;
    height: 4px;
    background: var(--rule);
    border-radius: 2px;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px; height: 16px;
    background: var(--ink);
    border-radius: 50%;
    cursor: grab;
    border: 2px solid var(--paper-raised);
    box-shadow: 0 1px 4px rgba(26,20,14,.3);
}
input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px;
    background: var(--ink);
    border-radius: 50%;
    cursor: grab;
    border: 2px solid var(--paper-raised);
}

/* Dimension row */
.dim-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: end;
}
.aspect-btn {
    align-self: end;
    height: 36px;
    width: 36px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.aspect-btn:hover { background: var(--paper-sunk); color: var(--ink); border-color: var(--ink-muted); }
.aspect-btn[aria-pressed="true"] {
    background: var(--accent);
    color: #fef4e1;
    border-color: var(--accent);
}
.aspect-btn .unlock-icon { display: none; }
.aspect-btn[aria-pressed="false"] .lock-icon   { display: none; }
.aspect-btn[aria-pressed="false"] .unlock-icon { display: inline; }
.aspect-btn[aria-pressed="false"] {
    background: var(--paper);
    color: var(--ink-muted);
    border-color: var(--rule);
}

.preset-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 8px;
    padding: 3px;
    background: var(--paper-sunk);
    border: 1px solid var(--rule);
    border-radius: 8px;
}
.preset-chip {
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.preset-chip:hover {
    background: var(--paper-raised);
    color: var(--ink);
}
.preset-chip.active {
    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);
}

/* Target row */
.target-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
}
.field-grow { position: relative; }
.field-grow input { padding-right: 36px; }
.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
    pointer-events: none;
}

.actions {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--rule-soft);
}
.actions .btn-primary { width: 100%; }

/* =========================================================
   Preview
   ========================================================= */
.preview-col { position: sticky; top: 80px; }
.preview-card { padding: 18px 18px 16px; }
.preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule-soft);
    margin-bottom: 14px;
}
.preview-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-soft);
}
.preview-meta .dot { color: var(--ink-faint); }
.preview-meta .mono { font-size: 12px; }

.preview-stage {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-sunk);
    border: 1px solid var(--rule-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    min-height: 400px;
    max-height: 75vh;
}
.checker-bg {
    background-image:
        linear-gradient(45deg, var(--paper-raised) 25%, transparent 25%, transparent 75%, var(--paper-raised) 75%),
        linear-gradient(45deg, var(--paper-raised) 25%, var(--paper-sunk) 25%, var(--paper-sunk) 75%, var(--paper-raised) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: var(--radius-sm);
    padding: 4px;
    max-width: 100%;
    max-height: 70vh;
    display: inline-flex;
}
#previewCanvas {
    display: block;
    max-width: 100%;
    max-height: calc(70vh - 8px);
    border-radius: 2px;
    object-fit: contain;
}

/* =========================================================
   Info strip
   ========================================================= */
.info-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 28px 72px;
    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;
    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); }

/* =========================================================
   Footer
   ========================================================= */
.site-foot {
    border-top: 1px solid var(--rule-soft);
    background: var(--paper-raised);
}
.foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
}
@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; 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; 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; }

@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; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* =========================================================
   Support FAB + Dialog
   ========================================================= */
.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); }

.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; } }
