/* ═══════════════════════════════════════════════════════════════
   Splurjj Ownership Claim System — Styles v1.0
   Covers:
     • .spl-claim-btn         — inline "Claim This Brand" button
     • .spl-claimed-badge     — post-verified "Verified Owner" badge
     • #splClaimModal         — full modal overlay
     • .scm-*                 — all modal internals
   ═══════════════════════════════════════════════════════════════ */

/* ── Inline Claim Button ──────────────────────────────────────── */
.spl-claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: #d4af37;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.spl-claim-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.6);
  color: #e8cc6a;
}
.spl-claim-btn:active {
  transform: scale(0.98);
}
.spl-claim-icon {
  font-size: 0.85rem;
  line-height: 1;
}

/* ── Verified Owner Badge (post-claim) ───────────────────────── */
.spl-claimed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.spl-claimed-check {
  font-size: 0.82rem;
}

/* ── Modal Overlay & Panel ───────────────────────────────────── */
#splClaimModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.scm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.scm-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 175, 55, 0.08);
  animation: scmSlideUp 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes scmSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scrollbar */
.scm-panel::-webkit-scrollbar { width: 4px; }
.scm-panel::-webkit-scrollbar-track { background: transparent; }
.scm-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

/* Close button */
.scm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.06);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,.5);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.scm-close:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── Header ──────────────────────────────────────────────────── */
.scm-header {
  margin-bottom: 24px;
}
.scm-entity-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 20px;
  color: #d4af37;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.scm-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.scm-subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}
.scm-subtitle strong { color: rgba(255,255,255,.8); }
.scm-footnote {
  margin-top: 16px;
  font-size: 0.7rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* Back button */
.scm-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 0.76rem;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 12px;
  transition: color 0.15s;
}
.scm-back:hover { color: rgba(255,255,255,.8); }

/* ── Method Selection Cards ──────────────────────────────────── */
.scm-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.scm-method-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
}
.scm-method-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(212,175,55,.25);
}

.scm-method-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.scm-method-body { flex: 1; }
.scm-method-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scm-method-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: 10px;
  color: #10b981;
}
.scm-method-desc {
  font-size: 0.76rem;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}

/* ── Steps ───────────────────────────────────────────────────── */
.scm-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.scm-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.scm-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.25);
  color: #d4af37;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.scm-step-body { flex: 1; }
.scm-step-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: 3px;
}
.scm-step-desc {
  font-size: 0.76rem;
  color: rgba(255,255,255,.45);
  line-height: 1.55;
}

/* ── Code Block ──────────────────────────────────────────────── */
.scm-code-block {
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
}
.scm-code-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 0.76rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}
.scm-code-row:last-child { border-bottom: none; }
.scm-code-label {
  width: 100px;
  flex-shrink: 0;
  color: rgba(255,255,255,.35);
  font-size: 0.7rem;
  font-family: inherit;
  padding-top: 1px;
}
.scm-code-val {
  color: #d4af37;
  word-break: break-all;
  flex: 1;
}
.scm-meta-val {
  color: #7dd3fc;
  font-size: 0.72rem;
  line-height: 1.5;
}
.scm-copyable {
  cursor: text;
  user-select: all;
}
.scm-copy-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  color: rgba(255,255,255,.5);
  font-size: 0.8rem;
  padding: 2px 7px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.14s, color 0.14s;
  align-self: flex-start;
  margin-top: 1px;
}
.scm-copy-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── Fields ──────────────────────────────────────────────────── */
.scm-field-group {
  margin-bottom: 18px;
}
.scm-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.scm-input,
.scm-textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  resize: vertical;
}
.scm-input::placeholder,
.scm-textarea::placeholder { color: rgba(255,255,255,.25); }
.scm-input:focus,
.scm-textarea:focus {
  border-color: rgba(212,175,55,.4);
  background: rgba(255,255,255,.06);
}
.scm-hint {
  margin-top: 6px;
  font-size: 0.71rem;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
}
.scm-hint strong { color: rgba(255,255,255,.55); }

/* ── Action Buttons ──────────────────────────────────────────── */
.scm-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.scm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.scm-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.scm-btn-primary {
  background: #d4af37;
  color: #000;
  border-color: #d4af37;
  flex: 1;
}
.scm-btn-primary:hover:not(:disabled) {
  background: #e8cc6a;
  border-color: #e8cc6a;
}
.scm-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.12);
}
.scm-btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.2);
}

/* ── Messages ────────────────────────────────────────────────── */
.scm-msg {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
}
.scm-msg-error   { background: rgba(232,24,58,.1);  border: 1px solid rgba(232,24,58,.25);  color: #f87171; }
.scm-msg-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); color: #34d399; }
.scm-msg-info    { background: rgba(14,165,233,.1); border: 1px solid rgba(14,165,233,.25); color: #7dd3fc; }

/* ── Success / Submitted State ───────────────────────────────── */
.scm-success {
  text-align: center;
  padding: 8px 0 4px;
}
.scm-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}
.scm-success-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.scm-success-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin-bottom: 18px;
}
.scm-success-desc strong { color: rgba(255,255,255,.8); }
.scm-success-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  font-size: 0.76rem;
  color: rgba(255,255,255,.6);
}
.scm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.scm-status-pending {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.2);
  animation: scmPulse 2s infinite;
}
.scm-status-verified { background: #10b981; }

@keyframes scmPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Already Claimed State ───────────────────────────────────── */
.scm-already-claimed {
  text-align: center;
  padding: 8px 0;
}
.scm-already-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}
.scm-already-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.scm-already-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 18px;
}
.scm-already-meta {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  text-align: left;
}
.scm-already-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.77rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.scm-already-row:last-child { border-bottom: none; }
.scm-already-row span { color: rgba(255,255,255,.4); }
.scm-already-row strong { color: rgba(255,255,255,.8); }
.scm-already-dispute {
  font-size: 0.74rem;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .scm-panel {
    padding: 24px 18px 22px;
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    margin: auto 0 0;
    align-self: flex-end;
  }
  #splClaimModal {
    align-items: flex-end;
    padding: 0;
  }
  .scm-actions {
    flex-direction: column;
  }
  .scm-btn-primary { flex: unset; width: 100%; }
  .scm-btn-ghost   { width: 100%; }
  .scm-code-label  { width: 80px; }
}
