@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --xa-bg: #1f1a2e;
  --xa-box: #2a2340;
  --xa-field: #1a1527;
  --xa-pill: #3a3157;
  --xa-line: #3d3459;
  --xa-text: #f4f2f8;
  --xa-soft: #b3aac9;
  --xa-brand: #14a8b5;
  --xa-accent: #ee245c;
  --xa-accent-hover: #d81c50;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--xa-bg);
  color: var(--xa-text);
  font: 400 15px/1.5 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }

/* Top / foot */
.xa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) 24px 16px;
}
.xa-top form { margin: 0; }
.xa-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.xa-brand .xc-brand-logo--banner img,
.xa-brand__logo {
  height: 56px !important;
  width: auto !important;
  max-width: min(70vw, 280px) !important;
  border-radius: 0 !important;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201, 162, 75, .25));
}
.xa-brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--xa-brand); color: #fff; }
.xa-brand b { color: #ff7299; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.xa-auth-brand {
  display: flex; justify-content: center; margin: 0 0 18px;
}
.xa-auth-brand .xc-brand-logo--banner img {
  height: 100px !important;
  max-width: min(90vw, 440px) !important;
}
.xa-top { min-height: 72px; align-items: center; }
.xa-link { padding: 0; border: 0; background: none; color: var(--xa-soft); font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.xa-link:hover { color: var(--xa-text); }
.xa-link--danger:hover { color: #ff7299; }
.xa-foot { padding: 24px; color: var(--xa-soft); font-size: .75rem; text-align: center; }

.xa-main { display: flex; flex: 1; justify-content: center; padding: 12px 20px; }
.xa-centered .xa-main { align-items: center; }

.xa-flash {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 12px;
  background: #1f7a4a;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.xa-flash.is-error { background: #9f2a45; }

/* Card */
.xa-card {
  width: 100%;
  max-width: 460px;
  padding: 36px 30px 28px;
  border: 1px solid var(--xa-line);
  border-radius: 30px;
  background: var(--xa-box);
}
.xa-card h1 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 700; text-align: center; }
.xa-sub { margin: 0 0 24px; color: var(--xa-soft); font-size: .9rem; text-align: center; }
.xa-alert {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(238,36,92,.14);
  color: #ff8fae;
  font-size: .86rem;
}

/* Form */
.xa-form { display: flex; flex-direction: column; gap: 14px; }
.xa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xa-field { display: flex; flex-direction: column; gap: 6px; }
.xa-field > span { color: var(--xa-soft); font-size: .8rem; font-weight: 600; }
.xa-field small { font-weight: 400; }
.xa-field input, .xa-password {
  width: 100%;
  height: 48px;
  border: 1px solid var(--xa-line);
  border-radius: 14px;
  background: var(--xa-field);
  color: var(--xa-text);
  font: 500 .95rem/1 'DM Sans', sans-serif;
  color-scheme: dark;
}
.xa-field input { padding: 0 14px; }
.xa-field input:focus, .xa-password:focus-within { outline: none; border-color: var(--xa-brand); }
.xa-field input::placeholder { color: #6e6e76; }
.xa-password { display: flex; align-items: center; padding-right: 6px; }
.xa-password input { flex: 1; height: 100%; border: 0; background: none; }
.xa-password input:focus { outline: none; }
.xa-password button {
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--xa-pill);
  color: var(--xa-text);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
}
.xa-check { display: flex; align-items: flex-start; gap: 10px; color: var(--xa-soft); font-size: .85rem; cursor: pointer; }
.xa-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--xa-accent); flex: none; }

.xa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 16px;
  background: var(--xa-accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.xa-btn:hover { background: var(--xa-accent-hover); }
.xa-btn:active { transform: translateY(1px); }
.xa-btn--ghost { background: var(--xa-pill); letter-spacing: 0; }
.xa-btn--ghost:hover { background: #4a4a50; }
.xa-btn--auto { width: auto; min-height: 44px; padding: 10px 18px; }

.xa-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--xa-soft); font-size: .8rem; }
.xa-divider::before, .xa-divider::after { content: ''; flex: 1; height: 1px; background: var(--xa-line); }
.xa-switch { margin: 20px 0 0; color: var(--xa-soft); font-size: .88rem; text-align: center; }
.xa-switch a { color: var(--xa-text); font-weight: 700; }

