
/* ---------- v1.3 palette variables (compat.css runs on site pages that do NOT load app.css;
   without these the var() references resolved to nothing and .btn.grad rendered transparent
   with inherited orange text) ---------- */
:root {
  --dark1: #4d3721; --dark2: #51391f; --green: #16a34a; --green-d: #048843;
  --gold-l: #fbf0db; --orange-d: #e96727; --orange: #ef911a; --gold: #f5b128;
  --bg: #fffaf0; --card: #fffdf8; --text: #4d3721; --muted: #8a6a4a;
  --red: #eb0909; --slate: #64748b; --slate-l: #9ca3af;
  --grad: linear-gradient(110deg, #e96727, #f5b128);
  --grad-gold: linear-gradient(145deg, #ffbd3a, #ef911a);
  --grad-card: linear-gradient(160deg, #fffdf8, #fbf0db 56%, #f4e7cc);
  --trust: linear-gradient(112deg, #048843, #0aa754);
  --radius: 18px; --shadow: 0 4px 18px rgba(77, 55, 33, .08);
  --border-c: #efe3c8; --input-bg: #fffdf8;
}

.dial-sel{appearance:none;-webkit-appearance:none;border:0;background:transparent;font-weight:800;color:#6b4a2b;font-size:15px;padding:0;outline:none;max-width:70px}
.input-prefix-divider{width:1px;height:20px;background:#e3d5b8;margin:0 8px;flex-shrink:0}
.ph-input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-size:15px;color:#4a3423;padding:12px 6px}
.math-q{font-weight:900;color:#e96727;padding:0 4px;white-space:nowrap}
.pw-eye{border:0;background:transparent;font-size:17px;opacity:.75;padding:6px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.form-list{display:flex;flex-direction:column;gap:14px}
.input-row{display:flex;flex-direction:column;gap:7px}
.input-shell{display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid #efe3c8;border-radius:14px;padding:4px 12px;box-shadow:0 2px 10px rgba(120,80,30,.06)}
.field-ic{width:22px;height:22px}
.btn-wrap{margin-top:4px}
.btn-primary{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:0;border-radius:16px;padding:14px 16px;font-size:16px;font-weight:900;color:#fff;background:linear-gradient(110deg,#e96727,#f5b128);box-shadow:0 8px 20px rgba(223,106,40,.38);cursor:pointer}
.btn-primary:active{transform:scale(.98)}
.btn-primary-ic{width:22px;height:22px}
.footer-divider{height:1px;background:#efe3c8;margin:4px 0}
.footer-text{display:flex;justify-content:center;gap:6px;font-size:14px}
.footer-link{color:#e96727;font-weight:800}
.terms-details{display:none;background:#fffdf4;border:1.5px solid #f0e2c0;border-radius:16px;padding:14px;margin:0 0 12px;font-size:13.5px;line-height:1.8;color:#5c4326}
.terms-details[open]{display:block}
.head-nav-actions{display:flex;gap:8px;align-items:center}
.nw-item{display:flex;align-items:center;justify-content:space-between;gap:10px;background:rgba(255,255,255,.78);border:1.4px solid rgba(255,255,255,.9);border-radius:18px;padding:14px 16px;box-shadow:0 4px 16px rgba(120,80,30,.08)}
.nw-list{display:flex;flex-direction:column;gap:10px;padding-bottom:90px}
.nw-item-title{display:block;font-weight:900;color:#684326;font-size:14.5px}
.nw-item-sub{display:block;color:#9a7a58;font-size:12.5px;margin-top:3px}
.nw-item-date{display:block;color:#b09476;font-size:10.5px;margin-top:5px}
.article-body{font-size:14px;line-height:1.9;color:#5c4326;white-space:pre-wrap}
.nw-dot{width:9px;height:9px;border-radius:50%;background:#e96727;flex-shrink:0}
.notif-row.is-unread{border-inline-start:4px solid #ef911a}
.notif-row.is-read{opacity:.65}
.ch-cause{display:flex;gap:12px;align-items:center;border-radius:18px;padding:12px}
.ch-cause-img{width:76px;height:64px;object-fit:cover;border-radius:14px}
.ch-cause-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.ch-cause-title{font-weight:900;color:#684326;font-size:14.5px}
.ch-cause-meta{font-size:12px;color:#9a7a58}
.ch-cause-go{font-size:13px;font-weight:900;color:#e96727}
.charity-img{width:100%;max-height:190px;object-fit:cover;border-radius:14px;margin-bottom:8px}
.addr-submit{width:100%;border:0;border-radius:14px;padding:13px;background:linear-gradient(110deg,#e96727,#f5b128);color:#fff;font-weight:900;font-size:15px;margin-top:14px}
.addr-row{padding:10px 12px}
.addr-row-copy{flex:1;min-width:0}
.addr-del{border:0;background:#fdecec;color:#c0392b;border-radius:10px;padding:7px 10px;font-size:14px}
.bind-page{padding:6px 16px 40px}
.fill-in{display:flex;gap:10px;align-items:center;background:#fff;border-radius:14px;padding:8px 12px;margin-bottom:10px;border:1.4px solid #efe3c8}
.fill-in .title{min-width:88px;font-weight:800;color:#684326;font-size:14px}
.fill-in input{flex:1;border:0;outline:none;font-size:14px;padding:9px 2px;color:#4a3423}
.text-wrap-wrap{margin-top:14px}
.text-d{font-size:12.5px;color:#8a6a4a;line-height:1.8;margin-bottom:6px}
.video-embed{position:relative;padding-top:56%}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:12px}
.wallet-cards{display:flex;flex-direction:column;gap:12px;padding:0 16px 100px}
.wallet-card{background:#fff;border-radius:18px;padding:14px;box-shadow:0 4px 16px rgba(120,80,30,.08)}
.wallet-card-head h3{font-size:15px;color:#684326}
.wallet-cur-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.wallet-cur-btn{width:100%;border:1.4px solid #efe3c8;background:#fffdf4;border-radius:12px;padding:9px 6px;font-weight:800;color:#684326}
.wallet-cur-btn span{display:block;font-size:11px;color:#9a7a58;font-weight:700}
.wallet-cur-btn.on{background:linear-gradient(110deg,#e96727,#f5b128);color:#fff;border-color:transparent}
.wallet-note{font-size:12.5px;color:#9a7a58;margin:6px 0 10px}
.wallet-conv-form{display:flex;flex-direction:column;gap:10px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field{display:block}
.field span{display:block;font-size:12.5px;font-weight:700;color:#684326;margin-bottom:5px}
.field input,.field select,.field textarea{width:100%;border:1.5px solid #e3ddcd;border-radius:12px;padding:11px 13px;font-size:15px;background:#fffdf7;color:#4a3423;outline:none}
.recharge-form{display:block}
.recharge-field{display:block;margin-top:10px}
.recharge-field span{display:block;font-size:13px;font-weight:800;color:#684326;margin-bottom:6px}
.recharge-field input{width:100%;border:1.5px solid #e3ddcd;border-radius:13px;padding:12px 14px;font-size:15px;background:#fffdf7;outline:none}
.recharge-submit{margin-top:12px}
.recharge-note{font-size:12px;color:#9a7a58;margin-top:8px}
.recharge-pay-item{position:relative;display:flex;align-items:center;gap:10px;background:#fff;border:1.6px solid #efe3c8;border-radius:14px;padding:12px;margin-top:10px;cursor:pointer}
.recharge-pay-item input[type=radio]{position:absolute;opacity:0;pointer-events:none}
.recharge-pay-item--sel{border-color:#ef911a;background:#fff8e4}
.recharge-method-details{background:#fff8e4;border:1.5px dashed #e0c98f;border-radius:14px;padding:12px;margin-top:12px;font-size:13px;color:#5c4326}
.recharge-recent{padding:0 16px 100px}
.bill-tx-amt{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.recharge-recent .bill-tx-row{display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:11px 12px;margin-bottom:8px;box-shadow:0 3px 12px rgba(120,80,30,.07)}
.bill-tx-info{flex:1;min-width:0}
.bill-tx-info b{font-size:14px;color:#684326;display:block}
.bill-tx-info small{color:#b09476;font-size:11px}
.wd-bound-input{width:100%;border:0;background:transparent;outline:none;font-size:14px;font-weight:800;color:#684326;padding:8px 2px}
.detail-bird-switch{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px}
.detail-bird-chip{display:flex;align-items:center;gap:6px;background:#fff;border:1.5px solid #efe3c8;border-radius:999px;padding:5px 12px 5px 6px;font-weight:900;color:#684326;flex-shrink:0}
.detail-bird-chip img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.detail-bird-chip.on{background:linear-gradient(110deg,#e96727,#f5b128);color:#fff;border-color:transparent}
.pay-currency-sel{border:1.5px solid #e3ddcd;border-radius:12px;padding:10px;font-weight:800;background:#fffdf7;color:#684326;width:100%;margin-top:10px}
.bottom-btn-go{background:rgba(255,255,255,.2);border-radius:10px;padding:8px 14px;font-weight:900;color:#fff}
.bottom-btn--disabled{opacity:.6}
.egg-mini-btn{border:0;border-radius:10px;padding:8px 12px;font-size:12.5px;font-weight:900;background:#f4ead0;color:#a55b12;cursor:pointer}
.egg-mini-btn:disabled{opacity:.5}
.egg-mini-btn--gold{background:linear-gradient(110deg,#e96727,#f5b128);color:#fff}
.egg-hen-row{align-items:flex-start}
.egg-hen-img{width:64px;height:56px;border-radius:12px;object-fit:cover}
.egg-hen-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.egg-hen-name{font-weight:900;color:#684326;font-size:14px}
.egg-hen-meta{font-size:12px;color:#9a7a58}
.egg-hen-actions{display:flex;gap:8px;margin-top:4px}
.egg-hen-row--expired{opacity:.6}
.egg-hen-row--expired .egg-hen-actions{display:none}
.mynest-contract{background:#fff;border-radius:18px;padding:14px;margin-bottom:12px;box-shadow:0 4px 16px rgba(120,80,30,.08);border:1.4px solid #f3e8cf}
.mynest-contract--expired{opacity:.65}
.mynest-contract-head{display:flex;gap:10px;align-items:center}
.mynest-contract-img{width:60px;height:54px;border-radius:12px;object-fit:cover}
.mynest-contract-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mynest-contract-no{font-size:11px;font-weight:900;color:#b58a45;letter-spacing:.4px}
.mynest-contract-name{font-weight:900;color:#684326;font-size:14.5px}
.mynest-contract-badge{font-size:10.5px;font-weight:900;border-radius:999px;padding:2px 8px;width:max-content}
.mynest-contract-badge.on{background:#e7f6ec;color:#1c7a3a}
.mynest-contract-badge.off{background:#fdeceb;color:#b3261e}
.mynest-contract-days{font-size:12px;font-weight:800;color:#9a7a58}
.mynest-contract-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 6px}
.mynest-contract-stats div{background:#fff8e4;border-radius:10px;text-align:center;padding:7px 4px}
.mynest-contract-stats b{display:block;font-size:13.5px;color:#684326}
.mynest-contract-stats span{font-size:9.5px;color:#9a7a58}
.mynest-contract-dates{font-size:11px;color:#b09476}
.mynest-contract-actions{display:flex;gap:8px;margin-top:10px}
.chat-empty{padding:26px;text-align:center;font-size:13.5px}
.chat-bubble{max-width:82%;padding:10px 13px;border-radius:14px;font-size:13.5px;line-height:1.6;margin-bottom:8px}
.chat-bubble small{display:block;font-size:10px;opacity:.65;margin-top:3px}
.chat-bubble--me{align-self:flex-start;background:#fff8e4;border:1px solid #f0d9a0}
.chat-bubble--admin{align-self:flex-end;background:linear-gradient(112deg,#048843,#0aa754);color:#fff}
.chat-tool-link{font-size:20px;text-decoration:none;padding:8px}
.dl-badge{background:#fff3d6;border:1px solid #f0d9a0;color:#a55b12;border-radius:999px;padding:4px 14px;font-size:12px;font-weight:900}
.inline-form{display:inline-flex;gap:8px;align-items:center}
.pos{color:#1c7a3a}.neg{color:#b3261e}
.inline-form .mine-amount{font-size:26px;font-weight:900;color:#1d3d24}
.inline-form .mine-currency{font-size:13px;font-weight:900;color:#4c7a54;margin-left:6px}
.inline-form .mine-eye{border:0;background:rgba(255,255,255,.25);border-radius:999px;padding:4px 12px;color:#eaf7ee;font-weight:800;font-size:12px}
.mine-avatar-txt{display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:900;color:#fff;background:linear-gradient(140deg,#ef911a,#e96727)}
.mine-avatar-form{position:absolute;inset:0}
.mine-avatar-edit{position:absolute;right:-4px;bottom:-4px;width:24px;height:24px;border-radius:50%;background:#fff;color:#e96727;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.2);cursor:pointer}
/* legacy game styles */
/* ==================== v5.1 : Golden Nest 🪺 provably-fair game ==================== */
.ng-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 14px 14px 12px;
  background: linear-gradient(150deg, #14261a, #1d5c33 62%, #0c7a3e); color: #fffdf5;
  box-shadow: 0 14px 34px rgba(12, 60, 30, .45); }
.ng-hero h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin: 0 0 3px; }
.ng-hero .ng-sub { font-size: 11.5px; opacity: .85; }
.ng-orb { position: absolute; font-size: 26px; opacity: .30; animation: ngfloat 7s ease-in-out infinite; pointer-events: none; }
.ng-orb:nth-child(1) { top: 8px; inset-inline-start: 6%; animation-delay: 0s; }
.ng-orb:nth-child(2) { bottom: 10px; inset-inline-start: 40%; animation-delay: 1.4s; font-size: 20px; }
.ng-orb:nth-child(3) { top: 16px; inset-inline-end: 8%; animation-delay: 2.6s; font-size: 22px; }
@keyframes ngfloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-9px) rotate(8deg); } }
.ng-stats { display: flex; gap: 8px; margin-top: 10px; position: relative; }
.ng-stat { flex: 1; background: rgba(255, 253, 245, .13); border: 1px solid rgba(255, 253, 245, .18);
  border-radius: 12px; padding: 7px 6px; text-align: center; }
.ng-stat b { font-size: 15px; display: block; direction: ltr; }
.ng-stat span { font-size: 10px; opacity: .85; font-weight: 700; }
.ng-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ng-tile { aspect-ratio: 1 / 1; perspective: 600px; cursor: pointer; border: 0; background: none; padding: 0; font-family: inherit; }
.ng-tile:disabled { cursor: default; }
.ng-tile:not(.flip):not(:disabled):hover .ng-inner { transform: translateY(-3px) scale(1.03); }
.ng-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.34, 1.45, .64, 1); border-radius: 14px; }
.ng-tile.flip .ng-inner { transform: rotateY(180deg); }
.ng-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 25px; }
.ng-front { background: linear-gradient(160deg, #f8ebcb, #eed6a0); border: 1.6px solid #e2c78c;
  box-shadow: 0 4px 12px rgba(92, 62, 12, .22); }
.ng-back { transform: rotateY(180deg); background: #fffdf5; border: 1.6px solid #e2c78c; }
.ng-back.egg { background: radial-gradient(circle at 35% 30%, #fff8dd, #ffd76e);
  box-shadow: 0 0 24px rgba(245, 178, 40, .55); }
.ng-back.fox { background: radial-gradient(circle at 50% 38%, #ffd9c4, #e86a1c); }
.ng-tile.fox-shake { animation: ngshake .55s both; }
@keyframes ngshake { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-7px); }
  38% { transform: translateX(7px); } 58% { transform: translateX(-5px); } 78% { transform: translateX(5px); } }
.ng-pop { animation: ngpop .4s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes ngpop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.ng-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.ng-card { background: var(--card); border: 1.5px solid var(--border-c); border-radius: 15px; padding: 11px 12px; }
.ng-mult-num { font-size: 29px; font-weight: 900; color: var(--orange-d); direction: ltr; text-align: center; line-height: 1.1; }
.ng-mult-lbl { text-align: center; font-size: 10.5px; color: var(--muted); font-weight: 800; margin-bottom: 2px; }
.ng-risk { height: 7px; border-radius: 99px; background: #eef1ea; overflow: hidden; margin-top: 7px; }
.ng-risk i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0c7a3e, #f5b128);
  transition: width .4s; }
.ng-risk-txt { font-size: 10px; color: var(--muted); font-weight: 700; margin-top: 4px; text-align: center; }
.ng-eggs-line { text-align: center; font-size: 12px; font-weight: 800; color: var(--dark1); margin-top: 5px; }
.ng-cash { width: 100%; border: 0; border-radius: 13px; padding: 13px 10px; font-size: 14px; font-weight: 900;
  color: #fff; background: linear-gradient(115deg, #0c7a3e, #17b06a); box-shadow: 0 8px 20px rgba(12, 122, 62, .38);
  cursor: pointer; font-family: inherit; transition: transform .15s, opacity .15s; }
.ng-cash:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.ng-cash:not(:disabled):active { transform: scale(.97); }
.ng-cash small { display: block; font-size: 10px; opacity: .85; font-weight: 700; margin-top: 2px; }
.ng-start { width: 100%; border: 0; border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 900;
  color: #fff; background: var(--grad); box-shadow: 0 10px 24px rgba(224, 108, 39, .40); cursor: pointer; font-family: inherit; }
.ng-start:disabled { opacity: .5; cursor: not-allowed; }
.ng-note { font-size: 11px; color: var(--muted); background: var(--gold-l); border-radius: 11px; padding: 9px 11px; line-height: 1.7; font-weight: 600; }
.ng-fair { background: var(--card); border: 1.5px solid var(--border-c); border-radius: 15px; padding: 12px; }
.ng-fair h4 { font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ng-fair code { direction: ltr; display: block; word-break: break-all; background: var(--gold-l);
  border-radius: 8px; padding: 6px 8px; font-size: 10px; font-weight: 700; color: #6b5b2e; }
.ng-fair .fld { margin-top: 8px; }
.ng-fair .fld input { width: 100%; border: 1.4px solid var(--border-c); border-radius: 10px; padding: 8px 10px;
  font-size: 12px; direction: ltr; font-family: inherit; background: var(--input-bg); }
.ng-verify-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 9px; }
.ng-verify-grid i { aspect-ratio: 1; border-radius: 7px; background: var(--gold-l); display: flex;
  align-items: center; justify-content: center; font-size: 13px; }
.ng-verify-grid i.fox { background: #fdeceb; }
.ng-verify-ok { margin-top: 7px; font-size: 11.5px; font-weight: 800; color: #0c7a3e; text-align: center; min-height: 15px; }
.ng-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.ng-chips::-webkit-scrollbar { display: none; }
.ng-chip { padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--card);
  border: 1.4px solid var(--border-c); white-space: nowrap; direction: ltr; }
.ng-chip.win { background: #e7f6ec; color: #0c7a3e; border-color: #bfe6cc; }
.ng-chip.lost { background: #fdeceb; color: #b3261e; border-color: #f3c1bd; }
.ng-sound { position: absolute; top: 10px; inset-inline-end: 10px; background: rgba(255, 253, 245, .16);
  border: 1px solid rgba(255, 253, 245, .25); color: #fffdf5; border-radius: 999px; padding: 3px 10px;
  font-size: 11px; cursor: pointer; font-family: inherit; }
#ngFx { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.ng-banner { border-radius: 14px; padding: 12px; text-align: center; font-weight: 900; font-size: 14px; display: none; }
.ng-banner.win { background: linear-gradient(115deg, #e7f6ec, #f7fbe9); color: #0c7a3e; border: 1.6px solid #bfe6cc; }
.ng-banner.lose { background: linear-gradient(115deg, #fdeceb, #fff0e4); color: #b3261e; border: 1.6px solid #f3c1bd; }
@media (max-width: 380px) { .ng-panel { grid-template-columns: 1fr; } .ng-face { font-size: 21px; } }


/* legacy compat */
/* Pilgrims Farm — palette extracted from the original app build */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body.app-legacy {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--grad-card); color: var(--text); min-height: 100vh;
  padding-bottom: 84px; font-size: 15px;
}
[dir="rtl"] body.app-legacy { letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 248, .92); color: var(--brown, #4d3721); border-bottom: 1px solid rgba(244,231,204,.8); backdrop-filter: blur(6px); }
.topbar-in { max-width: 520px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--dark1); }
.brand img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.pill { background: var(--gold-l); border: 1px solid #f4e7cc; color: var(--orange-d); padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pill:hover { border-color: var(--gold); }
.lang-btn { background: var(--grad); color: #fff; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }

/* full-bleed page: no white frame around the edges */
.page { max-width: 520px; margin: 0 auto; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 14px; }

/* per-page changing sticky header */
.phead { position: sticky; top: 54px; z-index: 40; margin: -14px -12px 12px; padding: 10px 14px;
  background: linear-gradient(180deg, #fffaf0, rgba(255,250,240,.86)); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(244, 231, 204, .8); }
.phead-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phead-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.phead-title h2 { font-size: 17px; color: var(--dark2); margin: 0; }
.phead-title small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.phead .back { width: 34px; height: 34px; border-radius: 11px; background: var(--card); border: 1.4px solid #f4e7cc;
  display: flex; align-items: center; justify-content: center; color: var(--dark1); font-size: 17px; font-weight: 900; flex-shrink: 0; }
.phead-emoji { font-size: 25px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 14px; padding: 11px 18px; font-weight: 800; font-size: 15px;
  cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s; font-family: inherit; }
.btn.grad { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(223, 106, 40, .35); }
.btn.soft { background: var(--gold-l); color: var(--orange-d); border: 1.5px solid #f3ddaa; }
.btn.danger { background: #fdeceb; color: #b3261e; border: 1.5px solid #f3c1bd; }
.btn.wide { width: 100%; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* hero */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-bg { width: 100%; height: 150px; object-fit: cover; }
.hero-card { background: var(--card); margin: -46px 10px 10px; position: relative; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.hello { font-size: 13px; color: var(--muted); font-weight: 600; }
.bal-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bal { font-size: 30px; font-weight: 900; color: var(--dark1); line-height: 1.15; }
.bal-sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-inline-start: 6px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.hstat { display: flex; align-items: center; gap: 8px; background: var(--gold-l); border-radius: 12px; padding: 8px; }
.hstat img { width: 30px; height: 30px; object-fit: cover; border-radius: 8px; }
.hstat b { font-size: 16px; color: var(--dark1); }
.hstat span { display: block; font-size: 10.5px; color: var(--muted); }

/* marquee */
.marquee { background: var(--trust); color: var(--gold-l); border-radius: 12px; overflow: hidden; padding: 8px 0; }
.marquee-in { display: flex; gap: 34px; white-space: nowrap; width: max-content; animation: mq 28s linear infinite; padding-inline: 12px; }
.marquee-in span { font-size: 13px; font-weight: 600; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-in { animation-name: mq-rtl; }
@keyframes mq-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* cards */
.card, .card2 { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head h3 { font-size: 16px; color: var(--dark1); }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 800; }
.badge.gold { background: var(--gold-l); color: var(--orange-d); border: 1px solid #f0d9a0; }
.badge.green { background: #e7f6ec; color: #1c7a3a; }
.badge.red { background: #fdeceb; color: #b3261e; }
.badge.gray { background: #eef1ee; color: #5f6f65; }
.badge.usdt { background: #e8f7f5; color: #0f766e; border: 1px solid #b5e3de; }

/* streak */
.streak-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.streak-item { background: var(--gold-l); border-radius: 12px; text-align: center; padding: 8px 4px; border: 1.5px dashed #ecd9a2; }
.streak-item.done { background: var(--grad); color: #fff; border-style: solid; }
.streak-item b { font-size: 17px; }
.streak-item span { display: block; font-size: 10px; opacity: .8; }
.streak-item em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--orange-d); }
.streak-item.done em { color: #fff; }
.streak-next { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); text-align: center; font-weight: 700; }
.streak-card .btn.is-done { background: var(--green); }

/* quick actions */
.grid-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gact { background: var(--card); border-radius: 16px; padding: 12px 6px; text-align: center; box-shadow: var(--shadow); transition: transform .15s; }
.gact:active { transform: scale(.96); }
.gact img { width: 46px; height: 46px; object-fit: cover; border-radius: 12px; margin: 0 auto 6px; background: var(--gold-l); }
.gact span { font-size: 12px; font-weight: 800; color: var(--dark1); }

.trustbar { background: var(--trust); color: var(--gold-l); border-radius: 10px; padding: 10px; font-size: 12.5px; text-align: center; margin-bottom: 10px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; }
.mini-stats b { font-size: 17px; color: var(--dark1); display: block; }
.mini-stats span { font-size: 11px; color: var(--muted); }

/* page head */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.page-head h2 { font-size: 19px; color: var(--dark1); }
.sec-title { margin-top: 6px; font-size: 15px; color: var(--dark1); }

/* birds */
.bird-list { display: flex; flex-direction: column; gap: 12px; }
.bird-card { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.bird-card.expired { opacity: .6; }
.bird-img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; background: var(--gold-l); }
.bird-info { flex: 1; min-width: 0; }
.bird-info h4 { font-size: 15px; color: var(--dark1); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bird-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); margin: 4px 0; }
.egg-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.egg-counts div { background: var(--gold-l); border-radius: 10px; text-align: center; padding: 5px 4px; }
.egg-counts b { font-size: 14px; color: var(--dark1); }
.egg-counts span { display: block; font-size: 9.5px; color: var(--muted); }
.bird-actions { display: flex; gap: 8px; }
.bird-actions .btn { padding: 8px 12px; font-size: 13px; flex: 1; }

/* shop */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shop-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.shop-card.locked { opacity: .7; }
.shop-img { position: relative; }
.shop-img img { width: 100%; height: 110px; object-fit: cover; }
.lvl { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--dark1); color: var(--gold-l); font-size: 11px; font-weight: 900; border-radius: 999px; padding: 3px 9px; }
.shop-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-body h4 { font-size: 14.5px; color: var(--dark1); }
.price { font-size: 16px; font-weight: 900; color: var(--orange-d); }
.buy-box summary { list-style: none; }
.buy-box summary::-webkit-details-marker { display: none; }
.buy-box .form { margin-top: 8px; }

/* tasks */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-card { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.task-card.done { opacity: .65; }
.task-txt { flex: 1; }
.task-txt h4 { font-size: 14.5px; color: var(--dark1); }
.task-txt p { font-size: 12px; color: var(--muted); }
.task-side { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.task-side .btn { padding: 7px 12px; font-size: 12.5px; }
.terms-box { margin-top: 6px; }
.terms-body { font-size: 13.5px; line-height: 1.8; color: #555; padding-top: 8px; }

/* team */
.team-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.team-stats .card { text-align: center; }
.team-stats b { font-size: 17px; color: var(--dark1); display: block; }
.team-stats span { font-size: 11px; color: var(--muted); }
.member-row { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.member-row.lvl2 { opacity: .85; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; flex-shrink: 0; }
.avatar.alt { background: var(--green); }
.member-row small { display: block; color: var(--muted); font-size: 11px; }
.member-row b { font-size: 14px; }

/* wallet */
.bal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bal-box { border-radius: 14px; padding: 12px; text-align: center; }
.bal-box.egp { background: var(--gold-l); }
.bal-box.usdt { background: #e8f7f5; }
.bal-box b { font-size: 18px; color: var(--dark1); display: block; }
.bal-box span { font-size: 11px; color: var(--muted); }
.cur-switch { display: flex; gap: 10px; }
.cur-switch form { flex: 1; }
.cur-switch .btn { width: 100%; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }

/* forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.field span { display: block; font-size: 12.5px; font-weight: 700; color: var(--dark1); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.6px solid #e3ddcd; border-radius: 12px; padding: 11px 13px;
  font-size: 15px; font-family: inherit; background: #fffdf7; color: var(--text); outline: none;
}
.field input:focus, .field select:focus { border-color: var(--orange); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* slide captcha */
.slidecap { background: #fffdf7; border: 1.6px solid #e3ddcd; border-radius: 14px; padding: 8px; user-select: none; }
.slidecap-track { position: relative; border-radius: 10px; overflow: hidden; }
.slidecap-track img.sc-bg { width: 100%; display: block; }
.slidecap-track img.sc-piece { position: absolute; top: 12%; left: 0; width: 16.5%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); cursor: grab; touch-action: none; }
.slidecap-bar { position: relative; height: 40px; background: var(--gold-l); border-radius: 10px; margin-top: 8px; overflow: hidden; }
.sc-knob { position: absolute; top: 3px; inset-inline-start: 3px; width: 46px; height: 34px; border-radius: 9px;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; cursor: grab; z-index: 2; }
.sc-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); font-weight: 700; }

/* auth */
.auth-wrap { position: fixed; inset: 0; z-index: 60; overflow-y: auto; display: flex; align-items: center;
  justify-content: center; padding: 18px;
  background: linear-gradient(160deg, var(--dark1) 0%, #14532d 45%, var(--green) 100%); }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border-radius: 22px; padding: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 14px; }
.auth-brand { text-align: center; }
.auth-brand img { width: 74px; height: 74px; margin: 0 auto 8px; border-radius: 50%; box-shadow: var(--shadow); }
.auth-brand h1 { font-size: 21px; color: var(--dark1); }
.auth-brand p { font-size: 12.5px; color: var(--muted); }
.auth-alt { text-align: center; font-size: 13.5px; }
.auth-alt a { color: var(--orange-d); font-weight: 800; }
.or { text-align: center; font-size: 12px; color: var(--muted); position: relative; }
.notice.warn { background: #fff4cf; border: 1px solid #ecd9a2; color: #8a6d1a; border-radius: 10px; padding: 9px 12px; font-size: 13px; }

/* invite / support / bills */
.copy-box { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.copy-box input { flex: 1; border: 1.6px dashed #e0c98f; background: var(--gold-l); border-radius: 10px; padding: 10px; font-size: 13px; direction: ltr; text-align: left; }
.invite-card { text-align: center; }
.invite-img { width: 110px; margin: 0 auto 8px; border-radius: 18px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { background: var(--card); border: 1.5px solid #e3ddcd; color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.row-item { display: flex; justify-content: space-between; align-items: center; background: var(--card); border-radius: 12px; padding: 11px 13px; margin-bottom: 8px; box-shadow: var(--shadow); gap: 8px; }
.row-item small { display: block; color: var(--muted); font-size: 11px; }
.ta-end { text-align: end; }
.pos { color: #1c7a3a; } .neg { color: #b3261e; }

/* profile */
.profile-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.avatar.big { width: 64px; height: 64px; font-size: 26px; }
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-row { background: var(--card); border-radius: 14px; padding: 13px 16px; font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; }
.menu-row.danger { color: #b3261e; }
.chat-box { display: flex; flex-direction: column; gap: 8px; background: var(--card); border-radius: 16px; padding: 12px; min-height: 220px; max-height: 46vh; overflow-y: auto; box-shadow: var(--shadow); }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; }
.bubble small { display: block; font-size: 10px; opacity: .65; margin-top: 3px; }
.bubble.me { align-self: flex-start; background: var(--gold-l); border: 1px solid #f0d9a0; }
.bubble.admin { align-self: flex-end; background: var(--trust); color: #fff; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; border: 1.6px solid #e3ddcd; border-radius: 12px; padding: 11px 13px; font-family: inherit; font-size: 14px; }
.tg-btn { text-decoration: none; }

/* empty + misc */
.empty { text-align: center; padding: 30px 14px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty img { width: 110px; opacity: .9; border-radius: 20px; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 11.5px; }
.center { text-align: center; }

/* toast */
.toast { position: fixed; top: 64px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: 88%;
  background: var(--dark2); color: var(--gold-l); padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 99; animation: tin .3s ease; }
.toast-err { background: #7f1d1d; color: #fecaca; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; } }

/* bottom nav */
.bottomnav { position: fixed; bottom: 0; inset-inline: 0; background: #fff; box-shadow: 0 -6px 24px rgba(16,47,33,.12); z-index: 60; }
.bn-in { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px 8px; }
.bn { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 10.5px; font-weight: 700; padding: 4px 0; border-radius: 10px; }
.bn svg { width: 22px; height: 22px; }
.bn.on { color: var(--orange-d); }

@media (min-width: 700px) {
  .hero-bg { height: 210px; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== v2 components ===== */
.bell { position: relative; font-size: 18px; line-height: 1; }
.bell-dot { position: absolute; top: -6px; inset-inline-end: -8px; background: #e02020; color: #fff;
  font-style: normal; font-size: 9.5px; font-weight: 900; border-radius: 999px; padding: 1px 5px; }
.bn.raised { transform: translateY(-10px); background: var(--grad); color: #fff; border-radius: 14px;
  padding: 7px 10px; box-shadow: 0 8px 20px rgba(223,106,40,.45); }
.bn.raised svg { width: 26px; height: 26px; }
.bn.raised span { color: #fff; }

/* wheel */
.wheel-card { text-align: center; }
.wheel-wrap { position: relative; width: 290px; height: 290px; margin: 8px auto 14px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; position: relative;
  border: 10px solid var(--dark1); box-shadow: inset 0 0 0 4px var(--gold-l), 0 10px 30px rgba(16,47,33,.3); }
.wheel-label { position: absolute; top: 50%; left: 50%; width: 72px; height: 18px;
  margin: -9px 0 0 -36px; text-align: center; font-size: 11px; font-weight: 900; color: var(--dark1);
  transform-origin: 50% 50%; white-space: nowrap; }
.wheel-center { position: absolute; top: 50%; left: 50%; width: 74px; height: 74px; margin: -37px;
  background: #fff; border: 5px solid var(--gold); border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 30px; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 2; }
.wheel-pointer { position: absolute; top: -14px; left: 50%; margin-left: -11px; width: 0; height: 0;
  border-inline: 11px solid transparent; border-top: 20px solid var(--orange-d); z-index: 3; }

/* notifications */
.notif { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.notif b { font-size: 14px; color: var(--dark1); }
.notif p { font-size: 12.5px; color: #555; margin: 3px 0; }
.notif small { color: var(--muted); font-size: 10.5px; }
.notif.unread { border-inline-start: 4px solid var(--orange); }
.notif.read { opacity: .65; }
.notif .dot { width: 9px; height: 9px; background: var(--orange-d); border-radius: 50%; flex-shrink: 0; }

/* method list (deposit/withdraw) */
.method-list { display: flex; flex-direction: column; gap: 8px; }
.method-row { display: flex; align-items: center; gap: 10px; background: #fffdf7; border: 1.6px solid #e3ddcd;
  border-radius: 14px; padding: 11px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.method-row.sel { border-color: var(--orange); background: var(--gold-l); }
.method-row input[type="radio"] { display: none; }
.m-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9c2b0; flex-shrink: 0; position: relative; }
.method-row.sel .m-radio { border-color: var(--orange-d); }
.method-row.sel .m-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange-d); }
.m-info { flex: 1; min-width: 0; }
.m-info b { font-size: 14px; color: var(--dark1); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.m-info small { display: block; color: var(--muted); font-size: 11px; }
.method-details { background: var(--gold-l); border: 1.5px dashed #e0c98f; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.amount-box { display: flex; align-items: center; border: 1.6px solid #e3ddcd; border-radius: 12px; overflow: hidden; background: #fffdf7; }
.amount-box input { flex: 1; border: 0; padding: 13px 14px; font-size: 16px; font-weight: 700; background: transparent; outline: none; }
.amount-box span { padding: 0 16px; font-weight: 900; color: var(--orange-d); }
.dep-hero .hero-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* nest v2 */
.ready-card { background: linear-gradient(150deg, #fff, var(--gold-l)); }
.ready-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ready-row img { width: 110px; height: 90px; object-fit: cover; border-radius: 14px; }
.ready-eggs b { font-size: 30px; color: var(--dark1); }
.sellall-btn { font-size: 16px; }
.stat-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-grid3 .card { text-align: center; padding: 10px; }
.stat-grid3 b { font-size: 17px; color: var(--dark1); display: block; }
.stat-grid3 span { font-size: 10.5px; color: var(--muted); }
.gact-row { display: flex; align-items: center; gap: 10px; }
.gact-row img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--gold-l); }
.gact-row b { font-size: 14px; color: var(--dark1); display: block; }
.reset-timer { background: var(--gold-l); border: 1px solid #f0d9a0; color: var(--orange-d);
  border-radius: 10px; padding: 6px 12px; font-size: 12.5px; font-weight: 900; direction: ltr; }
.dashed-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 2px dashed #d9b25e; background: #fffaf0; border-radius: 16px; padding: 12px 14px; }
.help-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--trust); color: var(--gold-l); }
.help-banner b { color: #fff; font-size: 15px; }
.help-banner .btn { background: rgba(255,255,255,.15); color: var(--gold-l); border-color: rgba(255,255,255,.3); }

/* tasks v2 */
.task-grid { display: flex; flex-direction: column; gap: 10px; }
.task-card2 { position: relative; display: flex; gap: 10px; background: var(--card); border-radius: 16px; padding: 14px; padding-top: 18px; box-shadow: var(--shadow); }
.task-card2.done { opacity: .6; }
.task-num { position: absolute; top: 8px; inset-inline-end: 10px; font-size: 11px; font-weight: 900; color: var(--muted); }
.progress { position: relative; height: 8px; background: #efe9d8; border-radius: 999px; margin: 8px 0 6px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .4s; }
.progress span { position: absolute; inset-inline-end: 6px; top: -5px; font-size: 10px; color: var(--muted); font-weight: 800; }
.reward { font-size: 12.5px; color: var(--muted); }
.reward b { color: var(--orange-d); }
.streak-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, #193f2a, #2c6d43); color: #fff; }
.streak-banner b { color: #fff; }
.streak-banner .muted { color: #cfe0d3; }
.gold-txt { color: var(--orange-d); font-weight: 900; }

/* profile v2 */
.wallet-hero { background: var(--trust); color: #fff; }
.wallet-hero h3 { color: var(--gold-l); margin: 2px 0; }
.wallet-hero .bal { color: #fff; font-size: 32px; }
.wallet-hero .bal-sub { color: #cfe0d3; }
.wallet-hero .mini-stats b { color: var(--gold-l); }
.wallet-hero .mini-stats span { color: #9fb8a7; }
.wallet-hero .soft { background: rgba(255,255,255,.14); color: var(--gold-l); border-color: rgba(255,255,255,.3); }
.wallet-hero .muted { color: #9fb8a7; }
.copy-box.inline { display: inline-flex; gap: 6px; align-items: center; }
.copy-box.inline input { width: 90px; padding: 4px 8px; font-size: 12px; }
.copy-box.inline .btn { padding: 5px 10px; font-size: 12px; }
.block { display: block; }
.grow { flex: 1; }

/* misc v2 */
.rules-pop { position: relative; }
.pop-body { position: absolute; top: 110%; inset-inline-end: 0; width: 260px; z-index: 20; box-shadow: 0 14px 40px rgba(0,0,0,.2); }
.fee-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; }
.soft-box { background: var(--gold-l); border-radius: 12px; padding: 12px; }
.soft-box b { color: var(--dark1); font-size: 13.5px; }
.how-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; }
.how-steps p { font-size: 10.5px; color: var(--muted); margin-top: 4px; font-weight: 700; }
.ok-box { background: #e7f6ec; color: #1c7a3a; }
.center { text-align: center; }
@media (max-width: 420px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }

/* ===== auth icons, eye toggle, country select ===== */
.field.with-icon { position: relative; }
.field.with-icon .f-ico { position: absolute; inset-inline-start: 10px; bottom: 11px; font-size: 15px; font-style: normal; opacity: .75; pointer-events: none; }
.field.with-icon input, .field.with-icon select { padding-inline-start: 34px; }
.pw-field input { padding-inline-end: 40px !important; }
.pw-eye { position: absolute; inset-inline-end: 8px; bottom: 7px; border: 0; background: transparent; font-size: 16px; cursor: pointer; opacity: .8; padding: 4px; }
.phone-row { display: flex; gap: 8px; align-items: stretch; }
.phone-row select { flex: 0 0 auto; max-width: 46%; background: #fffdf8; border: 1.4px solid #f4e7cc; border-radius: 13px; padding: 10px 6px; font-weight: 700; color: var(--dark1); }
.phone-row input { flex: 1; min-width: 0; }
.dial-preview { color: var(--muted); font-size: 11px; margin-top: 4px; }
.auth-card .or { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0; }

/* ===== deposit account box + QR ===== */
.acc-box { background: var(--gold-l); border: 1.4px dashed #f4e7cc; border-radius: 14px; padding: 12px; text-align: center; }
.acc-box code { display: block; word-break: break-all; font-size: 12.5px; font-weight: 800; color: var(--dark2); margin-bottom: 8px; direction: ltr; }
.qr-box { display: flex; justify-content: center; margin-top: 8px; }
.qr-box img { background: #fff; padding: 6px; border-radius: 10px; }
.notice.info { background: #fffdf8; border: 1.4px solid #f4e7cc; }

.file-btn { display: inline-block; background: var(--gold-l); border: 1.4px solid #f4e7cc; color: var(--dark1); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.avatar-form { margin-top: 8px; }
.acc-code { display: block; direction: ltr; text-align: center; font-weight: 800; letter-spacing: 2px; margin: 8px 0; background: var(--gold-l); padding: 8px; border-radius: 10px; }
.charity-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin: 10px 0; }

.masq-bar { position: sticky; top: 0; z-index: 60; display: block; text-align: center; background: #0b3d2e; color: #ffd76a; font-weight: 800; padding: 8px; font-size: 13px; }

/* ==================== v5.1 : Golden Nest 🪺 provably-fair game ==================== */
.ng-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 14px 14px 12px;
  background: linear-gradient(150deg, #14261a, #1d5c33 62%, #0c7a3e); color: #fffdf5;
  box-shadow: 0 14px 34px rgba(12, 60, 30, .45); }
.ng-hero h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin: 0 0 3px; }
.ng-hero .ng-sub { font-size: 11.5px; opacity: .85; }
.ng-orb { position: absolute; font-size: 26px; opacity: .30; animation: ngfloat 7s ease-in-out infinite; pointer-events: none; }
.ng-orb:nth-child(1) { top: 8px; inset-inline-start: 6%; animation-delay: 0s; }
.ng-orb:nth-child(2) { bottom: 10px; inset-inline-start: 40%; animation-delay: 1.4s; font-size: 20px; }
.ng-orb:nth-child(3) { top: 16px; inset-inline-end: 8%; animation-delay: 2.6s; font-size: 22px; }
@keyframes ngfloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-9px) rotate(8deg); } }
.ng-stats { display: flex; gap: 8px; margin-top: 10px; position: relative; }
.ng-stat { flex: 1; background: rgba(255, 253, 245, .13); border: 1px solid rgba(255, 253, 245, .18);
  border-radius: 12px; padding: 7px 6px; text-align: center; }
.ng-stat b { font-size: 15px; display: block; direction: ltr; }
.ng-stat span { font-size: 10px; opacity: .85; font-weight: 700; }
.ng-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ng-tile { aspect-ratio: 1 / 1; perspective: 600px; cursor: pointer; border: 0; background: none; padding: 0; font-family: inherit; }
.ng-tile:disabled { cursor: default; }
.ng-tile:not(.flip):not(:disabled):hover .ng-inner { transform: translateY(-3px) scale(1.03); }
.ng-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.34, 1.45, .64, 1); border-radius: 14px; }
.ng-tile.flip .ng-inner { transform: rotateY(180deg); }
.ng-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 25px; }
.ng-front { background: linear-gradient(160deg, #f8ebcb, #eed6a0); border: 1.6px solid #e2c78c;
  box-shadow: 0 4px 12px rgba(92, 62, 12, .22); }
.ng-back { transform: rotateY(180deg); background: #fffdf5; border: 1.6px solid #e2c78c; }
.ng-back.egg { background: radial-gradient(circle at 35% 30%, #fff8dd, #ffd76e);
  box-shadow: 0 0 24px rgba(245, 178, 40, .55); }
.ng-back.fox { background: radial-gradient(circle at 50% 38%, #ffd9c4, #e86a1c); }
.ng-tile.fox-shake { animation: ngshake .55s both; }
@keyframes ngshake { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-7px); }
  38% { transform: translateX(7px); } 58% { transform: translateX(-5px); } 78% { transform: translateX(5px); } }
.ng-pop { animation: ngpop .4s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes ngpop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.ng-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.ng-card { background: var(--card); border: 1.5px solid var(--border-c); border-radius: 15px; padding: 11px 12px; }
.ng-mult-num { font-size: 29px; font-weight: 900; color: var(--orange-d); direction: ltr; text-align: center; line-height: 1.1; }
.ng-mult-lbl { text-align: center; font-size: 10.5px; color: var(--muted); font-weight: 800; margin-bottom: 2px; }
.ng-risk { height: 7px; border-radius: 99px; background: #eef1ea; overflow: hidden; margin-top: 7px; }
.ng-risk i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0c7a3e, #f5b128);
  transition: width .4s; }
.ng-risk-txt { font-size: 10px; color: var(--muted); font-weight: 700; margin-top: 4px; text-align: center; }
.ng-eggs-line { text-align: center; font-size: 12px; font-weight: 800; color: var(--dark1); margin-top: 5px; }
.ng-cash { width: 100%; border: 0; border-radius: 13px; padding: 13px 10px; font-size: 14px; font-weight: 900;
  color: #fff; background: linear-gradient(115deg, #0c7a3e, #17b06a); box-shadow: 0 8px 20px rgba(12, 122, 62, .38);
  cursor: pointer; font-family: inherit; transition: transform .15s, opacity .15s; }
.ng-cash:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.ng-cash:not(:disabled):active { transform: scale(.97); }
.ng-cash small { display: block; font-size: 10px; opacity: .85; font-weight: 700; margin-top: 2px; }
.ng-start { width: 100%; border: 0; border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 900;
  color: #fff; background: var(--grad); box-shadow: 0 10px 24px rgba(224, 108, 39, .40); cursor: pointer; font-family: inherit; }
.ng-start:disabled { opacity: .5; cursor: not-allowed; }
.ng-note { font-size: 11px; color: var(--muted); background: var(--gold-l); border-radius: 11px; padding: 9px 11px; line-height: 1.7; font-weight: 600; }
.ng-fair { background: var(--card); border: 1.5px solid var(--border-c); border-radius: 15px; padding: 12px; }
.ng-fair h4 { font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ng-fair code { direction: ltr; display: block; word-break: break-all; background: var(--gold-l);
  border-radius: 8px; padding: 6px 8px; font-size: 10px; font-weight: 700; color: #6b5b2e; }
.ng-fair .fld { margin-top: 8px; }
.ng-fair .fld input { width: 100%; border: 1.4px solid var(--border-c); border-radius: 10px; padding: 8px 10px;
  font-size: 12px; direction: ltr; font-family: inherit; background: var(--input-bg); }
.ng-verify-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 9px; }
.ng-verify-grid i { aspect-ratio: 1; border-radius: 7px; background: var(--gold-l); display: flex;
  align-items: center; justify-content: center; font-size: 13px; }
.ng-verify-grid i.fox { background: #fdeceb; }
.ng-verify-ok { margin-top: 7px; font-size: 11.5px; font-weight: 800; color: #0c7a3e; text-align: center; min-height: 15px; }
.ng-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.ng-chips::-webkit-scrollbar { display: none; }
.ng-chip { padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--card);
  border: 1.4px solid var(--border-c); white-space: nowrap; direction: ltr; }
.ng-chip.win { background: #e7f6ec; color: #0c7a3e; border-color: #bfe6cc; }
.ng-chip.lost { background: #fdeceb; color: #b3261e; border-color: #f3c1bd; }
.ng-sound { position: absolute; top: 10px; inset-inline-end: 10px; background: rgba(255, 253, 245, .16);
  border: 1px solid rgba(255, 253, 245, .25); color: #fffdf5; border-radius: 999px; padding: 3px 10px;
  font-size: 11px; cursor: pointer; font-family: inherit; }
#ngFx { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.ng-banner { border-radius: 14px; padding: 12px; text-align: center; font-weight: 900; font-size: 14px; display: none; }
.ng-banner.win { background: linear-gradient(115deg, #e7f6ec, #f7fbe9); color: #0c7a3e; border: 1.6px solid #bfe6cc; }
.ng-banner.lose { background: linear-gradient(115deg, #fdeceb, #fff0e4); color: #b3261e; border: 1.6px solid #f3c1bd; }
@media (max-width: 380px) { .ng-panel { grid-template-columns: 1fr; } .ng-face { font-size: 21px; } }

/* ==================== v5.0b : theme palettes ==================== */
[data-theme="emerald"] { --bg:#f2fbf5; --card:#ffffff; --text:#1c3d2b; --muted:#5f8a72; --grad:linear-gradient(110deg,#0c7a3e,#17b06a); --grad-card:linear-gradient(160deg,#ffffff,#eef8f1); --orange-d:#0c7a3e; --border-c:#cfe8d8; --gold-l:#e7f6ec; --dark1:#14532d; --input-bg:#f7fdf9; --shadow:0 4px 18px rgba(20,80,45,.10); }
[data-theme="royal"] { --bg:#f6f2fb; --card:#ffffff; --text:#2e1a4d; --muted:#7a6899; --grad:linear-gradient(110deg,#5b2a86,#8e44ad); --grad-card:linear-gradient(160deg,#ffffff,#f4eefa); --orange-d:#5b2a86; --border-c:#e0d4ef; --gold-l:#f3eefa; --dark1:#3b1d63; --input-bg:#faf7fd; --shadow:0 4px 18px rgba(90,40,140,.12); }
[data-theme="ocean"] { --bg:#eff6fd; --card:#ffffff; --text:#123a5c; --muted:#5f83a3; --grad:linear-gradient(110deg,#0b5394,#1a7ac2); --grad-card:linear-gradient(160deg,#ffffff,#ecf4fb); --orange-d:#0b5394; --border-c:#cfe3f4; --gold-l:#e8f2fb; --dark1:#0d2f4d; --input-bg:#f5fafd; --shadow:0 4px 18px rgba(15,70,120,.11); }
[data-theme="sunset"] { --bg:#fdf3ef; --card:#fffdfa; --text:#5c2a1d; --muted:#9a6a55; --grad:linear-gradient(110deg,#c0392b,#e86a1c); --grad-card:linear-gradient(160deg,#fffdfa,#fbeee6); --orange-d:#c0392b; --border-c:#f2d9cd; --gold-l:#fbeee8; --dark1:#7a3520; --input-bg:#fef8f4; --shadow:0 4px 18px rgba(160,70,40,.11); }
[data-theme="pearl"] { --bg:#f7f7f9; --card:#ffffff; --text:#2b2b33; --muted:#77778a; --grad:linear-gradient(110deg,#4a4a5a,#6c6c80); --grad-card:linear-gradient(160deg,#ffffff,#f0f0f4); --orange-d:#4a4a5a; --border-c:#e2e2ea; --gold-l:#f1f1f5; --dark1:#33333f; --input-bg:#fafafb; --shadow:0 4px 18px rgba(60,60,80,.09); }

/* ---------- login/register safety net (guarantee the auth look) ---------- */
body.pg-login .bg, main.pg-login .bg,
body.pg-r .bg, main.pg-r .bg,
body.pg-login .login-page, main.pg-login .login-page{
  background:#173d2b url(../img/site/farm-login-bg-v2.png) center/cover no-repeat fixed;
}
main.pg-login .farm-hero{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;position:relative;z-index:2}
main.pg-login .farm-hero-brand{display:flex;align-items:center;gap:10px;background:rgba(16,47,33,.85);border-radius:999px;padding:6px 16px 6px 8px}
main.pg-login .farm-hero-logo{width:36px;height:36px;border-radius:50%}
main.pg-login .farm-hero-name{color:#fff;font-weight:900;font-size:16px}
main.pg-login .farm-hero-lang .lang-switch{display:flex;background:#fff;border-radius:999px;overflow:hidden}
main.pg-login .lang-switch-item{padding:6px 14px;font-weight:800;font-size:13px;color:#5c4326}
main.pg-login .lang-switch-item--on{background:linear-gradient(110deg,#e96727,#f5b128);color:#fff}
main.pg-login .page{position:relative;z-index:2;display:flex;justify-content:center;padding:6px 14px 40px}
main.pg-login .login-glass{width:100%;max-width:420px;background:rgba(255,255,255,.94);border:2px solid rgba(255,255,255,.65);border-radius:26px;padding:22px 18px 18px;box-shadow:0 24px 60px rgba(10,30,18,.45);display:flex;flex-direction:column;gap:14px}
main.pg-login .sheet-grip{width:56px;height:5px;border-radius:99px;background:#e3d5b8;margin:0 auto}
main.pg-login .login-brand-block .head-left{display:flex;align-items:center;justify-content:center;gap:10px}
main.pg-login .head-logo{width:44px;height:44px;border-radius:50%}
main.pg-login .brand-name{font-weight:900;color:#1d3d24;font-size:17px}
main.pg-login .login-welcome{font-size:20px;font-weight:900;color:#a33d12}
main.pg-login .login-brand-inline{color:#a33d12}
main.pg-login .title-sub{font-size:13px;color:#9a7a58;font-weight:700}
main.pg-login .input-shell input.ph-input{font-size:15px}
main.pg-login .login-trust-strip{display:flex;align-items:center;background:linear-gradient(125deg,#1d5c33,#173d2b);border-radius:16px;padding:12px 8px;gap:4px}
main.pg-login .login-trust-cell{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
main.pg-login .login-trust-ic{width:26px;height:26px}
main.pg-login .login-trust-num{color:#ffd76a;font-weight:900;font-size:13px}
main.pg-login .login-trust-lbl{color:#eaf7ee;font-size:10px;font-weight:700}
main.pg-login .login-trust-div{width:1px;height:30px;background:rgba(255,255,255,.2)}
main.pg-login .login-cs-entry{display:flex;align-items:center;gap:10px;background:#f7efdd;border-radius:14px;padding:11px 14px}
main.pg-login .login-cs-wa{width:26px;height:26px}
main.pg-login .login-cs-title{display:block;font-weight:900;color:#5c4326;font-size:13.5px}
main.pg-login .login-cs-sub{display:block;color:#9a7a58;font-size:11.5px}
main.pg-login .login-cs-chev{color:#b58a45;font-weight:900;font-size:18px}
main.pg-login .slidecap{background:#fffdf7;border:1.5px solid #efe3c8;border-radius:14px;padding:8px}
main.pg-login .ph-input{font-size:15px}
main.pg-r .register-page .bg{background:#173d2b url(../img/site/farm-login-bg-v2.png) center/cover no-repeat fixed}
main.pg-r .register-page{min-height:100vh;position:relative}
main.pg-r .register-page .page{position:relative;z-index:2;padding:14px}
main.pg-r .header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
main.pg-r .back-btn{width:40px;height:40px;border-radius:50%;background:rgba(16,47,33,.85);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px}
main.pg-r .lang-switch{display:flex;background:#fff;border-radius:999px;overflow:hidden}
main.pg-r .lang-switch-item{padding:6px 14px;font-weight:800;font-size:13px;color:#5c4326}
main.pg-r .lang-switch-item--on{background:linear-gradient(110deg,#e96727,#f5b128);color:#fff}
main.pg-r .login-glass{background:rgba(255,255,255,.94);border:2px solid rgba(255,255,255,.65);border-radius:26px;padding:20px 18px;box-shadow:0 24px 60px rgba(10,30,18,.45);display:flex;flex-direction:column;gap:12px}
main.pg-r .login-logo-wrap{display:flex;justify-content:center}
main.pg-r .login-logo{width:64px;height:64px;border-radius:50%;background:#fff;padding:4px}
main.pg-r .title{font-size:21px;font-weight:900;color:#a33d12;text-align:center}
main.pg-r .title-sub{text-align:center;font-size:12.5px;color:#9a7a58;font-weight:700}
main.pg-r .input-label{display:block;font-weight:800;color:#5c4326;font-size:13.5px;margin:10px 0 6px}
main.pg-r .input-with-icon{display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid #efe3c8;border-radius:14px;padding:4px 12px}
main.pg-r .input-with-icon input{flex:1;min-width:0;border:0;outline:none;font-size:15px;color:#4a3423;padding:12px 6px}
main.pg-r .lock-icon{width:20px;height:20px}
main.pg-r .pw-eye{border:0;background:transparent;font-size:16px;opacity:.7}
main.pg-r .btn-primary{margin-top:10px}
main.pg-r .footer-text{display:flex;justify-content:center;gap:6px;font-size:14px}
main.pg-r .footer-link{color:#e96727;font-weight:800}
main.pg-r .slidecap{background:#fffdf7;border:1.5px solid #efe3c8;border-radius:14px;padding:8px}

/* primary buttons always keep the farm gradient (framework blue reset was overriding) */
button.btn-primary,main.pg-r button.btn-primary,main.pg-login button.btn-primary{
  background:linear-gradient(110deg,#e96727,#f5b128)!important;color:#fff!important;
}
button.btn-primary .btn-primary-txt{color:#fff!important}
/* register labels above inputs */
main.pg-r .input-label{margin-top:14px}

/* ===== FINAL CASCADE OVERRIDES (original site element resets beat class rules) ===== */
/* floating glass tabbar pinned to viewport bottom on every page */
.farm-tab-shell{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
  z-index:80!important;padding:0 10px calc(6px + env(safe-area-inset-bottom))!important;pointer-events:none;
  background:none!important}
.farm-tab-shell .custom-tab-bar{pointer-events:auto;max-width:430px;margin:0 auto;position:relative}
.app{padding-bottom:86px}
/* buttons the site reset was flattening */
button.egg-mini-btn,main button.egg-mini-btn{background:#f4ead0!important;color:#a55b12!important;
  border:1px solid #ecd9b0!important;border-radius:10px!important;padding:8px 12px!important;font-weight:900!important;cursor:pointer}
button.egg-mini-btn--gold,main button.egg-mini-btn--gold{background:linear-gradient(110deg,#e96727,#f5b128)!important;
  color:#fff!important;border-color:transparent!important}
button.wallet-cur-btn,main button.wallet-cur-btn{background:#fffdf4!important;border:1.4px solid #efe3c8!important;
  color:#684326!important;border-radius:12px!important;font-weight:800!important}
button.wallet-cur-btn.on,main button.wallet-cur-btn.on{background:linear-gradient(110deg,#e96727,#f5b128)!important;
  color:#fff!important;border-color:transparent!important}
button.addr-submit,main button.addr-submit{background:linear-gradient(110deg,#e96727,#f5b128)!important;color:#fff!important;
  border:0!important;border-radius:14px!important;padding:13px!important;font-weight:900!important;font-size:15px!important;
  width:100%!important;margin-top:14px!important}
/* v1.3: :not(.wd-withdraw-submit) — the withdraw CTA carries its own pixel design; the generic
   flattening (display:block + padding) broke its flex centering and clipped its label */
.btn-wrap button:not(.wd-withdraw-submit),main .btn-wrap button:not(.wd-withdraw-submit),.btn-wrap .btn-primary:not(.wd-withdraw-submit){background:linear-gradient(110deg,#e96727,#f5b128)!important;
  color:#fff!important;border:0!important;border-radius:14px!important;font-weight:900!important;width:100%!important;
  padding:13px!important;font-size:15px!important;display:block!important;text-align:center!important}

.inv-yolk-btn{background:linear-gradient(110deg,#e96727,#f5b128)!important;color:#fff!important;border-radius:12px!important;
  padding:11px 16px!important;font-weight:900!important;display:inline-flex!important;align-items:center!important;gap:8px!important}
.inv-yolk-btn .uimg{width:18px;height:18px}

.svc-yolk-btn{background:linear-gradient(110deg,#e96727,#f5b128)!important;color:#fff!important;border-radius:12px!important;
  padding:11px 16px!important;font-weight:900!important;display:inline-flex!important;align-items:center!important;gap:8px!important}
.svc-yolk-btn .uimg{width:18px;height:18px}

.nw-yolk-btn{background:linear-gradient(110deg,#e96727,#f5b128)!important;color:#fff!important;border-radius:12px!important;
  padding:11px 16px!important;font-weight:900!important;display:inline-flex!important;align-items:center!important;gap:8px!important}
.nw-yolk-btn .uimg{width:18px;height:18px}

/* ===== floating tabbar: uniform glass bar on EVERY page (per-page rules stretch it) ===== */
.farm-tab-shell .custom-tab-bar{display:flex!important;flex-direction:row!important;height:64px!important;
  align-items:stretch!important;justify-content:space-around!important;background:#fffdf6!important;
  border-radius:20px!important;box-shadow:0 -4px 18px rgba(0,0,0,.08)!important;overflow:hidden!important}
.farm-tab-shell .custom-tab-bar__item{display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;flex:1!important;width:auto!important;height:100%!important;padding:0!important}
.farm-tab-shell .custom-tab-bar__icon-frame{width:26px!important;height:26px!important;position:relative!important}
.farm-tab-shell .custom-tab-bar__icon{width:26px!important;height:26px!important}
.farm-tab-shell .custom-tab-bar__glow,.farm-tab-shell .custom-tab-bar__indicator{display:none!important}
.farm-tab-shell .custom-tab-bar__text{font-size:11px!important;font-weight:800!important;color:#8a6a45!important;line-height:1.2!important}
.farm-tab-shell .custom-tab-bar__item--active .custom-tab-bar__text{color:#e96727!important}
.farm-tab-shell .custom-tab-bar__item--active .custom-tab-bar__icon{filter:drop-shadow(0 2px 4px rgba(233,103,39,.45))}

/* shop adopt bar: keep the farm orange gradient (extracted green rule wins otherwise) */
main.pg-shop .bottom-btn,main.pg-s .bottom-btn,.bottom-btn{background:linear-gradient(110deg,#e96727,#f5b128)!important;color:#fff!important;border-radius:16px!important}
.bottom-btn .bottom-btn-title,.bottom-btn-title{color:#fff!important}
.bottom-btn .bottom-btn-sub,.bottom-btn-sub{color:rgba(255,255,255,.92)!important}

/* page wrapper must not stretch a bare header to a full empty screen */
.page{min-height:auto!important}
/* shop adopt bar: fixed above the floating tabbar like the original */
main.pg-shop .bottom-btn,main.pg-s .bottom-btn{position:fixed!important;left:10px!important;right:10px!important;
  bottom:82px!important;z-index:79!important;display:flex!important;align-items:center!important;
  justify-content:space-between!important;box-shadow:0 8px 18px rgba(233,103,39,.35)!important}
main.pg-shop,main.pg-s{padding-bottom:160px!important}

/* shop slug is pg-productDetail — pin its adopt bar above the tabbar */
main.pg-productDetail .bottom-btn{position:fixed!important;left:10px!important;right:10px!important;bottom:82px!important;
  z-index:79!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  background:linear-gradient(110deg,#e96727,#f5b128)!important;color:#fff!important;border-radius:16px!important;
  padding:12px 18px!important;box-shadow:0 8px 18px rgba(233,103,39,.35)!important}
main.pg-productDetail{padding-bottom:160px!important}
/* bills: transaction-type tabs as scrollable chips instead of a squeezed row */
.bill-tx-tabs-row{display:flex!important;overflow-x:auto!important;gap:10px!important;padding:10px 14px!important;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.bill-tx-tabs-row::-webkit-scrollbar{display:none}
.bill-tx-tab{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:6px!important;
  padding:8px 14px!important;border-radius:20px!important;background:#fff!important;border:1px solid #f0e2c4!important}
.bill-tx-tab--on{background:linear-gradient(110deg,#e96727,#f5b128)!important;border-color:transparent!important}
.bill-tx-tab-txt{font-size:12px!important;font-weight:800!important;white-space:nowrap!important;color:#7c5a34!important}
.bill-tx-tab--on .bill-tx-tab-txt{color:#fff!important}
.bill-tx-tab-img{width:18px!important;height:18px!important}


/* ===== AUTH (login/register): reference-faithful, RTL-aware ===== */
main.pg-login, main.pg-r { padding: 0 !important; background: none !important; }
body.pg-login, body.pg-r { background: #173d2b !important; }
.au-page { min-height: 100vh; background: url('../img/site/farm-login-bg-v2.png') center/cover no-repeat;
  background-color: #173d2b; padding: 14px 14px 44px; }
.au-top { display: flex; align-items: center; gap: 10px; }
.au-back { width: 42px; height: 42px; border-radius: 50%; background: #173d2b; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.28); flex: 0 0 auto; }
.au-back .tui-icon { color: #fff; }
.au-brand { display: flex; align-items: center; gap: 8px; background: #173d2b; border-radius: 999px;
  padding: 7px 8px 7px 18px; box-shadow: 0 4px 12px rgba(0,0,0,.22); }
.au-brand-ic { width: 30px; height: 30px; border-radius: 50%; background: #fff6d6; object-fit: cover; }
.au-brand-name { color: #fff; font-weight: 800; font-size: 15px; }
.au-lang { margin-inline-start: auto; background: #fff; border-radius: 999px; padding: 4px;
  display: flex; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.au-lang .lang-switch-item { padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #4a4a44; }
.au-lang .lang-switch-item--on { background: linear-gradient(110deg, #e96727, #f5b128); color: #fff; }
.au-underbar { width: 88px; height: 6px; border-radius: 99px; background: #efe6d2; margin: 10px 4px 0; opacity: .9; }
.au-card { background: #fdfbf4; border-radius: 24px; padding: 20px 16px 18px; margin-top: 12px;
  box-shadow: 0 14px 34px rgba(10,25,15,.28); position: relative; overflow: hidden; }
.au-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #e96727 0 38%, #f5b128 38% 66%, #1d5c33 66% 100%); }
.au-titlerow { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.au-dash { width: 20px; height: 4px; border-radius: 99px; background: #e96727; flex: 0 0 auto; }
.au-title { font-size: 23px; color: #1d5c33; font-weight: 900; line-height: 1.3; }
.au-sub { color: #8b8577; font-size: 13.5px; line-height: 1.8; margin: 8px 2px 2px; }
.au-sechead { display: flex; align-items: center; gap: 10px; margin: 16px 2px 10px; }
.au-badge { width: 34px; height: 34px; border-radius: 50%; background: #faf3e0; border: 1.5px solid #e9dcbc;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.au-badge img { width: 18px; height: 18px; object-fit: contain; }
.au-sectxt { color: #1d5c33; font-weight: 900; font-size: 15px; }
.au-form { display: flex; flex-direction: column; gap: 10px; }
.au-input { position: relative; display: flex; align-items: center; gap: 8px; background: #fff;
  border-radius: 14px; padding: 13px 14px; box-shadow: 0 3px 10px rgba(120,90,40,.08); }
.au-accent { position: absolute; inset-inline-start: 5px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 26px; border-radius: 99px; background: #e96727; }
.au-ic { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.au-input input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; color: #3a352c; min-width: 0; }
.au-input input:focus { outline: none; }
.au-input input::placeholder { color: #b3ab99; }
.au-divider { width: 1px; height: 22px; background: #e8e0cd; flex: 0 0 auto; }
.au-input .dial-sel { border: 0; background: transparent; font-weight: 900; color: #3a352c; font-size: 14.5px;
  direction: ltr; padding: 0; appearance: none; -webkit-appearance: none; max-width: 66px; }
.au-eye { border: 0; background: transparent; color: #a49c88; font-size: 15px; padding: 2px 4px; cursor: pointer; }
.math-q { color: #3a352c; font-weight: 800; flex: 0 0 auto; font-size: 14px; }
.au-slidecap, main.pg-login .slidecap, main.pg-r .slidecap { position: relative; margin-top: 2px; user-select: none; -webkit-user-select: none; }
.slidecap-track { position: relative; border-radius: 14px; overflow: hidden; display: block; line-height: 0;
  box-shadow: 0 3px 10px rgba(120,90,40,.10); }
.slidecap-track .sc-bg { width: 100%; display: block; }
.slidecap-track .sc-piece { position: absolute; top: 20%; left: 0; display: block; touch-action: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.slidecap-bar { margin-top: 8px; height: 42px; background: #f4ecd9; border-radius: 12px; position: relative; overflow: hidden; touch-action: none; }
.slidecap-bar .sc-knob { position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 30px; border-radius: 10px; background: linear-gradient(110deg, #e96727, #f5b128);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px;
  cursor: grab; z-index: 2; box-shadow: 0 3px 8px rgba(233,103,39,.4); touch-action: none; }
.slidecap-bar .sc-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #9a8a68; font-weight: 700; pointer-events: none; z-index: 3; transition: color .15s; }
.au-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0;
  border-radius: 16px; padding: 15px; margin-top: 14px; background: linear-gradient(110deg, #e96727, #f5b128);
  color: #fff; font-weight: 900; font-size: 16px; box-shadow: 0 8px 20px rgba(233,103,39,.35); cursor: pointer; font-family: inherit; }
.au-submit-ic { width: 22px; height: 22px; object-fit: contain; }
.au-foot { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 13.5px; color: #8b8577; }
.au-foot-link { color: #e96727; font-weight: 900; }

/* page-scoped strengtheners: extracted main.pg-X element rules outran plain class rules */
main.pg-login .au-submit, main.pg-r .au-submit { background: linear-gradient(110deg,#e96727,#f5b128) !important;
  color:#fff !important; border-radius:16px !important; padding:15px !important; margin-top:14px !important;
  font-size:16px !important; font-weight:900 !important; width:100% !important; border:0 !important;
  box-shadow:0 8px 20px rgba(233,103,39,.35) !important; font-family:inherit !important; }
main.pg-login .au-submit span, main.pg-r .au-submit span { color:#fff !important; font-size:16px !important;
  opacity:1 !important; visibility:visible !important; display:block !important; }
main.pg-login .au-submit img, main.pg-r .au-submit img { width:22px !important; height:22px !important; }
main.pg-login .au-input, main.pg-r .au-input { background:#fff !important; border-radius:14px !important;
  padding:13px 14px !important; display:flex !important; align-items:center !important; gap:8px !important;
  box-shadow:0 3px 10px rgba(120,90,40,.08) !important; }
main.pg-login .au-input input, main.pg-r .au-input input { flex:1 !important; border:0 !important;
  background:transparent !important; font-size:15px !important; color:#3a352c !important; min-width:0 !important; }
main.pg-login .au-input input::placeholder, main.pg-r .au-input input::placeholder { color:#b3ab99 !important; opacity:1 !important; }
main.pg-login .au-eye, main.pg-r .au-eye { background:transparent !important; color:#a49c88 !important;
  border:0 !important; font-size:15px !important; }
main.pg-login .au-back, main.pg-r .au-back { background:#173d2b !important; color:#fff !important;
  width:42px !important; height:42px !important; border-radius:50% !important; font-size:22px !important; }
main.pg-login .au-back .tui-icon, main.pg-r .au-back .tui-icon { color:#fff !important; }
main.pg-login .au-brand, main.pg-r .au-brand { background:#173d2b !important; border-radius:999px !important; }
main.pg-login .au-brand-name, main.pg-r .au-brand-name { color:#fff !important; font-weight:800 !important; font-size:15px !important; }
main.pg-login .au-brand-ic, main.pg-r .au-brand-ic { width:30px !important; height:30px !important; border-radius:50% !important; background:#fff6d6 !important; }
main.pg-login .au-title, main.pg-r .au-title { color:#1d5c33 !important; font-size:23px !important; font-weight:900 !important; }
main.pg-login .au-sectxt, main.pg-r .au-sectxt { color:#1d5c33 !important; font-weight:900 !important; }
main.pg-login .au-sub, main.pg-r .au-sub { color:#8b8577 !important; }
main.pg-login .au-foot-link, main.pg-r .au-foot-link { color:#e96727 !important; font-weight:900 !important; }
main.pg-login .au-lang .lang-switch-item--on, main.pg-r .au-lang .lang-switch-item--on {
  background:linear-gradient(110deg,#e96727,#f5b128) !important; color:#fff !important; }

/* ===== coverage completion: every markup class gets real CSS ===== */
/* page_header back row (bills / service / video / download / address) */
.head-nav-list { display: flex; align-items: center; gap: 10px; position: relative; min-height: 44px; margin: 2px 4px 10px; }
.list--center { justify-content: center; }
.title--center { text-align: center; font-size: 19px; font-weight: 900; color: #234d36; width: 100%; }
.title--multiline { font-size: 20px; font-weight: 900; color: #234d36; line-height: 1.4; }
.gack { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: #fffdf7; box-shadow: 0 3px 10px rgba(30,60,35,.14); font-size: 20px; color: #234d36; flex: 0 0 auto; }
.gack--abs { position: absolute; top: 0; left: 0; z-index: 3; }
.gack .tui-icon { line-height: 1; }
/* transaction / egg-history icons */
.bill-tx-ic { width: 40px; height: 40px; border-radius: 12px; background: #f6efdc; display: flex; align-items: center;
  justify-content: center; flex: 0 0 auto; overflow: hidden; }
.bill-tx-ic .uimg { width: 24px; height: 24px; object-fit: contain; }
.bill-tx-ic--in { background: #e9f6ec; }
.bill-tx-ic--out { background: #fdf0e7; }
.egg-history-ic { width: 40px; height: 40px; border-radius: 12px; background: #f6efdc; display: flex; align-items: center;
  justify-content: center; flex: 0 0 auto; overflow: hidden; }
.egg-history-ic.in { background: #e9f6ec; }
.egg-history-ic.out { background: #fdf0e7; }
.egg-history-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.egg-history-info span { font-weight: 800; color: #3a352c; }
.egg-history-info small { color: #9a8a68; font-size: 11.5px; }
.egg-collect-form { display: flex; flex-direction: column; gap: 10px; }
/* wallet / withdraw */
.bank-acc { border-color: #f3ddaa !important; background: #fffdf7; }
.main-acc { border-color: #cfe0d3 !important; background: #f7fbf8; }
.wd-bound-line { display: block; margin: 10px 0; border-top: 1.5px dashed #e8e0cd; padding-top: 10px; }
.wd-bound-line--last { border-bottom: 1.5px dashed #e8e0cd; padding-bottom: 10px; }
.wd-form { display: flex; flex-direction: column; gap: 10px; }
.wallet-conv-btn { width: 100%; margin-top: 4px; }
/* mall / order */
.mall-card { display: flex; gap: 12px; align-items: center; }
.mall-card img { width: 86px; height: 86px; border-radius: 14px; object-fit: cover; background: #f6efdc; flex: 0 0 auto; }
.mall-info { flex: 1; min-width: 0; }
.mall-info h4 { font-size: 15px; color: #234d36; margin-bottom: 4px; }
.mall-info .price { display: inline-block; background: #fdf0e7; color: #c94a20; font-weight: 900; border-radius: 999px;
  padding: 4px 12px; font-size: 13px; }
/* address book */
.address-page-wrap { padding-bottom: 24px; }
.addr-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.fill-wrap { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.input-wrap { display: flex; flex-direction: column; gap: 6px; }
.input-wrap .input { width: 100%; border: 1.5px solid #e3ddcd; border-radius: 12px; padding: 11px 13px;
  font-family: inherit; font-size: 14px; background: #fffdf7; }
.line { height: 1.5px; background: #e8e0cd; margin: 14px 0; }
/* support chat */
.chat-container { display: flex; flex-direction: column; min-height: 70vh; background: #fffdf7; border-radius: 18px;
  overflow: hidden; box-shadow: 0 4px 16px rgba(30,60,35,.10); }
.chat-header { display: flex; align-items: center; gap: 10px; background: #173d2b; color: #fff; padding: 12px 14px; }
.chat-header .iconfont { font-size: 18px; color: #ffd76a; }
.header-title { flex: 1; text-align: center; font-weight: 800; font-size: 15px; }
.chat-content { flex: 1; display: flex; flex-direction: column; padding: 12px; gap: 8px; overflow-y: auto; max-height: 52vh; }
.chat-empty { text-align: center; margin: auto; color: #9a8a68; }
.chat-input-area { display: flex; gap: 8px; padding: 10px 12px; border-top: 1.5px solid #f0e9d8; background: #fff; }
.input-box { flex: 1; border: 1.5px solid #e3ddcd; border-radius: 12px; padding: 10px 12px; font-family: inherit;
  font-size: 14px; min-width: 0; }
.send-btn { border: 0; border-radius: 12px; padding: 10px 16px; background: linear-gradient(110deg, #c94a20, #efad30);
  color: #fff; font-weight: 800; cursor: pointer; font-family: inherit; }
/* video / download shells */
.video-page { padding-bottom: 24px; }
.video-shell { display: flex; flex-direction: column; gap: 14px; padding: 0 2px 24px; }
.dl-page { padding-bottom: 24px; }
.dl-shell { display: flex; flex-direction: column; gap: 14px; padding: 0 2px 24px; }
/* nest game HUD / overlay */
.gr-hero { position: relative; border-radius: 18px; overflow: hidden; margin: 10px 2px; box-shadow: 0 6px 20px rgba(30,60,35,.14); }
.gr-stage { position: relative; border-radius: 18px; background: #173d2b; padding: 12px; margin: 10px 2px; color: #fff; }
.gr-hud-item { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.10);
  border-radius: 12px; padding: 8px 10px; min-width: 74px; }
.gr-hud-item b { font-size: 15px; color: #ffd76a; }
.gr-combo { font-weight: 900; color: #ffd76a; text-align: center; margin: 6px 0; }
.gr-fever { background: linear-gradient(110deg, #c94a20, #efad30); color: #fff; border-radius: 999px; padding: 4px 14px;
  font-weight: 900; font-size: 12px; display: inline-block; margin: 4px auto; }
.gr-btn { flex: 1; border: 0; border-radius: 14px; padding: 13px; font-weight: 900; font-size: 15px; cursor: pointer;
  font-family: inherit; background: linear-gradient(110deg, #c94a20, #efad30); color: #fff; }
.gr-credit { display: flex; align-items: center; gap: 8px; margin: 8px 2px; font-weight: 800; color: #234d36; }
.gr-overlay { position: fixed; inset: 0; background: rgba(10,20,14,.6); display: flex; align-items: center;
  justify-content: center; z-index: 60; padding: 18px; }
.gr-ov-card { background: #fffdf7; border-radius: 20px; padding: 20px; width: min(340px, 94vw); text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.gr-ov-res { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; font-weight: 800; color: #3a352c; }
/* misc user-side */
.code-big { font-size: 26px; letter-spacing: 5px; font-weight: 900; color: #c94a20; text-align: center; background: #fdf6e4;
  border: 1.5px dashed #e9d5a6; border-radius: 14px; padding: 14px; margin: 8px 0; }
.nw-item-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nw-item-copy b { font-size: 14px; color: #3a352c; }
.product-section { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.home-page { position: relative; }
.terms-inner { font-size: 13.5px; line-height: 1.9; color: #5a5548; padding: 4px 2px; }
.task-mission-btn--claim { box-shadow: 0 6px 16px rgba(233,103,39,.35); }
.task-signin-form { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.team-member-lvl { align-self: center; background: #e9f6ec; color: #1c7a3a; font-weight: 900; font-size: 11.5px;
  border-radius: 999px; padding: 4px 10px; flex: 0 0 auto; }
.team-member-row--l2 { opacity: .92; padding-inline-start: 22px; }
.mynest-contracts { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.track-steps { display: flex; flex-direction: column; margin: 10px 0; }
.js-copy, .js-terms, .js-tier, .js-acc-copy { cursor: pointer; }
.lang-switch-txt { pointer-events: none; }
.au-foot-txt { color: #8b8577; }
.chat-messages { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; overflow-y: auto; max-height: 52vh; }
.detail-how-ic-wrap--blue { background: #e8f1fb; }
.detail-how-ic-wrap--green { background: #e9f6ec; }
.detail-how-ic-wrap--orange { background: #fdf0e7; }
.detail-how-ic-wrap--purple { background: #f1ecfa; }
.icon-icon-arrow-left2 { display: inline-flex; }


/* ===== round 4 ===== */
/* amount inputs everywhere share one polished field look */
.wd-amount-box input, .recharge-input-wrap input, .input-box input,
.wd-withdraw-layout input[type="number"], .wd-withdraw-layout input[type="text"] {
  width: 100%; border: 0px solid #e3ddcd; border-radius: 14px; padding: 13px 14px;
  font-family: inherit; font-size: 15px; font-weight: 700; color: #3a352c;
  background: #fff; outline: none; box-sizing: border-box; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wd-amount-box input:focus, .recharge-input-wrap input:focus, .input-box input:focus,
.wd-withdraw-layout input[type="number"]:focus, .wd-withdraw-layout input[type="text"]:focus {
  border-color: #e96727; box-shadow: 0 0 0 3px rgba(233,103,39,.13);
}
.wd-amount-box input::placeholder, .recharge-input-wrap input::placeholder, .input-box input::placeholder { color: #b9ad97; font-weight: 600; }
/* language switch — one pill everywhere, same as the auth pages */
.lang-switch { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: 0 2px 10px rgba(30,60,35,.12); }
.lang-switch-item { padding: 6px 14px; font-weight: 800; font-size: 13px; color: #5c4326; text-decoration: none; }
.lang-switch-item--on { background: linear-gradient(110deg, #e96727, #f5b128); color: #fff; }
/* video page — featured card, watch bar, player */
.video-shell { padding: 0 14px 20px; }
.vf-card { position: relative; border-radius: 20px; overflow: hidden; background: #171717; box-shadow: 0 10px 26px rgba(30,60,35,.16); margin-top: 14px; }
.vf-media { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(140px 140px at 82% 12%, rgba(233,171,33,.28), transparent 70%), #121212; }
.vf-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vf-pill { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; background: #fff; color: #e9a213; font-weight: 900; font-size: 13.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,.35); text-decoration: none; }
.vf-play { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 58px; height: 70px; border: 0; cursor: pointer;
  border-radius: 50% 50% 50% 50% / 58% 58% 44% 44%; background: linear-gradient(160deg, #fff8e4, #ffdf9e);
  box-shadow: 0 8px 18px rgba(0,0,0,.4), inset 0 -4px 10px rgba(216,124,17,.18); display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; color: #e96727; text-decoration: none; transition: transform .15s ease; }
.vf-play:hover { transform: scale(1.06); }
.vf-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(115deg, #fffdf4, #fdf3d9); }
.vf-bar-reel { font-size: 22px; flex: 0 0 auto; }
.vf-bar-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: 14px; color: #4a3423; }
.vf-bar-title b { color: #234d36; }
.vf-watch-btn { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 16px; border-radius: 12px;
  background: linear-gradient(110deg, #e96727, #f5a128); color: #fff; font-weight: 900; font-size: 13.5px;
  text-decoration: none; box-shadow: 0 6px 14px rgba(233,103,39,.35); }
.vf-watch-btn .vf-egg { font-size: 15px; }
.vf-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.vf-mini { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid #f0e9d8; border-radius: 16px; padding: 12px 14px; box-shadow: 0 3px 12px rgba(30,60,35,.07); }
.vf-mini-title { flex: 1; min-width: 0; font-weight: 800; font-size: 13.5px; color: #4a3423; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* professional player page */
.vp-card { margin-top: 14px; border-radius: 20px; overflow: hidden; background: #171717; box-shadow: 0 12px 30px rgba(20,40,25,.22); }
.vp-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vp-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp-open-link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ffd76a; font-weight: 800; text-decoration: none; }
.vp-bar { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: linear-gradient(115deg, #fffdf4, #fdf3d9); }
.vp-title { flex: 1; min-width: 0; font-weight: 900; font-size: 14.5px; color: #4a3423; }
.vp-meta { padding: 0 16px 14px; background: linear-gradient(115deg, #fffdf4, #fdf3d9); color: #9a8a68; font-size: 12px; font-weight: 700; }
.vp-back { position: absolute; top: 10px; left: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; }
.video-enter { animation: vfIn .45s ease both; }
@keyframes vfIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* nw-hero works on every page (news, video, ...) not only pg-news */
.nw-hero { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 20px; margin-top: 14px;
  border-radius: 20px; background: linear-gradient(115deg, rgba(255,254,246,.92), rgba(247,236,205,.75)); overflow: hidden; }
.nw-hero-glow { position: absolute; top: -30px; right: -20px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,162,19,.22), transparent 70%); }
.nw-hero-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.nw-kicker { color: #c98830; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.nw-hero-title { color: #4a3423; font-size: 22px; font-weight: 900; }
.nw-hero-sub { color: #9a8a68; font-size: 13px; line-height: 1.5; }
.nw-hero-art { width: 110px; height: 110px; object-fit: contain; flex: 0 0 auto; }


/* ===== round 5: support chat ===== */
.chat-container.sc-shell { display: flex; flex-direction: column; height: calc(100vh - 58px); max-width: 640px; margin: 0 auto; background: #f7f3e9; box-shadow: 0 0 40px rgba(30,60,35,.08); }
.sc-topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(115deg, #fffdf6, #fdf1d7); border-bottom: 1px solid #efe4c8; position: sticky; top: 0; z-index: 5; }
.sc-back { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #4a3423; text-decoration: none; box-shadow: 0 2px 8px rgba(30,60,35,.10); font-size: 18px; }
.sc-topava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(233,162,19,.25); }
.sc-topid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-topname { font-weight: 900; font-size: 14.5px; color: #4a3423; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-topstat { display: flex; align-items: center; gap: 6px; color: #3c8c50; font-size: 12px; font-weight: 800; }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: #3c8c50; box-shadow: 0 0 0 3px rgba(60,140,80,.18); animation: scPulse 1.6s infinite; }
@keyframes scPulse { 50% { opacity: .5; } }
.sc-human-btn { border: 0; cursor: pointer; padding: 8px 12px; border-radius: 999px; background: #fff; color: #b9691d; font-weight: 900; font-size: 12px; box-shadow: 0 3px 10px rgba(30,60,35,.10); font-family: inherit; }
.sc-body { flex: 1; overflow-y: auto; padding: 14px 12px 6px; background:
  radial-gradient(circle at 20% 20%, rgba(233,162,19,.05), transparent 40%),
  radial-gradient(circle at 80% 70%, rgba(60,140,80,.05), transparent 40%), #f7f3e9; }
.sc-row { display: flex; align-items: flex-end; gap: 8px; margin: 10px 0; }
.sc-row--me { justify-content: flex-end; }
.sc-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; flex: 0 0 auto; }
/* v3.1 FIX: the bubble font was 5px (unreadable) — 14px is the readable chat size,
   with the same skin as before */
.sc-bubble { max-width: 78%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.65; box-shadow: 0 2px 8px rgba(30,60,35,.08); word-break: break-word; }
.sc-bubble--agent { background: #fff; color: #4a3423; border-bottom-left-radius: 4px; }
.sc-bubble--me { background: linear-gradient(115deg, #e96727, #f0972b); color: #fff; border-bottom-right-radius: 4px; }
.sc-img { display: block; max-width: 220px; max-height: 220px; border-radius: 12px; margin-bottom: 6px; }
.sc-time { display: block; margin-top: 4px; font-size: 10.5px; opacity: .75; text-align: end; }
.sc-tick { font-style: normal; font-size: 10px; }
.sc-typing { display: flex; align-items: flex-end; gap: 8px; margin: 8px 0; }
.sc-typing-bubble { display: inline-flex; align-items: center; gap: 5px; padding: 12px 16px; }
.sc-tdot { width: 7px; height: 7px; border-radius: 50%; background: #cbb98d; animation: scT 1.2s infinite; }
.sc-tdot:nth-child(2) { animation-delay: .15s; } .sc-tdot:nth-child(3) { animation-delay: .3s; }
@keyframes scT { 30% { transform: translateY(-5px); background: #e96727; } }
.sc-chips { display: flex; gap: 8px; padding: 8px 12px 0; overflow-x: auto; scrollbar-width: none; }
.sc-chips::-webkit-scrollbar { display: none; }
.sc-chip { flex: 0 0 auto; border: 1.5px solid #ecd9ae; background: #fff; color: #7a5c2e; font-weight: 800; font-size: 12.5px; padding: 8px 13px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.sc-chip:active { background: #fdf3d9; }
.sc-strip { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.sc-strip img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; }
.sc-strip-x { border: 0; background: #fff; color: #b04a2a; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-weight: 900; }
.sc-composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #efe4c8; }
.sc-composer .input-box { flex: 1; margin: 0; }
.sc-composer .input-box input { border-radius: 999px; padding: 12px 16px; background: #f7f3e9; border-color: transparent; }
.sc-attach { border: 0; background: #f7f3e9; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; cursor: pointer; flex: 0 0 auto; }
.sc-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: linear-gradient(115deg, #e96727, #f0972b); color: #fff; font-size: 18px; cursor: pointer; flex: 0 0 auto; box-shadow: 0 6px 14px rgba(233,103,39,.35); }
.sc-note { text-align: center; font-size: 11px; color: #a4906a; padding: 6px 12px 10px; background: #fff; }
/* admin AI page */
.ai-card { background: #fff; border: 1px solid #e8e2d2; border-radius: 14px; padding: 16px; margin: 14px 0; }
.ai-card h3 { margin: 0 0 10px; font-size: 16px; color: #4a3423; }
.ai-test-out { background: #f7f3e9; border: 1.5px dashed #d9c89a; border-radius: 12px; padding: 12px; white-space: pre-wrap; font-size: 14px; color: #4a3423; margin-top: 10px; }
.kb-active0 { opacity: .55; }

/* admin ai page helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.grid-2 label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #5c4326; }
.grid-2 input, .grid-2 textarea { width: 100%; border: 1.5px solid #e3ddcd; border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; color: #3a352c; background: #fffdf7; outline: none; box-sizing: border-box; }
.grid-2 textarea { resize: vertical; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #4a3423; }
.sc-txt { display: block; }


/* ===== round 7: desktop frame + ticket states ===== */
@media (min-width: 700px) {
  body { background: #efe8d8; }
  main[class*="pg-"] { max-width: 480px !important; margin: 0 auto !important; box-shadow: 0 0 60px rgba(74,52,35,.18); min-height: 100vh; }
  .tab-bar, .app-tabbar { max-width: 480px !important; left: 50% !important; transform: translateX(-50%); }
}
.sc-closed { background: #fff3cd; color: #8a5a17; font-weight: 800; font-size: 13px; padding: 10px 14px; text-align: center; border-top: 1.5px solid #f0dfae; border-bottom: 1.5px solid #f0dfae; }
.sc-newchat { padding: 10px 14px; background: #fff; text-align: center; }
.sc-newchat button { border: 0; background: linear-gradient(115deg, #e96727, #f0972b); color: #fff; font-weight: 900; font-size: 14px; padding: 12px 26px; border-radius: 999px; cursor: pointer; font-family: inherit; box-shadow: 0 6px 16px rgba(233,103,39,.3); }
.sc-composer input:disabled { opacity: .5; }
.sc-composer button:disabled, .sc-attach:disabled { opacity: .5; cursor: default; }
/* deposit page: details card breathing room (no squeeze) */
.recharge-page .acc-box { width: 100%; box-sizing: border-box; overflow: hidden; }
.recharge-page .acc-box code { display: block; width: 100%; word-break: break-all; white-space: normal; line-height: 1.5; }
.recharge-page .acc-box .qr-box { margin: 10px auto 0; }
.recharge-page .recharge-details, .recharge-page .dep-details { width: 100%; box-sizing: border-box; }
.sc-knob { transition: inset-inline-start .05s linear; cursor: grab; }
.sc-hint { pointer-events: none; }
.slidecap-bar { cursor: grab; }
.slidecap-track .sc-piece { cursor: grab; }

/* ---------- wallet exchange — live dynamic calculator ---------- */
.conv-swap{align-self:center;background:rgba(255,255,255,.7);border:1px solid rgba(20,80,50,.22);border-radius:12px;width:46px;height:34px;font-size:17px;cursor:pointer;color:#14503a;display:flex;align-items:center;justify-content:center;margin:0 auto}
.conv-swap:active{transform:scale(.94)}
.conv-live{background:linear-gradient(135deg,rgba(31,160,94,.13),rgba(31,160,94,.04));border:1px solid rgba(31,160,94,.3);border-radius:14px;padding:12px 14px;text-align:center;font-size:14px;color:#14503a}
.conv-live b,.conv-live-val{font-size:20px;font-weight:700;color:#0c7a45}
.conv-live.on{animation:convPop .18s ease}
@keyframes convPop{from{transform:scale(.97)}to{transform:scale(1)}}
.conv-rate-line{margin-top:6px;font-size:12.5px;color:#5a7266}

/* ---------- support chat: quick-action chips + arrow send icon ---------- */
.sc-actions{display:flex;flex-wrap:wrap;gap:8px;padding:4px 12px 8px;max-width:100%;scroll-margin-bottom:12px}
.sc-action{appearance:none;border:1px solid transparent;border-radius:999px;padding:9px 14px;font-size:13.5px;font-weight:600;cursor:pointer;background:#fff;color:#14503a;box-shadow:0 3px 10px rgba(20,80,50,.08);transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.sc-action:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(20,80,50,.16)}
.sc-action:active{transform:scale(.96)}
.sc-action--green{background:linear-gradient(135deg,#1fa05e,#14884a);color:#fff;border-color:rgba(31,160,94,.35)}
.sc-action--blue{background:linear-gradient(135deg,#2f7bd6,#1f5fb0);color:#fff;border-color:rgba(47,123,214,.35)}
.sc-action--gold{background:linear-gradient(135deg,#f5b13a,#e08a1a);color:#fff;border-color:rgba(245,177,58,.35)}
.sc-action--purple{background:linear-gradient(135deg,#8a5fd6,#6f3fb0);color:#fff;border-color:rgba(138,95,214,.35)}
.sc-action--gray{background:#6a7266;color:#fff}
/* arrow send icon button */
.sc-send{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;padding:0}
.sc-send svg{display:block;transform:translate(-1px,1px)}
.sc-send:active svg{transform:translate(0,2px)}

/* currency code next to balance figures — keep a small gap */
.balance-num-dollar{margin-inline-start:6px}

/* ===== 2026-11-16 round 2: bills rows / mine farm card / nest hen rows / FAQ reuse ===== */
/* Bills page — transaction row cards were unstyled on the bills page */
main.pg-bill .bill-tx-row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid rgba(230,205,160,.55);border-radius:16px;padding:12px 14px;margin-bottom:10px;box-shadow:0 3px 12px rgba(120,80,30,.08)}
main.pg-bill .bill-tx-ic{flex-shrink:0;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center}
main.pg-bill .bill-tx-ic--in{background:#e3f5ea}
main.pg-bill .bill-tx-ic--out{background:#fdeadd}
main.pg-bill .bill-tx-ic .uimg{width:20px;height:20px;object-fit:contain}
main.pg-bill .bill-tx-row > b.pos{color:#0d9153}
main.pg-bill .bill-tx-row > b.neg{color:#d4553e}
main.pg-bill .bill-wallet-upd{color:#7a5c3e;opacity:.9}
main.pg-bill .bill-wallet-saldo-lbl{color:#7a5c3e}
/* Mine page — farm card is a standalone <a>: without display it renders inline (text stack + 18px art) */
main.pg-mine .mine-farm-card{display:block}
main.pg-mine .mine-farm-copy{width:62%}
main.pg-mine .mine-quick-copy{overflow:hidden}
/* Nest page — hen rows reuse the 50% shortcut card; force full width */
main.pg-sellEgg .egg-hen-row{width:100%;min-height:0}
main.pg-sellEgg .egg-hen-row.egg-hen-row--expired{opacity:.62}
/* FAQ (problem/problemd) pages now use the "news" slug so all nw-* styles apply;
   only the support card needs the task-invite look mirrored here */
main.pg-news .task-invite{position:relative;display:flex;min-height:calc(220 * min(100vw, 480px) / 750);margin-top:calc(26 * min(100vw, 480px) / 750);padding:calc(30 * min(100vw, 480px) / 750);box-sizing:border-box;overflow:hidden;border:calc(2 * min(100vw, 480px) / 750) solid hsla(0,0%,100%,.88);border-radius:calc(38 * min(100vw, 480px) / 750);background:linear-gradient(148deg,rgba(255,250,239,.95),rgba(249,220,155,.85));box-shadow:0 calc(18 * min(100vw, 480px) / 750) calc(35 * min(100vw, 480px) / 750) rgba(122,76,25,.12)}
main.pg-news .task-invite-copy{position:relative;z-index:2;width:61%}
main.pg-news .task-invite-title{display:block;margin-top:calc(6 * min(100vw, 480px) / 750);color:#583c21;font-size:calc(30 * min(100vw, 480px) / 750);font-weight:900;line-height:1.15}
main.pg-news .task-invite-link{display:inline-flex;align-items:center;margin-top:calc(15 * min(100vw, 480px) / 750);padding:calc(10 * min(100vw, 480px) / 750) calc(11 * min(100vw, 480px) / 750) calc(10 * min(100vw, 480px) / 750) calc(15 * min(100vw, 480px) / 750);border-radius:calc(999 * min(100vw, 480px) / 750);background:#d66a24;box-shadow:0 calc(9 * min(100vw, 480px) / 750) calc(16 * min(100vw, 480px) / 750) rgba(200,88,28,.21);color:#fffdf4}
main.pg-news .task-invite-link span:last-child{margin-left:calc(8 * min(100vw, 480px) / 750)}
main.pg-news .task-invite>img.uimg{position:absolute;right:calc(-12 * min(100vw, 480px) / 750);bottom:calc(-18 * min(100vw, 480px) / 750);width:calc(239 * min(100vw, 480px) / 750);height:calc(224 * min(100vw, 480px) / 750)}
main.pg-news .egg-empty-hens{display:flex;flex-direction:column;align-items:center;gap:10px;padding:34px 0;color:#a58a66}
main.pg-news .egg-empty-hens .uimg{width:130px;height:auto;opacity:.9}
/* bills page: the section title has legacy order:1 pushing it AFTER the rows */
main.pg-bill .bill-tx-sec-title{order:-1}
/* mine service grid: long bilingual labels (2FA / KYC) overflow their tiles */
main.pg-mine .mine-service-item span{font-size:calc(19 * min(100vw, 480px) / 750);line-height:1.3;text-align:center;word-break:break-word}
/* v1.8 — in-chat confirm/cancel pair (AI-proposed actions) */
.sc-action--red{background:linear-gradient(135deg,#e05656,#c23a3a);color:#fff;border-color:rgba(224,86,86,.35)}
.sc-action--gold{background:linear-gradient(135deg,#e96727,#f0b429);color:#fff;border-color:rgba(240,180,41,.35)}
/* v2.6 — Telegram verification quick-entry (login/register pages) */
.vf-tgquick{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:12px;padding:12px 10px;border-radius:13px;background:linear-gradient(135deg,#229ED9,#3fb6ee);color:#fff;font-size:13.5px;font-weight:800;text-decoration:none;box-shadow:0 5px 14px rgba(34,158,217,.30);text-align:center}
.vf-tgquick:active{transform:scale(.98)}
.vf-tgquick svg{width:20px;height:20px;flex:0 0 20px}
.vf-tgquick span{flex:1}

/* ==================== v2.6.1: inline Telegram verification widget ====================
   One row = [code input][open-bot button] — sits inside the login/register pages
   and the mandatory-verification gate. Variable-driven: the admin themes recolor it. */
.tgw{margin-top:12px;padding:14px 12px;border-radius:16px;background:var(--card,#fffdf8);border:1.5px solid var(--border-c,#efe3c8);box-shadow:var(--shadow,0 4px 18px rgba(77,55,33,.08))}
.tgw-head{font-weight:900;font-size:15px;color:var(--text,#4d3721)}
.tgw-sub{margin:6px 0 10px;font-size:12.5px;line-height:1.7;color:var(--muted,#8a6a4a)}
.tgw-row{display:flex;gap:8px;align-items:stretch}
.tgw-line{flex:1;display:flex;gap:6px;min-width:0}
.tgw-in{flex:1;min-width:0;border:1.5px solid var(--border-c,#ecd9a0);background:var(--input-bg,#fff);border-radius:12px;padding:10px 12px;font-size:16px;font-weight:800;letter-spacing:3px;text-align:center;direction:ltr;color:var(--text,#4d3721);outline:none}
.tgw-in:focus{border-color:#229ED9}
.tgw-go{flex:0 0 44px;border:0;border-radius:12px;background:var(--grad,linear-gradient(110deg,#e96727,#f5b128));color:#fff;font-size:19px;font-weight:900;cursor:pointer}
.tgw-go:active{transform:scale(.96)}
.tgw-bot{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:0 14px;border-radius:12px;background:linear-gradient(135deg,#229ED9,#3fb6ee);color:#fff;font-size:13px;font-weight:800;text-decoration:none;box-shadow:0 5px 14px rgba(34,158,217,.30)}
.tgw-bot:active{transform:scale(.97)}
.tgw-bot svg{width:18px;height:18px;flex:0 0 18px}
.tgw-note{margin-top:9px;font-size:11px;line-height:1.7;color:var(--muted,#a1894d)}
.tgw-state{margin-top:9px;padding:10px 12px;border-radius:12px;font-size:13px;font-weight:800}
.tgw-state--ok{background:rgba(47,158,68,.12);color:#1e7c36;border:1px solid rgba(47,158,68,.35)}
.tgw-state--err{background:rgba(235,9,9,.10);color:#b3261e;border:1px solid rgba(235,9,9,.30)}
.tgw--off,.tgw--ok{font-size:13.5px;font-weight:700;line-height:1.7;color:var(--muted,#8a6a4a)}
.tgw--ok{color:#1e7c36}
@media (max-width:390px){.tgw-row{flex-direction:column}.tgw-bot{justify-content:center;padding:11px 14px}}


main > .card,
main > .row-item,
main > .empty { margin-inline: 12px; }
main > .row-item { margin-inline: 14px; }
main > .page + .card,
main > .page + .row-item,
main > .page-head + .card,
main > .page-head + .row-item { margin-top: 6px; }
main > .empty { margin-top: 6px; }
/* vouchers: the vc5-app wrapper also had no side padding */
.vc5-app { padding-inline: 12px; box-sizing: border-box; }
/* safety: keep the direct-card margins from colliding with wide fixed layouts */
@media (min-width: 521px) {
  main > .card, main > .row-item, main > .empty { max-width: 496px; }
}

/* ================================================================
   v3.1 — support chat polish (user side): fills the screen properly,
   readable bubbles, styled bold/code in agent verdicts, nicer composer,
   smooth scrollbars, safe-area padding for phones with notches.
   Appended last so it overrides every earlier rule at equal weight. */
.sc-shell { min-height: calc(100vh - 74px); }
.sc-shell .sc-body { padding: 14px 12px 10px; scroll-behavior: smooth; }
.sc-bubble { max-width: 82%; padding: 11px 14px; border-radius: 18px; line-height: 1.7;
  box-shadow: 0 2px 10px rgba(30,60,35,.10); animation: scPop .18s ease; }
@keyframes scPop { from { transform: translateY(4px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.sc-bubble--agent { border: 1px solid #eee4cd; }
.sc-bubble--me { border-bottom-right-radius: 6px; box-shadow: 0 3px 10px rgba(233,103,39,.30); }
.sc-txt b { font-weight: 900; }
.sc-bubble--agent .sc-txt b { color: #0c6b3d; }
.sc-bubble--me .sc-txt b { color: #fff; }
.sc-txt code { display: inline-block; background: rgba(12,122,62,.10); border: 1px solid rgba(12,122,62,.22);
  border-radius: 7px; padding: 1px 7px; font-size: 12.5px; direction: ltr; unicode-bidi: embed;
  font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.sc-bubble--me .sc-txt code { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: #fff; }
.sc-img { max-width: min(240px, 62vw); max-height: 240px; border-radius: 14px; box-shadow: 0 3px 10px rgba(30,60,35,.14); }
.sc-ava { box-shadow: 0 2px 6px rgba(30,60,35,.15); }
.sc-topbar { backdrop-filter: blur(6px); }
.sc-topname { letter-spacing: .1px; }
.sc-chip { transition: transform .12s ease, background .12s ease; }
.sc-chip:hover { transform: translateY(-1px); background: #fdf3d9; }
.sc-composer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.sc-composer .input-box input:focus { border-color: #f0b355; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(245,177,58,.18); }
.sc-send { transition: transform .12s ease, box-shadow .12s ease; }
.sc-send:hover { transform: scale(1.04); }
.sc-attach { transition: transform .12s ease, background .12s ease; }
.sc-attach:hover { background: #efe6d2; transform: scale(1.04); }
.sc-note { border-top: 1px dashed #f0e9d8; }
.sc-body::-webkit-scrollbar { width: 5px; }
.sc-body::-webkit-scrollbar-thumb { background: rgba(120,90,40,.25); border-radius: 99px; }
.sc-body::-webkit-scrollbar-track { background: transparent; }
.sc-typing-bubble { box-shadow: 0 2px 8px rgba(30,60,35,.10); }
/* desktop: the chat reads like a proper messenger */
@media (min-width: 700px) {
  .sc-shell { max-width: 560px; margin: 14px auto; border-radius: 20px; min-height: calc(100vh - 120px); }
}
