/* A-MIXER 6.2 — verified quests, A-COINS and PRO center */
.rewards-trigger{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:4px 12px 4px 5px;border:1px solid rgba(242,184,75,.28);border-radius:12px;background:linear-gradient(145deg,rgba(10,34,65,.95),rgba(5,20,42,.98));color:#f7ca72;font-size:14px;font-weight:800;cursor:pointer}
.rewards-trigger:hover{border-color:rgba(242,184,75,.56);background:rgba(242,184,75,.13)}
.rewards-trigger .ui-icon{width:16px;height:16px}.rewards-trigger__coin{display:grid;place-items:center;width:31px;height:31px;border:1px solid rgba(242,184,75,.42);border-radius:50%;background:radial-gradient(circle at 35% 28%,#ffd778,#c88920 72%);color:#172238;box-shadow:0 4px 14px rgba(242,184,75,.16)}.rewards-trigger__copy{display:grid;gap:1px;line-height:1;text-align:left}.rewards-trigger__copy small{color:#7890aa;font-size:15px;font-weight:700;letter-spacing:.08em}.rewards-trigger__copy strong{color:#f7ca72;font-size:15px}
.rewards-trigger__pro{padding:3px 7px;border-radius:999px;background:#3b82f6;color:#eff6ff;font-size:14px;letter-spacing:.06em}

.rewards-modal{position:fixed;z-index:1000;inset:0;place-items:center;padding:20px}
.rewards-modal:not([hidden]){display:grid}
.rewards-modal__backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(0,5,14,.82);backdrop-filter:blur(12px);cursor:default}
.rewards-panel{position:relative;width:min(1180px,100%);overflow:hidden;border:1px solid rgba(71,132,194,.34);border-radius:24px;background:linear-gradient(145deg,#07162a,#040d1c 72%);box-shadow:0 36px 110px rgba(0,0,0,.62);color:var(--text)}
.rewards-panel__header{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 20px;border-bottom:1px solid rgba(72,126,181,.23);background:rgba(5,15,31,.94);backdrop-filter:blur(20px)}
.rewards-panel__heading{display:flex;align-items:center;gap:12px}
.rewards-panel__heading h2{margin:2px 0 0;font-size:22px;letter-spacing:-.03em}
.rewards-panel__icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(242,184,75,.3);border-radius:13px;background:rgba(242,184,75,.08);color:#f2b84b}
.rewards-panel__close{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(112,157,203,.25);border-radius:12px;background:rgba(255,255,255,.025);color:#9bb0c8;font-size:25px;cursor:pointer}
.rewards-panel__close:hover{border-color:#60a5fa;color:#fff}

.rewards-summary{display:grid;grid-template-columns:.85fr 1.15fr;gap:12px;padding:14px 20px 0}
.rewards-balance,.rewards-progress{padding:14px 16px;border:1px solid rgba(79,136,192,.24);border-radius:17px;background:linear-gradient(135deg,rgba(12,37,70,.78),rgba(6,22,43,.8))}
.rewards-balance{display:flex;flex-direction:column}
.rewards-balance>span{color:#8fa9c2;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.rewards-balance strong{margin-top:7px;color:#f2bd55;font-size:25px;letter-spacing:-.035em}
.rewards-balance small,.rewards-progress small{margin-top:6px;color:#839bb3;font-size:15px;line-height:1.45}
.rewards-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#9bb1c7;font-size:12px}
.rewards-progress>div:first-child strong{color:#e8f1fb}
.rewards-progress__track{display:block;width:100%;height:9px;margin-top:13px;overflow:hidden;border:0;border-radius:999px;background:#0d2745;appearance:none}
.rewards-progress__track::-webkit-progress-bar{border-radius:999px;background:#0d2745}
.rewards-progress__track::-webkit-progress-value{border-radius:999px;background:linear-gradient(90deg,#2563eb,#60a5fa);box-shadow:0 0 18px rgba(59,130,246,.35)}
.rewards-progress__track::-moz-progress-bar{border-radius:999px;background:linear-gradient(90deg,#2563eb,#60a5fa)}

.rewards-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);gap:12px;padding:12px 20px 18px}
.rewards-section{min-width:0;padding:14px 16px;border:1px solid rgba(79,136,192,.22);border-radius:18px;background:rgba(5,19,39,.72)}
.rewards-section__head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.rewards-section__head h3{margin:3px 0 0;font-size:18px}
.rewards-completion-bonus{padding:6px 9px;border:1px solid rgba(242,184,75,.26);border-radius:999px;background:rgba(242,184,75,.07);color:#eec36c;font-size:15px;font-weight:800}
.quest-list{display:grid;gap:7px}
.quest-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:9px 11px;border:1px solid rgba(85,139,194,.2);border-radius:13px;background:rgba(9,29,56,.65)}
.quest-item.is-completed{border-color:rgba(45,212,191,.27);background:rgba(13,67,68,.15)}
.quest-item--referral{margin-top:4px;border-style:dashed}
.quest-item__state{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:rgba(59,130,246,.11);color:#60a5fa}
.quest-item.is-completed .quest-item__state{background:rgba(45,212,191,.1);color:#2dd4bf}
.quest-item__copy{display:flex;min-width:0;flex-direction:column}
.quest-item__copy strong{font-size:15px}
.quest-item__copy small{margin-top:3px;color:#8199b1;font-size:15px;line-height:1.4}
.quest-item__reward{color:#f2bd55;font-size:16px;font-weight:800}
.quest-item__action,.quest-item__done{min-width:94px;text-align:center;font-size:13px;font-weight:800}
.quest-item__action{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border:1px solid rgba(96,165,250,.4);border-radius:9px;background:rgba(59,130,246,.1);color:#bfdbfe;text-decoration:none;cursor:pointer}
.quest-item__action:hover{background:rgba(59,130,246,.2);color:#fff}
.quest-item__done{color:#5eead4}

.pro-offers{display:grid;gap:7px}
.pro-offer{padding:10px 12px;border:1px solid rgba(83,132,184,.2);border-radius:13px;background:rgba(7,25,49,.74)}
.pro-offer.is-available{border-color:rgba(59,130,246,.42);box-shadow:inset 3px 0 0 #3b82f6}
.pro-offer>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pro-offer>div strong{font-size:14px}.pro-offer>div span{color:#f2bd55;font-size:16px;font-weight:800}
.pro-offer button{width:100%;min-height:32px;margin-top:7px;border:1px solid rgba(79,140,203,.24);border-radius:9px;background:#0a2342;color:#8299b1;font-size:13px;font-weight:800}
.pro-offer.is-available button{border-color:#3b82f6;background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;cursor:pointer}
.pro-offer.is-available button:hover{background:linear-gradient(135deg,#1d4ed8,#4f8ff7)}
.pro-offer button:disabled{cursor:not-allowed}
.pro-offers__hint{display:flex;gap:7px;margin:12px 0 0;color:#829bb4;font-size:15px;line-height:1.45}
.pro-offers__hint .ui-icon{flex:0 0 auto;color:#60a5fa}
.rewards-history{margin-top:11px;padding-top:10px;border-top:1px solid rgba(79,136,192,.18)}
.rewards-history summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;color:#dbeafe;font-size:16px;font-weight:800}.rewards-history summary::-webkit-details-marker{display:none}.rewards-history summary span{color:#60a5fa;font-size:15px}.rewards-history[open] summary{margin-bottom:10px}.rewards-history[open] summary span{font-size:0}.rewards-history[open] summary span::after{content:'Сховати';font-size:15px}
.rewards-history [data-rewards-history]{display:grid;gap:7px}
.rewards-history [data-rewards-history]>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;color:#96abc0;font-size:12px}
.rewards-history [data-rewards-history] strong{color:#f3a6a6}.rewards-history [data-rewards-history] strong.is-positive{color:#5eead4}
.rewards-history [data-rewards-history] small{grid-column:1/-1;color:#617990}
.rewards-history p{margin:0;color:#7891a9;font-size:15px}

.welcome-tour{margin:20px 22px 22px;padding:28px;border:1px solid rgba(59,130,246,.38);border-radius:18px;background:radial-gradient(circle at 80% 0,rgba(59,130,246,.17),transparent 38%),#07172d;text-align:center}
.rewards-panel.is-touring .rewards-summary,.rewards-panel.is-touring .rewards-layout{display:none}
.welcome-tour__step>span{color:#60a5fa;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.welcome-tour__step h3{margin:12px 0 8px;font-size:24px}.welcome-tour__step p{max-width:580px;margin:0 auto;color:#91a8be;font-size:15px;line-height:1.65}
.welcome-tour__actions{display:flex;justify-content:center;gap:10px;margin-top:24px}
.welcome-tour__actions button{min-height:42px;padding:0 17px;border:1px solid rgba(92,143,196,.32);border-radius:11px;background:#0a213e;color:#c7d6e7;font-weight:800;cursor:pointer}
.welcome-tour__actions [data-tour-next]{border-color:#3b82f6;background:#2563eb;color:#fff}
.rewards-feedback{min-height:18px;margin:-10px 22px 16px;color:#93c5fd;font-size:14px;text-align:center}

body.has-rewards-modal{overflow:hidden}

/* Compact, visual plan choice inside the A-COINS center. */
.rewards-section--pro{align-self:start;background:radial-gradient(circle at 90% 0,rgba(80,118,236,.12),transparent 34%),rgba(5,19,39,.82)}
.rewards-plan-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}
.rewards-plan-preview__item{min-width:0;overflow:hidden;border:1px solid rgba(79,136,192,.22);border-radius:11px;background:#06172d}
.rewards-plan-preview__item img{display:block;width:100%;height:56px;object-fit:cover;border-bottom:1px solid rgba(79,136,192,.18)}
.rewards-plan-preview__item>div{display:grid;gap:2px;padding:8px}
.rewards-plan-preview__item strong{font-size:13px;letter-spacing:.05em}
.rewards-plan-preview__item span{color:#8098b2;font-size:11px;line-height:1.35}
.rewards-plan-preview__item--plus{border-color:rgba(59,130,246,.45);box-shadow:inset 0 0 0 1px rgba(59,130,246,.08)}
.rewards-plan-preview__item--premium{border-color:rgba(139,124,246,.46);background:linear-gradient(145deg,#111c44,#07172d)}
.rewards-plans-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;text-decoration:none}
.rewards-history{margin-top:14px}

@media(max-width:860px){
  .rewards-modal{padding:8px}.rewards-panel{max-height:calc(100vh - 16px);overflow:auto;border-radius:18px}
  .rewards-summary,.rewards-layout{grid-template-columns:1fr}
  .rewards-layout{padding-bottom:18px}
}
@media(max-height:740px) and (min-width:861px){.rewards-panel{max-height:calc(100vh - 24px);overflow:auto}}
@media(max-width:560px){
  .rewards-trigger{gap:6px;min-width:58px;padding:4px 8px 4px 5px}
  .rewards-trigger__coin{display:grid;width:30px;height:30px}
  .rewards-trigger__copy{display:block;min-width:12px;text-align:center}
  .rewards-trigger__copy small{display:none}
  .rewards-trigger__copy strong{display:block;font-size:15px}
  .rewards-panel__header{padding:15px}.rewards-summary{padding:14px 14px 0}.rewards-layout{padding:12px 14px 14px}
  .quest-item{grid-template-columns:34px minmax(0,1fr) auto}.quest-item__reward{grid-column:3}.quest-item__action,.quest-item__done{grid-column:2/-1;justify-self:stretch}
  .rewards-plan-preview{grid-template-columns:1fr}.rewards-plan-preview__item{display:grid;grid-template-columns:90px 1fr}.rewards-plan-preview__item img{height:58px;border-right:1px solid rgba(79,136,192,.18);border-bottom:0}
}
