/* Theme variables loaded from theme-*.css */

*{ box-sizing:border-box }
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 }

/* ========================
   Global Loader Component
   ======================== */
.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;
}

/* Indeterminate mode: rotating squares */
.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;
}

/* Determinate mode: progress bar */
.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;
}

/* Tool-specific animation area */
.loader-anim {
  display: none;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  height: 120px;
}
.loader-anim.active { display: flex; }

/* === Compress animation: document shrinking === */
.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; }
}

/* === Merge animation: two docs sliding together === */
.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; }
}

/* === Split animation: one doc splitting into two === */
.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; }
}

/* === Convert animation: doc morphing with arrow === */
.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); }
}

/* === Delete/rotate generic page animation === */
.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; }
}

/* === Rotate animation === */
.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); }
}

/* === OCR animation: scanning line === */
.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); }
}

/* === Image animation: picture frame pulse === */
.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); }
}

/* === Edit animation: document with lines filling in === */
.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 Styles (New) */


.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-only nav elements - hidden on desktop */
.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) }
/* Header-specific login button style */
.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);
}

/* ========================
   Tools Dropdown Navigation
   ======================== */
.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 Navigation
   ======================== */
.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) }

/* Site Footer - Redesigned */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 32px 80px;
  width: 100%;
}
.footer-container {
  display: flex;
  flex-direction: row;
  gap: 24px;
  width: 100%;
}
.footer-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  flex-direction: column;
}
.footer-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.footer-logo-svg {
  width: 140px;
  height: 40px;
}
.footer-copyright {
  font-size: 14px;
  color: var(--muted-lighter);
  margin: 0;
  font-weight: 500;
}
.footer-address {
  font-size: 14px;
  color: #9CA3AF;
  margin: 0;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
  width: auto;
  white-space: nowrap;
}
.footer-nav a {
  font-size: 14px;
  color: var(--muted-lighter);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--brand);
}

.hero{ padding:36px; border:1px solid var(--border); border-radius:16px; background:linear-gradient(135deg, color-mix(in srgb, var(--brand-500) 14%, var(--surface-2)), var(--surface)); box-shadow:var(--shadow) }
.hero-lg{ display:flex; gap:20px; align-items:center; justify-content:space-between; flex-wrap:wrap }
.hero-left{ flex:1 1 400px }
.hero-art{ flex:0 0 280px }
.hero-svg{ width:280px; height:auto; display:block; filter: drop-shadow(0 8px 18px rgba(0,0,0,.08)) }
.cta-row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap }

.hero-centered{ 
  padding:80px 24px; 
  border:none; 
  background:var(--brand-pastel-100); 
  box-shadow:rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  border-radius:16px;
  text-align:center;
  max-width:1500px;
  margin:0 auto 64px auto;
}
.hero-content{ 
  max-width:900px; 
  margin:0 auto; 
  display:flex; 
  flex-direction:column; 
  align-items:center;
}
.hero-centered h1{ 
  margin:0 0 16px 0; 
  font-size:48px; 
  font-weight:900; 
  color:#1D1D1D; 
  line-height:1.2;
  text-align:center;
}
.hero-centered .hero-content > p{ 
  margin:0 0 32px 0; 
  color:#4A4A4A; 
  font-size:22px;
  text-align:center;
}

/* Hero Upload Button - Modern Design */
.hero-upload-btn{ 
  font-size:1.15rem;
  font-weight:700;
  padding:16px 40px;
  border-radius:20px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.15),
    0 2px 4px rgba(37, 99, 235, 0.1);
  transition:all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position:relative;
  overflow:hidden;
}
.hero-upload-btn:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.25),
    0 4px 8px rgba(37, 99, 235, 0.15);
}
.hero-upload-btn:active{
  transform:translateY(0) scale(1);
  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.15),
    0 2px 4px rgba(37, 99, 235, 0.1);
}
.hero-upload-btn .upload-btn-icon{
  width:20px;
  height:20px;
  stroke-width:2.5;
  flex-shrink:0;
}

/* Feature Highlights */
.hero-features{ 
  display:flex; 
  justify-content:center; 
  gap:32px; 
  margin-bottom:24px;
  flex-wrap:wrap;
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.hero-feature-item .feature-icon{ 
  width:20px; 
  height:20px; 
  color:#1D1D1D;
  stroke-width:2;
}

/* Secondary CTA */
.hero-cta-secondary{ 
  margin-bottom:16px;
}

/* Legal Disclaimer */
.hero-legal{ 
  font-size:14px; 
  color:#64748B; 
  margin:0;
  text-align:center;
}
.hero-legal a{ 
  color:var(--brand-600); 
  text-decoration:underline;
}

/* Responsive Hero */

.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 Actions */
.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 }

/* Secondary buttons applied to existing .tool elements */
.btn-secondary, .tool{ 
  display:inline-block; 
  background:var(--surface); 
  color:var(--text); 
  padding:8px 12px; 
  border-radius:12px; 
  text-decoration:none; 
  border:1px solid var(--border); 
  cursor:pointer; 
  box-shadow:var(--shadow); 
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-secondary:hover, .tool:hover{ 
  background:var(--surface-2);
  transform: translateY(-1px); 
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  border-color:var(--brand-600);
}
.btn-secondary:active, .tool:active{ transform: translateY(0) }

.grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:16px }
.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) }

/* Pricing Cards - Enhanced Design */
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:24px;
  margin-top:32px;
}

.pricing-card{
  display:flex;
  flex-direction:column;
  padding:32px;
  border:2px solid var(--border);
  border-radius:20px;
  background:var(--surface);
  text-decoration:none;
  color:inherit;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position:relative;
  overflow:hidden;
}

.pricing-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 32px rgba(0,0,0,0.12);
  border-color:var(--brand-600);
}

.pricing-card-featured{
  border-color:var(--brand-600);
  background:linear-gradient(135deg, color-mix(in srgb, var(--brand-500) 8%, var(--surface)), var(--surface));
  box-shadow:0 8px 24px rgba(37,99,235,0.15);
}

.pricing-card-featured:hover{
  box-shadow:0 16px 40px rgba(37,99,235,0.2);
  border-color:var(--brand-700);
}

.pricing-badge-popular{
  position:absolute;
  top:0;
  left:0;
  right:0;
  background:linear-gradient(135deg, #f97316, #ea580c);
  color:#fff;
  text-align:center;
  padding:8px 16px;
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:0.5px;
  text-transform:uppercase;
}

.pricing-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
  margin-top:8px;
}

.pricing-card-featured .pricing-card-header{
  margin-top:40px;
}

.pricing-card-title{
  font-size:1.5rem;
  font-weight:700;
  color:var(--text);
  margin:0;
  line-height:1.2;
}

.pricing-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 12px;
  border-radius:999px;
  font-size:0.75rem;
  font-weight:600;
  background:var(--surface-2);
  border:1px solid var(--border);
  color:var(--muted);
  white-space:nowrap;
}

.pricing-badge-value{
  background:color-mix(in srgb, var(--brand-500) 15%, var(--surface));
  border-color:var(--brand-600);
  color:var(--brand-700);
}

.pricing-price{
  font-size:2.5rem;
  font-weight:800;
  letter-spacing:-0.03em;
  color:var(--text);
  margin:8px 0;
  line-height:1;
}

.pricing-description{
  font-size:0.95rem;
  color:var(--muted);
  margin-bottom:24px;
  line-height:1.5;
}

.pricing-features{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.pricing-features li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:0.95rem;
  color:var(--text);
  line-height:1.5;
}

.checkmark-icon{
  width:20px;
  height:20px;
  min-width:20px;
  min-height:20px;
  max-width:20px;
  max-height:20px;
  flex-shrink:0;
  margin-top:2px;
  color:var(--brand-600);
  fill:var(--brand-600);
  display:inline-block;
  vertical-align:middle;
}

.tools-grid{ 
  display:grid; 
  grid-template-columns:repeat(5, 1fr); 
  gap:24px; 
  margin:0;
  padding:0;
}
.tool-icon-card{ 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  text-align:center; 
  text-decoration:none; 
  color:inherit; 
  padding:24px; 
  background:var(--surface); 
  border:1px solid var(--border); 
  border-radius:12px; 
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  cursor:pointer;
}
.tool-icon-card:hover{ 
  transform:translateY(-4px); 
  box-shadow:0 8px 16px rgba(0,0,0,0.1);
}
.tool-icon{ 
  width:48px; 
  height:48px; 
  display:block;
  object-fit:contain;
}
.tool-name{ 
  font-size:16px; 
  font-weight:700; 
  color:var(--text); 
  line-height:22px; 
  margin:0;
}

/* How It Works Section */
.how-it-works-section{
  padding:80px 24px;
  max-width:1200px;
  margin:0 auto;
}
.how-it-works-section h2{
  margin:0 0 16px 0;
}
.how-it-works-section .note{
  margin:0 0 64px 0;
}
.how-it-works-container{
  display:flex;
  gap:64px;
  justify-content: space-between;
  align-items:center;
}
.how-it-works-steps{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:0;
  position:relative;
}
.step-wrapper{
  position:relative;
  display:flex;
  align-items:flex-start;
  margin-bottom:24px;
}
.step-wrapper:last-child{
  margin-bottom:0;
}
.step-number-badge{
  position:absolute;
  left:0;
  top:24px;
  width:32px;
  height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:16px;
  color:var(--brand-600);
  background:var(--bg);
  border:2px solid;
  z-index:3;
  flex-shrink:0;
}
.step-1 .step-number-badge{
  background:var(--brand-pastel-100);
  border-color:var(--brand-pastel-100);
}
.step-2 .step-number-badge{
  background:var(--brand-pastel-400);
  border-color:var(--brand-pastel-400);
}
.step-3 .step-number-badge{
  background:var(--brand-pastel-300);
  border-color:var(--brand-pastel-300);
}
.step-connector{
  position:absolute;
  left:15px;
  top:56px;
  width:2px;
  height:calc(100% - 12px);
  background:repeating-linear-gradient(
    to bottom,
    var(--brand-pastel-100) 0px,
    var(--brand-pastel-100) 4px,
    transparent 4px,
    transparent 8px
  );
  z-index:1;
}
.step-3 .step-connector{
  display:none;
}
.how-step-card{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:24px;
  padding:32px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  min-height:140px;
  margin-left:56px;
  flex:1;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.how-step-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 24px rgba(0,0,0,0.1), 0 0 0 2px var(--accent-red);
  border-color:var(--accent-red);
}
.how-step-card:hover .step-icon-container{
  background:var(--accent-red-pastel);
  color:var(--accent-red);
}
.step-icon-container{
  width:64px;
  height:64px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.step-1 .step-icon-container{
  background:var(--brand-pastel-100);
  color:var(--brand-600);
}
.step-2 .step-icon-container{
  background:var(--brand-pastel-400);
  color:var(--brand-600);
}
.step-3 .step-icon-container{
  background:var(--brand-pastel-300);
  color:var(--brand-600);
}
.step-icon{
  width:32px;
  height:32px;
  stroke:currentColor;
}
.step-content{
  flex:1;
  margin-left:8px;
}
.step-title{
  font-size:24px;
  font-weight:700;
  margin:0 0 8px 0;
  color:var(--text);
}
.step-description{
  font-size:16px;
  line-height:1.6;
  color:var(--muted);
  margin:0;
}
.how-it-works-illustration{
  flex:1;
  max-width:500px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.how-it-works-image{
  width:100%;
  height:auto;
  max-width:500px;
  object-fit:contain;
  display:block;
}

.features{ 
  display:grid; 
  grid-template-columns:repeat(3, minmax(200px, 1fr)); 
  gap:24px; 
  margin-top:32px;
  max-width:1200px;
  width:100%;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
  padding:0;
}
.feature-card{ 
  display:flex; 
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:20px; 
  border:1px solid var(--border); 
  border-radius:16px; 
  background:var(--surface); 
  padding:32px; 
  box-shadow:var(--shadow);
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  min-width:0;
  width:100%;
  box-sizing:border-box;
  overflow:hidden;
}
.feature-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 24px rgba(0,0,0,0.1), 0 0 0 2px var(--accent-red);
  border-color:var(--accent-red);
}
.icon-wrap{ 
  width:64px; 
  height:64px; 
  border-radius:12px; 
  display:grid; 
  place-items:center; 
  color:var(--brand-600);
  border:none;
  flex-shrink:0;
}
.feature-card-1 .icon-wrap{
  background:var(--brand-pastel-100);
}
.feature-card-2 .icon-wrap{
  background:var(--brand-pastel-400);
}
.feature-card-3 .icon-wrap{
  background:var(--brand-pastel-300);
}
.icon{ 
  width:32px; 
  height:32px;
}
.feature-text{
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
  min-width:0;
  max-width:100%;
}
.feature-title{ 
  font-weight:700;
  font-size:20px;
  color:var(--text);
  margin:0;
  word-wrap:break-word;
  overflow-wrap:break-word;
  white-space:normal;
  display:block;
  width:100%;
  text-align: left;
}
.feature-meta{ 
  color:var(--muted); 
  font-size:16px;
  line-height:1.6;
  margin:0;
  word-wrap:break-word;
  overflow-wrap:break-word;
  white-space:normal;
  display:block;
  width:100%;
}

form{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  flex-direction: column;
  width: 90%;
}
input[type="text"],input[type="number"],select,input[type="file"]{ padding:1px 1px; color:var(--text); border-color: #0b1220 }
.upload-input{ display:block; width:100%; padding:22px; border:2px dashed var(--border); background:var(--surface-2); border-radius:16px; transition: border-color .15s ease, background .15s ease }
.upload-input:hover{ border-color: var(--brand-600); background: color-mix(in srgb, var(--surface-2) 80%, var(--brand-500) 20% / 4%) }
.upload-input:focus{ outline: none; border-color: var(--brand-600) }
.upload-input::file-selector-button{ background: var(--brand); color:#fff; border:none; padding:10px 14px; border-radius:10px; margin-right:12px; cursor:pointer }
.upload-input::file-selector-button:hover{ filter:brightness(0.98) }
form.dragover{ outline: 2px dashed var(--brand-600); outline-offset: 6px; border-radius: 14px }

/* Tool Page Hero Section */
.tool-hero{
  padding:80px 24px;
  background:var(--brand-pastel-100);
  border-radius:16px;
  box-shadow:rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  max-width:1500px;
  margin:0 auto 64px auto;
}
.tool-hero-content{
  max-width:800px;
  margin:0 auto;
  text-align:center;
}
.tool-hero h1{
  font-size:42px;
  font-weight:700;
  color:#1D1D1D;
  margin:0 0 16px 0;
  line-height:1.2;
}
.tool-description{
  font-size:18px;
  color:#4A4A4A;
  margin:0 0 32px 0;
  line-height:1.6;
}

/* Tool Upload Form */
.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 (after upload) */
.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;
}

/* ===========================================
   NEW TOOL HERO DESIGN (Matching Homepage)
   =========================================== */

/* Color Theme Variables */
.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;
}

/* New Tool Hero Container */
.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;
}

