/* ============================================================
   DocConvert Pro — Stylesheet
   Theme: Dark Industrial Luxury · Copper / Obsidian
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=DM+Mono:wght@300;400;500&family=Noto+Naskh+Arabic:wght@400;600;700&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
  --bg-0:    #0d0d0f;
  --bg-1:    #131318;
  --bg-2:    #1a1a22;
  --bg-3:    #22222e;
  --surface: #252530;
  --border:  #2e2e3e;
  --border2: #3d3d52;

  --copper:  #c9813a;
  --copper2: #e09a4e;
  --copper3: #f0b870;
  --gold:    #f5d285;
  --muted:   #6b6b82;
  --text-lo: #4a4a60;
  --text-md: #8888a6;
  --text-hi: #d4d4e8;
  --white:   #f0eff8;

  --pdf-clr:   #e05252;
  --word-clr:  #4a90d9;
  --excel-clr: #3dba7a;
  --edit-clr:  #c9813a;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.6);
  --glow-copper: 0 0 20px rgba(201,129,58,.25);

  --font-display: 'Cormorant Garamond', 'Noto Naskh Arabic', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
  --font-body:    'DM Mono', system-ui, sans-serif;

  --transition: .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: .4s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-hi);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
body.rtl { font-family: 'Noto Naskh Arabic', var(--font-body); }

a { color: var(--copper2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }

/* ── Noise overlay ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* ═══════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(13,13,15,.85);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--copper2);
  display: flex; align-items: center; gap: 10px;
}
.nav-brand .brand-dot {
  width: 8px; height: 8px;
  background: var(--copper);
  border-radius: 50%;
  box-shadow: var(--glow-copper);
  animation: pulse 2s ease-in-out infinite;
}

.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text-md);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text-hi); background: var(--bg-3); }

/* Language switcher */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  padding: 4px; background: var(--bg-2); border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 5px 12px;
  background: transparent;
  color: var(--text-md);
  font-size: 11px;
  letter-spacing: .06em;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.lang-btn:hover { color: var(--text-hi); background: var(--bg-3); }
.lang-btn.active {
  background: var(--copper);
  color: var(--bg-0);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 10%, rgba(201,129,58,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(74,144,217,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(61,186,122,.06) 0%, transparent 60%),
    var(--bg-0);
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(201,129,58,.1);
  border: 1px solid rgba(201,129,58,.3);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper3);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.hero-title span {
  color: transparent;
  -webkit-text-stroke: 1px var(--copper2);
  font-style: italic;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-md);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}

/* ── Stats bar ───────────────────────────────────── */
.stats-bar {
  display: flex; justify-content: center; gap: 0;
  margin-top: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  overflow: hidden;
}
.stat-item {
  padding: 20px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  flex: 1;
  min-width: 120px;
}
.stat-item:last-child { border-right: none; }
.stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--copper2);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 13px;
  letter-spacing: .06em;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--copper);
  color: var(--bg-0);
  border-color: var(--copper);
}
.btn-primary:hover {
  background: var(--copper3);
  border-color: var(--copper3);
  transform: translateY(-2px);
  box-shadow: var(--glow-copper);
}
.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--border2);
}
.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--copper);
  color: var(--copper2);
}
.btn-sm {
  padding: 7px 16px;
  font-size: 11px;
}
.btn-icon {
  padding: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-md);
  font-size: 13px;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--surface); color: var(--copper2); border-color: var(--copper); }
.btn-danger {
  background: rgba(224,82,82,.1);
  color: #e05252;
  border-color: rgba(224,82,82,.3);
}
.btn-danger:hover { background: rgba(224,82,82,.2); }
.btn-success {
  background: rgba(61,186,122,.1);
  color: #3dba7a;
  border-color: rgba(61,186,122,.3);
}
.btn-success:hover { background: rgba(61,186,122,.2); }
.btn:disabled {
  opacity: .4; cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   SECTIONS & CONTAINERS
═══════════════════════════════════════════════════ */
.section { padding: 96px 24px; position: relative; z-index: 1; }
.section-dark { background: var(--bg-1); }
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 860px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 14px;
  color: var(--text-md);
  max-width: 520px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   TOOL CARDS
═══════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.tool-card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.tool-card-header {
  padding: 24px 28px 20px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--border);
}
.tool-badge {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  flex-shrink: 0;
}
.badge-pdf  { background: rgba(224,82,82,.15);  color: var(--pdf-clr);  }
.badge-word { background: rgba(74,144,217,.15); color: var(--word-clr); }
.badge-xlsx { background: rgba(61,186,122,.15); color: var(--excel-clr);}
.badge-edit { background: rgba(201,129,58,.15); color: var(--edit-clr); }

.tool-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.tool-card-desc {
  font-size: 12px;
  color: var(--text-md);
  margin-top: 2px;
  line-height: 1.5;
}

.tool-card-body { padding: 24px 28px; }
.tool-card-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: rgba(255,255,255,.01);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--copper);
  background: rgba(201,129,58,.04);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0;
  cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 32px; margin-bottom: 10px; opacity: .6; }
.upload-label-text {
  font-size: 13px;
  color: var(--text-md);
  margin-bottom: 6px;
}
.upload-or {
  font-size: 11px; color: var(--text-lo);
  margin: 6px 0;
  display: flex; align-items: center; gap: 8px;
}
.upload-or::before, .upload-or::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.upload-hint {
  font-size: 10px; color: var(--text-lo);
  letter-spacing: .05em; margin-top: 4px;
}
.file-chosen {
  display: none;
  align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-hi);
}
.file-chosen.show { display: flex; }
.file-icon { font-size: 18px; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font-size: 11px; }

