/* Shared geometry is independent of account, prize and subscription state. */
body.has-miniapp-modal { overflow: hidden; }
.checkout-error { padding: 12px; margin: 8px 0; border: 1px solid #dce9f4; border-radius: 12px; background: #f0f7ff; color: #57809b; font-size: 12px; line-height: 1.6; }
#fortuneDisc.resetting, #fortuneDisc.resetting .fortune-sector-shell { transition: none !important; }
.modal-backdrop { overscroll-behavior: contain; overflow: hidden; }
.modal-sheet { max-height: 94dvh; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
.sheet-close-btn { width: 44px; height: 44px; flex: 0 0 44px; }
.profile-header-btn { font: inherit; flex: 1; min-width: 0; min-height: 52px; max-width: calc(100% - 66px); border: 0; border-radius: 14px; padding: 4px; background: transparent; gap: 10px; }
.profile-header-info { flex: 1; min-width: 0; max-width: none; }
.profile-header-name-row { width: 100%; }
.profile-header-name { font-size: 14px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.profile-header-handle { font-size: 12px; color: #8090a9; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prem-badge-chip { font-size: 0; width: 18px; height: 18px; background: #f1eaff; color: #9465da; box-shadow: none; }
.prem-badge-chip::after { content: '✦'; font-size: 13px; }
.profile-chevron-wrap { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: #f3f6fb; }
.profile-header-btn:focus-visible, .tg-menu-item:focus-visible { outline: 2px solid #50b4df; outline-offset: 3px; }
.profile-sheet { max-width: 460px; padding: 12px 18px 20px; max-height: 94dvh; background: #f7f9fc; gap: 0; }
.profile-sheet-header { position: relative; flex: 0 0 auto; border: 0; padding: 0 42px 16px; justify-content: center; }
.profile-user-left { flex-direction: column; gap: 9px; width: 100%; text-align: center; }
.profile-avatar-lg { width: 64px; height: 64px; font-size: 24px; background: linear-gradient(145deg,#71c6ef,#9784e8); box-shadow: none; }
.profile-meta { width: 100%; align-items: center; gap: 4px; }
.profile-name-row { justify-content: center; }
.profile-user-name { font-size: 17px; line-height: 1.4; white-space: normal; overflow: visible; overflow-wrap: anywhere; font-weight: 750; }
.profile-user-handle { font-size: 12px; font-weight: 500; color: #8794aa; overflow-wrap: anywhere; }
.profile-header-actions { position: absolute; right: -5px; top: 0; }
.profile-lang-switcher { display: none; }
.profile-close-btn { border: 0; background: #ecf0f6; }
.profile-sheet-content { min-height: 0; gap: 12px; padding: 0 1px 4px; overscroll-behavior: contain; scrollbar-width: thin; }
.tg-menu-card { order: -1; padding: 0; border: 1px solid #e5eaf2; border-radius: 18px; overflow: hidden; background: #fff; }
.tg-menu-section { order: -1; margin: 0; }
.profile-data-status { order: -2; }
.tg-menu-list { padding: 0; }
.tg-menu-item { min-height: 58px; padding: 11px 13px; gap: 10px; width: 100%; }
.tg-menu-item-left { min-width: 0; gap: 10px; }
.tg-menu-icon { width: 32px; height: 32px; min-width: 32px; border-radius: 10px; font-size: 17px; box-shadow: none; }
.tg-menu-text { min-width: 0; }
.tg-menu-title { font-size: 12px; font-weight: 650; line-height: 1.5; }
.tg-menu-sub { display: none; }
.tg-menu-item-right { gap: 6px; min-width: 0; max-width: 40%; }
.tg-menu-value { font-size: 11px; color: #59a5ce; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card { padding: 13px; background: #fff; border-color: #e5eaf2; box-shadow: none; }
.profile-card-header { align-items: center; gap: 8px; }
.profile-card-title-group { min-width: 0; gap: 9px; }
.profile-card-title { font-size: 12px; line-height: 1.4; }
.profile-card-desc { font-size: 10px; }
.profile-card-icon { width: 30px; height: 30px; min-width: 30px; font-size: 16px; box-shadow: none; }
.profile-badge { font-size: 8px; padding: 5px 7px; white-space: nowrap; }
.profile-card.is-empty .profile-empty-block { display: none; }
.profile-card.is-empty .profile-card-header { margin-bottom: 0; }
.btn-profile-action { min-height: 48px; }
.discount-action-btn { background: #edf7ff; border-color: #cbe5f6; color: #2997c4; font-size: 12px; }
.tg-menu-icon.icon-globe { background: #f0edff; }
.tg-menu-icon.icon-wallet { background: #eaf5ff; }
.tg-menu-icon.icon-support { background: #edf8f5; }
.profile-custom-emoji { padding: 3px; overflow: hidden; flex-shrink: 0; }
.profile-custom-emoji svg, .profile-custom-emoji img { display: block; width: 100% !important; height: 100% !important; object-fit: contain; }
.profile-data-status { font-size: 11px; color: #8190a8; padding: 9px 12px; line-height: 1.6; border-radius: 12px; background: #edf4fb; }
.profile-data-status button { display: block; border: 0; background: none; color: #359aca; font: inherit; font-weight: 700; min-height: 36px; padding: 4px 0; }
.profile-data-status:empty { display: none; }
.order-history-item { gap: 8px; align-items: flex-start; padding: 12px 0; }
.order-item-left { flex: 1; min-width: 0; gap: 9px; }
.order-item-meta { min-width: 0; }
.order-item-title { font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.order-item-date { font-size: 9px; }
.order-item-right { flex: 0 0 auto; gap: 5px; max-width: 42%; }
.order-item-price { font-size: 11px; white-space: nowrap; }
.order-status-pill { font-size: 9px; max-width: 100%; white-space: normal; text-align: right; text-transform: none; }
.order-support-link { color: #359aca; font-size: 10px; min-height: 36px; display: grid; align-items: center; text-decoration: none; }
.profile-timer-block { padding: 10px; }
.countdown-digits { font-size: 18px; flex-wrap: wrap; }
.timer-nft-title { font-size: 11px; overflow-wrap: anywhere; }
#fortuneModal .fortune-sheet { max-width: 440px; padding: 15px 16px 24px; max-height: 94dvh; }
.fortune-sheet .sheet-header { margin-bottom: 7px; }
#fortuneTitle { font-size: 22px; line-height: 1.3; }
.fortune-description { font-size: 11px; max-width: 290px; }
.fortune-art { width: 100%; max-width: 310px; padding-top: 18px; margin: 12px auto; }
#fortuneDisc { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.fortune-sector.unavailable { opacity: 1; }
.fortune-hub { width: 56px; height: 56px; top: calc(50% + 9px); font-size: 25px; border-width: 4px; }
.fortune-membership { padding: 10px; }
.fortune-membership p { font-size: 11px; color: #7c7097; }
.fortune-membership button { min-height: 44px; font-size: 10px; }
.fortune-condition { min-height: 34px; font-size: 11px; margin-bottom: 10px; color: #7d7294; }
.fortune-demo { min-height: 44px; color: #8b6eb5; }
.fortune-spin { min-height: 52px; font-size: 13px; }
.fortune-result { min-height: 44px; font-size: 15px; }
.fortune-wallet { margin-top: 13px; padding: 13px; }
#fortuneWithdraw { min-height: 44px; }
.fortune-demo-again { min-height: 44px; }
.offer-sheet { gap: 10px; }
.offer-body { min-height: 0; }
.offer-text-block { color: #76859c; font-size: 13px; line-height: 1.7; }
.promo-controls { height: 32px; }
.promo-controls > button { height: 32px; }
@media (min-width: 768px) {
  .modal-backdrop { align-items: center; padding: 16px; }
  .modal-sheet { border-radius: 24px; max-height: calc(100dvh - 32px); }
  .profile-sheet { border-radius: 24px; }
}
@media (max-width: 350px) {
  #fortuneTitle { font-size: 20px; }
  .profile-sheet { padding-left: 13px; padding-right: 13px; }
  .profile-sheet-header { padding-left: 25px; padding-right: 25px; }
  .tg-menu-item { padding: 10px; }
}

.order-id-copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 8px; min-height: 28px; border: 1px solid #dfe6f1; border-radius: 8px; background: #f6f8fc; color: #4d5b78; font: inherit; font-size: 11px; cursor: pointer; }
.order-id-copy code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #33405b; }
.order-id-copy .order-id-hint { color: #2f8ae0; font-weight: 600; }
.order-id-copy.copied { border-color: #9fd9b6; background: #eefaf2; }
.order-id-copy.copied .order-id-hint { color: #1f9d55; }

.rental-connect-steps { margin: 6px 0 12px; padding-left: 20px; color: #4d5b78; font-size: 13px; line-height: 1.6; }
.rental-connect-label { display: grid; gap: 6px; margin: 12px 0 6px; font-size: 12px; color: #66728c; }
.rental-connect-label textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #dfe6f1; border-radius: 10px; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.rental-connect-status { min-height: 20px; font-size: 12px; color: #4d5b78; }
.order-connect-btn { margin-top: 6px; min-height: 40px; padding: 6px 16px; border: 0; border-radius: 10px; background: #2f8ae0; color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }

.rental-days-picker { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 6px; }
.rental-days-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: #26324a; }
.rental-days-head small { font-weight: 500; color: #7a869e; }
.rental-stepper { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
.rental-stepper button { min-height: 48px; border: 1px solid #dfe6f1; border-radius: 12px; background: #fff; font-size: 22px; font-weight: 700; color: #2f8ae0; cursor: pointer; }
.rental-stepper button:disabled { color: #c5cede; cursor: default; }
.rental-stepper input { min-height: 48px; border: 1px solid #dfe6f1; border-radius: 12px; text-align: center; font: inherit; font-size: 20px; font-weight: 800; color: #26324a; }
.rental-day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rental-day-chips button { min-height: 36px; padding: 6px 12px; border: 1px solid #dfe6f1; border-radius: 999px; background: #f6f8fc; font: inherit; font-size: 13px; color: #4d5b78; cursor: pointer; }
.rental-day-chips button.active { border-color: #2f8ae0; background: #e8f2fd; color: #1f6fbf; font-weight: 700; }
.rental-breakdown { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; padding: 12px; border-radius: 12px; background: #f6f8fc; font-size: 13px; color: #4d5b78; }
.rental-breakdown dt, .rental-breakdown dd { margin: 0; }
.rental-breakdown dd { text-align: right; font-variant-numeric: tabular-nums; }
.rental-breakdown .total { padding-top: 6px; border-top: 1px solid #dfe6f1; font-weight: 800; color: #26324a; font-size: 15px; }
.rental-howto { grid-column: 1 / -1; padding: 12px; border: 1px solid #e3eaf4; border-radius: 12px; background: #fff; }
.rental-howto summary { cursor: pointer; font-weight: 700; color: #26324a; }
.rental-howto ol { margin: 8px 0 0; padding-left: 20px; color: #4d5b78; font-size: 13px; line-height: 1.6; }
.rental-checkout-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #eef6ff; color: #1f5f9e; font-size: 13px; line-height: 1.5; }

.rental-sheet { max-height: 92vh; overflow-y: auto; }
.rental-sheet .rental-selection { margin-top: 4px; border: 0; padding: 0; background: transparent; }
.rental-sheet-continue { width: 100%; min-height: 54px; margin-top: 14px; position: sticky; bottom: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 16px; padding: 14px 18px; }
.rental-card .rental-price { font-weight: 800; }

.rental-breakdown .total { padding-top: 0; border-top: 0; font-size: 17px; }

.rental-day-chips button small { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #e7f7ee; color: #1f9d55; font-size: 11px; font-weight: 800; }
.rental-breakdown .rental-saving { grid-column: 1 / -1; text-align: left; color: #1f9d55; font-weight: 700; font-size: 13px; }

.rental-guide-video { position: relative; flex: 0 0 auto; margin: 4px auto 14px; border-radius: 16px; overflow: hidden; background: #0f172a; height: min(52vh, 460px); width: calc(min(52vh, 460px) * 9 / 16); max-width: 100%; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); }
.rental-guide-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0f172a; }
.rental-guide-video-label { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 11px; font-weight: 700; pointer-events: none; }
.rental-guide-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 24px);min-height:52px;padding:12px;border:0;border-radius:14px;background:#0088ccee;color:white;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 4px 18px #0003}
.rental-guide-status{font-size:12px;color:#64748b;margin:0 0 10px}
.rental-guide-status:empty{display:none}
.rental-guide-external{padding:10px 14px;border:1px solid #b5d9ed;border-radius:12px;background:#edf8ff;color:#0088cc;font:inherit;font-size:12px;cursor:pointer;margin-bottom:12px}
.rental-connect-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.rental-connect-steps li { counter-increment: step; position: relative; padding: 2px 0 2px 34px; font-size: 13px; line-height: 1.5; color: #33405b; }
.rental-connect-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #e8f2fd; color: #1f6fbf; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.rental-site-card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; border: 1.5px solid #2f8ae0; border-radius: 16px; background: linear-gradient(135deg, #eef6ff, #f8fbff); color: #1f3557; text-align: left; font: inherit; cursor: pointer; }
.rental-site-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: #2f8ae0; display: grid; place-items: center; font-size: 22px; }
.rental-site-text { display: grid; flex: 1; }
.rental-site-text strong { font-size: 16px; color: #1f6fbf; }
.rental-site-text small { font-size: 12px; color: #5b6b86; }
.rental-site-arrow { font-size: 22px; font-weight: 800; color: #2f8ae0; }
.rental-link-field { position: relative; display: block; }
.rental-link-field textarea { padding-right: 92px; }
.rental-paste-btn { position: absolute; right: 8px; top: 8px; min-height: 34px; padding: 4px 12px; border: 0; border-radius: 10px; background: #e8f2fd; color: #1f6fbf; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rental-connect-submit { width: 100%; min-height: 58px; margin-top: 6px; font-size: 18px; font-weight: 800; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
