/* ┌────────────────────────────────────────────────────────┐
   │  MaraLyrics — Artist Court (/my-profile)                │
   │  A royal look for artists & composers: deep velvet      │
   │  purple, gold edges, serif headings. Scoped to .royal   │
   │  and body.royal-page, so the rest of the site is        │
   │  untouched. Dark by default; the site's light theme     │
   │  turns it into ivory parchment.                         │
   └────────────────────────────────────────────────────────┘ */

.royal-page {
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(120, 60, 200, 0.45), transparent 62%),
    radial-gradient(800px 480px at 92% 28%, rgba(217, 180, 74, 0.1), transparent 60%),
    #0e0724;
}
[data-theme="light"] .royal-page {
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(150, 110, 230, 0.22), transparent 62%),
    radial-gradient(800px 480px at 92% 28%, rgba(217, 180, 74, 0.18), transparent 60%),
    #f7f1e2;
}

.royal {
  --r-gold: #d9b44a;
  --r-gold-hi: #f7e6a1;
  --r-gold-lo: #9c7420;
  --r-ink: #f6efdc;
  --r-muted: #bdb0dc;
  --r-card: rgba(31, 16, 66, 0.78);
  --r-edge: rgba(217, 180, 74, 0.32);
  --r-field: rgba(12, 6, 32, 0.65);
  --r-field-edge: rgba(217, 180, 74, 0.28);
  --r-green: #2ecc71;
  --r-danger: #fca5a5;
  --r-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  color: var(--r-ink);
}
[data-theme="light"] .royal {
  --r-ink: #2a1650;
  --r-muted: #6b5a96;
  --r-card: rgba(255, 252, 243, 0.94);
  --r-edge: rgba(166, 124, 24, 0.4);
  --r-field: #ffffff;
  --r-field-edge: rgba(166, 124, 24, 0.38);
  --r-danger: #b42318;
  --r-gold: #b8891f;
}
.royal [hidden] { display: none !important; }
.royal *, .royal *::before, .royal *::after { box-sizing: border-box; }
:where(.royal) :where(h1, h2, h3, p) { margin: 0; }

/* ── Hero (signed out) ─────────────────────────── */
.royal-hero { text-align: center; padding: 24px 0 8px; }
.royal-crown { display: inline-block; filter: drop-shadow(0 6px 18px rgba(217, 180, 74, 0.45)); animation: royal-float 6s ease-in-out infinite; }
@keyframes royal-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .royal-crown { animation: none; } }
.royal-eyebrow { margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--r-gold); font-weight: 600; }
.royal-title {
  margin-top: 4px; font-family: var(--r-serif); font-weight: 700; font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1.05; letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--r-gold-hi), var(--r-gold) 55%, var(--r-gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.royal-lead { margin: 14px auto 0; max-width: 620px; font-family: var(--r-serif); font-size: clamp(1.15rem, 3.2vw, 1.5rem); line-height: 1.45; color: var(--r-muted); }
.royal-lead--left { margin: 0 0 var(--space-md, 16px); text-align: left; font-size: 1.15rem; }
.royal-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 26px auto 0; max-width: 360px; }
.royal-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--r-gold)); }
.royal-divider span:last-child { background: linear-gradient(270deg, transparent, var(--r-gold)); }
.royal-divider i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--r-gold); box-shadow: 0 0 12px rgba(217, 180, 74, 0.7); }

/* ── Perks ─────────────────────────────────────── */
.royal-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0; }
.royal-perk { text-align: center; padding: 26px 20px; border-radius: 20px; border: 1px solid var(--r-edge); background: var(--r-card); }
.royal-perk__icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; border: 1px solid var(--r-gold); font-size: 1.5rem; background: rgba(217, 180, 74, 0.1); }
.royal-perk__icon--green { border-color: var(--r-green); background: rgba(46, 204, 113, 0.14); color: var(--r-green); font-weight: 800; }
.royal-perk h2 { font-family: var(--r-serif); font-size: 1.45rem; font-weight: 700; color: var(--r-gold); }
.royal-perk p { margin-top: 6px; color: var(--r-muted); font-size: 0.95rem; line-height: 1.5; }