/* New Upload Zone - Outer container with dashed border */
.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);
}

/* Inner colored wrapper */
.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;
}

/* Upload icon */
.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);
}

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

/* File label */
.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);
}

/* Upload button inside zone */
.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;
}

/* Additional fields outside the zone */
.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;
}

/* Trustpilot Reviews Widget */
.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;
}

/* Legal Text */
.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;
}

/* Feature Icons Row */
.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;
}

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

/* Mobile responsiveness */
@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;
  }
}

.subscription-row{ margin:16px 0 8px 0 }
.subscription-pill{ width:115px; display:inline-flex; align-items:center; justify-content:center; padding:8px 0; border-radius:999px; border:1px solid color-mix(in srgb, var(--brand-600) 30%, var(--border)); background:color-mix(in srgb, var(--brand-500) 10%, var(--surface)); color:var(--brand-700); font-weight:600; cursor:default }
.subscription-pill:disabled{ opacity:1 }
.subscription-actions{ margin:12px 0 16px 0 }
.subscription-unsubscribe{ display:inline-flex; align-items:center; justify-content:center; padding:2px 8px; border:none; background:transparent; color:var(--brand-600); font-weight:600; font-size:0.8em; cursor:pointer; transition:color .15s ease }
.subscription-unsubscribe:hover{ color:var(--brand-500) }
.subscription-unsubscribe:disabled{ opacity:.5; cursor:not-allowed }
.file-list{ margin-left:4px }
/* Standard Section Styling */
.mt{ 
  margin-top:64px;
  max-width:1500px;
  width:100%;
  margin-left:auto;
  margin-right:auto;
  padding:80px 24px;
  box-sizing:border-box;
}
section h2{
  font-size:42px;
  font-weight:700;
  text-align:center;
  margin:0 0 16px 0;
  color:var(--text);
}
.note{ 
  color:var(--muted); 
  font-size:20px;
  text-align:center;
  margin:0 0 32px 0;
  line-height:1.6;
}
.viewer-container{ border:1px solid var(--border); border-radius:12px; overflow:hidden; box-shadow:var(--shadow) }

/* Editor */
.editor-bar .tool{ background:var(--surface); border:1px solid var(--border); color:var(--text) }
.editor-wrap{ background:var(--surface); box-shadow:var(--shadow) }
.form-mode .toolbar .tool, .form-mode .btn { --brand:var(--brand-900); }
.form-mode .page{ border-color:var(--brand-pastel-400) }
.form-mode .toolbar{ border-bottom:1px solid var(--border) }
.fill-lock{ position:absolute; inset:0; background:rgba(30,58,138,.08); display:flex; align-items:center; justify-content:center; pointer-events:auto }
.fill-lock .panel{ background:rgba(30,58,138,.85); color:#fff; padding:18px 22px; border-radius:12px; box-shadow:var(--shadow); text-align:center }
.fill-lock .panel .btn{ background:#fff; color:var(--brand-900); border-color:#fff }

/* Loading indicator */
.loading{ display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); margin-top:12px }
.spinner{ width:20px; height:20px; border:3px solid var(--border); border-top-color: var(--brand); border-radius:50%; animation:spin .8s linear infinite }
@keyframes spin{ to{ transform: rotate(360deg) } }

/* Properties panel and modals */
.prop-panel{ position:fixed; right:16px; top:84px; width:260px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px; box-shadow:var(--shadow) }
.prop-panel h3{ margin:.2rem 0 .6rem 0; font-size:1rem }
.row{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin:6px 0 }
.row input[type="number"], .row input[type="color"], .row select{ flex:0 0 110px }

/* Enhanced Modern Modal Styles */
.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);
}

/* Modern Auth Panel */
.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 - Fixed width for consistency */
.auth-modal-container{
  width:520px;
  max-width:94vw;
  min-height:620px;
  position:relative;
  padding-top:8px;
}

/* Ensure forms maintain consistent height and positioning */
#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;
}

/* Make sure both forms have same content height */
#loginForm .actions,
#signupForm .actions{
  margin-top:auto;
  padding-top:24px;
}

/* Download Auth Modal Container - Smaller width */
.download-auth-modal-container{
  width:480px;
  max-width:94vw;
}

/* Auth Modal Close Button */
.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 animation (download-auth modal) */
.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 }

/* Trust Indicators - Enhanced Design */
.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;
}

/* File Preview Card */
.file-preview-card{
  background:linear-gradient(135deg, color-mix(in srgb, var(--brand-500) 8%, var(--surface)), var(--surface));
  border:2px solid var(--brand-500);
  border-radius:20px;
  padding:32px;
  position:sticky;
  top:1rem;
  box-shadow:0 8px 24px rgba(37,99,235,0.15);
}

.file-preview-title{
  margin:0 0 12px 0;
  font-size:1.5rem;
  font-weight:700;
  color:var(--text);
}

.file-preview-filename{
  margin-bottom:20px;
  font-size:0.875rem;
  color:var(--muted);
  word-break:break-all;
}

.file-preview-content{
  border-radius:12px;
  overflow:hidden;
  background:white;
  margin-bottom:20px;
}

.file-preview-cta{
  margin:0;
  font-size:0.95rem;
  color:var(--muted);
  text-align:center;
}

/* Enhanced Segmented Control */
.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);
}

/* Modern Alert */
.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);
}

/* Enhanced Form Fields */
.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); 
}

/* Enhanced Action Buttons */
.actions{ 
  display:flex; gap:12px; justify-content:flex-end; margin-top:24px; 
}
.auth-modal-container .actions{
  justify-content:stretch;
  width:100%;
}
.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; }


/* Form Validation States */
.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);
}

/* Loading Button State */
.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;
}

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

/* Modal Animations */
@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); 
  }
}

/* Pulse animation for loading states */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.export-modal{ z-index:1001 }
.sig-pad{ border:1px dashed var(--border); border-radius:12px; background:var(--surface-2) }
.grid-modal .thumb-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(120px,1fr)); gap:10px; max-height:70vh; overflow:auto }
.thumb-grid .cell{ border:1px solid var(--border); border-radius:10px; background:var(--surface); padding:6px }
.page .form-input, .page .form-checkbox{ z-index: 5 }
.form-input{ position:absolute; background:color-mix(in srgb, var(--surface-2) 85%, var(--brand-500) 15% / 12%); color:var(--text); border:1px solid var(--border); border-radius:0; padding:2px 4px; font: 13px/1.2 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto; }
.form-input:focus{ outline:none; border-color: var(--accent-red); background:color-mix(in srgb, var(--surface-2) 80%, var(--accent-red-pastel) 20% / 14%); box-shadow: 0 0 0 2px var(--accent-red-pastel); }
.form-checkbox{ position:absolute; width:18px; height:18px; border:2px solid #000; border-radius:0; background:transparent; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:10; pointer-events:auto; }
.form-checkbox.checked{ border-color: var(--accent-red); background: var(--accent-red-pastel); }
.form-checkbox.checked::after{ content: '✓'; color: var(--accent-red); font-weight: bold; font-size: 14px; }
.form-input.required, .form-checkbox.required{ outline:1px dashed var(--error); outline-offset:1px }
.form-input:hover, .form-checkbox:hover{ outline:1px dashed var(--brand-600); outline-offset:1px }
.mark-palette .tool, .field-menu .tool{ font-size:12px; padding:4px 8px }

/* Responsive styles */

/* 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;
}


/* Download Auth Modal - Password Field Transition */
#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;
}

/* Download Auth Modal - Close Button */
#downloadAuthModal .icon-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

#downloadAuthForm {
  padding: 0;
}

/* Download Auth Modal - Full Width Button */
/* Download Auth Modal Actions */
.download-auth-actions {
  margin-top: 12px;
  justify-content: stretch;
  width: 100%;
}

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


/* =========================================
   NEW HOMEPAGE DESIGN (Figma Implementation)
   ========================================= */

/* Reviews Widget */
.reviews-widget {
  margin-top: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.stars-container {
  display: flex;
  gap: 4px;
}
.star-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.reviews-text {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

/* One Simple Tool Banner */
.stats-banner {
  background: var(--bg);
  padding: 48px 40px;
  text-align: center;
  margin: 0;
  border: 1px solid var(--border-light);
  border-radius: 40px;
}

/* Stats banner margin on tool pages only */
.tool-hero-new ~ .stats-banner,
.tool-hero-new ~ .how-to-edit-section ~ .stats-banner {
  margin-bottom: 80px;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.stat-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  flex: 1;
}
.stat-item:hover .stat-icon {
  transform: scale(1.08);
}
.stat-separator {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}
.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.4s ease;
}
.stat-icon svg {
  width: 28px;
  height: 28px;
}
/* 2nd stat (child 3 because separators in between) */
.stats-grid > :nth-child(3) .stat-icon {
  background: rgba(112,42,225,0.08);
  color: #702AE1;
}
/* 3rd stat (child 5) */
.stats-grid > :nth-child(5) .stat-icon {
  background: rgba(234,88,12,0.08);
  color: #EA580C;
}
/* 4th stat (child 7) - green */
.stats-grid > :nth-child(7) .stat-icon {
  background: rgba(16,185,129,0.08);
  color: #10B981;
}
/* 5th stat (child 9) */
.stats-grid > :nth-child(9) .stat-icon {
  background: rgba(112,42,225,0.08);
  color: #702AE1;
}
.stat-text {
  text-align: left;
}
.stat-value {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}
.stat-label {
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Why Choose - New Features Grid (Figma Design) */
.why-choose-section {
  max-width: 1440px;
  margin: 60px 0;
}
.why-choose-container {
  background: var(--surface-2);
  border-radius: 24px;
  padding: 60px 48px;
}

/* Header: Text + Image side by side */
.why-choose-section .why-choose-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}
.why-choose-section .why-choose-text {
  flex: 1;
  max-width: 55%;
  text-align: left;
}
.why-choose-image {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-choose-illustration {
  max-width: 100%;
  width: 380px;
  height: auto;
  object-fit: contain;
}
.why-choose-section h2.section-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #101828;
  text-align: left;
}
.why-choose-section .section-subtitle {
  font-size: 18px;
  color: var(--text-tertiary);
  margin: 0 0 24px 0;
  text-align: left;
}
.why-choose-description {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-choose-description p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-tertiary);
  margin: 0;
}

.features-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card-new {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--bg);
  border: none;
  border-radius: 28px;
  box-shadow: 0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-items: center;
  text-align: center;
}
.feature-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 24px -4px rgba(16, 24, 40, 0.12);
}
.feature-card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: #101828; /* Slightly off-black */
  margin: 0;
}
.feature-meta {
  font-size: 16px;
  color: var(--text-tertiary); /* Muted text */
  line-height: 1.5;
  margin: 0;
}

/* Why Choose Section media queries are consolidated at the end of the file */

.feature-icon-new {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  object-fit: contain;
}

/* Trust Badges - Row */
.trust-badges-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 80px;
  padding: 24px;
  background: var(--surface-2);
  border-radius: 16px;
}
.trust-badge-img-row {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.trust-badge-img-row:hover {
  opacity: 1;
}

/* Trusted Section - New Design */
.trusted-section {
  padding: 40px 0px;
  text-align: center;
}
.trusted-title {
  font-size: 36px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 32px 0;
  text-align: center;
}
.trusted-badges-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trusted-badge-img {
  height: auto;
  max-height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Ready to Edit CTA - New Design */
.ready-cta-section {
  padding: 40px 0px;
}
.ready-cta-banner {
  background: linear-gradient(105deg, var(--brand-800) 0%, var(--blue-500) 100%);
  color: #fff;
  padding: 40px 48px;
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ready-cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ready-cta-title {
  font-size: 36px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #fff;
}
.ready-cta-subtitle {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}
.ready-cta-btn {
  background: #fff;
  color: var(--brand-900);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  width: 343px;
  justify-content: center;
  align-items: center;
}
.ready-cta-btn:hover {
  background: var(--surface-3);
  transform: translateY(-1px);
}
.cta-upload-icon {
  width: 18px;
  height: 18px;
}

/* Legacy CTA styles - kept for compatibility */
.ready-cta {
  background: var(--brand-600);
  color: #fff;
  padding: 64px 24px;
  border-radius: 24px;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}
.ready-cta h2 {
  font-size: 36px;
  margin: 0;
  color: #fff;
}
.ready-cta p {
  font-size: 18px;
  max-width: 600px;
  margin: 0;
  opacity: 0.9;
}
.btn-white {
  background: #fff;
  color: var(--brand-600);
  font-weight: 700;
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 12px;
}
.btn-white:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ===========================================
   HOMEPAGE-SPECIFIC STYLES
   =========================================== */

/* Hero Section - No Background Variant */
.hero-no-bg {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0px 24px 40px 24px;
}

/* Upload Icon SVG */
.upload-icon-svg {
  width: 48px;
  height: 48px;
  fill: var(--brand);
  margin-bottom: 16px;
}

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

/* Homepage Upload Zone - Scoped to .hero-no-bg to avoid conflict with edit_pdf.html */
.hero-no-bg .hero-upload-zone {
  position: relative;
  background: var(--bg);
  padding: 32px;
  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: 100%;
}
.hero-no-bg .hero-upload-zone:hover {
  border-color: var(--brand);
}
.hero-no-bg .hero-upload-zone.dragover {
  border-color: var(--brand);
  transform: scale(1.02);
}
.hero-no-bg .hero-upload-zone * {
  pointer-events: none;
}
.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);
}

/* Inner content wrapper - Light blue background */
.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;
}
/* Homepage + Edit PDF upload wrapper: solid brand background with white text */
.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);
}

