:root{
  --bg1:#1b2a3a;
  --bg2:#0f1720;
  --card1:#2b3f55;
  --card2:#1c2a3a;
  --text:#ffffff;
  --muted:rgba(255,255,255,0.75);
  --border:rgba(255,255,255,0.10);
  --shadow:0 8px 20px rgba(0,0,0,0.35);
  --shadow-hover:0 14px 28px rgba(0,0,0,0.45);
}

/* Reset */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

/* Body */
body{
  margin:0;
  font-family:"Segoe UI", Roboto, Arial, sans-serif;
  background:radial-gradient(circle at top, var(--bg1), var(--bg2));
  color:var(--text);
}

/* Header */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 22px;
  background:linear-gradient(135deg, var(--card1), var(--card2));
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow);
}

.logo{
  height:40px;
  width:auto;
}

/* Buttons */
.join-link,
.info-link{
  display:inline-block;
  font-size:0.95rem;
  font-weight:600;
  color:var(--text);
  text-decoration:none;
  padding:10px 14px;
  border-radius:10px;
  background:linear-gradient(135deg, var(--card1), var(--card2));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  transition:transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor:pointer;
}

.join-link:hover,
.info-link:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-hover);
  border-color:rgba(255,255,255,0.18);
}

/* Headings */
h1{
  text-align:center;
  margin:22px 0 10px;
  padding:0 14px;
  font-size:2.1rem;
  letter-spacing:1px;
  font-weight:650;
  color:var(--text);
}

/* Container */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Node Cards */
.node{
  display:flex;
  flex-direction:column;
  padding:14px;
  background:linear-gradient(135deg, var(--card1), var(--card2));
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  transition:transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.node:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-hover);
  border-color:rgba(255,255,255,0.18);
}

/* Talking glow */
.node.talking,
.sub-card.talking{
  border:2px solid #4f86f7;
  animation: nodeGlowFade 4.5s ease-in-out infinite;
}

@keyframes nodeGlowFade{
  0%{
    box-shadow:
      0 0 4px rgba(79,134,247,0.25),
      0 0 8px rgba(79,134,247,0.18);
  }
  50%{
    box-shadow:
      0 0 24px rgba(79,134,247,0.80),
      0 0 40px rgba(79,134,247,0.60),
      0 0 55px rgba(79,134,247,0.40);
  }
  100%{
    box-shadow:
      0 0 4px rgba(79,134,247,0.25),
      0 0 8px rgba(79,134,247,0.18);
  }
}

/* Node summary */
.node-summary{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.node-name{
  font-weight:650;
}

.node-tgs{
  color:var(--muted);
}

.node-time p{
  margin:4px 0;
  font-size:0.9rem;
  color:var(--muted);
}

/* Sub cards */
.sub-card{
  padding:12px;
  border-radius:10px;
  border:1px solid var(--border);
  margin-top:10px;
  background:rgba(0,0,0,0.2);
}

/* Title row */
.title-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* Counter pill */
.node-counter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.9rem;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:linear-gradient(135deg, var(--card1), var(--card2));
  box-shadow:var(--shadow);
}

/* Forms */
.form-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}

label{
  font-size:0.9rem;
  color:var(--muted);
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"]{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.07);
  color:var(--text);
  outline:none;
  font-size:1rem;
  appearance:none;
}


/* Select dropdown (match input style) */
select{
  width:100%;
  padding:12px 44px 12px 14px;
  border-radius:10px;
  border:1px solid var(--border);
  background:
    linear-gradient(135deg, var(--card1), var(--card2));
  color:var(--text);
  outline:none;
  font-size:1rem;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;
  box-shadow:var(--shadow);
  transition:transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    linear-gradient(135deg, var(--card1), var(--card2));
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat:no-repeat;
}

select:hover,
select:focus{
  border-color:rgba(255,255,255,0.18);
  box-shadow:var(--shadow-hover);
}

select option{
  background:#1c2a3a;
  color:var(--text);
}

/* Placeholder */
input::placeholder{
  color:rgba(255,255,255,0.55);
}

/* Autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
  -webkit-box-shadow:0 0 0 1000px rgba(255,255,255,0.07) inset !important;
  -webkit-text-fill-color:var(--text) !important;
  caret-color:var(--text);
  border:1px solid var(--border);
}

/* Checkbox */
.check-row{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:0.9rem;
}

/* Card action */
.card-action{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Flash messages */
.flash{
  padding:12px;
  border-radius:10px;
  margin-bottom:10px;
  font-size:0.9rem;
}

.flash-success{ background:#1e6f3a; }
.flash-danger{ background:#8b1e1e; }
.flash-warning{ background:#7a5a00; }
.flash-info{ background:#1f4a7a; }

/* ===== NEW FOOTER (from style.css) ===== */
.footer,
footer{
  margin-top:40px;
  padding:24px 16px;
  text-align:center;
  color:var(--muted);
  border-top:1px solid var(--border);
  background:linear-gradient(135deg, var(--card1), var(--card2));
  box-shadow:var(--shadow);
  font-size:0.92rem;
}

.footer p,
footer p{
  margin:6px 0;
}

.footer a,
footer a{
  color:#93c5fd;
  text-decoration:none;
  font-weight:500;
}

.footer a:hover,
footer a:hover{
  text-decoration:underline;
}

.footer-content{
  max-width:1100px;
  margin:0 auto;
}

/* Images */
img, svg, video, canvas{
  max-width:100%;
  height:auto;
}

/* Mobile */
@media (max-width:768px){

  header{
    flex-direction:column;
    gap:10px;
    text-align:center;
  }

  .container{
    padding:12px;
  }

  h1{
    font-size:1.7rem;
  }

  .node-summary{
    flex-direction:column;
    align-items:flex-start;
  }

  .footer,
  footer{
    margin-top:28px;
    padding:20px 14px;
  }
}


.audio-shell{
  margin-top:10px;
  padding:10px;
  border-radius:12px;
  background:rgba(0,0,0,0.28);
  border:1px solid rgba(255,255,255,0.08);
}

.dark-player{
  display:block;
  width:100%;
  height:42px;
  border-radius:10px;

  /* THIS is the key fix */
  filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(1.1);
}


.header-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  height:40px;
  width:auto;
}




/* Install prompt */
.install-prompt[hidden]{
  display:none;
}

.install-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.install-secondary{
  opacity:0.9;
}

@media (max-width:768px){
  .install-actions{
    width:100%;
    justify-content:flex-start;
  }
}
