/* dashboard — layout and panels */
:root {
  --sidebar-w: 190px;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-inner {
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 0;
}
nav {
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
nav::-webkit-scrollbar {
  display: none;
}
.nav-section {
  margin-bottom: 22px;
}
.nav-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 22px;
  margin-bottom: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 20px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--mid);
  cursor: pointer;
  border-left: 2px solid transparent;
  user-select: none;
  white-space: nowrap;
  transition:
    color 0.13s,
    border-left-color 0.13s,
    background 0.13s;
}
.nav-item:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-item.active {
  color: var(--bright);
  border-left-color: var(--accent);
  background: rgba(99, 102, 241, 0.04);
}
.nav-item svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
  opacity: 0.6;
}
.nav-item.active svg {
  opacity: 1;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px 20px 0;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.user-row:hover {
  opacity: 0.75;
}
.sidebar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border-mid);
  border: 1px solid var(--border-mid);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--sub);
}
.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.user-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main layout */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  scroll-behavior: smooth;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
  animation: panelIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Section header */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Post list */
.post-list {
  border: 1px solid var(--border);
  margin-bottom: 28px;
  border-radius: var(--r);
  overflow: hidden;
}
.post-item {
  border-bottom: 1px solid var(--border);
}
.post-item:last-child {
  border-bottom: none;
}
.post-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.13s;
}
.post-header:hover,
.post-item.open .post-header {
  background: var(--surface);
}
.post-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: var(--mid);
  fill: none;
  stroke-width: 1.5;
  margin-top: 3px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-item.open .post-chevron {
  transform: rotate(90deg);
}
.post-header-content {
  flex: 1;
  min-width: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.post-tag {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--border-mid);
  color: var(--sub);
  border-radius: var(--r);
}
.post-tag.tag-new {
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.25);
}
.post-tag.tag-fix {
  color: #6a6aaa;
  border-color: rgba(99, 102, 241, 0.15);
}
.post-tag.tag-notice {
  color: var(--sub);
}
.post-date {
  font-size: 0.6rem;
  color: var(--dim);
}
.post-title {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--bright);
  margin-bottom: 3px;
}
.post-excerpt {
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--mid);
  font-style: italic;
  line-height: 1.5;
}
.post-body {
  display: none;
  padding: 0 20px 20px 44px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.post-item.open .post-body {
  display: block;
  animation: drawerOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-body-text {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.8;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-body-text p {
  margin: 0;
}
.post-body-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  transition: border-color 0.18s;
}
.post-body-link:hover {
  border-color: var(--accent);
}
.post-body-footer {
  font-size: 0.6rem;
  color: var(--dim);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Changelog diff */
.cl-list {
  gap: 0 !important;
  padding-top: 14px;
}
.cl-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--mid);
}
.cl-line:first-child {
  border-top: 1px solid var(--border);
}
.cl-prefix {
  font-size: 0.65rem;
  font-weight: 600;
  font-family: monospace;
  flex-shrink: 0;
  width: 10px;
  text-align: center;
  user-select: none;
}
.cl-added .cl-prefix {
  color: #4a8a5a;
}
.cl-changed .cl-prefix {
  color: #7a6030;
}
.cl-removed .cl-prefix {
  color: #a04040;
}
.cl-added {
  background: rgba(74, 138, 90, 0.03);
}
.cl-removed {
  background: rgba(160, 64, 64, 0.03);
}

/* Changelog subtabs */
.subtabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.subtab {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.13s;
}
.subtab:hover {
  color: var(--text);
}
.subtab.active {
  color: var(--bright);
  border-bottom-color: var(--accent);
}
.subtab-content {
  display: none;
}
.subtab-content.active {
  display: block;
  animation: panelIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Projects */
.project-list {
  border: 1px solid var(--border);
  margin-bottom: 28px;
  border-radius: var(--r);
  overflow: hidden;
}
.project-item {
  border-bottom: 1px solid var(--border);
}
.project-item:last-child {
  border-bottom: none;
}
.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.13s;
  user-select: none;
}
.project-row:hover,
.project-item.open .project-row {
  background: var(--surface);
}
.project-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: var(--mid);
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-item.open .project-chevron {
  transform: rotate(90deg);
}
.project-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.project-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.project-name {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--bright);
}
.project-version {
  font-size: 0.58rem;
  color: var(--dim);
  font-family: "JetBrains Mono", monospace;
}
.project-tagline {
  font-size: 0.66rem;
  font-weight: 300;
  color: var(--mid);
  font-style: italic;
}
.project-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.project-status {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
  flex-shrink: 0;
  border-radius: var(--r);
}
.project-drawer {
  display: none;
  padding: 0 20px 20px 44px;
  border-top: 1px solid var(--border);
}
.project-item.open .project-drawer {
  display: block;
  animation: drawerOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Status line */
.drawer-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.67rem;
  color: var(--mid);
  padding: 12px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-active {
  background: #5bba8f;
  box-shadow: 0 0 5px rgba(91, 186, 143, 0.5);
}
.dot-wip {
  background: #c4962a;
}
.dot-planned {
  background: var(--dim);
}

.drawer-desc {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--mid);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 16px;
  padding-top: 16px;
}
.drawer-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.drawer-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-block-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.drawer-authors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.drawer-author {
  font-size: 0.66rem;
  color: var(--text);
  padding: 2px 8px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
}
.drawer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.drawer-link {
  font-size: 0.64rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  transition: border-color 0.2s;
}
.drawer-link:hover {
  border-color: var(--accent);
}
.drawer-link-na {
  font-size: 0.64rem;
  color: var(--dim);
  font-style: italic;
}
.drawer-link-gated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
  color: var(--dim);
  font-style: italic;
}
.gate-icon {
  width: 9px;
  height: 10px;
  flex-shrink: 0;
  stroke: var(--dim);
  fill: none;
  stroke-width: 1.5;
}
.drawer-link-upgrade {
  font-size: 0.62rem;
  color: var(--accent);
  cursor: pointer;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  transition: border-color 0.18s;
}
.drawer-link-upgrade:hover {
  border-color: var(--accent);
}
.goto-changelog-btn {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--border-mid);
  padding: 3px 9px;
  cursor: pointer;
  background: none;
  font-family: "Karla", sans-serif;
  border-radius: var(--r);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition:
    color 0.18s,
    border-color 0.18s;
}
.goto-changelog-btn:hover {
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.3);
}
.goto-changelog-btn svg {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.archived-empty {
  padding: 20px 22px;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--dim);
  font-style: italic;
}