/* Button inside upload zone */
.hero-no-bg .hero-upload-zone .hero-upload-btn-inside {
  margin-top: 20px;
  width: auto;
  min-width: 200px;
}

/* Reviews Widget - Homepage Horizontal Layout */
.reviews-great {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.trustpilot-stars {
  height: 20px;
  width: auto;
  object-fit: contain;
}
.reviews-count {
  font-size: 14px;
  color: var(--muted);
}
.trustpilot-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* Reviews Widget Mobile */
@media (max-width: 600px) {
  .reviews-widget {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .trustpilot-stars {
    height: 12px;
  }
  .trustpilot-logo {
    height: 18px;
  }
}

/* Legal Text */
.hero-legal-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.hero-legal-text a {
  color: inherit;
  text-decoration: underline;
}

/* Feature Icons Row */
.hero-features-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-feature-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* How to Edit Your PDF Section */
.how-to-edit-section {
  padding: 40px 0px 80px 0px;
  text-align: center;
}
.how-to-edit-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
}
.how-to-edit-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 40px 0;
}
.how-to-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-to-edit-card {
  background: rgba(37,99,235,0.08);
  border-radius: 16px;
  padding: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.how-to-edit-card:hover {
  background: rgba(37,99,235,0.13);
}
.how-to-edit-card:nth-child(2) {
  background: rgba(112,42,225,0.08);
}
.how-to-edit-card:nth-child(2):hover {
  background: rgba(112,42,225,0.13);
}
.how-to-edit-card:nth-child(3) {
  background: rgba(234,88,12,0.08);
}
.how-to-edit-card:nth-child(3):hover {
  background: rgba(234,88,12,0.13);
}
.step-icon-wrapper {
  width: 56px;
  height: 56px;
  background: var(--brand);
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 24px;
  box-shadow: 0 8px 16px rgba(37,99,235,0.2);
}
.how-to-edit-card:nth-child(2) .step-icon-wrapper {
  background: #702AE1;
  box-shadow: 0 8px 16px rgba(112,42,225,0.2);
}
.how-to-edit-card:nth-child(3) .step-icon-wrapper {
  background: #EA580C;
  box-shadow: 0 8px 16px rgba(234,88,12,0.2);
}
.step-card-content {
  flex: 1;
}
.step-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  color: var(--brand);
}
.how-to-edit-card:nth-child(2) .step-label {
  color: #702AE1;
}
.how-to-edit-card:nth-child(3) .step-label {
  color: #EA580C;
}
.step-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
}
.step-card-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Stats Title - Homepage */
.stats-title {
  font-size: 36px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 40px 0;
  text-align: center;
}

/* Tools Section - Homepage Design */
.tools-section {
  display: flex;
  max-width: 1500px;
  margin: 0 auto;
  padding: 80px 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  align-self: stretch;
  background: var(--bg);
}
.tools-section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-align: center;
  width: 100%;
}
.tools-section-subtitle {
  font-size: 20px;
  color: var(--muted-lighter);
  margin: 0;
  text-align: center;
  width: 100%;
}
.tools-section .tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  width: 100%;
}
.tools-section .tool-icon-card {
  display: flex;
  max-width: 343px;
  padding: 32px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex: 1 0 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.tools-section .tool-icon-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.tools-section .tool-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.tools-section .tool-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}

/* Tools Tab Bar */
.tools-tabs-bar {
  display: flex;
  gap: 6px;
  background: var(--brand-pastel-200);
  border-radius: 12px;
  padding: 6px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 24px;
}
.tools-tabs-bar::-webkit-scrollbar {
  display: none;
}
.tools-tab {
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.tools-tab:hover {
  color: var(--text);
}
.tools-tab.active {
  background: var(--brand-900);
  color: #fff;
}
.tools-section .tools-content-wrapper {
  background: var(--brand-pastel-100);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
}
.tools-section .tools-tab-panel {
  display: none;
}
.tools-section .tools-tab-panel.active {
  display: grid;
  animation: tabFadeIn 0.25s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Forms tab — purple hover accent */
.tools-tab-forms .tool-icon-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

/* View All Forms link */
.tool-view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  background: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
  grid-column: 1 / -1;
}
.tool-view-all-btn:hover {
  opacity: 0.7;
}
.tool-view-all-btn svg {
  flex-shrink: 0;
}

/* Trust Badges - Homepage */
.trust-badges-section {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  padding: 0 20px;
}

/* ===========================================
   CONSOLIDATED MEDIA QUERIES
   Order: 1280px > 1024px > 900px > 768px > 480px > min-width > accessibility
   =========================================== */

/* --- Large Desktop (max-width: 1280px) --- */
@media (max-width: 1280px) {
  .tools-section {
    padding: 60px 40px;
  }
  .tools-section .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Tablet Landscape (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .how-it-works-container {
    flex-direction: column;
    gap: 48px;
    align-items: center;
  }
  .how-it-works-steps {
    max-width: 100%;
    width: 100%;
  }
  .how-it-works-illustration {
    max-width: 100%;
    padding: 16px;
    margin-top: 40px;
  }
  .how-it-works-image {
    max-width: 100%;
    max-height: 400px;
  }
  .features-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-choose-section .why-choose-header {
    gap: 32px;
  }
  .why-choose-section .why-choose-text {
    max-width: 55%;
  }
  .why-choose-image {
    flex: 0 0 40%;
  }
  .why-choose-illustration {
    width: 300px;
  }
}

/* --- Medium Desktop (max-width: 900px) --- */
@media (max-width: 900px) {
  .tools-section .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Tablet Portrait (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Header */
  .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;
  }
  
  /* Hide desktop controls on mobile */
  .site-header .controls {
    display: none !important;
  }
  
  /* Show mobile-only elements */
  .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);
  }
  
  /* Mobile Tools Dropdown - Accordion Style */
  .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;
  }
  
  /* Mobile Forms Dropdown */
  .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;
  }
  
  /* Mobile Theme Dropdown */
  .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;
  }
  .footer-logo {
    position: relative;
  }
  .site-header .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero-centered {
    padding: 48px 16px;
  }
  .hero-centered h1 {
    font-size: 2rem;
  }
  .hero-centered .hero-content > p {
    font-size: 14px;
    margin: 0 0 5px 0
  }
  .hero-upload-btn {
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 16px;
    gap: 8px;
  }
  .hero-upload-btn .upload-btn-icon {
    width: 18px;
    height: 18px;
  }
  .hero-features {
    gap: 24px;
  }
  .hero-no-bg {
    padding: 40px 16px 32px 16px;
  }
  .hero-no-bg h1 {
    font-size: 28px;
  }
  .hero-no-bg p {
    font-size: 12px;
  }
  .hero-no-bg .hero-upload-zone {
    padding: 24px;
  }
  .upload-content-wrapper {
    padding: 12px;
    min-height: 200px;
  }
  .upload-icon-svg {
    width: 40px;
    height: 40px;
  }
  .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;
  }
  .hero-features-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
  }
  .hero-feature-item {
    font-size: 13px;
  }

  /* Sections */
  .mt, .how-it-works-section {
    padding: 32px 16px;
    margin-top: 40px;
  }
  section h2 {
    font-size: 28px;
  }
  .note {
    font-size: 16px;
  }
  .how-it-works-section .note {
    margin: 0 0 40px 0;
  }
  .how-it-works-illustration {
    padding: 12px;
  }
  .how-it-works-image {
    max-height: 350px;
  }

  /* Features */
  .features {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 20px;
    max-width: 100%;
    width: 100%;
    padding: 0;
  }
  .feature-card {
    padding: 24px;
    min-width: 0;
  }
  .feature-title {
    font-size: 18px;
  }
  .feature-meta {
    font-size: 15px;
  }
  .features-grid-new {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* How It Works Steps */
  .how-step-card {
    padding: 24px;
    min-height: 120px;
    margin-left: 48px;
  }
  .step-icon-container {
    width: 56px;
    height: 56px;
  }
  .step-icon {
    width: 28px;
    height: 28px;
  }
  .step-title {
    font-size: 20px;
  }
  .step-description {
    font-size: 14px;
  }
  .step-number-badge {
    width: 28px;
    height: 28px;
    font-size: 14px;
    top: 20px;
    left: 0;
  }
  .step-connector {
    left: 13px;
    top: 48px;
  }

  /* How to Edit Section */
  .how-to-edit-section {
    padding: 32px 16px 48px 16px;
  }
  .how-to-edit-section h2 {
    font-size: 24px;
  }
  .how-to-edit-subtitle {
    font-size: 15px;
  }
  .how-to-edit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .how-to-edit-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 20px;
    gap: 14px;
  }
  .step-icon-wrapper {
    width: 40px;
    height: 40px;
    padding: 0;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .step-icon-img {
    width: 20px;
    height: 20px;
  }
  .step-label {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .step-card-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .step-card-description {
    font-size: 13px;
  }

  /* Tool Hero */
  .tool-hero {
    padding: 48px 16px;
  }
  .tool-hero h1 {
    font-size: 32px;
  }
  .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;
  }

  /* Stats */
  .stats-banner {
    padding: 24px 16px;
    border-radius: 24px;
  }
  .stats-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-separator {
    display: none;
  }
  .stat-item {
    gap: 12px;
    padding: 14px 12px;
    background: var(--surface-2);
    border-radius: 14px;
  }
  .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .stat-icon svg {
    width: 20px;
    height: 18px;
  }
  .stat-value {
    font-size: 20px;
    line-height: 1.1;
  }
  .stat-label {
    font-size: 8px;
    letter-spacing: 0.05em;
  }

  /* Stats banner margin on tool pages only (mobile) */
  .tool-hero-new ~ .stats-banner,
  .tool-hero-new ~ .how-to-edit-section ~ .stats-banner {
    margin-bottom: 30px;
  }

  /* Tools Grid */
  .tools-section {
    padding: 40px 16px;
    gap: 24px;
  }
  .tools-section-title {
    font-size: 24px;
  }
  .tools-section-subtitle {
    font-size: 15px;
  }
  .tools-section .tools-content-wrapper {
    padding: 12px;
    border-radius: 16px;
  }
  .tools-tabs-bar {
    padding: 3px;
    gap: 2px;
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .tools-tab {
    padding: 7px 0;
    font-size: 12px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }
  .tools-section .tools-tab-panel {
    display: none;
  }
  .tools-section .tools-tab-panel.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tools-section .tool-icon-card,
  section.tools-section .tool-icon-card,
  .tool-icon-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    gap: 8px;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }
  .tools-section .tool-icon,
  section.tools-section .tool-icon,
  .tool-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .tools-section .tool-name,
  section.tools-section .tool-name,
  .tool-name {
    text-align: center;
    font-size: 13px;
  }

  /* Why Choose Section */
  .why-choose-container {
    padding: 32px 20px;
    border-radius: 16px;
  }
  .why-choose-section .why-choose-header {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
  }
  .why-choose-section .why-choose-text {
    order: 2;
    max-width: 100%;
  }
  .why-choose-image {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
  }
  .why-choose-illustration {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
  }
  .why-choose-section h2.section-title {
    font-size: 24px;
    text-align: center;
  }
  .why-choose-section .section-subtitle {
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
  }
  .why-choose-description {
    gap: 14px;
  }
  .why-choose-description p {
    font-size: 14px;
    text-align: left;
  }

  /* Forms Modal */
  #formsModalGlobal {
    align-items: flex-start;
    padding: 16px;
    overflow-y: auto;
  }
  .forms-modal-card {
    padding: 24px 20px;
    max-height: calc(90vh - 32px);
    border-radius: 16px;
  }
  .forms-modal-header h2 {
    font-size: 28px;
  }
  .forms-modal-subtitle {
    font-size: 15px;
  }
  .forms-modal-header {
    margin-bottom: 24px;
  }
  .forms-grid {
    gap: 10px;
    margin-bottom: 20px;
  }
  .forms-card {
    padding: 14px 16px;
  }
  .forms-card-title {
    font-size: 16px;
  }
  .forms-close-btn {
    width: 100%;
  }

  /* Footer */
  .site-footer {
    padding: 24px 24px;
  }
  .footer-container {
    gap: 20px;
    flex-direction: column;
  }
  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-nav {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    white-space: normal;
  }

  /* Cookie Banner */
  .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;
  }

  /* CTA */
  .ready-cta-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* --- Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  /* Header */
  .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;
  }
  
  /* Mobile Tools Dropdown - Smaller screens */
  .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;
  }

  /* Hero */
  .hero-centered {
    padding: 10px 16px;
    margin-bottom: 32px;
  }
  .hero-centered h1 {
    font-size: 1.55rem;
    margin: 0;
  }
  .hero-centered .hero-content > p {
    font-size: 14px;
  }
  .hero-features {
    flex-direction: column;
    gap: 16px;
  }
  .hero-upload-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 28px;
    justify-content: center;
  }
  .hero-features-row {
    gap: 12px;
    align-items: center;
  }

  /* Sections */
  .mt, .how-it-works-section {
    padding: 24px 12px;
    margin-top: 40px;
  }
  section h2 {
    font-size: 24px;
  }
  .note {
    font-size: 14px;
  }
  .how-it-works-section .note {
    margin: 0 0 32px 0;
  }
  .how-it-works-illustration {
    padding: 8px;
    display: none;
  }
  .how-it-works-image {
    max-height: 280px;
  }

  /* Features */
  .features {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
    width: 100%;
    padding: 0;
  }
  .feature-card {
    padding: 20px;
    gap: 16px;
    min-width: 0;
  }
  .icon-wrap {
    width: 56px;
    height: 56px;
  }
  .icon {
    width: 28px;
    height: 28px;
  }
  .feature-title {
    font-size: 17px;
  }
  .feature-meta {
    font-size: 14px;
  }
  .features-grid-new, .stats-grid {
    grid-template-columns: 1fr;
  }
  .feature-card-new {
    padding: 24px;
  }

  /* How It Works Steps */
  .how-it-works-container {
    flex-direction: column;
    gap: 32px;
  }
  .how-it-works-steps {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  .how-step-card {
    padding: 20px;
    min-height: 100px;
    gap: 16px;
    margin-left: 40px;
  }
  .step-icon-container {
    width: 48px;
    height: 48px;
  }
  .step-icon {
    width: 24px;
    height: 24px;
  }
  .step-title {
    font-size: 18px;
  }
  .step-description {
    font-size: 13px;
  }
  .step-number-badge {
    width: 24px;
    height: 24px;
    font-size: 12px;
    top: 16px;
    left: 0;
  }
  .step-connector {
    left: 11px;
    top: 40px;
  }

  /* Tool Hero */
  .tool-hero {
    padding: 32px 12px;
  }
  .tool-hero h1 {
    font-size: 28px;
  }
  .tool-description {
    font-size: 15px;
  }
  .tool-upload-zone {
    padding: 48px 20px;
  }
  .upload-icon {
    width: 48px;
    height: 48px;
  }

  /* Stats */
  .stats-grid {
    gap: 10px;
  }
  .stat-item {
    padding: 12px 10px;
  }
  .stat-value {
    font-size: 20px;
  }

  /* Tools Grid */
  .tools-section .tools-tab-panel {
    display: none;
  }
  .tools-section .tools-tab-panel.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tool-icon-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .tool-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .tool-name {
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
  }

  /* Forms Modal */
  #formsModalGlobal {
    padding: 8px;
  }
  .forms-modal-card {
    padding: 20px 16px;
    border-radius: 16px;
    max-height: calc(90vh - 16px);
  }
  .forms-modal-header h2 {
    font-size: 24px;
  }
  .forms-modal-subtitle {
    font-size: 14px;
  }
  .forms-modal-header {
    margin-bottom: 20px;
  }
  .forms-grid {
    gap: 8px;
    margin-bottom: 16px;
  }
  .forms-card {
    padding: 12px 14px;
  }
  .forms-card-title {
    font-size: 15px;
  }

  /* Cookie Banner */
  .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;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pricing-card {
    padding: 24px;
  }
  .pricing-price {
    font-size: 2rem;
  }
  .pricing-card-title {
    font-size: 1.25rem;
  }

  /* Auth Modals */
  .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;
  }

  /* CTA */
  .ready-cta {
    padding: 40px 20px;
    border-radius: 16px;
  }
  .ready-cta h2 {
    font-size: 28px;
  }
  .ready-cta-section {
    padding: 24px 16px;
  }
  .ready-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }
  .ready-cta-title {
    font-size: 22px;
  }
  .ready-cta-subtitle br {
    display: none;
  }
  .feature-icon-new {
    width: 32px;
    height: 32px;
  }
  .trusted-title {
    font-size: 29px;
  }
}

