/* MOJENA · подарки, промокод, приглашения. Claude, 24.11.2026. */
.mjp-gift{font-size:14px;font-weight:500;color:var(--plan-accent,#b0678a);margin:-6px 0 0!important}
.mj-pay-gift{margin-top:6px}
.mjp-promo{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 20px;align-items:center;padding:22px 24px;margin-top:26px}
.mjp-promo-t h2{margin:0 0 4px;font-size:20px;font-weight:400}.mjp-promo-t p{margin:0;font-size:13px;color:var(--plan-muted)}
.mjp-promo-f{display:flex;gap:10px;align-items:center;min-width:0}
.mjp-promo-f input{min-width:0;width:220px;max-width:100%;min-height:44px;padding:0 16px;border:1px solid var(--plan-edge);border-radius:24px;background:var(--surf);color:inherit;font:inherit;letter-spacing:.08em;text-transform:uppercase}
.mjp-promo-f input::placeholder{letter-spacing:0;text-transform:none}
.gf-msg{grid-column:1/-1;margin:0;font-size:13px;min-height:0}.gf-msg:empty{display:none}
.gf-ok{color:#3c8f6a}.gf-bad{color:#c24d63}
.gf-p{margin:0 0 12px;font-size:14px;line-height:1.5}.gf-small{font-size:12px;color:var(--plan-muted,#8a7c92);line-height:1.45}
.gf-link{display:flex;gap:8px;margin:6px 0 8px}.gf-link input{flex:1;min-width:0;min-height:44px;padding:0 14px;border:1px solid var(--plan-edge);border-radius:14px;background:var(--surf);color:inherit;font:inherit;font-size:13px}
@media (max-width:640px){.mjp-promo{grid-template-columns:1fr;padding:18px}.mjp-promo-f{flex-wrap:wrap}.mjp-promo-f input{flex:1 1 150px;width:auto}.gf-link{flex-direction:column}}
/* экран владельца */
.gf-owner .gf-h{margin:22px 0 10px;font-size:16px;font-weight:500}
.gf-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px 14px;align-items:end;margin-bottom:14px}
.gf-form label{display:flex;flex-direction:column;gap:4px;font-size:12px}
.gf-form input:not([type=checkbox]){min-height:38px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--surf);color:inherit;font:inherit}
.gf-form .gf-chk{flex-direction:row;align-items:center;gap:8px;min-height:38px}
.gf-list{display:flex;flex-direction:column;gap:6px}
.gf-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surf);font-size:13px}
.gf-row.off{opacity:.55}.gf-row .gf-code{letter-spacing:.08em;font-size:14px}.gf-row small{flex-basis:100%;color:var(--plan-muted,#8a7c92)}
.gf-row .btn{margin-left:auto;min-height:32px;padding:4px 12px;font-size:12px}
.gf-tag{padding:2px 8px;border-radius:20px;border:1px solid var(--line);font-size:11px}
/* «Пользователи»: компактные карточки и блок подарков */
.owner-stats{gap:10px;margin:0 0 14px}.owner-stats .profile-card{padding:10px 14px}.owner-stats strong{font-size:16px;margin-top:4px}.owner-stats span{font-size:12px}
.owner-notice{padding:10px 14px;margin:14px 0;font-size:13px;border-radius:12px}
.wallet-user-list{gap:8px;margin:14px 0}
.wallet-user>summary{padding:12px 16px;gap:12px}.wallet-user summary small{margin-top:2px;font-size:12px}
.wallet-user-body{display:block;padding:14px;column-width:250px;column-gap:10px}
.wallet-user-body>form,.wallet-user-body>section{break-inside:avoid;margin:0 0 10px}
.wallet-facts,.wallet-user-body>.wallet-user-journal{column-span:all}
.wallet-facts{margin-bottom:10px}
.wallet-user-body>form,.wallet-user-body>section{padding:12px 14px;border-radius:12px}
.wallet-user-body h3{font-size:14px;margin:0 0 10px}
.wallet-user-body .fl{margin:0 0 10px;font-size:12px}
.wallet-user-body input,.wallet-user-body select{margin-top:4px;padding:6px 10px;min-height:36px;font-size:13px;border-radius:10px}
.wallet-user-body .btn{min-height:34px;padding:4px 14px;font-size:13px}
.wallet-user-body .profile-balance{font-size:22px}
.wallet-user-body .profile-small{font-size:12px;margin:8px 0}
.wallet-facts{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:6px 16px}.wallet-facts span{margin-bottom:2px;font-size:11px}.wallet-facts strong{font-size:13px}
.wallet-history{max-height:220px;margin:8px 0}.wallet-history li{padding:8px 0}
.wallet-user-body>.wallet-user-journal{margin:0 0 10px}
.wallet-fields{gap:8px}
.gf-ug h4{margin:12px 0 4px;font-size:12px;font-weight:500;color:var(--t2)}
.gf-ur{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid var(--line);font-size:12.5px}.gf-ur span:last-child{text-align:right;white-space:nowrap;color:var(--t2)}
.gf-ur code{letter-spacing:.06em}
.gf-none{margin:4px 0;font-size:12.5px;color:var(--t2)}
.gf-ov{margin:0 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surf)}
.gf-chips{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px}.gf-chips b{font-weight:600}
.gf-more{margin-top:8px}.gf-more summary{cursor:pointer;font-size:13px;color:var(--acc)}.gf-more .gf-ur span:last-child{white-space:normal}
@media(max-width:700px){.wallet-user-body{column-width:auto;columns:1}.gf-ur{flex-direction:column;gap:2px}.gf-ur span:last-child{text-align:left}}

/* ===== v3: строчки и переключатели в карточке пользователя ===== */
.wallet-user-body{display:block;column-width:auto;padding:4px 16px 10px}
.wallet-user-body>*{break-inside:auto}
.wallet-user-body>.wallet-facts{display:flex;flex-wrap:wrap;gap:4px 22px;padding:8px 0;border-bottom:1px solid var(--line);margin:0}
.wallet-user-body>.wallet-facts p{margin:0;display:flex;gap:6px;align-items:baseline;font-size:12.5px}.wallet-facts span{margin:0;color:var(--t2)}
.wallet-user-body>.wallet-user-journal{margin:0;padding:8px 0;border-bottom:1px solid var(--line);column-span:none}
.wallet-user-body>form,.wallet-user-body>section{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0;padding:9px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
.wallet-user-body>form>h3,.wallet-user-body>section>h3{flex:0 0 150px;margin:0;font-size:13px;font-weight:500}
.wallet-user-body>form>.fl,.wallet-user-body>section .fl{margin:0;display:flex;align-items:center;gap:8px;font-size:12px}
.wallet-user-body .wallet-fields{display:contents}
.wallet-user-body>section .profile-balance{font-size:17px;margin:0}
.wallet-user-body .profile-small{flex:1 1 100%;margin:0;font-size:11.5px;color:var(--t2)}
.wallet-user-body .account-status{flex:1 1 100%;margin:0;font-size:12px;min-height:0}.wallet-user-body .account-status:empty{display:none}
.wallet-user-body form.gf-tog>.fl{display:none}.wallet-user-body form.gf-tog>button[type=submit]{display:none}.wallet-user-body form.gf-tog>.profile-small{display:none}
.wallet-user-body>section>form{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;flex:1 1 360px;margin:0}
.wallet-user-body>section>form .btn{margin-left:auto}
.wallet-user-body>section>form input,.wallet-user-body>section>form select{margin:0;min-height:32px;padding:3px 10px}
.wallet-user-body>section>form input[name=amount]{width:110px}.wallet-user-body>section>form input[name=reason]{width:200px;max-width:100%}
.wallet-user-body .btn{min-height:30px;padding:3px 12px;font-size:12.5px}
.wallet-user-body>section>.wallet-history{flex:1 1 100%}
.gf-seg{display:inline-flex;padding:2px;border:1px solid var(--line);border-radius:999px;background:var(--surf);gap:2px}
.gf-seg button{min-height:28px;padding:2px 13px;border:0;border-radius:999px;background:none;color:inherit;font:inherit;font-size:12.5px;cursor:pointer}
.gf-seg button.on{background:var(--acc,#b0678a);color:#fff}.gf-seg button:disabled{opacity:.5;cursor:default}
.gf-inv{margin-left:8px;padding:1px 8px;border-radius:999px;border:1px solid var(--line);font-size:11px;font-weight:500;color:var(--acc)}.gf-inv[hidden]{display:none}
.wallet-user-body>.gf-ug{display:block;border-bottom:0}
.owner-stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;gap:8px!important}
.owner-stats .profile-card{padding:8px 12px!important}.owner-stats strong{font-size:15px!important}
/* переключатель-тумблер */
.gf-sw{position:relative;display:inline-block;width:38px;height:22px;flex:none}.gf-sw input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;z-index:1}
.gf-sw i{position:absolute;inset:0;border-radius:999px;background:#c9c0cf;transition:background .15s}.gf-sw i:before{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
.gf-sw input:checked+i{background:var(--acc,#b0678a)}.gf-sw input:checked+i:before{transform:translateX(16px)}
.gf-chk .gf-sw{margin-right:2px}
/* вкладка «Реклама и промо» */
.gf-ads{margin-top:14px}.gf-ads .gf-h{margin:20px 0 10px;font-size:15px;font-weight:500}
.gf-ads .gf-inline{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.gf-hint{margin:0 0 6px;font-size:12px;color:var(--t2);line-height:1.45}
.gf-row{display:flex;align-items:center;gap:6px 16px}.gf-row .gf-code{min-width:90px}.gf-row .gf-cond{color:var(--acc)}.gf-row .gf-w{flex-basis:100%}
.gf-ads .gf-chips{padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surf)}
/* клиент: промокод сверху тарифов и в окне оплаты */
.gf-promo-bar{margin:0 0 14px}
.gf-pf{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center}
.gf-pf .gf-pl{font-size:13px;color:var(--plan-muted,#8a7c92)}
.gf-pf input{flex:0 1 190px;min-width:0;min-height:38px;padding:0 14px;border:1px solid var(--plan-edge,var(--line));border-radius:20px;background:var(--surf);color:inherit;font:inherit;font-size:14px;letter-spacing:.08em;text-transform:uppercase}
.gf-pf input::placeholder{letter-spacing:0;text-transform:none}
.gf-pf button{min-height:38px!important;padding:0 18px!important;font-size:13px!important}
.gf-promo-bar .gf-msg,.gf-pay-promo .gf-msg{margin:6px 0 0;font-size:12.5px}
.gf-armed{margin:6px 0 0;font-size:12.5px;color:var(--plan-accent,#b0678a)}.gf-armed[hidden]{display:none}
.gf-lnk{background:none;border:0;padding:0;color:inherit;text-decoration:underline;font:inherit;cursor:pointer;opacity:.75}
.gf-pay-promo{margin:10px 0;padding:10px 12px;border:1px dashed var(--plan-edge,var(--line));border-radius:14px}
/* тарифы: плитки меньше */
.mj-plans .mjp-cards{gap:16px;max-width:none}
.mj-plans .mjp-card{padding:18px 14px 12px;gap:6px}
.mj-plans .mjp-card h3{font-size:16px}
.mj-plans .mjp-price strong{font-size:clamp(21px,2vw,27px)}
.mj-plans .mjp-description,.mj-plans .mjp-deposit{font-size:12px}
.mj-plans .mjp-button{min-height:36px;padding:6px 14px;font-size:13px}
.mj-plans .mjp-saving{padding:4px 9px;font-size:11px}
.mj-plans .mjp-features{gap:10px}.mj-plans .mjp-feature{padding:14px}.mj-plans .mjp-feature h3{font-size:14px}.mj-plans .mjp-feature p{font-size:12px}
.mj-plans .mjp-models{gap:10px}
.mj-plans .mjp-topup{padding:18px;gap:18px}.mj-plans .mjp-presets button,.mj-plans .mjp-presets a{min-height:36px;padding:6px 14px;font-size:13px}
/* v3.1: одна строка — название слева, поле, кнопка справа */
.wallet-user-body>form,.wallet-user-body>section{gap:6px 12px!important}
.wallet-user-body>form>.fl,.wallet-user-body>section .fl,.wallet-user-body>section>form>.fl{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;margin:0!important;font-size:12px!important}
.wallet-user-body>form[data-wallet-name]>.fl{flex:1 1 220px;max-width:340px}.wallet-user-body>form[data-wallet-name]>.fl input{flex:1;min-width:0}
.wallet-user-body>form>button[type=submit],.wallet-user-body>section>form>button[type=submit]{margin-left:auto!important}
.wallet-user-body>section>form .wallet-fields{display:contents!important}
.wallet-user-body>section>form>.fl:has(input[name=reason]){flex:1 1 220px}.wallet-user-body>section>form>.fl input[name=reason]{flex:1;width:auto!important;min-width:120px}
.wallet-user-body .profile-small{flex:1 1 100%!important}
.wallet-user-body form.gf-tog{padding:8px 0!important}
/* приглашения: счётчик и заявка на промокод */
.inv-card{padding:22px 24px!important}.inv-card h2{font-size:18px;margin:0 0 8px}.inv-card p,.inv-card li{font-size:14px;line-height:1.5}
.inv-stats{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.inv-stats>div{flex:1 1 150px;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surf)}
.inv-stats strong{display:block;font-size:22px;font-weight:500;line-height:1.2}.inv-stats span{display:block;margin-top:2px;font-size:12px;color:var(--t2)}
.inv-pform{display:grid;gap:12px}.inv-pform .fl{display:flex;flex-direction:column;gap:5px;font-size:13px}
.inv-pform input,.inv-pform textarea{padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surf);color:inherit;font:inherit;font-size:14px;min-height:38px}
.inv-pform textarea{resize:vertical}
.mj-help-thread strong{overflow-wrap:anywhere}