/* Polls */
.poll-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 16px;
  overflow: hidden;
}
.poll-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.poll-question {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--bright);
  line-height: 1.4;
}
.poll-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.poll-closes {
  font-size: 0.6rem;
  color: var(--dim);
  white-space: nowrap;
}
.poll-status-closed {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub);
}
.poll-options {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.poll-option-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: none;
  border: 1px solid var(--border-mid);
  color: var(--mid);
  font-family: "Karla", sans-serif;
  font-size: 0.72rem;
  border-radius: var(--r);
  cursor: pointer;
  transition:
    color 0.13s,
    border-color 0.13s,
    background 0.13s;
}
.poll-option-btn:hover {
  color: var(--bright);
  border-color: var(--mid);
  background: var(--surface);
}
.poll-result {
  margin-bottom: 4px;
}
.poll-result.poll-voted .poll-result-top {
  color: var(--bright);
}
.poll-result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--mid);
  margin-bottom: 5px;
}
.poll-opt-label {
  flex: 1;
}
.poll-pct {
  font-size: 0.65rem;
  color: var(--dim);
  font-family: "JetBrains Mono", monospace;
}
.poll-bar-track {
  height: 4px;
  background: var(--border-mid);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 3px;
}
.poll-bar-fill {
  height: 100%;
  background: var(--mid);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.poll-bar-voted {
  background: var(--accent);
}
.poll-votes-count {
  font-size: 0.57rem;
  color: var(--dim);
}
.poll-total {
  padding: 10px 20px;
  font-size: 0.62rem;
  color: var(--dim);
  border-top: 1px solid var(--border);
}

/* Members */
.members-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.member-search-wrap {
  position: relative;
  flex: 1;
}
.member-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  stroke: var(--dim);
  fill: none;
  stroke-width: 1.5;
  pointer-events: none;
}
.member-search {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--bright);
  font-family: "Karla", sans-serif;
  font-size: 0.72rem;
  padding: 9px 12px 9px 34px;
  outline: none;
  border-radius: var(--r);
  transition: border-color 0.13s;
}
.member-search:focus {
  border-color: var(--border-mid);
}
.member-search::placeholder {
  color: var(--dim);
}
.member-list {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.member-item {
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.member-item:last-child {
  border-bottom: none;
}

/* Banner: right 38%, full item height, cover-fit, left-fade */
.member-banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.member-banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg) 0%,
    rgba(8, 8, 8, 0.85) 35%,
    rgba(8, 8, 8, 0.4) 65%,
    transparent 100%
  );
}