/* --- Desktop Only (min-width: 769px) --- */
@media (min-width: 769px) {
  .how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }
  .how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
  }
  .step-wrapper {
    position: relative;
    width: 100%;
  }
  .step-connector {
    display: none;
  }
  .how-step-card {
    background: var(--brand-pastel-100);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .how-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  .step-icon-container {
    background: #fff;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  .step-number-badge {
    display: none;
  }
  .step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 0;
  }
  .step-description {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
  }
}

/* ==============================================
   OFFERS PAGE - Page Container
   ============================================== */

.offers-page-container {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 80px; /* Account for fixed header */
}

.offers-page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==============================================
   OFFERS PAGE - Progress Stepper
   ============================================== */

.offers-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 1rem;
  margin-bottom: 2.5rem;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
}

.stepper-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.stepper-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s ease;
}

.stepper-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 0.75rem;
  transition: background 0.3s ease;
  position: relative;
}

.stepper-line::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--border);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: border-color 0.3s ease;
}

/* Done state */
.stepper-step.done .stepper-number {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.stepper-step.done .stepper-label {
  color: var(--brand-600);
  font-weight: 600;
}

.stepper-line.done {
  background: var(--brand-600);
}

.stepper-line.done::after {
  border-left-color: var(--brand-600);
}

.stepper-check {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Active/current state */
.stepper-step.active .stepper-number {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.stepper-step.active .stepper-label {
  color: var(--text);
  font-weight: 600;
}

/* ==============================================
   OFFERS PAGE - Two-Column Layout
   ============================================== */

/* Custom Offers Header - Logo + Progress Bar */
.offers-custom-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.offers-custom-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.offers-logo {
  display: flex;
  align-items: center;
}

.offers-logo svg {
  height: 48px;
  width: auto;
}

/* Stepper in header */
.offers-stepper-header {
  margin: 0;
  padding: 0;
}

/* Header Row - Title + Continue Button */
.offers-header-row {
  display: grid;
  grid-template-columns: minmax(380px, 480px) 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  /* Sticky styles */
  position: sticky;
  top: 80px; /* Below the fixed header */
  z-index: 50;
  background: var(--bg);
  padding: 1rem 2rem;
  margin-left: -2rem;
  margin-right: -2rem;
  transition: box-shadow 0.2s ease;
}

/* Shadow when sticky (using intersection observer alternative - always show subtle shadow) */
.offers-header-row.is-stuck {
  border-bottom: 1px solid lightgrey;
}

.offers-header-row .offers-plans-title {
  margin: 0;
  grid-column: 1;
}

/* Desktop Continue Button in header - aligned with right column */
.offers-continue-btn-desktop {
  min-width: 200px;
  padding: 1rem 2.5rem;
  justify-self: end;
  grid-column: 2;
  background: var(--success) !important;
  border-color: var(--success) !important;
  animation: continueButtonPulse 2s ease-in-out infinite;
}

.offers-continue-btn-desktop:hover {
  background: #059669 !important;
  border-color: #059669 !important;
}

/* Pulse animation for Continue button (green) */
@keyframes continueButtonPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
}

/* Mobile Continue Button (hidden on desktop) */
.offers-continue-btn.offers-continue-btn-mobile {
  display: none;
}

.offers-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Left column - Document Preview */
.offers-preview-column {
  position: sticky;
  top: 2rem;
  background: var(--surface-4);
  border: 1px solid #dbddde;
  border-radius: 16px;
  padding: 1.5rem;
}

/* Preview Header: Icon + Title inline */
.preview-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.preview-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.preview-pdf-icon {
  width: 35px;
  height: 40px;
}

.preview-type-pill {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-600) 15%, var(--bg));
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--brand-600) 30%, var(--bg));
}

.preview-check-badge {
  position: absolute;
  bottom: -4px;
  right: -6px;
  width: 20px;
  height: 20px;
}

.offers-preview-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.offers-document-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  max-width: 100%;
}

.offers-document-preview {
  background: white;
  padding: 1.5rem;
  min-height: 400px;
  max-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offers-document-preview img,
.offers-document-preview canvas {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.offers-document-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offers-page-count {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.25rem;
}

/* Desktop: hide page count below filename, show in header */
#document-page-count {
  display: none;
}

.offers-page-count-header {
  display: block;
  margin-left: auto;
  text-align: right;
  margin-top: 0;
  white-space: nowrap;
}

/* Right column - Plan Selection */
.offers-plans-column {
  /* No max-width - uses 50% from grid */
}

.offers-plans-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  white-space: nowrap;
}

.offers-plans-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}

/* ==============================================
   OFFERS PAGE - Plan Cards (New Design)
   ============================================== */

.offers-plan-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Plan card - horizontal layout with name left, price right */
.offer-plan-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.875rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.offer-plan-card:hover {
  border-color: var(--brand-500);
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}

.offer-plan-card.selected {
  border: 2px solid var(--blue-500);
  background: var(--brand-pastel-100);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 2px 8px 0 rgba(0, 0, 0, 0.06);
}

/* Badge - positioned above card content when present */
.plan-badge {
  position: absolute;
  top: -10px;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--brand-600);
  border-radius: 4px;
}

.badge-star {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-top: -1px;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.plan-price {
  font-size: 1.225rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Annual plan price display - monthly breakdown */
.plan-price .price-cents {
  font-size: 0.65em;
  vertical-align: super;
  font-weight: 700;
}

.plan-price .price-period {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--muted);
  vertical-align: baseline;
}

.plan-description {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.plan-features-inline {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

.plan-features-inline .bullet {
  color: var(--muted);
  margin: 0 0.5rem;
}

/* Continue Button */
.offers-continue-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.offers-continue-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.offers-continue-btn:hover svg {
  transform: translateX(4px);
}

/* Plan description section - shows features of selected plan */
.plan-description-section {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
}

.plan-feature-item.inactive {
  color: var(--muted);
}

.plan-feature-item.inactive span {
  text-decoration: line-through;
  opacity: 0.6;
}

.plan-feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Mobile preview section - hidden on desktop */
.mobile-preview-section {
  display: none;
}

/* Disclaimer */
.offers-disclaimer {
  margin-top: 1.5rem;
  padding: 0;
  text-align: left;
  color: var(--text);;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.offers-disclaimer p {
  margin: 0 0 0.5rem 0;
}

.offers-disclaimer p:last-child {
  margin-bottom: 0;
}

.offers-disclaimer a {
  color: inherit;
  text-decoration: underline;
}

.offers-disclaimer a:hover {
  opacity: 0.8;
}

.free-doc-claim-wrap {
  margin-top: 0.25rem;
}

.free-doc-claim-link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.free-doc-claim-link:hover {
  opacity: 0.8;
}

/* Free document claim modal */
.free-doc-modal .free-doc-modal-card {
  position: relative;
  padding: 48px 40px 32px;
  max-width: 420px;
  text-align: center;
}

.free-doc-modal-message {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.free-doc-modal-error {
  font-size: 0.9375rem;
  color: var(--error);
  margin-bottom: 16px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--error) 10%, var(--surface));
  border-radius: 8px;
  text-align: left;
}

.free-doc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.free-doc-modal-close:hover {
  color: var(--text);
  background: var(--surface-2);
}

.free-doc-modal-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.free-doc-modal-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
}

.free-doc-modal-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ==============================================
   SUCCESS PAGE - Benefits & Actions
   ============================================== */

.success-subtitle {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.success-benefits {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.success-benefits-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.success-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 25px 0;
}

.success-benefit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.success-benefit-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-pastel-100);
  border-radius: 12px;
}

.success-benefit-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand-600);
  fill: none;
}

.success-benefit-card span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.success-actions {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.success-btn-primary {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

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

.success-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.success-btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--brand-600);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .success-subtitle {
    display: none;
  }

  .success-benefits-grid {
    grid-template-columns: 1fr;
  }

  .success-benefit-card {
    padding: 16px 18px;
  }

  .success-benefit-icon {
    width: 40px;
    height: 40px;
  }

  .success-benefit-icon svg {
    width: 20px;
    height: 20px;
  }

  .success-actions {
    flex-direction: column;
    align-items: center;
  }

  .success-btn {
    width: 80%;
    max-width: 300px;
  }
}

/* ==============================================
   OFFERS PAGE - Trust Section
   ============================================== */

.offers-trust-section {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.offers-trust-title {
  font-size: 36px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 32px 0;
  text-align: center;
}

.offers-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.offers-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--brand-pastel-100);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.offers-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offers-trust-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--brand-600);
}

.offers-trust-content {
  flex: 1;
}

.offers-trust-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.offers-trust-card-text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ==============================================
   OFFERS PAGE - Mobile Stepper
   ============================================== */

/* ==============================================
   OFFERS PAGE - Mobile Responsive Styles
   ============================================== */

