/* WOTA Network Creator - minimal styling */
.wota-nc-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
#wota-nc-root .card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
#wota-nc-root h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
}
#wota-nc-root .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#wota-nc-root input[type="text"],
#wota-nc-root input[type="url"],
#wota-nc-root select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  min-width: 240px;
}
#wota-nc-root button {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #f7f7f7;
  cursor: pointer;
}
#wota-nc-root button.primary {
  background: #111;
  color: #fff;
}
#wota-nc-root button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#wota-nc-root .pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fafafa;
  font-size: 12px;
}
#wota-nc-root pre.log {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 12px;
  max-height: 260px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.35;
}
#wota-nc-root .warn {
  color: #b45309;
  font-size: 13px;
}


/* Kid-friendly accordion + Dexi helper */
#wota-nc-root .dexa {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f1f5f9;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 14px;
}
#wota-nc-root .dexa .avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  font-size: 22px;
}
#wota-nc-root .dexa .msg {
  font-size: 14px;
  line-height: 1.35;
}
#wota-nc-root .dexa .msg strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
#wota-nc-root .toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  user-select: none;
}
#wota-nc-root .toggle input {
  transform: scale(1.1);
}
#wota-nc-root .accordion {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  margin: 12px 0;
}
#wota-nc-root .accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  cursor: pointer;
  background: #fff;
}
#wota-nc-root .accordion-header:hover {
  background: #fafafa;
}
#wota-nc-root .accordion-title {
  font-size: 16px;
  margin: 0;
}
#wota-nc-root .accordion-sub {
  font-size: 12px;
  opacity: .75;
  margin-top: 2px;
}
#wota-nc-root .accordion-body {
  display: none;
  padding: 14px 14px 16px 14px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
#wota-nc-root .accordion.open .accordion-body {
  display: block;
}
#wota-nc-root .bigbtn {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
}
#wota-nc-root .muted {
  opacity: .72;
  font-size: 13px;
}


/* Dexi chat widget (floating, collapsible) */
#wota-nc-root .wota-nc-chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.12);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  cursor: pointer;
}
#wota-nc-root .wota-nc-chat-fab .dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #16a34a; /* green */
  display: none;
}
#wota-nc-root .wota-nc-chat-fab.has-new .dot { display: block; }
#wota-nc-root .wota-nc-chat {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 99999;
  width: min(360px, calc(100vw - 36px));
  height: 420px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  overflow: hidden;
  display: none;
}
#wota-nc-root .wota-nc-chat.open { display: flex; flex-direction: column; }
#wota-nc-root .wota-nc-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
#wota-nc-root .wota-nc-chat-header .left {
  display: flex;
  align-items: center;
  gap: 10px;
}
#wota-nc-root .wota-nc-chat-header .badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  font-size: 18px;
}
#wota-nc-root .wota-nc-chat-header .title {
  font-weight: 700;
}
#wota-nc-root .wota-nc-chat-header .sub {
  font-size: 12px;
  opacity: .72;
}
#wota-nc-root .wota-nc-chat-header button {
  padding: 8px 10px;
  border-radius: 12px;
}
#wota-nc-root .wota-nc-chat-body {
  padding: 10px 10px;
  overflow: auto;
  flex: 1;
  background: #ffffff;
}
#wota-nc-root .wota-nc-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 16px;
  margin: 8px 0;
  border: 1px solid rgba(0,0,0,.10);
  font-size: 14px;
  line-height: 1.3;
  white-space: pre-wrap;
}
#wota-nc-root .wota-nc-bubble.dexi {
  background: #f8fafc;
}
#wota-nc-root .wota-nc-bubble.user {
  margin-left: auto;
  background: #111827;
  color: #fff;
  border-color: rgba(0,0,0,.0);
}
#wota-nc-root .wota-nc-chat-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fafafa;
}
#wota-nc-root .wota-nc-chat-quick button {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
}
#wota-nc-root .wota-nc-chat-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
#wota-nc-root .wota-nc-chat-input input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 520px) {
  #wota-nc-root .wota-nc-chat { height: 60vh; }
}


