:root {
  --ink: #132522;
  --muted: #667672;
  --paper: #f5f6f1;
  --panel: #fffef9;
  --line: #dfe5dc;
  --green: #0d604f;
  --green-dark: #084638;
  --lime: #cce86e;
  --warning: #fff4d7;
  --error: #fee7e4;
  --shadow: 0 20px 60px rgba(28, 54, 47, .09);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: var(--green); text-decoration: none; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: rgba(245,246,241,.92); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--green); border-radius: 11px 11px 11px 3px; }
nav { display: flex; align-items: center; gap: 22px; font-size: .9rem; }
.user-chip { padding: 7px 12px; background: white; border: 1px solid var(--line); border-radius: 999px; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; color: var(--green); padding: 0; font: inherit; cursor: pointer; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 70px; }
footer { display: grid; gap: 6px; color: var(--muted); text-align: center; font-size: .78rem; padding: 26px 20px 38px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.055em; margin-bottom: 24px; }
h1 span { color: var(--green); }
h2 { font-size: 1.4rem; letter-spacing: -.025em; margin-bottom: 8px; }
.lead { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.eyebrow { color: var(--green); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; margin-bottom: 14px; }
.hero, .admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.hero > div:first-child { max-width: 730px; }
.price-card { min-width: 270px; padding: 25px; background: var(--green); color: white; border-radius: 25px 25px 25px 6px; box-shadow: var(--shadow); }
.price-card span, .price-card small { display: block; opacity: .75; }
.price-card strong { display: block; font-size: 2.1rem; letter-spacing: -.04em; margin: 6px 0; }
.price-card .price-card-ttc { margin-top: 7px; opacity: .9; color: var(--lime); font-weight: 800; }
.price-card .quiet-link { color: var(--lime); display: inline-block; margin-top: 14px; }
.compact-price { min-width: 180px; padding: 16px 20px; border-radius: 18px 18px 18px 6px; }
.compact-price strong { font-size: 1.35rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.stats-grid article { padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.stats-grid span { display: block; color: var(--muted); font-size: .78rem; }
.stats-grid strong { font-size: 1.5rem; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 22px; align-items: start; }
.preview-shell { width: min(1500px, calc(100% - 40px)); }
.preview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.preview-heading h1 { font-size: clamp(2.2rem, 4vw, 4rem); }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(380px, .65fr); gap: 22px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 30px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 23px; }
.badge { color: var(--green); background: #e1f1cf; border-radius: 999px; padding: 7px 11px; font-size: .72rem; font-weight: 750; }
.stack-form { display: flex; flex-direction: column; gap: 17px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: .83rem; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #ccd6cd; border-radius: 11px; background: white; padding: 12px 13px; color: var(--ink); font: inherit; outline: none; }
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,96,79,.12); }
label small { color: var(--muted); font-weight: 400; }
.drop-zone { position: relative; min-height: 205px; align-items: center; justify-content: center; text-align: center; border: 1.5px dashed #aebdaf; border-radius: 19px; background: #f8faf5; cursor: pointer; transition: .2s ease; padding: 24px; }
.drop-zone:hover { border-color: var(--green); background: #f1f7ec; }
.drop-zone input, .compact-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone span, .drop-zone small { color: var(--muted); font-weight: 400; }
.upload-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: white !important; background: var(--green); font-size: 1.4rem; margin-bottom: 5px; }
.support-drop { min-height: 180px; }
.compact-drop { min-height: 150px; }
.support-callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 22px; }
.support-callout p { color: var(--muted); max-width: 760px; margin-bottom: 0; }
.user-support-panel { margin-top: 22px; }
.user-support-panel .panel-heading p { color: var(--muted); margin-bottom: 0; }
.support-history-card { margin-top: 18px; }
.manual-box { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.manual-box summary { cursor: pointer; padding: 15px 17px; font-weight: 700; font-size: .84rem; }
.manual-content { border-top: 1px solid var(--line); padding: 17px; background: #fafbf7; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.full { grid-column: 1 / -1; }
.check-row { flex-direction: row; align-items: center; font-weight: 600; }
.check-row input { width: auto; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 12px; border: 0; padding: 11px 19px; font: inherit; font-weight: 800; cursor: pointer; }
.primary-button { color: white; background: var(--green); }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { color: var(--green); background: white; border: 1px solid #b8c8bd; }
.wide { width: 100%; }
.pdf-panel { padding-bottom: 20px; }
.pdf-viewer { display: block; width: 100%; height: min(78vh, 880px); min-height: 620px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.correction-panel { position: sticky; top: 92px; }
.suggestion-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.suggestion-chip, .balance-chip { border: 1px solid #c9d6ca; background: #f8faf5; color: var(--green); border-radius: 999px; padding: 8px 11px; font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; }
.suggestion-chip:hover, .balance-chip:hover { border-color: var(--green); background: #eef7e8; }
.balance-suggestions { display: grid; gap: 8px; }
.balance-chip { width: 100%; text-align: left; border-radius: 14px; display: grid; gap: 2px; color: var(--ink); }
.balance-chip strong { color: var(--green); }
.balance-chip span, .balance-chip small { color: var(--muted); overflow-wrap: anywhere; }
.quick-help { display: grid; gap: 4px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.quick-help strong { color: var(--ink); }
.extracted-panel { margin-top: 22px; }
.extracted-panel .panel-heading p { color: var(--muted); margin-bottom: 0; }
.selection-tools { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.selection-tools .secondary-button { min-height: 38px; padding: 8px 13px; font-size: .82rem; }
.extracted-text { width: 100%; min-height: 360px; resize: vertical; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: white; color: var(--ink); font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; white-space: pre; overflow: auto; }
.empty-text { padding: 22px; border: 1px dashed #b5c2b7; border-radius: 16px; color: var(--muted); background: #f8faf5; }
.preview-warning { margin-bottom: 22px; }
.preview-warning p { margin: 0 0 8px; }
.preview-warning p:last-child { margin-bottom: 0; }
.side-panel p { color: var(--muted); font-size: .9rem; }
.compact-file { position: relative; border: 1px dashed #b5c2b7; border-radius: 13px; padding: 16px; cursor: pointer; }
.compact-file span { color: var(--muted); font-size: .75rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-note { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-note span { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.flash-stack { position: fixed; top: 86px; right: 22px; z-index: 30; width: min(400px, calc(100% - 44px)); }
.flash { padding: 13px 15px; margin-bottom: 8px; border-radius: 12px; box-shadow: var(--shadow); background: white; border: 1px solid var(--line); }
.flash.error { background: var(--error); border-color: #efc2bc; }
.flash.success { background: #e3f3db; border-color: #bad6ad; }
.auth-shell { min-height: calc(100vh - 148px); display: grid; place-items: center; padding: 50px 0; }
.auth-card { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 28px 28px 28px 8px; padding: 38px; box-shadow: var(--shadow); }
.auth-card-wide { width: min(690px, 100%); }
.auth-card h1 { font-size: 2.7rem; }
.developer-credit { color: var(--green); font-size: .86rem; font-weight: 750; margin: -8px 0 22px; }
.auth-switch { color: var(--muted); text-align: center; margin: 23px 0 0; font-size: .88rem; }
.result-card { width: min(750px, 100%); margin: 20px auto; padding: 48px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); }
.result-card h1 { font-size: 3.3rem; }
.result-card .lead { margin-left: auto; margin-right: auto; }
.success-mark { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px 20px 20px 5px; margin: 0 auto 22px; background: var(--green); color: white; font-size: 2rem; }
.download-list { display: grid; gap: 9px; margin: 30px 0; text-align: left; }
.download-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 13px; padding: 14px 17px; background: white; }
.download-list a:hover { border-color: var(--green); }
.download-locked-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px dashed #d7b98a; border-radius: 13px; padding: 14px 17px; background: #fff8e7; color: #7d5c18; }
.download-list span { min-width: 0; }
.download-list strong, .download-list small, .download-locked-row strong, .download-locked-row small { display: block; overflow-wrap: anywhere; }
.download-list small { color: var(--muted); }
.download-locked-row small { color: #8a6500; }
.result-support-box { margin: 26px 0; padding: 22px; border: 1px solid #d9e3d4; border-radius: 20px; background: #f8faf5; text-align: left; }
.result-support-box h2 { margin-bottom: 8px; }
.result-support-box p { color: var(--muted); }
.result-support-form { gap: 13px; }
.warning-box { text-align: left; background: var(--warning); padding: 14px 17px; border-radius: 13px; margin: 0 0 26px; }
.warning-box li { margin: 6px 0; }
.holder-line { color: var(--muted); }
.admin-heading h1 { font-size: 3.5rem; }
.table-panel { padding: 0; overflow: hidden; }
.support-admin-panel { margin-bottom: 22px; }
.support-admin-panel .panel-heading p { color: var(--muted); margin-bottom: 0; }
.support-list { display: grid; gap: 14px; }
.support-ticket { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 260px); gap: 18px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcf8; }
.support-ticket.user-support-ticket { grid-template-columns: 1fr; }
.support-ticket.is-resolved { opacity: .72; }
.support-ticket-main { display: grid; gap: 12px; }
.support-ticket-main p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: .82rem; }
.support-ticket-meta strong { color: var(--ink); }
.support-ticket-meta small { margin-top: 0; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.status-pill.open { color: var(--green); background: #e1f1cf; }
.status-pill.progress { color: #8a6500; background: #fff0bd; }
.status-pill.resolved { color: #6d6355; background: #eee8dc; }
.ticket-timeline { display: grid; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.ticket-timeline li { display: grid; grid-template-columns: minmax(130px, .45fr) 1fr; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.60); }
.ticket-timeline li span { font-weight: 850; color: var(--ink); }
.ticket-timeline li small { margin: 0; color: var(--muted); }
.ticket-timeline li.pending { opacity: .62; }
.support-capture { display: grid; gap: 8px; color: var(--green); font-size: .78rem; font-weight: 800; text-align: center; }
.support-capture img { width: 100%; max-height: 170px; object-fit: cover; border: 1px solid var(--line); border-radius: 14px; background: white; }
.support-files { display: grid; gap: 7px; padding: 11px; border: 1px solid #dce5d7; border-radius: 13px; background: white; }
.support-files strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.support-file-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 800; font-size: .82rem; overflow-wrap: anywhere; }
.support-file-link::before { content: "↳"; color: var(--muted); }
.support-resolution { padding: 12px; border-left: 4px solid var(--green); border-radius: 10px; background: #f1f7ec; }
.support-resolution p { margin: 0; }
.support-resolution small { color: var(--muted); }
.support-resolution-form { display: grid; gap: 10px; padding: 12px; border: 1px dashed #b8c8bd; border-radius: 14px; background: #fffef9; }
.support-resolution-form textarea { min-height: 84px; }
.assistant-admin-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -6px 0 20px; padding: 14px 16px; border: 1px solid #dce5d7; border-radius: 16px; background: #f8faf5; }
.assistant-admin-banner div { display: grid; gap: 3px; }
.assistant-admin-banner strong { color: var(--ink); }
.assistant-admin-banner span,
.assistant-admin-banner small { color: var(--muted); }
.assistant-admin-banner.is-ready { border-color: rgba(11,107,88,.22); background: linear-gradient(135deg, rgba(232,245,217,.78), rgba(255,255,255,.72)); }
.assistant-admin-banner.is-missing { border-color: #efc2bc; background: var(--error); }
.assistant-ticket-box { display: grid; gap: 10px; padding: 12px; border: 1px solid #dce5d7; border-radius: 14px; background: linear-gradient(135deg, rgba(248,250,245,.96), rgba(255,255,255,.78)); }
.assistant-ticket-box pre { margin: 0; padding: 12px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; white-space: pre-wrap; }
.assistant-ticket-box small { color: var(--muted); }
.assistant-copy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.assistant-copy-status { color: var(--green); font-size: .78rem; font-weight: 800; }
.mini-button[disabled] { cursor: not-allowed; opacity: .55; transform: none !important; box-shadow: none !important; }
.assistant-button { color: var(--green-dark); border-color: rgba(11,107,88,.24); background: #eef7e8; }
.assistant-copy-button { color: var(--green-dark); border-color: rgba(11,107,88,.22); background: #f3faec; }
.check-inline { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.check-inline input { width: auto; margin-top: 2px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; text-align: left; background: #f5f7f2; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
td small { display: block; color: var(--muted); margin-top: 3px; }
.quiet-link { text-decoration: underline; text-underline-offset: 3px; }
.billing-month-list { display: grid; gap: 7px; min-width: 210px; }
.billing-month-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.billing-month-item span { font-weight: 750; }
.billing-month-item.removed { background: #f6f2eb; color: var(--muted); }
.billing-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.billing-export-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.billing-period-selector { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 12px; }
.billing-period-selector label { min-width: 190px; color: var(--muted); }
.billing-period-selector select { min-height: 38px; padding: 8px 11px; border-radius: 10px; }
.client-export-actions { justify-content: flex-start; margin-top: 9px; }
.muted-list { opacity: .92; }
.mini-button { min-height: 30px; border: 1px solid #b8c8bd; border-radius: 9px; background: white; color: var(--green); padding: 6px 9px; font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.mini-button:hover { border-color: var(--green); background: #f1f7ec; }
.mini-button.danger { color: #9b3329; border-color: #edc5bf; background: #fff8f6; }
.mini-button.danger:hover { background: #fee7e4; border-color: #d9988f; }
.approval-admin-panel,
.approval-waiting-panel { margin-bottom: 22px; }
.approval-ticket { grid-template-columns: minmax(0, 1fr) auto; }
.approval-actions { display: flex; justify-content: flex-end; align-items: center; }
.approval-waiting-panel .warning-box { margin-bottom: 0; }
.approval-waiting-panel .warning-box p:last-child { margin-bottom: 0; }
.user-selector-shell { display: grid; gap: 8px; margin-bottom: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.56); }
.user-selector-shell small { color: var(--muted); }
.admin-user-select { cursor: pointer; font-weight: 750; }
.user-management-list.is-dropdown { display: block; }
.user-management-ticket[hidden] { display: none; }
.user-management-ticket { grid-template-columns: 1fr; }
.reset-password-form { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)) auto; gap: 10px; align-items: end; }
.download-access-form { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.72); }
.download-access-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.download-access-summary { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; color: var(--muted); font-size: .8rem; }
.download-access-summary span { padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf5; }
.download-access-summary strong { color: var(--ink); }
.download-access-panel { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.download-access-panel p { color: var(--muted); margin-bottom: 0; }
.download-access-panel.is-locked { border-color: #e0c38f; background: linear-gradient(135deg, #fff8e7, var(--panel)); }
.download-access-amount { min-width: 190px; padding: 16px 18px; border-radius: 18px; background: var(--green); color: white; }
.download-access-amount span { display: block; opacity: .72; font-size: .78rem; }
.download-access-amount strong { display: block; font-size: 1.35rem; }
@media (max-width: 780px) {
  .topbar { height: auto; min-height: 64px; padding: 12px 20px; }
  nav { gap: 12px; }
  .user-chip { display: none; }
  .page-shell { width: min(100% - 24px, 1180px); padding-top: 38px; }
  .hero, .admin-heading { align-items: stretch; flex-direction: column; gap: 23px; }
  .preview-heading { align-items: stretch; flex-direction: column; gap: 18px; }
  .price-card { width: 100%; min-width: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .support-callout { align-items: stretch; flex-direction: column; }
  .preview-grid { grid-template-columns: 1fr; }
  .support-ticket, .approval-ticket { grid-template-columns: 1fr; }
  .ticket-timeline li,
  .reset-password-form { grid-template-columns: 1fr; }
  .download-access-summary { grid-template-columns: 1fr; }
  .download-access-panel { align-items: stretch; flex-direction: column; }
  .billing-actions { justify-content: flex-start; }
  .approval-actions, .approval-actions .primary-button { width: 100%; }
  .correction-panel { position: static; }
  .pdf-viewer { height: 70vh; min-height: 460px; }
  .two-columns { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .panel, .auth-card, .result-card { padding: 24px; border-radius: 21px; }
  h1 { font-size: 2.75rem; }
}

/* Finition premium */
:root {
  --paper: #f3f0e8;
  --panel: rgba(255, 254, 248, .92);
  --line: rgba(185, 200, 189, .58);
  --green: #0b6b58;
  --green-dark: #063f34;
  --gold: #c9a24f;
  --gold-soft: #f1dfaa;
  --shadow: 0 26px 80px rgba(16, 42, 35, .13);
  --shadow-soft: 0 14px 38px rgba(16, 42, 35, .08);
}

html {
  background:
    radial-gradient(circle at 12% 8%, rgba(210, 229, 177, .42), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(201, 162, 79, .20), transparent 28%),
    linear-gradient(135deg, #f8f6ef 0%, #eef2e7 48%, #f9f5eb 100%);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,.50) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.42) 1px, transparent 1px);
  background-size: 44px 44px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% -10%, rgba(11,107,88,.16), transparent 42%),
    radial-gradient(circle at 95% 88%, rgba(201,162,79,.16), transparent 34%);
}

.topbar {
  height: 76px;
  border-bottom: 1px solid rgba(255,255,255,.72);
  background: rgba(255, 254, 248, .74);
  box-shadow: 0 12px 34px rgba(20, 42, 36, .07);
}

.brand { font-size: 1.02rem; }
.brand-mark {
  background: linear-gradient(145deg, var(--green), #0f8069);
  box-shadow: 0 10px 24px rgba(11, 107, 88, .25);
}

nav a, .link-button { font-weight: 650; }
.user-chip {
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.page-shell { position: relative; }

.hero, .admin-heading {
  position: relative;
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,253,243,.62)),
    radial-gradient(circle at 100% 0%, rgba(204,232,110,.22), transparent 42%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero::after, .admin-heading::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201,162,79,.20), transparent 68%);
}

h1 { text-wrap: balance; }
.lead { line-height: 1.65; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.price-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(241,223,170,.42), transparent 30%),
    linear-gradient(145deg, #0d735f, #06483b);
  box-shadow: 0 24px 54px rgba(11,107,88,.24);
}
.price-card::after {
  content: "";
  position: absolute;
  inset: auto -35px -55px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
}

.panel, .stats-grid article, .auth-card, .result-card {
  border-color: rgba(255,255,255,.72);
  background:
    linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,253,246,.82));
  box-shadow: var(--shadow-soft);
}

.panel, .stats-grid article, .download-list a, .billing-month-item {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.panel:hover, .stats-grid article:hover, .download-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(11,107,88,.28);
}

.main-panel {
  background:
    linear-gradient(160deg, rgba(255,255,255,.94), rgba(252,250,241,.86)),
    radial-gradient(circle at 0% 100%, rgba(204,232,110,.18), transparent 38%);
}

.side-panel {
  background:
    linear-gradient(160deg, rgba(255,255,255,.94), rgba(252,248,235,.88)),
    radial-gradient(circle at 100% 0%, rgba(201,162,79,.14), transparent 42%);
}

.drop-zone {
  border-color: rgba(11,107,88,.28);
  background:
    linear-gradient(145deg, rgba(255,255,255,.76), rgba(243,249,237,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.drop-zone:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 16px 32px rgba(11,107,88,.10);
}
.upload-icon {
  background: linear-gradient(145deg, var(--green), #0f8069);
  box-shadow: 0 12px 26px rgba(11,107,88,.24);
}

.primary-button, .secondary-button, .mini-button {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--green), #0b7a64);
  box-shadow: 0 14px 28px rgba(11,107,88,.22);
}
.primary-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0f8069, var(--green-dark));
  box-shadow: 0 18px 36px rgba(11,107,88,.28);
}
.secondary-button {
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.secondary-button:hover, .mini-button:hover {
  transform: translateY(-1px);
}

.badge, .status-pill.open {
  background: linear-gradient(135deg, #e8f5d9, #d7efb8);
}

.auth-shell {
  align-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(11,107,88,.10), transparent 42%);
}
.auth-card {
  position: relative;
  overflow: hidden;
  width: min(470px, 100%);
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(11,107,88,.12);
  border-radius: 999px;
  background: rgba(232,245,217,.64);
}

footer span:last-child {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 780px) {
  .hero, .admin-heading { padding: 26px; border-radius: 24px; }
  .panel:hover, .stats-grid article:hover, .download-list a:hover { transform: none; }
  .developer-credit { border-radius: 16px; }
}

/* Finition ultra premium */
:root {
  --emerald: #08715d;
  --emerald-soft: rgba(8, 113, 93, .10);
  --champagne: #d8bd73;
  --champagne-soft: rgba(216, 189, 115, .22);
  --glass: rgba(255, 255, 255, .66);
  --glass-strong: rgba(255, 255, 255, .82);
  --radius-xl: 34px;
  --radius-lg: 26px;
}

body {
  isolation: isolate;
  overflow-x: hidden;
  background-color: #f6f2e9;
}

body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

.site-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  display: block;
  width: 34vw;
  height: 34vw;
  min-width: 340px;
  min-height: 340px;
  border-radius: 999px;
  filter: blur(24px);
  opacity: .72;
  transform: translate3d(0, 0, 0);
  animation: premiumFloat 18s ease-in-out infinite alternate;
}

.orb-one {
  left: -10vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(8,113,93,.20), transparent 68%);
}

.orb-two {
  right: -12vw;
  top: 4vh;
  background: radial-gradient(circle, rgba(216,189,115,.27), transparent 67%);
  animation-duration: 22s;
}

.orb-three {
  left: 32vw;
  bottom: -22vh;
  background: radial-gradient(circle, rgba(204,232,110,.20), transparent 70%);
  animation-duration: 26s;
}

@keyframes premiumFloat {
  from { transform: translate3d(-14px, -10px, 0) scale(1); }
  to { transform: translate3d(18px, 24px, 0) scale(1.06); }
}

.topbar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,253,246,.68));
  border-bottom: 1px solid rgba(255,255,255,.86);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,189,115,.65), rgba(8,113,93,.36), transparent);
}

.brand {
  position: relative;
  padding: 8px 10px 8px 0;
}

.brand span:last-child {
  position: relative;
}

.brand span:last-child::after {
  content: "secure";
  position: absolute;
  left: 0;
  bottom: -14px;
  color: var(--muted);
  font-size: .53rem;
  font-weight: 850;
  letter-spacing: .20em;
  text-transform: uppercase;
  opacity: .65;
}

.brand-mark {
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -35% auto auto -50%;
  width: 70%;
  height: 170%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: rotate(28deg);
}

nav a,
.link-button,
.user-chip {
  border-radius: 999px;
}

nav a,
.link-button {
  padding: 9px 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

nav a:hover,
.link-button:hover {
  color: var(--green-dark);
  background: rgba(255,255,255,.62);
  transform: translateY(-1px);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 22px -34px auto;
  height: 240px;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(8,113,93,.07), rgba(216,189,115,.12), rgba(8,113,93,.06));
  filter: blur(32px);
}

.hero,
.admin-heading {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,253,244,.50)),
    radial-gradient(circle at 80% 20%, rgba(216,189,115,.18), transparent 28%),
    radial-gradient(circle at 8% 96%, rgba(8,113,93,.10), transparent 34%);
  backdrop-filter: blur(20px) saturate(1.18);
  box-shadow:
    0 38px 100px rgba(16,42,35,.13),
    inset 0 1px 0 rgba(255,255,255,.92);
}

.hero::before,
.admin-heading::before,
.panel::before,
.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(216,189,115,.42), rgba(8,113,93,.28), rgba(255,255,255,.70));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero > div,
.admin-heading > div {
  position: relative;
  z-index: 1;
}

.trust-strip,
.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-strip span,
.auth-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(8,113,93,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: #24423c;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.trust-strip span::before,
.auth-benefits span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--champagne), var(--green));
  box-shadow: 0 0 0 4px rgba(8,113,93,.08);
}

h1 {
  background: linear-gradient(110deg, #0e211d 0%, #0e211d 44%, var(--green) 82%);
  -webkit-background-clip: text;
  background-clip: text;
}

h1 span {
  background: linear-gradient(110deg, #07806a, #06483b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  h1 { color: transparent; }
}

.price-card {
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(14px);
}

.price-card::before {
  content: "";
  position: absolute;
  inset: -60% auto auto -30%;
  width: 72%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
  transform: rotate(25deg);
}

.price-card strong {
  text-shadow: 0 6px 22px rgba(0,0,0,.18);
}

.stats-grid article,
.panel,
.auth-card,
.result-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.12);
}

.stats-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--champagne), transparent);
}

.stats-grid article strong {
  color: var(--green-dark);
  letter-spacing: -.04em;
}

.panel-heading {
  position: relative;
}

.panel-heading h2,
.side-panel h2,
.support-callout h2 {
  letter-spacing: -.04em;
}

.drop-zone,
.compact-file,
input,
textarea,
select {
  backdrop-filter: blur(12px);
}

.drop-zone,
.compact-file {
  position: relative;
  overflow: hidden;
}

.drop-zone::after,
.compact-file::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,189,115,.70), transparent);
  opacity: .65;
}

input,
textarea,
select {
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(8,113,93,.68);
  box-shadow:
    0 0 0 4px rgba(8,113,93,.11),
    0 14px 30px rgba(8,113,93,.08);
}

.primary-button,
.secondary-button,
.mini-button {
  position: relative;
  overflow: hidden;
}

.primary-button::after,
.secondary-button::after,
.mini-button::after {
  content: none;
}

.primary-button:hover::after,
.secondary-button:hover::after,
.mini-button:hover::after {
  content: none;
}

.wide {
  min-height: 52px;
}

.table-panel {
  padding: 26px;
}

.table-wrap {
  border-radius: 22px;
  overflow: auto;
  background: rgba(255,255,255,.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.table-panel table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

.table-panel th {
  border: 0;
  background: transparent;
  padding: 10px 16px;
}

.table-panel td {
  border-top: 1px solid rgba(185,200,189,.42);
  border-bottom: 1px solid rgba(185,200,189,.42);
  background: rgba(255,255,255,.64);
}

.table-panel td:first-child {
  border-left: 1px solid rgba(185,200,189,.42);
  border-radius: 16px 0 0 16px;
}

.table-panel td:last-child {
  border-right: 1px solid rgba(185,200,189,.42);
  border-radius: 0 16px 16px 0;
  font-weight: 850;
}

.billing-month-item {
  background: rgba(255,255,255,.72);
  border-color: rgba(185,200,189,.50);
}

.billing-month-item:hover {
  transform: translateY(-1px);
  border-color: rgba(8,113,93,.26);
}

.support-ticket,
.support-resolution,
.support-files,
.empty-text {
  border-radius: 22px;
}

.support-capture img {
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(16,42,35,.16);
}

.auth-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.auth-card {
  border-radius: 30px;
  padding: 36px;
  box-shadow:
    0 38px 100px rgba(16,42,35,.15),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.auth-card h1 {
  margin-bottom: 14px;
}

.auth-benefits {
  margin: 20px 0 22px;
}

.developer-credit {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 26px rgba(8,113,93,.08);
}

footer {
  margin-top: 8px;
}

footer span:first-child::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(8,113,93,.08);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 900px) {
  .brand span:last-child::after { display: none; }
  nav a, .link-button { padding: 7px 8px; }
  .trust-strip, .auth-benefits { gap: 8px; }
  .trust-strip span, .auth-benefits span { border-radius: 14px; }
}

@media (max-width: 780px) {
  .site-ambient { display: none; }
  .hero, .admin-heading { border-radius: 28px; }
  .table-panel { padding: 18px; }
  .table-panel table { border-spacing: 0 8px; }
}

/* Mode sombre */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(8, 113, 93, .18);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.80), 0 12px 28px rgba(16,42,35,.07);
  font: inherit;
  font-size: .83rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 113, 93, .34);
  background: rgba(255,255,255,.84);
}

/* Page publique de présentation */
.nav-cta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(8,113,93,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  font-weight: 850;
}

.landing-shell {
  width: min(1220px, calc(100% - 40px));
  padding-top: 38px;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.landing-hero-copy,
.landing-proof-card,
.landing-card,
.privacy-section,
.workflow-section,
.landing-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8,113,93,.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,253,244,.58)),
    radial-gradient(circle at 85% 12%, rgba(216,189,115,.20), transparent 30%),
    radial-gradient(circle at 6% 96%, rgba(8,113,93,.09), transparent 34%);
  border-radius: 34px;
  box-shadow:
    0 34px 96px rgba(16,42,35,.12),
    inset 0 1px 0 rgba(255,255,255,.86);
}

.landing-hero-copy {
  padding: clamp(34px, 5vw, 68px);
}

.landing-hero-copy h1 {
  max-width: 780px;
  font-size: clamp(2.55rem, 6vw, 5.35rem);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.landing-trust {
  margin-top: 28px;
}

.landing-proof-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 30px;
  color: white;
  background:
    radial-gradient(circle at 88% 20%, rgba(216,189,115,.30), transparent 34%),
    linear-gradient(145deg, #0b4b3e, #09231e 74%);
}

.landing-proof-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -72px;
  top: -62px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
}

.proof-kicker {
  color: rgba(255,255,255,.70);
  font-size: .8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.landing-proof-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.landing-proof-card small {
  color: rgba(255,255,255,.75);
  font-weight: 750;
}

.landing-proof-card hr {
  width: 100%;
  margin: 24px 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.18);
}

.landing-proof-card p {
  margin-bottom: 0;
  color: rgba(255,255,255,.82);
}

.landing-section {
  margin-top: 22px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-card {
  padding: 28px;
  border-radius: 24px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--green);
  border: 1px solid rgba(8,113,93,.16);
  background: rgba(8,113,93,.08);
  font-weight: 900;
}

.landing-card p,
.workflow-steps p,
.landing-cta p {
  color: var(--muted);
  margin-bottom: 0;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: start;
  padding: clamp(30px, 4vw, 46px);
}

.privacy-section h2,
.workflow-section h2,
.landing-cta h2 {
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.privacy-list {
  display: grid;
  gap: 12px;
}

.privacy-list article {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(8,113,93,.10);
  border-radius: 17px;
  background: rgba(255,255,255,.58);
}

.privacy-list strong {
  color: var(--green-dark);
}

.privacy-list span {
  color: var(--muted);
  font-size: .9rem;
}

.workflow-section {
  padding: clamp(30px, 4vw, 46px);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.workflow-steps article {
  padding: 20px;
  border: 1px solid rgba(8,113,93,.11);
  border-radius: 19px;
  background: rgba(255,255,255,.62);
}

.workflow-steps span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--green);
  border: 1px solid rgba(8,113,93,.16);
  background: rgba(8,113,93,.08);
  font-weight: 900;
}

.workflow-steps strong {
  display: block;
  margin-bottom: 7px;
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 42px);
}

.landing-cta h2 {
  margin-bottom: 10px;
}

html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .landing-hero-copy,
html[data-theme="dark"] .landing-card,
html[data-theme="dark"] .privacy-section,
html[data-theme="dark"] .workflow-section,
html[data-theme="dark"] .landing-cta {
  border-color: rgba(145,169,160,.22);
  background:
    radial-gradient(circle at 85% 12%, rgba(224,199,119,.10), transparent 30%),
    radial-gradient(circle at 6% 96%, rgba(113,231,201,.08), transparent 34%),
    rgba(8,22,19,.76);
}

html[data-theme="dark"] .landing-proof-card {
  border-color: rgba(145,169,160,.24);
  background:
    radial-gradient(circle at 88% 20%, rgba(224,199,119,.16), transparent 34%),
    linear-gradient(145deg, rgba(9,55,47,.98), rgba(6,17,15,.98) 74%);
}

html[data-theme="dark"] .privacy-list article,
html[data-theme="dark"] .workflow-steps article {
  border-color: rgba(145,169,160,.20);
  background: rgba(7,18,15,.54);
}

html[data-theme="dark"] .privacy-list strong {
  color: #80edcf;
}

@media (max-width: 980px) {
  .landing-hero,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .landing-proof-card {
    min-height: 260px;
  }

  .landing-grid,
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .landing-shell {
    width: min(100% - 28px, 1220px);
    padding-top: 24px;
  }

  .landing-hero-copy,
  .landing-proof-card,
  .privacy-section,
  .workflow-section,
  .landing-cta {
    border-radius: 24px;
  }

  .landing-actions,
  .landing-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-actions .primary-button,
  .landing-actions .secondary-button,
  .landing-cta .primary-button {
    width: 100%;
  }
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(145deg, var(--green), var(--champagne));
  box-shadow: 0 7px 16px rgba(8,113,93,.18);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf8f2;
  --muted: #9fb6ae;
  --paper: #071512;
  --panel: rgba(10, 25, 21, .86);
  --line: rgba(145, 169, 160, .24);
  --green: #54d7b8;
  --green-dark: #e9fff6;
  --lime: #d8ef82;
  --gold: #e2c878;
  --champagne: #e0c777;
  --champagne-soft: rgba(224,199,119,.16);
  --emerald: #5ce0bf;
  --emerald-soft: rgba(84,215,184,.12);
  --glass: rgba(9, 24, 20, .62);
  --glass-strong: rgba(12, 31, 26, .84);
  --warning: rgba(92, 70, 23, .72);
  --error: rgba(100, 34, 35, .72);
  --shadow: 0 32px 92px rgba(0,0,0,.50);
  --shadow-soft: 0 18px 48px rgba(0,0,0,.34);
  background:
    radial-gradient(circle at 10% 8%, rgba(84,215,184,.16), transparent 33%),
    radial-gradient(circle at 84% 12%, rgba(224,199,119,.12), transparent 30%),
    linear-gradient(135deg, #06110f 0%, #0b1d19 48%, #071512 100%);
}

html[data-theme="dark"] body {
  color: var(--ink);
  background-color: #071512;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
}

html[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 50% -10%, rgba(84,215,184,.16), transparent 42%),
    radial-gradient(circle at 95% 88%, rgba(224,199,119,.13), transparent 34%);
}

html[data-theme="dark"] a,
html[data-theme="dark"] .link-button {
  color: #71e7c9;
}

html[data-theme="dark"] .orb-one {
  background: radial-gradient(circle, rgba(84,215,184,.18), transparent 68%);
}

html[data-theme="dark"] .orb-two {
  background: radial-gradient(circle, rgba(224,199,119,.16), transparent 67%);
}

html[data-theme="dark"] .orb-three {
  background: radial-gradient(circle, rgba(145,232,175,.12), transparent 70%);
}

html[data-theme="dark"] .topbar {
  background:
    linear-gradient(180deg, rgba(8, 21, 18, .90), rgba(8, 21, 18, .72));
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 16px 38px rgba(0,0,0,.34);
}

html[data-theme="dark"] .topbar::after {
  background: linear-gradient(90deg, transparent, rgba(224,199,119,.42), rgba(84,215,184,.36), transparent);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] h2,
html[data-theme="dark"] label,
html[data-theme="dark"] .quick-help strong,
html[data-theme="dark"] .support-ticket-meta strong {
  color: var(--ink);
}

html[data-theme="dark"] .brand span:last-child::after,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .side-panel p,
html[data-theme="dark"] .support-callout p,
html[data-theme="dark"] .holder-line,
html[data-theme="dark"] .auth-switch,
html[data-theme="dark"] label small,
html[data-theme="dark"] td small,
html[data-theme="dark"] footer,
html[data-theme="dark"] .muted-list,
html[data-theme="dark"] .support-ticket-meta,
html[data-theme="dark"] .check-inline {
  color: var(--muted);
}

html[data-theme="dark"] h1 {
  background: linear-gradient(110deg, #f4fff9 0%, #e6fff4 42%, #71e7c9 82%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="dark"] h1 span {
  background: linear-gradient(110deg, #8df2d6, #e2c878);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .theme-toggle {
  color: #ecfff8;
  border-color: rgba(113,231,201,.24);
  background: rgba(13, 34, 29, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 30px rgba(0,0,0,.28);
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(113,231,201,.48);
  background: rgba(18, 47, 40, .88);
}

html[data-theme="dark"] .theme-toggle-icon {
  color: #06110f;
  background: linear-gradient(145deg, #8df2d6, #e2c878);
}

html[data-theme="dark"] nav a:hover,
html[data-theme="dark"] .link-button:hover {
  color: #f1fff9;
  background: rgba(113,231,201,.10);
}

html[data-theme="dark"] .user-chip,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .admin-heading,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .result-card,
html[data-theme="dark"] .stats-grid article,
html[data-theme="dark"] .price-card {
  border-color: rgba(255,255,255,.10);
  background:
    linear-gradient(135deg, rgba(14, 34, 29, .88), rgba(8, 22, 19, .70)),
    radial-gradient(circle at 82% 12%, rgba(224,199,119,.10), transparent 32%),
    radial-gradient(circle at 8% 96%, rgba(84,215,184,.10), transparent 36%);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .panel::before,
html[data-theme="dark"] .hero::before,
html[data-theme="dark"] .admin-heading::before,
html[data-theme="dark"] .auth-card::after {
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(224,199,119,.30), rgba(84,215,184,.30), rgba(255,255,255,.06));
}

html[data-theme="dark"] .page-shell::before {
  background: linear-gradient(90deg, rgba(84,215,184,.10), rgba(224,199,119,.09), rgba(84,215,184,.08));
}

html[data-theme="dark"] .trust-strip span,
html[data-theme="dark"] .auth-benefits span,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .status-pill.open,
html[data-theme="dark"] .developer-credit {
  color: #dffef4;
  border-color: rgba(113,231,201,.18);
  background: rgba(113,231,201,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

html[data-theme="dark"] .status-pill.resolved {
  color: #f2dd9d;
  background: rgba(224,199,119,.12);
}

html[data-theme="dark"] .status-pill.progress {
  color: #ffe7a2;
  background: rgba(224,199,119,.16);
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .extracted-text,
html[data-theme="dark"] .pdf-viewer,
html[data-theme="dark"] .download-list a,
html[data-theme="dark"] .download-locked-row,
html[data-theme="dark"] .flash,
html[data-theme="dark"] .support-files,
html[data-theme="dark"] .support-resolution-form,
html[data-theme="dark"] .download-access-form,
html[data-theme="dark"] .download-access-summary span,
html[data-theme="dark"] .assistant-admin-banner,
html[data-theme="dark"] .assistant-ticket-box,
html[data-theme="dark"] .assistant-ticket-box pre,
html[data-theme="dark"] .manual-content,
html[data-theme="dark"] .billing-month-item,
html[data-theme="dark"] .ticket-timeline li,
html[data-theme="dark"] .mini-button,
html[data-theme="dark"] .secondary-button {
  color: var(--ink);
  border-color: rgba(145,169,160,.28);
  background: rgba(7, 18, 15, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(159,182,174,.72);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
  border-color: rgba(113,231,201,.62);
  box-shadow:
    0 0 0 4px rgba(113,231,201,.12),
    0 16px 36px rgba(0,0,0,.24);
}

html[data-theme="dark"] .drop-zone,
html[data-theme="dark"] .compact-file,
html[data-theme="dark"] .empty-text,
html[data-theme="dark"] .support-ticket,
html[data-theme="dark"] .result-support-box,
html[data-theme="dark"] .manual-box,
html[data-theme="dark"] .warning-box {
  color: var(--ink);
  border-color: rgba(145,169,160,.28);
  background: rgba(8, 22, 19, .56);
}

html[data-theme="dark"] .drop-zone:hover {
  border-color: rgba(113,231,201,.58);
  background: rgba(15, 42, 35, .72);
}

html[data-theme="dark"] .drop-zone span,
html[data-theme="dark"] .drop-zone small,
html[data-theme="dark"] .compact-file span,
html[data-theme="dark"] .support-files strong,
html[data-theme="dark"] .download-list small,
html[data-theme="dark"] .result-support-box p,
html[data-theme="dark"] .download-locked-row small,
html[data-theme="dark"] .download-access-panel p,
html[data-theme="dark"] .extracted-panel .panel-heading p,
html[data-theme="dark"] .user-support-panel .panel-heading p,
html[data-theme="dark"] .support-admin-panel .panel-heading p,
html[data-theme="dark"] .support-resolution small,
html[data-theme="dark"] .assistant-admin-banner span,
html[data-theme="dark"] .assistant-admin-banner small,
html[data-theme="dark"] .assistant-ticket-box small {
  color: var(--muted);
}

html[data-theme="dark"] .suggestion-chip,
html[data-theme="dark"] .balance-chip {
  color: #dffef4;
  border-color: rgba(113,231,201,.22);
  background: rgba(113,231,201,.08);
}

html[data-theme="dark"] .suggestion-chip:hover,
html[data-theme="dark"] .balance-chip:hover,
html[data-theme="dark"] .mini-button:hover,
html[data-theme="dark"] .secondary-button:hover {
  border-color: rgba(113,231,201,.52);
  background: rgba(113,231,201,.13);
}

html[data-theme="dark"] .primary-button {
  color: white;
  background: linear-gradient(135deg, #4fd0b4, #0c8b73);
  box-shadow: 0 14px 28px rgba(84,215,184,.14);
}

html[data-theme="dark"] .primary-button:hover {
  color: white;
  background: linear-gradient(135deg, #65dec4, #08725f);
  box-shadow: 0 18px 34px rgba(84,215,184,.18);
}

html[data-theme="dark"] .card-icon,
html[data-theme="dark"] .workflow-steps span {
  color: #b9fff0;
  border-color: rgba(113,231,201,.20);
  background: rgba(113,231,201,.10);
}

html[data-theme="dark"] .balance-chip strong,
html[data-theme="dark"] .stats-grid article strong,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .support-capture,
html[data-theme="dark"] .support-file-link {
  color: #80edcf;
}

html[data-theme="dark"] .table-wrap {
  background: rgba(7,18,15,.36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

html[data-theme="dark"] th {
  color: var(--muted);
  background: transparent;
}

html[data-theme="dark"] td,
html[data-theme="dark"] .table-panel td {
  border-color: rgba(145,169,160,.22);
  background: rgba(8, 22, 19, .68);
}

html[data-theme="dark"] .billing-month-item.removed {
  color: var(--muted);
  background: rgba(224,199,119,.08);
}

html[data-theme="dark"] .download-access-panel.is-locked,
html[data-theme="dark"] .download-locked-row {
  border-color: rgba(224,199,119,.30);
  background: rgba(224,199,119,.09);
}

html[data-theme="dark"] .mini-button.danger {
  color: #ffaaa1;
  border-color: rgba(255,170,161,.30);
  background: rgba(118, 35, 34, .24);
}

html[data-theme="dark"] .mini-button.danger:hover {
  background: rgba(118, 35, 34, .42);
}

html[data-theme="dark"] .flash.success {
  background: rgba(52, 112, 74, .78);
  border-color: rgba(125, 230, 158, .28);
}

html[data-theme="dark"] .flash.error {
  background: rgba(100, 34, 35, .82);
  border-color: rgba(255, 170, 161, .28);
}

html[data-theme="dark"] .warning-box {
  background: rgba(92, 70, 23, .70);
}

html[data-theme="dark"] .support-resolution {
  border-left-color: #71e7c9;
  background: rgba(113,231,201,.09);
}

.security-panel {
  max-width: 980px;
  margin-inline: auto;
}

.security-status-card strong {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.two-factor-setup {
  display: grid;
  gap: 18px;
  margin: 22px 0;
}

.two-factor-secret-box {
  padding: 18px;
  border: 1px dashed rgba(12, 107, 87, .28);
  border-radius: 20px;
  background: rgba(255,255,255,.54);
}

.two-factor-secret-box span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .85rem;
}

.two-factor-secret-box strong {
  display: block;
  color: var(--green-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}

.two-factor-setup textarea {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
}

.two-factor-form {
  max-width: 520px;
}

html[data-theme="dark"] .two-factor-secret-box {
  border-color: rgba(113,231,201,.24);
  background: rgba(113,231,201,.08);
}

html[data-theme="dark"] .two-factor-secret-box strong {
  color: #b9fff0;
}

html[data-theme="dark"] .assistant-admin-banner.is-ready {
  border-color: rgba(113,231,201,.24);
  background: rgba(113,231,201,.09);
}

html[data-theme="dark"] .assistant-admin-banner.is-missing {
  border-color: rgba(255,170,161,.28);
  background: rgba(100, 34, 35, .60);
}

html[data-theme="dark"] .assistant-button {
  color: #dffef4;
  border-color: rgba(113,231,201,.24);
  background: rgba(113,231,201,.10);
}

html[data-theme="dark"] .support-capture img {
  border-color: rgba(145,169,160,.24);
  background: rgba(7,18,15,.72);
  box-shadow: 0 18px 44px rgba(0,0,0,.30);
}

html[data-theme="dark"] footer span:first-child::before {
  background: #71e7c9;
  box-shadow: 0 0 0 5px rgba(113,231,201,.10);
}

@media (max-width: 780px) {
  .topbar {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .topbar-actions nav {
    min-width: 0;
    width: 100%;
    overflow-x: visible;
    gap: 8px;
    padding-bottom: 2px;
    justify-content: space-between;
  }

  .topbar-actions nav::-webkit-scrollbar {
    display: none;
  }

  nav a,
  .link-button,
  .nav-cta {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .82rem;
    padding: 7px 9px;
  }

  .theme-toggle {
    justify-self: start;
    min-height: 36px;
    padding: 7px 12px;
    white-space: nowrap;
  }

  .landing-hero-copy {
    padding: 28px 22px;
  }

  .landing-hero-copy h1 {
    font-size: clamp(2.1rem, 14vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -.05em;
  }
}
