/* ==============================================
   CSS Variables (from theme-blue.css)
   ============================================== */
/* Theme: Blue (default) */
:root{
  /* Brand palette */
  --brand:#2563EB; --brand-600:#2563EB; --brand-700:#1D4ED8; --brand-500:#3B82F6; --brand-400:#60A5FA; --brand-300:#93C5FD;
  --brand-800:#1E429F; --brand-900:#1E3A8A;
  --brand-pastel-100:#EFF6FF; --brand-pastel-200:#DBEAFE; --brand-pastel-300:#BFDBFE; --brand-pastel-400:#93C5FD;

  /* Accent: red */
  --accent-red:#ff3b3b; --accent-red-light:#ff6b6b; --accent-red-pastel:#ffe0e0;

  /* Accent: error */
  --error:#DC2626; --error-light:#ef4444; --error-bg:#FEE2E2; --error-border:#FECACA; --error-dark:#991b1b;

  /* Accent: success */
  --success:#10b981; --success-dark:#16A34A; --success-bg:#f0fdf4; --success-border:#bbf7d0;

  /* Accent: warning */
  --warning:#FBBF24; --warning-dark:#f59e0b;

  /* Text & UI */
  --text:#0f172a; --text-secondary:#344054; --text-tertiary:#475467;
  --muted:#64748b; --muted-light:#98a2b3; --muted-lighter:#6B7280;
  --bg:#ffffff; --surface:#ffffff; --surface-2:#f8fafc; --surface-3:#f2f4f7; --surface-4:#f8f9fa;
  --border:#e5e7eb; --border-light:#e4e7ec; --border-muted:#d0d5dd; --border-dark:#D1D5DB;

  /* CTA gradient */
  --blue-500:#3F83F8; --blue-800:#1E429F;

  /* Shadows */
  --shadow:0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.06);

  /* Logo */
  --logo-text-color:#1e293b; --logo-subtitle-color:#64748b;
}

/* ==============================================
   Tailwind Preflight (CSS Reset)
   ============================================== */

*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

html, :host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp, pre {
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top: -0.5em; }

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, select {
  text-transform: none;
}

button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
  height: auto;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol, ul, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

dialog {
  padding: 0;
}