@media (max-width: 768px) {
  /* Page container adjustments */
  .offers-page-container {
    padding: 70px 0 0 0; /* Top padding for fixed header */
    overflow-x: hidden;
  }
  
  .offers-page-content {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0;
  }

  /* Hide desktop stepper on mobile */
  .offers-stepper {
    display: none;
  }
  
  /* Custom header adjustments for mobile */
  .offers-custom-header-inner {
    padding: 0.5rem 1rem;
  }
  
  .offers-custom-header .offers-stepper-header {
    display: none;
  }
  
  .offers-logo svg {
    height: 36px;
    width: auto;
  }

  /* Hide desktop Continue button, show mobile one */
  .offers-continue-btn-desktop {
    display: none;
  }
  
  .offers-continue-btn.offers-continue-btn-mobile {
    display: flex;
  }

  /* Header row adjustments for mobile - NOT sticky */
  .offers-header-row {
    display: flex;
    grid-template-columns: unset;
    justify-content: center;
    gap: 1rem;
    /* Disable sticky on mobile */
    position: static;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  
  .offers-header-row.is-stuck {
    box-shadow: none;
  }
  
  .offers-header-row .offers-plans-title {
    text-align: center;
    grid-column: unset;
  }

  /* Single column layout */
  .offers-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Plans column first on mobile */
  .offers-plans-column {
    order: 1;
    min-width: 0;        /* Allow shrinking below content size */
    max-width: 100%;     /* Override the 680px from base styles */
    width: 100%;         /* Ensure full width */
    padding-bottom: 40px; /* Space for sticky button */
  }

  /* Hide desktop preview column on mobile */
  .offers-preview-column {
    display: none;
  }

  /* Show mobile preview section */
  .mobile-preview-section {
    display: block;
    margin-top: 1.5rem;
    background: var(--surface-4);
    border: 1px solid var(--surface-4);
    border-radius: 16px;
    padding: 1.25rem;
  }

  /* Preview header - centered on mobile */
  .preview-header {
    justify-content: center;
    margin-bottom: 1rem;
  }

  /* Hide header page count on mobile (shown below filename instead) */
  .offers-page-count-header {
    display: none;
  }

  .offers-preview-title {
    font-size: 1.25rem;
  }

  .offers-document-preview {
    max-height: 240px;
  }
  
  .offers-document-card {
    max-width: 100%;
  }

  /* Plans column - additional mobile styles */

  .offers-plans-title {
    font-size: 1rem;
    text-align: center;
  }

  .offers-plans-subtitle {
    text-align: center;
  }

  /* Plan cards - compact horizontal layout on mobile */
  .offer-plan-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    gap: 0.75rem;
    position: relative;
  }

  .plan-name {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
  }

  .plan-price {
    flex-shrink: 0;
    font-size: 0.9375rem;
  }

  /* Selected card - accent border on mobile */
  .offer-plan-card.selected {
    border-left-width: 4px;
    border-left-color: var(--brand-600);
  }

  /* White background container behind the button */
  .offers-plans-column::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: var(--surface);
    z-index: 99;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  }

  .offers-continue-btn.offers-continue-btn-mobile {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    margin: 0;
    z-index: 100;
  }

  /* Disclaimer */
  .offers-disclaimer {
    font-size: 0.75rem;
  }

  /* Trust section - stack vertically */
  .offers-trust-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .offers-trust-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .offers-trust-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .offers-trust-card {
    padding: 1rem;
  }

  .offers-trust-icon {
    width: 36px;
    height: 36px;
  }

  .offers-trust-icon svg {
    width: 18px;
    height: 18px;
  }

  .offers-trust-card-title {
    font-size: 0.875rem;
  }

  .offers-trust-card-text {
    font-size: 0.75rem;
  }
}

/* =========================================
   FORMS LANDING PAGE - New Design
   ========================================= */

.forms-landing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.forms-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.forms-hero-canvas-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.forms-hero-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  object-position: top;
}

.forms-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.85) 0%, rgb(126, 124, 124, 0.85) 100%);
}

.forms-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-category-label {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.form-badge {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  padding: 0;
}

.form-template-year {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.forms-hero-btn {
  margin-top: 16px;
  padding: 18px 48px;
  font-size: 18px;
  font-weight: 700;
  gap: 12px;
  border-radius: 14px;
  background: var(--brand-600);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  width: 100%;
}

.forms-hero-btn:hover {
  background: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Reviews Widget in Forms Hero */
.forms-hero-content .reviews-widget {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
}

.forms-hero-content .reviews-great {
  color: #fff;
}

.forms-hero-content .reviews-count {
  color: rgba(255, 255, 255, 0.8);
}

.forms-hero-disclaimer {
  font-size: 12px;
  color: rgba(180, 180, 180, 0.6);
  max-width: 600px;
  line-height: 1.5;
  margin-top: 16px;
}

/* Complete & Submit Section */
.complete-submit-section {
  padding: 40px 0 80px 0;
  text-align: center;
}

.complete-submit-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin: 0 0 12px 0;
}

.complete-submit-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 40px 0;
}

.complete-submit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.complete-submit-card {
  background: rgba(37,99,235,0.08);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  text-align: left;
}

.complete-submit-card:hover {
  background: rgba(37,99,235,0.13);
}

.complete-submit-card:nth-child(2) {
  background: rgba(112,42,225,0.08);
}
.complete-submit-card:nth-child(2):hover {
  background: rgba(112,42,225,0.13);
}
.complete-submit-card:nth-child(3) {
  background: rgba(234,88,12,0.08);
}
.complete-submit-card:nth-child(3):hover {
  background: rgba(234,88,12,0.13);
}

.complete-submit-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 16px rgba(37,99,235,0.2);
}

.complete-submit-card:nth-child(2) .complete-submit-icon {
  background: #702AE1;
  box-shadow: 0 8px 16px rgba(112,42,225,0.2);
}
.complete-submit-card:nth-child(3) .complete-submit-icon {
  background: #EA580C;
  box-shadow: 0 8px 16px rgba(234,88,12,0.2);
}

.complete-submit-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.complete-submit-card-content {
  flex: 1;
}

.complete-submit-step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  color: var(--brand);
}

.complete-submit-card:nth-child(2) .complete-submit-step-label {
  color: #702AE1;
}
.complete-submit-card:nth-child(3) .complete-submit-step-label {
  color: #EA580C;
}

.complete-submit-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  text-align: left;
}

.complete-submit-card-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* What Is Section */
.what-is-section {
  background: linear-gradient(111deg, var(--brand-pastel-200) 0%, var(--surface-2) 100%);
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 60px;
}

.what-is-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
}

.what-is-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 32px 0;
}

.who-needs-subsection {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.who-needs-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
}

.who-needs-subsection p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* How To Section — Forms Landing Variant */
.how-to-edit-section--forms {
  padding: 40px 0 80px 0;
}

.how-to-edit-grid--forms {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 6 distinct colors: blue, purple, orange, teal, rose, amber */
/* Card 1 — blue (default from .how-to-edit-card) */
/* Card 2 — purple (default from .how-to-edit-card:nth-child(2)) */
/* Card 3 — orange (default from .how-to-edit-card:nth-child(3)) */

/* Card 4 — teal */
.how-to-edit-card--form:nth-child(4) {
  background: rgba(13,148,136,0.08);
}
.how-to-edit-card--form:nth-child(4):hover {
  background: rgba(13,148,136,0.13);
}
.how-to-edit-card--form:nth-child(4) .step-icon-wrapper {
  background: #0D9488;
  box-shadow: 0 8px 16px rgba(13,148,136,0.2);
}
.how-to-edit-card--form:nth-child(4) .step-label {
  color: #0D9488;
}

/* Card 5 — rose */
.how-to-edit-card--form:nth-child(5) {
  background: rgba(225,29,72,0.08);
}
.how-to-edit-card--form:nth-child(5):hover {
  background: rgba(225,29,72,0.13);
}
.how-to-edit-card--form:nth-child(5) .step-icon-wrapper {
  background: #E11D48;
  box-shadow: 0 8px 16px rgba(225,29,72,0.2);
}
.how-to-edit-card--form:nth-child(5) .step-label {
  color: #E11D48;
}

/* Card 6 — amber */
.how-to-edit-card--form:nth-child(6) {
  background: rgba(217,119,6,0.08);
}
.how-to-edit-card--form:nth-child(6):hover {
  background: rgba(217,119,6,0.13);
}
.how-to-edit-card--form:nth-child(6) .step-icon-wrapper {
  background: #D97706;
  box-shadow: 0 8px 16px rgba(217,119,6,0.2);
}
.how-to-edit-card--form:nth-child(6) .step-label {
  color: #D97706;
}

.how-to-edit-card .step-card-description strong {
  font-weight: 600;
  color: var(--text);
}

.how-to-edit-card .step-card-description ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
  list-style: disc;
}

.how-to-edit-card .step-card-description ul li {
  margin-bottom: 4px;
  line-height: 1.5;
}

.how-to-edit-card .step-card-description br {
  display: block;
  margin-bottom: 4px;
}

.how-to-resource-bar {
  margin-top: 32px;
  text-align: center;
}

.how-to-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 500;
}

.how-to-resource-link:hover {
  text-decoration: underline;
}

/* Forms CTA Section */
.forms-cta-section {
  margin-bottom: 60px;
}

.forms-cta-banner {
  background: linear-gradient(105deg, var(--brand-800) 0%, var(--blue-500) 100%);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.forms-cta-content {
  flex: 1;
}

.forms-cta-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  text-align: left;
}

.forms-cta-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.forms-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--brand-900);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.forms-cta-btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.forms-cta-btn:hover {
  background: var(--surface-3);
  transform: translateY(-1px);
}

/* Sticky Bottom Banner */
.forms-sticky-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.forms-sticky-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.forms-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-600);
  color: #fff;
  padding: 16px 80px;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
  min-width: 320px;
  max-width: 100%;
}

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

.forms-sticky-btn svg {
  flex-shrink: 0;
}

/* FAQ Section - New Accordion */
.faq-section-new {
  margin-bottom: 80px;
}

.faq-section-container {
  width: 100%;
}

.faq-section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin: 0 0 8px 0;
}

.faq-section-subtitle {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 40px 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--brand-300);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
}

.faq-question:hover {
  color: var(--brand-600);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.faq-item.expanded .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.expanded .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px 24px;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* Forms Landing Responsive */

@media (max-width: 768px) {
  /* Page Container */
  .forms-landing-page {
    padding: 0 16px;
  }
  
  /* Hero Section */
  .forms-hero {
    border-radius: 16px;
    min-height: 380px;
    margin-bottom: 32px;
  }
  
  .forms-hero-content {
    padding: 28px 16px;
  }
  
  .form-category-label {
    font-size: 18px;
  }
  
  .form-badge {
    font-size: 22px;
    padding: 0;
  }
  
  .form-template-year {
    font-size: 14px;
  }
  
  .forms-hero-btn {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
  }
  
  .forms-hero-content .reviews-widget {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .forms-hero-disclaimer {
    font-size: 11px;
    max-width: 100%;
  }
  
  /* Complete & Submit Cards */
  .complete-submit-section {
    padding: 24px 0 40px 0;
  }

  .complete-submit-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .complete-submit-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .complete-submit-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .complete-submit-card {
    padding: 24px 20px;
  }

  .complete-submit-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-bottom: 16px;
  }

  .complete-submit-icon-img {
    width: 24px;
    height: 24px;
  }

  .complete-submit-card-title {
    font-size: 18px;
  }

  .complete-submit-card-desc {
    font-size: 14px;
  }

  .how-to-edit-section--forms {
    padding: 24px 0 40px 0;
  }

  .how-to-edit-grid--forms {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* What Is / Who Needs Section */
  .what-is-section {
    padding: 24px 16px;
    border-radius: 12px;
    margin-bottom: 32px;
  }
  
  .what-is-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .what-is-content p {
    font-size: 14px;
    line-height: 1.7;
  }
  
  .who-needs-subsection {
    padding-top: 20px;
  }
  
  .who-needs-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .who-needs-subsection p {
    font-size: 14px;
    line-height: 1.7;
  }
  
  /* How To Section */
  .how-to-section {
    padding: 24px 0;
    margin-bottom: 32px;
  }
  
  .how-to-resource-link {
    font-size: 13px;
  }

  /* CTA Banner */
  .forms-cta-section {
    margin-bottom: 32px;
  }
  
  .forms-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    border-radius: 16px;
  }
  
  .forms-cta-title {
    font-size: 20px;
  }
  
  .forms-cta-subtitle {
    font-size: 14px;
  }
  
  .forms-cta-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Sticky Banner - Mobile */
  .forms-sticky-banner {
    padding: 12px 16px;
  }

  .forms-sticky-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .forms-sticky-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* FAQ Section */
  .faq-section-new {
    margin-bottom: 48px;
  }
  
  .faq-section-title {
    font-size: 20px;
  }
  
  .faq-section-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .faq-question {
    padding: 16px 20px;
    font-size: 14px;
  }
  
  .faq-answer p {
    padding: 0 20px 16px 20px;
    font-size: 14px;
    line-height: 1.6;
  }
}

/* =========================================
   DARK MODE OVERRIDES - Offers Page
   ========================================= */

/* Document Preview */

/* Plan Cards */

/* Trust Section Cards */

/* =========================================
   DARK MODE OVERRIDES - Homepage Sections
   ========================================= */

/* Hero Upload Zone */

/* Stats Banner Section */

/* How to Edit Section */

/* Tools Section */

/* Why Choose Section */

/* Site Footer */

/* Ready CTA Button Hover */

/* =========================================
   DARK MODE - Forms Landing Page
   ========================================= */

/* Complete & Submit Cards */

/* What Is Section */

/* How To Section - divider */

/* FAQ Section */

/* Forms CTA - keep gradient but adjust if needed */

/* =============================================
   ACCOUNT PAGE REDESIGN
   ============================================= */

/* Account Page Container */
.account-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.account-page-header {
  text-align: center;
  margin-bottom: 40px;
}

.account-page-header h1 {
  font-size: 48px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 8px 0;
}

.account-page-header p {
  font-size: 22px;
  color: #4A4A4A;
  margin: 0;
}

/* Account Info Card */
.account-info-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: 24px;
  padding: 32px 40px;
  margin-bottom: 40px;
  position: relative;
}

.account-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  padding: 0 32px;
  border-right: 1px solid var(--border-dark);
}

.account-info-item:first-child {
  padding-left: 0;
}

.account-info-item:last-of-type {
  border-right: none;
  padding-right: 0;
}

.account-info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.account-info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.account-info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-info-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.account-info-value {
  font-size: 15px;
  color: var(--muted);
}

/* Account Cancel Subscription Modal */
.account-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  pointer-events: none;
}

.account-modal-overlay.active {
  display: flex;
  pointer-events: auto;
}

.account-modal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: min(480px, 100%);
  padding: 20px 20px 16px;
  position: relative;
}

