/* ...existing code... (เพิ่มก่อน </style>) */

/* ══════════════════════════════════════
   SOCIAL COMMAND CENTER
══════════════════════════════════════ */
.scc-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,212,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(184,71,245,0.05) 0%, transparent 50%),
    var(--dark-2);
}

/* BG */
.scc-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#scc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.scc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.scc-orb-1 {
  width: 350px; height: 350px;
  top: -80px; left: -80px;
  background: radial-gradient(circle, rgba(0,212,255,0.1), transparent 70%);
  animation: hudOrbFloat1 14s ease-in-out infinite;
}

.scc-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(184,71,245,0.09), transparent 70%);
  animation: hudOrbFloat2 17s ease-in-out infinite;
}

.scc-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── WINDOW ── */
.scc-window {
  border-radius: 20px;
  border: 1px solid rgba(0,212,255,0.1);
  background: linear-gradient(160deg,
    rgba(2,8,16,0.98),
    rgba(0,4,12,0.99)
  );
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.04),
    0 0 60px rgba(0,212,255,0.06),
    0 0 120px rgba(184,71,245,0.04),
    0 40px 80px rgba(0,0,0,0.6);
}

/* shimmer top border */
.scc-window::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,212,255,0.7),
    rgba(184,71,245,0.5),
    transparent
  );
  animation: hudShimmer 5s linear infinite;
  z-index: 10;
}

/* ── TITLEBAR ── */
.scc-titlebar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(90deg,
    rgba(0,212,255,0.06),
    rgba(184,71,245,0.04),
    rgba(0,212,255,0.03)
  );
  border-bottom: 1px solid rgba(0,212,255,0.07);
  position: relative;
  overflow: hidden;
}

.scc-titlebar::after {
  content: '';
  position: absolute;
  bottom: 0; left: -100%;
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,212,255,0.4),
    transparent
  );
  animation: hudShimmer 3s linear infinite 1s;
}

.scc-titlebar-dots {
  display: flex;
  gap: 0.42rem;
}

.scc-titlebar-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: block;
  cursor: pointer;
  transition: transform 0.2s;
}

.scc-titlebar-dots span:hover { transform: scale(1.2); }

.scc-titlebar-text {
  flex: 1;
  font-size: 0.62rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.scc-titlebar-path { color: rgba(255,255,255,0.25); }
.scc-titlebar-sep  { color: rgba(255,255,255,0.1); }

.scc-titlebar-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.58rem;
  color: #22c55e;
  letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.scc-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: blink 1.5s infinite;
}

/* ── BODY ── */
.scc-body {
  padding: 1.8rem;
}

/* ── OPERATOR PROFILE ── */
.scc-operator {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: 14px;
  background:
    linear-gradient(135deg,
      rgba(0,212,255,0.04),
      rgba(184,71,245,0.03)
    );
  border: 1px solid rgba(0,212,255,0.08);
  margin-bottom: 1.4rem;
  position: relative;
  overflow: hidden;
}

/* corner accent */
.scc-operator::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, #00d4ff, rgba(184,71,245,0.5));
  border-radius: 3px 0 0 3px;
}

.scc-operator-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.scc-operator-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,212,255,0.25);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
}

.scc-operator-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,212,255,0.3);
  animation: hudRingRotate 6s linear infinite;
  background: conic-gradient(
    rgba(0,212,255,0.2),
    transparent 60%,
    rgba(184,71,245,0.15),
    transparent
  );
}

.scc-operator-ping {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.1);
  animation: sccPing 2.5s ease-out infinite;
}

@keyframes sccPing {
  0%   { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.2);  opacity: 0; }
}

.scc-operator-info { flex: 1; }

.scc-operator-name {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #00d4ff, #b847f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.scc-operator-role {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.scc-operator-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.scc-meta-chip {
  font-size: 0.6rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.1);
  color: rgba(255,255,255,0.3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.scc-operator-id {
  text-align: right;
  flex-shrink: 0;
}

.scc-id-label {
  font-size: 0.5rem;
  color: rgba(0,212,255,0.35);
  letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

.scc-id-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
}

/* ── DIVIDER ── */
.scc-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.scc-divider::before,
.scc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,212,255,0.2),
    transparent
  );
}

.scc-divider-label {
  font-size: 0.58rem;
  color: rgba(0,212,255,0.4);
  letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* ── NODES ── */
.scc-nodes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── SINGLE NODE ── */
.scc-node {
  position: relative;
  display: grid;
  grid-template-columns: 200px 100px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.015);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}

