/* ============================================================
   Account / rewards / VIP / referral / app pages
   ============================================================ */
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card__title { font-size: 16px; line-height: 24px; font-weight: 700; margin-bottom: 8px; }
.card__head .card__title { margin-bottom: 0; }
.tag-ok { background: rgba(111, 239, 138, .14) !important; color: var(--success-main) !important; }
.doc-rules { list-style: disc; padding-left: 18px; margin-bottom: 14px; }
.doc-rules li { font-size: 13px; line-height: 22px; color: var(--text-secondary); }
.rule-line { font-size: 14px; margin: 4px 0; }

/* Inbox */
.inbox { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.inbox__item { position: relative; display: flex; gap: 12px; padding: 12px 34px 12px 12px; border-radius: var(--r); background: var(--background-300); cursor: pointer; }
.inbox__dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; flex-shrink: 0; background: transparent; }
.inbox__item.unread .inbox__dot { background: var(--primary-light); }
.inbox__top { display: flex; justify-content: space-between; gap: 8px; }
.inbox__top b { font-size: 14px; }
.inbox__top small { color: var(--text-secondary); white-space: nowrap; }
.inbox__item p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.inbox__reward { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--grey-24); font-weight: 700; font-size: 13px; }
.inbox__del { position: absolute; top: 10px; right: 8px; color: var(--text-disabled); display: flex; padding: 2px; border-radius: 4px; }
.inbox__del:hover { color: #fff; background: var(--grey-16); }

/* Profile */
.profile-mini { display: flex; gap: 10px; align-items: center; padding: 8px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--grey-24); }
.profile-mini img { width: 44px; height: 44px; border-radius: 50%; }
.profile-mini b { display: block; font-size: 14px; }
.profile-mini small { display: block; font-size: 11px; color: var(--text-secondary); }
.kyc-badge { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: var(--primary-16); color: var(--primary-light); }
.avatar-lg { position: relative; width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; }
.avatar-lg img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--grey-24); }
.avatar-lg span { position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-main); display: flex; align-items: center; justify-content: center; border: 2px solid var(--background-400); }
.avatar-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.avatar-grid button { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px solid transparent; }
.avatar-grid button.is-active { border-color: var(--primary-main); }
.avatar-grid img { width: 100%; height: 100%; object-fit: cover; }
.kyc-steps { display: flex; flex-direction: column; gap: 10px; }
.kyc-step { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--background-300); }
.kyc-step b { display: block; font-size: 14px; }
.kyc-step small { font-size: 12px; color: var(--text-secondary); }
.kyc-step > div { flex: 1; }
.kyc-step__n { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--grey-300); flex-shrink: 0; }
.kyc-step.done .kyc-step__n { background: var(--success-main); color: #062b12; }
.upload { display: flex; align-items: center; justify-content: center; min-height: 150px; border: 1px dashed var(--grey-24); border-radius: var(--r-lg); background: var(--background-300); cursor: pointer; text-align: center; color: var(--text-secondary); font-size: 13px; font-weight: 600; overflow: hidden; }
.upload:hover { border-color: var(--primary-main); }
.upload img { max-height: 220px; width: auto; }
.upload svg { margin: 0 auto 6px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--grey-24); cursor: pointer; }
.setting-row b { display: block; font-size: 14px; }
.setting-row small { display: block; font-size: 12px; line-height: 18px; color: var(--text-secondary); margin-top: 2px; }
.limit-row { display: grid; grid-template-columns: 80px 1fr; gap: 4px 10px; align-items: center; margin-bottom: 10px; }
.limit-row label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.limit-row input { height: 40px; padding: 0 12px; border-radius: var(--r); background: var(--background-300); border: 1px solid var(--grey-20); color: #fff; font-size: 14px; }
.limit-row input:focus { border-color: var(--primary-main); }
.limit-row small { grid-column: 2; font-size: 11px; color: var(--text-disabled); }

/* Rewards */
.rewards-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.rewards-hero img { width: 56px; height: 56px; }
.checkin { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.checkin__day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: var(--r); background: var(--background-300); border: 1px solid transparent; }
.checkin__day small { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.checkin__day b { font-size: 13px; color: var(--warning-main); }
.checkin__ico { font-size: 22px; line-height: 1; }
.checkin__day.done { background: var(--primary-16); }
.checkin__day.next { border-color: var(--primary-main); animation: glowPulse 2.4s ease-in-out infinite; }
.checkin__day.final { background: linear-gradient(160deg, rgba(255,196,77,.18), var(--background-300)); }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(98,0,254,.3); } 50% { box-shadow: 0 0 18px 2px rgba(98,0,254,.45); } }
.game-card { display: flex; flex-direction: column; }