/* Chat action buttons */
#wota-nc-root .wota-nc-bubble-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
#wota-nc-root .wota-nc-bubble-actions button {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #f3f4f6;
}
#wota-nc-root .wota-nc-bubble-actions button.primary {
  background: #111;
  color: #fff;
}


/* Wizard mode */
#wota-nc-root .wota-nc-wizard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  padding: 12px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  margin: 10px 0 12px 0;
}
#wota-nc-root .wota-nc-wizard .left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#wota-nc-root .wota-nc-wizard .step {
  font-weight: 800;
  font-size: 14px;
}
#wota-nc-root .wota-nc-wizard .hint {
  font-size: 12px;
  opacity: .72;
}
#wota-nc-root .wota-nc-wizard .right {
  display: flex;
  align-items: center;
  gap: 10px;
}
#wota-nc-root .wota-nc-wizard .next {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}
#wota-nc-root .wota-nc-wizard .mode {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
#wota-nc-root .wizard-only {
  display: none;
}
#wota-nc-root.wizard .wizard-only { display: inline-flex; }
#wota-nc-root.wizard .not-wizard { display: none !important; }
#wota-nc-root.wizard .accordion { display: none; }
#wota-nc-root.wizard .accordion.open { display: block; }


/* Tutorial spotlight overlay */
#wota-nc-spotlight {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  pointer-events: none;
}
#wota-nc-spotlight.on { display: block; }
#wota-nc-spotlight .shade {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.38);
}
#wota-nc-spotlight .hole {
  position: absolute;
  border-radius: 16px;
  box-shadow:
    0 0 0 9999px rgba(0,0,0,.38),
    0 0 0 4px rgba(255,255,255,.95),
    0 12px 40px rgba(0,0,0,.35);
  background: transparent;
}
#wota-nc-spotlight .tip {
  position: absolute;
  max-width: min(320px, calc(100vw - 36px));
  background: #fff;
  border-radius: 16px;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  pointer-events: auto;
}
#wota-nc-spotlight .tip .title {
  font-weight: 800;
  margin-bottom: 4px;
}
#wota-nc-spotlight .tip .text {
  font-size: 13px;
  opacity: .85;
  line-height: 1.25;
}
#wota-nc-spotlight .tip .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
#wota-nc-spotlight .tip button {
  padding: 8px 10px;
  border-radius: 12px;
}
#wota-nc-root .pulse {
  outline: 3px solid rgba(59,130,246,.95);
  box-shadow: 0 0 0 6px rgba(59,130,246,.18);
  border-radius: 14px;
  animation: wotaPulse 1.2s ease-in-out infinite;
}
@keyframes wotaPulse {
  0%   { box-shadow: 0 0 0 6px rgba(59,130,246,.16); }
  50%  { box-shadow: 0 0 0 12px rgba(59,130,246,.10); }
  100% { box-shadow: 0 0 0 6px rgba(59,130,246,.16); }
}


/* Disconnect button */
#wota-nc-root button.danger {
  background: #fee2e2;
  border: 1px solid rgba(220, 38, 38, .35);
  color: #991b1b;
  font-weight: 700;
}
#wota-nc-root button.danger:hover {
  background: #fecaca;
}


/* Wallet panel */
#wota-nc-root .wota-nc-wallet {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
}
#wota-nc-root .wota-nc-wallet .row {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
#wota-nc-root .wota-nc-wallet .addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  opacity: .85;
}
#wota-nc-root .wota-nc-wallet .balances {
  margin-top: 8px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
#wota-nc-root .wota-nc-wallet .bal {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.72);
}
#wota-nc-root .wota-nc-wallet .bal .k {
  font-weight: 800;
  font-size: 12px;
  opacity: .75;
}
#wota-nc-root .wota-nc-wallet .bal .v {
  margin-top: 4px;
  font-weight: 900;
  font-size: 18px;
}
#wota-nc-root .wota-nc-wallet .links a {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
