/* ============================== AVNue · NEON — app screens (profile/commission/messages) */

/* common app layout: content max width */
.appwrap{ max-width:1160px; margin:0 auto; padding:30px; }

/* ---------------------------------------------------------------- PROFILE */
/* Default banner (no image / no animated cover): an opaque neutral-surface
   gradient with one soft accent corner glow. No contrasting end-hues, and the
   opaque base means a custom profile background never bleeds through. */
.pf-cover{ position:relative; height:200px; border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--border); background:
    radial-gradient(150% 130% at 0% 0%, rgb(var(--accent2-rgb) /.20), transparent 60%),
    linear-gradient(120deg, var(--surface2), var(--surface3)); }
.pf-cover image-slot{ position:absolute; inset:0; width:100%; height:100%; }
.pf-cover::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent,rgba(7,9,15,.4)); pointer-events:none; }
.av.light .pf-cover::after{ background:linear-gradient(180deg,transparent,rgba(255,255,255,.25)); }

/* "View as visitor" preview bar. */
.preview-bar{ display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap;
  padding:10px 18px; background:rgb(var(--primary-rgb) / .14); border-bottom:1px solid var(--border);
  color:var(--ink); font-size:13.5px; font-weight:600; }
.preview-bar span{ display:inline-flex; align-items:center; gap:7px; }
.preview-bar svg{ color:var(--primary); }

/* Header sits below the banner (no overlap, so banner content stays visible).
   The avatar is integrated into the name card as one unit. */
.pf-head{ display:flex; align-items:center; gap:20px; margin-top:18px; }
.pf-card{ display:flex; align-items:center; gap:20px; flex:1; min-width:0;
  background:rgb(var(--surface-rgb) / var(--card-a, .92)); backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px);
  border:1px solid var(--border); border-radius:24px; padding:18px 22px; box-shadow:var(--shadow-sm); }
.pf-ava{ width:124px; height:124px; border-radius:26px; border:2px solid var(--border2); flex:0 0 auto;
  box-shadow:var(--shadow); font-size:46px; }
.pf-id{ flex:1; min-width:0; }
.pf-id .nmrow{ display:flex; align-items:center; gap:10px; }
.pf-id h1{ font-size:30px; }
.pf-id .hd{ color:var(--muted); font-size:14px; margin-top:3px; }
.pf-meta{ display:flex; gap:18px; margin-top:12px; color:var(--muted); font-size:13px; align-items:center; flex-wrap:wrap; }
.pf-meta .mi{ display:inline-flex; align-items:center; gap:6px; }
.pf-cats{ display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.pcat{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600;
  padding:5px 11px; border-radius:var(--pill); background:var(--primary-soft); color:var(--primary);
  border:1px solid transparent; }
.pcat:hover{ border-color:var(--primary); }
/* Neon glow on the avatar + name, scaled by the Supporter glow slider (--glowk)
   and killed by no-glow themes (--glow-on). A crisp accent ring around the
   avatar makes the strength visible on any background; the soft bloom widens
   with it. */
.pcustom .pf-ava{ box-shadow:
  0 0 0 calc(2px*var(--glowk)*var(--glow-on)) rgb(var(--primary-rgb) / calc(.95*var(--glow-on))),
  0 0 calc(34px*var(--glowk)) rgb(var(--primary-rgb) / calc(.6*var(--glowk)*var(--glow-on))); }
.pcustom .pf-id h1{ text-shadow:0 0 calc(5px*var(--glowk)) rgb(var(--primary-rgb) / calc(.95*var(--glow-on))),
  0 0 calc(28px*var(--glowk)) rgb(var(--primary-rgb) / calc(.85*var(--glowk)*var(--glow-on))); }
.pf-actions{ display:flex; gap:10px; padding-bottom:8px; }

.pf-grid{ display:grid; grid-template-columns:320px 1fr; gap:24px; margin-top:30px; align-items:start; }
.panel{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; }
.panel + .panel{ margin-top:16px; }
.panel h3{ font-size:15px; font-family:var(--fdisp); margin-bottom:14px; display:flex; align-items:center; justify-content:space-between; }
.panel .lead{ color:var(--muted); font-size:14px; line-height:1.6; }
.kv{ display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--border); font-size:13.5px; }
.kv:last-child{ border-bottom:0; } .kv .k{ color:var(--muted); } .kv .v{ font-weight:600; font-family:var(--fmono); }
.taglist{ display:flex; flex-wrap:wrap; gap:7px; }
.cap-meter{ height:8px; border-radius:99px; background:var(--surface2); overflow:hidden; margin-top:10px; }
.cap-meter i{ display:block; height:100%; background:linear-gradient(90deg,var(--primary),var(--accent)); border-radius:99px; }

