/* ─── RESET & ROOT VARIABLES ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f11;
  --surface: #18181c;
  --surface2: #222228;
  --border: #2e2e38;
  --accent: #f97316;
  --accent-dim: rgba(249,115,22,0.12);
  --accent-glow: rgba(249,115,22,0.25);
  --text: #f1f0ee;
  --muted: #888891;
  --success: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(15,15,17,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 30px; height: 30px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.nav-logo-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo-name span { color: var(--accent); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  white-space: nowrap;
}
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--text);
  background: var(--surface2);
}
.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s;
  opacity: 0.6;
}
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
top:100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  transition: background 0.15s, color 0.15s;
}
.dd-item:hover { background: var(--surface2); color: var(--text); }

.dd-icon {
  width: 26px; height: 26px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.dd-sep { height: 1px; background: var(--border); margin: 5px 0; }
.dd-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 6px 10px 2px;
  opacity: 0.7;
}

/* Nav right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-badge {
  font-size: 0.72rem;
  font-family: 'DM Mono', monospace;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 99px;
}

.nav-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.18s;
}
.nav-btn-ghost {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}
.nav-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.nav-btn-primary { background: var(--accent); color: #fff; }
.nav-btn-primary:hover { opacity: 0.85; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  margin-left: auto;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
}
.nav-drawer.open { display: flex; }

.drawer-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.75rem 0 0.3rem;
  opacity: 0.7;
}
.drawer-link {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.drawer-link:hover { background: var(--surface2); color: var(--text); }

/* ─── MAIN TOOL AREA ────────────────────────────────────── */
.wrap {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 20px;
}

/* Header */
.header { text-align: center; margin-bottom: 2.5rem; }
.header .icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 1rem;
}
.header h1 { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; }
.header p { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }

/* Drop zone */
.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.dropzone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.dropzone .dz-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.dropzone h3 { font-size: 1rem; font-weight: 500; }
.dropzone p { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.dz-btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  pointer-events: none;
}

/* Preview panel */
.preview-panel {
  display: none;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.preview-panel.visible { display: flex; }
.preview-img {
  width: 160px; min-width: 160px;
  max-height: 140px;
  object-fit: cover;
}
.preview-info {
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  flex: 1;
}
.preview-name { font-size: 0.9rem; font-weight: 500; word-break: break-all; }
.preview-meta { font-size: 0.8rem; color: var(--muted); }
.size-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.size-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.size-badge.after { border-color: var(--accent-glow); color: var(--accent); }
.arrow { color: var(--muted); font-size: 0.8rem; }

/* Controls */
.controls { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.control-row { display: flex; gap: 10px; }
.control-group { flex: 1; }
.control-group label {
  display: block; font-size: 0.78rem; color: var(--muted);
  margin-bottom: 6px; letter-spacing: 0.02em; text-transform: uppercase;
}

select, input[type=text], input[type=number] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  outline: none;
  appearance: none;
  transition: border-color 0.2s;
}
select:focus, input:focus { border-color: var(--accent); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 2rem;
}

/* Quality slider */
.slider-row { display: flex; align-items: center; gap: 10px; }
.slider-row input[type=range] {
  flex: 1; appearance: none; height: 4px;
  background: var(--border); border-radius: 99px; outline: none; cursor: pointer;
  padding: 0; border: none;
}
.slider-row input[type=range]::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%; cursor: pointer;
}
.slider-val {
  font-family: 'DM Mono', monospace; font-size: 0.85rem;
  color: var(--accent); min-width: 36px; text-align: right;
}

