/* Ad places, sponsored labels, profile actions, advertise page */
.adx { position: relative; margin: 14px auto; max-width: min(calc(var(--w) * 1px), calc(100% - 24px)); border-radius: 14px; overflow: hidden; background: #eef4f9; box-shadow: 0 4px 18px rgba(10, 31, 51, .10); }
.adx a, .adx img { display: block; }
.adx img { width: 100%; height: auto; max-height: calc(var(--h) * 1.6px); object-fit: contain; }
.adx__tag { position: absolute; top: 6px; left: 6px; z-index: 1; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .88); color: #475569; }
.adx--inline { grid-column: 1 / -1; width: 100%; }
.adx--preview { display: grid; place-items: center; min-height: calc(var(--h) * .6px); border: 2px dashed #f59e0b; background: #fffbeb; color: #92400e; font-weight: 700; text-align: center; padding: 10px; }
.adx-wrap { display: block; }
.adx--left, .adx--right { display: none; }
@media (min-width: 1280px) {
    .adx-wrap:has(> .adx-rail > .adx) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
    .adx-rail { position: sticky; top: 150px; align-self: start; }
    .adx--left, .adx--right { display: block; width: 160px; max-width: 160px; margin: 16px 12px; }
    .adx--left.adx--preview, .adx--right.adx--preview { display: grid; min-height: 500px; }
}
.adx--sticky { display: none; }
@media (max-width: 767.98px) {
    .adx--sticky { display: block; position: fixed; left: 8px; right: 8px; bottom: calc(80px + env(safe-area-inset-bottom)); margin: 0 auto; z-index: 79; max-width: none; }
    .adx--sticky img { max-height: 70px; }
    .adx--sticky.adx--preview { display: grid; min-height: 56px; }
}
.adx__close { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(15, 23, 42, .7); color: #fff; font-size: 18px; cursor: pointer; z-index: 2; }
.spon-tag { position: absolute; top: 8px; right: 8px; z-index: 2; background: #fde68a; color: #713f12; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.has-spon { position: relative; outline: 2px solid #fcd34d; outline-offset: -2px; border-radius: 16px; }

/* profile actions */
.ea { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.ea-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--border-strong, #b8cee0); background: var(--white, #fff); color: var(--ink, #0a1f33); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none; }
.ea-btn:hover { border-color: #087ead; color: #056a91; }
.ea-spon { background: #fde68a; color: #713f12; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.ea-dialog { width: min(480px, calc(100vw - 24px)); border: 0; border-radius: 20px; padding: 22px; background: var(--white, #fff); color: var(--ink, #0a1f33); margin: auto; max-height: calc(100dvh - 24px); overflow: auto; }
.ea-dialog::backdrop { background: rgba(2, 6, 23, .55); }
.ea-dialog h2 { margin: 0 0 12px; font-size: 1.2rem; }
.ea-dialog form { display: grid; gap: 12px; margin-bottom: 10px; }
.ea-dialog label { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
.ea-dialog input:not([type=hidden]), .ea-dialog textarea, .ea-dialog select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1.5px solid var(--border, #d4e3ef); border-radius: 12px; background: var(--white, #fff); color: inherit; font: inherit; font-size: 16px; }
.ea-social { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ea-social a, .ea-social button { padding: 10px 14px; border-radius: 12px; border: 0; background: #e0f2fe; color: #0c4a6e; font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ea-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: #eff6ff; color: #1e3a8a; }
.ex { background: var(--white, #fff); border: 1px solid var(--border, #d4e3ef); border-radius: 16px; padding: 18px; margin: 16px 0; }
.ex h2 { font-size: 1.1rem; margin: 0 0 12px; font-weight: 800; }
.ex h3 { font-size: 1rem; margin: 14px 0 4px; }
.ex p { margin: 0; white-space: pre-line; }
.ex ul { margin: 0; padding-left: 20px; columns: 2 220px; }
.ex-facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.ex-facts dt { color: var(--ink-soft, #4a6480); font-size: 13px; }
.ex-facts dd { margin: 0; font-weight: 700; }
.ex-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ex-links a { padding: 9px 14px; border-radius: 12px; background: #eaf5fb; color: #045676; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

/* advertise page */
.av-hero { background: linear-gradient(125deg, #022f40, #087ead 60%, #0d9488); color: #fff; padding: clamp(40px, 8vw, 84px) 0; text-align: center; }
.av-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3.1rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -.03em; }
.av-hero p { font-size: 1.08rem; opacity: .94; max-width: 620px; margin: 0 auto 22px; }
.av-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 14px; background: #facc15; color: #422006; font-weight: 800; text-decoration: none; }
.av-btn--ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.av-map { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center; padding-block: 44px; max-width: 1100px; }
.av-map h2, .av-group h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; margin: 0 0 6px; }
.av-page { display: grid; gap: 8px; grid-template: "t t t" 48px "l c r" 210px "b b b" 48px "s s s" 34px / 64px 1fr 64px; padding: 14px; border-radius: 20px; background: #0b1f33; }
.av-page span { border-radius: 10px; background: #facc15; color: #422006; font-weight: 800; font-size: 13px; display: grid; place-items: center; text-align: center; }
.av-page .t { grid-area: t; } .av-page .b { grid-area: b; background: #fb923c; } .av-page .s { grid-area: s; background: #f472b6; }
.av-page .l { grid-area: l; background: #4ade80; } .av-page .r { grid-area: r; background: #4ade80; }
.av-page .c { grid-area: c; background: #e2e8f0; color: #334155; align-content: space-evenly; }
.av-page em { font-style: normal; background: #38bdf8; color: #082f49; border-radius: 8px; padding: 12px 18px; }
.av-group { padding-block: 22px; max-width: 1200px; scroll-margin-top: 150px; }
.av-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); margin-top: 16px; }
.av-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 20px; border-radius: 20px; background: var(--white, #fff); border: 1px solid var(--border, #d4e3ef); }
.av-card.is-pop { border: 2px solid #087ead; box-shadow: 0 18px 40px -14px rgba(8, 126, 173, .45); }
.av-pop { position: absolute; top: -13px; left: 20px; background: #087ead; color: #fff; font-size: 12.5px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.av-card h3 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.av-card p { margin: 0; font-size: 14.5px; }
.av-price b { font-size: 1.9rem; font-family: var(--font-display); }
.av-price s { color: #94a3b8; margin-right: 8px; }
.av-price span { color: var(--ink-soft, #4a6480); }
.av-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; font-size: 14.5px; }
.av-card li::before { content: "✓ "; color: #059669; font-weight: 800; }
.av-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 0; list-style: none; counter-reset: s; }
.av-steps li { counter-increment: s; background: var(--white, #fff); border: 1px solid var(--border, #d4e3ef); border-radius: 16px; padding: 16px; }
.av-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #087ead; color: #fff; font-weight: 800; margin-right: 8px; }