.portfolio{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.portfolio image-slot{ width:100%; height:150px; border-radius:var(--radius-sm); border:1px solid var(--border); }
.svc{ display:flex; align-items:center; gap:16px; padding:16px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface2); }
.svc + .svc{ margin-top:10px; }
.svc .si{ width:40px; height:40px; border-radius:10px; background:var(--primary-soft); color:var(--primary); display:grid; place-items:center; flex:0 0 auto; }
.svc .st{ font-weight:700; font-size:14.5px; } .svc .ss{ color:var(--muted); font-size:12.5px; margin-top:2px; }
.svc .sp{ margin-left:auto; text-align:right; flex:0 0 auto; } .svc .sp b{ font-family:var(--fmono); font-size:14px; white-space:nowrap; } .svc .sp > span{ display:block; color:var(--faint); font-size:11px; }

/* reviews + categorized scores */
.scorebar{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:6px; }
.score{ text-align:center; padding:14px; border-radius:var(--radius-sm); background:var(--surface2); border:1px solid var(--border); }
.score b{ font-family:var(--fdisp); font-size:24px; display:block; color:var(--accent); }
.score span{ color:var(--faint); font-size:11.5px; font-weight:600; }
.review{ padding:16px 0; border-bottom:1px solid var(--border); } .review:last-child{ border-bottom:0; }
.review .rh{ display:flex; align-items:center; gap:10px; }
.review .rn{ font-weight:700; font-size:13.5px; } .review .rd{ color:var(--faint); font-size:12px; margin-left:auto; }
.review p{ color:var(--muted); font-size:13.5px; margin-top:9px; line-height:1.55; }

/* Rendered markdown prose (service descriptions, bios, reviews, jobs, ToS).
   Inherits the container colour/size; only structural + element styles here. */
