:root {
  --blue: #0b57ff;
  --blue-dark: #0a3fc4;
  --blue-light: #eaf1ff;
  --blue-softer: #f3f7ff;
  --violet: #7c3aed;
  --teal: #06b6a8;
  --ink: #0e1b34;
  --muted: #5c6b85;
  --line: #e3e9f5;
  --white: #ffffff;
  --bg: #f5f8fd;
  --glass: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.6);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(11, 87, 255, 0.3), 0 4px 14px -6px rgba(11, 87, 255, 0.12);
  --shadow-sm: 0 8px 24px -12px rgba(11, 87, 255, 0.2);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --danger: #e0333f;
  --ok: #12875a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

p { color: var(--muted); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(640px circle at 8% -8%, rgba(11, 87, 255, 0.14), transparent 55%),
    radial-gradient(560px circle at 96% 4%, rgba(124, 58, 237, 0.10), transparent 55%),
    radial-gradient(520px circle at 25% 60%, rgba(6, 182, 168, 0.07), transparent 55%),
    radial-gradient(680px circle at 90% 70%, rgba(11, 87, 255, 0.08), transparent 55%);
  background-size: 140% 140%;
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
@keyframes drift {
  0% { background-position: 0% 0%, 100% 0%, 20% 60%, 90% 70%; }
  100% { background-position: 6% 10%, 92% 8%, 28% 68%, 82% 62%; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none; }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(245, 248, 253, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(11, 87, 255, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  min-width: 0;
}
.brand span { white-space: nowrap; }

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(11, 87, 255, 0.25));
}

.ffmpeg-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.2s ease;
}
.ffmpeg-badge.ok { color: var(--ok); border-color: rgba(18, 135, 90, 0.25); background: #eefbf4; }
.ffmpeg-badge.bad { color: var(--danger); border-color: rgba(224, 51, 63, 0.25); background: #fdeeef; }

.shell {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 24px 40px;
}

.hero {
  text-align: center;
  margin: 28px 0 34px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: linear-gradient(180deg, #fff, var(--blue-softer));
  border: 1px solid var(--blue-light);
  padding: 7px 14px 7px 10px;
  border-radius: 20px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px -8px rgba(11, 87, 255, 0.35);
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 0 0 3px rgba(6, 182, 168, 0.18);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  background: linear-gradient(115deg, var(--ink) 15%, var(--blue) 55%, var(--violet) 85%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 6s ease-in-out infinite alternate;
}
@keyframes sheen {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}
.hero p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
  max-width: 560px;
  margin-inline: auto;
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero-eyebrow .dot { animation: none; }
}

.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
  background: #eefbf4;
  border: 1px solid rgba(18, 135, 90, 0.18);
  padding: 6px 12px;
  border-radius: 20px;
}
.trust-pill svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabs {
  position: relative;
  display: flex;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  width: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue) 0%, #3a76ff 60%, var(--violet) 130%);
  box-shadow: 0 10px 24px -8px rgba(11, 87, 255, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
  pointer-events: none;
  will-change: transform, width;
}
.tab-indicator.ready { animation: indicator-glow 3s ease-in-out infinite; }
@keyframes indicator-glow {
  0%, 100% { box-shadow: 0 10px 24px -8px rgba(11, 87, 255, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15) inset; }
  50% { box-shadow: 0 12px 30px -6px rgba(11, 87, 255, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
}

.tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s var(--ease), transform 0.15s var(--ease);
  font-family: inherit;
  white-space: nowrap;
  scroll-snap-align: start;
}
.tab svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tab:hover:not(.active) { color: var(--ink); }
.tab:hover:not(.active) svg { transform: scale(1.12) rotate(-4deg); }
.tab:active { transform: scale(0.96); }
.tab.active {
  color: white;
}
.tab.active svg { animation: icon-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes icon-pop {
  0% { transform: scale(0.6) rotate(-8deg); }
  60% { transform: scale(1.22) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tab-indicator { transition: none; animation: none; }
  .tab.active svg, .tab:hover svg { animation: none; transform: none; }
}

.panel { display: none; }
.panel.active { display: block; animation: fadeIn 0.3s var(--ease); }

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

.card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease), transform 0.35s var(--ease), opacity 0.4s var(--ease);
}
.card.mini-tool:hover {
  box-shadow: 0 28px 64px -26px rgba(11, 87, 255, 0.32), 0 4px 14px -6px rgba(11, 87, 255, 0.14);
  transform: translateY(-2px);
}

.input-row {
  display: flex;
  gap: 10px;
}

input[type="url"],
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="url"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 87, 255, 0.12);
  background: var(--white);
}
input[type="url"]::placeholder,
input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder { color: #9aa5ba; }

.btn {
  border: none;
  border-radius: 100px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn.primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, #3a76ff 100%);
  color: white;
  box-shadow: 0 12px 28px -10px rgba(11, 87, 255, 0.55);
  isolation: isolate;
}
.btn.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%);
  background-size: 220% 100%;
  background-position: 120% 0;
  transition: background-position 0.6s var(--ease);
  z-index: -1;
}
.btn.primary:hover:not(:disabled)::before { background-position: -20% 0; }
.btn.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(11, 87, 255, 0.6); }