textarea {
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

button, [role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ==============================================
   Extracted Landing Page CSS (from style.css)
   ============================================== */

html,body{ margin:0; padding:0; font-family:'Nunito Sans',sans-serif; color:var(--text); background:var(--bg) }

input,select,textarea,button{ font-family:'Nunito Sans',sans-serif }

[hidden]{ display:none !important }

form{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  flex-direction: column;
  width: 90%;
}
form.dragover{ outline: 2px dashed var(--brand-600); outline-offset: 6px; border-radius: 14px }

input[type="text"],input[type="number"],select,input[type="file"]{ padding:1px 1px; color:var(--text); border-color: #0b1220 }

.global-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.global-loader.active {
  opacity: 1;
  visibility: visible;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-squares-svg {
  width: 200px;
  height: 200px;
}

.loader-square-1 {
  animation: loaderRotate1 1.5s ease-in-out infinite;
  transform-origin: 25px 25px;
}

.loader-square-2 {
  animation: loaderRotate2 1.5s ease-in-out infinite;
  transform-origin: 35px 35px;
}

@keyframes loaderRotate1 {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loaderRotate2 {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-180deg); }
  100% { transform: rotate(-360deg); }
}

.loader-text {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
}

.loader-box {
  background: var(--bg);
  border-radius: 20px;
  padding: 36px 44px 32px;
  min-width: 380px;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.loader-processing-text {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 20px 0;
  letter-spacing: 0.2px;
}

.loader-progress-track {
  background: var(--border);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.loader-progress-bar {
  background: linear-gradient(90deg, var(--brand), var(--brand-400));
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.loader-percent {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted, #64748b);
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
  display: none;
}

.loader-anim {
  display: none;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  height: 120px;
}

.loader-anim.active { display: flex; }

.loader-anim-compress {
  position: relative;
  width: 120px; height: 120px;
}

.loader-anim-compress .doc {
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 72px;
  transform: translate(-50%, -50%);
  background: var(--brand-pastel-200);
  border: 2px solid var(--brand);
  border-radius: 6px 12px 6px 6px;
  animation: compressDoc 2s ease-in-out infinite;
}

.loader-anim-compress .doc::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: var(--brand-pastel-300);
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  border-radius: 0 0 0 4px;
}

.loader-anim-compress .doc-line {
  position: absolute;
  left: 8px; right: 8px;
  height: 3px;
  background: var(--brand-300);
  border-radius: 2px;
}

.loader-anim-compress .doc-line:nth-child(1) { top: 20px; width: 65%; }

.loader-anim-compress .doc-line:nth-child(2) { top: 28px; width: 80%; }

.loader-anim-compress .doc-line:nth-child(3) { top: 36px; width: 50%; }

.loader-anim-compress .doc-line:nth-child(4) { top: 44px; width: 70%; }

.loader-anim-compress .arrows {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  pointer-events: none;
}

.loader-anim-compress .arrow-top,
.loader-anim-compress .arrow-bot {
  position: absolute;
  left: 50%;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.loader-anim-compress .arrow-top {
  top: 4px;
  transform: translateX(-50%);
  border-top: 10px solid var(--brand);
  animation: compressArrowTop 2s ease-in-out infinite;
}

.loader-anim-compress .arrow-bot {
  bottom: 4px;
  transform: translateX(-50%);
  border-bottom: 10px solid var(--brand);
  animation: compressArrowBot 2s ease-in-out infinite;
}

@keyframes compressDoc {
  0%, 100% { transform: translate(-50%, -50%) scaleY(1); }
  50% { transform: translate(-50%, -50%) scaleY(0.7); }
}

@keyframes compressArrowTop {
  0%, 100% { top: 4px; opacity: 0.4; }
  50% { top: 18px; opacity: 1; }
}

@keyframes compressArrowBot {
  0%, 100% { bottom: 4px; opacity: 0.4; }
  50% { bottom: 18px; opacity: 1; }
}

.loader-anim-merge {
  position: relative;
  width: 140px; height: 120px;
}

.loader-anim-merge .doc-left,
.loader-anim-merge .doc-right {
  position: absolute;
  top: 50%;
  width: 44px; height: 58px;
  background: var(--brand-pastel-200);
  border: 2px solid var(--brand);
  border-radius: 4px 8px 4px 4px;
}

.loader-anim-merge .doc-left {
  animation: mergeLeft 2.2s ease-in-out forwards;
}

.loader-anim-merge .doc-right {
  animation: mergeRight 2.2s ease-in-out forwards;
  background: var(--brand-pastel-300);
}

.loader-anim-merge .doc-center {
  position: absolute;
  left: 50%; top: 50%;
  width: 50px; height: 64px;
  background: var(--brand-pastel-100);
  border: 2.5px solid var(--brand);
  border-radius: 5px 10px 5px 5px;
  transform: translate(-50%, -50%) scale(0);
  animation: mergeCenter 2.2s ease-in-out forwards;
}

@keyframes mergeLeft {
  0%, 15% { left: 4px; transform: translateY(-50%); opacity: 1; }
  50%, 100% { left: 30px; transform: translateY(-50%); opacity: 0; }
}

@keyframes mergeRight {
  0%, 15% { right: 4px; transform: translateY(-50%); opacity: 1; }
  50%, 100% { right: 30px; transform: translateY(-50%); opacity: 0; }
}

@keyframes mergeCenter {
  0%, 40% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
  70%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.loader-anim-split {
  position: relative;
  width: 140px; height: 120px;
}

.loader-anim-split .doc-whole {
  position: absolute;
  left: 50%; top: 50%;
  width: 50px; height: 64px;
  background: var(--brand-pastel-200);
  border: 2px solid var(--brand);
  border-radius: 5px 10px 5px 5px;
  transform: translate(-50%, -50%);
  animation: splitWhole 2.2s ease-in-out forwards;
}

.loader-anim-split .doc-a,
.loader-anim-split .doc-b {
  position: absolute;
  top: 50%;
  width: 40px; height: 54px;
  background: var(--brand-pastel-200);
  border: 2px solid var(--brand);
  border-radius: 4px 8px 4px 4px;
  opacity: 0;
}

.loader-anim-split .doc-a { animation: splitA 2.2s ease-in-out forwards; }

.loader-anim-split .doc-b { animation: splitB 2.2s ease-in-out forwards; background: var(--brand-pastel-300); }

@keyframes splitWhole {
  0%, 30% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%, 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

@keyframes splitA {
  0%, 40% { left: 50%; transform: translateY(-50%); opacity: 0; }
  60%, 100% { left: 8px; transform: translateY(-50%); opacity: 1; }
}

@keyframes splitB {
  0%, 40% { right: 50%; transform: translateY(-50%); opacity: 0; }
  60%, 100% { right: 8px; transform: translateY(-50%); opacity: 1; }
}

.loader-anim-convert {
  position: relative;
  width: 160px; height: 120px;
}

.loader-anim-convert .doc-from {
  position: absolute;
  left: 10px; top: 50%;
  width: 44px; height: 58px;
  background: var(--brand-pastel-200);
  border: 2px solid var(--brand);
  border-radius: 4px 8px 4px 4px;
  transform: translateY(-50%);
  animation: convertFrom 2.4s ease-in-out infinite;
}

.loader-anim-convert .doc-from-label,
.loader-anim-convert .doc-to-label {
  position: absolute;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.loader-anim-convert .convert-arrow {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--brand);
  font-size: 24px;
  animation: convertArrow 2.4s ease-in-out infinite;
}

.loader-anim-convert .doc-to {
  position: absolute;
  right: 10px; top: 50%;
  width: 44px; height: 58px;
  background: #DCFCE7;
  border: 2px solid var(--success-dark);
  border-radius: 4px 8px 4px 4px;
  transform: translateY(-50%);
  animation: convertTo 2.4s ease-in-out infinite;
}

.loader-anim-convert .doc-to .doc-to-label {
  color: var(--success-dark);
}

@keyframes convertFrom {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateY(-50%) scale(0.9); }
}

@keyframes convertArrow {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) translateX(-6px); }
  50% { opacity: 1; transform: translate(-50%, -50%) translateX(6px); }
}

@keyframes convertTo {
  0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(0.9); }
  50% { opacity: 1; transform: translateY(-50%) scale(1); }
}

.loader-anim-delete {
  position: relative;
  width: 120px; height: 120px;
}

.loader-anim-delete .doc-page {
  position: absolute;
  left: 50%; top: 50%;
  width: 50px; height: 64px;
  background: var(--brand-pastel-200);
  border: 2px solid var(--brand);
  border-radius: 5px 10px 5px 5px;
  transform: translate(-50%, -50%);
  animation: deletePage 1.8s ease-in-out infinite;
}

.loader-anim-delete .x-mark {
  position: absolute;
  left: 50%; top: 50%;
  width: 28px; height: 28px;
  transform: translate(-50%, -50%);
  animation: deleteX 1.8s ease-in-out infinite;
}

.loader-anim-delete .x-mark::before,
.loader-anim-delete .x-mark::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 24px; height: 3px;
  background: var(--accent-red, #ff3b3b);
  border-radius: 2px;
}

.loader-anim-delete .x-mark::before { transform: translate(-50%, -50%) rotate(45deg); }

.loader-anim-delete .x-mark::after  { transform: translate(-50%, -50%) rotate(-45deg); }

@keyframes deletePage {
  0%, 30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  60% { opacity: 0; transform: translate(-50%, -50%) scale(0.6) translateY(10px); }
  80%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes deleteX {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  55% { opacity: 0; }
  100% { opacity: 0; }
}

.loader-anim-rotate {
  position: relative;
  width: 120px; height: 120px;
}

.loader-anim-rotate .doc-page {
  position: absolute;
  left: 50%; top: 50%;
  width: 50px; height: 64px;
  background: var(--brand-pastel-200);
  border: 2px solid var(--brand);
  border-radius: 5px 10px 5px 5px;
  transform: translate(-50%, -50%);
  animation: rotatePage 2.5s ease-in-out infinite;
}

@keyframes rotatePage {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  40%, 60% { transform: translate(-50%, -50%) rotate(90deg); }
}

.loader-anim-ocr {
  position: relative;
  width: 120px; height: 120px;
}

.loader-anim-ocr .doc-page {
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 72px;
  background: var(--brand-pastel-200);
  border: 2px solid var(--brand);
  border-radius: 5px 10px 5px 5px;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.loader-anim-ocr .scan-line {
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand-400);
  animation: ocrScan 2s ease-in-out infinite;
}

@keyframes ocrScan {
  0%, 100% { top: 6px; }
  50% { top: calc(100% - 8px); }
}

.loader-anim-image {
  position: relative;
  width: 120px; height: 120px;
}

.loader-anim-image .img-frame {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 52px;
  background: var(--brand-pastel-100);
  border: 2px solid var(--brand);
  border-radius: 8px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  animation: imgPulse 2s ease-in-out infinite;
}

.loader-anim-image .img-mount {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(135deg, var(--brand-300) 30%, var(--brand-pastel-300) 70%);
  clip-path: polygon(0 100%, 30% 30%, 50% 60%, 70% 20%, 100% 100%);
}

.loader-anim-image .img-sun {
  position: absolute;
  top: 8px; right: 10px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--warning);
}

@keyframes imgPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

.loader-anim-edit {
  position: relative;
  width: 120px; height: 120px;
}

.loader-anim-edit .doc-page {
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 72px;
  background: var(--brand-pastel-200);
  border: 2px solid var(--brand);
  border-radius: 5px 10px 5px 5px;
  transform: translate(-50%, -50%);
}

.loader-anim-edit .doc-page::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: var(--brand-pastel-300);
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  border-radius: 0 0 0 4px;
}

.loader-anim-edit .edit-line {
  position: absolute;
  left: 8px;
  height: 3px;
  background: var(--brand-300);
  border-radius: 2px;
  width: 0;
}

.loader-anim-edit .edit-line:nth-child(1) { top: 18px; animation: editFill 2.4s ease-in-out infinite; }

.loader-anim-edit .edit-line:nth-child(2) { top: 26px; animation: editFill 2.4s ease-in-out 0.3s infinite; }

.loader-anim-edit .edit-line:nth-child(3) { top: 34px; animation: editFill 2.4s ease-in-out 0.6s infinite; }

.loader-anim-edit .edit-line:nth-child(4) { top: 42px; animation: editFill 2.4s ease-in-out 0.9s infinite; }

.loader-anim-edit .edit-line:nth-child(5) { top: 50px; animation: editFill 2.4s ease-in-out 1.2s infinite; }

@keyframes editFill {
  0% { width: 0; opacity: 0.4; }
  30% { width: 75%; opacity: 1; }
  60%, 100% { width: 75%; opacity: 1; }
}

.container{ max-width:1500px; margin:0 auto; padding:24px }

.site-header{ position:sticky; top:0; backdrop-filter:saturate(180%) blur(8px); background:color-mix(in srgb, var(--bg) 85%, transparent); border-bottom:1px solid var(--border); z-index:50 }

.site-header .container{ position:relative; display:flex; align-items:center; gap:16px; justify-content:space-between; max-width:1500px; padding:16px }

.logo{ 
  font-weight:800; 
  color:var(--text); 
  text-decoration:none; 
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:8px;
}

.logo-img{
  width:auto;
  height:48px;
  display:block;
  object-fit:contain;
}

.logo-img svg,
svg.logo-img{
  width:auto;
  height:48px;
  display:block;
}

.logo .badge{ 
  display:none;
}

.hamburger-menu{
  display:none;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:8px;
  color:var(--text);
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.hamburger-menu .icon{
  width:24px;
  height:24px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
}

.site-nav{ 
  display:flex;
  align-items:center;
  gap:4px;
}

.site-nav a{ margin:0 10px; color:var(--muted); text-decoration:none; padding:8px 6px; border-radius:6px }

.site-nav a:hover{ color:var(--text); background:var(--surface-2) }

.mobile-signin-btn{
  display:none;
}

.mobile-nav-dropdown,
.mobile-nav-account {
  display: none;
}

.controls{ display:flex; align-items:center; gap:8px }

.icon-btn{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border:1px solid var(--border); background:var(--surface); border-radius:10px; cursor:pointer }

.icon{ width:18px; height:18px; fill:var(--text) }

.site-header .btn{
  background:transparent;
  border:2px solid var(--brand-600);
  color:var(--brand-600);
  padding:10px 20px;
  border-radius:12px;
  font-weight:600;
  font-size:0.95rem;
  box-shadow:none;
  transition:all 0.2s ease;
}

.site-header .btn:hover{
  background:var(--brand-600);
  color:#fff;
  border-color:var(--brand-600);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(37,99,235,0.2);
}

.site-header .btn:active{
  transform:translateY(0);
  box-shadow:0 2px 6px rgba(37,99,235,0.15);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  margin: 0 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-dropdown-trigger:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-dropdown-trigger[aria-expanded="true"] {
  color: var(--brand-600);
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.nav-dropdown-trigger[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tools-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tool-dropdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
}

.tool-dropdown-card:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.tool-dropdown-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tool-dropdown-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}

.tools-dropdown-footer {
  display: block;
  text-align: center;
  padding: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tools-dropdown-footer:hover {
  background: var(--brand-pastel-100);
}

.forms-dropdown-menu {
  min-width: 200px;
}

.forms-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-dropdown-item {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.form-dropdown-item:hover {
  background: var(--surface-2);
  color: var(--brand-600);
}

.forms-dropdown-footer {
  display: block;
  text-align: center;
  padding: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.forms-dropdown-footer:hover {
  background: var(--brand-pastel-100);
}

.theme-switch{ position:relative }

.menu{ position:absolute; right:0; top:44px; display:none; min-width:160px; padding:6px; background:var(--surface); border:1px solid var(--border); border-radius:10px; box-shadow:var(--shadow) }

.menu.open{ display:block }

.menu li{ list-style:none; padding:8px 10px; border-radius:8px; cursor:pointer; color:var(--text) }

.menu li[aria-selected="true"], .menu li:hover{ background:var(--surface-2) }

.btn{ 
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--brand-600);
  color:#fff;
  padding:12px 24px;
  border-radius:8px;
  text-decoration:none;
  border:none;
  cursor:pointer;
  font-weight:600;
  font-size:1rem;
  transition:all 0.2s ease;
  box-shadow:0 2px 8px rgba(37,99,235,0.2);
}

.btn:hover{ 
  background:var(--brand-700);
  box-shadow:0 4px 12px rgba(37,99,235,0.3);
  transform:translateY(-1px);
}

.btn:active{ 
  transform:translateY(0);
  box-shadow:0 2px 6px rgba(37,99,235,0.2);
}

.btn:disabled{ 
  opacity:.6;
  cursor:not-allowed;
  transform:none;
}

.btn-primary{
  background:var(--brand-600);
  width:100%;
}

.btn-primary:hover{
  background:var(--brand-700);
}

.btn-chevron{
  width:20px;
  height:20px;
  flex-shrink:0;
}

.auth-modal-container .actions{
  justify-content:stretch;
  width:100%;
}

.btn-sm{ padding:8px 12px; border-radius:10px; font-size:.95em }

.btn-lg{ padding:12px 18px; font-size:1.05em }

.card{ display:flex; flex-direction:column; gap:10px; padding:16px; border:1px solid var(--border); border-radius:14px; text-decoration:none; color:inherit; background:var(--surface); box-shadow:var(--shadow); transition:transform .15s ease, box-shadow .15s ease }

.card:hover{ border-color:var(--brand-600); box-shadow:0 8px 24px rgba(0,0,0,.08); transform:translateY(-2px) }

.card .card-title{ font-weight:600 }

.card .card-meta{ font-size:.9em; color:var(--muted) }

.how-it-works-section .note{
  margin:0 0 64px 0;
}

.icon{ 
  width:32px; 
  height:32px;
}

.tool-description{
  font-size:18px;
  color:#4A4A4A;
  margin:0 0 32px 0;
  line-height:1.6;
}

.tool-upload-form{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:32px;
}

.tool-upload-zone{
  position:relative;
  border:3px dashed var(--border);
  border-radius:16px;
  padding:64px 32px;
  background:var(--surface);
  text-align:center;
  transition:all 0.3s ease;
  cursor:pointer;
  width: 70%;
}

.tool-upload-zone:hover{
  border-color:var(--brand-600);
  border-width:3px;
  background:color-mix(in srgb, var(--surface-2) 80%, var(--brand-500) 20% / 4%);
}

.tool-upload-zone.dragover{
  border-color:var(--brand-600);
  border-width:3px;
  background:color-mix(in srgb, var(--brand-500) 10%, var(--surface));
}

.upload-icon{
  width:64px;
  height:64px;
  color:var(--brand-600);
  margin:0 auto 20px;
  display:block;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.file-input{
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  top:0;
  left:0;
  cursor:pointer;
}

.file-label{
  display:flex;
  flex-direction:column;
  gap:8px;
  cursor:pointer;
}

.file-label-text{
  font-size:18px;
  font-weight:600;
  color:var(--text);
}

.file-label-hint{
  font-size:14px;
  color:var(--muted);
}

.file-names{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--border);
  font-size:14px;
  color:var(--muted);
}

.file-names span{
  display:block;
  margin:4px 0;
}

.file-selected {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 0 16px;
}

.file-selected-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--brand);
}

.file-selected-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  max-width: 100%;
}

.file-selected-name span {
  display: block;
}

.file-selected-size {
  color: var(--muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.upload-hint{
  font-size:14px;
  color:var(--muted);
  margin:0;
  text-align:center;
}

.tool-submit-btn{
  margin:0 auto;
  width:70%;
}

.tool-submit-btn .upload-btn-icon{
  width:20px;
  height:20px;
  stroke-width:2.5;
  flex-shrink:0;
}

.tool-additional-fields input,
.tool-additional-fields select,
.tool-additional-fields textarea{
  font-family:'Nunito Sans',sans-serif;
}

.tool-result{
  margin-top:24px;
  text-align:center;
}

.tool-hero-new {
  --tool-bg: #D6E4F9;
  --tool-icon: #3B6FC4;
}

.tool-hero-new.theme-mint {
  --tool-bg: #C8F4DC;
  --tool-icon: #2D8B6F;
}

.tool-hero-new.theme-pink {
  --tool-bg: #FDE6D3;
  --tool-icon: #7C2D12;
}

.tool-hero-new.theme-blue {
  --tool-bg: #D6E4F9;
  --tool-icon: #3B6FC4;
}

.tool-hero-new {
  padding: 60px 24px 40px 24px;
  background: transparent;
  max-width: 900px;
  margin: 0 auto;
}

.tool-hero-new .tool-hero-content {
  display:flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.tool-hero-new h1 {
  font-size: 48px;
  font-weight: 900;
  font-style: normal;
  color: #1D1D1D;
  margin: 0 0 16px 0;
  line-height: 150%;
}

.tool-hero-new .tool-description {
  font-size: 22px;
  color: #4A4A4A;
  margin: 0 0 32px 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tool-hero-new .tool-upload-zone {
  position: relative;
  background: var(--bg);
  padding: 24px;
  border-radius: 16px;
  border: 2px dashed var(--border-muted);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 90%;
  margin: 0 auto;
}

.tool-hero-new .tool-upload-zone:hover {
  border-color: var(--tool-icon);
}

.tool-hero-new .tool-upload-zone.dragover {
  border-color: var(--tool-icon);
  transform: scale(1.01);
}

.tool-hero-new .upload-content-wrapper {
  width: 100%;
  padding: 32px 24px;
  border-radius: 16px;
  background: var(--tool-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 240px;
  justify-content: center;
  transition: background 0.3s ease;
}

.tool-hero-new .upload-icon-container {
  margin-bottom: 16px;
}

.tool-hero-new .upload-plus-circle {
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 2px 2px #1d1d1d;
}

.tool-hero-new .upload-icon-svg {
  width: 48px;
  height: 48px;
  fill: var(--tool-icon);
}

.tool-hero-new .file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.tool-hero-new .file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 4px;
}

.tool-hero-new .file-label-text {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.tool-hero-new .file-label-hint {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.tool-hero-new .tool-upload-btn-inside {
  margin-top: 20px;
  min-width: 200px;
  padding: 14px 32px;
  background: var(--brand-600);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.tool-hero-new .tool-upload-btn-inside:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
}

.tool-hero-new .tool-upload-btn-inside:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.tool-hero-new .tool-additional-fields {
  margin-top: 24px;
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.tool-hero-new .tool-additional-fields label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.tool-hero-new .tool-additional-fields select,
.tool-hero-new .tool-additional-fields input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: var(--surface);
  color: var(--text);
  font-family: 'Nunito Sans', sans-serif;
}

.tool-hero-new .tool-help-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.tool-hero-new .reviews-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.tool-hero-new .reviews-great {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.tool-hero-new .trustpilot-stars {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.tool-hero-new .reviews-count {
  font-size: 14px;
  color: var(--muted);
}

.tool-hero-new .trustpilot-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.tool-hero-new .tool-legal-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}

.tool-hero-new .tool-legal-text a {
  color: var(--brand-600);
  text-decoration: none;
}

.tool-hero-new .tool-legal-text a:hover {
  text-decoration: underline;
}

.tool-hero-new .tool-features-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.tool-hero-new .tool-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.tool-hero-new .tool-feature-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tool-hero-new .tool-result {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .tool-hero-new {
    padding: 10px 16px 32px 16px;
  }
  .tool-upload-form {
    margin-top: 10px;
  }
  .tool-hero-new h1 {
    font-size: 32px;
  }
  .tool-hero-new .tool-description {
    font-size: 14px;
    margin: 0 0 16px 0;
  }
  .tool-hero-new .tool-upload-zone {
    padding: 16px;
  }
  .tool-hero-new .upload-content-wrapper {
    padding: 24px 16px;
    min-height: 200px;
  }
  .tool-hero-new .upload-icon-svg {
    width: 40px;
    height: 40px;
  }
  .tool-hero-new .file-label-text {
    font-size: 1rem;
  }
  .tool-hero-new .file-label-hint {
    font-size: 0.8rem;
  }
  .tool-hero-new .tool-features-row {
    gap: 24px;
  }
  .tool-hero-new .tool-feature-item {
    font-size: 13px;
  }
  .tool-hero-new .reviews-widget {
    gap: 4px;
    flex-wrap: nowrap;
  }
  .tool-hero-new .reviews-great {
    font-size: 11px;
  }
  .tool-hero-new .trustpilot-stars {
    height: 14px;
  }
  .tool-hero-new .reviews-count {
    font-size: 11px;
  }
  .tool-hero-new .trustpilot-logo {
    height: 14px;
  }
}

.note{ 
  color:var(--muted); 
  font-size:20px;
  text-align:center;
  margin:0 0 32px 0;
  line-height:1.6;
}

.form-mode .toolbar .tool, .form-mode .btn { --brand:var(--brand-900); }

.fill-lock .panel .btn{ background:#fff; color:var(--brand-900); border-color:#fff }

@keyframes spin{ to{ transform: rotate(360deg) } }

.modal{ 
  position:fixed; inset:0; display:none; align-items:center; justify-content:center; 
  background: linear-gradient(135deg, rgba(0,0,0,.65), rgba(0,0,0,.45)); 
  z-index:1000; 
  backdrop-filter: blur(12px) saturate(180%); 
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.open{ display:flex }

.modal .card{
  max-width:90vw;
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface) 95%, var(--brand-500) 5%), 
    var(--surface)
  );
  border:1px solid color-mix(in srgb, var(--border) 60%, var(--brand-500) 40%); 
  border-radius:24px; padding:32px; 
  box-shadow: 
    0 32px 64px rgba(0,0,0,.25),
    0 0 0 1px color-mix(in srgb, var(--surface) 80%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--surface) 100%, transparent);
  transform: translateY(-8px);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-panel{ position:relative; overflow:hidden }

.auth-panel::before{
  content:''; position:absolute; inset:0; 
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--brand-500) 8%, transparent), transparent 70%);
  pointer-events:none; z-index:0;
}

.auth-panel > *{ position:relative; z-index:1 }

.auth-modal-container{
  width:520px;
  max-width:94vw;
  min-height:620px;
  position:relative;
  padding-top:8px;
}

#loginForm,
#signupForm{
  min-height:420px;
  display:flex;
  flex-direction:column;
  width:100%;
  justify-content:space-between;
}

#loginForm[style*="position: absolute"],
#signupForm[style*="position: absolute"]{
  visibility:hidden;
  pointer-events:none;
  top:0;
  left:0;
}

#loginForm .actions,
#signupForm .actions{
  margin-top:auto;
  padding-top:24px;
}

.download-auth-modal-container{
  width:480px;
  max-width:94vw;
}

.auth-close-btn{
  position:absolute;
  top:16px;
  left:16px;
  z-index:10;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:8px;
  color:var(--text);
  transition:all 0.2s ease;
}

.auth-close-btn:hover{
  background:var(--border);
  transform:scale(1.05);
}

.auth-head{ display:flex; gap:16px; align-items:flex-start; margin-bottom:24px; margin-top:8px }

.auth-title-group{ 
  width:100%;
  text-align:center;
}

.auth-title-group h3{ margin:0 0 4px 0; font-size:1.5rem; font-weight:700; letter-spacing:-0.025em }

.auth-title-group h3 .title-checkmark{ width:32px; height:32px; flex-shrink:0 }

.checkmark-animated .checkmark-circle-outline,
.checkmark-animated .checkmark-circle-fill,
.checkmark-animated .checkmark-path {
  stroke-dashoffset: 9999;
  animation: none;
}

.checkmark-animated.animate .checkmark-circle-outline {
  stroke-dasharray: 69;
  stroke-dashoffset: 69;
  animation: drawCheckmarkCircleOutline 0.5s ease-out 1 forwards;
}

.checkmark-animated.animate .checkmark-circle-fill {
  opacity: 0;
  animation: drawCheckmarkFillCircle 0.4s ease-out 0.5s 1 forwards;
}

.checkmark-animated.animate .checkmark-path {
  stroke-dasharray: 14.5;
  stroke-dashoffset: 14.5;
  animation: drawCheckmarkPath 0.5s ease-out 0.9s 1 forwards;
}

@keyframes drawCheckmarkCircleOutline { to { stroke-dashoffset: 0; } }

@keyframes drawCheckmarkFillCircle { to { opacity: 1; } }

@keyframes drawCheckmarkPath { to { stroke-dashoffset: 0; } }

.auth-title-group h3.with-icon{ display:flex; align-items:center; justify-content:center; gap:12px }

.auth-title-group .note{ font-size:0.95rem; opacity:0.8 }

.auth-trust-indicators{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}

.trust-item{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:0.875rem;
  color:var(--muted);
  font-weight:500;
}

.trust-icon{
  width:18px;
  height:18px;
  color:var(--brand-600);
  flex-shrink:0;
}

.segmented{ 
  display:flex; gap:4px; padding:6px; 
  border:1px solid var(--border); border-radius:16px; 
  background: color-mix(in srgb, var(--surface-2) 80%, var(--brand-500) 20% / 8%); 
  margin-bottom:20px; position:relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.06);
}

.segmented .seg{ 
  flex:1; padding:12px 16px; border:none; border-radius:12px; 
  background:transparent; color:var(--muted); cursor:pointer; 
  font-weight:600; font-size:.95em; 
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position:relative; z-index:2;
}

.segmented .seg.active{ 
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 95%, var(--brand-500) 5%)); 
  color:var(--text); 
  box-shadow: 
    0 8px 16px rgba(0,0,0,.08),
    0 2px 4px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.1);
  transform: translateY(-1px);
}

