/* Modals — BurnModal, PremiumModal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--line);
  max-width: 440px;
  width: 100%;
  padding: 40px 36px;
  position: relative;
}

.modal::before,
.modal::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold-dim);
  border-style: solid;
}

.modal::before {
  top: -1px; left: -1px;
  border-width: 1px 0 0 1px;
}

.modal::after {
  top: -1px; right: -1px;
  border-width: 1px 1px 0 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--fg-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--fg-mute);
}

.modal h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  margin: 0 0 8px;
}

.modal h2 em {
  color: var(--gold);
  font-style: italic;
}

.modal p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-mute);
  line-height: 1.6;
  margin: 0 0 12px;
}

.modal-file-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--fg);
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.modal-actions .ghost-btn,
.modal-actions .gold-btn {
  flex: 1;
  text-align: center;
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid var(--line);
}

.modal-actions .ghost-btn {
  background: transparent;
  color: var(--fg-mute);
}

.modal-actions .ghost-btn:hover {
  border-color: var(--fg-mute);
  color: var(--fg);
}

.burn-confirm {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--bg);
}

.burn-confirm:hover {
  opacity: 0.9;
}

/* Theme modal */

.theme-modal {
  max-width: 360px;
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.theme-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}

.theme-opt:hover {
  border-color: var(--line-2);
  background: var(--bg-3);
}

.theme-opt.active {
  border-color: var(--gold-dim);
  background: var(--bg-3);
}

.theme-opt-icon {
  color: var(--fg-dim);
  display: flex;
  flex-shrink: 0;
}

.theme-opt.active .theme-opt-icon {
  color: var(--gold);
}

.theme-opt-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg);
  flex: 1;
}

.theme-opt-desc {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--fg-dim);
}

/* Auth CTA benefits */

.cta-benefits {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.cta-benefits li {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-mute);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-benefits li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Premium modal specifics */

.premium-features {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.premium-features li {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-mute);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.premium-features li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.premium-price {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--gold);
  margin: 24px 0 8px;
}

.premium-price-note {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--fg-dim);
  margin-bottom: 24px;
}

/* Upload toast */

.upload-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 18px 24px;
  z-index: 150;
  min-width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.upload-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.upload-toast-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.upload-toast-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-toast-bar {
  width: 100%;
  height: 2px;
  background: var(--line);
  margin-bottom: 6px;
}

.upload-toast-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.3s;
}

.upload-toast-pct {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.5px;
}

.upload-toast-done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.upload-toast-passcode {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.upload-toast-passcode--copyable {
  cursor: pointer;
}

.upload-toast-passcode--copyable:hover {
  opacity: 0.75;
}

.upload-toast-vault-link {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--fg-dim);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.upload-toast-vault-link:hover {
  color: var(--gold);
}

.upload-toast-error {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--danger);
  margin-top: 10px;
  line-height: 1.5;
}

.upload-toast-link {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  cursor: pointer;
}

.upload-toast-link:hover {
  color: var(--fg-mute);
}

.upload-toast-close {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.upload-toast-close:hover {
  color: var(--fg-mute);
}
