/* =========================================
   ARIAL — Premium Mystic Web3 Interface
   ========================================= */

:root {
  --bg-void: #0a0b0f;
  --bg-panel: rgba(18, 20, 30, 0.92);

  --border-soft: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(140, 180, 255, 0.35);

  --text-main: #eaf3ff;
  --text-dim: #c7d6ff;
  --text-soft: #aab0ff;

  /* Primary Accent (Main theme) */
--accent-color: #7ef0d4;
--accent-glow: rgba(126,240,212,0.45);


  /* Optional secondary accents */
  --accent-a: #7aa2ff;
  --accent-b: #b38cff;
  --accent-c: #5cf0c2;
/* Link color (soft warm orange) */
--link-color: #ffcc9a;
--link-glow: rgba(255, 204, 154, 0.35);
  --danger: #ff6b6b;

  --radius: 14px;
  --radius-soft: 10px;
}
	

/* ================= GLOBAL ================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(120,140,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(180,140,255,0.06), transparent 45%),
    var(--bg-void);
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system;
  min-height: 100vh;
}



/* ================= APP CONTAINER ================= */

.app {
  max-width: 820px;
  margin: 60px auto 60px;
  padding: 40px;
  background: linear-gradient(
    180deg,
    rgba(20,22,36,0.9),
    rgba(14,15,24,0.95)
  );
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow:
    0 40px 120px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
}

/* ================= TEXT ================= */

h1 {
  font-size: 28px;
  color: #b9b4ff;
  margin-bottom: 8px;
    text-shadow: 0 0 24px rgba(160, 170, 255, 0.45);

}

h2 {
  font-size: 18px;
  color: #b9b4ff;
  margin-bottom: 24px;
}

h3 {
  color: var(--text-dim);
  margin-top: 32px;
}

p {
  color: var(--text-dim);
  line-height: 1.6;
}

/* ================= FORM ================= */

.form .row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.label {
  min-width: 200px;
  color: var(--text-soft);
}

.field {
  flex: 1;
}

/* ================= INPUTS / TEXTAREA ================= */

input, textarea {
  width: 100%;
  padding: 12px 14px;

  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas;
  font-size: 13px;
  color: #f2f4ff;

  background:
    linear-gradient(
      135deg,
      rgba(150, 120, 255, 0.35),
      rgba(220, 220, 255, 0.18),
      rgba(20, 22, 40, 0.9)
    );

  border: 1px solid rgba(170, 180, 255, 0.35);
  border-radius: var(--radius-soft);

  box-shadow:
    inset 0 0 18px rgba(160, 180, 255, 0.18),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4);

  outline: none;
  transition: all 0.25s ease;
}

textarea {
  min-height: 200px;
  resize: vertical;
}


/* ================= UNIVERSAL INPUT GLOW ================= */

/* ================= UNIFIED GLOW ================= */

input:hover,
textarea:hover,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);

  box-shadow:
    inset 0 0 18px rgba(160, 180, 255, 0.18),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--accent-color),
    0 0 18px var(--accent-glow),
    0 0 40px var(--accent-glow);
}

/* ================= PASSWORD EYE ================= */
.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 44px;
}

.password-field .eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}

.password-field .eye:hover {
  color: #ffffff;
}


/* ================= BUTTONS ================= */

.actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

button {
  padding: 12px 20px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(
      135deg,
      rgba(120,160,255,0.25),
      rgba(160,120,255,0.25)
    );
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s ease;
}

button:hover {
  border-color: var(--border-glow);
  box-shadow:
    0 0 28px rgba(140,180,255,0.3);
}

button:active {
  transform: translateY(1px);
}

/* ================= LOG ================= */

.log {
  margin-top: 20px;
  padding: 16px;
  background: rgba(10,12,20,0.85);
  border-radius: var(--radius-soft);
  border: 1px solid var(--border-soft);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #b9b4ff;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}


/* ================= DIVIDER ================= */

.divider {
  height: 1px;
  margin: 32px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(140,180,255,0.25),
    transparent
  );
}