/* Account */
.xa-account { width: 100%; max-width: 1040px; }
.xa-panel {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--xa-line);
  border-radius: 22px;
  background: var(--xa-box);
}
.xa-panel h2 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; }
.xa-profile { display: flex; align-items: center; gap: 18px; }
.xa-profile > div { flex: 1; min-width: 0; }
.xa-profile h1 { margin: 0; font-size: 1.35rem; }
.xa-profile .xa-sub { margin: 0; text-align: left; }
.xa-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid #d9d9de;
  border-radius: 50%;
  background: var(--xa-pill);
  font-size: 1.5rem;
  font-weight: 800;
}
.xa-avatar--photo { position: relative; overflow: visible; }
.xa-avatar__story-add {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 3px solid var(--xa-box, #2a2340);
  border-radius: 50%;
  background: linear-gradient(145deg, #d4a017, #b8860b);
  color: #1a1205;
  font: 700 1.35rem/1 "DM Sans", system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}
.xa-avatar__story-add::after {
  content: '';
  position: absolute;
  inset: -10px;
}
.xa-avatar__story-add:hover { filter: brightness(1.06); color: #1a1205; }
.xa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.xa-comment { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--xa-line); }
.xa-comment:first-of-type { border-top: 0; padding-top: 0; }
.xa-comment__thumb { flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--xa-pill); }
.xa-comment__thumb img { width: 100%; height: 100%; object-fit: cover; }
.xa-comment__body { flex: 1; min-width: 0; }
.xa-comment__body header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xa-comment__body header a { font-weight: 700; text-decoration: none; }
.xa-comment__body p { margin: 4px 0 6px; color: var(--xa-soft); font-size: .9rem; white-space: pre-line; overflow-wrap: anywhere; }
.xa-comment__body footer { display: flex; align-items: center; gap: 14px; color: var(--xa-soft); font-size: .76rem; }
.xa-comment__body footer form { margin: 0; }
.xa-stars { color: #ffc531; font-size: .8rem; letter-spacing: 1px; }
.xa-tag { padding: 2px 8px; border-radius: 999px; background: rgba(255,197,49,.15); color: #ffc531; font-size: .7rem; font-weight: 700; }
.xa-empty { margin: 0; color: var(--xa-soft); font-size: .9rem; }
.xa-order { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--xa-line); color: var(--xa-soft); font-size: .88rem; text-decoration: none; }
.xa-order:first-of-type { border-top: 0; }
.xa-order b { color: var(--xa-text); }

/* Pagination from vendor.pagination.custom */
.xa-panel nav, .xa-panel .pagination { margin-top: 12px; }

@media (max-width: 860px) {
  .xa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .xa-top { padding-inline: 16px; }
  .xa-main { padding: 8px 12px; }
  .xa-card { padding: 28px 20px 22px; border-radius: 24px; }
  .xa-row { grid-template-columns: 1fr; }
  .xa-profile { flex-wrap: wrap; }
  .xa-profile .xa-btn--auto { width: 100%; }
}

/* -- Account activation banners --------------------------- */
.xa-activation-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: .88rem;
  line-height: 1.4;
  border: 1px solid;
}
.xa-activation-banner strong { display: block; font-weight: 700; margin-bottom: 2px; }
.xa-activation-banner p { margin: 0; opacity: .85; }
.xa-activation-banner svg { flex: none; margin-top: 2px; }
.xa-activation-banner--pending {
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.35);
  color: #b45309;
}
.xa-activation-banner--active {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.3);
  color: #15803d;
}
.xa-activation-banner--suspended {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.3);
  color: #b91c1c;
}
.xa-activation-banner--blocked {
  background: rgba(100,100,120,.12);
  border-color: rgba(100,100,120,.3);
  color: #374151;
}