.segmented .seg:hover:not(.active){ 
  background: color-mix(in srgb, var(--surface-2) 70%, var(--brand-500) 30% / 10%); 
  color: var(--text);
}

.alert{ 
  padding:12px 16px; 
  border:1px solid color-mix(in srgb, #fca5a5 80%, var(--border) 20%); 
  color:var(--error-dark); 
  background: linear-gradient(135deg, var(--error-bg), color-mix(in srgb, var(--error-bg) 90%, var(--surface) 10%)); 
  border-radius:12px; font-size:.95em; margin-bottom:16px;
  box-shadow: var(--shadow);
}

.field{ 
  display:block; width:100%; font-weight:600; color:var(--text); 
  margin:0 0 20px 0; position:relative; 
}

.field-wrap{ 
  position:relative; display:flex; align-items:center; margin-top:8px;
}

.field-wrap input{ 
  width:100%; padding:16px 16px 16px 44px; 
  border:2px solid var(--border); border-radius:16px;
  font-family:'Nunito Sans',sans-serif; 
  background: linear-gradient(135deg, 
    var(--surface), 
    color-mix(in srgb, var(--surface) 97%, var(--brand-500) 3%)
  );
  color:var(--text); 
  font-size:1rem; font-weight:500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,.04),
    0 1px 2px rgba(0,0,0,.04);
}