/* ================= NAV MENU SYSTEM ================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;

  display: flex;
  justify-content: center;
  gap: 40px;

  padding: 18px 30px;

  background: rgba(18, 20, 30, 0.65);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);

  z-index: 1000;
}

.menu-item {
  position: relative;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.menu-item > a,
.menu-item > span {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ===== HOVER GLOW ===== */

.menu-item > a::before,
.menu-item > span::before {
  content: "";
  position: absolute;
  inset: -6px -10px;
  border-radius: 10px;

  background: radial-gradient(
    circle at center,
    rgba(122,162,255,0.15),
    rgba(179,140,255,0.08),
    transparent 70%
  );

  box-shadow:
    0 0 20px rgba(122,162,255,0.25),
    0 0 35px rgba(179,140,255,0.15);

  opacity: 0;
  transition: opacity 0.18s ease;

  z-index: -1;
}

.menu-item > a:hover,
.menu-item > span:hover {
  color: white;
}

.menu-item > a:hover::before,
.menu-item > span:hover::before {
  opacity: 1;
}

/* ===== ACTIVE UNDERLINE ===== */

.menu-item > a.active,
.menu-item > span.active {
  color: white;
}

.menu-item > a.active::after,
.menu-item > span.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;

  background: linear-gradient(
    90deg,
    rgba(122,162,255,0.55),
    rgba(179,140,255,0.55)
  );

  border-radius: 2px;

  box-shadow:
    0 0 6px rgba(122,162,255,0.25),
    0 0 10px rgba(179,140,255,0.18);
}

/* ===== SUBMENU ===== */

.submenu {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 160px;
  padding: 10px 0;

  background: rgba(20, 22, 36, 0.95);
  backdrop-filter: blur(30px);

  border: 1px solid var(--border-soft);
  border-radius: var(--radius-soft);

  box-shadow: 0 25px 80px rgba(0,0,0,0.6);

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;

  transition: opacity 0.18s ease, transform 0.18s ease;

  z-index: 1100;
}

.menu-item:hover > .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: 0.2s ease;
}

.submenu a:hover {
  color: white;
  background: rgba(140,180,255,0.08);
}
.submenu-item.has-sub:hover > .submenu.nested {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ===== WORKFLOW FIX ===== */

.mode-view {
  margin-top: 20px;
}

.visual-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-top: 20px;
}

.protocol-view {
  width: 100%;
  padding: 24px;
  border-radius: var(--radius-soft);
  background: rgba(10,12,20,0.85);
  border: 1px solid var(--border-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas;
  font-size: 13px;
  color: var(--text-dim);
  white-space: pre-wrap;
}


/* ===== TOGGLE VISIBILITY ===== */

.hidden {
  display: none;
}
.arial-quote {
  position: relative;
  text-align: center;
  margin: 1rem auto;
  padding: 1rem 1rem;
  max-width: 900px;
}

.arial-quote span {
  display: inline-block;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: #7ef0d4;
  letter-spacing: 0.6px;

  text-shadow:
    0 0 8px rgba(126,240,212,0.35),
    0 0 20px rgba(126,240,212,0.15);
}

.arial-quote::before,
.arial-quote::after {
  content: "";
  display: block;
  width: 140px;
  height: 1px;
  margin: 2rem auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(126,240,212,0.9),
    transparent
  );
}
.hero-quote span {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 1px;
}
.mode-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.lifecycle-card {
  position: relative;
  background: rgba(15, 20, 35, 0.9);
  border-radius: 18px;
  padding: 3rem;
}