/* ── Cards ─────────────────────────────────────── */
.royal-card {
  position: relative; padding: 28px; border-radius: 22px; border: 1px solid var(--r-edge); background: var(--r-card);
  box-shadow: inset 0 1px 0 rgba(255, 244, 200, 0.12), 0 18px 50px rgba(5, 0, 25, 0.35);
}
[data-theme="light"] .royal-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 36px rgba(90, 60, 20, 0.12); }
.royal-card + .royal-card { margin-top: 22px; }
.royal-gate { max-width: 540px; margin: 0 auto; }
.royal-gate__title, .royal-section-title { font-family: var(--r-serif); font-size: 1.9rem; font-weight: 700; color: var(--r-gold); margin-bottom: 14px; }
.royal-gate__title { text-align: center; }
.royal-section-title { display: flex; align-items: center; gap: 10px; }
.royal-seal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--r-green); color: #fff; font-size: 0.95rem; font-weight: 800; font-family: inherit; box-shadow: 0 0 14px rgba(46, 204, 113, 0.55); }

/* ── Tabs ──────────────────────────────────────── */
.royal-tabs { display: flex; gap: 6px; margin: 26px 0 22px; border-bottom: 1px solid var(--r-edge); }
.royal-tabs--center { justify-content: center; margin: 4px 0 22px; }
.royal-tabs--scroll { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.royal-tabs--scroll::-webkit-scrollbar { display: none; }
.royal-tab {
  flex: none; padding: 12px 22px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; cursor: pointer;
  font-family: var(--r-serif); font-size: 1.3rem; font-weight: 600; color: var(--r-muted); transition: color .2s, border-color .2s;
}
.royal-tab:hover { color: var(--r-ink); }
.royal-tab.active { color: var(--r-gold); border-bottom-color: var(--r-gold); }
.royal-tab:focus-visible { outline: 2px solid var(--r-gold); outline-offset: -2px; border-radius: 8px; }

/* ── Forms ─────────────────────────────────────── */
.royal-form { display: flex; flex-direction: column; gap: 18px; }
.royal-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.royal-field label, .royal-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--r-gold); }
.royal-field small, .royal-hint { color: var(--r-muted); font-size: 0.82rem; line-height: 1.4; }
.royal-field input, .royal-field textarea, .royal-field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--r-field-edge); background: var(--r-field); color: var(--r-ink);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.royal-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.royal-field select option { background: #1b0e3d; color: #f6efdc; }
[data-theme="light"] .royal-field select option { background: #fff; color: #2a1650; }
.royal-field input:focus, .royal-field textarea:focus, .royal-field select:focus { outline: none; border-color: var(--r-gold); box-shadow: 0 0 0 3px rgba(217, 180, 74, 0.22); }
.royal-field input::placeholder, .royal-field textarea::placeholder { color: var(--r-muted); opacity: 0.7; }
.royal-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.royal-note { color: var(--r-muted); line-height: 1.55; margin-bottom: 14px; }
.royal-note:last-child { margin-bottom: 0; }
.royal-message { padding: 11px 14px; border-radius: 12px; font-size: 0.92rem; border: 1px solid rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.12); color: var(--r-danger); }
.royal-message--ok { border-color: rgba(46, 204, 113, 0.45); background: rgba(46, 204, 113, 0.12); color: #6ee7a8; }
[data-theme="light"] .royal-message--ok { color: #0f7a3d; }
.royal-claiming { margin-bottom: 14px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--r-gold); background: rgba(217, 180, 74, 0.1); color: var(--r-gold-hi); font-weight: 600; text-align: center; }
[data-theme="light"] .royal-claiming { color: #7a5a0f; }

/* ── Buttons ───────────────────────────────────── */
.royal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; color: #2b1a05;
  background: linear-gradient(180deg, var(--r-gold-hi), var(--r-gold) 55%, #b88a24);
  box-shadow: 0 6px 20px rgba(217, 180, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55); transition: transform .15s, box-shadow .2s, filter .2s;
}
.royal-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 26px rgba(217, 180, 74, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.royal-btn:active { transform: translateY(0); }
.royal-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.royal-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.royal-btn--ghost { color: var(--r-gold); background: transparent; box-shadow: inset 0 0 0 1px var(--r-gold); }
.royal-btn--ghost:hover { background: rgba(217, 180, 74, 0.12); box-shadow: inset 0 0 0 1px var(--r-gold); filter: none; }
.royal-btn--sm { padding: 8px 18px; font-size: 0.88rem; }
.royal-btn--green { color: #fff; background: linear-gradient(180deg, #5be08f, #2ecc71 55%, #1f9d55); box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.royal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Banner (signed in) ────────────────────────── */
.royal-banner {
  display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-radius: 24px; border: 1px solid var(--r-edge);
  background: linear-gradient(120deg, rgba(86, 40, 170, 0.75), rgba(31, 16, 66, 0.85) 55%, rgba(217, 180, 74, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 244, 200, 0.18), 0 22px 60px rgba(5, 0, 25, 0.45);
}
[data-theme="light"] .royal-banner { background: linear-gradient(120deg, #efe5ff, #fffaf0 55%, rgba(217, 180, 74, 0.3)); box-shadow: inset 0 1px 0 #fff, 0 16px 40px rgba(90, 60, 20, 0.14); }
.royal-banner__text { flex: 1; min-width: 0; }
.royal-banner__name { font-family: var(--r-serif); font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.royal-banner__name .green-mark { width: 0.7em; height: 0.7em; }
.royal-banner__meta { margin-top: 4px; color: var(--r-muted); font-size: 0.95rem; }
.royal-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.royal-avatar {
  display: inline-grid; place-items: center; flex: none; width: 84px; height: 84px; overflow: hidden; border-radius: 50%;
  border: 3px solid var(--r-gold); box-shadow: 0 0 0 4px rgba(217, 180, 74, 0.18), 0 8px 22px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; font-family: var(--r-serif); font-size: 2.3rem; font-weight: 700;
}
.royal-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.royal-avatar--lg { width: 108px; height: 108px; font-size: 2.8rem; }

/* ── Profile switcher, editor, preview ─────────── */
.royal-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.royal-chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--r-edge); background: transparent; color: var(--r-muted); font: inherit; font-weight: 600; cursor: pointer; }
.royal-chip.active { color: #2b1a05; border-color: transparent; background: linear-gradient(180deg, var(--r-gold-hi), var(--r-gold)); }
.royal-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.royal-split .royal-card + .royal-card { margin-top: 0; }
.royal-preview { position: sticky; top: 84px; }
.royal-preview__title { font-family: var(--r-serif); font-size: 1.3rem; color: var(--r-gold); margin-bottom: 14px; }
.royal-preview__card { text-align: center; }
.royal-preview__name { margin-top: 12px; font-family: var(--r-serif); font-size: 1.8rem; font-weight: 700; overflow-wrap: anywhere; }
.royal-preview__name .green-mark { width: 0.7em; height: 0.7em; }
.royal-preview__role { color: var(--r-gold); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.royal-preview__bio { margin-top: 12px; color: var(--r-muted); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; font-size: 0.95rem; }
.royal-preview__links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.royal-preview__links span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--r-edge); color: var(--r-muted); }
.royal-photo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.royal-photo__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.royal-receipt { display: grid; place-items: center; width: 84px; height: 84px; overflow: hidden; border-radius: 12px; border: 1px solid var(--r-edge); background: #fff; }
.royal-receipt img { width: 100%; height: 100%; object-fit: cover; }
.royal-links { display: flex; flex-direction: column; gap: 8px; }
.royal-link-row { display: flex; align-items: center; gap: 8px; }
.royal-link-row input { flex: 1; min-width: 0; }
.royal-link-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--r-edge); color: var(--r-muted); }

/* ── Claims / orders lists ─────────────────────── */
.royal-statuses { display: flex; flex-direction: column; gap: 12px; }
.royal-status { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--r-edge); background: rgba(255, 255, 255, 0.03); }
[data-theme="light"] .royal-status { background: rgba(255, 255, 255, 0.6); }
.royal-status__main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.royal-status__name { font-family: var(--r-serif); font-size: 1.35rem; font-weight: 700; }
.royal-status__name .green-mark { width: 0.8em; height: 0.8em; }
.royal-status__type { color: var(--r-muted); font-size: 0.9rem; }
.royal-status__state { margin-left: auto; color: var(--r-muted); font-size: 0.88rem; }
.royal-status--active { border-color: rgba(46, 204, 113, 0.55); background: rgba(46, 204, 113, 0.07); }
.royal-status--active .royal-status__state { color: #6ee7a8; font-weight: 600; }
[data-theme="light"] .royal-status--active .royal-status__state { color: #0f7a3d; }
.royal-status__note { margin-top: 6px; color: var(--r-muted); font-size: 0.9rem; }
.royal-status__actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.royal-pill { margin-left: auto; padding: 3px 12px; border-radius: 999px; border: 1px solid; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.royal-pill--pending { color: #f3c969; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.4); }
.royal-pill--approved { color: #6ee7a8; background: rgba(46, 204, 113, 0.12); border-color: rgba(46, 204, 113, 0.45); }
.royal-pill--rejected { color: var(--r-danger); background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); }
[data-theme="light"] .royal-pill--pending { color: #8a5a00; }
[data-theme="light"] .royal-pill--approved { color: #0f7a3d; }

/* ── Green mark plans ──────────────────────────── */
.royal-green { border-color: rgba(46, 204, 113, 0.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 50px rgba(5, 0, 25, 0.35), 0 0 0 1px rgba(46, 204, 113, 0.08); }
.royal-green .royal-section-title { color: var(--r-green); }
.royal-statuses + .royal-note, .royal-statuses + .royal-form, .royal-note + .royal-form, .royal-message + .royal-form { margin-top: 18px; }
.royal-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.royal-plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 12px; border-radius: 16px; border: 1px solid var(--r-edge); background: rgba(255, 255, 255, 0.03); cursor: pointer; text-align: center; transition: border-color .2s, box-shadow .2s, transform .15s; }
.royal-plan:hover { border-color: var(--r-green); transform: translateY(-2px); }
.royal-plan input { position: absolute; opacity: 0; pointer-events: none; }
.royal-plan:has(input:checked) { border-color: var(--r-green); box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.22), 0 10px 28px rgba(46, 204, 113, 0.18); background: rgba(46, 204, 113, 0.08); }
.royal-plan:has(input:focus-visible) { outline: 2px solid var(--r-gold); outline-offset: 2px; }
.royal-plan__name { font-family: var(--r-serif); font-size: 1.3rem; font-weight: 700; }
.royal-plan__price { color: var(--r-gold); font-weight: 700; font-size: 1.05rem; }
.royal-howto { padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(46, 204, 113, 0.6); background: rgba(46, 204, 113, 0.06); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.95rem; line-height: 1.55; }
.royal-howto a { color: var(--r-gold); text-decoration: underline; }

/* ── Locked ────────────────────────────────────── */
.royal-locked { text-align: center; padding: 44px 24px; }
.royal-locked h2 { font-family: var(--r-serif); font-size: 2rem; color: var(--r-gold); }
.royal-locked p { margin: 10px auto 22px; max-width: 460px; color: var(--r-muted); line-height: 1.55; }

/* ── Phones ────────────────────────────────────── */
@media (max-width: 860px) {
  .royal-split { grid-template-columns: 1fr; }
  .royal-preview { position: static; order: -1; }
}
@media (max-width: 680px) {
  .royal { padding: 24px 14px 64px; }
  .royal-perks { grid-template-columns: 1fr; }
  .royal-card { padding: 22px 18px; }
  .royal-two { grid-template-columns: 1fr; }
  .royal-banner { flex-wrap: wrap; padding: 22px 18px; gap: 16px; }
  .royal-banner__actions { width: 100%; justify-content: flex-start; }
  .royal-avatar { width: 68px; height: 68px; font-size: 1.9rem; }
  .royal-tab { padding: 11px 16px; font-size: 1.15rem; }
  .royal-status__state { margin-left: 0; width: 100%; }
}