.btn.ghost {
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--muted);
}
.btn.ghost:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-softer); }

.hint {
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--muted);
}

.status {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  min-height: 0;
}
.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }
.status.loading { color: var(--muted); }

.status.loading::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.media-preview {
  display: flex;
  gap: 16px;
  align-items: center;
}
.media-preview img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.media-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.quality-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.quality-row label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
select {
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  outline: none;
}
.quality-row .btn { margin-left: auto; }
.thumb-btn { margin-top: 12px; width: 100%; }

.image-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.control-input, .control-select {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.control-input {
  flex: 1;
  min-width: 140px;
}
.control-input:focus, .control-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 87, 255, 0.1);
}
.control-select { font-weight: 600; cursor: pointer; }
.image-controls .spacer { flex-basis: 100%; height: 0; }

.view-toggle {
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.view-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.view-btn:hover { color: var(--ink); }
.view-btn.active { background: var(--white); color: var(--blue); box-shadow: 0 2px 6px -2px rgba(11,87,255,0.3); }
#darkBgBtn {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 38px;
  height: 38px;
}
#darkBgBtn.active { background: var(--ink); color: white; border-color: var(--ink); }

.image-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.image-toolbar .spacer { flex: 1; }
.no-results {
  margin-top: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  padding: 30px 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 18px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.image-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.image-tile:hover { transform: translateY(-2px); }
.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-tile.selected { border-color: var(--blue); }
.image-tile .check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(14, 27, 52, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-tile.selected .check {
  background: var(--blue);
  border-color: var(--blue);
}
.image-tile.selected .check::after {
  content: "";
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}
.image-tile a.open-original {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(14, 27, 52, 0.72);
  color: white;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  text-decoration: none;
}
.image-tile .tile-dl {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(14, 27, 52, 0.72);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.image-tile .tile-dl svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.image-tile .tile-meta {
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(14, 27, 52, 0.72);
  color: white;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  text-transform: uppercase;
}

.image-grid.dark-bg .image-tile,
.image-list.dark-bg .list-thumb {
  background: #1a2030;
}

.image-grid[hidden],
.image-list[hidden],
.image-controls[hidden],
.image-toolbar[hidden],
.view-toggle[hidden] { display: none; }

/* ===== List view ===== */
.image-list {
  margin-top: 18px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.list-row:hover { border-color: #c7d3ec; background: var(--blue-softer); }
.list-row.selected { border-color: var(--blue); background: var(--blue-softer); }
.list-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.list-row.selected .list-checkbox { background: var(--blue); border-color: var(--blue); }
.list-row.selected .list-checkbox::after {
  content: "";
  width: 5px;
  height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) translate(-1px, -1px);
}
.list-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}
.list-info { flex: 1; min-width: 0; }
.list-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-sub {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.list-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.list-icon-btn:hover { color: var(--blue); border-color: var(--blue); }
.list-icon-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.disclaimer-note {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--blue-softer);
  border: 1px solid var(--blue-light);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.disclaimer-note a { color: var(--blue); font-weight: 700; }
.disclaimer-note a:hover { text-decoration: underline; }

/* ===== Mini tool cards (Files / Dev Tools tabs) ===== */
.mini-tool { margin-bottom: 16px; }
.mini-tool-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.mini-tool-title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), #3a76ff);
}
.card.mini-tool:nth-of-type(3n+2) .mini-tool-title::before {
  background: linear-gradient(135deg, var(--violet), #a78bfa);
}
.card.mini-tool:nth-of-type(3n+3) .mini-tool-title::before {
  background: linear-gradient(135deg, var(--teal), #34d9c4);
}
.mini-tool-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.subtitle-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.subtitle-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.file-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.file-toolbar[hidden] { display: none; }
.file-toolbar .spacer { flex: 1; }

.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}
.file-row:hover { border-color: #c7d3ec; background: var(--blue-softer); }
.file-row.selected { border-color: var(--blue); background: var(--blue-softer); }
.file-row .file-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
}
.file-row.selected .file-checkbox { background: var(--blue); border-color: var(--blue); }
.file-row .file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
}
.file-row .file-ext-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--blue-light);
  color: var(--blue);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}