.field-wrap input:focus{ 
  outline:none; 
  border-color: var(--brand-600); 
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface) 98%, var(--brand-500) 2%), 
    color-mix(in srgb, var(--surface) 95%, var(--brand-500) 5%)
  );
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--brand-500) 15%, transparent),
    inset 0 2px 4px rgba(0,0,0,.04),
    0 8px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.field-wrap input::placeholder{ 
  color:var(--muted); opacity:0.8; font-weight:400; 
}

.field-icon{ 
  position:absolute; left:14px; width:18px; height:18px; 
  color:var(--muted); z-index:5;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-wrap:focus-within .field-icon{ 
  color:var(--brand-600); transform: scale(1.1); 
}

.actions{ 
  display:flex; gap:12px; justify-content:flex-end; margin-top:24px; 
}

.btn-ghost{ 
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface) 96%, var(--brand-500) 4%), 
    var(--surface)
  ); 
  border:2px solid var(--border); color:var(--text); 
  padding:12px 20px; border-radius:16px; cursor:pointer; 
  box-shadow: var(--shadow); font-weight:600; font-size:0.95rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position:relative; overflow:hidden;
}

.btn-ghost::before{
  content:''; position:absolute; inset:0; 
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface-2) 60%, var(--brand-500) 40% / 8%),
    transparent
  );
  opacity:0; transition: opacity 0.25s ease;
}