/* Glow layer */
.lifecycle-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  z-index: -1;

  background: radial-gradient(
    circle at 50% 50%,
    rgba(126,240,212,0.35),
    rgba(126,240,212,0.15) 40%,
    transparent 70%
  );

  filter: blur(40px);
  opacity: 0.6;
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip-text {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translate(-50%, 10px);

  background: rgba(15,20,35,0.98);
  color: #7ef0d4;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  white-space: nowrap;

  box-shadow:
    0 0 15px rgba(126,240,212,0.3);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.tooltip:hover .tooltip-text {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.testnet {
  border-top: 4px solid #ff9800;
}

.test-banner {
  text-align: center;
  padding: 0.8rem;
  font-size: 0.85rem;
  color: #ffb74d;
  background: rgba(255,152,0,0.08);
}

.generator-output {
  margin-top: 1.5rem;
  font-family: monospace;
  font-size: 0.85rem;
  opacity: 0.9;
}
/* ========================= */
/* TESTNET THEME OVERRIDE    */
/* ========================= */

body.testnet {
  --accent-color: #5fb0ff;           /* blauw tussen lichtblauw en blauw */
  --accent-glow: rgba(95,176,255,0.35);
  --shade-color: rgba(255, 230, 140, 0.08); /* mintgeel-achtige shade */
}

/* Test banner */
body.testnet .test-banner {
  background: var(--shade-color);
  color: var(--accent-color);
  border-bottom: 1px solid rgba(255, 230, 140, 0.25);
}

/* Buttons in test mode */
body.testnet .btn {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

body.testnet .btn:hover {
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Quote glow override (geen mintgroen) */
body.testnet .arial-quote span {
  color: var(--accent-color);
  text-shadow: 0 0 12px var(--accent-glow);
}

/* Lifecycle card shade override */
body.testnet .lifecycle-card::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255,230,140,0.25),
    rgba(255,230,140,0.1) 40%,
    transparent 70%
  );
}
body.testnet h1,
body.testnet h2 {
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* ---------- TEST PAGE SPACING FIX ---------- */

body.testnet .test-section {
  margin-bottom: 3rem;
}

body.testnet input,
body.testnet textarea {
  margin-bottom: 1rem;
}

body.testnet .btn {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

body.testnet .divider {
  margin: 3rem 0;
}

body.testnet pre {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

body.testnet .lifecycle-card {
  padding: 3rem 3rem;
}

.test-warning {
  margin-top: 2rem;
  padding: 1.5rem;

  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);

  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: var(--radius-soft);

  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;

  box-shadow:
    0 0 12px rgba(255, 107, 107, 0.15);
}

/* ================= LINKS ================= */

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffe3c7;

  text-shadow:
    0 0 8px var(--link-glow),
    0 0 18px var(--link-glow);
}

/* Keep hero quote green in testnet */
body.testnet .arial-quote span {
  color: #7ef0d4;
  text-shadow:
    0 0 8px rgba(126,240,212,0.35),
    0 0 20px rgba(126,240,212,0.15);
}
/* ================= NESTED SUBMENU ================= */

.submenu-item {
  position: relative;
}

.submenu-item > span {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}

.submenu-item > span:hover {
  color: white;
  background: rgba(140,180,255,0.08);
}

.submenu.nested {
  position: absolute;
  top: 0;
  left: 100%;

  min-width: 160px;
  padding: 10px 0;

  background: rgba(20, 22, 36, 0.95);
  backdrop-filter: blur(30px);

  border: 1px solid var(--border-soft);
  border-radius: var(--radius-soft);

  box-shadow: 0 25px 80px rgba(0,0,0,0.6);

  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;

  transition: opacity 0.18s ease, transform 0.18s ease;
}

.submenu-item:hover .submenu.nested {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.submenu-item.has-sub > span::after {
  content: "▸";
  float: right;
  opacity: 0.6;
}



.sepolia-table {
  margin-bottom: 2rem;
}

.sepolia-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas;
  font-size: 13px;
}

.sepolia-table td {
  padding: 8px 0;
  vertical-align: top;
}

.sepolia-table td:first-child {
  width: 120px;
  color: var(--accent-color);
  font-weight: 500;
}

.sepolia-table td:last-child {
  color: var(--text-dim);
  word-break: break-all;
}

/* ================= ERROR ================= */

.error {
  color: var(--danger);
}