.file-row .file-dl {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}
.file-row .file-dl:hover { color: var(--blue); }
.file-row .file-dl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.link-result {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.link-result[hidden] { display: none; }
.link-result input[type="text"] {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink);
  font-family: monospace;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 6px;
  max-height: 340px;
  overflow-y: auto;
}
.icon-tile {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  text-align: center;
}
.icon-tile img, .icon-tile .icon-preview {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.icon-tile .icon-preview svg { width: 100%; height: 100%; }
.icon-tile .icon-label {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  word-break: break-all;
  line-height: 1.3;
}
.icon-tile .icon-dl-btn {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
}
.icon-tile .icon-dl-btn:hover { border-color: var(--blue); }

.bulk-summary {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.bulk-summary[hidden] { display: none; }
.bulk-category {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.bulk-category .bulk-count {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
}
.bulk-category .bulk-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}
.bulk-download-all {
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* ===== Tools showcase (SEO section) ===== */
.showcase {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 56px 24px 64px;
}
.showcase-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.showcase-inner > h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 14px;
}
.showcase-intro {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 44px;
}
.category-nav a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-softer);
  border: 1px solid var(--blue-light);
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.15s ease;
}
.category-nav a:hover { background: var(--blue-light); }

.tool-category {
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}
.tool-category h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.category-intro {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 640px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.tool-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: border-color 0.15s ease, transform 0.35s var(--ease), opacity 0.4s var(--ease);
}
.tool-card:hover { border-color: #c7d3ec; transform: translateY(-2px); }
.tool-card.partial { background: var(--blue-softer); border-color: var(--blue-light); }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.tool-card-head h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}
.tool-card-head h4 a:hover { color: var(--blue); text-decoration: underline; }
.tool-card p {
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
}

.badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge.live { background: #e7f9f1; color: var(--ok); }
.badge.partial { background: var(--blue-light); color: var(--blue); }
.badge.soon { background: #eef0f4; color: var(--muted); }

.tool-try-btn {
  margin-top: 10px;
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.tool-try-btn:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 20px auto 0;
  padding: 24px 24px 40px;
  text-align: center;
}
.site-footer .footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.site-footer .footer-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.site-footer .footer-links a:hover { color: var(--blue); }
.site-footer .copyright {
  font-size: 12px;
  color: #a3adc2;
}

.footer-sitemap {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 24px;
  text-align: left;
}
.footer-sitemap-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: center;
}
.footer-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 16px;
}
.footer-sitemap-grid a {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-sitemap-grid a:hover { color: var(--blue); }

/* ===== Tool landing pages (SEO) ===== */
.tool-page-shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 24px 60px;
}