.btn-ghost:hover{ 
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface-2) 90%, var(--brand-500) 10%), 
    color-mix(in srgb, var(--surface) 95%, var(--brand-500) 5%)
  );
  border-color: color-mix(in srgb, var(--border) 70%, var(--brand-600) 30%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.btn-ghost::before:hover{ opacity:1; }

.field-wrap input:valid:not(:placeholder-shown) {
  border-color: var(--success);
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface) 98%, var(--success) 2%), 
    color-mix(in srgb, var(--surface) 96%, var(--success) 4%)
  );
}

.field-wrap input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--error-light);
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--surface) 98%, var(--error-light) 2%), 
    color-mix(in srgb, var(--surface) 96%, var(--error-light) 4%)
  );
}

.field-wrap input:valid:not(:placeholder-shown) + .field-icon {
  color: var(--success);
}

.field-wrap input:invalid:not(:placeholder-shown):not(:focus) + .field-icon {
  color: var(--error-light);
}

.btn.loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  margin: auto;
  animation: spin 0.8s linear infinite;
}

.field-wrap input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-500) 60%, transparent);
  outline-offset: 2px;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from { 
    opacity: 0; 
    transform: translateY(16px) scale(0.96); 
  }
  to { 
    opacity: 1; 
    transform: translateY(-8px) scale(1); 
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

#downloadAuthPasswordField {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0;
}