/* Convert target selector */
.convert-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; flex-wrap: wrap;
}
.convert-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-md);
  flex-shrink: 0;
}
.format-select {
  background: var(--bg-3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text-hi);
  padding: 7px 12px;
  font-size: 12px;
  flex: 1;
  min-width: 120px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b6b82' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color var(--transition);
  cursor: pointer;
}
.format-select:focus { border-color: var(--copper); }

/* Result box */
.result-box {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
}
.result-box.show { display: block; }
.result-header {
  padding: 10px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-md);
}
.result-content {
  padding: 16px;
  min-height: 300px;
  max-height: 520px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-hi);
  background: var(--bg-1);
  white-space: pre-wrap;
  word-break: break-word;
}
.result-content table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.result-content th, .result-content td {
  border: 1px solid var(--border); padding: 6px 10px;
  text-align: left;
}
.result-content th {
  background: var(--bg-3); color: var(--copper2); font-weight: 500;
}
.result-content tr:nth-child(even) td { background: rgba(255,255,255,.015); }

/* Sheet tabs */
.sheet-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.sheet-tab {
  padding: 4px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px; color: var(--text-md);
  cursor: pointer; transition: all var(--transition);
}
.sheet-tab.active, .sheet-tab:hover {
  background: var(--copper);
  color: var(--bg-0);
  border-color: var(--copper);
}

/* Progress bar */
.progress-wrap {
  display: none;
  margin-top: 12px;
  height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.progress-wrap.show { display: block; }
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  border-radius: 2px;
  transition: width .3s ease;
}

/* ═══════════════════════════════════════════════════
   EDITOR SECTION
═══════════════════════════════════════════════════ */
.editor-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.editor-toolbar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap;
  background: var(--bg-3);
}
.editor-toolbar .sep {
  width: 1px; height: 20px;
  background: var(--border);
  margin: 0 4px;
  align-self: center;
}
.tb-btn {
  padding: 6px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-md);
  font-size: 12px;
  font-family: var(--font-mono);
  transition: all var(--transition);
  min-width: 34px;
  text-align: center;
}
.tb-btn:hover { background: var(--surface); color: var(--text-hi); border-color: var(--border); }
.tb-btn.active { background: var(--copper); color: var(--bg-0); border-color: var(--copper); }

.editor-area {
  min-height: 340px;
  max-height: 520px;
  overflow-y: auto;
  padding: 28px 32px;
  color: var(--text-hi);
  font-size: 15px;
  line-height: 1.9;
  outline: none;
  background: var(--bg-1);
}
.editor-area:empty::before {
  content: attr(data-placeholder);
  color: var(--text-lo);
  pointer-events: none;
}
.editor-area h1 { font-family: var(--font-display); font-size: 28px; color: var(--white); margin: 16px 0 8px; font-weight: 600; }
.editor-area h2 { font-family: var(--font-display); font-size: 22px; color: var(--white); margin: 12px 0 6px; font-weight: 600; }
.editor-area p { margin-bottom: 8px; }
.editor-area ul, .editor-area ol { padding-left: 24px; margin-bottom: 8px; }
.editor-area strong { color: var(--white); }
.editor-area a { color: var(--copper2); text-decoration: underline; }

.editor-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--bg-3);
  justify-content: space-between;
}
.editor-stats {
  display: flex; gap: 16px; font-size: 11px; color: var(--muted);
}
.editor-stats span strong { color: var(--copper2); font-weight: 500; }
.editor-export {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.export-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-md);
}

/* ═══════════════════════════════════════════════════
   NOTIFICATIONS (toast)
═══════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: var(--text-hi);
  min-width: 260px;
  max-width: 380px;
  opacity: 0;
  transform: translateX(20px);
  transition: all .25s ease;
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.hide { opacity: 0; transform: translateX(30px); }
.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-text { flex: 1; }
.toast.success { border-left: 3px solid #3dba7a; }
.toast.error   { border-left: 3px solid #e05252; }
.toast.info    { border-left: 3px solid var(--copper); }
.toast.warning { border-left: 3px solid #f0b870; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  padding: 36px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-1);
  position: relative; z-index: 1;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--copper2);
  margin-bottom: 8px;
}
.footer-text { font-size: 12px; color: var(--muted); }
.footer-privacy {
  font-size: 11px;
  color: var(--text-lo);
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.footer-privacy::before { content: '🔒'; font-size: 13px; }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-in { animation: fadeIn .5s ease both; }
.animate-in-delay-1 { animation-delay: .1s; }
.animate-in-delay-2 { animation-delay: .2s; }
.animate-in-delay-3 { animation-delay: .3s; }
.animate-in-delay-4 { animation-delay: .4s; }

.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   RTL ADJUSTMENTS
═══════════════════════════════════════════════════ */
body.rtl .nav {
  flex-direction: row-reverse;
}
body.rtl .nav-links { flex-direction: row-reverse; }
body.rtl .toast-container { right: auto; left: 28px; }
body.rtl .toast { transform: translateX(-20px); }
body.rtl .toast.show { transform: translateX(0); }
body.rtl .toast.hide { transform: translateX(-30px); }
body.rtl .format-select {
  background-position: left 12px center;
  padding-left: 32px; padding-right: 12px;
}
body.rtl .editor-area { direction: rtl; text-align: right; }
body.rtl .result-content { direction: rtl; text-align: right; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); width: 50%; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .editor-area { padding: 20px; min-height: 300px; }
  .editor-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tool-card-footer { justify-content: flex-start; }
  .hero-title { font-size: 36px; }
  .section { padding: 64px 16px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
