/* Shared, brand-agnostic auth modal styles (Get key / Log in / Sign up).
   Self-contained hardcoded colors — used identically across all 4 brand
   sections, since the account system itself isn't brand-specific content. */
.brand-lockup-link { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 10px; }
.header-right .btn-text-link {
  font-size: 14px; font-weight: 600; color: #A6B0BF; background: none; border: none; cursor: pointer; font-family: inherit;
}
.header-right .btn-text-link:hover { color: #F4F6FA; }
.header-right button.btn { border: none; cursor: pointer; font-family: inherit; }

.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(4,8,13,.72); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  width: 100%; max-width: 380px; background: #161C26;
  border: 1px solid rgba(89,200,255,.2); border-radius: 16px; padding: 28px;
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  font-family: "Manrope", "Segoe UI", sans-serif;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 8px;
  border: none; background: rgba(255,255,255,.05); color: #A6B0BF;
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: #F4F6FA; background: rgba(255,255,255,.1); }
.modal-box h2 { font-size: 19px; margin: 0 0 6px; color: #F4F6FA; font-weight: 800; }
.modal-box p.sub { color: #A6B0BF; font-size: 13.5px; margin: 0 0 18px; line-height: 1.5; }
.modal-box form { display: flex; flex-direction: column; gap: 10px; }
.modal-box input[type=email], .modal-box input[type=password] {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid #2A313C;
  background: rgba(255,255,255,.03); color: #F4F6FA; font-size: 14px; font-family: inherit;
}
.modal-box button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; border-radius: 8px; font-weight: 700; font-size: 14.5px;
  background: linear-gradient(135deg, #59C8FF, #32B8FF); color: #071018; border: none; cursor: pointer;
}
.modal-box .msg { font-size: 13px; margin-top: 4px; min-height: 16px; }
.modal-box .msg.error { color: #FF8B8B; }
.modal-box .msg.ok { color: #59C8FF; }
.modal-box .funnel-key-box {
  font-family: "JetBrains Mono", monospace; font-size: 13px; word-break: break-all;
  background: rgba(255,255,255,.04); border: 1px solid #2A313C; border-radius: 6px; padding: 12px;
  margin-top: 10px; color: #A6B0BF;
}
.modal-box .modal-switch { font-size: 13px; color: #A6B0BF; margin-top: 16px; text-align: center; }
.modal-box .modal-switch button { background: none; border: none; color: #59C8FF; font-weight: 700; cursor: pointer; font-size: 13px; padding: 0; font-family: inherit; }

/* Get-key modal result: QR + copyable key, same visual language as My Account's keys table */
.modal-box .key-result { flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
.modal-box .key-qr {
  width: 140px; height: 140px; background: #fff; border-radius: 10px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.modal-box .key-qr svg { width: 100%; height: 100%; }
.modal-box .key-id-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.modal-box .key-id {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: #F4F6FA;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0;
  background: rgba(255,255,255,.04); border: 1px solid #2A313C; border-radius: 6px; padding: 9px 11px;
}
.modal-box .key-copy-btn {
  border: 1px solid #2A313C; background: transparent; color: #A6B0BF;
  font-size: 12px; font-weight: 700; padding: 9px 14px; border-radius: 6px; cursor: pointer;
  font-family: inherit; flex-shrink: 0; transition: border-color .15s, color .15s;
}
.modal-box .key-copy-btn:hover { border-color: #59C8FF; color: #59C8FF; }
.modal-box .key-copy-btn.copied { border-color: #A6D66D; color: #A6D66D; }
