:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-soft: #0f0f12;
  --panel: #141417;
  --panel-2: #19191d;
  --panel-3: #202026;
  --line: #2a2a31;
  --line-soft: #202027;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --gold: #d8b56a;
  --gold-2: #ae8a45;
  --gold-bg: rgba(216, 181, 106, .12);
  --green: #61c88c;
  --green-bg: rgba(97, 200, 140, .12);
  --red: #f27f7f;
  --red-bg: rgba(242, 127, 127, .12);
  --blue: #7db4ff;
  --blue-bg: rgba(125, 180, 255, .12);
  --radius: 16px;
  --shadow: 0 18px 55px rgba(0,0,0,.34);
  --sidebar: 248px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.gold { color: var(--gold); }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.loading-screen, .auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 20% 10%, rgba(86,46,33,.24), transparent 33%), var(--bg); }
.loading-card { text-align: center; color: var(--muted); }
.spinner { width: 38px; height: 38px; margin: 0 auto 16px; border: 3px solid #29292f; border-top-color: var(--gold); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-card { width: min(1020px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; min-height: 610px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--panel); }
.auth-hero { padding: 56px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(155deg, #1c1511, #0f1011 58%, #151012); border-right: 1px solid var(--line); }
.auth-hero img { width: 150px; height: auto; object-fit: contain; }
.auth-hero h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.02; letter-spacing: -.045em; margin: 28px 0 18px; max-width: 650px; }
.auth-hero h1 span { color: var(--gold); }
.auth-hero p { color: #c3c3c8; font-size: 18px; max-width: 570px; }
.auth-points { display: grid; gap: 14px; margin-top: 30px; }
.auth-point { display: flex; align-items: center; gap: 12px; color: #d6d6da; }
.auth-point i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-bg); color: var(--gold); font-style: normal; }
.auth-panel { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-tabs { display: flex; gap: 8px; padding: 5px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 28px; }
.auth-tabs button { flex: 1; padding: 10px 14px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; }
.auth-tabs button.active { background: var(--panel-3); color: var(--text); }
.auth-panel h2 { margin: 0 0 8px; font-size: 28px; }
.auth-panel > p { margin: 0 0 26px; color: var(--muted); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--sidebar); background: #0c0c0f; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { height: 82px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 13px; }
.brand img { width: 54px; height: 42px; object-fit: contain; }
.brand-copy strong { display: block; letter-spacing: .06em; }
.brand-copy small { color: var(--gold); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; }
.nav { padding: 18px 12px; display: grid; gap: 5px; overflow-y: auto; }
.nav-section { margin: 15px 12px 7px; color: #5f5f68; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 13px; border: 1px solid transparent; border-radius: 11px; color: #a9a9b1; background: transparent; text-align: left; }
.nav-button:hover { color: var(--text); background: #151519; }
.nav-button.active { color: var(--gold); background: var(--gold-bg); border-color: rgba(216,181,106,.18); }
.nav-icon { width: 21px; display: inline-grid; place-items: center; font-size: 16px; }
.sidebar-footer { margin-top: auto; padding: 14px 12px 18px; border-top: 1px solid var(--line-soft); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #111115; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--panel-3); object-fit: cover; flex: 0 0 auto; }
.user-card strong { display: block; font-size: 13px; }
.user-card small { display: block; color: var(--muted); max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 25; height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid rgba(42,42,49,.86); background: rgba(9,9,11,.88); backdrop-filter: blur(16px); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; }
.breadcrumb { color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.content { padding: 30px; max-width: 1680px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; margin-bottom: 24px; }
.page-header h1 { margin: 0 0 6px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.035em; }
.page-header p { margin: 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.button { min-height: 40px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--panel-2); transition: .16s ease; text-decoration: none; white-space: nowrap; }
.button:hover { border-color: #484850; background: var(--panel-3); transform: translateY(-1px); }
.button.primary { border-color: var(--gold); background: var(--gold); color: #17120a; font-weight: 750; }
.button.primary:hover { background: #e4c57f; }
.button.ghost { background: transparent; }
.button.danger { border-color: rgba(242,127,127,.35); background: var(--red-bg); color: #ffb2b2; }
.button.small { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.button.icon { width: 40px; padding: 0; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.stat { position: relative; min-height: 140px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel), #111114); }
.stat::after { content: ''; position: absolute; width: 100px; height: 100px; right: -35px; top: -35px; border-radius: 50%; background: var(--gold-bg); filter: blur(4px); }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.stat-value { margin-top: 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1; font-weight: 780; letter-spacing: -.035em; }
.stat-foot { margin-top: 13px; color: var(--subtle); font-size: 12px; }

.grid-2 { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 17px; }
.panel-body { padding: 20px; }
.status-list { display: grid; gap: 12px; }
.status-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.status-track { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: #222228; overflow: hidden; }
.status-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

.filters { display: grid; grid-template-columns: minmax(240px, 1.7fr) repeat(4, minmax(130px,.7fr)) auto; gap: 10px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 14px; }
.field { display: grid; gap: 7px; }
.field label { color: #c4c4ca; font-size: 12px; font-weight: 620; }
.field input, .field select, .field textarea { width: 100%; color: var(--text); background: #0e0e11; border: 1px solid #303038; border-radius: 10px; padding: 10px 12px; outline: none; transition: .15s ease; }
.field input, .field select { height: 42px; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(216,181,106,.10); }
.field small { color: var(--subtle); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field-row.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.required::after { content: ' *'; color: var(--gold); }
.search-wrap { position: relative; }
.search-wrap input { padding-left: 38px; }
.search-wrap span { position: absolute; left: 13px; top: 12px; color: var(--subtle); }
.view-toggle { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.view-toggle button { width: 34px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.view-toggle button.active { background: var(--panel-3); color: var(--gold); }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { border: 1px solid var(--line); color: var(--muted); background: var(--panel); border-radius: 99px; padding: 7px 12px; font-size: 12px; }
.chip.active, .chip:hover { border-color: rgba(216,181,106,.4); color: var(--gold); background: var(--gold-bg); }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table thead { background: #101013; }
.data-table th { position: sticky; top: 70px; z-index: 4; padding: 12px 14px; color: #7f7f88; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--line); background: #101013; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tbody tr { transition: .14s ease; }
.data-table tbody tr:hover { background: #18181d; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.instrument-cell { display: flex; align-items: center; gap: 13px; min-width: 0; }
.thumb { width: 92px; height: 68px; flex: 0 0 auto; padding: 5px; object-fit: contain; border-radius: 10px; border: 1px solid #303037; background: #0c0c0f; }
.instrument-title { font-weight: 720; line-height: 1.25; }
.instrument-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.owner-cell strong { display: block; font-size: 13px; }
.owner-cell small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.money { font-weight: 720; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 6px 9px; font-size: 11px; font-weight: 700; background: #222228; color: #d8d8dd; white-space: nowrap; }
.status-badge.green { background: var(--green-bg); color: #8de2af; }
.status-badge.gold { background: var(--gold-bg); color: #ebcb89; }
.status-badge.blue { background: var(--blue-bg); color: #a7cbff; }
.status-badge.red { background: var(--red-bg); color: #ffaaaa; }
.completion { min-width: 94px; }
.completion-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.completion-bar { height: 5px; margin-top: 7px; background: #26262c; border-radius: 99px; overflow: hidden; }
.completion-bar div { height: 100%; background: var(--green); border-radius: inherit; }
.row-actions { display: flex; justify-content: flex-end; gap: 7px; }

.cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.instrument-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); transition: .18s ease; }
.instrument-card:hover { transform: translateY(-2px); border-color: #44444d; box-shadow: 0 15px 35px rgba(0,0,0,.22); }
.card-image { width: 100%; aspect-ratio: 4 / 3; padding: 12px; object-fit: contain; background: #0d0d10; border-bottom: 1px solid var(--line-soft); }
.card-content { padding: 15px; }
.card-content h3 { margin: 0 0 6px; font-size: 15px; }
.card-content p { margin: 0; color: var(--muted); font-size: 12px; }
.card-foot { display: flex; justify-content: space-between; gap: 10px; align-items: end; margin-top: 15px; }

.pagination { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 4px 0; color: var(--muted); font-size: 13px; }
.pagination-buttons { display: flex; gap: 7px; }

.empty { padding: 60px 24px; text-align: center; border: 1px dashed #34343d; border-radius: var(--radius); background: var(--panel); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: var(--gold-bg); font-size: 28px; }
.empty h3 { margin: 0 0 7px; }
.empty p { margin: 0 auto 20px; max-width: 470px; color: var(--muted); }

.drawer-backdrop { position: fixed; z-index: 80; inset: 0; background: rgba(0,0,0,.56); backdrop-filter: blur(3px); animation: fade .16s ease; }
.drawer { position: absolute; inset: 0 0 0 auto; width: min(720px, 96vw); background: #111114; border-left: 1px solid var(--line); box-shadow: -24px 0 70px rgba(0,0,0,.4); overflow-y: auto; animation: slide .2s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: .4; } }
.drawer-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; padding: 20px; background: rgba(17,17,20,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.drawer-header h2 { margin: 0 0 5px; font-size: 23px; }
.drawer-body { padding: 20px; }
.gallery-main { width: 100%; aspect-ratio: 16 / 10; padding: 18px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: #0a0a0d; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 3px; }
.gallery-thumbs img { width: 72px; height: 54px; object-fit: contain; padding: 3px; border-radius: 8px; background: #0a0a0d; border: 1px solid var(--line); }
.gallery-thumbs img.active { border-color: var(--gold); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; margin-top: 18px; }
.detail { padding: 12px; border: 1px solid var(--line-soft); border-radius: 11px; background: #151519; }
.detail span { display: block; color: var(--subtle); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.detail strong { display: block; margin-top: 4px; }
.description { margin-top: 16px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: #151519; color: #d2d2d7; white-space: pre-wrap; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.modal-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.modal { width: min(900px, 100%); max-height: min(92vh, 980px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 19px; background: #121215; box-shadow: var(--shadow); overflow: hidden; }
.modal.small { width: min(520px, 100%); }
.modal-header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 21px; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 22px; border-top: 1px solid var(--line); background: #101013; }
.form-section { margin-bottom: 24px; }
.form-section h3 { margin: 0 0 13px; color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

.dropzone { position: relative; min-height: 140px; display: grid; place-items: center; padding: 20px; text-align: center; border: 1px dashed #4a4a55; border-radius: 13px; background: #0d0d10; transition: .15s ease; }
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: var(--gold-bg); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { display: block; }
.dropzone small { display: block; margin-top: 5px; color: var(--muted); }
.photo-preview { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.photo-item { position: relative; aspect-ratio: 4/3; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: #09090b; overflow: hidden; }
.photo-item img { width: 100%; height: 100%; object-fit: contain; }
.photo-item button { position: absolute; right: 4px; top: 4px; width: 25px; height: 25px; border: 0; border-radius: 50%; background: rgba(0,0,0,.8); color: #fff; }
.photo-item.cover { border-color: var(--gold); }
.photo-item .cover-label { position: absolute; left: 5px; bottom: 5px; padding: 3px 6px; border-radius: 6px; font-size: 9px; background: rgba(0,0,0,.82); color: var(--gold); }
.progress { height: 8px; border-radius: 99px; overflow: hidden; background: #292930; }
.progress div { width: 0; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .15s ease; }
.progress-copy { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 12px; }

.users-list, .activity-list, .wishlist-list { display: grid; gap: 10px; }
.user-row, .activity-row, .wishlist-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.user-row h3, .wishlist-row h3 { margin: 0 0 3px; font-size: 14px; }
.user-row p, .wishlist-row p, .activity-row p { margin: 0; color: var(--muted); font-size: 12px; }
.activity-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-bg); }
.match-card { margin-top: 10px; padding: 11px; border-left: 3px solid var(--green); border-radius: 8px; background: var(--green-bg); }

.backup-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.backup-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.backup-card h3 { margin: 0 0 7px; }
.backup-card p { min-height: 48px; color: var(--muted); }

.toast-root { position: fixed; z-index: 130; right: 20px; bottom: 20px; display: grid; gap: 9px; width: min(390px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: #18181d; box-shadow: var(--shadow); animation: toastIn .2s ease; }
.toast.success { border-color: rgba(97,200,140,.35); }
.toast.error { border-color: rgba(242,127,127,.4); }
.toast strong { display: block; font-size: 13px; }
.toast p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

.skeleton { position: relative; overflow: hidden; background: #1b1b20; border-radius: 8px; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: shimmer 1.25s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.mobile-nav { display: none; }

@media (max-width: 1240px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .filters { grid-template-columns: minmax(220px,1.6fr) repeat(2,minmax(130px,.7fr)) auto; }
  .filters .desktop-filter { display: none; }
  .data-table th:nth-child(5), .data-table td:nth-child(5) { display: none; }
}
@media (max-width: 980px) {
  :root { --sidebar: 230px; }
  .sidebar { transform: translateX(-100%); transition: .2s ease; }
  body.menu-open .sidebar { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.55); }
  body.menu-open::after { content: ''; position: fixed; z-index: 29; inset: 0; background: rgba(0,0,0,.55); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .data-table th:nth-child(3), .data-table td:nth-child(3), .data-table th:nth-child(6), .data-table td:nth-child(6) { display: none; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 14px; padding-bottom: 68px; }
  .topbar { height: 62px; padding: 0 14px; }
  .content { padding: 18px 13px 28px; }
  .page-header { display: grid; }
  .page-header h1 { font-size: 29px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat { min-height: 116px; padding: 15px; }
  .stat-value { font-size: 27px; }
  .filters { grid-template-columns: 1fr auto; padding: 12px; }
  .filters .field:not(:first-child) { display: none; }
  .quick-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .chip { flex: 0 0 auto; }
  .table-wrap { border: 0; overflow: visible; background: transparent; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody { display: grid; gap: 10px; }
  .data-table tbody tr { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
  .data-table td { display: block !important; padding: 5px 0; border: 0; }
  .data-table td:nth-child(2)::before { content: 'Proprietário'; }
  .data-table td:nth-child(3)::before { content: 'Valor'; }
  .data-table td:nth-child(4)::before { content: 'Situação'; }
  .data-table td:nth-child(5)::before { content: 'Cadastro'; }
  .data-table td:nth-child(n+2)::before { display: block; margin-bottom: 3px; color: var(--subtle); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
  .instrument-cell { align-items: flex-start; }
  .thumb { width: 102px; height: 76px; }
  .row-actions { justify-content: flex-start; padding-top: 7px; }
  .cards-grid { grid-template-columns: 1fr; }
  .field-row, .field-row.cols-3, .detail-grid, .backup-grid { grid-template-columns: 1fr; }
  .photo-preview { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 96vh; border-radius: 20px 20px 0 0; }
  .modal-body { padding: 17px; }
  .modal-header, .modal-footer { padding-left: 17px; padding-right: 17px; }
  .drawer { width: 100%; }
  .auth-screen { padding: 0; }
  .auth-card { min-height: 100vh; border: 0; border-radius: 0; }
  .auth-panel { padding: 28px 20px; }
  .mobile-nav { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: rgba(12,12,15,.95); backdrop-filter: blur(15px); }
  .mobile-nav button { border: 0; color: var(--muted); background: transparent; font-size: 11px; }
  .mobile-nav button span { display: block; margin-bottom: 2px; font-size: 18px; }
  .mobile-nav button.active { color: var(--gold); }
  .pagination { align-items: flex-start; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topbar-actions .hide-mobile { display: none; }
  .photo-preview { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* MOJO 4.1, contatos, matches e ajustes de usabilidade */
.data-table th { position: static; top: auto; }
.table-wrap { overflow-x: auto; overflow-y: visible; }
.inline-link { color: #c9c9d0; text-decoration: none; }
.inline-link:hover { color: var(--gold); text-decoration: underline; }
.contact-link { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 6px; color: #65d391; font-size: 11px; font-weight: 700; text-decoration: none; }
.contact-link:hover { color: #8ce9ad; }
.contact-link.disabled { color: var(--subtle); cursor: default; }
.owner-contact, .user-contact, .wishlist-contact, .opportunity-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.whatsapp-button { border-color: rgba(64,196,116,.38); background: rgba(38,140,80,.14); color: #7ee6a4; }
.whatsapp-button:hover { border-color: rgba(64,196,116,.75); background: rgba(38,140,80,.25); color: #a0f0bd; }
.thumb-button, .card-image-button, .instrument-title-button, .candidate-image { appearance: none; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.thumb-button { position: relative; flex: 0 0 auto; border-radius: 9px; overflow: hidden; }
.thumb-button span, .card-image-button span { position: absolute; inset: auto 4px 4px; padding: 4px 6px; border-radius: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 9px; font-weight: 700; opacity: 0; transform: translateY(3px); transition: .16s ease; text-align: center; }
.thumb-button:hover span, .thumb-button:focus-visible span, .card-image-button:hover span, .card-image-button:focus-visible span { opacity: 1; transform: none; }
.thumb-button:hover .thumb, .card-image-button:hover .card-image { border-color: var(--gold); }
.instrument-title-button { display: block; max-width: 100%; font-weight: 750; }
.instrument-title-button:hover { color: var(--gold); }
.card-image-button { position: relative; display: block; width: 100%; }
.card-title-button { margin: 0 0 6px; font-size: 15px; }
.currency-input { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #0c0c0f; overflow: hidden; transition: .16s ease; }
.currency-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207,164,82,.1); }
.currency-input span { padding: 0 0 0 13px; color: var(--gold); font-weight: 800; }
.currency-input input { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin: 24px 0 12px; }
.section-title h2 { margin: 0 0 4px; font-size: 19px; }
.section-title p { margin: 0; color: var(--muted); font-size: 12px; }
.opportunity-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.opportunity-summary article { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.opportunity-summary span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.opportunity-summary strong { display: block; margin-top: 8px; font-size: 22px; }
.opportunity-title { margin-top: 34px; }
.opportunity-list { display: grid; gap: 16px; }
.opportunity-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.opportunity-card-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(90deg, rgba(207,164,82,.08), transparent); }
.opportunity-card-header h3 { margin: 4px 0 8px; font-size: 17px; }
.eyebrow { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.wish-specs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 390px; }
.wish-specs span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; background: #0d0d10; }
.opportunity-body { padding: 16px 20px 20px; }
.candidate-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.candidate-heading strong { font-size: 12px; }
.candidate-list { display: grid; gap: 9px; }
.candidate-card { display: grid; grid-template-columns: 58px minmax(0,1fr) 72px auto; gap: 12px; align-items: center; padding: 11px; border: 1px solid var(--line-soft); border-radius: 12px; background: #0d0d10; }
.candidate-image img { width: 58px; height: 50px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #151518; }
.candidate-info { min-width: 0; }
.candidate-info strong, .candidate-info span, .candidate-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate-info span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.candidate-info small { margin-top: 3px; color: var(--subtle); }
.match-score { display: grid; place-items: center; width: 62px; height: 62px; border: 3px solid var(--line); border-radius: 50%; text-align: center; }
.match-score strong { font-size: 15px; }
.match-score span { font-size: 8px; color: var(--muted); }
.match-score.excellent { border-color: #45cb78; }
.match-score.good { border-color: #d4a94f; }
.match-score.possible { border-color: #6689ca; }
.candidate-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.wishlist-contact { margin-top: 6px; }
.drawer-actions { flex-wrap: wrap; }

@media (max-width: 980px) {
  .candidate-card { grid-template-columns: 54px minmax(0,1fr) 62px; }
  .candidate-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 700px) {
  .opportunity-summary { grid-template-columns: 1fr; }
  .opportunity-card-header { grid-template-columns: 1fr; }
  .wish-specs { justify-content: flex-start; }
  .candidate-card { grid-template-columns: 50px minmax(0,1fr); }
  .match-score { grid-column: 1; grid-row: 2; width: 50px; height: 50px; }
  .candidate-actions { grid-column: 2; }
  .page-actions { flex-wrap: wrap; }
}


/* MOJO 4.2, galeria em tela cheia e atualização imediata */
.gallery-main-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-main-button .gallery-main { display: block; }
.gallery-main-button > span { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 750; opacity: .85; transition: .16s ease; }
.gallery-main-button:hover > span, .gallery-main-button:focus-visible > span { opacity: 1; background: rgba(0,0,0,.88); color: var(--gold); }
.gallery-main-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 14px; }
.photo-preview-open { cursor: zoom-in; }
body.gallery-open { overflow: hidden; }
.gallery-lightbox { position: fixed; z-index: 140; inset: 0; display: grid; grid-template-columns: 72px minmax(0,1fr) 72px; grid-template-rows: auto minmax(0,1fr); align-items: center; background: rgba(0,0,0,.96); backdrop-filter: blur(12px); }
.gallery-lightbox-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 12px 18px; color: #fff; }
.gallery-lightbox-close { border-color: rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.06); }
.gallery-lightbox-stage { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; height: calc(100vh - 68px); display: grid; grid-template-rows: minmax(0,1fr) auto; place-items: center; gap: 12px; padding: 0 10px 16px; }
.gallery-lightbox-stage > img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 90px rgba(0,0,0,.45); }
.gallery-lightbox-nav { grid-row: 2; align-self: center; justify-self: center; width: 46px; height: 58px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; font-size: 34px; cursor: pointer; }
.gallery-lightbox-nav:hover { border-color: var(--gold); color: var(--gold); background: rgba(207,164,82,.12); }
.gallery-lightbox-nav:disabled { opacity: .25; cursor: default; }
.gallery-lightbox-nav.previous { grid-column: 1; }
.gallery-lightbox-nav.next { grid-column: 3; }
.gallery-lightbox-thumbs { width: 100%; display: flex; justify-content: center; gap: 7px; overflow-x: auto; padding: 4px 0; }
.gallery-lightbox-thumbs button { flex: 0 0 auto; width: 70px; height: 52px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #111; cursor: pointer; }
.gallery-lightbox-thumbs button.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(207,164,82,.18); }
.gallery-lightbox-thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) {
  .gallery-lightbox { grid-template-columns: 48px minmax(0,1fr) 48px; }
  .gallery-lightbox-top { min-height: 56px; padding: 8px 10px; }
  .gallery-lightbox-stage { height: calc(100vh - 58px); padding: 0 4px 10px; }
  .gallery-lightbox-nav { width: 38px; height: 52px; font-size: 28px; }
  .gallery-lightbox-thumbs button { width: 58px; height: 44px; }
  .gallery-main-button > span { right: 8px; bottom: 8px; }
}

/* V5, ações principais do usuário com o mesmo peso visual */
.user-main-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 10px;
  min-width: min(100%, 420px);
}
.user-main-actions .main-action-button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .user-main-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }
  .user-main-actions .main-action-button { width: 100%; }
}

/* V5.1, gestão de desejos */
.wish-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}
.wish-status-filters .quick-filter span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-size: 10px;
}
.wishlist-admin-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}
.wishlist-admin-actions label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wish-status-select {
  min-width: 150px;
  height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #151519;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.wish-status-select.green { border-color: rgba(67,196,119,.45); background: rgba(67,196,119,.10); color: #8de2af; }
.wish-status-select.gold { border-color: rgba(207,164,82,.45); background: rgba(207,164,82,.10); color: #ebcb89; }
.wish-status-select.blue { border-color: rgba(89,143,223,.45); background: rgba(89,143,223,.10); color: #a7cbff; }
.wish-status-select.neutral { color: #d8d8dd; }
.status-badge.neutral { background: #222228; color: #d8d8dd; }

@media (max-width: 760px) {
  .wishlist-row { grid-template-columns: auto minmax(0,1fr); }
  .wishlist-admin-actions { grid-column: 1 / -1; justify-content: stretch; align-items: end; }
  .wishlist-admin-actions label { flex: 1; }
  .wish-status-select { width: 100%; }
}


/* V5.2, referências visuais nos desejos */
.wishlist-reference-image,
.match-wish-reference {
  width: 68px;
  height: 58px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0b0e;
  cursor: zoom-in;
  overflow: hidden;
}
.wishlist-reference-image img,
.match-wish-reference img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.wishlist-reference-empty { width: 42px; height: 42px; margin: 0; font-size: 18px; }
.wishlist-reference-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.reference-link { color: var(--gold); font-size: 12px; font-weight: 700; }
.wish-reference-section { margin-top: 16px; }
.wish-reference-dropzone { min-height: 112px; }
.wish-reference-preview { margin-top: 10px; }
.wish-reference-preview-card { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #0d0d10; }
.wish-reference-preview-open { width: 112px; height: 84px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #09090b; cursor: zoom-in; }
.wish-reference-preview-open img { width: 100%; height: 100%; object-fit: contain; }
.wish-reference-preview-card > div { display: grid; justify-items: start; gap: 6px; }
.wish-reference-preview-card span, .wish-reference-empty-copy { color: var(--muted); font-size: 12px; }
.opportunity-wish-main { display: flex; align-items: flex-start; gap: 12px; }

@media (max-width: 760px) {
  .wish-reference-preview-card { grid-template-columns: 88px minmax(0,1fr); }
  .wish-reference-preview-open { width: 88px; height: 72px; }
  .opportunity-wish-main { align-items: center; }
}


/* V5.3, ficha de desejos e matches por item */
.wishlist-row-clickable { align-items: stretch; }
.wishlist-row-main { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: stretch; }
.wishlist-row-main:hover h3 { color: var(--gold); }
.wishlist-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wishlist-row-title h3 { margin: 0; }
.wishlist-description-preview { margin-top: 7px; max-width: 900px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #d8d8dc; font-size: 12px; line-height: 1.45; }
.wishlist-open-copy { display: inline-flex; width: max-content; margin-top: 7px; color: var(--gold); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.match-count-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #17171b; font-size: 10px; font-weight: 800; }
.match-count-badge.has-match { color: #d9fbe7; border-color: rgba(57,184,111,.35); background: rgba(57,184,111,.12); }
.wish-drawer { width: min(820px, 97vw); }
.wish-drawer-reference { width: 100%; min-height: 230px; max-height: 430px; padding: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: #09090b; color: var(--muted); cursor: pointer; position: relative; display: grid; place-items: center; }
.wish-drawer-reference img { width: 100%; height: min(430px, 48vh); object-fit: contain; display: block; }
.wish-drawer-reference > span { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(0,0,0,.72); color: white; font-size: 11px; }
.wish-drawer-reference.empty { min-height: 170px; cursor: default; gap: 8px; align-content: center; }
.wish-drawer-reference.empty > span { position: static; background: transparent; color: var(--muted); }
.wish-description-card, .wish-owner-card, .wish-reference-link-block, .wish-drawer-matches { margin-top: 17px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.wish-description-card p { margin: 10px 0 0; color: #ededf0; line-height: 1.65; white-space: pre-wrap; }
.wish-owner-card strong { display: block; margin: 7px 0; font-size: 16px; }
.wish-reference-link-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wish-reference-link-block > span { color: var(--muted); font-size: 12px; }
.wish-drawer-admin { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 16px; }
.wish-drawer-admin label { min-width: 190px; flex: 1; }
.wish-drawer-admin label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.wish-drawer-matches { padding: 0; border: 0; background: transparent; }
.wish-drawer-matches .section-title { margin-bottom: 10px; }
.wish-drawer-matches .candidate-list { display: grid; gap: 9px; }
@media (max-width: 720px) {
  .wishlist-row-clickable { grid-template-columns: auto minmax(0,1fr); }
  .wishlist-admin-actions, .wishlist-row-clickable .row-actions { grid-column: 1 / -1; }
  .wish-reference-link-block { align-items: stretch; flex-direction: column; }
  .wish-drawer-admin { align-items: stretch; flex-direction: column; }
  .wish-drawer-admin > * { width: 100%; }
}


/* V5.3.4, menu mobile acessível e página Sobre a MOJO */
.profile-session-panel { grid-column: 1 / -1; }
.profile-session-body { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.profile-session-body p { margin: 5px 0 0; color: var(--muted); }

.about-page { display: grid; gap: 26px; }
.about-hero { position: relative; min-height: 430px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #0d0d10; }
.about-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,7,.94) 0%, rgba(5,5,7,.72) 48%, rgba(5,5,7,.16) 100%), linear-gradient(0deg, rgba(5,5,7,.54), transparent 60%); }
.about-hero-copy { position: relative; z-index: 1; display: flex; min-height: 430px; max-width: 720px; flex-direction: column; justify-content: center; padding: 52px; }
.about-hero-copy h1 { max-width: 650px; margin: 12px 0 14px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.035em; }
.about-hero-copy p { max-width: 610px; margin: 0; color: #d1d1d7; font-size: 16px; line-height: 1.65; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-actions a { text-decoration: none; }
.about-section-title { margin-top: 0; }
.about-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 230px; gap: 12px; }
.about-photo-card { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #0c0c0f; color: #fff; cursor: zoom-in; text-align: left; }
.about-photo-card:first-child { grid-column: span 2; grid-row: span 2; }
.about-photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, opacity .28s ease; }
.about-photo-card::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(0deg, rgba(0,0,0,.9), transparent); pointer-events: none; }
.about-photo-card > span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 15px; }
.about-photo-card strong, .about-photo-card small { display: block; }
.about-photo-card strong { font-size: 16px; }
.about-photo-card small { margin-top: 4px; color: #d5d5da; line-height: 1.35; }
.about-photo-card:hover img, .about-photo-card:focus-visible img { transform: scale(1.035); opacity: .9; }
.about-photo-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.about-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.about-info-card .panel-body > strong { display: block; margin-bottom: 8px; font-size: 18px; }
.about-info-card .panel-body p { color: var(--muted); line-height: 1.65; }

@media (max-width: 980px) {
  .sidebar { height: 100dvh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  body.menu-open { overflow: hidden; }
  body.menu-open .sidebar { z-index: 60; }
  body.menu-open .mobile-nav { visibility: hidden; pointer-events: none; }
  .sidebar-footer { position: sticky; z-index: 2; bottom: 0; flex: 0 0 auto; padding-bottom: calc(22px + env(safe-area-inset-bottom)); background: #0c0c0f; }
  .about-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobile-nav { height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .about-page { gap: 20px; }
  .about-hero, .about-hero-copy { min-height: 520px; }
  .about-hero-shade { background: linear-gradient(0deg, rgba(5,5,7,.97) 0%, rgba(5,5,7,.84) 52%, rgba(5,5,7,.18) 100%); }
  .about-hero-copy { justify-content: flex-end; padding: 28px 20px; }
  .about-hero-copy h1 { font-size: 38px; }
  .about-hero-copy p { font-size: 14px; }
  .about-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .about-actions .button { width: 100%; justify-content: center; }
  .about-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 9px; }
  .about-photo-card:first-child { grid-column: 1 / -1; grid-row: auto; height: 230px; }
  .about-photo-card > span { left: 12px; right: 12px; bottom: 11px; }
  .about-photo-card small { display: none; }
  .about-info-grid { grid-template-columns: 1fr; }
  .profile-session-body { align-items: stretch; flex-direction: column; }
  .profile-session-body .button { width: 100%; justify-content: center; }
}

/* MOJO 5.3.6, ajustes de ficha e recuperação assistida */
.auth-password-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.auth-link, .auth-back { border: 0; background: transparent; color: var(--gold); padding: 0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-link:hover, .auth-back:hover { text-decoration: underline; }
.auth-back { align-self: flex-start; margin-bottom: 24px; }
.auth-success { display: grid; justify-items: center; gap: 12px; padding: 18px 0 4px; text-align: center; }
.auth-success > div { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(98, 211, 143, .12); color: #62d38f; font-size: 24px; font-weight: 800; }
.auth-success h3 { margin: 0; font-size: 22px; }
.auth-success p { margin: 0 0 8px; color: var(--muted); line-height: 1.6; }
.wish-drawer .detail-grid { margin-bottom: 24px; }
.wish-drawer .wish-description-card { margin-top: 0; }

@media (max-width: 760px) {
  .auth-password-actions { margin-top: 12px; }
  .auth-link, .auth-back { min-height: 38px; display: inline-flex; align-items: center; }
  .wish-drawer .detail-grid { margin-bottom: 20px; }
}


/* MOJO 5.3.6, recuperação assistida pelo painel administrativo */
.auth-password-actions { justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.auth-help-box { margin-top: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(223,189,108,.06); }
.auth-help-box strong { display: block; margin-bottom: 5px; }
.auth-help-box p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.password-reset-panel { margin-bottom: 18px; border-color: rgba(223,189,108,.42); }
.password-reset-panel .panel-header p { margin: 5px 0 0; color: var(--muted); }
.password-reset-list { display: grid; }
.password-reset-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-top: 1px solid var(--border); }
.password-reset-row:first-child { border-top: 0; }
.password-reset-copy { min-width: 0; }
.password-reset-copy > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.password-reset-copy p { margin: 6px 0; color: var(--muted); line-height: 1.45; }
.password-reset-copy small { color: var(--muted); }
.temporary-code-box { padding: 20px; border: 1px solid rgba(223,189,108,.45); border-radius: 14px; background: rgba(223,189,108,.08); text-align: center; }
.temporary-code-box small, .temporary-code-box strong, .temporary-code-box p { display: block; }
.temporary-code-box strong { margin: 10px 0 8px; font-size: 30px; letter-spacing: 2px; color: var(--gold); user-select: all; }
.temporary-code-box p { margin: 0; color: var(--muted); }
.temporary-code-user { margin-top: 16px; padding: 14px 0; }
.temporary-code-user p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }

@media (max-width: 760px) {
  .auth-password-actions { align-items: flex-start; flex-direction: column; gap: 2px; }
  .password-reset-row { align-items: stretch; flex-direction: column; }
  .password-reset-row .row-actions { width: 100%; }
  .password-reset-row .row-actions .button { flex: 1; justify-content: center; }
  .temporary-code-box strong { font-size: 24px; }
}


/* MOJO 5.3.9, espaçamento das fichas e acesso direto ao acervo do proprietário */
.detail-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #151519;
}
.detail-grid > div > span {
  display: block;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.detail-grid > div > strong {
  display: block;
  max-width: 100%;
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.owner-acervo-link {
  appearance: none;
  display: inline;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(207,164,82,.45);
  text-underline-offset: 3px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.owner-acervo-link:hover,
.owner-acervo-link:focus-visible {
  color: var(--gold);
  text-decoration-color: currentColor;
}
.owner-name-link { display: block; font-size: 13px; }
.owner-card-link { display: inline; color: var(--muted); font-size: 12px; font-weight: 650; }
.owner-header-link { display: inline; color: inherit; font-weight: 650; }
.owner-detail-link { display: block; font-size: inherit; }
.user-name-acervo-link { font-size: 14px; }
.card-owner-line,
.drawer-owner-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.drawer-owner-line { margin: 0; }

/* MOJO 5.4.0, validação por email e login social */
.social-auth { display: grid; gap: 9px; margin: 2px 0 20px; }
.auth-divider { position: relative; display: flex; align-items: center; justify-content: center; margin: 5px 0 2px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.auth-divider span { position: relative; padding: 0 10px; background: var(--panel); }
.social-login-button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: #17171b; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 750; transition: border-color .2s, background .2s, transform .2s; }
.social-login-button:hover { border-color: rgba(216,183,99,.55); background: #1d1d22; transform: translateY(-1px); }
.social-login-button > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #17171b; font-size: 14px; font-weight: 900; }
.social-login-button.microsoft > span { border-radius: 5px; background: #eef5ff; color: #236bb5; }
.social-login-button.facebook > span { background: #1877f2; color: #fff; font-family: Arial, sans-serif; }
.verification-code-input { min-height: 58px; text-align: center; font-size: 28px !important; font-weight: 850; letter-spacing: 9px; font-variant-numeric: tabular-nums; }
.auth-change-email { display: flex; margin: 16px auto 0; }

.security-settings-layout { display: grid; gap: 18px; }
.security-panel .panel-header { align-items: center; }
.security-panel .panel-header p { max-width: 720px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.security-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.security-form-grid .span-2 { grid-column: 1 / -1; }
.security-toggle-list { display: grid; border-top: 1px solid var(--line); }
.security-toggle { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 13px; align-items: start; padding: 15px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.security-toggle:last-child { border-bottom: 0; }
.security-toggle input, .compact-switch input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.security-toggle strong, .security-toggle small { display: block; }
.security-toggle small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.compact-switch { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.security-test-row { display: flex; align-items: end; gap: 12px; border-top: 1px solid var(--line); }
.security-test-row .field { flex: 1; }
.copy-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.copy-field input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.security-save-bar { position: sticky; z-index: 8; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border: 1px solid rgba(216,183,99,.42); border-radius: 14px; background: rgba(18,18,21,.96); box-shadow: 0 16px 45px rgba(0,0,0,.38); backdrop-filter: blur(14px); }
.security-save-bar strong, .security-save-bar small { display: block; }
.security-save-bar small { margin-top: 4px; color: var(--muted); }
.security-log-table { width: 100%; border-collapse: collapse; }
.security-log-table th, .security-log-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 12px; }
.security-log-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.security-log-error { display: block; max-width: 500px; margin-top: 6px; color: #e8a5a5; line-height: 1.4; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .security-form-grid { grid-template-columns: 1fr; }
  .security-form-grid .span-2 { grid-column: auto; }
  .security-test-row, .security-save-bar { align-items: stretch; flex-direction: column; }
  .security-test-row .button, .security-save-bar .button { width: 100%; justify-content: center; }
  .security-save-bar { bottom: 70px; }
  .copy-field { grid-template-columns: 1fr; }
  .security-log-table { min-width: 680px; }
}

/* MOJO 5.5.0, inteligência de dados e Price Guide */
.intelligence-tabs { display: flex; gap: 7px; margin: -5px 0 20px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: #101013; }
.intelligence-tabs button { min-height: 38px; padding: 8px 14px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; white-space: nowrap; }
.intelligence-tabs button:hover { color: var(--text); background: var(--panel-2); }
.intelligence-tabs button.active { color: #17120a; background: var(--gold); font-weight: 800; }
.intelligence-kpis { margin-bottom: 18px; }
.intelligence-stat { min-height: 126px; }
.grid-3.intelligence-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.intelligence-grid .panel { min-width: 0; }
.intelligence-grid .panel-header { align-items: flex-start; }
.intelligence-grid .panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.intelligence-bars { display: grid; gap: 13px; }
.intelligence-bar-row { min-width: 0; }
.intelligence-bar-copy { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 5px; font-size: 12px; }
.intelligence-bar-copy span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d1d1d6; }
.intelligence-bar-copy strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.intelligence-bar-track { height: 6px; overflow: hidden; border-radius: 999px; background: #25252b; }
.intelligence-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #755b2c, var(--gold)); }
.price-guide-hero { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 18px; padding: 25px; border: 1px solid rgba(216,181,106,.3); border-radius: 18px; background: radial-gradient(circle at 90% 10%, rgba(216,181,106,.17), transparent 35%), linear-gradient(140deg, #18140f, #111114 58%); }
.price-guide-hero small { color: var(--gold); font-weight: 850; letter-spacing: .14em; }
.price-guide-hero h2 { margin: 6px 0 7px; font-size: clamp(24px,3vw,36px); letter-spacing: -.03em; }
.price-guide-hero p { max-width: 760px; margin: 0; color: var(--muted); }
.price-guide-hero-actions { display: grid; gap: 11px; min-width: 190px; text-align: center; }
.price-guide-hero-actions span { color: var(--muted); font-size: 12px; }
.intelligence-opportunity-panel { margin-bottom: 18px; }
.opportunity-score { display: inline-grid; min-width: 34px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #111114; font-weight: 800; }
.opportunity-score.medium { color: var(--gold); border-color: rgba(216,181,106,.35); background: var(--gold-bg); }
.opportunity-score.high { color: var(--green); border-color: rgba(97,200,140,.35); background: var(--green-bg); }
.intelligence-value-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.intelligence-value-summary > div { padding: 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: #111114; }
.intelligence-value-summary span, .intelligence-value-summary strong { display: block; }
.intelligence-value-summary span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.intelligence-value-summary strong { margin-top: 8px; font-size: 21px; }
.price-guide-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.price-guide-toolbar h2 { margin: 0 0 4px; font-size: 27px; }
.price-guide-toolbar p { margin: 0; color: var(--muted); }
.price-guide-filters { grid-template-columns: minmax(240px,1.4fr) minmax(150px,.8fr) minmax(130px,.65fr) minmax(130px,.65fr) auto; }
.price-guide-filters .span-2 { grid-column: auto; }
.price-guide-result-meta { display: flex; justify-content: space-between; gap: 15px; margin: 3px 3px 12px; color: var(--muted); font-size: 12px; }
.price-guide-result-meta strong { color: var(--text); }
.price-guide-table { min-width: 1120px; }
.price-guide-table td strong, .price-guide-table td small { display: block; }
.price-guide-table td small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.confidence-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 62px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #111114; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.confidence-pill.alta { color: var(--green); border-color: rgba(97,200,140,.35); background: var(--green-bg); }
.confidence-pill.média, .confidence-pill.media { color: var(--gold); border-color: rgba(216,181,106,.35); background: var(--gold-bg); }
.confidence-pill.baixa { color: #ffb1b1; border-color: rgba(242,127,127,.35); background: var(--red-bg); }
.methodology-note { margin: 17px 0; padding: 16px 18px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: #121216; }
.methodology-note strong { color: var(--gold); }
.methodology-note p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.price-guide-modal { width: min(1000px, calc(100vw - 28px)); }
.price-guide-live-preview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.price-guide-live-preview span { padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; color: var(--muted); background: #111114; font-size: 11px; }
.price-guide-live-preview strong { display: block; margin-top: 5px; color: var(--text); font-size: 16px; }
.price-estimate-card { margin: 18px 0 0; padding: 17px; border: 1px solid rgba(216,181,106,.32); border-radius: 14px; background: radial-gradient(circle at 92% 7%, rgba(216,181,106,.15), transparent 38%), #111114; }
.price-estimate-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.price-estimate-head small { color: var(--gold); font-weight: 850; letter-spacing: .13em; }
.price-estimate-head h3 { margin: 3px 0 0; font-size: 19px; }
.price-estimate-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.price-estimate-values > div { padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(9,9,11,.48); }
.price-estimate-values span, .price-estimate-values strong { display: block; }
.price-estimate-values span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.price-estimate-values strong { margin-top: 5px; font-size: 17px; }
.price-estimate-card > p { margin: 0 0 8px; color: #d3d3d8; font-size: 12px; }
.price-estimate-card > small { display: block; color: var(--subtle); font-size: 10px; line-height: 1.5; }
.price-estimate-card > .button { margin-top: 12px; }
.empty-inline { padding: 22px; color: var(--muted); text-align: center; }
code { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: #0d0d10; color: #d8d8dc; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }

@media (max-width: 1180px) {
  .grid-3.intelligence-grid { grid-template-columns: 1fr 1fr; }
  .grid-3.intelligence-grid > :last-child { grid-column: 1 / -1; }
  .price-guide-filters { grid-template-columns: 1fr 1fr 1fr; }
  .price-guide-filters .field:first-child { grid-column: 1 / -1; }
  .price-guide-filters .button { align-self: end; }
}
@media (max-width: 760px) {
  .intelligence-page-header .page-actions { display: none; }
  .intelligence-tabs { margin-top: -10px; }
  .grid-3.intelligence-grid { grid-template-columns: 1fr; }
  .grid-3.intelligence-grid > :last-child { grid-column: auto; }
  .price-guide-hero, .price-guide-toolbar { align-items: stretch; flex-direction: column; }
  .price-guide-hero-actions { min-width: 0; }
  .intelligence-value-summary { grid-template-columns: 1fr 1fr; }
  .price-guide-filters { grid-template-columns: 1fr; }
  .price-guide-filters .field:first-child { grid-column: auto; }
  .price-guide-filters .button { width: 100%; }
  .price-guide-toolbar .page-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .price-guide-live-preview, .price-estimate-values { grid-template-columns: 1fr; }
  .price-guide-table { min-width: 0; }
  .price-guide-table tbody { display: grid; gap: 10px; padding: 0; }
  .price-guide-table tr { display: block; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
  .price-guide-table td { display: block !important; padding: 5px 0; border: 0; }
  .price-guide-table td::before { display: none !important; }
  .price-guide-table td:last-child .button { width: 100%; }
  .string-intelligence { display: grid; }
}


/* MOJO 5.5.1 — categorias completas, rolagem infinita e voltar ao topo */
.instrument-infinite-footer { display: flex; justify-content: center; padding: 22px 0 34px; }
.instrument-scroll-sentinel { min-height: 52px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 12px 18px; color: var(--muted); font-size: 12px; text-align: center; }
.instrument-load-spinner { width: 18px; height: 18px; border: 2px solid rgba(216,181,106,.22); border-top-color: var(--gold); border-radius: 50%; animation: mojo-instrument-spin .8s linear infinite; }
.instrument-load-complete { color: var(--green); font-weight: 750; }
.instrument-load-error { color: #ffb1b1; }
@keyframes mojo-instrument-spin { to { transform: rotate(360deg); } }
.back-to-top { position: fixed; z-index: 72; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 14px; border: 1px solid rgba(216,181,106,.42); border-radius: 999px; background: rgba(18,18,22,.94); color: var(--gold); box-shadow: 0 12px 34px rgba(0,0,0,.38); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease; backdrop-filter: blur(12px); }
.back-to-top:hover { background: #1c1a17; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top > span:first-child { font-size: 18px; line-height: 1; }
@media (max-width: 760px) {
  .back-to-top { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); min-width: 44px; justify-content: center; padding: 10px 12px; }
  .back-to-top > span:last-child { display: none; }
  .instrument-infinite-footer { padding-bottom: 90px; }
}


/* MOJO 5.5.2 — acesso contínuo, confirmação flexível e visualização de senha */
.password-field-shell { position: relative; width: 100%; }
.password-field-shell > input { width: 100%; padding-right: 78px !important; }
.password-visibility-toggle { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); border: 0; border-radius: 8px; padding: 7px 8px; background: transparent; color: var(--gold); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.password-visibility-toggle:hover, .password-visibility-toggle:focus-visible { background: var(--gold-bg); outline: none; }
.email-verification-banner { margin: 14px 24px 0; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(216,183,99,.45); border-radius: 14px; background: rgba(216,183,99,.09); }
.email-verification-banner > div { min-width: 0; display: grid; gap: 3px; }
.email-verification-banner strong { color: var(--gold); }
.email-verification-banner span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.profile-verify-email { margin-top: 7px; display: inline-flex; }
@media (max-width: 700px) {
  .email-verification-banner { margin: 10px 12px 0; align-items: stretch; flex-direction: column; gap: 10px; }
  .email-verification-banner .button { justify-content: center; width: 100%; }
}
