.profile-page {
  --panel: rgba(8, 17, 30, .88);
  --panel-strong: rgba(12, 25, 43, .96);
  min-height: 100vh;
  background: #050914;
}
.profile-page button, .profile-page input, .profile-page textarea, .profile-page select { font: inherit; }
.profile-page [hidden] { display: none !important; }
.profile-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.profile-ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.profile-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(49,195,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(49,195,255,.055) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 86%); }
.profile-orb { position: absolute; border-radius: 50%; filter: blur(12px); }
.profile-orb-one { width: 520px; height: 520px; top: -210px; right: -120px; background: radial-gradient(circle, rgba(36,119,255,.19), transparent 68%); }
.profile-orb-two { width: 470px; height: 470px; top: 52%; left: -250px; background: radial-gradient(circle, rgba(49,195,255,.1), transparent 70%); }
.profile-main { padding: 28px 0 80px; }
.profile-hero { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); box-shadow: 0 28px 90px rgba(0,0,0,.34); }
.cover-media { position: relative; height: clamp(230px, 29vw, 340px); overflow: hidden; background: radial-gradient(circle at 78% 22%, rgba(49,195,255,.24), transparent 20rem), radial-gradient(circle at 22% 82%, rgba(124,104,255,.22), transparent 24rem), linear-gradient(118deg, #071226 0%, #0a2c5a 46%, #07152b 100%); }
.cover-media::before { content: "ELITEGEAR // DIGITAL IDENTITY"; position: absolute; top: 30px; left: 36px; color: rgba(169,220,255,.3); font-family: var(--font-display); font-size: clamp(.58rem, 1vw, .76rem); font-weight: 800; letter-spacing: .25em; }
.cover-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 58%, rgba(4,9,18,.62)), repeating-linear-gradient(90deg, transparent 0 98px, rgba(255,255,255,.018) 99px 100px); pointer-events: none; }
.cover-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cover-circuit { position: absolute; inset: 0; opacity: .5; background: linear-gradient(90deg, transparent 12%, rgba(49,195,255,.13) 12.2% 12.4%, transparent 12.6% 100%), linear-gradient(0deg, transparent 67%, rgba(49,195,255,.12) 67.3% 67.5%, transparent 67.7%); }
.cover-circuit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #5ed7ff; box-shadow: 0 0 15px #31c3ff; }
.cover-circuit i:nth-child(1) { left: 12%; top: 67%; }.cover-circuit i:nth-child(2) { left: 44%; top: 35%; }.cover-circuit i:nth-child(3) { right: 17%; top: 24%; }.cover-circuit i:nth-child(4) { right: 30%; bottom: 17%; }
.cover-actions { position: absolute; z-index: 4; right: 22px; bottom: 22px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.media-edit { position: static; z-index: 3; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid rgba(199,226,255,.25); border-radius: 12px; color: #fff; background: rgba(4,10,20,.72); backdrop-filter: blur(14px); font-size: .72rem; font-weight: 800; cursor: pointer; transition: .2s ease; }
.media-edit:hover { border-color: var(--cyan); transform: translateY(-2px); }
.cover-position-edit { border-color: rgba(49,195,255,.34); color: #c9f4ff; background: rgba(5,24,39,.78); }
.media-edit svg { width: 16px; height: 16px; }
.profile-identity { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 4px; padding: 0 clamp(24px,4vw,48px) 34px; }
.avatar-shell { position: relative; width: 158px; height: 158px; margin-top: -77px; }
.avatar-media { width: 158px; height: 158px; display: grid; place-items: center; overflow: hidden; border: 7px solid #07101c; border-radius: 42px; color: #fff; background: linear-gradient(145deg, #2477ff, #703ee9); box-shadow: 0 18px 45px rgba(0,0,0,.42), 0 0 0 1px rgba(49,195,255,.35); font-family: var(--font-display); font-size: 4rem; font-weight: 800; }
.avatar-media img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit { position: absolute; right: -4px; bottom: 7px; width: 41px; height: 41px; display: grid; place-items: center; border: 4px solid #07101c; border-radius: 14px; color: #06101c; background: var(--cyan); cursor: pointer; transition: .2s ease; }
.avatar-edit:hover { transform: scale(1.08); background: #87e3ff; }
.avatar-edit svg { width: 17px; height: 17px; stroke-width: 2.3; }
.presence-dot { position: absolute; right: 17px; top: 8px; z-index: 3; width: 17px; height: 17px; border: 4px solid #07101c; border-radius: 50%; background: #43e7a4; box-shadow: 0 0 15px rgba(67,231,164,.7); }
.identity-copy { min-width: 0; padding-top: 24px; }
.identity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.profile-kicker { margin: 0 0 7px; color: var(--cyan); font-size: .63rem; font-weight: 800; letter-spacing: .16em; }
.profile-kicker span { display: inline-block; width: 22px; height: 2px; margin-right: 7px; background: var(--cyan); vertical-align: middle; }
.identity-heading h1 { margin: 0; font-size: clamp(1.9rem,4vw,3.25rem); line-height: 1.05; }
.profile-handle { margin: 7px 0 0; color: #7392b3; font-size: .78rem; }
.edit-profile-button { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 12px; color: #dff6ff; background: rgba(49,195,255,.06); font-size: .73rem; font-weight: 800; cursor: pointer; transition: .2s ease; }
.edit-profile-button:hover { transform: translateY(-2px); border-color: var(--cyan); }
.edit-profile-button svg { width: 16px; height: 16px; }
.profile-bio { max-width: 740px; margin: 18px 0 17px; color: var(--text-muted); font-size: .88rem; line-height: 1.7; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-badge { position: relative; min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 99px; color: #b8cce2; background: rgba(255,255,255,.025); font-size: .64rem; font-weight: 800; cursor: help; }
.profile-badge > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #07101c; }
.profile-badge svg { width: 14px; height: 14px; stroke-width: 2.2; }
.badge-verified > span { background: #47d5ff; }.badge-founder > span { background: #ffc85b; }.badge-tech > span { background: #9b83ff; }.badge-client > span { background: #48e3a3; }
.profile-badge::after { content: attr(data-badge); position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 9px); width: max-content; max-width: 220px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: #ddebfa; background: #07111e; font-size: .62rem; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: .18s ease; }
.profile-badge:hover::after, .profile-badge:focus-visible::after { opacity: 1; transform: translate(-50%,0); }
.profile-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-stats div { display: grid; gap: 3px; }
.profile-stats strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.profile-stats span { color: #7189a3; font-size: .66rem; }
.profile-layout { display: grid; grid-template-columns: minmax(220px,.78fr) minmax(380px,1.5fr) minmax(280px,1fr); gap: 22px; align-items: start; margin-top: 22px; }
.profile-column { min-width: 0; display: grid; gap: 18px; }
.profile-panel, .order-card { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(11,23,40,.9), rgba(5,12,22,.86)); box-shadow: 0 16px 45px rgba(0,0,0,.18); }
.profile-panel { padding: 22px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-heading p, .feed-heading p { margin: 0 0 6px; color: var(--cyan); font-size: .57rem; font-weight: 800; letter-spacing: .16em; }
.panel-heading h2, .feed-heading h2 { margin: 0; font-size: 1rem; }
.compact-heading { margin-bottom: 18px; }
.order-total { padding: 5px 7px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--cyan); background: rgba(49,195,255,.06); font-size: .56rem; font-weight: 800; letter-spacing: .06em; }
.about-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.about-list li { min-width: 0; display: flex; align-items: center; gap: 10px; color: #91a8c0; font-size: .68rem; }
.about-list svg { width: 17px; height: 17px; flex: 0 0 auto; color: #4fc9fa; }
.about-list span, .about-list a { min-width: 0; overflow-wrap: anywhere; }
.about-list a { color: #b6ddf0; }
.composer-card { padding: 22px; }
.composer-head { display: flex; align-items: center; gap: 12px; }
.mini-avatar { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; border-radius: 13px; color: #fff; background: linear-gradient(145deg,#2477ff,#703ee9); font-family: var(--font-display); font-weight: 800; }
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.composer-head > div:last-child { display: grid; gap: 3px; }.composer-head strong { font-size: .78rem; }.composer-head span { color: #7089a3; font-size: .63rem; }
.composer-card textarea { width: 100%; min-height: 104px; margin-top: 16px; padding: 15px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; outline: 0; color: #eef8ff; background: rgba(2,8,15,.54); font-size: .8rem; line-height: 1.6; transition: .2s ease; }
.composer-card textarea:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(49,195,255,.07); }
.composer-card textarea::placeholder { color: #5f7690; }
.post-image-preview { position: relative; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: #030913; }
.post-image-preview img { width: 100%; max-height: 360px; object-fit: cover; }
.post-image-preview button { position: absolute; top: 9px; right: 9px; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: #fff; background: rgba(3,8,15,.74); font-size: 1.2rem; cursor: pointer; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.composer-actions > div { display: flex; align-items: center; gap: 8px; }
.composer-tool { min-height: 35px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; color: #829ab4; background: transparent; font-size: .65rem; font-weight: 700; cursor: pointer; transition: .2s ease; }
.composer-tool:hover { color: var(--cyan); border-color: var(--line); background: rgba(49,195,255,.04); }.composer-tool svg { width: 16px; height: 16px; }
.composer-submit-wrap > span { color: #617993; font-size: .58rem; }
.publish-button { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 10px; color: #04101b; background: linear-gradient(135deg,#7de2ff,#31c3ff); font-size: .68rem; font-weight: 900; cursor: pointer; transition: .2s ease; }
.publish-button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(49,195,255,.18); }.publish-button svg { width: 15px; height: 15px; stroke-width: 2.2; }
.feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 6px 3px 0; }
.feed-heading button { border: 0; color: #6f88a3; background: transparent; font-size: .6rem; cursor: pointer; }.feed-heading button:hover { color: var(--cyan); }
.feed-list { display: grid; gap: 16px; }
.feed-post { overflow: hidden; }
.feed-post-main { padding: 21px; }
.post-author { display: flex; align-items: center; gap: 11px; }
.post-author-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }.post-author-copy strong { display: flex; align-items: center; gap: 6px; font-size: .76rem; }.post-author-copy strong svg { width: 14px; height: 14px; color: var(--cyan); }.post-author-copy span { color: #6f86a0; font-size: .6rem; }
.post-menu { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 9px; color: #6f86a0; background: transparent; cursor: pointer; }.post-menu:hover { border-color: var(--line); color: #fff; }.post-menu svg { width: 16px; height: 16px; }
.post-text { margin: 17px 0 0; color: #c7d6e5; font-size: .78rem; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-media { overflow: hidden; margin: 17px -21px -2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #02070d; }
.post-media img { width: 100%; max-height: 480px; object-fit: cover; }
.post-footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 21px 13px; border-top: 1px solid var(--line); }
.post-actions { display: flex; align-items: center; gap: 5px; }
.post-icon-action { min-width: 42px; height: 38px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; color: #dce7f3; background: transparent; cursor: pointer; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.post-icon-action:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateY(-1px); }
.post-icon-action:active { transform: scale(.94); }
.post-icon-action svg { width: 24px; height: 24px; stroke-width: 1.9; transition: fill .18s ease, transform .18s ease; }
.post-like-button:hover svg { transform: scale(1.08); }
.post-like-button.is-liked { color: #ff416c; }
.post-like-button.is-liked svg { fill: currentColor; }
.post-like-count { min-width: 1ch; color: currentColor; font-size: .78rem; font-weight: 800; line-height: 1; }
.post-share-button svg { transform: rotate(-7deg); }
.post-share-button:hover { color: var(--cyan); }
.post-date { color: #667f99; font-size: .58rem; white-space: nowrap; }
.purchase-summary-card { overflow: hidden; position: relative; }
.purchase-summary-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -70px; bottom: -95px; border-radius: 50%; background: radial-gradient(circle,rgba(49,195,255,.16),transparent 70%); }
.purchase-summary { position: relative; z-index: 2; margin-top: 25px; }.purchase-summary > div { display: grid; gap: 5px; }.purchase-summary span { color: #7189a2; font-size: .62rem; }.purchase-summary strong { font-family: var(--font-display); font-size: 1.5rem; }
.purchase-trend { width: max-content; display: flex; align-items: center; gap: 5px; margin-top: 13px; padding: 5px 8px; border-radius: 7px; color: #4ce1a3 !important; background: rgba(72,227,163,.08); font-weight: 800; }.purchase-trend svg { width: 13px; height: 13px; }
.orders-list { display: grid; gap: 13px; }
.order-card { padding: 17px; transition: .2s ease; }.order-card:hover { border-color: rgba(49,195,255,.27); transform: translateY(-2px); }
.order-card-head { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; }
.order-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--cyan); background: rgba(49,195,255,.08); }.order-icon svg { width: 18px; height: 18px; }
.order-card-head > div { min-width: 0; display: grid; gap: 3px; }.order-card-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }.order-card-head div span { color: #617991; font-size: .55rem; }
.order-status { padding: 5px 6px; border-radius: 7px; font-size: .51rem; font-weight: 800; white-space: nowrap; }.status-delivered { color: #48e3a3; background: rgba(72,227,163,.09); }.status-transit { color: #55cfff; background: rgba(49,195,255,.09); }.status-processing { color: #ffc85b; background: rgba(255,200,91,.09); }
.order-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: #7088a2; font-size: .58rem; }.order-meta strong { color: #dce8f4; font-size: .66rem; }
.order-progress { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin: 12px 0 13px; }.order-progress span, .order-progress i { height: 3px; border-radius: 99px; background: rgba(139,177,221,.13); }.order-progress span { background: linear-gradient(90deg,#2477ff,#31c3ff); }.order-progress.is-complete span { background: #48e3a3; }
.order-action { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 9px 0 0; border: 0; border-top: 1px solid var(--line); color: #7f98b2; background: transparent; font-size: .6rem; font-weight: 700; cursor: pointer; }.order-action:hover { color: var(--cyan); }.order-action svg { width: 14px; height: 14px; }
.profile-mobile-tabs { display: none; }
.profile-dialog { width: min(92vw,520px); padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; color: var(--text); background: #081321; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.profile-dialog::backdrop { background: rgba(0,4,10,.76); backdrop-filter: blur(7px); }
.profile-dialog form { padding: 25px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }.dialog-heading p { margin: 0 0 5px; color: var(--cyan); font-size: .58rem; font-weight: 800; letter-spacing: .15em; }.dialog-heading h2 { margin: 0; font-size: 1.3rem; }.dialog-heading > button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: #90a7bf; background: rgba(255,255,255,.025); font-size: 1.25rem; cursor: pointer; }
.profile-dialog label { display: grid; gap: 8px; margin-top: 15px; color: #c4d4e5; font-size: .67rem; font-weight: 700; }.profile-dialog input, .profile-dialog textarea, .profile-dialog select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: #fff; background: #040b14; font-size: .75rem; }.profile-dialog input:focus, .profile-dialog textarea:focus, .profile-dialog select:focus { border-color: var(--line-strong); }
.profile-dialog select { appearance: auto; }
.location-fields { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(150px,.65fr); gap: 12px; }
.location-fields label { min-width: 0; }.profile-dialog textarea { resize: vertical; }.profile-dialog label > small { justify-self: end; color: #69819b; font-size: .55rem; }
.handle-input { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: #040b14; }.handle-input:focus-within { border-color: var(--line-strong); }.handle-input span { padding-left: 13px; color: #6d87a2; }.handle-input input { border: 0; background: transparent; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }.dialog-actions button, .dialog-full { min-height: 40px; padding: 0 15px; border-radius: 10px; font-size: .67rem; font-weight: 800; cursor: pointer; }.dialog-secondary { border: 1px solid var(--line); color: #94a9bf; background: transparent; }.dialog-primary { border: 0; color: #05101b; background: linear-gradient(135deg,#7de2ff,#31c3ff); }.dialog-full { width: 100%; margin-top: 18px; }

.cover-position-help { margin: -8px 0 15px; color: #7890a9; font-size: .68rem; line-height: 1.55; }
.cover-position-preview { position: relative; height: 220px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 15px; background: #030913; cursor: grab; touch-action: none; user-select: none; }
.cover-position-preview.is-dragging { cursor: grabbing; border-color: var(--cyan); }
.cover-position-preview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.cover-position-preview span { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 58%, rgba(4,9,18,.55)); }
.cover-drag-hint { position: absolute; left: 50%; bottom: 13px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #edf9ff; background: rgba(3,10,18,.68); backdrop-filter: blur(10px); font-size: .61rem; font-weight: 800; pointer-events: none; transform: translateX(-50%); transition: opacity .18s ease; }
.cover-drag-hint svg { width: 15px; height: 15px; }
.cover-position-preview.is-dragging .cover-drag-hint { opacity: 0; }
.cover-range-grid { display: grid; gap: 3px; margin-top: 3px; }
.cover-range-grid label { grid-template-columns: 1fr auto; align-items: center; }
.cover-range-grid output { color: var(--cyan); font-size: .64rem; font-weight: 800; }
.cover-range-grid input[type="range"] { grid-column: 1 / -1; padding: 0; accent-color: var(--cyan); }

.order-dialog-visual { display: flex; gap: 15px; align-items: flex-start; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(49,195,255,.035); }.order-dialog-visual > span { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--cyan); background: rgba(49,195,255,.09); }.order-dialog-visual svg { width: 21px; height: 21px; }.order-dialog-visual strong { font-size: .73rem; }.order-dialog-visual p { margin: 7px 0 0; color: #8198b0; font-size: .65rem; line-height: 1.6; }
.profile-toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(370px,calc(100vw - 32px)); padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 12px; color: #dff6ff; background: rgba(5,14,25,.94); box-shadow: 0 18px 50px rgba(0,0,0,.45); font-size: .7rem; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .22s ease; }.profile-toast.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1050px) {
  .profile-layout { grid-template-columns: minmax(210px,.8fr) minmax(390px,1.55fr); }
  .purchases-column { grid-column: 1 / -1; grid-template-columns: repeat(3,1fr); align-items: stretch; }
  .purchases-column .orders-list { grid-column: span 2; grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 760px) {
  .profile-main { padding-top: 14px; }.profile-hero { border-radius: 18px; }.cover-media { height: 205px; }.cover-media::before { top: 20px; left: 18px; font-size: .5rem; }.cover-actions { right: 13px; bottom: 13px; }.media-edit { min-height: 36px; padding: 0 10px; font-size: .62rem; }
  .profile-identity { grid-template-columns: 1fr; padding: 0 18px 24px; }.avatar-shell { width: 116px; height: 116px; margin-top: -58px; }.avatar-media { width: 116px; height: 116px; border-width: 5px; border-radius: 31px; font-size: 3rem; }.avatar-edit { width: 35px; height: 35px; right: -2px; bottom: 3px; }.presence-dot { right: 11px; top: 6px; }
  .identity-copy { padding-top: 17px; }.identity-heading { align-items: center; }.edit-profile-button { width: 42px; padding: 0; justify-content: center; } .edit-profile-button span { display: none; }.edit-profile-button svg { width: 17px; }.profile-bio { font-size: .78rem; }.profile-stats { gap: 21px; }.profile-stats strong { font-size: .95rem; }.profile-stats span { font-size: .58rem; }
  .profile-mobile-tabs { position: sticky; top: 72px; z-index: 30; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin: 14px 0; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: rgba(5,12,21,.9); backdrop-filter: blur(15px); }.profile-mobile-tabs button { min-height: 38px; border: 0; border-radius: 9px; color: #7890a9; background: transparent; font-size: .66rem; font-weight: 800; }.profile-mobile-tabs button.is-active { color: #e8f8ff; background: rgba(49,195,255,.09); }
  .profile-layout { display: block; margin-top: 0; }.profile-column { display: none; }.profile-column.is-mobile-active { display: grid; }.purchases-column.is-mobile-active { grid-template-columns: 1fr; }.purchases-column .orders-list { grid-column: auto; grid-template-columns: 1fr; }
  .composer-actions { align-items: flex-end; }.composer-actions > div:first-child { gap: 2px; }.composer-tool { padding: 0 7px; }
}
@media (max-width: 560px) {
  .location-fields { grid-template-columns: 1fr; gap: 0; }
  .cover-position-preview { height: 180px; }
}
@media (max-width: 430px) {
  .profile-page .container { width: min(calc(100% - 20px),var(--container)); }
  .cover-media { height: 170px; }.cover-actions { max-width: calc(100% - 26px); }.cover-edit, .cover-position-edit { font-size: 0; width: 38px; padding: 0; justify-content: center; }.profile-identity { padding-inline: 14px; }.identity-heading h1 { font-size: 1.85rem; }.profile-badge { font-size: .58rem; }.profile-stats { justify-content: space-between; gap: 10px; }.profile-stats span { font-size: .52rem; }
  .profile-panel { padding: 17px; border-radius: 16px; }.composer-card { padding: 16px; }.composer-actions { display: grid; }.composer-submit-wrap { justify-content: space-between; }.publish-button { flex: 1; justify-content: center; }.feed-post-main { padding: 17px; }.post-media { margin-inline: -17px; }.post-footer { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { .profile-page *, .profile-page *::before, .profile-page *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; } }


/* Ajustes para a navegação global compartilhada */
.profile-page .profile-main { padding-top: 112px; }
@media (max-width: 820px) { .profile-page .profile-main { padding-top: 96px; } }

/* =========================================================
   PERFIS PÚBLICOS, AMIGOS E CORREÇÕES MOBILE — 2026-07-24
   ========================================================= */
.profile-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.profile-page .container,
.profile-hero,
.profile-layout,
.profile-column,
.profile-panel,
.feed-post,
.feed-post-main,
.post-author,
.post-author-copy {
  min-width: 0;
}
.identity-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}
.share-profile-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #c5d8ea;
  background: rgba(255,255,255,.025);
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.share-profile-button:hover {
  color: #effaff;
  border-color: rgba(49,195,255,.42);
  background: rgba(49,195,255,.075);
  transform: translateY(-2px);
}
.share-profile-button svg { width: 17px; height: 17px; }
.friends-total {
  min-width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(49,195,255,.25);
  border-radius: 9px;
  color: #9ae8ff;
  background: rgba(49,195,255,.07);
  font-size: .62rem;
  font-weight: 800;
}
.friends-list { display: grid; gap: 9px; }
.friend-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.friend-item:hover,
.friend-item:focus-visible {
  border-color: rgba(49,195,255,.2);
  background: rgba(49,195,255,.055);
  outline: none;
  transform: translateX(2px);
}
.friend-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(98,205,255,.28);
  border-radius: 50%;
  color: #04101c;
  background: linear-gradient(145deg,#7feaff,#31c3ff 52%,#7c68ff);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 900;
}
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friend-copy { min-width: 0; display: grid; gap: 3px; }
.friend-copy strong,
.friend-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-copy strong { color: #e9f7ff; font-size: .7rem; }
.friend-copy small { color: #718aa5; font-size: .59rem; }
.friends-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 18px 10px;
  border: 1px dashed rgba(126,178,220,.18);
  border-radius: 14px;
  color: #7890a9;
  text-align: center;
}
.friends-empty > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49,195,255,.22);
  border-radius: 50%;
  color: #72dcff;
  background: rgba(49,195,255,.06);
  font-size: 1.25rem;
  font-weight: 400;
}
.friends-empty strong { color: #abc1d6; font-size: .68rem; }
.friends-empty small { font-size: .58rem; line-height: 1.5; }
.empty-feed { text-align: center; }
.empty-feed strong { font-family: var(--font-display); }
.empty-feed p { margin: 8px 0 0; color: var(--text-muted); font-size: .72rem; line-height: 1.6; }

/* O editor agora usa a proporção real do banner e não envia a foto antes do submit. */
.cover-position-dialog { width: min(94vw, 720px); }
.cover-position-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 3.45 / 1;
  min-height: 170px;
  outline: none;
  overscroll-behavior: contain;
}
.cover-position-preview:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(49,195,255,.13);
}
.cover-unsaved-badge {
  width: fit-content;
  margin: -4px 0 11px;
  padding: 6px 9px;
  border: 1px solid rgba(255,200,91,.25);
  border-radius: 8px;
  color: #ffd889;
  background: rgba(255,200,91,.07);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.cover-position-help strong { color: #bcefff; }
.cover-dialog-actions { flex-wrap: wrap; }
.cover-dialog-actions .dialog-primary { min-width: 190px; }
.profile-dialog {
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 20px);
  overflow: auto;
  overscroll-behavior: contain;
}
.profile-dialog form { min-width: 0; }
.post-media { overflow: hidden; background: rgba(0,0,0,.18); }
.post-media img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #030810;
}
.post-actions { min-width: 0; }
.post-icon-action { touch-action: manipulation; }

@media (max-width: 760px) {
  .profile-main { padding-bottom: max(48px, env(safe-area-inset-bottom)); }
  .identity-heading { align-items: flex-start; }
  .identity-actions { gap: 7px; }
  .share-profile-button,
  .edit-profile-button {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }
  .share-profile-button span,
  .edit-profile-button span { display: none; }
  .profile-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
  .profile-stats div { min-width: 0; }
  .profile-stats strong,
  .profile-stats span { overflow: hidden; text-overflow: ellipsis; }
  .profile-mobile-tabs.is-two-tabs { grid-template-columns: repeat(2,1fr); }
  .about-column.is-mobile-active { display: grid; }
  .friends-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cover-position-preview { aspect-ratio: 2 / 1; min-height: 150px; }
  .profile-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .profile-dialog form { padding: 20px 16px; }
  .cover-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cover-dialog-actions .dialog-primary { grid-column: 1 / -1; min-width: 0; }
  .feed-heading { align-items: center; }
  .feed-heading h2 { max-width: 220px; }
  .post-footer { gap: 8px; }
}

@media (max-width: 520px) {
  .profile-page .container { width: calc(100% - 16px); }
  .profile-hero { border-radius: 16px; }
  .cover-media { height: 168px; }
  .profile-identity { padding-inline: 13px; }
  .identity-heading { gap: 10px; }
  .identity-heading h1 { font-size: clamp(1.55rem,8.2vw,1.9rem); overflow-wrap: anywhere; }
  .profile-handle { overflow-wrap: anywhere; }
  .identity-actions { flex-direction: column; }
  .profile-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .profile-stats div:last-child { grid-column: auto; }
  .friends-list { grid-template-columns: 1fr; }
  .friend-item { padding: 7px 4px; }
  .profile-mobile-tabs { top: calc(67px + env(safe-area-inset-top)); }
  .profile-panel { padding: 15px; }
  .post-author { align-items: flex-start; }
  .post-author-copy span { white-space: normal; overflow-wrap: anywhere; }
  .post-menu { flex: 0 0 auto; }
  .post-media { margin-inline: -15px; }
  .post-footer { padding: 11px 12px; }
  .post-date { max-width: 45%; text-align: right; }
  .cover-position-help { font-size: .64rem; }
  .cover-range-grid label { font-size: .62rem; }
}

@media (max-width: 360px) {
  .profile-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cover-actions { right: 8px; bottom: 8px; }
  .profile-mobile-tabs { gap: 2px; padding: 4px; }
}

/* Ações sociais do perfil */
.profile-friend-button,
.profile-message-button {
  min-height: 43px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(72, 205, 255, .3);
  border-radius: 13px;
  color: #e9fbff;
  background: linear-gradient(135deg, rgba(40, 171, 231, .18), rgba(40, 99, 197, .13));
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
  transition: .22s ease;
}

.profile-friend-button:hover,
.profile-message-button:hover {
  border-color: rgba(83, 220, 255, .55);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(28, 120, 205, .16);
}

.profile-friend-button svg,
.profile-message-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-friend-button.is-pending {
  color: #95aac0;
  border-color: rgba(120, 157, 194, .2);
  background: rgba(255, 255, 255, .025);
}

.profile-friend-button.is-accepted {
  color: #61e5ae;
  border-color: rgba(64, 218, 159, .26);
  background: rgba(42, 185, 132, .08);
}

.profile-message-button {
  color: #06131d;
  border-color: transparent;
  background: linear-gradient(135deg, #69e8ff, #2aaaff);
}

@media (max-width: 620px) {
  .identity-actions .profile-friend-button,
  .identity-actions .profile-message-button {
    flex: 1 1 calc(50% - 6px);
  }
}

.post-author-name {
  color: inherit;
  text-decoration: none;
}

.post-author-name:hover {
  color: #57dcff;
}

.post-comment-button.is-active,
.post-comment-button:hover { color: var(--cyan); }
.post-comments { margin: 0 21px 18px; border: 1px solid rgba(98, 167, 231, .12); border-radius: 16px; background: rgba(3, 11, 20, .48); overflow: hidden; }
.post-comments-toggle { width: 100%; min-height: 44px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; color: #a8c0d8; background: transparent; font-size: .73rem; font-weight: 700; cursor: pointer; }
.post-comments-toggle:hover { color: #eef8ff; background: rgba(255,255,255,.03); }
.post-comments-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.post-comments.is-open .post-comments-toggle svg { transform: rotate(180deg); }
.post-comments-body { padding: 0 15px 14px; border-top: 1px solid rgba(98, 167, 231, .12); }
.post-comments-list { display: grid; gap: 11px; padding-top: 13px; }
.post-comment-item { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: start; }
.post-comment-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; color: #ecf6ff; background: linear-gradient(135deg, rgba(71,124,255,.5), rgba(49,195,255,.35)); text-decoration: none; font-weight: 800; }
.post-comment-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-comment-bubble { min-width: 0; padding: 11px 12px; border: 1px solid rgba(98, 167, 231, .1); border-radius: 14px; background: rgba(255,255,255,.025); }
.post-comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-comment-head strong, .post-comment-head strong a { color: #eef8ff; font-size: .72rem; text-decoration: none; }
.post-comment-head time { color: #6f86a0; font-size: .58rem; }
.post-comment-bubble p { margin: 7px 0 0; color: #c7d6e5; font-size: .72rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-comment-delete { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #6f86a0; background: transparent; cursor: pointer; }
.post-comment-delete:hover { color: #ff7691; background: rgba(255, 76, 117, .08); }
.post-comment-delete svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.post-comment-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 14px; }
.post-comment-form input { min-width: 0; min-height: 42px; padding: 0 14px; border: 1px solid rgba(105, 160, 220, .16); border-radius: 12px; color: #e8f5ff; background: rgba(2, 9, 18, .65); }
.post-comment-form input:focus { outline: none; border-color: rgba(68, 198, 255, .4); box-shadow: 0 0 0 3px rgba(68, 198, 255, .08); }
.post-comment-form button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; color: #001019; background: linear-gradient(135deg, #5be5ff, #2ba5ff); font-weight: 800; cursor: pointer; }
.post-comments-empty, .post-comments-login { margin: 0; padding-top: 13px; color: #7f97b0; font-size: .69rem; }
@media (max-width: 640px) {
  .post-comments { margin: 0 14px 14px; border-radius: 14px; }
  .post-comment-item { grid-template-columns: 34px minmax(0,1fr); }
  .post-comment-avatar { width: 34px; height: 34px; }
  .post-comment-form { grid-template-columns: 1fr; }
  .post-comment-form button { width: 100%; }
}

.post-options { position: relative; margin-left: auto; }
.post-menu svg { fill: currentColor; stroke: none; }
.post-options-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 40; width: 180px; padding: 7px; display: none; border: 1px solid rgba(104,169,227,.18); border-radius: 13px; background: #091522; box-shadow: 0 18px 45px rgba(0,0,0,.45); }
.post-options.is-open .post-options-menu { display: grid; gap: 4px; }
.post-options-menu button { min-height: 38px; padding: 0 11px; border: 0; border-radius: 9px; color: #d7e6f4; background: transparent; text-align: left; font-size: .68rem; font-weight: 700; cursor: pointer; }
.post-options-menu button:hover { background: rgba(71,172,241,.08); color: #fff; }
.post-options-menu button.danger { color: #ff8ca1; }
.post-options-menu button.danger:hover { background: rgba(255,76,117,.08); }
.post-visibility-label { color: #68dfff; font-weight: 700; }
.post-editor-dialog { width: min(92vw, 560px); padding: 0; border: 1px solid rgba(104,169,227,.24); border-radius: 22px; color: #eef8ff; background: #081321; box-shadow: 0 30px 90px rgba(0,0,0,.62); }
.post-editor-dialog::backdrop { background: rgba(0,5,12,.78); backdrop-filter: blur(7px); }
.post-editor-card { padding: 22px; display: grid; gap: 16px; }
.post-editor-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.post-editor-card header small { color: var(--cyan); font-size: .58rem; font-weight: 900; letter-spacing: .14em; }
.post-editor-card h2 { margin: 5px 0 0; font-family: var(--font-display); font-size: 1.2rem; }
.post-editor-card header > button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: #dce9f5; background: rgba(255,255,255,.03); font-size: 1.4rem; cursor: pointer; }
.post-editor-card label { display: grid; gap: 7px; }
.post-editor-card label > span { color: #91a8bf; font-size: .68rem; font-weight: 700; }
.post-editor-card textarea, .post-editor-card select { width: 100%; border: 1px solid rgba(104,169,227,.16); border-radius: 13px; color: #eef8ff; background: #04101b; }
.post-editor-card textarea { min-height: 150px; padding: 13px; resize: vertical; }
.post-editor-card select { min-height: 44px; padding: 0 12px; }
.post-editor-card textarea:focus, .post-editor-card select:focus { outline: none; border-color: rgba(67,207,255,.42); box-shadow: 0 0 0 3px rgba(67,207,255,.08); }
.post-editor-help { margin: -5px 0 0; color: #7189a3; font-size: .65rem; }
.post-editor-card footer { display: flex; justify-content: flex-end; gap: 9px; }
.post-editor-card footer button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; color: #001019; background: linear-gradient(135deg,#5be5ff,#2ba5ff); font-weight: 800; cursor: pointer; }
.post-editor-card footer button.secondary { color: #a9bfd3; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
@media (max-width: 560px) {
  .post-editor-card { padding: 17px; }
  .post-editor-card footer { display: grid; grid-template-columns: 1fr 1fr; }
}
.profile-visibility-control select { min-height: 36px; padding: 0 30px 0 10px; border: 1px solid rgba(104,169,227,.16); border-radius: 10px; color: #b8cde0; background: #07131f; font-size: .62rem; font-weight: 700; cursor: pointer; }
.profile-visibility-control select:focus { outline: none; border-color: rgba(67,207,255,.38); }
@media (max-width: 620px) { .composer-submit-wrap { flex-wrap: wrap; } .profile-visibility-control { width: 100%; } .profile-visibility-control select { width: 100%; } }