.tool-hero {
  text-align: center;
  margin: 20px 0 36px;
}
.tool-hero h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  background: linear-gradient(115deg, var(--ink) 15%, var(--blue) 60%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tool-hero p {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 520px;
  margin: 0 auto 22px;
}
.tool-cta { display: inline-flex; }

.tool-content {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.tool-content p { font-size: 14.5px; line-height: 1.75; }
.tool-content h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 30px 0 14px;
}
.tool-content h2:first-of-type { margin-top: 6px; }

.tool-steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
  min-height: 30px;
  display: flex;
  align-items: center;
}
.tool-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.tool-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.tool-benefits li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-cta-block {
  text-align: center;
  margin: 32px 0;
  padding: 24px;
  background: var(--blue-softer);
  border: 1px solid var(--blue-light);
  border-radius: 14px;
}

.tool-faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 16px;
  background: var(--bg);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { font-size: 13.5px; margin: 0 0 14px; }

.related-tools { margin-top: 40px; }
.related-tools h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.related-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.related-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue);
  margin-bottom: 4px;
}
.related-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.tool-page-disclaimer { margin-top: 24px; }

@media (max-width: 640px) {
  .tool-page-shell { padding: 8px 16px 40px; }
  .tool-content { padding: 24px; }
  .tool-benefits { grid-template-columns: 1fr; }
}

/* ===== Legal pages ===== */
.legal-shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 24px 60px;
}
.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.legal-card h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.legal-updated {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 28px;
}
.legal-card h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--ink);
}
.legal-card h2:first-of-type { margin-top: 6px; }
.legal-card p, .legal-card li {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}
.legal-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.legal-card li { margin-bottom: 6px; }
.legal-card strong { color: var(--ink); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 18px;
}
.back-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .topbar .brand span { font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; font-size: 13px; }
  .ffmpeg-badge { font-size: 10.5px; padding: 5px 10px; white-space: nowrap; }

  .shell { padding: 6px 14px 30px; }
  .hero { margin: 18px 0 24px; }
  .hero p { font-size: 14px; }
  .trust-pill { font-size: 11px; padding: 5px 10px; }

  .tabs {
    justify-content: flex-start;
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
  }
  .tab { flex: 0 0 auto; padding: 11px 14px; font-size: 13px; }
  .tab svg { width: 15px; height: 15px; }

  .card { padding: 20px; }
  .mini-tool-title { font-size: 14px; }

  .input-row { flex-direction: column; }
  .input-row .btn { width: 100%; }

  .quality-row { flex-wrap: wrap; }
  .quality-row select { flex: 1 1 auto; min-width: 0; }
  .quality-row .btn { margin-left: 0; width: 100%; }

  .image-controls { flex-direction: column; align-items: stretch; }
  .image-controls .control-select { width: 100%; }
  .view-toggle { align-self: flex-start; }

  .image-toolbar, .file-toolbar { flex-wrap: wrap; }
  .image-toolbar .spacer, .file-toolbar .spacer { display: none; }
  .image-toolbar .btn, #imageDownloadSelected, #filesDownloadSelected { width: 100%; }

  .link-result { flex-direction: column; }
  .link-result .btn, .link-result a.btn { width: 100%; }

  .media-preview { flex-direction: column; align-items: flex-start; }
  .media-preview img { width: 100%; height: auto; max-height: 200px; }

  .showcase { padding: 40px 16px 48px; }
  .tool-grid { grid-template-columns: 1fr; }
  .category-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .category-nav a { flex: 0 0 auto; }

  .legal-card { padding: 26px 20px; }
}

@media (max-width: 380px) {
  .topbar { gap: 8px; }
  .topbar .brand span { font-size: 13.5px; }
  .brand-mark { width: 24px; height: 24px; }
  .ffmpeg-badge {
    font-size: 9.5px;
    padding: 4px 8px;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===== Donate page ===== */
.donate-card p { font-size: 14.5px; }
.donate-panel {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  margin: 26px 0;
  padding: 24px;
  background: var(--blue-softer);
  border: 1px solid var(--blue-light);
  border-radius: 16px;
}
.donate-qr {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: white;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.donate-upi-id { flex: 1; min-width: 200px; }
.donate-upi-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.donate-upi-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
  font-family: monospace;
}
.donate-upi-id .btn { margin-right: 8px; margin-bottom: 8px; }
.donate-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}
.donate-report {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 10px;
}
.donate-report h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.optional-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 20px;
}
.donate-report-hint {
  font-size: 13px;
  margin: 0 0 18px;
}
.donate-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.donate-submit-btn { margin-top: 16px; width: 100%; }
@media (min-width: 480px) {
  .donate-submit-btn { width: auto; }
}

