/* ============================================================================================
   INVESTOR COMPASS - DEVICE CLAIM & LINKING MODAL STYLES
   Module: WEB_PLATFORM/css/claim.css
   Style Guide: .agents/AGENTS.md §2 (B2B SaaS Aesthetic, Zero Emojis)
   ============================================================================================ */

/* Page View Layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.claim-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page, #f8fafc);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main, #0f172a);
}

.claim-container {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 20px 60px 20px;
  width: 100%;
  box-sizing: border-box;
}

.claim-card {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto;
}

.claim-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 16px;
  color: var(--primary, #0d9488);
}

.claim-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.claim-desc {
  font-size: 0.95rem;
  color: var(--text-muted, #64748b);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.code-input-wrapper {
  margin-bottom: 20px;
}

.code-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  background: #f8fafc;
  color: var(--text-main, #0f172a);
  box-sizing: border-box;
}

.code-input:focus {
  border-color: var(--primary, #0d9488);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.btn-claim {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: var(--primary, #0d9488);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-claim:hover:not(:disabled) {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-claim:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  margin-bottom: 22px;
  border: 1px solid var(--border-light, #e2e8f0);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.success-panel {
  display: none;
  text-align: center;
}

.success-badge {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.device-info-box {
  background: #f8fafc;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  font-size: 0.85rem;
  text-align: left;
}

.device-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.device-info-row:last-child {
  margin-bottom: 0;
}

/* In-Page Device Claim Modal Pop-up (Used in Profile page & global link flow) */
.modal-claim-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-claim-dialog {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  text-align: center;
  position: relative;
  animation: modalClaimSlideIn 0.2s ease-out;
  box-sizing: border-box;
}

@keyframes modalClaimSlideIn {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-claim-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.modal-claim-close:hover {
  color: var(--text-main, #0f172a);
  background: #f1f5f9;
}

.modal-claim-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-claim-title {
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}

.modal-claim-desc {
  margin: 0 0 22px 0;
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}