#downloadAuthPasswordField.show {
  opacity: 1;
  max-height: 200px;
  margin-top: 20px;
}

#downloadAuthModal .icon-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

#downloadAuthForm {
  padding: 0;
}

.download-auth-actions {
  margin-top: 12px;
  justify-content: stretch;
  width: 100%;
}

.download-auth-actions .btn {
  width: 100%;
}

.tool-hero-new ~ .stats-banner,
.tool-hero-new ~ .how-to-edit-section ~ .stats-banner {
  margin-bottom: 80px;
}

.hero-no-bg .hero-upload-zone .file-input {
  pointer-events: auto;
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.hero-no-bg .hero-upload-zone .file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 4px;
}

.hero-no-bg .hero-upload-zone .file-label-text {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}

.hero-no-bg .hero-upload-zone .file-label-hint {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.upload-content-wrapper {
  width: 100%;
  padding: 16px;
  border-radius: 25px;
  background: var(--brand-pastel-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 280px;
  justify-content: center;
  gap: 10px;
}

.hero-no-bg .upload-content-wrapper,
.hero-upload-zone .upload-content-wrapper {
  background: var(--brand);
}

.hero-no-bg .hero-upload-zone .file-label-text,
.hero-upload-zone .upload-content-wrapper .file-label-text {
  color: #fff;
}

.hero-no-bg .hero-upload-zone .file-label-hint,
.hero-upload-zone .upload-content-wrapper .file-label-hint {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .site-header .container {
    padding: 16px;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .logo {
    order: 1;
    flex: 1;
  }
  .hamburger-menu {
    display: flex;
    order: 3;
    margin-left: auto;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    text-align: left;
  }
  .site-header .controls {
    display: none !important;
  }
  .mobile-nav-dropdown {
    display: block;
    width: 100%;
  }
  .mobile-nav-account {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
  }
  .mobile-nav-account:hover {
    background: var(--surface-2);
  }
  .mobile-nav-account .icon {
    width: 20px;
    height: 20px;
  }
  .mobile-signin-btn {
    display: block;
    margin: 12px 0 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand-500) 10%, var(--brand)), var(--brand-600));
    color: #fff;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--brand-700) 40%, var(--brand));
    box-shadow: 0 6px 16px rgba(37,99,235,.25);
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .mobile-signin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37,99,235,.3);
  }
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    margin: 0;
    border-radius: 8px;
  }
  .nav-dropdown-trigger .theme-icon {
    margin-right: 8px;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-top: 8px;
    background: var(--surface-2);
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: visible;
    transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.15s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    transform: none;
    max-height: 50vh;
    padding: 12px;
    overflow-y: auto;
    opacity: 1;
  }
  .tools-dropdown-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .tool-dropdown-card {
    padding: 12px 8px;
  }
  .tool-dropdown-icon {
    width: 28px;
    height: 28px;
  }
  .tool-dropdown-name {
    font-size: 11px;
  }
  .tools-dropdown-footer {
    margin-top: 8px;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
    border-top: none;
  }
  .forms-dropdown-menu {
    min-width: 100%;
  }
  .forms-dropdown-list {
    gap: 0;
  }
  .form-dropdown-item {
    padding: 10px 12px;
    font-size: 14px;
  }
  .forms-dropdown-footer {
    margin-bottom: 8px;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
    border-bottom: none;
  }
  .nav-dropdown.open .theme-dropdown-menu {
    max-height: 200px; /* Smaller value for smooth closing animation */
  }
  .theme-dropdown-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .theme-dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
  }
  .theme-dropdown-option:hover {
    background: var(--surface);
  }
  .theme-dropdown-option.active {
    background: var(--brand-600);
    color: #fff;
  }
  .theme-dropdown-option svg {
    flex-shrink: 0;
  }
  .logo-img {
    height: 42px;
    position: absolute;
  }
  .site-header .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  .upload-content-wrapper {
    padding: 12px;
    min-height: 200px;
  }
  .hero-no-bg .hero-upload-zone .file-label-text {
    font-size: 1rem;
  }
  .hero-no-bg .hero-upload-zone .file-label-hint {
    font-size: 0.8rem;
  }
  .note {
    font-size: 16px;
  }
  .how-it-works-section .note {
    margin: 0 0 40px 0;
  }
  .tool-description {
    font-size: 16px;
  }
  .tool-upload-zone {
    padding: 56px 24px;
  }
  .upload-icon {
    width: 56px;
    height: 56px;
  }
  .file-label-text {
    font-size: 17px;
  }
  .tool-submit-btn .upload-btn-icon {
    width: 18px;
    height: 18px;
  }
  .tool-hero-new ~ .stats-banner,
  .tool-hero-new ~ .how-to-edit-section ~ .stats-banner {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  .site-header .container {
    padding: 12px;
    gap: 8px;
  }
  .logo-img {
    height: 36px;
  }
  .site-header .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    min-height: 44px;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
  }
  .hamburger-menu {
    padding: 6px;
  }
  .hamburger-menu .icon {
    width: 20px;
    height: 20px;
  }
  .tools-dropdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-dropdown-card {
    padding: 10px 6px;
  }
  .tool-dropdown-icon {
    width: 24px;
    height: 24px;
  }
  .tool-dropdown-name {
    font-size: 10px;
  }
  .note {
    font-size: 14px;
  }
  .how-it-works-section .note {
    margin: 0 0 32px 0;
  }
  .icon {
    width: 28px;
    height: 28px;
  }
  .tool-description {
    font-size: 15px;
  }
  .tool-upload-zone {
    padding: 48px 20px;
  }
  .upload-icon {
    width: 48px;
    height: 48px;
  }
  .auth-modal-container,
  .download-auth-modal-container {
    width: 94vw;
    max-width: 94vw;
    min-height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  #downloadAuthSubtitle {
    font-size: 0.80rem;
  }
  #loginForm,
  #signupForm {
    min-height: auto;
  }
  .modal .card {
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 20px;
  }
}