.member-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.13s;
  user-select: none;
  position: relative;
  z-index: 1;
}
.member-row:hover {
  background: rgba(13, 13, 13, 0.6);
}
.member-item.expanded .member-row {
  background: transparent;
}

.member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border-mid);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--sub);
  font-weight: 500;
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.member-name {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.member-joined {
  font-size: 0.6rem;
  color: var(--dim);
}
.member-row-caret {
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-row-caret svg {
  width: 12px;
  height: 12px;
  stroke: var(--dim);
  fill: none;
  stroke-width: 1.6;
  transition: transform 0.2s;
}
.member-item.expanded .member-row-caret svg {
  transform: rotate(180deg);
}

/* Member inline detail — sits on top of same banner */
.member-detail {
  animation: drawerOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}
.member-detail-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px 16px 16px;
}
.member-detail-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--border-mid);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--sub);
  font-weight: 500;
  overflow: hidden;
}
.member-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-detail-body {
  flex: 1;
  min-width: 0;
}
.member-detail-name {
  font-size: 0.78rem;
  color: var(--bright);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.member-detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.62rem;
  color: var(--dim);
  margin-bottom: 8px;
}
.member-detail-about {
  font-size: 0.7rem;
  color: var(--mid);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 8px;
}
.member-detail-socials {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.muted-text {
  color: var(--dim);
}

/* Purchase */
.purchase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  border-radius: var(--r);
  overflow: hidden;
}
.purchase-card {
  background: var(--bg);
  padding: 24px 22px;
}
.purchase-plan-name {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
.purchase-price {
  font-size: 2rem;
  font-weight: 300;
  color: var(--bright);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.purchase-price span {
  font-size: 0.7rem;
  color: var(--mid);
  font-weight: 400;
  letter-spacing: 0;
}
.purchase-desc {
  font-size: 0.68rem;
  color: var(--mid);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.5;
}
.purchase-features {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.purchase-features li {
  font-size: 0.67rem;
  color: var(--mid);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.purchase-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--dim);
}
.purchase-btn {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid;
  cursor: pointer;
  font-family: "Karla", sans-serif;
  background: none;
  border-radius: var(--r);
  transition:
    color 0.18s,
    border-color 0.18s;
}
.purchase-btn-core {
  color: var(--text);
  border-color: var(--border-mid);
}
.purchase-btn-core:hover {
  color: var(--bright);
  border-color: var(--mid);
}
.purchase-btn-plus {
  color: #8587f5;
  border-color: rgba(99, 102, 241, 0.3);
}
.purchase-btn-plus:hover {
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.6);
}

/* Profile */
/* Profile edit panel */
.profile-edit-wrap {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.profile-preview-banner {
  height: 72px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0e0e1a 0%, #161630 50%, #0a0a14 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.profile-preview-banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.profile-preview-banner.has-banner .profile-preview-banner-overlay {
  background: linear-gradient(to bottom, transparent 30%, rgba(8, 8, 8, 0.45) 100%);
}
.edit-banner-btn {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 2;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  cursor: pointer;
  font-family: "Karla", sans-serif;
  border-radius: var(--r);
  transition: color 0.13s;
}
.edit-banner-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.profile-preview-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.profile-main-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--border-mid);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
}
.profile-main-avatar-wrap:hover {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}
.profile-main-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.profile-avatar-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--sub);
  font-weight: 500;
}
.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.13s;
}
.profile-main-avatar-wrap:hover .profile-avatar-overlay {
  opacity: 1;
}
.profile-avatar-overlay svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
}

