/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: dark;
  --bg-0: #060915;
  --bg-1: #0c1226;
  --card: rgba(16, 26, 48, 0.72);
  --card-strong: rgba(20, 33, 61, 0.86);
  --text: #eef3ff;
  --muted: #9db2db;
  --line: rgba(95, 130, 190, 0.28);
  --brand-a: #21d4fd;
  --brand-b: #9b5cff;
  --ok: #28f7a1;
  --no: #ff6b8a;
  --bg-surface: #111112;
  --border-soft: #27272a;
  --success-green: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --error-red: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: hidden;
  width: 100%;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(33, 212, 253, 0.22), transparent 60%),
    radial-gradient(1000px 480px at 100% 0%, rgba(155, 92, 255, 0.2), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif;
}

a { color: #cce3ff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.neuralBackdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.topNav {
  position: -webkit-sticky;
  position: sticky;
  top: 8px;
  z-index: 20;
  max-width: 1100px;
  width: calc(100% - 24px);
  margin: 12px auto 0;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 34, 0.78);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
}
.topNavLinks { display: flex; gap: 14px; align-items: center; }
.topNav a {
  text-decoration: none;
  color: #d7e6ff;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 10px;
}
.topNav a:hover { background: rgba(77, 134, 231, 0.18); color: #fff; }

.langSelect { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.langSelect select {
  padding: 7px 10px;
  min-width: 110px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 44, 0.9);
  color: var(--text);
}

.container {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 52px;
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.card, .fluid-card, .monitorItem {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card {
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 32px rgba(0,0,0,.26);
  min-width: 0;
  overflow: hidden;
}

.hero {
  border-color: rgba(106, 160, 255, .35);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: .2px;
  background: linear-gradient(90deg, #d7f0ff, #bfb3ff 55%, #91ffe0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin: 0; color: var(--muted); }
.health {
  margin-top: 10px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
  border: 1px solid var(--line);
  background: rgba(7, 12, 24, .6);
}
.health.up { color: #c8ffe8; border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.health.down { color: #ffd1db; border-color: color-mix(in srgb, var(--no) 55%, transparent); }
.health.checking { color: #cde0ff; }

.form { display: grid; grid-gap: 12px; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
label { display: grid; grid-gap: 7px; gap: 7px; font-size: .92rem; color: var(--muted); }
input, select, button {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 28, 0.88);
  color: var(--text);
  padding: 11px 12px;
  font-size: .96rem;
}
button {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #05101c;
  font-weight: 780;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 22px rgba(50, 120, 255, 0.26);
}
button.secondary {
  background: rgba(22, 38, 74, 0.72);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
button:hover { transform: translateY(-1px); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.result ul { margin: 12px 0 0; padding-left: 18px; }
.result li { margin-bottom: 6px; }
.badge { display: inline-block; border-radius: 999px; padding: 7px 11px; font-weight: 700; }
.badge.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: #beffe0; border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); }
.badge.no { background: color-mix(in srgb, var(--no) 18%, transparent); color: #ffd0dc; border: 1px solid color-mix(in srgb, var(--no) 50%, transparent); }
.error { color: #ffb1b1; font-weight: 600; }
.hint { margin: 10px 0 0; color: #ffcf9a; font-size: .92rem; }

details { margin-top: 10px; }
summary { cursor: pointer; color: var(--muted); }
pre {
  margin-top: 8px;
  background: rgba(7, 12, 24, 0.88);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  overflow: auto;
  font-size: .8rem;
}

h3 { margin: 0 0 10px; }
.monitorItem {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(8, 14, 28, .55);
}
small { color: var(--muted); }
.mutedText { color: var(--muted); margin: 0 0 10px; }
.actionsRow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.actionsRow h3 { margin: 0; }
.split { grid-template-columns: 1fr 1fr; }
h4 { margin: 0 0 8px; }

.statGrid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}
.kpiCard {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(8, 14, 28, .55);
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}
.kpiCard span { color: var(--muted); font-size: .82rem; }
.kpiCard strong { font-size: 1.35rem; }
.kpiCard.ok { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.kpiCard.no { border-color: color-mix(in srgb, var(--no) 55%, transparent); }

.listClean { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 10px; gap: 10px; }
.chipRow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.signalPill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .78rem;
  border: 1px solid var(--line);
  background: rgba(7, 12, 24, .7);
}
.signalPill.ok { color: #beffe0; border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.signalPill.no { color: #ffd0dc; border-color: color-mix(in srgb, var(--no) 55%, transparent); }
.signalPill.neutral { color: #d7e6ff; }

.timelineItem {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: start;
  grid-gap: 10px;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 28, .55);
}
.timelineDot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 0 10px rgba(33,212,253,.65);
}

@keyframes pulse {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; }
}

@keyframes drift {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-12px) translateX(8px); }
}

@media (max-width: 640px) {
  .row, .split, .statGrid { grid-template-columns: 1fr; }
  .hero h1,
  .heroCenter h1 { font-size: 1.45rem; line-height: 1.15; }
  .heroCenter p { font-size: .95rem; }

  /* Nav: horizontal scroll-friendly, no column stack */
  .topNav { gap: 8px; padding: 8px 12px; margin: 8px 8px 0; }
  .topNavLinks { flex-wrap: nowrap; gap: 6px; overflow-x: auto; }
  .topNav a { min-height: 40px; display: inline-flex; align-items: center; font-size: .85rem; padding: 4px 8px; white-space: nowrap; }
  .langSelect { font-size: .8rem; }
  .langSelect select { min-width: 90px; padding: 5px 8px; font-size: .85rem; }

  /* Container padding */
  .container { padding: 16px 10px 40px; }

  /* Watchlist items: stack vertically, centered */
  .monitorItem { flex-direction: column; align-items: center; text-align: center; padding: 16px 12px; }
  .monitorItem > div { width: 100%; }
  .watchlistTitle { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
  .watchlistThumb { width: 80px; height: 80px; margin: 0 auto 8px; }

  /* Product URLs: break long links */
  .monitorItem small { word-break: break-all; font-size: .8rem; }

  /* Chips: center on mobile */
  .monitorItem .chipRow { justify-content: center; }

  /* Actions row: stack on mobile */
  .actionsRow { flex-direction: column; gap: 6px; }

  /* KPI cards text */
  .kpiCard strong { font-size: 1.1rem; }
  .kpiCard span { font-size: .75rem; }
}

/* Nexus home layout */
.nexusHome { max-width: 1180px; width: 100%; }
.heroCenter { text-align: center; margin-top: 18px; }
.heroCenter h1 { font-size: 2.5rem; margin: 0 0 8px; }
.heroCenter p { margin: 0 0 18px; color: var(--muted); }

.search-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(17, 17, 18, 0.6);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
}
.search-row { padding: 0 10px; display: flex; align-items: center; }
.search-row.grow { flex: 1 1; }
.search-row.fixed { min-width: 160px; -webkit-border-start: 1px solid rgba(255,255,255,.09); border-inline-start: 1px solid rgba(255,255,255,.09); }
.analyzeBtn { min-width: 130px; border-radius: 12px; }

.fluid-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  transition: all .3s ease;
}
.fluid-card:hover { border-color: rgba(255,255,255,.22); transform: translateY(-1px); }

.targetCard { display: grid; grid-template-columns: 160px 1fr; grid-gap: 16px; gap: 16px; padding: 16px; }
.targetImage { width: 160px; height: 160px; border-radius: 14px; border: 1px solid var(--line); }
.targetBody h3 { margin: 2px 0 4px; }
.targetMeta { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.priceTag { font-size: 1.45rem; font-weight: 800; }
.targetActions { display: flex; gap: 10px; margin-top: 10px; }

@media (max-width: 640px) {
  .targetMeta,
  .targetActions {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

.flowHint { display:flex; justify-content:center; margin: 10px 0; }
.flowHint span {
  border: 1px solid var(--line);
  background: rgba(24,24,27,.85);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: .9rem;
}

.recommendGrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-gap: 12px; gap: 12px; }
.recCard { padding: 12px; }
.recImage { width: 100%; height: 170px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; }
.recCard h4 { margin: 0 0 10px; font-size: .95rem; min-height: 42px; }
.recMeta { display: flex; justify-content: space-between; align-items: center; }

.badge-error { background-color: var(--error-bg); color: var(--error-red); border: 1px solid rgba(239,68,68,.2); }
.badge-success { background-color: var(--success-bg); color: var(--success-green); border: 1px solid rgba(16,185,129,.2); }
.img-placeholder-1 { background: linear-gradient(135deg, #2c3e50, #000000); }
.img-placeholder-2 { background: linear-gradient(135deg, #1a2a6c, #112240); }
.img-placeholder-3 { background: linear-gradient(135deg, #3a1c71, #150824); }
.img-placeholder-main { background: linear-gradient(135deg, #434343, #000000); }
img.targetImage { object-fit: contain; border-radius: 12px; background: #fff; }
.watchlistThumb { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; background: #fff; flex-shrink: 0; }
.watchlistTitle { display: block; margin-bottom: 4px; font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; }
.monitorItem { display: flex; align-items: center; gap: 12px; min-width: 0; }
.monitorItemBody { flex: 1 1; min-width: 0; }
.fetchMethodToggle { display: flex; gap: 16px; justify-content: center; margin-top: 10px; font-size: 0.85rem; opacity: 0.7; }
.fetchMethodToggle label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.fetchMethodToggle input[type="radio"] { accent-color: var(--accent, #7c5cfc); }

@keyframes slide-down-fade { from { opacity:0; transform: translateY(-18px);} to {opacity:1; transform: translateY(0);} }
.animate-flow-1 { animation: slide-down-fade .45s ease-out forwards; }
.animate-flow-2 { animation: slide-down-fade .45s ease-out .12s forwards; opacity:0; }
.animate-flow-3 { animation: slide-down-fade .45s ease-out .24s forwards; opacity:0; }
@keyframes gentle-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.12)} 50%{box-shadow:0 0 0 8px rgba(255,255,255,0)} }
.btn-alert-pulse { animation: gentle-pulse 2s infinite; }

@media (max-width: 900px) {
  .search-container { flex-direction: column; align-items: stretch; }
  .search-row.fixed { -webkit-border-start: 0; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.09); padding-top: 8px; }
  .targetCard { grid-template-columns: 1fr; }
  .targetImage { width: 100%; height: 180px; }
  .recommendGrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.search-container:focus-within {
  border-color: color-mix(in srgb, var(--brand-a) 45%, white);
  box-shadow: 0 0 0 3px rgba(33, 212, 253, 0.14);
}

.search-container input.clean-input,
.search-container select.clean-input {
  border: none;
  background: transparent;
  border-radius: 0;
  outline: none;
  width: 100%;
  padding: 8px 4px;
}

.search-container input.clean-input:focus-visible,
.search-container select.clean-input:focus-visible,
.analyzeBtn:focus-visible {
  outline: 2px solid var(--brand-a);
  outline-offset: 2px;
}