.wheel-wrap { position: relative; width: 240px; height: 240px; margin: 8px auto 0; }
.wheel { width: 240px; height: 240px; border-radius: 50%; border: 6px solid var(--warning-main); box-shadow: 0 0 0 4px var(--background-300), 0 10px 30px rgba(0,0,0,.5); position: relative; transition: transform 4.2s cubic-bezier(.17,.67,.12,1); }
.wheel-label { position: absolute; left: 50%; top: 50%; width: 60px; margin-left: -30px; margin-top: -9px; text-align: center; font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); transform-origin: 50% 50%; }
.wheel-pointer { position: absolute; top: -10px; left: 50%; margin-left: -12px; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--warning-main); z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--primary-main); border: 4px solid #fff; color: #fff; font-weight: 800; font-size: 13px; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.wheel-hub:disabled { background: var(--grey-300); cursor: not-allowed; }

.scratch { position: relative; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 32 / 15; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, var(--primary-main), #fe542d); }
.scratch__prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.scratch__prize small { font-size: 12px; opacity: .8; }
.scratch__prize b { font-size: 30px; font-weight: 900; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.scratch.locked canvas { cursor: not-allowed; filter: grayscale(.6) brightness(.7); }
.scratch__lock { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; }

.pick { display: flex; gap: 12px; justify-content: center; }
.pick__item { width: 88px; height: 104px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--background-200), var(--background-300)); border: 1px solid var(--grey-24); font-size: 40px; transition: transform .25s var(--ease), opacity .25s; }
.pick__item:not(:disabled):hover { transform: translateY(-4px) rotate(-2deg); border-color: var(--warning-main); }
.pick__item.open { animation: pop .5s var(--ease) both; background: linear-gradient(160deg, rgba(255,196,77,.3), var(--background-300)); border-color: var(--warning-main); }
.pick__item.open .pick__face { font-size: 18px; font-weight: 900; color: var(--warning-main); }
.pick__item.dim { opacity: .45; }
.pick.locked .pick__item { filter: grayscale(.7); cursor: not-allowed; }

.missions { display: flex; flex-direction: column; gap: 8px; }
.mission { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--background-400); }
.mission b { font-size: 14px; }
.mission__ico { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--grey-300); color: var(--text-secondary); }
.mission.done .mission__ico { background: var(--success-main); color: #062b12; }

/* VIP */
.vip-current { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vip-current__medal { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; background: var(--primary-16); flex-shrink: 0; }
.benefit { padding: 18px; border-radius: var(--r-lg); background: var(--background-400); }
.benefit__ico { width: 42px; height: 42px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; background: var(--primary-16); color: var(--primary-light); margin-bottom: 10px; }
.benefit b { display: block; font-size: 15px; margin-bottom: 4px; }
.benefit p { font-size: 13px; line-height: 19px; color: var(--text-secondary); }
.row-current td { background: var(--primary-16) !important; }

/* Referral */
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Complaint types */
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.type-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r); background: var(--background-300); border: 1px solid var(--grey-20); cursor: pointer; }
.type-opt.is-active { border-color: var(--primary-main); background: var(--primary-8); }
.type-opt input { appearance: auto; accent-color: var(--primary-main); margin-top: 3px; }
.type-opt b { display: block; font-size: 14px; color: #fff; }
.type-opt small { font-size: 12px; line-height: 17px; color: var(--text-secondary); }
.legal textarea { width: 100%; }

/* App / affiliate hero */
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; padding: 28px; background: linear-gradient(135deg, rgba(98,0,254,.22), var(--background-400) 60%); }
.app-hero h1 { font-size: 30px; line-height: 38px; margin-top: 10px; }
.app-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.app-qr .pix-qr { margin: 0; }
.app-safe { display: flex; gap: 10px; align-items: center; margin-top: 18px; color: var(--success-main); }
.app-safe b { display: block; font-size: 13px; color: #fff; }
.app-safe small { font-size: 12px; color: var(--text-secondary); }

/* Game demo */
.demo-badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(255,196,77,.16); color: var(--warning-main); text-transform: uppercase; letter-spacing: .4px; }
.demo-guide { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; background: rgba(8,8,8,.86); backdrop-filter: blur(4px); animation: fadeIn .3s both; }
.demo-guide b { font-size: 20px; }
.demo-guide p { color: var(--text-secondary); font-size: 14px; max-width: 320px; margin-bottom: 8px; }

@media (max-width: 1024px) {
  .steps--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-hero { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .checkin { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .type-grid, .steps--5 { grid-template-columns: 1fr; }
  .app-hero { padding: 20px 16px; }
  .app-hero h1 { font-size: 24px; line-height: 30px; }
  .pick__item { width: 76px; height: 92px; font-size: 34px; }
}
@media (max-width: 640px) {
  .dropdown--balance, .dropdown--user { position: fixed; top: 60px; left: 8px; right: 8px; width: auto; max-height: calc(100vh - 140px); overflow-y: auto; }
}


/* horizontal chip / tab strips scroll by touch or wheel, without a visible bar */
.flex.overflow-x-auto { scrollbar-width: none; }
.flex.overflow-x-auto::-webkit-scrollbar { display: none; }

/* Rewards center hero: tablets (icon-rail sidebar) are too narrow for progress + promo card side by side */
@media (min-width: 768px) and (max-width: 1023px) {
  .bonus-hero { flex-direction: column; align-items: stretch; padding: 32px; gap: 20px; }
}