.profile-preview-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-display-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bright);
}
.profile-namestrip-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Edit fields — sits inside the same box, separated by border */
.profile-edit-fields {
  padding: 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.profile-edit-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.profile-edit-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.profile-edit-row .profile-edit-section {
  margin-top: 0;
}

.profile-card-label {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.profile-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  color: var(--bright);
  font-family: "Karla", sans-serif;
  font-size: 0.72rem;
  padding: 7px 10px;
  outline: none;
  border-radius: var(--r);
  transition: border-color 0.13s;
}
.profile-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}
.profile-input::placeholder {
  color: var(--dim);
}
.profile-about-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  color: var(--bright);
  font-family: "Karla", sans-serif;
  font-size: 0.72rem;
  padding: 8px 10px;
  outline: none;
  resize: vertical;
  min-height: 52px;
  font-style: italic;
  border-radius: var(--r);
  transition: border-color 0.13s;
}
.profile-about-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}
.profile-about-input::placeholder {
  color: var(--dim);
  font-style: italic;
}
.profile-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

/* Settings */
.settings-block {
  border: 1px solid var(--border);
  margin-bottom: 26px;
  border-radius: var(--r);
  overflow: visible;
}
.settings-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.settings-row:last-child {
  border-bottom: none;
}
.settings-label {
  font-size: 0.65rem;
  color: var(--mid);
}
.settings-value {
  font-size: 0.7rem;
  color: var(--text);
}
.settings-value.muted {
  color: var(--dim);
  font-style: italic;
}
.settings-action {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  background: none;
  border: none;
  font-family: "Karla", sans-serif;
  padding: 0;
  transition: color 0.13s;
}
.settings-action:hover {
  color: var(--accent);
}
.dots-display {
  font-size: 0.38rem;
  letter-spacing: 0.15em;
  color: var(--sub);
  vertical-align: middle;
}
.forgot-link {
  font-size: 0.6rem;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s;
  margin-left: auto;
}
.forgot-link:hover {
  color: var(--accent);
}
.inline-form {
  display: none;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.inline-form.visible {
  display: block;
  animation: slideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.inline-form input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  color: var(--bright);
  font-family: "Karla", sans-serif;
  font-size: 0.72rem;
  padding: 8px 10px;
  outline: none;
  margin-bottom: 8px;
  border-radius: var(--r);
  transition: border-color 0.13s;
}
.inline-form input:focus {
  border-color: var(--accent);
}
.inline-form input::placeholder {
  color: var(--dim);
}
.inline-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.form-btn {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  cursor: pointer;
  border: 1px solid;
  background: none;
  font-family: "Karla", sans-serif;
  border-radius: var(--r);
  transition:
    color 0.13s,
    border-color 0.13s;
}
.form-btn-primary {
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.3);
}
.form-btn-primary:hover {
  border-color: var(--accent);
}
.form-btn-cancel {
  color: var(--dim);
  border-color: var(--border-mid);
}
.form-btn-cancel:hover {
  color: var(--text);
}
.form-btn-danger {
  color: #a04040;
  border-color: rgba(160, 64, 64, 0.3);
}
.form-btn-danger:hover {
  border-color: #a04040;
}
.security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}
.security-item:last-child {
  border-bottom: none;
}
.security-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.security-item-title {
  font-size: 0.72rem;
  color: var(--text);
}
.security-item-desc {
  font-size: 0.62rem;
  color: var(--dim);
  font-style: italic;
}
.sec-on {
  font-size: 0.6rem;
  color: #4a8a5a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.sec-off {
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}
.connection-row:last-child {
  border-bottom: none;
}
.connection-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.connection-icon {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.connection-icon svg {
  width: 13px;
  height: 13px;
}
.connection-name {
  font-size: 0.72rem;
  color: var(--text);
}
.connection-status {
  font-size: 0.62rem;
  color: var(--dim);
  font-style: italic;
}
.connection-btn {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--border-mid);
  padding: 4px 10px;
  cursor: pointer;
  background: none;
  font-family: "Karla", sans-serif;
  border-radius: var(--r);
  transition:
    color 0.13s,
    border-color 0.13s;
}
.connection-btn:hover {
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.3);
}
.connection-btn.connected {
  color: #5557a0;
  border-color: rgba(99, 102, 241, 0.15);
}
.connection-btn.connected:hover {
  color: #a04040;
  border-color: rgba(160, 64, 64, 0.3);
}

