/* Olancers app styles */
[hidden] { display: none !important; }
:root {
  --ink: #14171C;
  --ink-2: #3D4350;
  --muted: #4A5160;
  --faint: #6B7280;
  --line: #E3E7ED;
  --line-2: #EBEDF0;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --bg-tint: #F4F7FC;
  --blue: #0B63E5;
  --blue-dark: #0A55C4;
  --blue-soft: #EAF1FE;
  --navy: #0B1830;
  --green: #067647;
  --green-soft: #ECFDF3;
  --red: #B42318;
  --red-soft: #FEF3F2;
  --amber: #B45309;
  --amber-soft: #FFF4E5;
  --purple: #6D28D9;
  --purple-soft: #F3EEFF;
  --radius: 14px;
  --shadow: 0 16px 40px -24px rgba(20, 23, 28, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex-shrink: 0; vertical-align: middle; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.strong { font-weight: 600; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grow { flex: 1; min-width: 0; }

/* Logo */
.logo { font-size: 25px; font-weight: 800; letter-spacing: -1.2px; color: var(--ink); display: inline-flex; align-items: baseline; line-height: 1; }
.logo-o { display: inline-block; width: .72em; height: .72em; border-radius: 50%; border: .18em solid var(--blue); margin-right: .04em; position: relative; top: .04em; }
.logo-dark { color: #fff; }
.logo-dark .logo-o { border-color: #6FA3F7; }
a.brand:hover { text-decoration: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--line-2); background: #fff; position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.main-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.header-search { flex: 1; max-width: 360px; position: relative; }
.header-search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px 0 38px; font: inherit; font-size: 14px; background: var(--bg-soft); }
.header-search .ic { position: absolute; left: 13px; top: 10px; color: var(--faint); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); text-decoration: none; }
.dot-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff; }
.dot-count[hidden] { display: none; }
.wallet-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 4px; }
.wallet-chip:hover { text-decoration: none; border-color: #C9CED6; }
.wallet-chip.warn { border-color: #F5C2C0; background: var(--red-soft); color: var(--red); }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 50; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 15px; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg-soft); text-decoration: none; }
.menu-panel hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }
.menu-head { padding: 10px 12px 8px; }
.nav-toggle { display: none; }
@media (max-width: 980px) {
  .header-search { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 18px; gap: 4px; }
  .wallet-chip .lbl { display: none; }
  .locked-cta { order: -1; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 12px; }
  .header-actions { gap: 2px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn { padding: 0 14px; }
  .main-nav.open a.mobile-only { display: block; }
}
.main-nav a.mobile-only { display: none; }

/* Avatars */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; flex-shrink: 0; width: 40px; height: 40px; font-size: 14px; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.av-0 { background: #FCE7F3; color: #9D174D; } .av-1 { background: #D1FAE5; color: #065F46; } .av-2 { background: #EDE9FE; color: #5B21B6; }
.av-3 { background: #FEF3C7; color: #92400E; } .av-4 { background: #DBEAFE; color: #1E40AF; } .av-5 { background: #E0F2F1; color: #115E59; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; color: var(--ink); border-color: #C9CED6; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: #fff; color: var(--red); border-color: #F5C2C0; }
.btn-danger:hover { background: var(--red-soft); }
.btn-green { background: var(--green); color: #fff; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.hint { font-size: 13px; color: var(--faint); }
.input, .select, .textarea { width: 100%; min-height: 46px; border: 1px solid #D0D5DD; border-radius: 10px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #DCE9FD; }
.input.has-error, .select.has-error, .textarea.has-error { border-color: var(--red); }
.field-error { margin: 0; font-size: 13px; color: var(--red); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 12px; color: var(--faint); }
.input-prefix .input { padding-left: 28px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.segmented label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #D0D5DD; border-radius: 12px; padding: 16px; cursor: pointer; }
.segmented input { margin-top: 3px; accent-color: var(--blue); }
.segmented label:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px #DCE9FD; }

/* Skill picker */
.skill-picker { border: 1px solid #D0D5DD; border-radius: 10px; padding: 8px; background: #fff; }
.skill-picker:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #DCE9FD; }
.skill-picker .chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-picker .chosen:empty { display: none; }
.skill-picker .chosen + input { margin-top: 6px; }
.skill-picker input[type=text] { width: 100%; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 6px; }
.skill-options { max-height: 220px; overflow: auto; border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 6px; display: none; }
.skill-options.open { display: block; }
.skill-options button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; font: inherit; font-size: 14px; border-radius: 6px; cursor: pointer; }
.skill-options button:hover, .skill-options button.active { background: var(--blue-soft); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; background: #F1F3F6; color: var(--ink); padding: 5px 10px; border-radius: 999px; }
.chip button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--faint); display: inline-flex; }
a.chip:hover { background: #E6E9EE; text-decoration: none; }
.chip.match { background: var(--blue-soft); color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Cards and panels */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-tight { padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.panel-title { font-size: 18px; font-weight: 700; }
.page-head { padding: 36px 0 24px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.page-body { padding-bottom: 80px; }
.layout-side { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.layout-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .layout-side, .layout-main-side { grid-template-columns: 1fr; } }
.sticky-side { position: sticky; top: 92px; }
@media (max-width: 960px) { .sticky-side { position: static; } }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.b-blue { background: var(--blue-soft); color: var(--blue); }
.b-green { background: var(--green-soft); color: var(--green); }
.b-red { background: var(--red-soft); color: var(--red); }
.b-amber { background: var(--amber-soft); color: var(--amber); }
.b-purple { background: var(--purple-soft); color: var(--purple); }
.b-grey { background: #F1F3F6; color: var(--muted); }

/* Flash */
.flashes { padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; font-size: 15px; border: 1px solid; }
.flash-success { background: var(--green-soft); border-color: #ABEFC6; color: #054F31; }
.flash-error { background: var(--red-soft); border-color: #FECDCA; color: #7A271A; }
.flash-info { background: var(--blue-soft); border-color: #C7DBFB; color: #0A3F8F; }
.flash-warn { background: var(--amber-soft); border-color: #FAD7A4; color: #7A3E06; }

/* Banners */
.banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 22px; border-radius: 14px; }
.banner-red { background: var(--red-soft); border: 1px solid #FECDCA; }
.banner-blue { background: var(--blue-soft); border: 1px solid #C7DBFB; }
.banner-amber { background: var(--amber-soft); border: 1px solid #FAD7A4; }

/* Job cards */
.job-list { display: flex; flex-direction: column; }
.job-card { display: block; padding: 22px 4px; border-bottom: 1px solid var(--line-2); color: inherit; }
.job-card:first-child { border-top: 1px solid var(--line-2); }
.job-card:hover { text-decoration: none; background: linear-gradient(90deg, #FAFBFD, #fff); }
.job-card h3 { font-size: 19px; font-weight: 600; color: var(--ink); }
.job-card:hover h3 { color: var(--blue); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.job-meta .sep::before { content: ''; }
.job-desc { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.job-card .chips { margin-top: 12px; }

/* Filters */
.filters { display: flex; flex-direction: column; gap: 22px; }
.filters h3 { font-size: 15px; font-weight: 700; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.filters legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.filters label.opt { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.filters input[type=radio], .filters input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue); }
.search-bar { display: flex; gap: 8px; }
.search-bar .input { border-radius: 999px; padding-left: 44px; min-height: 52px; }
.search-bar .wrapper { position: relative; flex: 1; }
.search-bar .wrapper .ic { position: absolute; left: 16px; top: 16px; color: var(--faint); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 6px; }
.results-head .select { width: auto; min-height: 40px; padding: 6px 12px; font-size: 14px; }

/* Talent cards */
.talent-card { display: flex; gap: 18px; padding: 22px 4px; border-bottom: 1px solid var(--line-2); color: inherit; }
.talent-card:first-child { border-top: 1px solid var(--line-2); }
.talent-card:hover { text-decoration: none; }
.talent-card:hover h3 { color: var(--blue); }
.talent-card h3 { font-size: 18px; font-weight: 600; color: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-soft); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--green); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .v { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Wallet */
.wallet-hero { background: var(--navy); color: #fff; border-radius: 22px; padding: 32px; }
.wallet-hero .bal { font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-top: 10px; }
.slots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin-top: 22px; }
.slots span { height: 22px; border-radius: 5px; background: rgba(255,255,255,.16); }
.slots span.on { background: #6FA3F7; }

/* Applicants */
.applicant { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.applicant + .applicant { margin-top: 14px; }
.applicant .cover { margin-top: 14px; color: var(--ink-2); font-size: 15px; white-space: pre-line; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.tabs .n { font-weight: 500; color: var(--faint); margin-left: 4px; }

/* Messages */
.msg-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: calc(100vh - 220px); min-height: 520px; }
@media (max-width: 860px) { .msg-layout { grid-template-columns: 1fr; height: auto; } .msg-layout .thread-list.has-active { display: none; } }
.thread-list { border-right: 1px solid var(--line); overflow-y: auto; background: #fff; }
.thread-item { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line-2); color: inherit; }
.thread-item:hover { background: var(--bg-soft); text-decoration: none; }
.thread-item.active { background: var(--blue-soft); }
.thread-item .t { font-weight: 600; font-size: 15px; }
.thread-item .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-item.unread .t::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-left: 8px; vertical-align: middle; }
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--bg-soft); }
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 16px; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: var(--blue); color: #fff; border-color: var(--blue); }
.bubble .time { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 160px; resize: none; }

/* Notifications */
.notif { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); color: inherit; }
.notif:hover { background: var(--bg-soft); text-decoration: none; }
.notif.unread { background: #F8FBFF; }
.notif.unread .nt::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 8px; vertical-align: middle; }
.notif .nt { font-weight: 600; font-size: 15px; color: var(--ink); }
.notif .nb { font-size: 14px; color: var(--muted); margin-top: 2px; }
.notif-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Empty states */
.empty { text-align: center; padding: 56px 24px; border: 1px dashed #D0D5DD; border-radius: var(--radius); }
.empty h3 { font-size: 19px; }
.empty p { color: var(--muted); margin-top: 6px; }
.empty .btn { margin-top: 18px; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 28px; }
.pager span.pager-info { border: 0; min-width: 0; color: var(--muted); padding: 0 8px 0 0; width: 100%; justify-content: center; height: auto; margin-bottom: 4px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; padding: 0 10px; }
.pager span.cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a:hover { text-decoration: none; border-color: var(--ink); }

/* Auth */
.auth { min-height: calc(100vh - 69px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--navy); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.035em; }
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: #C8D2E3; }
.auth-side li { display: flex; gap: 12px; }
.auth-side li .ic { color: #6FA3F7; margin-top: 3px; }
.auth-main { padding: 56px 24px; display: flex; align-items: center; justify-content: center; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 32px; letter-spacing: -0.03em; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Simulated checkout */
.checkout { max-width: 980px; margin: 40px auto 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.checkout .summary { background: var(--bg-soft); padding: 40px; border-right: 1px solid var(--line); }
.checkout .payform { padding: 40px; }
.test-pill { display: inline-flex; font-size: 12px; font-weight: 700; color: var(--amber); background: var(--amber-soft); border: 1px solid #FAD7A4; padding: 3px 9px; border-radius: 6px; }
@media (max-width: 800px) { .checkout { grid-template-columns: 1fr; margin: 20px 16px 60px; } .checkout .summary { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Prose */
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; color: var(--ink); }
.prose ul { padding-left: 20px; }

/* Footer */
.app-footer { border-top: 1px solid var(--line-2); padding: 28px 0; font-size: 14px; color: var(--faint); }
.app-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-footer a { color: var(--muted); }

/* Toast */
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; max-width: 360px; z-index: 100; display: flex; gap: 12px; align-items: flex-start; }
.toast a { color: #9DC0FF; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Footer company credit */
.app-footer .footer-legal { display: flex; flex-direction: column; gap: 4px; }
.app-footer .company-credit { color: var(--muted); }
.app-footer .company-credit a, .app-footer .company-credit strong { color: var(--ink); font-weight: 600; }

/* CMS editor */
.cms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cms-tile { display: flex; flex-direction: column; gap: 6px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cms-tile:hover { text-decoration: none; border-color: var(--blue); box-shadow: 0 6px 20px rgba(16,24,40,.06); }
.card + .card.cms-tile { margin-top: 0; }
.cms-edit .stack > .card + .card { margin-top: 0; }
.cms-help { margin-bottom: 16px; }
.cms-help summary { cursor: pointer; }
.cms-help ol { padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
.cms-ph { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.cms-help code, .cms-ph code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; color: var(--ink); }
.cms-code { background: #0B1B36; color: #E6ECF5; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 6px 0 14px; }
.cms-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.cms-field.is-changed { border-left: 3px solid var(--blue); padding-left: 12px; margin-left: -15px; }
.cms-badge { background: #E8F0FF; color: var(--blue); font-size: 11px; padding: 2px 8px; margin-left: 6px; }
.cms-reset { display: flex; gap: 6px; align-items: center; }
.cms-image { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.cms-thumb { width: 160px; height: 100px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.cms-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cms-savebar { position: sticky; bottom: 0; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 14px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .cms-field.is-changed { margin-left: -9px; padding-left: 6px; } .cms-thumb { width: 100%; height: 140px; } }

/* Automatic top-up chooser */
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-chips label { position: relative; cursor: pointer; }
.amount-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.amount-chips span { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 42px; padding: 0 16px; border: 1px solid #D0D5DD; border-radius: 999px; font-weight: 600; background: #fff; color: var(--ink); transition: border-color .15s, background .15s; }
.amount-chips input:checked + span { border-color: var(--blue); background: #E8F0FF; color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.amount-chips input:focus-visible + span { outline: 3px solid #9DC0FF; outline-offset: 2px; }
.wallet-hero .amount-chips span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.wallet-hero .amount-chips input:checked + span { background: #fff; color: var(--navy); border-color: #fff; box-shadow: none; }
.wallet-hero .topup-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.wallet-adjust { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.wallet-adjust .input { width: 70px; min-height: 36px; padding: 6px 8px; font-size: 14px; }
.amount-chips .chip-custom span { gap: 8px; }
.amount-chips .cust-field { display: inline-flex; align-items: center; gap: 2px; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.amount-chips .cust-field input { position: relative; z-index: 1; inset: auto; opacity: 1; width: 70px; height: 30px; border: 1px solid #D0D5DD; border-radius: 8px; padding: 0 8px; font: inherit; font-weight: 600; color: var(--ink); background: #fff; }
.wallet-hero .amount-chips .cust-field input { border-color: rgba(255,255,255,.4); }
.chips-hint { color: var(--faint); margin-top: -2px; }
.wallet-hero .chips-hint { color: #B7C1D3; }
.mb-3 { margin-bottom: 24px; }
.segmented:has(> label:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .segmented:has(> label:nth-child(3)) { grid-template-columns: 1fr; } .segmented:has(> label:nth-child(3)) label { padding: 12px 14px; } }

/* Affiliate dashboard */
.aff-hero { background: var(--navy); color: #fff; border-radius: 22px; padding: 28px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
.aff-link { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.aff-link .input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; font-weight: 500; }
.aff-link.sm .input { min-height: 38px; font-size: 13.5px; }
.aff-link.sm .btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.aff-code { color: #fff; letter-spacing: .08em; background: rgba(255,255,255,.1); padding: 2px 8px; border-radius: 6px; }
.aff-more summary { color: #B7C1D3; cursor: pointer; }
.aff-hero-side { border-left: 1px solid rgba(255,255,255,.12); padding-left: 32px; }
.aff-bal { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-top: 4px; }
.btn[disabled] { cursor: not-allowed; }
@media (max-width: 900px) { .aff-hero { grid-template-columns: 1fr; padding: 24px 20px; } .aff-hero-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; } .aff-link.sm { flex-wrap: wrap; } .aff-link.sm span { min-width: 100% !important; } }

/* Linked accounts */
.acct-list { display: grid; gap: 10px; }
.acct { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.acct.current { border-color: var(--blue); background: #F5F8FF; }
.menu-panel .switch-label { padding: 6px 14px 2px; font-size: 12px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.menu-panel form.switch button { width: 100%; }
.aff-date { font-size: 17px; font-weight: 600; margin-top: 2px; }
.wise-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #E8F7E4; border: 1px solid #B9E4AE; color: #163300; text-decoration: none; }
.wise-cta:hover { text-decoration: none; border-color: #7CC66B; }
.wise-cta > span { display: flex; flex-direction: column; }
.wise-card { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; background: #F2FAEF; border: 1px solid #CFEBC6; }
.wise-card .btn { background: #9FE870; color: #163300; border: 0; }
.wise-card .btn:hover { background: #8BD95A; }
.reverse summary { cursor: pointer; color: var(--muted); white-space: nowrap; } .reverse form { min-width: 180px; }
.coupon-box summary { cursor: pointer; color: var(--muted); } .wallet-hero .coupon-box summary { color: #B7C1D3; }

/* Sign-up / login side panel with photo */
.auth-side { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(150deg, #0B1B36 0%, #0E2A5C 60%, #1F5EFF 130%); }
.auth-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(11,27,54,.94) 0%, rgba(11,27,54,.82) 45%, rgba(14,42,92,.55) 100%); }
.auth-side-inner { position: relative; max-width: 520px; }
.auth-float { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.af-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.af-card.af-2 { margin-left: 48px; }
.af-card b { display: block; font-size: 14px; }
.af-card div span { display: block; font-size: 13px; color: #C8D2E3; }
.af-ic { width: 34px; height: 34px; border-radius: 50%; background: #E7F6EE; color: #0E8A4F; display: grid; place-items: center; flex: none; }

/* ---------- Admin overview and detail pages ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.kpi:hover { text-decoration: none; border-color: #C9D2DF; box-shadow: var(--shadow); }
.kpi .l { font-size: 13.5px; color: var(--muted); }
.kpi .v { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.kpi .d { font-size: 13px; font-weight: 600; }
.kpi .d.up { color: var(--green); } .kpi .d.down { color: var(--red); } .kpi .d.flat { color: var(--faint); }
.kpi .d .faint { font-weight: 400; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .v { font-size: 22px; } }
.ov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ov-grid .span2 { grid-column: span 2; }
@media (max-width: 980px) { .ov-grid { grid-template-columns: 1fr; } .ov-grid .span2 { grid-column: auto; } }
.chart-card { padding: 20px; min-width: 0; }
.cc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cc-head h2 { font-size: 16px; font-weight: 700; margin: 0; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart .grid { stroke: #EEF1F5; stroke-width: 1; }
svg.chart .ax { font-size: 11px; fill: #6B7280; font-family: inherit; }
svg.chart .hit:hover { fill: rgba(11, 99, 229, .18); }
svg.chart rect:hover { opacity: .8; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.donut { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.donut svg { width: 160px; height: 160px; }
.donut .dc { font-size: 22px; font-weight: 700; fill: var(--ink); font-family: inherit; letter-spacing: -0.02em; }
.donut .ds { font-size: 11px; fill: #6B7280; font-family: inherit; }
.legend-col { flex-direction: column; width: 100%; gap: 6px; margin: 0; }
.legend-col li { display: grid; grid-template-columns: 10px 1fr auto 38px; gap: 8px; align-items: center; }
.legend-col b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend-col em { font-style: normal; text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
.legend-col span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-alerts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ov-alert { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.ov-alert span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ov-alert.red { background: var(--red-soft); color: var(--red); } .ov-alert.amber { background: var(--amber-soft); color: var(--amber); } .ov-alert.blue { background: var(--blue-soft); color: var(--blue-dark); }
.ov-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.ov-list li + li { border-top: 1px solid var(--line-2); }
.ov-list a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); }
.ov-list a:hover { background: var(--bg-soft); text-decoration: none; }
.ov-list a > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-list b { font-weight: 600; font-size: 14.5px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.av.warn { background: var(--amber-soft); color: var(--amber); }
.ud-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.ud-head .av { width: 56px; height: 56px; font-size: 20px; }
.ud-head h1 { margin: 0; }
.ud-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.ud-nav { position: sticky; top: 64px; z-index: 5; background: #fff; display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 24px 0 8px; padding: 6px 0; }
.ud-nav a { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ud-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.ud-sec { padding-top: 24px; scroll-margin-top: 120px; }
.ud-sec > h2 { font-size: 20px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.ud-sec > h2 .badge { font-size: 12px; }
.ud-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .ud-grid { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li { border-left: 3px solid var(--line); padding: 8px 0 8px 14px; }
.note-list li + li { margin-top: 8px; }
.note-list li.k-warning { border-color: var(--amber); } .note-list li.k-suspension { border-color: var(--red); } .note-list li.k-reactivation { border-color: var(--green); }
.note-list p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.flagbox { border: 1px solid #F5C2BD; background: var(--red-soft); border-radius: 12px; padding: 12px 14px; }
.cover { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin-top: 6px; }
details.cover-d summary { cursor: pointer; font-size: 13.5px; color: var(--blue); }
.job-desc { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.diff-o { background: #FFF8E6; } .diff-m { background: var(--bg-soft); }
details.pop { position: relative; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
@media (max-width: 560px) { details.pop form { position: fixed !important; left: 16px; right: 16px !important; width: auto !important; top: 120px; } }
.ov-grid > *, .ud-grid > * { min-width: 0; }
@media (max-width: 560px) { svg.chart .ax { font-size: 17px; } }
.ov-grid > .card + .card, .ud-grid > .card + .card { margin-top: 0; }
.contact-warn { border: 1px solid #F5C2BD; background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.contact-warn p { margin: 0; font-weight: 600; }
.contact-warn ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.input.has-warn, .textarea.has-warn { border-color: var(--red); }
.howto { border: 1px solid var(--line); background: var(--bg-tint); border-radius: var(--radius); padding: 14px 18px; }
details.howto summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.howto ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.7; color: var(--ink-2); font-size: 14.5px; }
.samples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sample { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sample img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--bg-soft); }
.sample figcaption { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sample figcaption span { color: var(--muted); font-size: 13px; }
.sample form { padding: 0 12px 10px; }
.contact-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.contact-dl dt { color: var(--muted); }
.contact-dl dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.pay-tip { border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 14px; }
.pay-tip p { margin: 0; display: flex; align-items: center; gap: 6px; }
.pay-tip p + p { margin-top: 4px; display: block; }
.locked-card .panel-title { display: flex; align-items: center; gap: 8px; }
.chat-contact { border-bottom: 1px solid var(--line-2); background: var(--bg-tint); padding: 10px 16px; }
.chat-contact summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.chat-contact .contact-dl { margin-top: 8px; }