/* Profile portal ------------------------------------------------ */
.xa-portal { max-width: 1180px; }
.xa-portal .xa-panel { border-radius: 18px; }
.xa-alert--error {
  display: grid; gap: 3px; margin-bottom: 16px; border-color: rgba(238,36,92,.5);
  background: rgba(238,36,92,.12); color: #ffd7e2;
}
.xa-profile-hero { overflow: visible; margin-bottom: 12px; border: 1px solid var(--xa-line); border-radius: 22px; background: var(--xa-box); }
.xa-profile-hero .xa-cover { overflow: hidden; border-radius: 22px 22px 0 0; }
.xa-cover {
  position: relative;
  height: 220px;
  background-color: #1d1f27;
  background-image: radial-gradient(circle at 18% 18%, rgba(147,118,76,.35), transparent 30%), linear-gradient(135deg,#16161a,#1d1f27 55%,#101012);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.xa-profile-hero__body { display: flex; align-items: flex-end; gap: 18px; padding: 0 24px 22px; }
.xa-avatar--photo {
  width: 118px; height: 118px; margin-top: -56px; overflow: visible; border: 5px solid var(--xa-box);
  background: linear-gradient(135deg,var(--xa-brand),var(--xa-accent)); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 2.4rem;
}
.xa-avatar--photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; border-radius: 50%; display: block;
}
.xa-pending-images { margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--xa-line); }
.xa-pending-images summary { cursor: pointer; font-weight: 600; }
.xa-pending-images ul { list-style: none; margin: 12px 0 0; padding: 0; }
.xa-pending-images li { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding-block: 6px; }
.xa-photo-review .xa-section-head { flex-wrap: wrap; }
.xa-photo-review .xa-section-head h1 { margin: 0; }
.xa-photo-review .xa-section-head p { margin: 5px 0 0; color: var(--xa-soft); }
.xa-photo-review__grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.xa-photo-review__item { min-width: 0; overflow: hidden; border: 1px solid var(--xa-line); border-radius: 10px; }
.xa-photo-review__item > a { display: block; background: #101012; }
.xa-photo-review__item img { display: block; width: 100%; height: 220px; object-fit: contain; }
.xa-photo-review__body { padding: 14px; overflow-wrap: anywhere; }
.xa-photo-review__body h2 { font-size: 1rem; margin: 0 0 5px; }
.xa-photo-review__body p { margin: 0 0 8px; color: var(--xa-soft); }
.xa-photo-review__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.xa-profile-identity { flex: 1; min-width: 0; padding-top: 15px; }
.xa-profile-identity h1 { margin: 4px 0; font-size: clamp(1.55rem,3vw,2.15rem); line-height: 1.05; }
.xa-profile-identity > p { margin: 0; color: var(--xa-soft); font-size: .92rem; }
.xa-profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.xa-profile-meta span { padding: 5px 9px; border: 1px solid var(--xa-line); border-radius: 999px; color: var(--xa-soft); font-size: .72rem; }
.xa-rec-count { color: #ffc531 !important; border-color: color-mix(in srgb, #ffc531 40%, var(--xa-line)) !important; }
.xa-status-dot { display: inline-flex; align-items: center; gap: 6px; color: #77818C; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.xa-status-dot::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ''; box-shadow: 0 0 0 4px rgba(119,129,140,.12); }
.xa-status-dot.is-online,
.xa-status-dot.is-active { color: #21866B; }
.xa-status-dot.is-active::before { box-shadow: 0 0 0 4px rgba(33,134,107,.14); }
.xa-status-dot.is-away { color: #C09346; }
.xa-status-dot.is-away::before { box-shadow: 0 0 0 4px rgba(192,147,70,.14); }
.xa-status-dot.is-inactive { color: #77818C; }
.xa-profile-nav { display: flex; gap: 6px; margin: 0 0 16px; padding: 7px; overflow-x: auto; border: 1px solid var(--xa-line); border-radius: 14px; background: rgba(42,35,64,.92); }
.xa-profile-nav a,
.xa-profile-nav .xa-nav-btn { flex: none; padding: 9px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--xa-soft); font: inherit; font-size: .78rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.xa-profile-nav a:hover,
.xa-profile-nav .xa-nav-btn:hover { background: var(--xa-pill); color: var(--xa-text); }
.xa-text-btn { border: 0; background: transparent; color: #ff7299; font-size: .76rem; font-weight: 700; cursor: pointer; padding: 0; }
.xa-portal-grid { display: grid; grid-template-columns: minmax(0,1fr) 370px; gap: 16px; align-items: start; }
.xa-portal-feed, .xa-portal-side { display: grid; gap: 16px; }
.xa-portal-side { position: sticky; top: 84px; }
.xa-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.xa-section-head h2 { margin: 2px 0 0; }
.xa-section-head span { color: var(--xa-brand); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.xa-section-head > a { color: #ff7299; font-size: .76rem; font-weight: 700; text-decoration: none; }
.xa-section-head > b { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--xa-pill); font-size: .76rem; }
.xa-about__text, .xa-physical-copy p { margin: 0; color: #ddd7e9; font-size: .95rem; line-height: 1.75; white-space: pre-line; }
.xa-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 20px; }
.xa-facts div { padding: 12px; border: 1px solid var(--xa-line); border-radius: 12px; background: rgba(26,21,39,.55); }
.xa-facts span { display: block; margin-bottom: 4px; color: var(--xa-soft); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.xa-facts b { font-size: .86rem; }
.xa-physical-copy { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--xa-line); }
.xa-physical-copy h3 { margin: 0 0 8px; font-size: .88rem; }
/* Cap loose media only — never force height:auto on framed avatars/cards. */
.xa-about img,
.xa-ad-note img,
.xa-panel > img {
  max-width: 100%;
  height: auto;
}
.xa-media-upload { display: grid; gap: 12px; margin-bottom: 20px; padding: 15px; border: 1px solid var(--xa-line); border-radius: 14px; background: rgba(26,21,39,.5); }
.xa-upload-zone { position: relative; display: grid; place-items: center; min-height: 120px; max-height: 220px; padding: 20px; border: 1px dashed #675b86; border-radius: 12px; text-align: center; cursor: pointer; transition: .2s ease; overflow: hidden; }
.xa-upload-zone:hover { border-color: var(--xa-brand); background: rgba(20,168,181,.06); }
.xa-upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.xa-upload-zone__icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 8px; border-radius: 50%; background: var(--xa-pill); color: #fff; font-size: 1.35rem; }
.xa-upload-zone strong { font-size: .9rem; }
.xa-upload-zone small { margin-top: 5px; color: var(--xa-soft); font-size: .68rem; }
.xa-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.xa-media-card { overflow: hidden; border: 1px solid var(--xa-line); border-radius: 14px; background: rgba(26,21,39,.65); }
.xa-media-card__preview { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #14101e; }
.xa-media-card__preview img, .xa-media-card__preview video { width: 100%; height: 100%; object-fit: cover; }
.xa-media-type { position: absolute; top: 8px; left: 8px; padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.72); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.xa-media-card__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.xa-media-card__body p { margin: 0; overflow: hidden; color: var(--xa-soft); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.xa-media-card__body form { flex: none; }
.xa-gallery-empty { padding: 35px 20px; border: 1px dashed var(--xa-line); border-radius: 14px; color: var(--xa-soft); text-align: center; }
.xa-gallery-empty b { display: block; margin-bottom: 5px; color: var(--xa-text); }
.xa-gallery-empty p { margin: 0; font-size: .8rem; }
.xa-edit-card .xa-form { gap: 12px; }
.xa-form-section { margin-top: 8px; padding-top: 13px; border-top: 1px solid var(--xa-line); color: #ff7299; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.xa-field textarea, .xa-field select {
  width: 100%; border: 1px solid var(--xa-line); border-radius: 10px; outline: none; background: var(--xa-field); color: var(--xa-text); font: inherit;
  color-scheme: dark;
}
.xa-field textarea { min-height: 100px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.xa-field select { height: 46px; padding: 0 12px; }
.xa-field select option, .xa-field select optgroup {
  background: #1a1527;
  color: #f5f5f5;
}
.xa-field textarea:focus, .xa-field select:focus { border-color: var(--xa-brand); }
.xa-file-field input { height: auto; padding: 10px; font-size: .72rem; }
.xa-file-field small { color: #807693; font-size: .65rem; }

.xa-status-toast {
  position: fixed; top: 18px; right: 18px; z-index: 80;
  width: min(92vw, 360px); pointer-events: none;
}
.xa-status-toast[hidden] { display: none !important; }
.xa-status-toast__card {
  position: relative;
  pointer-events: auto;
  padding: 14px 34px 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34,197,94,.35);
  background: rgba(12, 28, 18, .94);
  color: #dcfce7;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  animation: xa-toast-in .28s ease-out;
}
.xa-status-toast__card strong { display:block; margin-bottom:4px; color:#86efac; }
.xa-status-toast__card p { margin:0; font-size:.86rem; line-height:1.4; color:rgba(220,252,231,.9); }
.xa-status-toast__ok { margin-top:6px !important; color:#bbf7d0 !important; }
.xa-status-toast__close {
  position:absolute; top:8px; right:10px; border:0; background:transparent;
  color:rgba(220,252,231,.7); font-size:1.2rem; cursor:pointer; line-height:1;
}
@keyframes xa-toast-in {
  from { opacity:0; transform: translateY(-8px) scale(.98); }
  to { opacity:1; transform: none; }
}

.xa-ad-step { margin: 0 0 18px; padding: 14px; border: 1px solid var(--xa-line); border-radius: 12px; background: rgba(255,255,255,.02); }
.xa-ad-step__title {
  display:flex; align-items:center; gap:8px; margin:0 0 12px;
  font-size:.92rem; font-weight:700;
}
.xa-ad-step__title span {
  display:grid; place-items:center; width:22px; height:22px; border-radius:50%;
  background: var(--xa-brand); color:#041016; font-size:.72rem;
}
.xa-ad-cats { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:8px; }
.xa-ad-cat {
  display:block; cursor:pointer;
}
.xa-ad-cat input { position:absolute; opacity:0; pointer-events:none; }
.xa-ad-cat span {
  display:flex; align-items:center; justify-content:center; min-height:44px; padding:10px 12px;
  border:1px solid var(--xa-line); border-radius:10px; text-align:center; font-size:.84rem; font-weight:600;
}
.xa-ad-cat input:checked + span {
  border-color: var(--xa-brand); background: color-mix(in srgb, var(--xa-brand) 18%, transparent); color: var(--xa-brand);
}
.xa-ad-group { margin-top: 18px; }
.xa-ad-group__title {
  display:flex; align-items:baseline; gap:8px; margin:0 0 10px;
  font-size:.95rem;
}
.xa-ad-group__title small { color: var(--xa-soft); font-weight:600; }
.xa-ad-tags { color: var(--xa-brand) !important; font-size:.75rem !important; margin-top:4px !important; }
.xa-field-error { color:#fca5a5; font-size:.78rem; }

.xa-ad-list { display: grid; gap: 10px; }
.xa-ad-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  overflow: hidden;
}
.xa-ad-item__media {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #14101e;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.xa-ad-item__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}
.xa-ad-item__body { min-width: 0; }
.xa-ad-item__body h3 { margin: 0 0 4px; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xa-ad-item__body p { margin: 0; color: var(--xa-soft); font-size: .78rem; }
.xa-ad-item__actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.xa-edit-drawer {
  border: 0;
  background: transparent;
}
.xa-edit-drawer > summary {
  list-style: none;
  cursor: pointer;
}
.xa-edit-drawer > summary::-webkit-details-marker { display: none; }
.xa-edit-drawer[open] > summary { display: none; }
.xa-edit-drawer:not([open]) .xa-edit-drawer__panel { display: none; }
.xa-edit-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.xa-media-card__preview {
  max-height: min(42vw, 280px);
}
.xa-cover {
  max-height: 220px;
}
.xa-comment__thumb {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  flex: none;
}
.xa-comment__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 920px) {
  .xa-portal-grid { grid-template-columns: 1fr; }
  .xa-portal-side { position: static; }
  .xa-ad-item { grid-template-columns: 64px minmax(0, 1fr); }
  .xa-ad-item__actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 640px) {
  .xa-cover { height: 140px; max-height: 140px; }
  .xa-profile-hero__body { flex-wrap: wrap; align-items: center; padding: 0 16px 18px; }
  .xa-avatar--photo { width: 84px; height: 84px; margin-top: -36px; border-width: 4px; }
  .xa-profile-identity { min-width: calc(100% - 100px); }
  .xa-profile-hero__body > .xa-btn { width: 100%; }
  .xa-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .xa-gallery { grid-template-columns: 1fr; }
  .xa-media-card__preview { max-height: 220px; aspect-ratio: 4/3; }
  .xa-portal .xa-panel { padding: 17px; }
  .xa-account { max-width: 100%; overflow-x: hidden; }
}

/* Availability */
.xa-availability { margin: 14px 0; }
.xa-avail-pills { display:flex; flex-wrap:wrap; gap:8px; }
.xa-avail-pill {
  border:1px solid var(--xa-line); background:var(--xa-box); color:inherit;
  border-radius:999px; padding:8px 14px; cursor:pointer; font:600 .85rem/1 system-ui,sans-serif;
}
.xa-avail-pill { position:relative; padding-left:28px; }
.xa-avail-pill::before {
  content:''; position:absolute; left:12px; top:50%; width:8px; height:8px;
  border-radius:50%; transform:translateY(-50%); background:#77818C;
}
.xa-avail-pill[data-avail="active"]::before { background:#21866B; }
.xa-avail-pill[data-avail="away"]::before { background:#C09346; }
.xa-avail-pill[data-avail="inactive"]::before { background:#77818C; }
.xa-avail-pill.is-selected[data-avail="active"] { border-color:#21866B; box-shadow:0 0 0 1px #21866B inset; }
.xa-avail-pill.is-selected[data-avail="away"] { border-color:#C09346; box-shadow:0 0 0 1px #C09346 inset; }
.xa-avail-pill.is-selected[data-avail="inactive"] { border-color:#77818C; box-shadow:0 0 0 1px #77818C inset; }
.xa-avail-live { font-size:.85rem; font-weight:600; }
.xa-avail-live.is-active { color:#21866B; }
.xa-avail-live.is-away { color:#C09346; }
.xa-avail-live.is-inactive { color:#77818C; }
.xa-avail-hint { margin:10px 0 0; color:var(--xa-soft); font-size:.82rem; }

/* Story bar / composer */
.xa-story-bar {
  display:flex; align-items:center; gap:14px;
  padding:12px 14px; margin:0 0 16px;
  border:1px solid var(--xa-line); border-radius:16px; background:rgba(255,255,255,.02);
}
.xa-story-bar__avatar { position:relative; width:56px; height:56px; flex:none; overflow:visible; }
.xa-story-bar__avatar img, .xa-story-bar__avatar span {
  width:56px; height:56px; border-radius:50%; object-fit:cover;
  display:grid; place-items:center; background:#2a2a2e; border:2px solid #c13584;
}
.xa-story-bar__plus, .xa-story-bar__cta {
  display:grid; place-items:center; border:2.5px solid var(--xa-box,#2a2340); border-radius:50%;
  background:linear-gradient(145deg,#d4a017,#b8860b); color:#1a1205;
  font:700 1rem/1 "DM Sans",system-ui,sans-serif; cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}
.xa-story-bar__plus {
  position:absolute; right:-4px; bottom:-4px; z-index:3;
  width:24px; height:24px; padding:0;
}
.xa-story-bar__plus::after { content:''; position:absolute; inset:-10px; }
.xa-story-bar__cta { width:36px; height:36px; margin-left:auto; flex:none; }
.xa-story-bar__copy { display:grid; gap:2px; min-width:0; }
.xa-story-bar__copy strong { font-size:.95rem; }
.xa-story-bar__copy span { color:var(--xa-soft); font-size:.78rem; }

.xa-story-composer {
  width:min(440px, calc(100vw - 24px)); padding:0; border:1px solid var(--xa-line);
  border-radius:18px; background:var(--xa-box,#161616); color:inherit;
}
.xa-story-composer::backdrop { background:rgba(0,0,0,.65); }
.xa-story-composer__form { display:grid; gap:14px; padding:16px; }
.xa-story-composer__head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.xa-story-composer__head h3 { margin:0; font-size:1rem; }
.xa-story-composer__frame {
  position:relative; width:min(280px,100%); aspect-ratio:9/16; margin:0 auto;
  overflow:hidden; border-radius:14px; background:#000;
}
.xa-story-composer__frame img, .xa-story-composer__frame video,
.xa-story-composer__crop {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.xa-story-composer__crop {
  background-repeat:no-repeat; background-position:50% 50%; background-size:cover;
  touch-action:none; cursor:grab;
}
.xa-story-composer__overlay-text {
  position:absolute; left:12px; right:12px; bottom:18px; margin:0;
  text-align:center; text-shadow:0 1px 8px rgba(0,0,0,.7); font-weight:700;
}
.xa-story-composer__actions { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.xa-story-composer__progress div {
  height:6px; border-radius:99px; background:rgba(255,255,255,.12); overflow:hidden;
}
.xa-story-composer__progress i {
  display:block; height:100%; width:0; background:#0095f6; transition:width .15s linear;
}
.xa-story-composer__error { color:#ef4444; font-size:.85rem; margin:0; }
.xa-upload-zone--story { cursor:pointer; }
.xa-verified-badge,
.xc-badge-check {
  display:inline-flex; align-items:center; justify-content:center;
  margin-left:.28rem; vertical-align:middle; line-height:0;
}
.xa-verified-badge svg,
.xc-badge-check svg { display:block; }
.xa-tier-badge {
  display:inline-flex; align-items:center; padding:2px 8px; border-radius:999px;
  background:color-mix(in srgb, var(--tier,#d4a017) 22%, transparent);
  color:var(--tier,#d4a017); font:700 .72rem/1.2 system-ui,sans-serif; letter-spacing:.04em;
}
.xa-check { display:flex; align-items:flex-start; gap:8px; margin:0 0 8px; font-size:.86rem; }
.xa-check input { margin-top:.2rem; }

/* Fullscreen story editor — simple */
.xa-story-composer--fs {
  width: min(420px, 100vw);
  max-width: 100vw;
  height: min(860px, 100dvh);
  max-height: 100dvh;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: #0c0c0e;
  color: #f5f5f4;
}
.xa-story-composer--fs::backdrop { background: rgba(0,0,0,.88); }
.xa-story-composer--fs .xa-story-composer__form {
  height: 100%;
  grid-template-rows: auto 1fr;
  padding: 12px 14px 18px;
  gap: 12px;
}
.xa-story-composer--fs .xa-story-composer__head {
  position: sticky; top: 0; z-index: 2;
}
.xa-story-composer--fs .xa-story-composer__head h3 {
  font-size: .95rem; font-weight: 600; letter-spacing: .02em;
}
.xa-story-composer__progress i { background: #d4a017; }
.xa-story-composer__change { justify-self: center; opacity: .75; font-size: .82rem; }

.xa-story-editor--simple {
  display: grid;
  grid-template-rows: minmax(0,1fr) auto auto;
  gap: 12px;
  min-height: 0;
  height: 100%;
}
.xa-story-editor__canvas-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}
.xa-story-editor__canvas-wrap canvas {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: min(58dvh, 520px);
  aspect-ratio: 9/16;
  touch-action: none;
  background: #111;
}
.xa-story-editor__hint {
  position: absolute; left: 0; right: 0; bottom: 10px; margin: 0;
  text-align: center; font-size: .72rem; color: rgba(255,255,255,.55);
  pointer-events: none; text-shadow: 0 1px 6px #000;
}
.xa-story-editor__trash {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px; background: rgba(180,40,40,.92);
  font-size: .78rem; font-weight: 600;
}
.xa-story-editor__trash.is-hot { transform: translateX(-50%) scale(1.06); background: #ef4444; }

.xa-story-editor__toolbar {
  display: flex; justify-content: center; gap: 8px;
}
.xa-story-editor__toolbar button {
  min-width: 76px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: inherit;
  padding: 11px 14px;
  font: 600 .8rem/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.xa-story-editor__toolbar button.is-active {
  border-color: #d4a017;
  background: rgba(212,160,23,.2);
  color: #f3dfa0;
}

.xa-story-editor__panel {
  display: grid;
  gap: 8px;
  padding: 10px 4px 0;
  border: 0;
  background: transparent;
  max-height: none;
  overflow: visible;
}
.xa-story-editor__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.xa-story-editor__row--text { width: 100%; }
.xa-story-editor__row--text input[type=text] {
  flex: 1 1 140px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 10px 12px;
  font-size: .9rem;
}
.xa-story-editor__row--text input[type=color] {
  width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.xa-story-editor__delete { justify-self: center; color: #f87171; }
.xa-story-editor__tip {
  margin: 0; text-align: center; font-size: .72rem; color: rgba(255,255,255,.5);
}
.xa-story-editor__stickers {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.xa-story-editor__stickers button {
  border: 0; border-radius: 12px; background: rgba(255,255,255,.08);
  color: inherit; width: 48px; height: 48px; cursor: pointer; font-size: 1.35rem;
}
.xa-swatch {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35);
  background: var(--sw, #fff); cursor: pointer; padding: 0;
}
.xa-swatch.is-active { box-shadow: 0 0 0 2px #d4a017; border-color: #fff; }

@media (max-width: 520px) {
  .xa-story-composer--fs { width: 100vw; height: 100dvh; }
  .xa-profile-hero__body { overflow: visible; padding-bottom: 28px; }
}