.scc-node:hover {
  border-color: rgba(var(--node-color, 0,212,255), 0.3);
  background: rgba(255,255,255,0.03);
  transform: translateX(6px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 8px 30px rgba(0,0,0,0.3),
    -4px 0 20px var(--node-glow, rgba(0,212,255,0.1));
}

/* animated BG glow on hover */
.scc-node-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 0% 50%,
    var(--node-glow, rgba(0,212,255,0.08)),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.scc-node:hover .scc-node-bg { opacity: 1; }

/* shimmer sweep */
.scc-node-shimmer {
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.04),
    transparent
  );
  left: -60px;
  pointer-events: none;
  transition: none;
}

.scc-node:hover .scc-node-shimmer {
  animation: sccNodeShimmer 0.6s ease forwards;
}

@keyframes sccNodeShimmer {
  from { left: -60px; }
  to   { left: 110%; }
}

/* left color bar */
.scc-node-left-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--node-color, #00d4ff),
    transparent
  );
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.scc-node:hover .scc-node-left-bar { opacity: 1; }

/* corner deco */
.scc-node-corner {
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--node-color, #00d4ff);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s;
}

.scc-node:hover .scc-node-corner { opacity: 0.5; }

.nc-tr { top: 6px;  right: 6px; border-width: 1.5px 1.5px 0 0; }
.nc-bl { bottom: 6px; left: 6px; border-width: 0 0 1.5px 1.5px; }

/* platform area */
.scc-node-platform {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scc-node-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.scc-node:hover .scc-node-icon {
  border-color: rgba(var(--node-color, 255,255,255), 0.25);
  box-shadow: 0 0 12px var(--node-glow, rgba(0,212,255,0.1));
}

.scc-node-icon img {
  width: 26px; height: 26px;
  object-fit: contain;
}

.scc-node-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.1rem;
  transition: color 0.2s;
}

.scc-node:hover .scc-node-name {
  color: #fff;
}

.scc-node-handle {
  font-size: 0.62rem;
  color: rgba(0,212,255,0.4);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

/* signal bars */
.scc-signal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.scc-signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.scc-bar {
  width: 5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s;
}

.scc-bar:nth-child(1) { height: 6px; }
.scc-bar:nth-child(2) { height: 9px; }
.scc-bar:nth-child(3) { height: 13px; }
.scc-bar:nth-child(4) { height: 17px; }
.scc-bar:nth-child(5) { height: 22px; }

.scc-bar.active {
  background: var(--node-color, #00d4ff);
  box-shadow: 0 0 4px var(--node-color, #00d4ff);
}

.scc-signal-label {
  font-size: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1px;
}

/* status area */
.scc-node-status { flex: 1; }

.scc-node-ping {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.3rem;
}

.scc-ping-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 5px currentColor;
  animation: blink 2s infinite;
  flex-shrink: 0;
}

.scc-node-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
  max-width: 260px;
}

/* connect button */
.scc-connect-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.02);
  transition: all 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}

.scc-node:hover .scc-connect-btn {
  border-color: var(--node-color, #00d4ff);
  color: var(--node-color, #00d4ff);
  background: var(--node-glow, rgba(0,212,255,0.06));
  box-shadow: 0 0 12px var(--node-glow, rgba(0,212,255,0.1));
}

.scc-connect-arrow {
  transition: transform 0.25s;
}

.scc-node:hover .scc-connect-arrow {
  transform: translateX(3px);
}

/* ── FOOTER BAR ── */
.scc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.scc-footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.58rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(34,197,94,0.5);
  letter-spacing: 1.5px;
}

.scc-footer-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: blink 2s infinite;
}

.scc-footer-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.12);
  letter-spacing: 1px;
}

.scc-footer-sep { opacity: 0.3; }

/* ── SCANLINES ── */
.scc-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,212,255,0.006) 3px,
    rgba(0,212,255,0.006) 4px
  );
  border-radius: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .scc-node {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.6rem;
  }

  .scc-node-platform { grid-column: 1; }
  .scc-signal-wrap   { grid-column: 2; justify-self: end; }
  .scc-node-status   { grid-column: 1 / -1; }
  .scc-connect-btn   { grid-column: 1 / -1; justify-content: center; }

  .scc-operator {
    flex-wrap: wrap;
  }

  .scc-operator-id {
    width: 100%;
    text-align: left;
    display: flex;
    gap: 1.5rem;
    flex-direction: row;
  }

  .scc-footer-right { display: none; }
}

@media (max-width: 480px) {
  .scc-body { padding: 1rem; }
  .scc-operator-meta { display: none; }
}