.account-modal h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.account-modal p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.account-modal-note {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.account-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.account-modal-btn {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.account-modal-btn.primary {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.account-modal-btn.secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--muted);
}

.account-modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.account-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.account-modal-error-popup h3 {
  color: var(--text);
}

.account-modal-error-popup p {
  color: var(--muted);
}

.account-modal-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--error-dark);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Menu Item (3-dots button as card item) */
.account-menu-item {
  flex: 0 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.account-menu-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.account-menu-btn:hover {
  background: var(--surface-2);
}

.account-menu-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--muted);
}

/* Dropdown Menu */
.account-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.account-menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-menu-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.account-menu-option:hover {
  background: var(--surface-2);
}

.account-menu-option img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.account-menu-option.danger {
  color: var(--error);
}

.account-menu-option.danger:hover {
  background: rgba(220, 38, 38, 0.08);
}

/* Documents Section */
.account-docs-section {
  margin-bottom: 40px;
}

.account-docs-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.account-docs-scroll::-webkit-scrollbar {
  height: 8px;
}

.account-docs-scroll::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 4px;
}

.account-docs-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.account-docs-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.account-doc-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.account-doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.account-doc-thumbnail {
  height: 280px;
  background: var(--surface-4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.account-doc-thumbnail canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.account-doc-thumbnail .thumbnail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.account-doc-thumbnail .thumbnail-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--border);
}

.account-doc-name {
  padding: 12px 16px 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-doc-actions {
  display: flex;
  gap: 8px;
  padding: 8px 16px 16px;
}

.account-doc-actions .doc-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.account-doc-actions .doc-action-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

.account-doc-actions .doc-action-btn:hover {
  border-color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 10%, var(--surface));
}

.account-doc-actions .doc-action-btn.primary {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

.account-doc-actions .doc-action-btn.primary svg {
  fill: #fff;
}

.account-doc-actions .doc-action-btn.primary:hover {
  background: var(--brand-700);
}

.account-doc-actions .doc-action-btn.danger:hover {
  border-color: var(--accent-red);
  background: var(--accent-red-pastel);
}

.account-doc-actions .doc-action-btn.danger:hover svg {
  fill: var(--accent-red);
}

/* Empty Documents State */
.account-docs-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

.account-docs-empty svg {
  width: 64px;
  height: 64px;
  fill: var(--border);
  margin-bottom: 16px;
}

.account-docs-empty p {
  color: var(--muted);
  margin: 0;
}

/* Premium CTA Banner */
.account-premium-cta {
  margin-top: 40px;
}

.account-premium-banner {
  background: linear-gradient(105deg, var(--brand-800) 0%, var(--blue-500) 100%);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.account-premium-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.account-premium-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.account-premium-content {
  position: relative;
  z-index: 1;
}

.account-premium-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.account-premium-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 400px;
}

.account-premium-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--brand-600);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.account-premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.account-premium-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Subscription Status Card */
.account-subscription-card {
  background: color-mix(in srgb, var(--brand-500) 8%, var(--surface));
  border: 2px solid var(--brand-600);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.account-subscription-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-subscription-status svg {
  width: 24px;
  height: 24px;
  fill: var(--brand-600);
}

.account-subscription-status span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-600);
}

/* Sign Out Section */
.account-signout {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* ============================================ */
/* Actions Section - Desktop & Mobile          */
/* ============================================ */

/* Main Section Layout */
.actions-section {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

/* Desktop Sidebar */
.actions-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.actions-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  padding-left: 12px;
}

.actions-tools-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.actions-tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.actions-tool-item:hover {
  background: var(--surface-2);
}

.actions-tool-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Sidebar Premium CTA */
.actions-sidebar-cta {
  margin-top: auto;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, var(--brand-500) 100%);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.actions-sidebar-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.actions-sidebar-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
}

.actions-sidebar-cta-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  max-width: 120px;
}

.actions-sidebar-cta-icon {
  width: 48px;
  height: 48px;
  opacity: 0.9;
}

.actions-sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  color: #6366F1;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.actions-sidebar-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.actions-sidebar-cta-btn img {
  width: 18px;
  height: 18px;
}

/* Main Content Area */
.actions-main {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

/* Desktop: Hide accordions, Mobile: Hide sidebar */
.actions-accordions {
  display: none;
}

/* Header Bar */
.actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.actions-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}

.actions-select-all input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
}

.actions-header-btns {
  display: flex;
  gap: 12px;
}

.actions-delete-btn,
.actions-upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.actions-delete-btn {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
}

.actions-delete-btn:hover:not(:disabled) {
  background: var(--error-border);
}

.actions-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.actions-delete-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.actions-upload-btn {
  background: var(--brand-600);
  color: #fff;
  border: none;
}

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

.actions-upload-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Document Grid */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Document Card */
.action-doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.action-doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.action-doc-card.selected {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-600) 20%, transparent);
}

.action-doc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.action-doc-header .action-doc-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.action-doc-header .action-doc-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-doc-thumbnail {
  height: 200px;
  background: var(--surface-4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.action-doc-thumbnail canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.action-doc-thumbnail .thumbnail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-doc-thumbnail .thumbnail-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--border);
}

.action-doc-actions {
  display: flex;
  gap: 8px;
  padding: 0px 12px 16px;
  background: var(--surface);
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  text-decoration: none;
}

.action-btn svg,
.action-btn img {
  width: 18px;
  height: 18px;
}

.action-btn svg {
  fill: var(--text);
}

.action-btn.primary img {
  filter: brightness(0) invert(1);
}

.action-btn:hover {
  border-color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 10%, var(--surface));
}

.action-btn.primary {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

.action-btn.primary svg {
  fill: #fff;
}

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

.action-btn.danger:hover {
  border-color: var(--error);
  background: var(--error-bg);
}

.action-btn.danger:hover svg {
  fill: var(--error);
}

/* Forms library card - 2-line description above button (fixed height so buttons align) */
.action-doc-card .forms-card-description {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: calc(2.8em + 24px);
  box-sizing: border-box;
}

/* Forms library card - full-width View Form button */
.forms-fill-btn {
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.forms-fill-btn:hover {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Pagination */
.actions-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  border-color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 10%, var(--surface));
}

.pagination-btn.active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: var(--muted);
  padding: 0 4px;
}

/* Empty State */
.actions-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

.actions-empty svg {
  width: 64px;
  height: 64px;
  fill: var(--border);
  margin-bottom: 16px;
}

.actions-empty p {
  color: var(--muted);
  margin: 0 0 24px 0;
  font-size: 16px;
}

/* Mobile Premium CTA */
.actions-premium-cta {
  display: none;
}

.actions-premium-banner {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, var(--brand-500) 100%);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.actions-premium-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.actions-premium-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.actions-premium-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.actions-premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #6366F1;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.actions-premium-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.actions-premium-btn img {
  width: 18px;
  height: 18px;
}

/* =============================================
   BILLING & INVOICES SECTION
   ============================================= */

/* Billing Link Card (Account Page) */
.billing-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s;
}

.billing-link-card:hover {
  border-color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 5%, var(--surface));
}

.billing-link-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.billing-link-content img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.billing-link-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.billing-link-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.billing-link-desc {
  font-size: 14px;
  color: var(--muted);
}

.billing-link-arrow {
  width: 24px;
  height: 24px;
  fill: var(--muted);
  transition: fill 0.2s;
}

.billing-link-card:hover .billing-link-arrow {
  fill: var(--brand-600);
}

/* Mobile Billing Link Accordion */
.billing-link-accordion {
  text-decoration: none;
  display: block;
}

.billing-link-accordion .actions-accordion-header {
  cursor: pointer;
}

/* Billing Section (Desktop) - Legacy styles kept for reference */
.billing-section {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.billing-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.billing-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.billing-title img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Billing Table */
.billing-table-wrapper {
  overflow-x: auto;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
}

.billing-table th,
.billing-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.billing-table th {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--surface);
}

.billing-table tbody tr:hover {
  background: var(--surface-2);
}

.billing-table tbody tr:last-child td {
  border-bottom: none;
}

.billing-transaction {
  font-weight: 500;
  color: var(--text);
}

.billing-date {
  color: var(--muted);
  font-size: 14px;
}

.billing-amount {
  font-weight: 600;
  color: var(--text);
}

.billing-loading,
.billing-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* Payment Method Badge */
.billing-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

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

.billing-method-badge.paypal {
  background: rgba(0, 119, 181, 0.12);
  color: #0077B5;
}

/* Billing Action Buttons */
.billing-actions {
  display: flex;
  gap: 8px;
}

.billing-action-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}

.billing-action-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--muted);
}

.billing-action-btn:hover {
  border-color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 8%, var(--surface));
}

.billing-action-btn:hover svg {
  fill: var(--brand-600);
}

.billing-action-btn.download:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

.billing-action-btn.download:hover svg {
  fill: #fff;
}

/* Billing Pagination */
.billing-pagination {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Mobile Billing List */
.billing-list {
  padding: 16px;
}

.billing-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.billing-row:last-child {
  margin-bottom: 0;
}

.billing-row-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.billing-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.billing-row-transaction {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.billing-row-date {
  font-size: 13px;
  color: var(--muted);
}

.billing-row-amount {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.billing-row-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.billing-row-actions {
  display: flex;
  gap: 8px;
}

/* Invoice Modal */
.invoice-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  padding: 20px;
}

.invoice-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.invoice-modal {
  background: var(--surface);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.invoice-modal-overlay.show .invoice-modal {
  transform: scale(1);
}

.invoice-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.invoice-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.invoice-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.invoice-modal-close:hover {
  background: var(--surface-2);
}

.invoice-modal-close svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
}

.invoice-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.invoice-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.invoice-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invoice-detail-item.full-width {
  grid-column: 1 / -1;
}

.invoice-detail-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-detail-value {
  font-size: 15px;
  color: var(--text);
}

.invoice-detail-value.invoice-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-600);
}

.invoice-detail-value.invoice-order-id {
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
}

.invoice-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.invoice-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--brand-600);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

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

.invoice-download-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Account Page - Mobile-only info card */
.account-info-card-mobile {
  display: none;
}

