/* ATCODEX Hub - built on the site's base (home.css: font, colours, footer). Arabic, right to left, phone first. */
.hub {
  --hub: #a78bfa; --hub2: #6a4cf0; --card: linear-gradient(160deg, #0f2a52f0, #071731f5 55%, #061226); --edge: #4f7fbf40;
  --field: #0a1a36; --field-edge: #2c4a78; --ok: #4fd18b; --wait: #f3c77a; --bad: #ff7b8a;
  min-height: 100svh; display: flex; flex-direction: column;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, #2b1f7a55, transparent 70%), radial-gradient(ellipse 50% 30% at 90% 10%, #17407e55, transparent 70%), var(--bg);
}
.hub ::selection { background: #7c5cff66; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hub .ico { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; flex: none; }
.hub .ico svg { width: 100%; height: 100%; }
.hub :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- header ---------- */
.hub-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; height: 68px; padding: 0 clamp(16px, 4vw, 48px);
  background: #030b1bd9; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hub-brand { display: flex; align-items: center; gap: 10px; direction: ltr; font: 800 19px/1 Arial, sans-serif; letter-spacing: .5px; white-space: nowrap; }
.hub-brand img { width: 38px; height: 38px; border-radius: 11px; }
.hub-brand b { color: var(--hub); }
.hub-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; margin-inline-start: -10px; border-radius: 999px; border: 1px solid #a78bfa66; background: #7c5cff2e;
  color: #ddd4ff; font: 800 14px/1 Arial, sans-serif; letter-spacing: .5px; direction: ltr; }
.hub-tag:hover { background: #7c5cff4d; }
.hub-nav { display: flex; gap: 6px; margin-inline-start: 10px; font-size: 14.5px; }
.hub-nav a { padding: 8px 14px; border-radius: 999px; color: #aebdd4; transition: color .2s, background .2s; }
.hub-nav a:hover { color: #fff; background: #ffffff0d; }
.hub-nav a[aria-current="page"] { color: #fff; background: #7c5cff2e; }
.hub-account { margin-inline-start: auto; }
.hub-menu { position: relative; }
.hub-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid #3d5f8f; background: #10264a80; font-size: 14px; max-width: 220px; }
.hub-menu summary::-webkit-details-marker { display: none; }
.hub-menu-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-menu-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 200px; display: grid; padding: 6px; border-radius: 14px;
  background: #0b1a35; border: 1px solid #3d5f8f; box-shadow: 0 20px 50px #000a; }
.hub-menu-list :is(a, button) { padding: 10px 12px; border-radius: 9px; text-align: start; font-size: 14.5px; }
.hub-menu-list :is(a, button):hover { background: #ffffff10; }

/* ---------- buttons ---------- */
.hub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.2; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.hub-btn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.hub-btn.wide { width: 100%; }
.hub-btn.primary { color: #fff; background: linear-gradient(135deg, #7d63ff, #5536e0); box-shadow: 0 10px 26px #6a4cf044; }
.hub-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px #6a4cf066; }
.hub-btn.ghost { border: 1px solid #3d5f8f; background: #10264a80; color: #dbe9ff; }
.hub-btn.ghost:hover { border-color: #6f97d0; background: #18386a; }
.hub-btn.danger { border: 1px solid #ff7b8a55; color: #ffb3bc; background: #ff7b8a12; }
.hub-btn.danger:hover { background: #ff7b8a26; }
.hub-btn.google { color: #1f1f1f; background: #fff; border: 1px solid #dadce0; min-height: 40px; font-weight: 600; font-size: 14px; }
.hub-btn.google:hover { box-shadow: 0 6px 18px #0006; }
.hub-btn:disabled { opacity: .55; cursor: progress; transform: none; }
.g-mark { width: 18px; height: 18px; display: inline-grid; }
.g-mark svg { width: 100%; height: 100%; }
.hub-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.hub-link:hover { color: #fff; }

/* ---------- layout ---------- */
.hub-main { flex: 1; width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; outline: none; }
.hub-loading { color: var(--muted); text-align: center; padding: 40px 0; }
.hub-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 24px; }
.hub-head h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.35; outline: none; flex: 1 1 auto; }
.hub-head .hub-lead { flex-basis: 100%; order: 3; margin: 0; color: var(--muted); max-width: 760px; }
.hub-back { display: inline-block; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.hub-back:hover { color: #fff; }

/* ---------- hero ---------- */
.hub-hero { position: relative; text-align: center; padding: 26px 0 30px; }
.hub-kicker { display: inline-block; padding: 4px 14px; border-radius: 999px; border: 1px solid #a78bfa44; background: #a78bfa14; color: var(--hub);
  font: 600 11px Arial, sans-serif; letter-spacing: 2px; direction: ltr; }
.hub-hero h1 { margin: 14px 0 4px; direction: ltr; font: 800 clamp(40px, 6vw, 72px)/1.05 Arial, sans-serif; letter-spacing: 2px; outline: none;
  background: linear-gradient(100deg, #fff 0%, #d8ecff 45%, #8fdcff 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hub-hero h1 b { background: linear-gradient(100deg, #c4b5fd, #8b6cff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hub-hero-tagline { max-width: 820px; margin: 12px auto 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; line-height: 1.5; color: #eef2fb; }
.hub-hero-lead { max-width: 820px; margin: 10px auto 0; color: var(--soft); font-size: clamp(15.5px, 1.4vw, 18px); line-height: 2; }
.hub-hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hub-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; margin: 30px auto 0; padding: 0; text-align: start; }
.hub-steps li { display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px; background: #0c1f40a6; border: 1px solid var(--line); }
.hub-steps b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #7c5cff33; color: #d6ccff; font: 800 15px Arial, sans-serif; }
.hub-steps strong { display: block; font-size: 15.5px; }
.hub-steps span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* ---------- filters and grid ---------- */
.hub-section { margin-top: 10px; }
.hub-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; margin-bottom: 20px; border-radius: 18px; background: #0a1a36b3; border: 1px solid var(--line); }
.hub-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--field-edge); color: var(--muted); }
.hub .hub-search input { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text); font: inherit; outline: none; }
.hub-search:focus-within { border-color: var(--cyan); }
.hub-filters select { flex: 0 1 160px; }
.hub select, .hub input:not([type="checkbox"], [type="radio"], [type="file"]), .hub textarea {
  width: 100%; min-height: 44px; padding: 9px 13px; border-radius: 12px; border: 1px solid var(--field-edge); background: var(--field); color: var(--text); font: inherit; font-size: 15px; }
.hub select { appearance: none; padding-inline-end: 36px; background-repeat: no-repeat; background-size: 14px 14px; background-position: left 13px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fb2e0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
html[dir="ltr"] .hub select { background-position: right 13px center; }
.hub select option { background: #0a1a36; color: var(--text); }
.hub select:disabled { opacity: .5; }
.hub :is(select, input, textarea):focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px #70d8ff22; }
.hub textarea { resize: vertical; line-height: 1.9; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.hub-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--edge);
  box-shadow: 0 18px 40px #0005; transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.hub-card:hover { transform: translateY(-5px); border-color: #a78bfa80; box-shadow: 0 26px 56px #0007, 0 0 40px #7c5cff22; }
.hub-card-media { position: relative; aspect-ratio: 16 / 10; background: #08152c; overflow: hidden; }
.hub-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hub-card:hover .hub-card-media img { transform: scale(1.04); }
.hub-card-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #3d5f8f; font-size: 40px; }
.hub-card-count, .hub-card-status { position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 4px; }
.hub-card-count { inset-inline-end: 10px; padding: 2px 9px; border-radius: 999px; background: #030b1bcc; font-size: 12px; }
.hub-card-status { inset-inline-start: 10px; }
.hub-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.hub-card h3 { margin: 0; font-size: 17px; line-height: 1.6; }
.hub-card-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.hub-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-dl { display: inline-flex; align-items: center; gap: 4px; direction: ltr; }
.hub-more { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- chips ---------- */
.hub-chips, .hub-models { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hub-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 10px; border-radius: 999px; font-size: 12.5px; background: #ffffff0d; border: 1px solid #ffffff1c; color: var(--soft); }
.hub-chip.grade { background: #7c5cff26; border-color: #a78bfa55; color: #ddd4ff; font-weight: 700; }
.hub-chip.soft { color: var(--muted); }
.hub-chip.bad { background: #ff7b8a1c; border-color: #ff7b8a55; color: #ffc2c9; }
.hub-model { --m: #8fb2e0; display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; min-height: 24px; border-radius: 8px; font-size: 12.5px; direction: ltr;
  background: color-mix(in srgb, var(--m) 14%, transparent); border: 1px solid color-mix(in srgb, var(--m) 40%, transparent); color: #e8eef9; }
.hub-model i { width: 7px; height: 7px; border-radius: 50%; background: var(--m); }
[data-model="claude"] { --m: #e0896a; } [data-model="gemini"] { --m: #6f9cff; } [data-model="chatgpt"] { --m: #3ccf9f; } [data-model="deepseek"] { --m: #5b7bff; }
[data-model="kimi"] { --m: #b79cff; } [data-model="grok"] { --m: #d5dbe6; } [data-model="copilot"] { --m: #45b4f0; } [data-model="qwen"] { --m: #8f86ff; }
[data-model="meta"] { --m: #3d8bff; } [data-model="mistral"] { --m: #ff9d3d; } [data-model="perplexity"] { --m: #2fc1c4; } [data-model="other"] { --m: #a8b8cf; }
.hub-status { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; min-height: 24px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #030b1bd9; }
.hub-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hub-status.ok { color: var(--ok); border: 1px solid #4fd18b55; }
.hub-status.wait { color: var(--wait); border: 1px solid #f3c77a55; }
.hub-status.bad { color: var(--bad); border: 1px solid #ff7b8a55; }

/* ---------- empty / gate ---------- */
.hub-empty, .hub-gate { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 50px 20px; border-radius: 24px; border: 1px dashed #3d5f8f80; background: #0a1a3666; }
.hub-empty > .ico, .hub-gate > .ico { width: 44px; height: 44px; color: var(--hub); }
.hub-empty h3, .hub-gate h1 { margin: 4px 0 0; font-size: 21px; outline: none; }
.hub-empty p, .hub-gate p { margin: 0 0 8px; color: var(--muted); max-width: 520px; }
.hub-gate { max-width: 620px; margin: 30px auto; border-style: solid; }
.hub-gate small { color: var(--muted); font-size: 13px; }
.hub-gate small a { color: var(--cyan); }
.hub-gate.done > .ico { color: var(--ok); }
.hub-error-box { color: var(--bad); text-align: center; }

/* ---------- project page ---------- */
.hub-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; background: #f3c77a12; border: 1px solid #f3c77a44; }
.hub-banner.bad { background: #ff7b8a12; border-color: #ff7b8a44; }
.hub-project { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 26px; align-items: start; }
.hub-project-media { display: grid; gap: 10px; }
.hub-shot { width: 100%; max-height: 640px; object-fit: contain; border-radius: 20px; background: #08152c; border: 1px solid var(--edge); }
.hub-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.hub-thumbs button { flex: none; width: 88px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
.hub-thumbs button.on, .hub-thumbs button:hover { opacity: 1; border-color: var(--hub); }
.hub-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hub-project-side { position: sticky; top: 88px; display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--edge); }
.hub-project-side h1 { margin: 0; font-size: clamp(23px, 2.4vw, 30px); line-height: 1.45; outline: none; }
.hub-author-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #ffffff08; border: 1px solid var(--line); }
.hub-author-row > .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #7c5cff33; color: #d6ccff; }
.hub-author-row b { display: block; font-size: 15px; }
.hub-author-row small { display: block; color: var(--muted); font-size: 12.5px; }
.hub-author-row:hover { border-color: #a78bfa66; }
.hub-note { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.hub-side-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--soft); }
.hub-side-row.small { font-size: 13px; color: var(--muted); }
.hub-side-row.small span { display: inline-flex; align-items: center; gap: 5px; }
.hub-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #030b1b80; font-size: 14px; }
.hub-facts dt { color: var(--muted); }
.hub-facts dd { margin: 0; }
.hub-license { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.hub-license .ico { color: var(--ok); }
.hub-license b { color: var(--soft); direction: ltr; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hub-owner { display: contents; }
.hub-block { margin-top: 26px; padding: 22px; border-radius: 20px; background: #0a1a36a6; border: 1px solid var(--line); }
.hub-block h2 { margin: 0 0 10px; font-size: 19px; }
.hub-block-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hub-block-head h2 { margin: 0; }
.hub-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; color: var(--soft); line-height: 2; }
.hub-prompt { margin: 10px 0 0; padding: 16px; border-radius: 14px; background: #020814; border: 1px solid #2c4a78; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 14px/1.9 Cairo, ui-monospace, Consolas, monospace; color: #dbe7f8; max-height: 460px; overflow: auto; }
.hub-hint { color: var(--muted); font-size: 13px; line-height: 1.8; }
.hub-report { background: none; border-style: dashed; }
.hub-ok { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ok); }

/* ---------- forms ---------- */
.hub-form { display: grid; gap: 18px; max-width: 860px; }
.hub-form.compact { max-width: 520px; gap: 12px; }
.hub-form fieldset { display: grid; gap: 16px; margin: 0; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: #0a1a36a6; min-width: 0; }
.hub-form legend { padding: 0 8px; font-weight: 800; color: var(--hub); }
.hub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hub-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.hub-field > label { font-weight: 700; font-size: 14.5px; }
.hub-field .hub-hint { margin: 0; }
.hub-open-hint { margin: -6px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed #7c5cff59; background: #7c5cff12; }
.hub-error { color: var(--bad); font-size: 13px; }
.hub-error:empty { display: none; }
.hub-field.has-error :is(input, select, textarea, .hub-seg, .hub-pills, .hub-drop) { border-color: var(--bad) !important; }
.hub-count { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; text-align: end; }
.hub-seg { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid transparent; border-radius: 14px; }
.hub-seg label, .hub-pill { position: relative; cursor: pointer; }
.hub-seg input, .hub-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hub-seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--field-edge); background: var(--field); transition: background .2s, border-color .2s; }
.hub-seg input:checked + span { background: #7c5cff33; border-color: var(--hub); color: #fff; font-weight: 700; }
.hub-seg input:focus-visible + span, .hub-pill input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hub-pills { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid transparent; border-radius: 14px; }
.hub-pill { --m: #8fb2e0; }
.hub-pill span { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--field-edge); background: var(--field); direction: ltr; transition: background .2s, border-color .2s; }
.hub-pill span i { width: 8px; height: 8px; border-radius: 50%; background: var(--m); }
.hub-pill input:checked + span { background: color-mix(in srgb, var(--m) 22%, #0a1a36); border-color: var(--m); color: #fff; font-weight: 700; }
.hub-pills.small { gap: 6px; }
.hub-pill-btn { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--field-edge); background: var(--field); font-size: 13px; text-align: start; }
.hub-pill-btn:hover { border-color: var(--hub); }
.hub-drop { padding: 12px; border-radius: 16px; border: 1.5px dashed #3d5f8f; background: #061226; transition: border-color .2s, background .2s; }
.hub-drop.over { border-color: var(--hub); background: #7c5cff14; }
.hub-uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.hub-upload { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #08152c; border: 1px solid var(--edge); }
.hub-upload img { width: 100%; height: 100%; object-fit: cover; }
.hub-upload figcaption { position: absolute; bottom: 6px; inset-inline-start: 6px; padding: 0 8px; border-radius: 999px; background: #7c5cffd9; font-size: 11.5px; font-weight: 700; }
.hub-upload button { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #030b1bd9; color: #fff; }
.hub-upload button:hover { background: #c53a4b; }
.hub-upload.add { display: grid; place-content: center; justify-items: center; gap: 2px; cursor: pointer; border-style: dashed; color: var(--soft); }
.hub-upload.add .ico { width: 30px; height: 30px; color: var(--hub); }
.hub-upload.add small { color: var(--muted); font-size: 12px; direction: ltr; }
.hub-upload.add:hover { border-color: var(--hub); }
.hub-filebox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px dashed #3d5f8f; background: #061226; }
.hub-filechip { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; padding: 8px 12px; border-radius: 12px; background: #0b1a35; border: 1px solid var(--field-edge); }
.hub-filechip > .ico { width: 22px; height: 22px; color: var(--hub); }
.hub-filechip > span { flex: 1; min-width: 0; display: grid; }
.hub-filechip b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-filechip small { font-size: 12px; color: var(--muted); }
.hub-filebox > label { cursor: pointer; }
.hub-field.has-error .hub-filebox { border-color: var(--bad); }
.hub-consent label { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid #a78bfa44; background: #7c5cff12; font-weight: 500; line-height: 1.9; cursor: pointer; }
.hub-consent input { flex: none; width: 20px; height: 20px; margin-top: 5px; accent-color: #7d63ff; }
.hub-consent a { color: var(--cyan); text-decoration: underline; }
.hub-progress { height: 6px; border-radius: 999px; background: #ffffff14; overflow: hidden; }
.hub-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7d63ff, var(--cyan)); transition: width .2s; }
.hub-private { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #4fd18b10; border: 1px solid #4fd18b40; }
.hub-private .ico { color: var(--ok); width: 24px; height: 24px; margin-top: 3px; }
.hub-private p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.9; }
.hub-danger { border-color: #ff7b8a33; max-width: 860px; }
.hub-danger p { color: var(--muted); margin: 0 0 12px; }

/* ---------- my projects ---------- */
.hub-mine-list { display: grid; gap: 12px; }
.hub-mine { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--edge); }
.hub-mine-cover { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #08152c; display: grid; place-items: center; color: #3d5f8f; }
.hub-mine-cover img { width: 100%; height: 100%; object-fit: cover; }
.hub-mine-body { display: grid; gap: 6px; min-width: 0; }
.hub-mine-body h3 { margin: 0; font-size: 17px; }
.hub-mine-tools { display: flex; gap: 8px; }
.hub-review-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: #ff7b8a12; border: 1px solid #ff7b8a33; color: #ffd0d6; font-size: 14px; }

/* ---------- creator page ---------- */
.hub-profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.hub-profile-head h1 { margin: 0; outline: none; font-size: clamp(24px, 3vw, 32px); }
.hub-profile-head p { margin: 0; color: var(--muted); }
.hub-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: linear-gradient(135deg, #7d63ff, #2f7bff); }

/* ---------- admin ---------- */
.hub-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; }
.hub-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.hub-tabs a b { min-width: 24px; padding: 0 7px; border-radius: 999px; background: #ffffff14; text-align: center; font-size: 12.5px; color: var(--soft); }
.hub-tabs a.on { color: #fff; border-color: var(--hub); background: #7c5cff26; }
.hub-review-list { display: grid; gap: 16px; }
.hub-review { display: grid; grid-template-columns: 280px 1fr; gap: 18px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--edge); }
.hub-review.report { grid-template-columns: 1fr; }
.hub-review-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; align-content: start; }
.hub-review-shots a:first-child { grid-column: 1 / -1; }
.hub-review-shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #08152c; }
.hub-review-body { display: grid; gap: 10px; min-width: 0; }
.hub-review-body h3 { margin: 0; font-size: 19px; }
.hub-review-body h3 a:hover, .hub-mine-body h3 a:hover { color: var(--hub); }
.hub-review-body .hub-pre { max-height: 220px; overflow: auto; font-size: 14.5px; }
.hub-review-prompt summary { cursor: pointer; color: var(--hub); font-weight: 700; }
.hub-drive { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.hub-drive a { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); overflow-wrap: anywhere; }
.hub-uploader { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #4fd18b0d; border: 1px solid #4fd18b33; font-size: 14px; }
.hub-uploader dt { color: var(--muted); }
.hub-uploader dd { margin: 0; overflow-wrap: anywhere; }
.hub-note-box { display: grid; gap: 8px; }

/* ---------- terms ---------- */
.hub-terms { display: grid; gap: 0; max-width: 860px; }
.hub-terms .hub-block { margin-top: 14px; }
.hub-terms ul { margin: 0; padding-inline-start: 20px; color: var(--soft); line-height: 2; }

/* ---------- toasts ---------- */
.hub-toasts { position: fixed; bottom: 20px; inset-inline: 0; z-index: 60; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.hub-toast { max-width: 560px; padding: 12px 18px; border-radius: 14px; background: #10264a; border: 1px solid #3d5f8f; box-shadow: 0 16px 40px #000a; font-size: 14.5px; transition: opacity .5s, transform .5s; pointer-events: auto; }
.hub-toast.ok { border-color: #4fd18b88; }
.hub-toast.bad { border-color: #ff7b8a88; background: #2a1020; }
.hub-toast.out { opacity: 0; transform: translateY(10px); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hub-project { grid-template-columns: 1fr; }
  .hub-project-side { position: static; }
  .hub-review { grid-template-columns: 1fr; }
  .hub-review-shots { grid-template-columns: repeat(4, 1fr); }
  .hub-review-shots a:first-child { grid-column: auto; }
}
@media (max-width: 820px) {
  .hub-top { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 8px 14px; }
  .hub-nav { order: 3; flex-basis: 100%; margin: 0; overflow-x: auto; }
  .hub-nav a { white-space: nowrap; padding: 6px 12px; }
  .hub-steps { grid-template-columns: 1fr; }
  .hub-row { grid-template-columns: 1fr; }
  .hub-mine { grid-template-columns: 110px 1fr; }
  .hub-mine-tools { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hub-main { width: calc(100% - 32px); padding-top: 18px; }
  .hub-brand { font-size: 17px; } .hub-brand img { width: 34px; height: 34px; }
  .hub-filters { padding: 10px; } .hub-filters select { flex: 1 1 calc(50% - 5px); }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-form fieldset, .hub-block, .hub-project-side { padding: 16px; }
  .hub-menu-name { max-width: 110px; }
  .hub-review-shots { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hub *, .hub *::before, .hub *::after { transition: none !important; animation: none !important; } }
