.topbar { margin-bottom: 19px; }
.brand-mark { background: #b794f0; color: #1b1226; box-shadow: none; }
.profile-shortcut { background: #352441; border: 1px solid #755795; box-shadow: none; }

.night-home .night-kicker { margin: 8px 0 13px; color: #c4a2f8; font-size: 10px; font-weight: 900; letter-spacing: 1.4px; }
.night-home .night-balance { gap: 14px; min-height: 83px; padding: 17px; border: 1px solid #604876; border-radius: 19px; background: linear-gradient(115deg, #372546, #201a30); box-shadow: none; }
.night-balance > strong { min-width: 48px; color: #d9beff; font-size: 39px; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.night-balance > div { flex: 1; }
.night-balance b { display: block; font-size: 12px; }
.night-balance small { display: block; margin-top: 4px; color: #beb3c9; font-size: 10px; }
.night-balance .hero-account-btn { width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #7b638f; background: transparent; color: #dabfff; }
.night-home .night-section-head { align-items: center; margin: 25px 2px 11px; }
.night-section-head h2 { margin: 0; font-size: 14px; }
.night-section-head small { color: #aaa5b6; font-size: 10px; }
.night-home .night-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.night-home .content-card { position: relative; overflow: hidden; border-radius: 17px; }
.night-home .content-card.normal { grid-column: 1 / -1; min-height: 172px; display: block; padding: 18px; border-color: #60447a; background: radial-gradient(circle at 76% 40%, #75409f 0, #381e59 35%, transparent 65%), linear-gradient(130deg, #302043, #171825); }
.night-home .content-card.normal:before, .night-home .content-card.normal:after { content: ""; position: absolute; width: 180px; height: 180px; top: -8px; right: -6px; border: 1px solid #ffffff26; border-radius: 50%; }
.night-home .content-card.normal:after { width: 224px; height: 224px; top: -29px; right: -27px; }
.night-card-eyebrow { position: relative; z-index: 1; color: #d2b4ff; font-size: 9px; font-weight: 900; letter-spacing: 1.2px; }
.night-home .normal .content-card-copy { position: relative; z-index: 1; display: block; margin-top: 6px; }
.night-home .normal .content-card-copy b { display: block; font-size: 25px; letter-spacing: -.6px; }
.night-home .normal .content-card-copy small { display: block; margin-top: 3px; color: #cfbfdc; font-size: 10px; }
.night-play { position: absolute; z-index: 2; right: 23px; bottom: 18px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #d6b3ff; color: #251233; font-size: 26px; }
.night-home .content-card.partner, .night-home .content-card.photo { min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 12px; gap: 5px; border-color: #343549; background: linear-gradient(135deg, #202435, #151820); }
.night-home .content-card.photo { background: linear-gradient(135deg, #382437, #191923); }
.night-home .content-card-icon { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; background: #3c2e4d; color: #cba7ff; font-size: 18px; }
.night-home .content-card.photo .content-card-icon { background: #593048; color: #ffa9c8; }
.night-home .partner .content-card-copy, .night-home .photo .content-card-copy { display: block; }
.night-home .partner .content-card-copy b, .night-home .photo .content-card-copy b { display: block; font-size: 12px; }
.night-home .partner .content-card-copy small, .night-home .photo .content-card-copy small { display: block; margin-top: 2px; font-size: 9px; }
.night-home-actions { display: flex; gap: 8px; margin-top: 14px; }
.night-home-actions button { display: flex; align-items: center; min-height: 46px; border-radius: 12px; font-size: 10px; font-weight: 800; }
.night-invite { flex: 1; min-width: 0; gap: 6px; padding: 8px 10px; border: 1px solid #315e4d; background: #19352d; color: #baf9d5; text-align: left; }
.night-invite > span:first-child { font-size: 18px; }
.night-invite > span:nth-child(2) { min-width: 0; }
.night-invite small { display: block; margin-top: 2px; color: #93c7a9; font-size: 8px; font-weight: 600; }
.night-invite b { margin-left: auto; font-size: 14px; }
.night-credit { flex: 0 0 auto; gap: 2px; padding: 8px 10px; border: 1px solid #756044; background: #392c21; color: #f9d28d; }
.night-credit span { font-size: 15px; }
.night-home .night-channel { margin-top: 14px; padding: 12px; gap: 9px; border-radius: 15px; box-shadow: none; }
.night-home .night-channel .channel-icon { width: 34px; height: 34px; font-size: 19px; }
.night-home .night-channel button { min-height: 35px; padding: 7px; }
.night-home .night-channel b { font-size: 11px; }
.night-home .night-channel span { font-size: 9px; }

.night-purchase-head { display: flex; align-items: center; gap: 9px; margin: 3px 0 22px; }
.night-purchase-head .eyebrow { margin: 0; }
.night-back { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #50405e; border-radius: 50%; background: transparent; color: #d0b3f1; }
.night-back span { font-size: 17px; }
.night-purchase > h1 { font-size: 28px; line-height: 1.1; }
.night-purchase-intro { margin: 7px 0 18px; color: #aca6b9; font-size: 11px; line-height: 1.5; }
.night-current-balance { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding: 13px 14px; border: 1px solid #393348; border-radius: 13px; background: #1c2030; color: #aaa7ba; font-size: 10px; }
.night-current-balance strong { color: #d9bdff; font-size: 15px; }
.night-options-title { margin: 0 0 11px; font-size: 12px; }
.night-packages { display: grid; gap: 9px; }
.night-package { width: 100%; min-height: 81px; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #373749; border-radius: 14px; background: #1b1c2a; text-align: left; }
.night-package.selected { border-color: #c59af9; background: linear-gradient(105deg, #332345, #242035); box-shadow: 0 0 0 1px #9d75c355; }
.night-package > i { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 17px; border: 1.5px solid #8a8195; border-radius: 50%; }
.night-package.selected > i { border-color: #d1a8ff; }
.night-package.selected > i:after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d3adff; }
.night-package > span { flex: 1; }
.night-package b { display: block; font-size: 13px; }
.night-package small { display: block; margin-top: 4px; color: #aca7b7; font-size: 9px; }
.night-package strong { font-size: 14px; white-space: nowrap; }
.night-purchase-form #credit-amount-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; color: #aca6b9; font-size: 10px; }
.night-purchase-form #credit-amount { width: 94px; padding: 8px 10px; text-align: center; }
.night-trust { display: flex; justify-content: space-between; gap: 5px; margin: 15px 0 10px; padding: 11px 0 12px; border-top: 1px solid #313041; border-bottom: 1px solid #313041; }
.night-trust span { display: flex; align-items: center; gap: 3px; color: #bdb6c8; font-size: 8px; white-space: nowrap; }
.night-trust i { color: #bba3d6; font-size: 12px; font-style: normal; }
.night-purchase-form .stars-only-button { min-height: 48px; margin-top: 0; border-radius: 12px; background: #d3adff; color: #23132e; box-shadow: none; }
.night-payment-note { margin: 10px 5px 0; color: #aaa3b5; font-size: 9px; line-height: 1.45; text-align: center; }
.night-payment-note strong { color: #d8c5ee; }
.night-purchase .gift-card { margin-top: 20px; }
.purchase-exit-card { background: #252032; border-color: #6c527d; }
.purchase-exit-handle { width: 42px; height: 4px; margin: -7px auto 18px; border-radius: 4px; background: #8b7d96; }
.purchase-exit-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: #47345c; color: #d9b5ff; }
.purchase-exit-card h2 { max-width: 330px; margin: 13px 0 7px; font-size: 21px; line-height: 1.2; }
.purchase-exit-card > p { color: #c5bdcf; font-size: 11px; line-height: 1.5; }
.purchase-exit-pack { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 13px; padding: 12px; border: 1px solid #6d527d; border-radius: 12px; background: #342840; font-size: 10px; }
.purchase-exit-pack strong { color: #ddc4fc; font-size: 14px; }
.purchase-exit-card .primary-wide { margin-top: 0; background: #d3adff; color: #291736; box-shadow: none; }
.purchase-exit-secondary { display: block; width: 100%; margin: 5px 0; padding: 11px; background: transparent; color: #c1b5ca; font-size: 10px; font-weight: 800; }
.purchase-reminder-optin { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: #b8adbf; font-size: 10px; }
.purchase-reminder-optin input { accent-color: #cda8ff; width: 16px; height: 16px; margin: 0; }
@media (min-width: 560px) { .night-home .night-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .night-home .content-card.normal { display: block; } .night-home .content-card.partner, .night-home .content-card.photo { display: flex; } }

body.media-viewer-open { overflow: hidden; }
.media-viewer { position: fixed; z-index: 9999; inset: 0; display: block; width: 100vw; height: 100vh; height: 100dvh; padding: 0; overflow: hidden; background: #000; }
.media-viewer-card { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; max-height: none; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: #000; box-shadow: none; animation: none; }
.media-viewer-card img, .media-viewer-card video { display: block; width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: contain; background: #000; }
.media-viewer-head { position: absolute; z-index: 3; top: max(14px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)); left: max(14px, env(safe-area-inset-left), var(--tg-content-safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 12px; border-radius: 24px; background: #0009; color: #fff; backdrop-filter: blur(8px); }
.media-viewer-head > span { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px; background: #b794f04d; color: #e5d4ff; font-size: 18px; }
.media-viewer-head b { font-size: 12px; }
.media-viewer-close { position: absolute; z-index: 4; top: auto; bottom: calc(70px + max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px))); right: max(16px, env(safe-area-inset-right), var(--tg-content-safe-area-inset-right, 0px)); display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 122px; height: 44px; padding: 0 12px; border: 1px solid #ffffff65; border-radius: 24px; background: #101015dc; color: #fff; backdrop-filter: blur(8px); }
.media-viewer-close span { font-size: 24px; }
.media-viewer-close b { font-size: 11px; white-space: nowrap; }

.earnings-view { padding-bottom: 10px; }
.earnings-hero { margin: 14px 0 10px; padding: 20px; border: 1px solid #427e67; border-radius: 19px; background: radial-gradient(circle at 90% 0%, #315846 0, transparent 48%), linear-gradient(130deg, #172e28, #171c23); }
.earnings-hero small { color: #a7d7bd; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.earnings-hero strong { display: block; margin-top: 7px; color: #c5ffdb; font-size: 32px; line-height: 1.1; }
.earnings-hero p { margin: 11px 0 0; color: #b6d3c2; font-size: 11px; line-height: 1.5; }
.earnings-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.earnings-stats article { padding: 13px; border: 1px solid #343b3d; border-radius: 14px; background: #1a2022; }
.earnings-stats small { display: block; color: #9fabaa; font-size: 9px; }
.earnings-stats strong { display: block; margin-top: 5px; color: #e7f4e9; font-size: 19px; }
.earnings-card { margin: 12px 0; padding: 15px; border: 1px solid #343b43; border-radius: 18px; background: #1b1e28; }
.earnings-card-head { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; }
.earnings-card-head > span { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 11px; background: #304539; color: #a4f5c0; font-size: 21px; }
.earnings-card-head b { display: block; font-size: 13px; }
.earnings-card-head small { display: block; margin-top: 3px; color: #aeb5b8; font-size: 9px; line-height: 1.4; }
.earnings-card label { display: grid; gap: 7px; margin-top: 11px; color: #d7e1dc; font-size: 10px; font-weight: 700; }
.earnings-card input { width: 100%; padding: 12px; border: 1px solid #3b434a; border-radius: 11px; outline: 0; background: #10131a; color: #f3f6f3; font-size: 12px; }
.earnings-card input:focus { border-color: #75c79a; }
.earnings-link { margin-top: 8px; padding: 2px 0; background: transparent; color: #a5edbf; font-size: 10px; font-weight: 800; }
.earnings-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.earnings-actions button { display: grid; justify-items: start; gap: 5px; min-width: 0; padding: 12px; border: 1px solid #4c4e5c; border-radius: 13px; background: #282334; text-align: left; }
.earnings-actions button:last-child { border-color: #4d725c; background: #20352b; }
.earnings-actions span { color: #d6baff; font-size: 21px; }
.earnings-actions button:last-child span { color: #b7efbf; }
.earnings-actions b { font-size: 10px; }
.earnings-actions small { color: #b6b5c0; font-size: 9px; }
.earnings-card .primary-wide { background: #b8ecc7; color: #173021; box-shadow: none; }
.earnings-note { margin: 11px 0 0; color: #9faeaa; font-size: 9px; line-height: 1.5; }
.earnings-history { margin: 9px 0 15px; border: 1px solid #30353b; border-radius: 14px; overflow: hidden; background: #1a1e24; }
.earnings-history-row, .withdraw-admin-row { display: flex; justify-content: space-between; gap: 9px; padding: 12px; border-bottom: 1px solid #30353b; }
.earnings-history-row:last-child, .withdraw-admin-row:last-child { border-bottom: 0; }
.earnings-history-row b, .withdraw-admin-row b { display: block; font-size: 11px; }
.earnings-history-row small, .withdraw-admin-row small { display: block; margin-top: 4px; color: #9ca7a7; font-size: 9px; overflow-wrap: anywhere; }
.earnings-history-row > span { flex: 0 0 auto; align-self: center; color: #b4e6c4; font-size: 9px; font-weight: 800; }
.earnings-empty { padding: 14px; color: #a7acad; font-size: 10px; }
.withdraw-admin-row { display: grid; }
.withdraw-admin-actions { display: flex; gap: 8px; }
.withdraw-admin-actions button { padding: 8px 11px; border-radius: 9px; background: #254430; color: #b8f2cb; font-size: 10px; font-weight: 800; }
.withdraw-admin-actions button:last-child { background: #45272d; color: #ffc2c8; }
.bottom-nav button[data-go="earnings"] { color: #9fceab; }
.bottom-nav button[data-go="earnings"].active { color: #c3f3d0; }
.bottom-nav { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
.bottom-nav::-webkit-scrollbar { display: none; }
.bottom-nav button { min-width: 63px; }
.delivery-row { padding: 12px; border-bottom: 1px solid #31343d; background: #1b1e27; }
.delivery-row:last-child { border-bottom: 0; }
.delivery-row b { display: block; font-size: 11px; }
.delivery-row small { display: block; margin: 5px 0 8px; color: #aeb6b4; font-size: 9px; }
.delivery-row progress { width: 100%; height: 7px; accent-color: #a6e5ba; }