/* Dropdowns */
.dropdown-wrap {
  position: relative;
}
.dropdown-trigger {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  background: none;
  border: none;
  font-family: "Karla", sans-serif;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.13s;
}
.dropdown-trigger:hover {
  color: var(--accent);
}
.dropdown-trigger svg {
  width: 8px;
  height: 8px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s;
}
.dropdown-wrap.open .dropdown-trigger svg {
  transform: rotate(180deg);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #111111 !important;
  border: 1px solid var(--border-mid);
  min-width: 190px;
  z-index: 9999;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9);
}
.dropdown-wrap.open .dropdown-menu {
  display: block;
  animation: dropdownIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.dd-item {
  padding: 10px 14px;
  font-size: 0.7rem;
  color: var(--mid);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  background: #111111 !important;
  transition:
    background-color 0.13s,
    color 0.13s;
}
.dd-item:last-child {
  border-bottom: none;
}
.dd-item:hover {
  background: #181818 !important;
  color: var(--text);
}
.dd-item.danger:hover {
  color: #a04040;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toggle {
  width: 26px;
  height: 14px;
  border-radius: 7px;
  background: var(--border-mid);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--dim);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.toggle.on {
  background: rgba(99, 102, 241, 0.4);
  border-color: rgba(99, 102, 241, 0.5);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sub);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s;
}
.toggle.on::after {
  transform: translateX(12px);
  background: var(--accent);
}

