/* ========================================
   PORTAL TABS
   ======================================== */
.ptabs {
  display: flex; gap: 4px; margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.04); border-radius: 100px; padding: 4px;
  border: 1px solid var(--border-dark); overflow-x: auto;
  justify-content: center; max-width: 700px; margin-left: auto; margin-right: auto;
}
.ptab {
  padding: 12px 28px; border-radius: 100px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.03em; cursor: pointer; white-space: nowrap;
  transition: all .25s; color: var(--text-on-dark-muted); background: transparent;
}
.ptab.active { background: var(--mint); color: var(--dark); }
.ptab:not(.active):hover { background: rgba(255, 255, 255, 0.06); }
.ppanel { display: none; animation: fadeUp .4s ease; }
.ppanel.active { display: block; }
.pblock {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-dark);
  border-radius: 16px; padding: 28px 32px; margin-bottom: 16px;
}
.pbt { font-family: 'Newsreader', serif; font-size: 20px; font-weight: 500; color: white; margin-bottom: 6px; }
.pbs { font-size: 13px; color: var(--text-on-dark-muted); margin-bottom: 16px; }
.fl { list-style: none; }
.fl li {
  font-size: 13px; color: var(--text-on-dark-muted); line-height: 1.55;
  padding: 6px 0 6px 22px; position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.fl li::before { content: '→'; position: absolute; left: 0; color: var(--mint); font-weight: 700; font-size: 12px; }
.fl li:last-child { border-bottom: none; }

/* ========================================
   PROTOTYPE UI ELEMENTS
   ======================================== */
.proto-field-group { margin-bottom: 20px; }
.proto-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4); margin-bottom: 8px;
}
.proto-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.proto-chip {
  padding: 5px 14px; border-radius: 100px; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all .2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03); color: rgba(255, 255, 255, 0.5);
}
.proto-chip:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.8); }
.proto-chip.sel { background: rgba(157, 212, 207, 0.15); border-color: rgba(157, 212, 207, 0.3); color: var(--mint); }
.proto-chip.sel-lav { background: rgba(167, 160, 210, 0.15); border-color: rgba(167, 160, 210, 0.3); color: var(--lavender); }
.proto-chip.sel-gold { background: rgba(212, 168, 67, 0.15); border-color: rgba(212, 168, 67, 0.3); color: var(--gold-accent); }
.proto-input {
  width: 100%; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
  padding: 10px 14px; font-size: 12px; color: rgba(255, 255, 255, 0.3); margin-bottom: 8px;
}
.proto-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.proto-toggle {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  font-size: 12px; color: rgba(255, 255, 255, 0.5); cursor: pointer;
}
.proto-toggle-dot {
  width: 32px; height: 18px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.1); position: relative; transition: background .2s;
}
.proto-toggle-dot::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3); position: absolute; top: 2px; left: 2px; transition: all .2s;
}
.proto-toggle.on .proto-toggle-dot { background: rgba(157, 212, 207, 0.3); }
.proto-toggle.on .proto-toggle-dot::after { left: 16px; background: var(--mint); }
.proto-dropdown {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px; overflow: hidden; margin-bottom: 8px;
}
.proto-dropdown-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; cursor: pointer; font-size: 12px;
  color: rgba(255, 255, 255, 0.6); transition: background .2s;
}
.proto-dropdown-header:hover { background: rgba(255, 255, 255, 0.03); }
.proto-dropdown-header svg { transition: transform .2s; opacity: .4; }
.proto-dropdown.open .proto-dropdown-header svg { transform: rotate(180deg); }
.proto-dropdown-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.proto-dropdown.open .proto-dropdown-body { max-height: 400px; }
.proto-dropdown-item {
  padding: 8px 14px 8px 28px; font-size: 11px; color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.04); position: relative;
}
.proto-dropdown-item::before { content: '·'; position: absolute; left: 14px; color: var(--mint); }

/* Mini Profile */
.proto-mini-profile {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; padding: 24px; margin-top: 16px;
}
.proto-mini-profile-header {
  display: flex; gap: 14px; align-items: center; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.proto-avatar-lg {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #19306A, #2A1B5E);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Newsreader', serif; font-size: 20px; color: white; flex-shrink: 0;
}
.proto-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.proto-stat { text-align: center; padding: 10px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; }
.proto-stat-val { font-family: 'Newsreader', serif; font-size: 20px; font-weight: 300; }
.proto-stat-lbl { font-size: 9px; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 0.08em; }
