/* ATLAS BEATS — v14.0: native apps section, app-mode tweaks, owner-only black profile, profile badges/gift shelf */
.apps-sec { margin: 34px auto 10px; padding: 0 4px; max-width: 1180px; }
.apps-sec[hidden] { display: none !important; }
.ap-head { text-align: center; margin-bottom: 20px; }
.ap-kicker { display: inline-block; font-size: 11px; letter-spacing: 2.4px; font-weight: 800; color: #c4b5fd; background: rgba(124, 58, 237, .16); border: 1px solid rgba(167, 139, 250, .3); border-radius: 99px; padding: 5px 12px; }
.ap-head h2 { margin: 12px 0 8px; font-size: clamp(20px, 3vw, 30px); font-weight: 800; letter-spacing: -.2px; }
.ap-head p { margin: 0 auto; max-width: 620px; color: var(--muted, #a9a3cc); line-height: 1.8; font-size: 14px; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 16px; align-items: stretch; }
.ap-card { position: relative; border-radius: 22px; padding: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .09); overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-width: 0; isolation: isolate; }
.ap-card::before { content: ''; position: absolute; inset: -40% auto auto -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(50px); opacity: .55; z-index: -1; }
.ap-android::before { background: #22c55e; } .ap-windows::before { background: #3b82f6; }
.ap-top { display: flex; align-items: center; gap: 12px; }
.ap-os { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; flex: none; }
.ap-android .ap-os { color: #4ade80; } .ap-windows .ap-os { color: #60a5fa; }
.ap-tt { display: flex; flex-direction: column; min-width: 0; }
.ap-tt b { font-size: 18px; } .ap-tt small { color: var(--muted, #a9a3cc); font-size: 12px; }
.ap-ver { margin-inline-start: auto; font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #e9e5ff; }
.ap-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.55; color: #e9e5ff; }
.ap-ok { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #a78bfa; } .ap-android .ap-ok { color: #4ade80; } .ap-windows .ap-ok { color: #60a5fa; }
.ap-meta { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.ap-meta span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ap-meta small { color: var(--muted, #a9a3cc); font-size: 11px; } .ap-meta b { font-size: 12.5px; }
.ap-acts { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.ap-acts .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; border-radius: 14px; }
.ap-dl { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ap-qr { border-radius: 22px; padding: 18px 14px; text-align: center; background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .16); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.ap-qr canvas { width: 150px; height: 150px; border-radius: 12px; padding: 8px; background: rgba(255, 255, 255, .06); image-rendering: pixelated; }
.ap-qr p { margin: 0; font-size: 12.5px; color: #e9e5ff; line-height: 1.6; } .ap-qr small { font-size: 10px; color: var(--muted, #a9a3cc); word-break: break-all; }
.ap-note { text-align: center; color: var(--muted, #a9a3cc); font-size: 12.5px; margin: 14px 0 0; }
@media (max-width: 1000px) { .ap-grid { grid-template-columns: 1fr 1fr; } .ap-qr { grid-column: 1 / -1; flex-direction: row; text-align: start; justify-content: flex-start; } .ap-qr canvas { width: 120px; height: 120px; } }
@media (max-width: 640px) { .apps-sec { margin-top: 26px; } .ap-grid { grid-template-columns: 1fr; gap: 12px; } .ap-card { padding: 16px; border-radius: 18px; } .ap-qr { display: none; } .ap-meta { gap: 10px; } .ap-acts .btn { min-height: 42px; } }
@media (pointer: coarse) { .ap-qr { display: none; } }
/* install guide sheet */
.ap-sheet { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; }
.ap-sheet.in { opacity: 1; } .ap-sh-bd { position: absolute; inset: 0; background: rgba(4, 3, 10, .72); backdrop-filter: blur(6px); }
.ap-sh { position: relative; width: min(520px, 100%); background: #110f1f; border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px 24px 0 0; padding: 18px 18px 22px; transform: translateY(24px); transition: transform .3s var(--spring, ease); display: grid; gap: 14px; }
.ap-sheet.in .ap-sh { transform: none; }
@media (min-width: 640px) { .ap-sheet { align-items: center; } .ap-sh { border-radius: 24px; } }
.ap-sh-head { display: flex; align-items: center; gap: 10px; } .ap-sh-head b { font-size: 16px; flex: 1; } .ap-sh-head .ap-os { width: 38px; height: 38px; padding: 8px; }
.ap-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ap-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.7; }
.ap-steps i { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: linear-gradient(135deg, #7c3aed, #3b82f6); color: #fff; margin-top: 2px; }
/* in-app mode: the apps section + "install app" prompts disappear; the gate cannot be dismissed */
html[data-app] .apps-sec, html[data-app] #drApps { display: none !important; }
.gate-wall.app-gate .gate-card { padding-top: 26px; } .gate-wall.app-gate .gate-count { display: none; }
body.in-app .pwa-banner, body.in-app #installBtn { display: none !important; }
/* drawer entry */
.dr-page .cnt.apps { background: linear-gradient(135deg, #22c55e, #3b82f6); color: #fff; }
