.tags-hero { padding-top: 36px; }
.tags-hero .hero-copy { max-width: 820px; }
.tag-tool {
  position: relative;
  width: min(860px, 100%);
  margin: 32px auto 0;
  padding: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: rgba(11, 16, 28, .96);
  box-shadow: var(--shadow);
  text-align: left;
}
.tool-head,
.result-head,
.file-row,
.generator-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.tool-head h2,
.result-head h3 { margin: 2px 0 0; line-height: 1.2; }
.tool-head h2 { font-size: clamp(22px, 3vw, 30px); }
.result-head h3 { font-size: 22px; }
.tool-kicker {
  margin: 0;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.privacy-note { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tag-drop {
  position: relative;
  display: grid;
  min-height: 260px;
  margin-top: 20px;
  overflow: hidden;
  place-items: center;
  border: 1.5px dashed #41506c;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(124, 90, 255, .09), rgba(56, 182, 255, .035));
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.tag-drop:hover,
.tag-drop.dragover { border-color: var(--accent-2); background: rgba(56, 182, 255, .08); }
.drop-copy { display: grid; gap: 6px; justify-items: center; padding: 30px; color: var(--muted); text-align: center; }
.drop-copy strong { color: var(--text); font-size: 17px; }
.drop-copy span:last-child { font-size: 13px; }
.upload-icon { display: grid; width: 48px; height: 48px; margin-bottom: 5px; place-items: center; border-radius: 14px; background: var(--accent-grad); color: #fff; font-size: 25px; }
.tag-preview { position: absolute; inset: 0; }
.tag-preview p { width: 100%; height: 100%; margin: 0; }
.tag-preview img { display: block; width: 100%; height: 100%; object-fit: contain; background: #060911; }
.tag-drop.has-image .drop-copy { display: none; }
.file-row { min-height: 29px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.file-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-button,
.try-sample {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  font-weight: 750;
}
.text-button:hover,
.try-sample:hover { text-decoration: underline; }
.generator-actions { margin-top: 16px; }
.generate-button {
  min-width: 220px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  background: var(--accent-grad);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(80, 109, 255, .22);
}
.generate-button:hover { filter: brightness(1.08); }
.generate-button:disabled { cursor: wait; opacity: .72; }
.quota { color: var(--muted); font-size: 13px; text-align: right; }
.quota strong { color: var(--text); }
.cf-turnstile { display: flex; justify-content: center; min-height: 1px; margin-top: 12px; }
.tool-error { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(248, 113, 113, .42); border-radius: 10px; background: rgba(127, 29, 29, .18); color: #fecaca; }
.tag-result { margin-top: 22px; padding: 21px; border: 1px solid rgba(52, 211, 153, .32); border-radius: 16px; background: rgba(6, 78, 59, .09); }
.tag-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.tag-group { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: #080c15; }
.tag-group h4 { margin: 0; color: #cbd5e1; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.tag-chip-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tag-chip { display: inline-flex; max-width: 100%; border: 1px solid rgba(124, 90, 255, .4); border-radius: 999px; padding: 5px 9px; background: rgba(124, 90, 255, .1); color: #e3ddff; font-size: 12.5px; overflow-wrap: anywhere; }
.result-advice { margin: 16px 0; color: var(--muted); font-size: 13.5px; }
.tool-privacy { margin: 18px 0 0; color: #8995aa; font-size: 12px; line-height: 1.55; }
.tag-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tag-example-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 36px rgba(0, 0, 0, .18); }
.example-image { overflow: hidden; aspect-ratio: 3 / 2; margin: 0; border-bottom: 1px solid var(--border); }
.example-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.tag-example-card:hover .example-image img { transform: scale(1.02); }
.example-body { padding: 19px; }
.example-body h3 { margin: 0 0 13px; font-size: 19px; }
.example-tags { display: grid; gap: 9px; margin: 0; }
.example-tags div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
.example-tags dt { color: #c4b5fd; font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.example-tags dd { margin: 0; color: var(--muted); font-size: 13.5px; }
.try-sample { margin-top: 15px; font-size: 13.5px; }
.two-column-guide { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 34px; align-items: start; }
.editing-steps { display: grid; gap: 13px; margin: 0; padding-left: 23px; color: var(--muted); }
.editing-steps strong { color: var(--text); }
.edit-example { padding: 22px; border: 1px solid rgba(56, 182, 255, .32); border-radius: 16px; background: linear-gradient(145deg, rgba(56, 182, 255, .08), rgba(124, 90, 255, .08)); }
.edit-example h3 { margin: 6px 0 16px; font-size: 21px; line-height: 1.25; }
.edit-example p:not(.tool-kicker) { margin: 10px 0 0; color: var(--muted); }
.tool-toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; max-width: min(340px, calc(100vw - 40px)); padding: 11px 15px; border: 1px solid var(--border-strong); border-radius: 10px; background: #111827; color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.tool-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .tag-groups,
  .tag-example-grid,
  .two-column-guide { grid-template-columns: 1fr; }
  .privacy-note { white-space: normal; text-align: right; }
}
@media (max-width: 560px) {
  .tag-tool { padding: 18px; }
  .tool-head,
  .result-head,
  .generator-actions { align-items: flex-start; flex-direction: column; }
  .privacy-note,
  .quota { text-align: left; }
  .generate-button { width: 100%; }
  .tag-drop { min-height: 220px; }
  .example-tags div { grid-template-columns: 72px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tag-drop,
  .example-image img,
  .tool-toast { transition: none; }
}
