*{box-sizing:border-box}body{margin:0;font-family:Tahoma,Arial,sans-serif;background:#f5f7f6;color:#17221d}nav{min-height:70px;background:#fff;border-bottom:1px solid #e4e9e6;display:flex;align-items:center;justify-content:space-between;padding:0 7%;gap:18px}nav b{font-size:25px;color:#138a5b}nav a{margin-right:18px;color:#33443c;text-decoration:none}.hero{min-height:calc(100vh - 70px);display:grid;place-items:center;padding:40px}.hero>div{max-width:760px;text-align:center}.hero h1{font-size:80px;margin:10px 0;color:#138a5b}.tag{letter-spacing:2px;color:#7a8b82}.card{background:#fff;border:1px solid #e1e7e3;border-radius:18px;box-shadow:0 8px 30px #1b2b2210;padding:28px;max-width:560px;margin:60px auto}.grid{max-width:1100px;margin:35px auto;padding:0 18px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid .card{margin:0;max-width:none}.wallet{font-family:monospace;background:#f2f5f3;padding:12px;border-radius:10px;word-break:break-all}.stat{font-size:34px;font-weight:bold;margin:20px 0;color:#138a5b}.mini{line-height:2;margin:18px 0;color:#506159}form{display:grid;gap:14px}label{display:grid;gap:7px;font-size:14px}input{padding:12px;border:1px solid #d6ded9;border-radius:10px;font:inherit}button,.button{border:0;background:#138a5b;color:#fff;padding:13px 18px;border-radius:10px;font:inherit;cursor:pointer;text-decoration:none;display:inline-block;text-align:center}.full{width:100%;margin-top:10px}.error{background:#fff0f0;color:#b42318;padding:12px;border-radius:10px;margin-bottom:15px}.success{background:#ecfdf3;color:#087443;padding:12px;border-radius:10px;margin-bottom:15px}.info{background:#f2f7f4;padding:14px;border-radius:10px;margin-bottom:18px;line-height:2}.muted{color:#6b7b73;font-size:13px}.tx{padding:12px 0;border-bottom:1px solid #edf0ee;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.tx small{width:100%;color:#7a8b82}@media(max-width:700px){.grid{grid-template-columns:1fr}.hero h1{font-size:60px}nav{padding:0 4%;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}nav a{margin-right:10px}}
.admin-grid{max-width:1100px;margin:35px auto;padding:0 18px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.admin-grid .card{margin:0;max-width:none}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stats div{background:#f2f5f3;border-radius:12px;padding:14px;display:grid;gap:7px}.stats b{font-size:22px;color:#138a5b}.user-row{padding:12px 0;border-bottom:1px solid #edf0ee;display:grid;grid-template-columns:1fr auto;gap:5px}.user-row small{grid-column:1/-1;font-family:monospace;word-break:break-all;color:#6b7b73}@media(max-width:700px){.admin-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr}}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-grid>div{background:#f2f5f3;border-radius:12px;padding:13px;display:grid;gap:6px}.detail-grid small{color:#6b7b73}.detail-grid b{word-break:break-word}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stats div{background:#f2f5f3;border-radius:12px;padding:14px;display:grid;gap:7px}.stats b{font-size:20px;color:#138a5b}@media(max-width:700px){.detail-grid{grid-template-columns:1fr}}


/* KOAL global footer + legal pages */
.site-footer{margin-top:40px;background:#fff;border-top:1px solid #e1e7e3;color:#506159}.site-footer-inner{max-width:1180px;margin:0 auto;padding:24px 18px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}.site-footer strong{display:block;color:#138a5b;font-size:18px}.site-footer span{display:block;font-size:12px;margin-top:5px}.site-footer-links{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-start}.site-footer-links a{color:#138a5b;text-decoration:none;font-size:13px;font-weight:700}.site-footer-copy{grid-column:1/-1;border-top:1px solid #edf0ee;padding-top:14px;font-size:11px;color:#7a8881}.legal-page{max-width:900px;margin:0 auto;padding:28px 18px 50px}.legal-card{background:#fff;border:1px solid #e1e7e3;border-radius:18px;padding:28px;box-shadow:0 8px 30px #1b2b2210;color:#26332d;line-height:2}.legal-head{border-bottom:1px solid #e1e7e3;padding-bottom:20px;margin-bottom:24px}.legal-head span{display:inline-block;color:#138a5b;font-weight:800;font-size:13px;margin-bottom:5px}.legal-head h1{margin:0 0 7px;color:#138a5b;font-size:27px}.legal-head p{margin:0;color:#6b7b73;font-size:13px}.legal-card h2{font-size:16px;color:#087443;margin:24px 0 7px}.legal-card p{font-size:13px;margin:0 0 8px}.legal-note{margin-top:26px;padding:14px 16px;background:#f2f8f5;border-right:4px solid #138a5b;border-radius:10px;color:#5c6c64;font-size:12px;line-height:2}.legal-card strong{color:#8a4b00}@media(max-width:700px){.site-footer-inner{grid-template-columns:1fr}.site-footer-copy{grid-column:auto}.legal-card{padding:20px}.legal-head h1{font-size:23px}}


/* V31 global layout and UI refinements */
html,body{min-height:100%;margin:0}
body{min-height:100vh;display:flex;flex-direction:column}
body>main{width:100%;flex:1 0 auto}
body>main.card{flex:0 0 auto;margin-top:60px;margin-bottom:auto}
.hero{flex:1;min-height:calc(100vh - 70px)}
.site-footer{margin-top:0;background:#fff;border-top:1px solid #e1e7e3;color:#506159;flex:0 0 auto}
.site-footer-inner{max-width:1180px;width:100%;margin:0 auto;padding:24px 18px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}
.site-footer strong{display:block;color:#138a5b;font-size:18px}.site-footer span{display:block;font-size:12px;margin-top:5px}
.site-footer-links{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-start}.site-footer-links a{color:#138a5b;text-decoration:none;font-size:13px;font-weight:700}
.site-footer-copy{grid-column:1/-1;border-top:1px solid #edf0ee;padding-top:14px;font-size:11px;color:#7a8881}
.auth-actions{margin-top:10px}.auth-actions .button{margin-top:0}.track-dashboard-button{margin-top:0}.track-home{display:flex;justify-content:center;margin-top:18px}.track-dashboard-button{min-width:220px}
.announcement-stack{max-width:1100px;margin:14px auto 0;padding:0 18px;display:grid;gap:10px}.announcement-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid #d9e9e1;border-right:4px solid #138a5b;border-radius:12px;padding:12px 14px;box-shadow:0 5px 18px #1b2b220b}.announcement-content{min-width:0;line-height:1.8}.announcement-content strong{display:block;color:#087443;margin-bottom:2px}.announcement-content small{display:block;color:#7a8b82;font-size:11px;margin-top:2px}.announcement-close-form{display:block;margin:0;flex:0 0 auto}.announcement-close{width:36px;height:36px;padding:0;border-radius:9px;background:#fff;color:#b42318;border:1px solid #eadada;font-size:24px;line-height:1}.announcement-close:hover{background:#fff4f4}
.dashboard-grid{align-items:stretch}.dashboard-card{height:680px;min-height:680px;display:flex;flex-direction:column}.history-card{overflow:hidden}.history-head{flex:0 0 auto}.history-head .success{margin-bottom:8px}.dashboard-history-list{flex:1;overflow:hidden}.dashboard-history-list .tx{min-height:76px}.pagination{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #edf0ee}.page-btn{min-width:38px;padding:8px 11px;border:1px solid #d7e1dc;border-radius:8px;background:#fff;color:#33443c;text-decoration:none;text-align:center;font-size:13px}.page-btn.active{background:#138a5b;color:#fff;border-color:#138a5b}.page-btn.disabled{pointer-events:none;opacity:.45}
/* Support: large conversation on the left, compact ticket list on the right. */
.support-wrap{max-width:1400px;width:100%;margin:0 auto;padding:28px 18px 24px;display:flex;flex-direction:column;min-height:0}
.support-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:16px;margin-bottom:16px;flex:0 0 auto}.support-toolbar h1{margin:0 0 5px}.support-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,30%);gap:16px;align-items:stretch;direction:ltr;flex:1;min-height:560px}.conversation-panel{grid-column:1}.ticket-sidebar{grid-column:2}
.ticket-sidebar,.conversation-panel{margin:0;max-width:none;min-height:0;height:auto}.ticket-sidebar{display:flex;flex-direction:column;overflow:hidden;direction:rtl}.conversation-panel{display:flex;flex-direction:column;direction:rtl}
.support-panel-title,.conversation-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0ee;padding-bottom:14px}.support-panel-title h2,.conversation-head h2{margin:0}.support-panel-title>div{display:grid;gap:4px}.new-ticket-button{white-space:nowrap;padding:11px 13px;font-size:13px}
.ticket-list{flex:1;overflow:auto;margin-top:10px}.ticket-item{display:block;padding:14px 12px;border-bottom:1px solid #edf0ee;text-decoration:none;color:inherit;border-right:3px solid transparent;border-radius:10px}.ticket-item:hover{background:#f7faf8}.ticket-item.active{background:#eef8f3;border-right-color:#138a5b}.ticket-item b{display:block;line-height:1.7}.ticket-status{font-size:11px;color:#66756e;margin-top:5px}
.messages{flex:1;min-height:0;overflow:auto;padding:20px;background:#f7faf8;border:1px solid #edf0ee;border-radius:12px;margin-top:14px;display:flex;flex-direction:column;gap:12px}.msg{max-width:78%;padding:12px 14px;border-radius:12px;line-height:1.9}.msg.user{align-self:flex-start;background:#e4f4ec}.msg.admin{align-self:flex-end;background:#fff;border:1px solid #dfe8e3}.msg small{display:block;color:#819088;font-size:10px;margin-top:5px}.reply-form,.ticket-form{margin-top:14px;flex:0 0 auto}.reply-form textarea,.ticket-form textarea{resize:vertical;min-height:120px}.ticket-form{display:flex;flex-direction:column;flex:1}.ticket-form label:nth-of-type(2){flex:1}.ticket-form label:nth-of-type(2) textarea{height:100%;min-height:300px}.conversation-actions{display:flex;gap:8px;align-items:center;margin-top:4px}.button-secondary{background:#eef3f0;color:#33443c;border:1px solid #d8e2dc}.button-danger{background:#c43c45;color:#fff;border:0;padding:11px 15px;border-radius:10px;font:inherit;cursor:pointer}.conversation-empty{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center}
.legal-page{max-width:900px;margin:0 auto;padding:28px 18px 50px}.legal-card{background:#fff;border:1px solid #e1e7e3;border-radius:18px;padding:28px;box-shadow:0 8px 30px #1b2b2210;color:#26332d;line-height:2}.legal-head{border-bottom:1px solid #e1e7e3;padding-bottom:20px;margin-bottom:24px}.legal-head span{display:inline-block;color:#138a5b;font-weight:800;font-size:13px;margin-bottom:5px}.legal-head h1{margin:0 0 7px;color:#138a5b;font-size:27px}.legal-head p{margin:0;color:#6b7b73;font-size:13px}.legal-card h2{font-size:16px;color:#087443;margin:24px 0 7px}.legal-card p{font-size:13px;margin:0 0 8px}.legal-note{margin-top:26px;padding:14px 16px;background:#f2f8f5;border-right:4px solid #138a5b;border-radius:10px;color:#5c6c64;font-size:12px;line-height:2}.legal-card strong{color:#8a4b00}
@media(max-width:800px){.dashboard-card{height:auto;min-height:0}.history-card{max-height:none}.dashboard-history-list{overflow:visible}.support-wrap{padding:20px 12px}.support-toolbar{align-items:stretch;flex-direction:column}.support-grid{grid-template-columns:1fr;min-height:0}.ticket-sidebar,.conversation-panel{height:auto;min-height:0;grid-column:auto}.ticket-sidebar{max-height:360px}.conversation-panel{min-height:600px}.ticket-list{max-height:280px}.messages{max-height:460px}.announcement-stack{margin-top:10px;padding:0 12px}.announcement-banner{align-items:flex-start}.conversation-actions{flex-direction:column;align-items:stretch}.conversation-actions .button,.conversation-actions button{width:100%}.new-ticket-button{width:100%}.site-footer-inner{grid-template-columns:1fr}.site-footer-copy{grid-column:auto}.legal-card{padding:20px}.legal-head h1{font-size:23px}}


/* V32 — support UI rebuilt from the approved KOAL support mockup */
html,body{min-height:100%;}
body.support-page{min-height:100vh;display:flex;flex-direction:column;background:#f6faf8;}
body.support-page>main.support-wrap{flex:1 1 auto;width:100%;max-width:none;margin:0;padding:22px 0 24px;display:flex;flex-direction:column;}
.support-alert{width:min(1280px,calc(100% - 36px));margin:0 auto 12px;}
.support-grid{width:min(1280px,calc(100% - 36px));margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px;align-items:stretch;direction:ltr;flex:1 1 auto;min-height:620px;}
.support-grid>.card{margin:0;max-width:none;width:100%;border-radius:14px;box-shadow:0 8px 28px rgba(30,55,43,.06);padding:26px;background:#fff;direction:rtl;}
.conversation-panel{grid-column:1;display:flex;flex-direction:column;min-height:620px;overflow:hidden;}
.ticket-sidebar{grid-column:2;display:flex;flex-direction:column;min-height:620px;overflow:hidden;}
.support-panel-title,.conversation-head{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e9efec;padding:0 0 17px;margin:0;flex:0 0 auto;}
.support-panel-title h2,.conversation-head h2{margin:0;font-size:20px;font-weight:800;color:#17221d;}
.new-ticket-button{padding:11px 16px;border-radius:9px;font-size:13px;white-space:nowrap;box-shadow:none;}
.new-ticket-button b{font-size:20px;vertical-align:-2px;margin-right:4px;}
.ticket-search{height:43px;border:1px solid #dce5e0;border-radius:10px;margin:16px 0 10px;display:flex;align-items:center;gap:7px;padding:0 11px;background:#fff;flex:0 0 auto;}
.ticket-search span{font-size:24px;line-height:1;color:#a4b0aa;transform:rotate(-20deg);}
.ticket-search input{border:0;padding:8px 2px;outline:0;width:100%;background:transparent;font-size:12px;box-shadow:none;}
.ticket-list{flex:1;overflow:auto;margin:0;padding:0 1px 0 0;}
.ticket-item{display:block;padding:13px 12px;border:1px solid #edf1ef;border-radius:11px;margin-bottom:8px;text-decoration:none;color:inherit;background:#fff;transition:.15s ease;}
.ticket-item:hover{background:#f9fcfa;border-color:#dfeae5;}
.ticket-item.active{background:#effaf5;border-color:#d9eee4;box-shadow:none;border-right:0;}
.ticket-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.ticket-item-top b{font-size:14px;line-height:1.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ticket-arrow{font-size:25px;line-height:1;color:#26362f;flex:0 0 auto;}
.ticket-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;}
.ticket-item-bottom small{font-size:10px;color:#7b8983;direction:ltr;}
.ticket-status,.ticket-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:10px;font-weight:800;white-space:nowrap;}
.status-open{background:#dcf8e9;color:#118555;}.status-answered{background:#e8f1ff;color:#1768c7;}.status-closed{background:#e9edf0;color:#5d6870;}
.conversation-head{min-height:74px;}
.conversation-title{display:flex;align-items:center;gap:16px;min-width:0;flex-direction:row-reverse;justify-content:flex-start;}
.conversation-menu{font-size:25px;line-height:1;color:#26362f;letter-spacing:2px;align-self:center;}
.title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.title-row h2{font-size:20px;}
.conversation-head .muted{margin:3px 0 0;direction:ltr;text-align:right;}
.close-ticket-form{display:block;margin:0;}
.close-ticket-form button{font-size:12px;padding:8px 12px;}
.messages{flex:1 1 auto;min-height:0;overflow:auto;padding:22px 0 16px;background:#fff;border:0;border-radius:0;margin:0;display:flex;flex-direction:column;gap:24px;}
.message-row{display:flex;align-items:flex-start;gap:10px;max-width:78%;}
.message-row.user{align-self:flex-end;flex-direction:row;}
.message-row.admin{align-self:flex-start;flex-direction:row;}
.msg-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;display:grid;place-items:center;font-size:22px;color:#fff;background:#12a66c;box-shadow:0 4px 12px rgba(19,138,91,.14);}
.message-row.admin .msg-avatar{background:#f1f5f3;color:#6c7a74;font-size:19px;}
.msg{max-width:calc(100% - 52px);padding:12px 15px;border-radius:11px;line-height:1.9;font-size:13px;}
.msg.user{background:#eaf8f2;border:1px solid #e1f2eb;}
.msg.admin{background:#f4f6f7;border:1px solid #eef1f1;}
.msg-meta{display:flex;align-items:center;gap:8px;margin-bottom:5px;}
.msg-meta b{font-size:12px;color:#17221d;}.msg-meta small{font-size:9px;color:#8b9892;direction:ltr;}
.reply-form{border-top:1px solid #e9efec;margin:0;padding-top:16px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;flex:0 0 auto;}
.reply-form textarea{width:100%;min-height:84px;max-height:150px;resize:vertical;border:1px solid #dbe5e0;border-radius:9px;padding:12px 13px;font:inherit;font-size:12px;outline:none;background:#fff;}
.reply-form textarea:focus,.ticket-search:focus-within{border-color:#9fd4bc;box-shadow:0 0 0 3px rgba(19,138,91,.07);}
.reply-form button{min-width:146px;height:48px;border-radius:9px;font-size:13px;}
.ticket-form{flex:1;display:flex;flex-direction:column;margin-top:18px;gap:14px;}
.ticket-form label:nth-of-type(2){flex:1;display:flex;flex-direction:column;}
.ticket-form label:nth-of-type(2) textarea{flex:1;height:auto;min-height:300px;}
.conversation-actions{display:flex;gap:8px;align-items:center;}
.conversation-empty{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;}
.empty-state{text-align:center;padding:28px 10px;}
.site-footer{margin-top:0!important;flex:0 0 auto;}
@media(max-width:900px){
 body.support-page>main.support-wrap{padding:16px 0 18px;}
 .support-grid{width:min(100% - 24px,680px);grid-template-columns:1fr;min-height:0;gap:12px;}
 .conversation-panel,.ticket-sidebar{grid-column:auto;min-height:0;}
 .ticket-sidebar{order:2;max-height:390px;}
 .conversation-panel{order:1;min-height:600px;}
 .ticket-list{max-height:280px;}
 .message-row{max-width:90%;}
 .reply-form{grid-template-columns:1fr;}
 .reply-form button{width:100%;}
}
@media(max-width:560px){
 .support-grid{width:calc(100% - 20px);}
 .support-grid>.card{padding:18px;}
 .new-ticket-button{padding:10px 11px;font-size:11px;}
 .support-panel-title h2,.conversation-head h2,.title-row h2{font-size:17px;}
 .message-row{max-width:100%;}
 .msg{font-size:12px;}
 .ticket-item-top b{font-size:12px;}
}

/* V33 — universal sticky footer layout
   Footer stays at the bottom of the viewport when content is short,
   and moves below the content naturally when a page is tall. */
html{height:100%;}
html,body{min-height:100%;}
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;}
body>nav{flex:0 0 auto;}
body>main{width:100%;flex:1 0 auto;}
body>.announcement-stack{flex:0 0 auto;}
.site-footer{flex:0 0 auto;margin-top:0;}
/* The home hero must fill the remaining main area, not create an extra viewport. */
body>main.hero{min-height:0;flex:1 0 auto;}
/* Short standalone card pages push the footer down without using fixed positioning. */
body>main.card{flex:0 0 auto;margin-top:60px;margin-bottom:auto;}

/* V34 — dashboard wallet refinements */
.dashboard-card{height:auto;min-height:680px;}
.wallet-card{overflow:visible;}
.wallet-row{display:flex;align-items:stretch;gap:8px;margin-bottom:14px;direction:ltr;}
.wallet-row .wallet{flex:1;min-width:0;}
.copy-wallet{width:46px;min-width:46px;height:auto;padding:0;border:1px solid #d8e5df;border-radius:10px;background:#eef8f3;color:#138a5b;display:grid;place-items:center;cursor:pointer;transition:.15s ease;}
.copy-wallet:hover{background:#e2f4eb;border-color:#b9dfcd;}
.copy-wallet svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.copy-wallet.copied{background:#138a5b;color:#fff;border-color:#138a5b;}
.balance-box{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px;background:#eaf8f2;border:1px solid #d5eee3;border-radius:12px;padding:12px 14px;margin:10px 0;}
.balance-box span{color:#52645b;font-size:13px;font-weight:700;}
.balance-box strong{grid-row:2;font-size:30px;line-height:1.1;color:#138a5b;direction:ltr;text-align:right;}
.balance-box em{grid-row:2;font-style:normal;color:#138a5b;font-size:14px;font-weight:800;align-self:end;padding-bottom:3px;}
.wallet-actions{margin-top:auto;}
.wallet-actions .full{margin-top:8px;}
@media(max-width:700px){.dashboard-card{min-height:0}.balance-box strong{font-size:27px}.copy-wallet{width:44px;min-width:44px}}


/* V35 — dashboard wallet layout and concise transaction history */
.dashboard-card.wallet-card{height:auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.wallet-card .wallet-row{flex:0 0 auto;}
.wallet-card .wallet-row .wallet{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.balance-label{margin:8px 2px 5px;color:#52645b;font-size:13px;font-weight:700;}
.wallet-card .balance-box{display:block;margin:0 0 10px;padding:11px 14px;background:#eaf8f2;border:1px solid #d5eee3;border-radius:12px;}
.wallet-card .balance-box strong{display:block;font-size:26px;line-height:1.25;color:#138a5b;direction:rtl;text-align:right;}
.wallet-status{display:grid;gap:4px;margin:5px 0 10px;}
.wallet-status small{line-height:1.7;}
.wallet-card .wallet-actions{margin-top:4px;display:grid;gap:0;}
.wallet-card .wallet-actions .full{margin-top:8px;}
.wallet-card .wallet-actions .full:last-child{margin-bottom:2px;}
@media(max-width:700px){.wallet-card .balance-box strong{font-size:24px}.wallet-card .wallet-row .wallet{font-size:12px;}.wallet-card .wallet-actions .full{margin-top:8px;}}


/* V39 — dashboard wallet box alignment fix */
.site-nav{min-height:70px;background:#fff;border-bottom:1px solid #e4e9e6;display:flex;align-items:center;justify-content:space-between;padding:10px 5.5%;gap:18px;direction:rtl;flex-wrap:wrap;}
.site-brand{font-size:25px;color:#138a5b;flex:0 0 auto;}
.site-nav-links{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;direction:rtl;min-width:0;}
.site-nav-links .nav-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border-radius:9px;background:#eaf8f2;border:1px solid #d5eee3;color:#087443;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap;transition:.15s ease;}
.site-nav-links .nav-btn:hover{background:#ddf3e9;border-color:#bfe3d2;color:#066a3d;}
.site-nav-links .nav-logout{background:#fff0f0;border-color:#f0d0d0;color:#b42318;}
.site-nav-links .nav-logout:hover{background:#ffe4e4;border-color:#e7bcbc;color:#9e1b12;}

/* Wallet: every monetary/status value gets its own complete light-green box. */
.wallet-card{direction:rtl;}
.wallet-card .wallet-row{width:100%;display:flex;align-items:stretch;gap:8px;direction:ltr;margin-bottom:14px;}
.wallet-card .wallet-row .wallet{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wallet-card .copy-wallet{flex:0 0 46px;width:46px;min-width:46px;height:46px;padding:0;border:1px solid #d8e5df;border-radius:10px;background:#eef8f3;color:#138a5b;display:grid;place-items:center;cursor:pointer;transition:.15s ease;}
.wallet-card .copy-wallet:hover{background:#e2f4eb;border-color:#b9dfcd;}
.wallet-card .copy-wallet svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.wallet-card .copy-wallet.copied{background:#138a5b;color:#fff;border-color:#138a5b;}
.wallet-card .balance-label{margin:8px 2px 5px;color:#52645b;font-size:13px;font-weight:700;}
.wallet-card .balance-box{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:52px;margin:0 0 10px;padding:11px 14px;background:#eaf8f2;border:1px solid #d5eee3;border-radius:12px;box-sizing:border-box;}
.wallet-card .balance-box strong{display:block;font-size:24px;line-height:1.25;color:#138a5b;direction:rtl;text-align:right;white-space:nowrap;}
.wallet-card .wallet-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin:5px 0 10px;}
.wallet-card .wallet-status-item{box-sizing:border-box;width:100%;min-width:0;min-height:70px;background:#eaf8f2;border:1px solid #d5eee3;border-radius:12px;padding:10px 11px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;overflow:hidden;}
.wallet-card .wallet-status-item span{font-size:12px;line-height:1.4;color:#52645b;font-weight:700;white-space:nowrap;}
.wallet-card .wallet-status-item strong{font-size:16px;line-height:1.35;color:#138a5b;direction:rtl;text-align:right;white-space:nowrap;max-width:100%;}
.wallet-card .wallet-actions{display:none;}

@media(max-width:1100px){
 .site-nav{padding-left:18px;padding-right:18px;}
 .site-nav-links{flex:1;justify-content:flex-start;}
 .site-brand{font-size:22px;}
 .site-nav-links .nav-btn{font-size:11px;padding:7px 10px;}
}
@media(max-width:700px){
 .site-nav{align-items:flex-start;gap:10px;padding:10px 12px;}
 .site-brand{font-size:21px;margin-top:7px;}
 .site-nav-links{justify-content:flex-start;gap:6px;}
 .site-nav-links .nav-btn{min-height:34px;padding:7px 9px;font-size:10px;}
 .wallet-card .wallet-row .wallet{font-size:12px;}
 .wallet-card .copy-wallet{flex-basis:44px;width:44px;min-width:44px;height:44px;}
 .wallet-card .balance-box strong{font-size:23px;}
 .wallet-card .wallet-status{grid-template-columns:1fr;gap:8px;}
 .wallet-card .wallet-status-item{min-height:60px;padding:9px 11px;}
 .wallet-card .wallet-status-item strong{font-size:15px;}
}


/* V40 — deterministic dashboard wallet layout + cache-busted stylesheet */
.wallet-card{direction:rtl;overflow:hidden;}
.wallet-card h2{margin-top:0;}
.wallet-card .wallet-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;width:100%!important;margin:0 0 14px!important;direction:ltr!important;}
.wallet-card .wallet-row .wallet{flex:1 1 auto!important;width:auto!important;min-width:0!important;height:46px!important;display:flex!important;align-items:center!important;padding:12px!important;background:#f2f5f3!important;border-radius:10px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;word-break:normal!important;font-family:monospace!important;}
.wallet-card .copy-wallet{position:static!important;flex:0 0 46px!important;width:46px!important;min-width:46px!important;height:46px!important;margin:0!important;padding:0!important;border:1px solid #d8e5df!important;border-radius:10px!important;background:#eef8f3!important;color:#138a5b!important;display:grid!important;place-items:center!important;}
.wallet-card .copy-wallet svg{width:19px!important;height:19px!important;display:block!important;}
.wallet-card .wallet-value-box{width:100%!important;min-height:68px!important;margin:0 0 10px!important;padding:10px 14px!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:3px!important;background:#eaf8f2!important;border:1px solid #d5eee3!important;border-radius:12px!important;}
.wallet-card .wallet-value-box span{display:block!important;color:#52645b!important;font-size:12px!important;font-weight:700!important;line-height:1.4!important;white-space:nowrap!important;}
.wallet-card .wallet-value-box strong{display:block!important;color:#138a5b!important;font-size:24px!important;font-weight:800!important;line-height:1.25!important;direction:rtl!important;text-align:right!important;white-space:nowrap!important;}
.wallet-card .wallet-status{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:0!important;}
.wallet-card .wallet-status-item{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:70px!important;margin:0!important;padding:10px 11px!important;background:#eaf8f2!important;border:1px solid #d5eee3!important;border-radius:12px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:4px!important;overflow:hidden!important;}
.wallet-card .wallet-status-item span{display:block!important;color:#52645b!important;font-size:12px!important;font-weight:700!important;line-height:1.4!important;white-space:nowrap!important;}
.wallet-card .wallet-status-item strong{display:block!important;color:#138a5b!important;font-size:16px!important;font-weight:800!important;line-height:1.35!important;direction:rtl!important;text-align:right!important;white-space:nowrap!important;}
@media(max-width:700px){
 .wallet-card .wallet-row .wallet{font-size:12px!important;}
 .wallet-card .copy-wallet{flex-basis:44px!important;width:44px!important;min-width:44px!important;height:44px!important;}
 .wallet-card .wallet-value-box strong{font-size:22px!important;}
 .wallet-card .wallet-status{grid-template-columns:1fr!important;}
 .wallet-card .wallet-status-item{min-height:60px!important;}
}

/* V41 — history pagination/details + unified public track header */
.history-page{max-width:1000px;width:calc(100% - 36px);margin:35px auto 40px;padding:26px;}
.history-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;}
.history-page-head h1{margin:0 0 5px;font-size:25px;}
.history-page-head p{margin:0;}
.history-count{display:inline-flex;align-items:center;justify-content:center;background:#eef8f3;color:#138a5b;border:1px solid #d5eee3;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800;white-space:nowrap;}
.history-page .filters{margin-bottom:18px;}
.history-page .filters .button{background:#f1f4f2;color:#425149;border:1px solid #dce5e0;padding:9px 13px;font-size:12px;}
.history-page .filters .button.filter-active{background:#138a5b;color:#fff;border-color:#138a5b;}
.history-empty{text-align:center;padding:35px 10px;}
.history-tx{border:1px solid #e3eae6;border-radius:14px;background:#fff;margin:10px 0;padding:14px;box-shadow:0 3px 12px rgba(27,43,34,.035);}
.history-tx-main{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;}
.history-tx-title{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;}
.tx-code-wrap{display:inline-flex;align-items:center;gap:6px;direction:ltr;}
.tx-copy-btn{border:1px solid #b9e2cf;background:#dff6ea;color:#138a5b;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:800;cursor:pointer;line-height:1;}
.tx-copy-btn:hover{background:#ccefe0;}
.history-tx-title>b{font-family:monospace;font-size:13px;word-break:break-all;}
.tx-type-pill,.tx-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800;white-space:nowrap;background:#f2f5f3;color:#596861;border:1px solid #e1e7e3;}
.tx-status-pill{background:#eef8f3;color:#138a5b;border-color:#d5eee3;}
.history-tx-date{font-size:11px;color:#7a8881;direction:ltr;white-space:nowrap;}
.tx-details{margin-top:11px;}
.tx-details>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;min-width:70px;padding:7px 12px;border-radius:8px;background:#e9eceb;border:1px solid #d8dfdc;color:#4d5a54;font-size:11px;font-weight:800;cursor:pointer;user-select:none;}
.tx-details>summary::-webkit-details-marker{display:none;}
.tx-details>summary::after{content:'+';margin-right:6px;font-size:14px;line-height:1;color:#69766f;}
.tx-details[open]>summary::after{content:'−';}
.tx-details[open]>summary{background:#e1e5e3;}
.tx-details-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:10px;padding-top:11px;border-top:1px solid #edf0ee;}
.tx-details-grid>div{min-width:0;background:#f5f7f6;border:1px solid #e2e8e5;border-radius:10px;padding:10px 11px;display:flex;flex-direction:column;gap:5px;}
.tx-details-grid small{font-size:10px;color:#7a8881;line-height:1.4;}
.tx-details-grid strong{font-size:12px;color:#26342d;line-height:1.5;word-break:break-word;}
.tx-detail-wide{grid-column:span 2;}
.tx-full-detail{display:inline-block;margin-top:10px;color:#138a5b;text-decoration:none;font-size:11px;font-weight:800;}
.tx-full-detail:hover{text-decoration:underline;}
.history-pagination{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:20px;padding-top:16px;border-top:1px solid #edf0ee;}
.history-pagination .page-btn{min-width:38px;padding:8px 11px;border:1px solid #d7e1dc;border-radius:8px;background:#fff;color:#33443c;text-decoration:none;text-align:center;font-size:12px;}
.history-pagination .page-btn.active{background:#138a5b;color:#fff;border-color:#138a5b;}
.history-pagination .page-btn.disabled{pointer-events:none;opacity:.45;}
.market-pagination{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin:10px 0 4px;padding-top:10px;border-top:1px solid #edf0ee;}
.market-pagination .page-btn{min-width:34px;padding:7px 10px;border:1px solid #d7e1dc;border-radius:8px;background:#fff;color:#33443c;text-decoration:none;text-align:center;font-size:11px;}
.market-pagination .page-btn.active{background:#138a5b;color:#fff;border-color:#138a5b;}
.mining-control{margin-top:18px;}
.page-ellipsis{color:#7a8881;padding:0 2px;}
@media(max-width:800px){
 .history-page{width:calc(100% - 24px);padding:20px;margin-top:24px;}
 .history-page-head{align-items:flex-start;flex-direction:column;}
 .history-tx-main{align-items:flex-start;flex-direction:column;}
 .history-tx-date{white-space:normal;}
 .tx-details-grid{grid-template-columns:1fr 1fr;}
 .tx-detail-wide{grid-column:span 2;}
}
@media(max-width:520px){
 .history-page{width:calc(100% - 16px);padding:16px;}
 .history-page-head h1{font-size:21px;}
 .history-tx{padding:12px;}
 .tx-details-grid{grid-template-columns:1fr;}
 .tx-detail-wide{grid-column:auto;}
}
