/* --------------------------------------------------
   GLOBAL VARIABLES — NEON BLUE / RED THEME
-------------------------------------------------- */
:root {
  --blue-main: #00b7ff;
  --blue-soft: #0090d1;
  --red-main: #ff004c;
  --bg-dark: #050510;
  --bg-panel: rgba(5, 10, 30, 0.92);
  --border-neon: rgba(0, 183, 255, 0.7);
  --text-main: #e9f5ff;
  --text-muted: #8aa4c8;
  --shadow-neon: 0 0 12px rgba(0, 183, 255, 0.8), 0 0 24px rgba(255, 0, 76, 0.6);
}

/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--blue-main) #050510;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: var(--text-main);
  min-height: 100vh;
  background-image: url("tags.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* WebKit scrollbars */
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: #050510;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-main), var(--blue-soft));
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 183, 255, 0.8);
}

/* --------------------------------------------------
   LINKS
-------------------------------------------------- */
a {
  color: var(--blue-main);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--blue-main);
}

/* --------------------------------------------------
   PAGE WRAPPER
-------------------------------------------------- */
.page-wrap {
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(10, 0, 20, 0.9));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4vw;
  border-bottom: 1px solid rgba(0, 183, 255, 0.4);
  background: radial-gradient(circle at top left, rgba(0, 183, 255, 0.25), transparent 55%),
              radial-gradient(circle at top right, rgba(255, 0, 76, 0.25), transparent 55%),
              rgba(3, 5, 20, 0.96);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  width: 72px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 183, 255, 0.7);
  box-shadow: 0 0 12px rgba(0, 183, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-img:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 18px rgba(0, 183, 255, 1);
}

.logo-text-main {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-main);
  text-shadow: 0 0 8px rgba(0, 183, 255, 0.9);
}

.logo-text-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}

.nav-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 183, 255, 0.5);
  background: radial-gradient(circle at top, rgba(0, 183, 255, 0.18), rgba(0, 0, 0, 0.7));
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(0, 183, 255, 0.6);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.nav-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 183, 255, 1);
  background: radial-gradient(circle at top, rgba(255, 0, 76, 0.35), rgba(0, 0, 0, 0.9));
}
.nav-pill-current {
  opacity: 0.85;
}

/* --------------------------------------------------
   MAIN GRID
-------------------------------------------------- */
.main-grid {
  padding: 26px 4vw 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------
   PANELS
-------------------------------------------------- */
.panel {
  background: var(--bg-panel);
  border-radius: 18px;
  border: 1px solid var(--border-neon);
  box-shadow: var(--shadow-neon);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 183, 255, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255, 0, 76, 0.18), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.panel-inner {
  position: relative;
  z-index: 1;
}

.panel-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.panel-heading-main {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 14px;
  text-shadow: 0 0 10px rgba(0, 183, 255, 0.9);
}

/* --------------------------------------------------
   INPUT FIELDS
-------------------------------------------------- */
.field-group {
  margin-bottom: 10px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.field-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.field-hint {
  font-size: 0.72rem;
  color: #ff7aa5;
}

input[type="text"],
input[type="url"],
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 183, 255, 0.6);
  background: rgba(3, 6, 25, 0.9);
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 183, 255, 0.4);
  transition: border 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

input:focus,
textarea:focus {
  border-color: var(--red-main);
  box-shadow: 0 0 12px rgba(255, 0, 76, 0.9);
  transform: translateY(-1px);
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  line-height: 1.4;
  white-space: pre;
}

.inline-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 600px) {
  .inline-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------
   TOGGLES
-------------------------------------------------- */
.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 183, 255, 0.4);
  background: rgba(3, 6, 25, 0.8);
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.toggle-row input[type="checkbox"] {
  accent-color: var(--blue-main);
}

.toggle-row label:hover {
  background: rgba(255, 0, 76, 0.25);
  box-shadow: 0 0 10px rgba(255, 0, 76, 0.7);
  transform: translateY(-1px);
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.btn-main,
.btn-ghost {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  border: 1px solid rgba(0, 183, 255, 0.7);
  cursor: pointer;
  background: radial-gradient(circle at top, rgba(0, 183, 255, 0.3), rgba(0, 0, 0, 0.9));
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 183, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn-main:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 0, 76, 1);
  background: radial-gradient(circle at top, rgba(255, 0, 76, 0.4), rgba(0, 0, 0, 0.95));
}

.btn-ghost {
  border-style: dashed;
  opacity: 0.9;
  box-shadow: 0 0 10px rgba(0, 183, 255, 0.6);
}

/* --------------------------------------------------
   OUTPUT PANEL
-------------------------------------------------- */
.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.output-header-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.output-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 76, 0.7);
  color: #ffb3cd;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.output-area {
  width: 100%;
  min-height: 520px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 183, 255, 0.6);
  background: rgba(3, 6, 25, 0.9);
  color: var(--text-main);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 0 8px rgba(0, 183, 255, 0.4);
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

.output-area:focus {
  border-color: var(--red-main);
  box-shadow: 0 0 12px rgba(255, 0, 76, 0.9);
}

.panel-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------
   WATERMARK
-------------------------------------------------- */
.watermark {
  position: absolute;
  bottom: 8px;
  right: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 183, 255, 0.35);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer {
  padding: 10px 4vw 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 183, 255, 0.4);
  background: rgba(3, 5, 20, 0.96);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.footer strong {
  color: var(--blue-main);
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: var(--text-main);
  min-height: 100vh;

  /* PAGE BACKGROUND */
  background-image: url("tags.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