.billing-method-badge.card {
  background: color-mix(in srgb, var(--brand-500) 12%, transparent);
  color: var(--brand-600);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none;
    animation: none;
  }
}

.tool-options-modal.modal {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: none;
}

.tool-options-modal.modal > .card {
  width: 560px;
  max-width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: none;
  position: relative;
}

.tool-options-modal.modal > .card.tool-dropdown-open {
  overflow: visible;
}

.tool-options-modal.modal .tool-options-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tool-options-modal.modal .tool-options-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.tool-options-modal.modal .tool-options-header .icon-btn {
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 8px;
  width: auto;
  height: auto;
  position: absolute;
  top: 0;
  right: 0;
  color: #a3a3a3;
}

.tool-options-modal.modal .tool-options-header .icon-btn:hover {
  background: var(--surface-2);
}

.tool-options-modal.modal .tool-options-header .icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
}

.tool-options-modal.modal .tool-options-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--brand-600) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-600) 20%, var(--border));
  border-radius: 12px;
  margin-bottom: 20px;
}

.tool-options-modal.modal .tool-options-file-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-600);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-options-modal.modal .tool-options-file-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.tool-options-modal.modal .tool-options-file-details {
  flex: 1;
  min-width: 0;
}

.tool-options-modal.modal .tool-options-filename {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-options-modal.modal .tool-options-filesize {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}

.tool-options-modal.modal .tool-options-fields {
  margin-bottom: 24px;
}

.tool-options-modal.modal .tool-options-fields label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.tool-options-modal.modal .tool-options-fields label:not(:first-child) {
  margin-top: 16px;
}

.tool-options-modal.modal .tool-options-fields .tool-option-row {
  margin-bottom: 16px;
}

.tool-options-modal.modal .tool-options-fields .tool-option-row:last-child {
  margin-bottom: 0;
}

.tool-options-modal.modal .tool-options-fields .tool-option-row label {
  margin-top: 0;
  margin-bottom: 8px;
}

.tool-options-modal.modal .tool-options-fields .tool-option-row:not(:first-child) label {
  margin-top: 16px;
}

.tool-options-modal.modal .tool-options-fields input[type="text"],
.tool-options-modal.modal .tool-options-fields input[type="number"],
.tool-options-modal.modal .tool-options-fields select,
.tool-options-modal.modal .tool-options-fields .tool-option-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  font-size: 0.9375rem;
}

.tool-options-modal.modal .tool-options-fields select:not(.tool-select-native),
.tool-options-modal.modal .tool-options-fields .tool-option-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.tool-options-modal.modal .tool-options-fields .tool-select-wrap {
  position: relative;
}