.support-intro { margin-bottom: 22px; }
.support-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-form-fields textarea { resize: vertical; }
.support-submit-btn { margin-top: 16px; width: 100%; }
@media (min-width: 480px) {
  .support-submit-btn { width: auto; }
}

/* ===== Admin login ===== */
.admin-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-login-card {
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.admin-login-logo { width: 48px; height: 48px; margin: 0 auto 16px; display: block; }
.admin-login-card h1 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.admin-login-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 20px; }
.admin-login-form input[type="password"] { width: 100%; }
.admin-login-submit { width: 100%; margin-top: 14px; }
.admin-login-error { margin-bottom: 14px; text-align: left; }

/* ===== Admin dashboard ===== */
.admin-shell {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}
.admin-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 20px;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 6px;
}
.admin-stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.admin-stat-card.highlight { background: var(--blue-softer); border-color: var(--blue-light); }
.admin-stat-value { font-size: 26px; font-weight: 800; color: var(--ink); }
.admin-stat-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.admin-footnote { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }

.admin-section {
  margin-top: 34px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.admin-section h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-subheading { font-size: 14px; font-weight: 800; margin: 24px 0 12px; }
.admin-badge-count {
  font-size: 11px;
  font-weight: 800;
  background: var(--blue-light);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 20px;
}
.admin-empty { font-size: 13.5px; color: var(--muted); padding: 12px 0; }

.admin-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin-bottom: 8px;
}
.admin-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.admin-bar {
  width: 100%;
  min-height: 3px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  border-radius: 4px 4px 0 0;
}
.admin-bar-label { font-size: 9.5px; color: var(--muted); margin-top: 6px; font-weight: 600; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 800;
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--line);
}
.admin-table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink); }
.admin-table tr:last-child td { border-bottom: none; }

.admin-tickets { display: flex; flex-direction: column; gap: 10px; }
.admin-ticket {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.admin-ticket.resolved { opacity: 0.65; }
.admin-ticket-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.admin-ticket-category {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--line);
  color: var(--muted);
}
.admin-ticket-category.cat-bug { background: #fdeeef; color: var(--danger); }
.admin-ticket-category.cat-support { background: var(--blue-light); color: var(--blue); }
.admin-ticket-category.cat-feature { background: #f0e9fe; color: var(--violet); }
.admin-ticket-date { font-size: 11px; color: var(--muted); font-weight: 600; }
.admin-ticket-message { font-size: 13.5px; color: var(--ink); line-height: 1.6; margin: 0 0 10px; white-space: pre-wrap; }
.admin-ticket-meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }

@media (max-width: 640px) {
  .donate-panel { flex-direction: column; text-align: center; }
  .donate-upi-id { text-align: center; }
  .admin-shell { padding: 16px 16px 40px; }
  .admin-section { padding: 20px; }
}

/* ===== Donate nav button ===== */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.donate-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #c23b70;
  background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
  border: 1px solid #ffd3e2;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 6px 16px -10px rgba(194, 59, 112, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.donate-nav-btn .heart {
  display: inline-block;
  animation: donate-heartbeat 2.2s ease-in-out infinite;
}
@keyframes donate-heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(1); }
  36% { transform: scale(1.12); }
  48% { transform: scale(1); }
}
.donate-nav-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffedf3 0%, #ffdce8 100%);
  box-shadow: 0 8px 20px -8px rgba(194, 59, 112, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .donate-nav-btn .heart { animation: none; }
}
@media (max-width: 640px) {
  .donate-nav-btn { font-size: 12px; padding: 7px 13px; }
}
@media (max-width: 380px) {
  .donate-nav-btn { padding: 6px 10px; font-size: 11px; }
}