/* Modals */
.modal {
  background: #0d0d0d;
  border: 1px solid var(--border-mid);
  padding: 26px;
  width: 360px;
  border-radius: var(--r);
}
.modal.wide {
  width: 440px;
}
.modal.profile-modal {
  padding: 0;
  width: 500px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
}
.modal-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bright);
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 0.68rem;
  color: var(--mid);
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.5;
}
.modal input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  color: var(--bright);
  font-family: "Karla", sans-serif;
  font-size: 0.72rem;
  padding: 9px 11px;
  outline: none;
  margin-bottom: 10px;
  border-radius: var(--r);
  transition: border-color 0.13s;
}
.modal input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}
.modal input::placeholder {
  color: var(--dim);
}
.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.modal-tabs {
  display: flex;
  border: 1px solid var(--border-mid);
  margin-bottom: 18px;
  border-radius: var(--r);
  overflow: hidden;
}
.modal-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  border-right: 1px solid var(--border-mid);
  transition:
    color 0.13s,
    background 0.13s;
}
.modal-tab:last-child {
  border-right: none;
}
.modal-tab.active {
  color: var(--bright);
  background: var(--surface);
}
.modal-tab-content {
  display: none;
}
.modal-tab-content.active {
  display: block;
}
.crypto-info {
  font-size: 0.68rem;
  color: var(--mid);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 12px;
}
.crypto-addr {
  font-size: 0.62rem;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  padding: 8px 10px;
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 10px;
  border-radius: var(--r);
}
.plan-option {
  border: 1px solid var(--border-mid);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: var(--r);
  transition: border-color 0.13s;
}
.plan-option:hover {
  border-color: rgba(99, 102, 241, 0.3);
}
.plan-option.selected {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.04);
}
.plan-option-name {
  font-size: 0.72rem;
  color: var(--bright);
  font-weight: 500;
  margin-bottom: 2px;
}
.plan-option-price {
  font-size: 0.65rem;
  color: var(--mid);
}
.plan-change-notice {
  font-size: 0.65rem;
  color: #8a6030;
  font-style: italic;
  padding: 10px 12px;
  border: 1px solid rgba(138, 96, 48, 0.2);
  background: rgba(138, 96, 48, 0.04);
  margin-top: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
  display: none;
  border-radius: var(--r);
}
.plan-change-notice.show {
  display: block;
}
.cancel-notice {
  font-size: 0.68rem;
  color: var(--mid);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(160, 64, 64, 0.2);
  background: rgba(160, 64, 64, 0.04);
  border-radius: var(--r);
}
.confirm-notice {
  font-size: 0.7rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}
.log-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.log-item:last-child {
  border-bottom: none;
}
.log-event {
  font-size: 0.7rem;
  color: var(--text);
}
.log-meta {
  font-size: 0.62rem;
  color: var(--dim);
}
.log-time {
  font-size: 0.62rem;
  color: var(--dim);
  text-align: right;
}
.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.session-item:last-child {
  border-bottom: none;
}
.session-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.session-device {
  font-size: 0.7rem;
  color: var(--text);
}
.session-meta {
  font-size: 0.62rem;
  color: var(--dim);
}
.session-current {
  font-size: 0.58rem;
  color: #4a8a5a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.tfa-qr {
  width: 110px;
  height: 110px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: var(--r);
}
.tfa-code {
  font-size: 0.62rem;
  color: var(--dim);
  font-family: "JetBrains Mono", monospace;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}