/* Account Page Mobile Responsive */
@media (max-width: 768px) {
  .account-info-card-mobile {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    padding-right: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-dark);
  }

  .account-info-card-mobile .account-info-item {
    width: 100%;
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }

  .account-info-card-mobile .account-info-item:last-of-type {
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 16px;
  }

  .account-info-card-mobile .account-info-item:first-child {
    padding-top: 0;
  }

  .account-page {
    padding: 24px 16px;
  }
  
  .account-page-header h1 {
    font-size: 2rem;
  }
  
  .account-page-header p {
    font-size: 14px;
  }
  
  .account-info-card {
    flex-direction: column;
    gap: 0;
    padding: 24px;
    padding-right: 60px; /* Space for absolute menu button */
    position: relative;
  }
  
  .account-info-item:not(.account-menu-item) {
    width: 100%;
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
  
  .account-info-item:not(.account-menu-item):last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  /* Target the item before menu-item (last visible item) */
  .account-info-item:nth-last-of-type(2):not(.account-menu-item) {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .account-info-item:first-child {
    padding-top: 0;
  }
  
  /* Menu button at top-right on mobile */
  .account-menu-item {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 0;
    border-bottom: none;
    width: auto;
  }
  
  .account-menu-dropdown {
    right: 0;
    left: auto;
    top: calc(100% + 8px);
  }
  
  .account-doc-card {
    width: 180px;
  }
  
  .account-doc-thumbnail {
    height: 220px;
  }
  
  .account-premium-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }
  
  .account-premium-content h2 {
    font-size: 22px;
  }
  
  .account-premium-content p {
    max-width: 100%;
  }
  
  /* Actions Section Mobile Styles */
  .actions-section {
    flex-direction: column;
    gap: 0;
  }
  
  /* Hide desktop sidebar on mobile */
  .actions-sidebar {
    display: none;
  }
  
  /* Hide desktop header and grid on mobile */
  .actions-header,
  .actions-grid,
  #desktopPagination {
    display: none !important;
  }
  
  /* Show accordions on mobile */
  .actions-accordions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  /* Show mobile premium CTA */
  .actions-premium-cta {
    display: block;
    margin-top: 24px;
  }
  
  /* Accordion Styles */
  .actions-accordion {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
  }
  
  .actions-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
  }
  
  .actions-accordion-header:hover {
    background: var(--surface-2);
  }
  
  .actions-accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
  }
  
  .actions-accordion-title img,
  .actions-accordion-title .actions-accordion-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .actions-accordion-title .actions-accordion-icon {
    fill: currentColor;
  }
  
  .actions-accordion-chevron {
    width: 24px;
    height: 24px;
    fill: var(--muted);
    transition: transform 0.2s;
  }
  
  .actions-accordion.expanded .actions-accordion-chevron {
    transform: rotate(180deg);
  }
  
  .actions-accordion-content {
    display: none;
    border-top: 1px solid var(--border);
  }
  
  .actions-accordion.expanded .actions-accordion-content {
    display: block;
  }

  /* Mobile Settings accordion - nav links to settings pages */
  .account-mobile-settings-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
  }

  .account-mobile-settings-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .account-mobile-settings-nav-item:hover {
    background: var(--surface-2);
  }

  .account-mobile-settings-nav-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--muted);
  }
  
  /* Mobile File Actions Bar */
  .actions-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
  }
  
  .actions-select-all-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
  }
  
  .actions-select-all-mobile input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .actions-mobile-btns {
    display: flex;
    gap: 8px;
  }
  
  .actions-delete-btn-mobile,
  .actions-upload-btn-mobile {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
  }
  
  .actions-delete-btn-mobile {
    background: var(--error-bg);
    color: var(--error);
  }
  
  .actions-delete-btn-mobile:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .actions-delete-btn-mobile svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }
  
  .actions-upload-btn-mobile {
    background: var(--brand-600);
    color: #fff;
  }
  
  .actions-upload-btn-mobile svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }
  
  /* Mobile File List */
  .actions-file-list {
    padding: 8px 0;
  }
  
  .actions-empty-text {
    text-align: center;
    padding: 40px 16px;
    color: var(--muted);
    font-size: 14px;
  }
  
  /* Mobile File Row - Two Row Layout */
  .action-doc-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
  }
  
  .action-doc-row:last-child {
    border-bottom: none;
  }
  
  .action-doc-row.selected {
    background: color-mix(in srgb, var(--brand-500) 10%, var(--surface));
  }
  
  /* Row 1: Checkbox + Filename */
  .action-doc-row-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  
  .action-doc-row .action-doc-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
  }
  
  .action-doc-name-mobile {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  
  /* Row 2: Thumbnail + Action Buttons */
  .action-doc-row-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 30px; /* Align with filename (checkbox width + gap) */
  }
  
  .action-doc-thumb-small {
    width: 56px;
    height: 56px;
    background: var(--surface-4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
  }
  
  .action-doc-thumb-small svg {
    width: 24px;
    height: 24px;
    fill: var(--border);
  }
  
  .action-doc-thumb-small canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .action-doc-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }
  
  .action-btn-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    text-decoration: none;
  }
  
  .action-btn-small svg,
  .action-btn-small img {
    width: 16px;
    height: 16px;
  }
  
  .action-btn-small svg {
    fill: var(--text);
  }
  
  .action-btn-small.primary {
    background: var(--brand-600);
    border-color: var(--brand-600);
  }
  
  .action-btn-small.primary img {
    filter: brightness(0) invert(1);
  }
  
  .action-btn-small.primary svg {
    fill: #fff;
  }
  
  .action-btn-small.danger:hover {
    border-color: var(--error);
    background: var(--error-bg);
  }
  
  .action-btn-small.danger:hover svg {
    fill: var(--error);
  }
  
  /* Mobile Tools List */
  .actions-tools-list-mobile {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
  }
  
  .actions-tools-list-mobile .actions-tool-item {
    padding: 12px 20px;
  }
  
  /* Mobile Pagination */
  .actions-accordion .actions-pagination {
    padding: 16px;
    border-top: 1px solid var(--border);
  }
  
  .actions-pagination {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .pagination-btn {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 36px;
  }
  
  .pagination-btn[data-page="prev"],
  .pagination-btn[data-page="next"] {
    padding: 8px 10px;
    font-size: 0;
  }
  
  .pagination-btn[data-page="prev"]::before {
    content: '←';
    font-size: 14px;
  }
  
  .pagination-btn[data-page="next"]::after {
    content: '→';
    font-size: 14px;
  }
  
  /* Empty state on mobile */
  .actions-empty {
    margin: 16px;
    padding: 40px 16px;
  }
  
  /* Billing Section Mobile */
  .billing-section {
    display: none;
  }
  
  .billing-list {
    padding: 12px;
  }
  
  .billing-row {
    padding: 14px;
  }
  
  .billing-pagination {
    padding: 12px;
  }
  
  .billing-action-btn {
    width: 32px;
    height: 32px;
  }
  
  .billing-action-btn svg {
    width: 16px;
    height: 16px;
  }
  
  /* Invoice Modal Mobile */
  .invoice-modal {
    max-width: 100%;
    border-radius: 16px;
  }
  
  .invoice-modal-header {
    padding: 16px 20px;
  }
  
  .invoice-modal-body {
    padding: 20px;
  }
  
  .invoice-detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .invoice-modal-footer {
    padding: 16px 20px;
  }
  
  .invoice-download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   BILLING PAGE (Standalone)
   ============================================= */

.billing-page {
  display: flex;
  min-height: calc(100vh - 80px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  gap: 40px;
}

/* Settings Sidebar */
.settings-sidebar {
  width: 260px;
  flex-shrink: 0;
}

.settings-sidebar-header {
  margin-bottom: 24px;
}

.settings-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.settings-back-link:hover {
  color: var(--brand-600);
}

.settings-back-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.settings-sidebar-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.settings-sidebar-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-left: 4px;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.settings-nav-item:hover {
  background: var(--surface-2);
}

.settings-nav-item.active {
  background: color-mix(in srgb, var(--brand-500) 12%, transparent);
  color: var(--brand-600);
}

.settings-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Billing Main Content */
.billing-main {
  flex: 1;
  min-width: 0;
}

.billing-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.billing-page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
}

.billing-help-text {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.billing-help-text p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.billing-help-text a {
  color: var(--brand-600);
  text-decoration: none;
}

.billing-help-text a:hover {
  text-decoration: underline;
}

/* Billing Invoices Table */
.billing-table-container {
  overflow-x: auto;
}

.billing-invoices-table {
  width: 100%;
  border-collapse: collapse;
}

.billing-invoices-table th,
.billing-invoices-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.billing-invoices-table th {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
}

.billing-invoices-table tbody tr:hover {
  background: var(--surface-2);
}

.billing-invoices-table tbody tr:last-child td {
  border-bottom: none;
}

.cell-transaction {
  font-weight: 500;
  color: var(--text);
}

.cell-date {
  color: var(--muted);
  font-size: 14px;
}

.cell-method {
  min-width: 120px;
}

.payment-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}

.cell-price {
  font-weight: 600;
  color: var(--text);
}

.cell-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.action-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}

.action-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--muted);
}

.action-icon:hover {
  border-color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 8%, var(--surface));
}

.action-icon:hover svg {
  fill: var(--brand-600);
}

/* Loading State */
.billing-loading-row td {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.billing-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--brand-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

/* Empty State */
.billing-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.billing-empty-state svg {
  width: 64px;
  height: 64px;
  fill: var(--border);
  margin-bottom: 16px;
}

.billing-empty-state p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

/* Pagination */
.billing-pagination-container {
  margin-top: 24px;
}

.billing-pagination-container .billing-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .billing-page {
    flex-direction: column;
    padding: 24px 16px;
    gap: 24px;
  }

  .settings-sidebar {
    width: 100%;
  }

  .settings-sidebar-section {
    padding: 16px;
  }

  .settings-nav-item {
    padding: 10px 12px;
  }

  .billing-content {
    padding: 24px;
  }

  .billing-page-title {
    font-size: 24px;
  }

  .billing-invoices-table th,
  .billing-invoices-table td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .cell-method {
    display: none;
  }

  .billing-invoices-table th:nth-child(3) {
    display: none;
  }
}

@media (max-width: 600px) {
  .billing-content {
    padding: 16px;
    border-radius: 16px;
  }

  .billing-page-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .billing-help-text {
    padding: 12px 0;
    margin-bottom: 16px;
  }

  .billing-help-text p {
    font-size: 13px;
  }

  .billing-invoices-table th,
  .billing-invoices-table td {
    padding: 10px 6px;
    font-size: 12px;
  }

  .action-icon {
    width: 28px;
    height: 28px;
  }

  .action-icon svg {
    width: 14px;
    height: 14px;
  }
}

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

#apple-pay-container apple-pay-button {
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 52px;  /* Taller button */
  --apple-pay-button-border-radius: 12px;  /* Match your form style */
}

/* ========================
   Tool Options Modal
   ======================== */
/* Override base .modal background/animation */
.tool-options-modal.modal {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: none;
}

/* Override base .modal .card styles */
.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;
}

/* When a custom dropdown is open, allow it to extend outside the card without showing a scrollbar */
.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;
}

/* Override base .icon-btn styles */
.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;
}

/* Custom dropdown (replaces native select open state) */
.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;
}

/* Override base .btn styles - only what's different */
.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 badge group (radio-button badges for e.g. quality selector) */
.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;
}

/* Radio circle indicator */
.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%;
}

/* Tool Options Modal - Mobile responsiveness */
@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;
  }
}

/* Forms Library Page - twin layout */
.forms-library-page .forms-search-row {
  margin-bottom: 24px;
}

.forms-library-page .forms-search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.forms-library-page .forms-search-icon {
  position: absolute;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  pointer-events: none;
}

.forms-library-page .forms-search-input {
  width: 100%;
  padding: 10px 36px 10px 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}

/* Hide browser's native search clear (×) to avoid duplicate with our custom button */
.forms-library-page .forms-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.forms-library-page .forms-search-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 20%, transparent);
}

.forms-library-page .forms-search-clear {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.forms-library-page .forms-search-clear:hover {
  color: var(--text);
}

.forms-library-page .forms-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forms-library-page .forms-category-btn {
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  width: 100%;
}

.forms-library-page .forms-category-btn:hover {
  background: var(--surface-2);
}

.forms-library-page .forms-category-btn.active {
  background: color-mix(in srgb, var(--brand-500) 12%, var(--surface));
  color: var(--brand-700);
}

@media (max-width: 768px) {
  .forms-library-page .actions-sidebar {
    display: none;
  }

  .forms-library-page .actions-header.forms-search-row {
    display: flex !important;
  }

  .forms-library-page .actions-main {
    padding: 16px;
  }

  .forms-library-page .actions-grid {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .forms-library-page #formsPagination {
    display: flex !important;
  }
}

/* ========================
   Exit Confirmation Modal
   ======================== */
.exit-confirm-container {
  width: min(440px, 90vw);
  padding: 32px;
  text-align: center;
  position: relative;
  border-radius: 16px;
  background: var(--surface);
}

.exit-confirm-container h3 {
  margin: 0 0 28px 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.exit-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.exit-close-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.exit-close-btn svg {
  width: 20px;
  height: 20px;
}

.exit-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

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

.exit-confirm-actions .btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.exit-confirm-actions .btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--text);
}

.exit-confirm-actions .btn-danger {
  background: var(--brand-600);
  border: none;
  color: white;
}

.exit-confirm-actions .btn-danger:hover {
  background: var(--brand-700);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .exit-confirm-container {
    padding: 24px 20px;
    margin: 16px;
  }
  
  .exit-confirm-container h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
  }
  
  .exit-confirm-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .exit-confirm-actions .btn {
    width: 100%;
    min-width: unset;
    padding: 12px 24px;
  }
}

/* =============================================
   ACCOUNT AREA HEADER (desktop only - mobile keeps regular)
   ============================================= */

/* Hide simplified nav on mobile - regular hamburger header stays */
.account-area-nav-desktop {
  display: none;
}

@media (min-width: 769px) {
  .account-area .site-header .site-nav {
    display: none;
  }
  .account-area .site-header .controls {
    display: none;
  }
  .account-area .account-area-nav-desktop {
    display: flex;
    align-items: center;
    gap: 16px;
  }
}

.account-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.account-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.account-dropdown-trigger:hover {
  background: var(--surface-2);
  border-color: var(--brand-600);
}

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

/* Icon-only trigger: same size as regular header account icon (.icon-btn + .icon) */
.account-dropdown-trigger-icon-only {
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
}

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

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}

.account-dropdown-menu.open {
  display: flex;
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}

.account-dropdown-item:hover {
  background: var(--surface-2);
}

.account-dropdown-item-logout {
  color: var(--text);
}

/* =============================================
   Viewer shared styles (PDF, Image, ZIP, Error)
   ============================================= */
.viewer-page-section.mt {
  margin-top: 24px !important;
  padding: 24px !important;
}
.viewer-page-section.mt:first-of-type {
  margin-top: 32px !important;
}
.local-viewer {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 1500px;
  margin: 0 auto;
}
.viewer-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.viewer-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
}
.viewer-toolbar .btn-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.viewer-page-info {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 8px;
}
.viewer-zoom-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.viewer-zoom-control label {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}
.viewer-zoom-control input[type="range"] {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.viewer-zoom-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-600);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.viewer-zoom-control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-600);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.viewer-stage {
  height: 80vh;
  overflow: auto;
  background: var(--surface-2);
  display: grid;
  place-items: start center;
  padding: 16px;
}

/* PDF viewer */
.page-canvas {
  box-shadow: var(--shadow);
  background: var(--surface);
  margin-bottom: 16px;
  border-radius: 4px;
}

/* Image viewer */
.viewer-stage--image {
  place-items: center;
}
#viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: var(--shadow);
  border-radius: 4px;
  transition: transform 0.15s ease;
  transform-origin: center center;
}

/* Viewer error page */
.viewer-error-container {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
}
.viewer-error-icon {
  width: 64px;
  height: 64px;
  fill: var(--muted);
  margin: 0 auto 24px;
}
.viewer-error-text {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}
.viewer-error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.viewer-error-actions .btn-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-right: 8px;
  vertical-align: middle;
}
.viewer-error-actions .btn-secondary {
  background: var(--surface-2);
  color: var(--text);
}

/* ZIP viewer */
.zip-stage {
  min-height: 200px;
  padding: 20px;
  background: var(--surface-2);
}
.zip-stage.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.zip-stage.error {
  color: var(--danger, #c00);
  text-align: center;
}
.zip-stage.error a {
  color: var(--brand-600);
}
.zip-file-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.zip-file-list th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
}
.zip-file-list td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.zip-file-list tr:hover td {
  background: var(--surface);
}
.zip-file-list .zip-entry-name {
  word-break: break-all;
  color: var(--text);
}
.zip-file-list .zip-entry-size {
  color: var(--muted);
  white-space: nowrap;
}
.zip-file-list .zip-entry-actions {
  white-space: nowrap;
}
.zip-file-list .zip-entry-actions .btn-small {
  padding: 6px 10px;
  font-size: 0.875rem;
}
@media (max-width: 768px) {
  .viewer-toolbar {
    padding: 12px 16px;
    gap: 8px;
  }
  .viewer-toolbar .btn {
    padding: 8px 12px;
    font-size: 0.875rem;
  }
  .viewer-zoom-control {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
  .viewer-zoom-control input[type="range"] {
    flex: 1;
  }
  .viewer-stage {
    padding: 12px;
  }
  .zip-file-list th:nth-child(2),
  .zip-file-list td:nth-child(2) {
    display: none;
  }
  .zip-stage {
    padding: 12px;
  }
}

.account-dropdown-item-logout:hover {
  background: var(--surface-2);
}

.account-area-theme {
  position: relative;
  display: flex;
  align-items: center;
}

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

.account-area-theme .account-theme-btn img {
  width: 20px;
  height: 20px;
}

/* =============================================
   SETTINGS PAGE
   ============================================= */

.settings-page .settings-main {
  flex: 1;
  min-width: 0;
}

/* Align settings/billing content box with the SETTINGS sidebar box */
.settings-page .settings-main > *:first-child,
.billing-page .billing-main > *:first-child {
  margin-top: 52px; /* matches .settings-sidebar-header (~28px) + margin-bottom (24px) */
}

.settings-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.settings-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
}