/* Action buttons */
.actions { display: flex; gap: 10px; margin-top: 0.25rem; }
.btn {
  flex: 1; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer; border: none;
  transition: opacity 0.2s, transform 0.1s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-secondary {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }

/* Progress bar */
.progress-wrap { display: none; margin-top: 0.75rem; }
.progress-wrap.visible { display: block; }
.progress-bar-bg {
  background: var(--surface2); border-radius: 99px; height: 4px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: var(--accent); border-radius: 99px;
  width: 0; transition: width 0.3s;
}
.progress-label { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

/* Trust badges */
.trust {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-top: 2rem;
}
.trust-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; padding: 6px 14px;
  font-size: 0.78rem; color: var(--muted);
}
.trust-badge span { color: var(--success); font-size: 0.9rem; }

/* Result banner */
.result-banner {
  display: none; margin-top: 1rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  align-items: center; gap: 10px;
}
.result-banner.visible { display: flex; }
.result-banner a {
  margin-left: auto; color: var(--success); font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.result-banner a:hover { text-decoration: underline; }

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-bottom: 0.85rem;
}
.footer-logo-icon {
  width: 28px; height: 28px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.footer-logo-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.footer-logo-name span { color: var(--accent); }

.footer-tagline {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-trust { display: flex; flex-direction: column; gap: 6px; }
.ft-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--muted);
}
.ft-badge svg { flex-shrink: 0; color: var(--success); }

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.85rem;
  opacity: 0.75;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a {
  text-decoration: none;
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--text); }
.fc-new {
  font-size: 0.65rem;
  font-family: 'DM Mono', monospace;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-left {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-dot { opacity: 0.4; }

.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s, border-color 0.15s;
}
.social-btn:hover { color: var(--text); border-color: var(--accent); }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .header h1 { font-size: 1.5rem; }
  .control-row { flex-direction: column; }
  .preview-img { width: 110px; min-width: 110px; }
  .actions { flex-direction: column; }
}

/* =========================================
PHASE 1 TOOL SWITCHER
APPEND BELOW EXISTING CSS
========================================= */

.page-shell{
min-height:100vh;
}

/* top tool tabs */
.tool-switcher{
max-width:1100px;
margin:34px auto 10px;
padding:0 20px;
display:flex;
gap:12px;
flex-wrap:wrap;
justify-content:center;
}

.tool-tab{
border:none;
background:var(--surface);
border:1px solid var(--border);
color:var(--muted);
padding:12px 18px;
border-radius:999px;
cursor:pointer;
font-family:'DM Sans',sans-serif;
font-size:.88rem;
font-weight:500;
transition:.2s ease;
}

.tool-tab:hover{
border-color:var(--accent);
color:var(--text);
transform:translateY(-1px);
}

.tool-tab.active{
background:var(--accent-dim);
border-color:var(--accent-glow);
color:var(--accent);
}


/* phase panels */
.tool-panel{
display:none;
animation:fadeIn .35s ease;
}

.tool-panel.active{
display:block;
}

@keyframes fadeIn{
from{
opacity:0;
transform:translateY(8px);
}
to{
opacity:1;
transform:none;
}
}

/* smaller headers for new tools */
.header.compact .icon{
width:46px;
height:46px;
font-size:20px;
}

.header.compact h1{
font-size:1.7rem;
}


/* nicer spacing */
.tool-panel .controls{
margin-top:28px;
}


/* inputs for resize/crop */
#resizeWidth,
#resizeHeight,
#cropWidth,
#cropHeight{
height:48px;
}


/* keep placeholder result visible in tool tabs */
#resizeResult,
#webpResult,
#pngResult,
#pdfResult,
#cropResult{
display:flex;
opacity:.85;
}


/* sticky tab bar on scroll (nice) */
.tool-switcher{
position:sticky;
top:70px;
z-index:50;
backdrop-filter:blur(8px);
-webkit-backdrop-filter:blur(8px);
padding-top:10px;
padding-bottom:12px;
}


/* dropdown anchor smooth jump */
html{
scroll-behavior:smooth;
}


/* hover polish */
.btn{
box-shadow:none;
}

.btn-primary:hover:not(:disabled){
box-shadow:0 0 0 4px rgba(249,115,22,.12);
}