/* Profile view modal — redesigned */
.modal.profile-modal {
  padding: 0;
  width: 500px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  border-radius: var(--r);
}
.pmodal-header {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 110px;
  overflow: hidden;
  background: var(--surface);
}
.pmodal-header-left {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 20px 20px 18px;
  flex: 1;
  position: relative;
  z-index: 2;
}
.pmodal-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.06);
  background: var(--dim);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--sub);
  font-weight: 500;
}
.pmodal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.pmodal-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 2px;
}
.pmodal-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bright);
  line-height: 1;
}
.pmodal-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pmodal-joined-inline {
  font-size: 0.63rem;
  color: var(--dim);
  margin-top: 2px;
}
.pmodal-banner-side {
  width: 220px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.pmodal-banner-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0.75;
  position: relative;
  z-index: 0;
}
.pmodal-banner-side::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    var(--surface) 0%,
    rgba(13, 13, 13, 0.5) 40%,
    transparent 70%
  );
  pointer-events: none;
}
.pmodal-banner-side.has-banner img {
  display: block;
}
.pmodal-banner-side:not(.has-banner) {
  background: transparent;
}
.pmodal-body {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
}
.pmodal-about {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--mid);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 14px;
}
.pmodal-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pmodal-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  color: var(--mid);
}
.pmodal-meta-item svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.pmodal-socials {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pmodal-social-link {
  font-size: 0.6rem;
  color: var(--text);
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  transition:
    border-color 0.18s,
    color 0.18s;
}
.pmodal-social-link:hover {
  color: var(--bright);
  border-color: var(--mid);
}

/* Licensing */
.empty-state {
  font-size: 0.7rem;
  color: var(--dim);
  font-style: italic;
  padding: 32px 0;
}
.panel-empty {
  font-size: 0.68rem;
  color: var(--dim);
  font-style: italic;
  padding: 24px 0 20px 4px;
}
.licensing-form {
  max-width: 520px;
}

/* View profile button */
.view-profile-btn {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--border-mid);
  padding: 3px 9px;
  cursor: pointer;
  background: none;
  font-family: "Karla", sans-serif;
  border-radius: var(--r);
  transition:
    color 0.18s,
    border-color 0.18s;
}
.view-profile-btn:hover {
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Stagger animations */
.panel.active .post-item,
.panel.active .project-item,
.panel.active .member-item,
.panel.active .settings-block,
.panel.active .purchase-card,
.panel.active .poll-card {
  animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.panel.active .post-item:nth-child(1),
.panel.active .project-item:nth-child(1),
.panel.active .member-item:nth-child(1),
.panel.active .settings-block:nth-child(1),
.panel.active .purchase-card:nth-child(1),
.panel.active .poll-card:nth-child(1) {
  animation-delay: 0.04s;
}
.panel.active .post-item:nth-child(2),
.panel.active .project-item:nth-child(2),
.panel.active .member-item:nth-child(2),
.panel.active .settings-block:nth-child(2),
.panel.active .purchase-card:nth-child(2),
.panel.active .poll-card:nth-child(2) {
  animation-delay: 0.08s;
}
.panel.active .post-item:nth-child(3),
.panel.active .project-item:nth-child(3),
.panel.active .member-item:nth-child(3),
.panel.active .settings-block:nth-child(3),
.panel.active .poll-card:nth-child(3) {
  animation-delay: 0.12s;
}
.panel.active .post-item:nth-child(4),
.panel.active .member-item:nth-child(4) {
  animation-delay: 0.16s;
}
.panel.active .post-item:nth-child(5),
.panel.active .member-item:nth-child(5) {
  animation-delay: 0.2s;
}

.pmodal-close-btn {
  font-size: 0.63rem;
  color: var(--mid);
  background: none;
  border: 1px solid var(--border-mid);
  padding: 5px 12px;
  border-radius: var(--r);
  cursor: pointer;
  font-family: "Karla", sans-serif;
  transition:
    color 0.13s,
    border-color 0.13s;
}
.pmodal-close-btn:hover {
  color: var(--text);
  border-color: var(--mid);
}

/* Keys panel */
.keys-topbar {
  margin-bottom: 18px;
}
.key-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
}
.key-table thead th {
  text-align: left;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  padding: 0 0 8px 0;
  border-bottom: 1px solid var(--border);
}
.key-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.key-table tbody tr:last-child {
  border-bottom: none;
}
.key-table td {
  padding: 10px 0;
}
.key-table td:not(:last-child) {
  padding-right: 16px;
}
.key-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.13s;
}
.key-code:hover {
  opacity: 0.7;
}
.key-meta {
  color: var(--text);
}
.danger-action {
  color: #a04040 !important;
  border-color: rgba(160, 64, 64, 0.2) !important;
}
.danger-action:hover {
  border-color: rgba(160, 64, 64, 0.5) !important;
}

/* Issue key modal */
.modal-field-label {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}
.field-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  color: var(--bright);
  font-family: "Karla", sans-serif;
  font-size: 0.72rem;
  padding: 7px 28px 7px 10px;
  border-radius: var(--r);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23404040' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 9px;
  transition: border-color 0.13s;
}
.field-group select:focus {
  border-color: var(--accent);
}
.field-group select option {
  background: #0d0d0d;
}
.issued-key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  padding: 8px 12px;
  margin-top: 4px;
}
.issued-key-value {
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.05em;
}