.settings-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-detail-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-detail-row-with-icon {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.settings-detail-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.settings-detail-icon img {
  width: 100%;
  height: 100%;
}

.settings-detail-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.settings-detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-detail-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.settings-password-mask {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Monaco, Consolas, monospace;
  letter-spacing: 2px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 4px;
}

.settings-plan-notice {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: 8px;
  border-left: 3px solid var(--brand-600);
}

.settings-plan-notice p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.settings-plan-notice strong {
  color: var(--text);
}

.settings-cancel-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: right;
}

.settings-cancel-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
}

.settings-cancel-btn:hover {
  color: var(--text);
}

/* ========================
   Editor Mode
   ======================== */
body.editor-mode .site-header,
body.editor-mode footer,
body.editor-mode .site-footer,
body.editor-mode .footer-container {
  display: none !important;
}

body.editor-mode html,
html.editor-mode-html {
  overflow: hidden !important;
  height: 100% !important;
}

body.editor-mode {
  overflow: hidden !important;
  height: 100% !important;
  margin: 0 !important;
}

body.editor-mode main.container {
  max-width: 100% !important;
  padding: 5px 0px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Editor page logo */
.editor-logo {
  display: inline-block;
  flex-shrink: 0;
}

.editor-logo img {
  width: var(--logo-width);
  height: var(--logo-height);
}

.editor-logo svg {
  height: 48px;
  width: auto;
}

/* Editor header wrapper */
.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: white;
}

/* Filename container */
.filename-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* PSPDFKit styles */
.PSPDFKit-Toolbar-Top,
.PSPDFKit-Page-Control {
  display: none !important;
}

/* PSPDFKit container - fill remaining space */
#pspdfkit-container {
  width: 100%;
  flex: 1 !important;
  min-height: 0 !important;
}

/* Custom floating bottom navigation bar */
.custom-bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.custom-bottom-nav button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.2s;
}

.custom-bottom-nav button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.custom-bottom-nav button.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-600);
}

.custom-bottom-nav input[type="number"] {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
}

.custom-bottom-nav .zoom-display {
  min-width: 60px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* PSPDFKit toolbar customization */
.PSPDFKit-Toolbar {
  background: #f2f6ff !important;
  border-bottom: 1px solid var(--border) !important;
  min-height: 86px !important;
  height: auto !important;
}

.PSPDFKit-Toolbar-Button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 12px !important;
  min-height: 70px !important;
  background: transparent !important;
  border: none !important;
  color: var(--text) !important;
}

.PSPDFKit-Toolbar-Button svg,
.PSPDFKit-Toolbar-Button img {
  width: 24px !important;
  height: 24px !important;
  margin-bottom: 4px !important;
}

.PSPDFKit-Toolbar-Button::after {
  content: attr(title);
  font-size: 11px;
  color: var(--text);
  margin-top: 2px;
  text-align: center;
  line-height: 1.2;
}

.PSPDFKit-Tool-Active {
  background: rgba(37, 99, 235, 0.1) !important;
  color: var(--brand-600) !important;
}

.PSPDFKit-Tool-Active::after {
  color: var(--brand-600) !important;
}

/* Custom Cross/Check tool cursors */
.cross-tool-active,
.cross-tool-active * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18 6L6 18M6 6l12 12" stroke="%23000" stroke-width="2.5" fill="none" stroke-linecap="round"/></svg>') 12 12, crosshair !important;
}

.check-tool-active,
.check-tool-active * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 6L9 17l-5-5" stroke="%23000" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') 12 12, crosshair !important;
}

/* Custom tool button active state */
.custom-tool-btn-active {
  background: rgba(37, 99, 235, 0.15) !important;
  border-radius: 4px;
}

/* DONE button styles */
.done-button {
  padding: 14px 40px;
  background: var(--brand-600);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}

.done-button:hover {
  background: var(--brand-700);
}

.done-button:active {
  transform: scale(0.98);
}

/* Header action buttons (Print, Download) */
.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #374151;
  transition: color 0.2s;
}

.header-action-btn:hover {
  color: var(--brand);
}

.header-action-btn svg {
  width: 24px;
  height: 24px;
}

.header-action-btn span {
  font-size: 12px;
  font-weight: 500;
}

.header-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 8px;
}

.filename-input-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.filename-input {
  width: auto;
  min-width: 200px;
  padding: 8px 36px 8px 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  background: white;
  color: #374151 !important;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.filename-input:focus {
  border-color: #9ca3af;
}

.filename-input:focus + .filename-edit-icon {
  display: none;
}

.filename-input.error {
  border-color: var(--error-light) !important;
}

.filename-error {
  display: none;
  color: var(--error-light);
  font-size: 0.875rem;
  margin-top: 4px;
  margin-left: 4px;
}

.filename-error.show {
  display: block;
}

.filename-edit-icon {
  position: absolute;
  right: 10px;
  width: 18px;
  height: 18px;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.filename-edit-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

/* Share button — hidden on desktop, shown on mobile */
.share-button {
  display: none;
}

/* Mobile undo/redo in editor header — hidden on desktop */
.editor-mobile-actions {
  display: none;
}

.editor-mobile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
}

.editor-mobile-btn svg {
  width: 20px;
  height: 20px;
}

/* Editor mobile responsive */
@media (max-width: 768px) {
  .editor-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 8px;
  }

  /* Hide logo, filename, print/download on mobile */
  .editor-logo,
  .filename-wrapper,
  .filename-error,
  .header-action-btn,
  .header-divider {
    display: none !important;
  }

  /* Show undo/redo on mobile */
  .editor-mobile-actions {
    display: flex !important;
    align-items: center;
    gap: 4px;
  }

  .filename-container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .share-button {
    display: inline-block !important;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
  }

  .done-button {
    width: auto;
    padding: 8px 20px;
    font-size: 0.95rem;
    border-radius: 20px;
  }

  /* Hide the page/zoom bottom nav on mobile */
  .custom-bottom-nav {
    display: none !important;
  }

  /* Give PDF container full height: compact header top + toolbar bottom */
  body.editor-mode #pspdfkit-container {
    height: calc(100vh - 44px - 64px - env(safe-area-inset-bottom)) !important;
  }
}

/* Export modal (editor) */
.export-modal-container {
  width: min(580px, 92vw);
  padding: 28px;
  position: relative;
}

.export-modal-header {
  text-align: center;
}

.export-modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
}

.export-modal-subtitle {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: 1rem;
}

.export-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
}

.export-format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.export-format-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.export-format-btn:hover {
  border-color: var(--brand-500);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
}

.export-format-btn.active {
  border-color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 12%, var(--surface));
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18);
}

.export-format-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.export-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .export-format-grid {
    grid-template-columns: 1fr;
  }

  .export-modal-subtitle {
    font-size: 0.85rem;
  }
}

/* Editor shell hidden state */
.editor-shell {
  display: none;
}

/* When editor-mode is active and the shell is shown (in-page loading),
   make it a flex column that fills its parent so #pspdfkit-container gets height */
body.editor-mode #editor-shell {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
}

/* ── Merge tool ─────────────────────────────────────────────────────────── */
.merge-box {
  background: #fff;
  border: 2px dashed var(--border-muted);
  border-radius: 16px;
  padding: 24px;
  margin: 0 auto 16px;
  max-width: 680px;
  transition: border-color 0.2s;
}
.merge-box.drag-over {
  border-color: #e85d8a;
  background: #fff5f8;
}
.merge-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.merge-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  text-align: left;
}
.merge-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 120px;
  align-items: flex-start;
}
.merge-cards.sorting .merge-card:not(.is-dragging),
.merge-cards.sorting .merge-card-placeholder {
  transition: margin 0.12s ease;
}
.merge-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px 0 8px;
  color: var(--muted-light);
  gap: 8px;
  pointer-events: none;
}
.merge-empty-state svg {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}
.merge-empty-state span {
  font-size: 14px;
}
.merge-card {
  position: relative;
  width: 120px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.merge-card.is-dragging {
  display: none;
}
.merge-card-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.95;
  border: 1px solid var(--border-light) !important;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.08);
  cursor: grabbing;
  background: #fff;
  transform: rotate(2deg) scale(1.04);
}
.merge-card-placeholder {
  width: 120px;
  flex-shrink: 0;
  border: 2px dashed var(--border-muted);
  border-radius: 10px;
  background: var(--surface-3);
}
.merge-card-thumb-wrap {
  width: 100%;
  height: 155px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.merge-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.merge-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted-light);
}
.merge-card-thumb-placeholder svg {
  width: 36px;
  height: 36px;
}
.merge-card-name {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 6px 8px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.merge-card-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-light);
  cursor: pointer !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.merge-card-delete:hover {
  background: var(--error-bg);
  color: var(--error);
  border-color: #fca5a5;
}
.merge-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 20px 0 16px;
}
.merge-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}
.merge-add-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.merge-submit-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.merge-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#tool-result-merge {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Split tool ─────────────────────────────────────────────────────────── */
.split-box {
  background: #fff;
  border: 2px dashed var(--border-muted);
  border-radius: 16px;
  padding: 24px;
  margin: 0 auto 16px;
  max-width: 820px;
  transition: border-color 0.2s;
}
.split-box.drag-over {
  border-color: #e85d8a;
  background: #fff5f8;
}
.split-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.split-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.split-hint svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.split-cards-wrapper {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.split-cards-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}
.split-cards-scroll::-webkit-scrollbar {
  height: 6px;
}
.split-cards-scroll::-webkit-scrollbar-track {
  background: var(--surface-3);
  border-radius: 3px;
}
.split-cards-scroll::-webkit-scrollbar-thumb {
  background: var(--border-muted);
  border-radius: 3px;
}
.split-cards-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--muted-light);
}
.split-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: max-content;
  min-width: 100%;
}
.split-cards-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: flex-start;
  min-height: 0;
}
.split-load-more {
  flex-shrink: 0;
  width: 90px;
  border-left: 1px solid var(--border-light);
  margin-left: 8px;
  padding-left: 8px;
}
.split-load-more-btn {
  background: none;
  border: 2px dashed var(--border-muted);
  border-radius: 10px;
  padding: 16px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
  height: 100%;
}
.split-load-more-btn:hover {
  background: var(--surface-3);
  border-color: var(--muted-light);
}
.split-load-more-btn svg {
  width: 24px;
  height: 24px;
}
.split-load-more-btn span {
  font-size: 12px;
  color: var(--muted);
}
.split-page-card {
  position: relative;
  width: 140px;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  transition: background-color 0.3s, border-color 0.3s;
}
.split-card-thumb-wrap {
  width: 100%;
  height: 170px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.split-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.split-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted-light);
}
.split-card-thumb-placeholder svg {
  width: 36px;
  height: 36px;
}
.split-card-info {
  padding: 6px 8px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.split-card-name {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.split-card-page {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
}
.split-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  align-self: stretch;
}
.split-divider-line {
  width: 0;
  flex: 1;
  border-left: 2px dotted var(--border-muted);
  transition: border-color 0.2s;
}
.split-divider.active .split-divider-line {
  border-left: 3px dashed var(--brand-500);
}
.split-divider-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted-light);
  padding: 0;
  transition: color 0.2s, transform 0.2s;
}
.split-divider.active .split-divider-btn {
  color: var(--brand-500);
  transform: scale(1.15);
}
.split-divider:hover .split-divider-btn {
  color: var(--brand-500);
}
.split-hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 20px 0 16px;
}
.split-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-submit-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.split-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.split-top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.split-every-page-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.split-every-page-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-500);
  cursor: pointer;
  margin: 0;
}
.split-reset-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: none;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}
.split-reset-btn:hover {
  background: var(--surface-3);
}
#tool-result-split {
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .split-page-card {
    width: 90px;
  }
  .split-card-thumb-wrap {
    height: 115px;
  }
  .split-divider {
    width: 28px;
  }
  .split-box {
    padding: 16px;
  }
}

/* ── PDF Password Modal ─────────────────────────────────────────────────── */
#pdfPasswordModal { z-index: 10001; }
#pdfPasswordModal .pdf-password-card {
  max-width: 420px; width: 90%; padding: 28px 24px;
}
#pdfPasswordModal h3 { margin: 0 0 8px; font-size: 1.25rem; }
.pdf-pw-desc { margin: 0 0 16px; font-size: 0.9rem; opacity: 0.8; }
.pdf-pw-field-group { margin-bottom: 12px; }
.pdf-pw-field-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.pdf-pw-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-color);
  border-radius: 8px; font-size: 0.95rem; background: var(--bg-primary, #fff);
  color: var(--text-primary, #111); box-sizing: border-box;
}
.pdf-pw-input:focus { outline: none; border-color: var(--accent, #6c5ce7); box-shadow: 0 0 0 3px rgba(108,92,231,0.15); }
.pdf-pw-error { color: var(--error); font-size: 0.85rem; margin-bottom: 12px; }
.pdf-pw-actions { display: flex; gap: 10px; margin-top: 16px; }
.pdf-pw-actions .btn { flex: 1; }
.pdf-pw-actions .btn-secondary {
  background: transparent; color: var(--text-primary, #333);
  border: 1px solid var(--border-color);
}
.pdf-pw-actions .btn-secondary:hover { background: var(--bg-secondary); }