.prose{ line-height:1.55; overflow-wrap:anywhere; }
.prose > :first-child{ margin-top:0; } .prose > :last-child{ margin-bottom:0; }
.prose p{ margin:0 0 8px; }
.prose ul, .prose ol{ margin:6px 0 8px; padding-left:20px; }
.prose li{ margin:3px 0; }
.prose strong, .prose b{ color:var(--ink); font-weight:700; }
.prose a{ color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
.prose code{ font-family:var(--fmono); background:var(--surface2); padding:1px 5px; border-radius:5px; font-size:.92em; }
.prose blockquote{ margin:8px 0; padding-left:12px; border-left:2px solid var(--border2); color:var(--faint); }
.prose h3, .prose h4{ font-family:var(--fdisp); margin:10px 0 6px; }
.prose hr{ border:0; border-top:1px solid var(--border); margin:12px 0; }
/* In chat bubbles the text colour is fixed (white on own messages), so bold +
   links inherit it instead of the default prose colours. */
.bubble strong, .bubble a, .tp-msg strong, .tp-msg a{ color:inherit; }
.review .proj{ font-size:11.5px; color:var(--accent); margin-top:8px; font-family:var(--fmono); }

/* ------------------------------------------------------------ COMMISSION */
.cm-top{ display:flex; align-items:flex-start; gap:18px; }
.cm-top h1{ font-size:28px; }
.cm-sub{ color:var(--muted); font-size:13.5px; margin-top:7px; display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.cm-id{ font-family:var(--fmono); font-size:12px; color:var(--faint); padding:3px 9px; border:1px solid var(--border); border-radius:var(--pill); }
.parties{ display:inline-flex; align-items:center; gap:9px; }
.party{ display:inline-flex; align-items:center; gap:8px; }
.party .pn{ font-weight:600; font-size:13px; }
.party .arrow{ color:var(--faint); }

.cm-pipe-card{ margin-top:22px; padding:22px; border-radius:var(--radius); background:var(--surface);
  border:1px solid var(--border); }
.cm-pipe-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.cm-pipe-head .lbl{ font-size:13px; color:var(--muted); }
.cm-pipe-head .lbl b{ color:var(--ink); }

.cm-grid{ display:grid; grid-template-columns:1fr 340px; gap:22px; margin-top:22px; align-items:start; }
.spec{ display:flex; gap:12px; padding:15px 0; border-bottom:1px solid var(--border); }
.spec:last-child{ border-bottom:0; }
.spec .sic{ width:34px; height:34px; border-radius:9px; background:var(--surface2); color:var(--accent);
  display:grid; place-items:center; flex:0 0 auto; }
.spec .sl{ font-size:12px; color:var(--faint); font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.spec .sv{ font-size:14px; margin-top:3px; line-height:1.5; } .spec .sv b{ font-family:var(--fmono); }
.deliverable{ display:flex; align-items:center; gap:10px; font-size:13.5px; padding:7px 0; }
.deliverable .dc{ width:18px; height:18px; border-radius:5px; background:var(--accent-soft); color:var(--accent);
  display:grid; place-items:center; flex:0 0 auto; }

.attach{ display:flex; align-items:center; gap:11px; padding:11px 13px; border:1px solid var(--border);
  border-radius:var(--radius-sm); background:var(--surface2); font-size:13px; cursor:pointer; }
.attach + .attach{ margin-top:8px; } .attach .af{ color:var(--accent); }
.attach .asz{ margin-left:auto; color:var(--faint); font-size:11.5px; font-family:var(--fmono); }

/* right rail */
.rail-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; }
.rail-card + .rail-card{ margin-top:16px; }
.rail-card h3{ font-size:14px; margin-bottom:13px; }
.actionbar{ position:sticky; top:82px; }
.price-big{ font-family:var(--fdisp); font-size:32px; } .price-sub{ color:var(--faint); font-size:12.5px; margin-top:2px; }

.timeline{ position:relative; } .tl-item{ display:flex; gap:12px; padding-bottom:16px; position:relative; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item .tld{ width:10px; height:10px; border-radius:50%; background:var(--primary); margin-top:4px; flex:0 0 auto;
  box-shadow:var(--glow); z-index:1; }
.tl-item.muted .tld{ background:var(--border2); box-shadow:none; }
.tl-item::before{ content:""; position:absolute; left:4px; top:14px; bottom:-2px; width:2px; background:var(--border); }
.tl-item:last-child::before{ display:none; }
.tl-item .tt{ font-size:13px; font-weight:600; } .tl-item .ts{ color:var(--faint); font-size:11.5px; margin-top:2px; }

.thread-prev{ display:flex; flex-direction:column; gap:10px; }
.tp-msg{ font-size:13px; padding:9px 12px; border-radius:12px; max-width:88%; line-height:1.45; overflow-wrap:anywhere; }
.tp-msg.them{ background:var(--surface2); align-self:flex-start; border-bottom-left-radius:4px; }
.tp-msg.me{ background:var(--primary); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }

/* -------------------------------------------------------------- MESSAGES */
.msg-wrap{ max-width:1160px; margin:0 auto; padding:24px 30px; }
.msg-app{ display:grid; grid-template-columns:300px 1fr 280px; height:calc(100vh - 66px - 122px);
  min-height:520px; border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; background:var(--surface); }
.msg-list{ border-right:1px solid var(--border); display:flex; flex-direction:column; background:var(--bg2); }
.msg-list .lh{ padding:18px 18px 12px; } .msg-list .lh h2{ font-size:19px; }
.msg-search{ margin:0 14px 8px; display:flex; align-items:center; gap:8px; height:38px; padding:0 12px;
  border-radius:var(--pill); background:var(--surface2); border:1px solid var(--border); color:var(--faint); font-size:13px; }
.convos{ overflow:auto; flex:1; padding:6px; }
.convo{ display:flex; gap:11px; padding:12px; border-radius:var(--radius-sm); cursor:pointer; transition:.12s; }
.convo:hover{ background:var(--surface2); } .convo.on{ background:var(--surface2); box-shadow:inset 2px 0 0 var(--primary); }
.convo .cv-ava{ width:42px; height:42px; border-radius:12px; font-size:15px; flex:0 0 auto; }
.convo .cv-main{ flex:1; min-width:0; }
.convo .cv-top{ display:flex; align-items:center; gap:8px; } .convo .cv-nm{ font-weight:700; font-size:13.5px; }
.convo .cv-t{ margin-left:auto; color:var(--faint); font-size:11px; }
.convo .cv-snip{ color:var(--muted); font-size:12.5px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.convo .cv-unread{ width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:var(--glow-accent); flex:0 0 auto; align-self:center; }

.thread{ display:flex; flex-direction:column; min-width:0; }
.thread-head{ display:flex; align-items:center; gap:12px; padding:14px 20px; border-bottom:1px solid var(--border); }
.thread-head .th-nm{ font-weight:700; font-size:14.5px; } .thread-head .th-st{ color:var(--faint); font-size:12px; }
.thread-body{ flex:1; overflow:auto; padding:22px 24px; display:flex; flex-direction:column; gap:14px; }
/* Bubbles render inside #bubbles; make it a flex column so .me/.them can
   align right vs left. */
#bubbles{ display:flex; flex-direction:column; gap:10px; }
.ctx-card{ display:flex; align-items:center; gap:13px; padding:13px 15px; border:1px solid var(--border2);
  border-radius:var(--radius-sm); background:var(--surface2); cursor:pointer; }
.ctx-card .ci{ width:36px; height:36px; border-radius:9px; background:var(--primary-soft); color:var(--primary); display:grid; place-items:center; flex:0 0 auto; }
.ctx-card .ct{ font-weight:700; font-size:13.5px; } .ctx-card .cs{ color:var(--muted); font-size:12px; margin-top:1px; }
.daydiv{ text-align:center; color:var(--faint); font-size:11.5px; font-family:var(--fmono); margin:4px 0; }
.bubble{ max-width:70%; padding:11px 14px; border-radius:16px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.bubble.them{ background:var(--surface2); align-self:flex-start; border-bottom-left-radius:5px; }
.bubble.me{ background:var(--primary); color:#fff; align-self:flex-end; border-bottom-right-radius:5px; }
.bubble .bt{ font-size:10.5px; opacity:.6; margin-top:5px; font-family:var(--fmono); }
.composer{ display:flex; align-items:center; gap:10px; padding:14px 18px; border-top:1px solid var(--border); }
.composer .field{ flex:1; height:44px; display:flex; align-items:center; padding:0 16px; border-radius:var(--pill);
  background:var(--surface2); border:1px solid var(--border); color:var(--faint); font-size:14px; }

.thread-rail{ border-left:1px solid var(--border); padding:20px; overflow:auto; background:var(--bg2); }
.tr-ava{ width:64px; height:64px; border-radius:18px; font-size:24px; margin:4px auto 12px; }
.tr-name{ text-align:center; font-family:var(--fdisp); font-weight:600; font-size:17px; }
.tr-hd{ text-align:center; color:var(--faint); font-size:12.5px; margin-top:2px; }
.tr-sec{ margin-top:20px; } .tr-sec .tl{ font-size:11.5px; color:var(--faint); font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; }