/* mobile */
@media(max-width:768px){

.tool-switcher{
justify-content:flex-start;
overflow:auto;
flex-wrap:nowrap;
padding-bottom:14px;
}

.tool-tab{
white-space:nowrap;
flex-shrink:0;
}

.header.compact h1{
font-size:1.45rem;
}

}


@media(max-width:480px){

.tool-switcher{
top:62px;
}

.tool-tab{
padding:10px 14px;
font-size:.82rem;
}

}
/* ABOUT PAGE FIX */
html,
body{
margin:0;
padding:0;
width:100%;
max-width:100%;
overflow-x:hidden;
}

.container{
width:100%;
max-width:1100px;
margin:0 auto;
padding:0 20px;
box-sizing:border-box;
}

.page-hero{
padding:100px 20px 50px;
text-align:center;
}

.page-header{
max-width:800px;
margin:0 auto;
}

.page-header h1{
font-size:56px;
line-height:1.15;
margin-bottom:18px;
}

.page-subtitle{
font-size:20px;
line-height:1.6;
opacity:.85;
max-width:700px;
margin:0 auto;
}

.content-section{
padding:30px 20px 80px;
}

.content-card{
width:100%;
max-width:900px;
margin:0 auto 28px;
padding:32px;
background:#111318;
border:1px solid rgba(255,255,255,.08);
border-radius:24px;
box-sizing:border-box;
}

.content-card h2{
margin-bottom:18px;
}

.feature-list{
list-style:none;
padding:0;
margin:0;
}

.feature-list li{
padding:12px 0;
line-height:1.6;
}

/* Mobile */
@media(max-width:768px){

.page-header h1{
font-size:40px;
}

.page-subtitle{
font-size:18px;
}

.content-card{
padding:24px;
}

}
/* ─── MISSING / ADDED STYLES ────────────────────────────── */

/* Nav support email link */
.nav-support-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-support-link:hover { color: var(--text); }

/* Feedback nav button */
.nav-btn-feedback {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}
.nav-btn-feedback:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Drawer feedback button */
.drawer-feedback-btn {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

/* ─── PAGE HERO (About / Legal pages) ───────────────────── */
.page-hero-section {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero-section .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}
.page-hero-section h1 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.page-hero-section p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ─── PAGE CONTENT (About / Legal pages) ────────────────── */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  line-height: 1.75;
}
.page-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.page-content p {
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-size: 0.93rem;
}
.page-content ul {
  margin: 0.5rem 0 0.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.page-content ul li {
  color: var(--muted);
  font-size: 0.93rem;
}
.page-content a {
  color: var(--accent);
  text-decoration: none;
}
.page-content a:hover { text-decoration: underline; }
.page-content code {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}
.page-content strong { color: var(--text); font-weight: 500; }

/* ─── FEEDBACK MODAL ─────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text); background: var(--surface2); }

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}
.form-group textarea:focus { border-color: var(--accent); }
.form-group input {
  background: var(--surface2);
}

.field-error {
  display: block;
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 4px;
  min-height: 1em;
}

.form-actions {
  margin-top: 0.25rem;
}
.form-actions .btn {
  width: 100%;
}

.feedback-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--success);
  min-height: 1.2em;
  text-align: center;
}

/* ─── MAIN flex grow so footer sticks to bottom ─────────── */
main { flex: 1; }

/* ─── RESPONSIVE FIXES ───────────────────────────────────── */
@media (max-width: 900px) {
  .nav-support-link { display: none; }
}

@media (max-width: 768px) {
  .page-hero-section { padding: 3rem 1.25rem 1.5rem; }
  .page-hero-section h1 { font-size: 1.75rem; }
  .page-content { padding: 1.5rem 1.25rem 4rem; }
}

@media (max-width: 480px) {
  .page-hero-section h1 { font-size: 1.4rem; }
  .modal { padding: 1.25rem; }
}