.tool-options-modal.modal .tool-options-fields .tool-select-native {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tool-options-modal.modal .tool-options-fields .tool-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  padding-right: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.tool-options-modal.modal .tool-options-fields .tool-select-trigger:hover {
  border-color: var(--border);
}

.tool-options-modal.modal .tool-options-fields .tool-select-trigger:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-600) 15%, transparent);
}

.tool-options-modal.modal .tool-options-fields .tool-select-value {
  flex: 1;
  min-width: 0;
}

.tool-options-modal.modal .tool-options-fields .tool-select-arrow {
  display: none;
}

.tool-options-modal.modal .tool-options-fields .tool-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  padding: 6px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

.tool-options-modal.modal .tool-options-fields .tool-select-dropdown.is-open {
  display: block;
}

.tool-options-modal.modal .tool-options-fields .tool-select-option {
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.tool-options-modal.modal .tool-options-fields .tool-select-option:hover {
  background: var(--surface-2);
}

.tool-options-modal.modal .tool-options-fields .tool-select-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--brand-600) 10%, var(--surface));
  color: var(--text);
}

.tool-options-modal.modal .tool-options-fields input:focus,
.tool-options-modal.modal .tool-options-fields select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-600) 15%, transparent);
}

.tool-options-modal.modal .tool-options-fields small {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 6px;
}

.tool-options-modal.modal .card > .btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: none;
}

.tool-options-modal.modal .card > .btn:hover {
  transform: none;
  box-shadow: none;
}

.tool-options-modal.modal .card > .btn:active {
  transform: scale(0.98);
}

.tool-options-modal.modal .card > .btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tool-options-modal.modal .tool-badge-group {
  display: flex;
  gap: 10px;
}

.tool-options-modal.modal .tool-badge-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tool-options-modal.modal .tool-badge-group label.tool-badge {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: left;
  margin: 0;
  min-height: 0;
}

.tool-options-modal.modal .tool-badge-group label.tool-badge::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tool-options-modal.modal .tool-badge-group label.tool-badge:hover {
  border-color: color-mix(in srgb, var(--brand-600) 50%, var(--border));
}

.tool-options-modal.modal .tool-badge-group input[type="radio"]:checked + label.tool-badge {
  border-color: var(--brand-600);
  background: var(--surface);
}

.tool-options-modal.modal .tool-badge-group input[type="radio"]:checked + label.tool-badge::after {
  border-color: var(--brand-600);
  background: var(--brand-600);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.tool-options-modal.modal .tool-badge-group .tool-badge-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.tool-options-modal.modal .tool-badge-group .tool-badge-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.3;
}

.tool-options-modal.modal .tool-badge-group .tool-badge-estimate {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  width: 100%;
}

@media (max-width: 540px) {
  .tool-options-modal.modal > .card {
    padding: 20px;
    margin: 16px;
    max-height: calc(100vh - 32px);
  }
  .tool-options-modal.modal .tool-options-header h3 {
    font-size: 1.125rem;
  }
  .tool-options-modal.modal .tool-options-file-info {
    padding: 12px 14px;
  }
  .tool-options-modal.modal .tool-options-fields input,
  .tool-options-modal.modal .tool-options-fields select,
  .tool-options-modal.modal .tool-options-fields .tool-select-trigger {
    padding: 10px 12px;
  }
  .tool-options-modal.modal .tool-options-fields .tool-select-trigger {
    padding-right: 36px;
  }
  .tool-options-modal.modal .card > .btn {
    padding: 12px 20px;
  }
  .tool-options-modal.modal .tool-badge-group label.tool-badge {
    padding: 10px 8px;
  }
  .tool-options-modal.modal .tool-badge-group label.tool-badge::after {
    width: 16px;
    height: 16px;
    top: 8px;
    right: 8px;
  }
  .tool-options-modal.modal .tool-badge-group .tool-badge-title {
    font-size: 0.8125rem;
  }
  .tool-options-modal.modal .tool-badge-group .tool-badge-desc {
    font-size: 0.6875rem;
  }
  .tool-options-modal.modal .tool-badge-group .tool-badge-estimate {
    font-size: 0.75rem;
  }
}

.exit-confirm-actions .btn {
  flex: 1;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 480px) {
  .exit-confirm-actions .btn {
    width: 100%;
    min-width: unset;
    padding: 12px 24px;
  }
}

@media (min-width: 769px) {
  .account-area .site-header .site-nav {
    display: none;
  }
  .account-area .site-header .controls {
    display: none;
  }
}

.account-dropdown-trigger .icon {
  fill: var(--text);
}

.account-dropdown-trigger-icon-only .icon {
  width: 32px;
  height: 32px;
}

.account-dropdown-trigger .dropdown-arrow {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.2s;
}

.account-dropdown-trigger[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.viewer-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
}

.zip-file-list .zip-entry-actions .btn-small {
  padding: 6px 10px;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .viewer-toolbar .btn {
    padding: 8px 12px;
    font-size: 0.875rem;
  }
}

.account-area-theme .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
}

body.editor-mode .site-header,
body.editor-mode footer,
body.editor-mode .site-footer,
body.editor-mode .footer-container {
  display: none !important;
}

.pdf-pw-actions .btn { flex: 1; }

/* ==============================================
   Email Autocomplete (from base.html inline)
   ============================================== */
.email-autocomplete-wrap {
  position: relative;
}
.email-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0 0;
  padding: 0;
  list-style: none;
  background: var(--surface, #fff);
  border: 1px solid var(--border, var(--border));
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-height: 126px;
  overflow-y: auto;
  overflow-x: hidden;
}
.email-suggestions.show {
  display: block;
}
.email-suggestions li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text, #1f2937);
  transition: background 0.15s;
  height: 42px;
  box-sizing: border-box;
}
.email-suggestions li:hover {
  background: var(--surface-2, #f3f4f6);
}

/* ==============================================
   Cookie Consent Banner
   ============================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgb(244, 244, 244);
  color: black;
  padding: 12px 40px 12px 16px;
  z-index: 10000;
  font-size: 12px;
  line-height: 1.5;
}
.cookie-banner-text {
  margin: 0;
  font-size: 12px;
}
.cookie-banner-text a {
  text-decoration: underline;
}
.cookie-banner-text a:hover {
  color: #fff;
}
.cookie-banner-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-banner-close:hover {
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-banner {
    font-size: 11px;
    padding: 10px 36px 10px 12px;
  }
  .cookie-banner-text {
    font-size: 11px;
  }
  .cookie-banner-close {
    top: 6px;
    right: 8px;
    font-size: 16px;
  }
}