/* ===============================================
   TRUST-BOX COMPONENT
   =============================================== */

.tb-d-wrap,
.tb-p-wrap {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.tb-p-wrap {
  display: none;
}

@media (max-width: 768px) {
  .tb-d-wrap {
    display: none;
  }

  .tb-p-wrap {
    display: flex;
  }
}

.tb-trust-box,
.tb-trust-box-p {
  font-family: 'JetBrains Mono', monospace;
}

.tb-trust-box {
  flex-shrink: 0;
  width: 600px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: rgba(205, 205, 205, 0.1);
  border: 2px solid #000000;
  box-sizing: border-box;
}

.tb-trust-box .tb-seed-cell,
.tb-trust-box .tb-start-btn {
  width: 120px;
  height: 24px;
}

.tb-seed-cell {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  background: #000000;
  transition: filter 0.7s ease;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  user-select: none;
}

.tb-seed-cell:hover {
  filter: blur(1px);
}

.tb-seed-cell:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  filter: none;
}

.tb-seed-label {
  font-weight: 100;
  font-size: 14px;
  color: #00ff92;
  white-space: nowrap;
}

.tb-start-btn {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #000000;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 100;
  font-size: 14px;
  color: #00ff92;
  text-shadow: 0px 1px 3px #00ff92;
  transition: filter 0.7s ease;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
  user-select: none;
}

.tb-start-btn:hover {
  filter: blur(1px);
}

.tb-start-btn:disabled {
  cursor: default;
}

.tb-start-btn:disabled:hover {
  filter: none;
}

.tb-start-btn.tb-start-btn-spent {
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

/* ===== TRUST BOX: PHONE (3-col seed row + full-width start row) ===== */

.tb-trust-box-p {
  width: 100%;
  max-width: 341px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 26px);
  gap: 10px;
  padding: 10px;
  background: rgba(205, 205, 205, 0.1);
  border: 2px solid #000000;
  box-sizing: border-box;
}

.tb-trust-box-p .tb-seed-cell {
  width: 100%;
}

.tb-trust-box-p .tb-start-btn {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
}

/* ===== TOAST (seed copy / edit pop-ups) ===== */

.tb-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(10px);
  background: #000000;
  border: 1px solid #00ff92;
  color: #00ff92;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  box-shadow: 0px 0px 10px 0px rgba(0, 255, 146, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
  white-space: nowrap;
}

.tb-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== C-SEED EDIT POP-UP ===== */

.tb-cseed-overlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2100;
  box-sizing: border-box;
}

.tb-cseed-overlay.is-open {
  display: flex;
}

.tb-cseed-box {
  width: 280px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 24px;
  background: #090909;
  border: 1px solid #00ff92;
  box-shadow: 0px 0px 20px 0px rgba(0, 255, 146, 0.5);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-cseed-title {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: #00ff92;
  text-align: center;
}

.tb-cseed-input {
  width: 100%;
  box-sizing: border-box;
  background: #000000;
  border: 1px solid rgba(0, 255, 146, 0.5);
  color: #cdcdcd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 8px 10px;
  text-align: center;
  outline: none;
}

.tb-cseed-input:focus {
  border-color: #00ff92;
}

.tb-cseed-hint {
  margin: 0;
  font-weight: 300;
  font-size: 11px;
  color: rgba(205, 205, 205, 0.6);
  text-align: center;
}

.tb-cseed-actions {
  display: flex;
  gap: 10px;
}

.tb-cseed-confirm,
.tb-cseed-cancel {
  flex: 1 1 0;
  box-sizing: border-box;
  border: 2px solid #000000;
  padding: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.tb-cseed-confirm {
  background: #00ff92;
  color: #090909;
}

.tb-cseed-cancel {
  background: #cdcdcd;
  color: #090909;
}

.tb-cseed-confirm:hover,
.tb-cseed-cancel:hover {
  filter: blur(1px);
  transition: all 0.7s ease;
}
