/* NextSmartCity — navy ground, circuit blue. Distinct from Sensi and NATIVEnvoy. */
:root {
  --nsc-bg: #07111f;
  --nsc-bg-2: #0d1c33;
  --nsc-card: #10243f;
  --nsc-line: rgba(126, 184, 255, 0.28);
  --nsc-ink: #e8f2ff;
  --nsc-muted: #9bb0cc;
  --nsc-blue: #3b82f6;
  --nsc-ice: #d6ecff;
  --nsc-cyan: #7ec8ff;
  --nsc-amber: #f5c16c;
  --nsc-danger: #ffb4b4;
  --nsc-ok: #9be7c4;
  --nsc-max: 1080px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.nsc {
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(59, 130, 246, 0.28), transparent 55%),
    linear-gradient(180deg, var(--nsc-bg) 0%, #050b14 100%);
  color: var(--nsc-ink);
  min-height: 100vh;
}
a { color: var(--nsc-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.nsc-wrap { width: min(var(--nsc-max), calc(100% - 2rem)); margin: 0 auto; }
.nsc-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 17, 31, 0.92);
  border-bottom: 1px solid var(--nsc-line);
  backdrop-filter: blur(10px);
}
.nsc-nav-inner {
  width: min(var(--nsc-max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.65rem 0;
}
.nsc-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--nsc-ink); text-decoration: none; }
.nsc-brand img { height: 46px; width: auto; background: transparent; }
.nsc-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-left: auto; }
.nsc-tools { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.nsc-tools select, .nsc-theme {
  width: auto; margin: 0; padding: 0.35rem 0.6rem; border-radius: 999px;
  background: transparent; color: var(--nsc-ice); font-size: 0.82rem; cursor: pointer;
}
.nsc-theme { border: 1px solid var(--nsc-line); }
.nsc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.nsc-banner {
  margin: 0.8rem 0 0; padding: 0.7rem 0.9rem; border-radius: 0.8rem;
  border: 1px solid var(--nsc-line); background: rgba(126, 184, 255, 0.08);
  color: var(--nsc-ice); font-size: 0.92rem;
}
.nsc-fx { color: var(--nsc-amber); font-weight: 650; min-height: 1.2rem; }
html[dir="rtl"] .nsc-links { margin-left: 0; margin-right: auto; }
.nsc-links a { color: var(--nsc-muted); font-size: 0.92rem; }
.nsc-links a.on, .nsc-links a:hover { color: var(--nsc-ice); text-decoration: none; }
.nsc-btn {
  display: inline-block;
  background: var(--nsc-blue);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
.nsc-btn.ghost { background: transparent; color: var(--nsc-ice); border: 1px solid var(--nsc-line); }
.nsc-btn.amber { background: #8a5a12; color: #fff8ea; }
.nsc-btn:hover { text-decoration: none; filter: brightness(1.08); }
.nsc-hero { padding: 2.4rem 0 1rem; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1.5rem; align-items: center; }
.nsc-kicker { letter-spacing: 0.14em; text-transform: uppercase; color: var(--nsc-cyan); font-size: 0.75rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; margin: 0.35rem 0; }
h2 { margin: 0 0 0.6rem; font-size: 1.35rem; }
.nsc-xh { color: var(--nsc-ice); font-size: 1.05rem; }
.nsc-muted { color: var(--nsc-muted); }
.nsc-logo-card {
  background: radial-gradient(circle at 50% 40%, #14325e, #07111f 72%);
  border: 1px solid var(--nsc-line);
  border-radius: 1.25rem;
  padding: 1rem;
  text-align: center;
}
.nsc-logo-card img { width: min(100%, 280px); }
.nsc-hero-visual { position: relative; min-height: 320px; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--nsc-line); }
.nsc-hero-visual img.photo { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.nsc-hero-visual img.mark { position: absolute; left: 1rem; bottom: 1rem; width: min(46%, 190px); filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.nsc-aura { display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: 200px; gap: 0.75rem; }
.nsc-aura a:first-child { grid-row: span 2; }
.nsc-aura a { position: relative; display: block; border-radius: 1rem; overflow: hidden; border: 1px solid var(--nsc-line); }
.nsc-aura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nsc-aura span { position: absolute; left: 0.7rem; bottom: 0.65rem; background: rgba(7,17,31,.75); color: var(--nsc-ice); border-radius: 999px; padding: 0.22rem 0.6rem; font-size: 0.82rem; }
.nsc-reel-row { display: grid; grid-template-columns: 1.5fr 0.55fr; gap: 0.8rem; align-items: start; }
.nsc-share img { width: min(100%, 420px); border-radius: 1rem; border: 1px solid var(--nsc-line); display: block; }
.nsc-reel-row video, .nsc-reel video { width: 100%; border-radius: 1rem; background: #000; border: 1px solid var(--nsc-line); display: block; }
.nsc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.nsc-grid.two { grid-template-columns: 1fr 1fr; }
.nsc-card {
  background: rgba(16, 36, 63, 0.88);
  border: 1px solid var(--nsc-line);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
}
.nsc-card h3 { margin: 0.2rem 0 0.4rem; }
.nsc-tag {
  display: inline-block;
  border: 1px solid var(--nsc-line);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.75rem;
  color: var(--nsc-cyan);
}
.nsc-tag.warn { color: var(--nsc-amber); border-color: rgba(245, 193, 108, 0.45); }
.nsc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.nsc-step, a.nsc-step { background: var(--nsc-card); border-radius: 1rem; padding: 0.9rem; border: 1px solid var(--nsc-line); color: inherit; text-decoration: none; display: block; }
a.nsc-step:hover { text-decoration: none; border-color: var(--nsc-cyan); }
.nsc-step img { width: 100%; height: 140px; object-fit: cover; border-radius: 0.75rem; display: block; margin-bottom: 0.6rem; }
.nsc-step b { display: block; color: var(--nsc-cyan); font-size: 0.8rem; margin-bottom: 0.3rem; }
.nsc-photo { margin: 0 0 1rem; }
.nsc-photo img { width: 100%; max-height: 440px; object-fit: cover; object-position: center; border-radius: 1.1rem; display: block; border: 1px solid var(--nsc-line); }
.nsc-photo figcaption { color: var(--nsc-muted); font-size: 0.88rem; margin-top: 0.4rem; }
.nsc-player { display: grid; grid-template-columns: 1.45fr 0.7fr; gap: 0.85rem; align-items: start; }
.nsc-playlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.nsc-playlist button { width: 100%; text-align: left; background: var(--nsc-card); color: var(--nsc-ice); border: 1px solid var(--nsc-line); border-radius: 0.85rem; padding: 0.55rem 0.7rem; cursor: pointer; }
.nsc-playlist button strong { display: block; }
.nsc-playlist button span { display: block; color: var(--nsc-muted); font-size: 0.82rem; margin-top: 0.15rem; }
.nsc-playlist button.on { border-color: var(--nsc-cyan); }
.nsc-cut { display: flex; gap: 0.4rem; margin: 0.4rem 0 0.8rem; }
.nsc-cut button { background: transparent; color: var(--nsc-ice); border: 1px solid var(--nsc-line); border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; }
.nsc-cut button.on { background: var(--nsc-blue); border-color: var(--nsc-blue); }
.nsc-card .bs-otp { background: #0c1c33; color: var(--nsc-ice); border-color: var(--nsc-line); }
.nsc-card .bs-otp-help, .nsc-card .bs-otp-status { color: var(--nsc-muted); }
.nsc-card .bs-otp input[name="phone_otp"] { background: #07111f; color: var(--nsc-ice); border-color: var(--nsc-line); width: 8.5rem; margin: 0; }
.nsc-card .bs-otp-send { background: transparent; color: var(--nsc-ice); border: 1px solid var(--nsc-line); }
.nsc-card .bs-otp-confirm { background: var(--nsc-blue); color: #fff; border: 0; }
.nsc-section { padding: 1.3rem 0; }
.nsc-note {
  border-left: 3px solid var(--nsc-amber);
  padding: 0.7rem 0.9rem;
  background: rgba(245, 193, 108, 0.08);
  border-radius: 0.5rem;
  color: #ffe7c2;
  font-size: 0.92rem;
}
.nsc-map { height: 380px; border-radius: 1rem; border: 1px solid var(--nsc-line); margin: 0.8rem 0 1rem; }
.nsc-ask, .nsc-form, input, select, textarea {
  font: inherit; color: var(--nsc-ink);
}
input, select, textarea {
  width: 100%;
  background: #07111f;
  border: 1px solid var(--nsc-line);
  border-radius: 0.7rem;
  padding: 0.6rem 0.7rem;
  margin: 0.25rem 0 0.7rem;
}
label { font-size: 0.85rem; color: var(--nsc-muted); }
.nsc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.nsc-chips button {
  background: transparent;
  color: var(--nsc-ice);
  border: 1px solid var(--nsc-line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.nsc-reply {
  white-space: pre-wrap;
  background: #07111f;
  border-radius: 0.8rem;
  padding: 0.8rem;
  min-height: 3rem;
}
.nsc-footer { border-top: 1px solid var(--nsc-line); margin-top: 2rem; padding: 1.4rem 0 2rem; color: var(--nsc-muted); font-size: 0.9rem; }
.nsc-price { font-size: 1.25rem; color: var(--nsc-ice); }
.nsc-ok { color: var(--nsc-ok); }
.nsc-err { color: var(--nsc-danger); }
.leaflet-container { background: #0b1a2e; font: inherit; }
@media (max-width: 860px) {
  .nsc-hero, .nsc-grid, .nsc-grid.two, .nsc-steps, .nsc-aura, .nsc-reel-row, .nsc-player { grid-template-columns: 1fr; }
  .nsc-aura a:first-child { grid-row: auto; }
  .nsc-aura { grid-auto-rows: 210px; }
  .nsc-links { display: none; }
  .nsc-nav-inner { flex-wrap: wrap; }
  .nsc-tools { margin-left: auto; }
}
html[data-theme="light"] {
  --nsc-bg: #f4f7fb;
  --nsc-bg-2: #e7eef8;
  --nsc-card: #ffffff;
  --nsc-line: rgba(11, 92, 171, 0.22);
  --nsc-ink: #10243f;
  --nsc-muted: #4a6280;
  --nsc-blue: #0b5cab;
  --nsc-ice: #10243f;
  --nsc-cyan: #0b5cab;
  --nsc-amber: #8a5a00;
  --nsc-danger: #9f1239;
  --nsc-ok: #047857;
}
html[data-theme="light"] body.nsc {
  background:
    radial-gradient(1000px 420px at 90% -10%, rgba(11, 92, 171, 0.12), transparent 55%),
    linear-gradient(180deg, #f4f7fb 0%, #e7eef8 100%);
  color: #10243f;
}
html[data-theme="light"] .nsc-nav,
html[data-theme="light"] .nsc-tabs { background: rgba(244, 247, 251, 0.94); }
html[data-theme="light"] .nsc-card,
html[data-theme="light"] .nsc-step,
html[data-theme="light"] a.nsc-step,
html[data-theme="light"] .nsc-playlist button {
  background: #ffffff;
  color: #10243f;
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .nsc-reply,
html[data-theme="light"] .nsc-card .bs-otp,
html[data-theme="light"] .nsc-card .bs-otp input[name="phone_otp"] {
  background: #ffffff;
  color: #10243f;
}
html[data-theme="light"] .nsc-logo-card {
  background: radial-gradient(circle at 50% 40%, #ffffff, #e7eef8 72%);
}
html[data-theme="light"] .nsc-note { color: #6b4a12; }
html[data-theme="light"] .nsc-btn { color: #fff; }
html[data-theme="light"] .nsc-btn.ghost,
html[data-theme="light"] .nsc-theme { color: #10243f; }
html[data-theme="light"] .leaflet-container { background: #e7eef8; }
html[data-theme="light"] .nsc-banner { background: rgba(11, 92, 171, 0.08); }
