*{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;}
}

.home-auth-links{margin-left:auto;}
@media(max-width:700px){.home-auth-links{margin-left:0;width:100%;justify-content:flex-start;}}

/* V48 - index particle background */
#koal-particles{position:fixed;inset:0;width:100vw;height:100vh;z-index:0;pointer-events:none;display:block}
html{background:#f5f7f6}
body{position:relative;background:transparent}
body > nav, body > main, body > footer{position:relative;z-index:1}
body > main.hero{background:transparent}

/* V94 unified card headings */
.card>h1,.card>h2,.smart-card>h1,.smart-card>h2,.legal-card>h2{margin-top:0;color:#138a5b;font-size:20px;font-weight:800;line-height:1.5;}
.dashboard-history-list .tx{background:#f8faf9;border:1px solid #e3ebe6;border-radius:12px;padding:11px 13px;margin-bottom:8px;align-items:center;box-shadow:0 2px 8px rgba(27,43,34,.04)}.dashboard-history-list .tx:last-child{margin-bottom:0}.dashboard-history-list .tx b{font-size:12px;color:#33443c;background:#fff;border:1px solid #dfe7e2;border-radius:7px;padding:5px 8px;font-family:monospace}.dashboard-history-list .tx span{font-size:12px;color:#087443;font-weight:700}.dashboard-history-list .tx small{width:auto;margin-right:auto;color:#7a8881;font-size:11px}.smart-pagination{margin-top:12px;}

/* V95 unified card heading system and aligned side-by-side cards */
.card h1,.card h2,.smart-card h1,.smart-card h2,.legal-card h2,.support-panel-title h2,.conversation-head h2,.title-row h2{
  margin-top:0;
  margin-bottom:14px;
  color:#138a5b;
  font-size:20px;
  font-weight:800;
  line-height:1.5;
}
.smart-grid{align-items:stretch;}
.smart-grid>.smart-card{height:100%;}


/* =========================================================
   KOAL v106 — Professional responsive presentation layer
   Presentation only: no application/business logic changes.
   ========================================================= */

:root{
  --koal-green:#138a5b;
  --koal-green-dark:#087443;
  --koal-green-soft:#eaf8f2;
  --koal-red:#c43c45;
  --koal-red-soft:#fff0f0;
  --koal-text:#17221d;
  --koal-muted:#6b7b73;
  --koal-border:#dfe7e3;
  --koal-bg:#f5f7f6;
  --koal-card:#ffffff;
  --koal-radius:14px;
}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  font-family:Tahoma,"Vazirmatn","Segoe UI",Arial,sans-serif;
  color:var(--koal-text);
  background:var(--koal-bg);
  line-height:1.65;
}

button,input,textarea,select{
  font-family:inherit;
}

a,button,.button{
  -webkit-tap-highlight-color:transparent;
}

button,.button{
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,
             box-shadow .15s ease,transform .12s ease;
}

button:hover,.button:hover{
  transform:translateY(-1px);
}

button:active,.button:active{
  transform:translateY(0);
}

button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline:3px solid rgba(19,138,91,.18);
  outline-offset:2px;
}

/* Header */
.site-nav{
  min-height:68px;
  padding:9px clamp(14px,5vw,72px);
  border-bottom:1px solid #e1e8e4;
  box-shadow:0 2px 12px rgba(23,34,29,.025);
  position:relative;
  z-index:10;
}

.site-brand{
  font-size:24px;
  font-weight:900;
  letter-spacing:.3px;
}

.site-nav-links{
  gap:7px;
}

.site-nav-links .nav-btn{
  min-height:37px;
  padding:8px 11px;
  border-radius:9px;
  font-size:11.5px;
}

/* Main containers */
.grid{
  width:min(1100px,calc(100% - 32px));
  margin:28px auto 36px;
  gap:16px;
}

.grid .card,
.admin-grid .card,
.card{
  border-radius:var(--koal-radius);
  border-color:var(--koal-border);
  box-shadow:0 6px 22px rgba(23,34,29,.045);
}

.card{
  padding:24px;
}

.card h1,.card h2{
  letter-spacing:-.1px;
}

input,textarea,select{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  background:#fff;
  border:1px solid #d6dfda;
  border-radius:10px;
  color:var(--koal-text);
  outline:none;
}

textarea{
  min-height:110px;
  resize:vertical;
}

input:hover,textarea:hover,select:hover{
  border-color:#c3d2ca;
}

input:focus,textarea:focus,select:focus{
  border-color:#8ccbad;
  box-shadow:0 0 0 3px rgba(19,138,91,.08);
}

label{
  line-height:1.55;
}

button,.button{
  min-height:44px;
  border-radius:10px;
  font-weight:800;
}

.error,.success,.info{
  border:1px solid transparent;
  line-height:1.8;
}

.error{
  border-color:#f2cccc;
}

.success{
  border-color:#cbe9da;
}

.info{
  border:1px solid #dbe9e2;
}

/* Dashboard */
.dashboard-grid{
  gap:16px;
}

.dashboard-card{
  min-width:0;
  border-radius:14px;
}

.wallet-card .wallet-value-box,
.wallet-card .balance-box,
.wallet-card .wallet-status-item{
  border-radius:11px;
}

.dashboard-history-list{
  min-width:0;
}

.dashboard-history-list .tx{
  border-radius:11px;
}

/* History / details */
.history-page{
  margin-top:28px;
  border-radius:14px;
  border-color:var(--koal-border);
  box-shadow:0 6px 22px rgba(23,34,29,.045);
}

.history-tx{
  border-radius:11px;
}

/* Market */
.market-card,
.market-panel,
.order-card,
.market-section{
  min-width:0;
}

.market-card table,
.market-panel table,
.order-card table,
table{
  max-width:100%;
}

.table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

/* Admin */
.admin-grid{
  width:min(1100px,calc(100% - 32px));
  margin:28px auto 36px;
  gap:16px;
}

.admin-grid .card{
  padding:22px;
}

/* Smart / support / legal */
.smart-card,
.support-panel,
.conversation-panel,
.ticket-sidebar,
.legal-card{
  border-radius:14px;
  border-color:var(--koal-border);
}

.legal-page{
  padding-top:28px;
}

.legal-card{
  box-shadow:0 6px 22px rgba(23,34,29,.045);
}

/* Footer */
.site-footer{
  margin-top:auto;
  border-top-color:#dfe7e3;
}

.site-footer-inner{
  padding:25px clamp(16px,4vw,36px);
}

/* Home */
.hero{
  min-height:calc(100vh - 68px);
  padding:32px 18px 44px;
}

.hero h1{
  font-size:clamp(58px,9vw,80px);
}

.hero>div{
  width:min(760px,100%);
}

/* Responsive tablet */
@media (max-width:900px){
  .site-nav{
    padding-left:16px;
    padding-right:16px;
  }

  .site-nav-links .nav-btn{
    padding-left:9px;
    padding-right:9px;
  }

  .grid,
  .admin-grid{
    width:min(100% - 24px,1100px);
  }

  .card{
    padding:20px;
  }
}

/* Responsive mobile */
@media (max-width:700px){
  .site-nav{
    min-height:0;
    padding:10px 12px;
    align-items:center;
  }

  .site-brand{
    font-size:21px;
  }

  .site-nav-links{
    width:100%;
    flex:1 1 100%;
    justify-content:flex-start;
    gap:6px;
    padding-top:2px;
  }

  .site-nav-links .nav-btn{
    min-height:34px;
    padding:7px 9px;
    font-size:10px;
  }

  .grid,
  .admin-grid{
    width:calc(100% - 20px);
    margin-top:18px;
    margin-bottom:24px;
    padding-left:0;
    padding-right:0;
  }

  .card{
    padding:17px;
    border-radius:12px;
  }

  .card h1,.card h2{
    font-size:18px;
  }

  .hero{
    min-height:calc(100vh - 110px);
    padding:24px 14px 36px;
  }

  .hero h1{
    font-size:clamp(52px,18vw,68px);
  }

  .hero .button{
    width:100%;
    margin:5px 0 0;
  }

  .site-footer-inner{
    grid-template-columns:1fr;
    gap:15px;
    padding:22px 16px;
  }

  .site-footer-copy{
    grid-column:auto;
  }

  .wallet-card .wallet-status{
    grid-template-columns:1fr;
  }

  .history-page{
    width:calc(100% - 20px);
    margin-top:18px;
    padding:17px;
  }

  .history-page-head{
    gap:10px;
  }

  .profile-wrap{
    width:calc(100% - 20px);
    padding-left:0;
    padding-right:0;
    margin-top:20px;
  }

  .profile-info{
    grid-template-columns:1fr;
  }

  .support-wrap{
    padding:18px 10px;
  }

  .support-grid{
    grid-template-columns:1fr;
    min-height:0;
  }

  .ticket-sidebar{
    grid-column:1;
    grid-row:1;
  }

  .conversation-panel{
    grid-column:1;
    grid-row:2;
  }

  .messages{
    min-height:360px;
  }
}

/* Very small phones */
@media (max-width:430px){
  .site-nav-links .nav-btn{
    font-size:9.5px;
    padding:6px 8px;
  }

  .card{
    padding:14px;
  }

  .wallet-card .wallet-value-box strong,
  .wallet-card .balance-box strong{
    font-size:20px;
  }

  .wallet-card .wallet-status-item strong{
    font-size:15px;
  }

  .history-tx{
    padding:11px;
  }

  .tx-details-grid{
    grid-template-columns:1fr;
  }

  .tx-detail-wide{
    grid-column:auto;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    transition-duration:0.01ms!important;
    animation-duration:0.01ms!important;
    animation-iteration-count:1!important;
  }
}


/* =========================================================
   KOAL V107 — Professional Fintech UI
   Presentation-only layer. No business logic changes.
   ========================================================= */
:root{
  --koal:#0b9b67;
  --koal-dark:#06734c;
  --koal-deep:#075b3e;
  --koal-soft:#eaf8f2;
  --ink:#17231e;
  --muted:#718078;
  --line:#e3ebe7;
  --surface:#ffffff;
  --surface-2:#f7faf8;
  --danger:#d94a55;
  --danger-soft:#fff1f2;
  --shadow:0 18px 55px rgba(21,55,42,.08);
  --shadow-sm:0 8px 24px rgba(21,55,42,.07);
}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 10% 0%,rgba(11,155,103,.07),transparent 28rem),
    radial-gradient(circle at 90% 10%,rgba(6,115,76,.05),transparent 30rem),
    #f6f9f7;
  color:var(--ink);
  line-height:1.65;
}
body:before{
  content:"";
  position:fixed;inset:0;pointer-events:none;z-index:-1;
  background:linear-gradient(135deg,rgba(255,255,255,.7),transparent 45%);
}
.site-nav,nav{
  min-height:76px;
  padding:12px clamp(18px,5vw,72px);
  background:rgba(255,255,255,.94);
  border-bottom:1px solid rgba(220,231,225,.9);
  box-shadow:0 4px 22px rgba(20,50,38,.045);
  backdrop-filter:blur(16px);
  position:sticky;top:0;z-index:50;
}
.site-brand{
  font-size:28px;font-weight:900;letter-spacing:-.8px;
  color:var(--koal);
  text-shadow:0 4px 18px rgba(11,155,103,.12);
}
.site-nav-links{gap:7px}
.site-nav-links .nav-btn{
  min-height:40px;padding:8px 13px;border-radius:11px;
  background:#f5faf7;border:1px solid #e1ece6;
  color:#31433b;font-size:12px;
  transition:transform .18s ease,background .18s ease,border .18s ease,box-shadow .18s ease;
}
.site-nav-links .nav-btn:hover{
  transform:translateY(-1px);background:var(--koal-soft);
  border-color:#bfe6d5;box-shadow:0 5px 14px rgba(11,155,103,.08);
}
.site-nav-links .nav-logout{background:var(--danger-soft);border-color:#f2d4d7;color:#bd3440}
.site-nav-links .nav-logout:hover{background:#ffe5e7;border-color:#eabac0}
main.card,.card{
  border:1px solid rgba(220,231,225,.95);
  border-radius:22px;
  box-shadow:var(--shadow);
  background:rgba(255,255,255,.97);
}
.card{
  padding:30px;
}
.card h1,.card h2,.card h3{letter-spacing:-.3px}
.card h1{
  font-size:clamp(24px,3vw,32px);
  margin-top:0;color:#18342a;
}
.grid,.admin-grid{
  max-width:1220px;
  gap:22px;
}
.grid .card,.admin-grid .card{box-shadow:var(--shadow-sm)}
button,.button{
  min-height:44px;
  padding:11px 18px;
  border-radius:11px;
  background:linear-gradient(135deg,var(--koal),#07835a);
  box-shadow:0 7px 18px rgba(11,155,103,.18);
  font-weight:800;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
button:hover,.button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 23px rgba(11,155,103,.22);
  filter:saturate(1.06);
}
button:active,.button:active{transform:translateY(0)}
input,select,textarea{
  min-height:46px;
  border:1px solid #d7e3dd;
  border-radius:11px;
  background:#fbfdfc;
  color:var(--ink);
  transition:border .16s ease,box-shadow .16s ease,background .16s ease;
}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:#72c7a5;
  background:#fff;
  box-shadow:0 0 0 4px rgba(11,155,103,.09);
}
label{font-weight:700;color:#33463d}
.info,.success,.error{
  border:1px solid transparent;border-radius:13px;
  box-shadow:none;
}
.info{background:#f0f8f4;border-color:#dceee5}
.success{background:#ecfaf3;border-color:#ccebdc}
.error{background:#fff3f3;border-color:#f1d0d3}
.wallet{
  background:linear-gradient(135deg,#f0f8f4,#f8fbf9);
  border:1px solid #dcebe4;
  border-radius:12px;
}
.stat{
  font-size:clamp(30px,4vw,42px);
  letter-spacing:-1px;
}
.stats div,.detail-grid>div{
  background:linear-gradient(145deg,#f7faf8,#f0f6f3);
  border:1px solid #e0eae5;
  border-radius:14px;
}
.stats b{color:var(--koal-dark)}
.filters .button{
  background:#fff;color:#3a4d44;border:1px solid #dce7e1;box-shadow:none;
}
.filters .button:hover,.filters .filter-active{
  background:var(--koal-soft);color:var(--koal-deep);border-color:#bfe5d5;
}
.site-footer{
  margin-top:55px;background:rgba(255,255,255,.92);
  border-top:1px solid var(--line);
}
.site-footer-inner{max-width:1220px;padding:30px 22px}
.site-footer strong{font-size:20px}
.site-footer-links a{transition:color .15s ease}
.site-footer-links a:hover{color:var(--koal-deep)}
/* Home: premium hero, no distracting particle layer */
#koal-particles{display:none!important}
.hero{
  min-height:calc(100vh - 76px);
  padding:clamp(35px,7vw,90px) 20px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 42%,rgba(11,155,103,.10),transparent 22rem);
}
.hero>div{
  max-width:900px;
  padding:clamp(34px,6vw,70px);
  border:1px solid rgba(214,230,222,.9);
  border-radius:32px;
  background:rgba(255,255,255,.82);
  box-shadow:0 28px 80px rgba(25,70,52,.10);
  backdrop-filter:blur(18px);
  position:relative;
}
.hero>div:before{
  content:"KOAL";
  position:absolute;right:7%;top:8%;
  font-size:clamp(70px,14vw,160px);font-weight:1000;
  color:rgba(11,155,103,.045);letter-spacing:-8px;pointer-events:none;
}
.hero h1{
  position:relative;font-size:clamp(72px,12vw,132px);
  line-height:.95;margin:0 0 18px;
  font-weight:1000;letter-spacing:-7px;
  color:transparent;
  background:linear-gradient(135deg,#087b52,#11b879);
  -webkit-background-clip:text;background-clip:text;
}
.hero .tag{
  display:inline-flex;padding:7px 12px;border-radius:999px;
  background:var(--koal-soft);border:1px solid #cfece0;
  color:var(--koal-deep);font-size:11px;font-weight:900;
  letter-spacing:1.5px;
}
.hero p:not(.tag){max-width:650px;margin:18px auto 28px;color:#52645b;font-size:clamp(15px,2vw,18px)}
.hero .button{margin:4px}
.dashboard-grid{gap:22px}
.dashboard-card{
  border-radius:22px;
  box-shadow:var(--shadow-sm);
  border:1px solid var(--line);
}
.history-tx,.tx{padding:15px 4px;border-bottom:1px solid #edf2ef}
.history-tx:hover,.tx:hover{background:#fbfdfc}
.page-btn{
  min-width:40px;min-height:40px;border-radius:10px;
  border-color:#dce7e1;background:#fff;
}
.page-btn.active{background:var(--koal);border-color:var(--koal)}
/* Tables / market */
table{border-collapse:separate!important;border-spacing:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff}
th{background:#f3f8f5!important;color:#385047;font-weight:900}
td,th{border-bottom:1px solid #edf2ef;padding:11px!important}
tr:last-child td{border-bottom:0}
a{transition:color .15s ease}
a:not(.button):hover{color:var(--koal)}
/* Legal / support / profile */
.legal-card{
  border-radius:22px;
  box-shadow:var(--shadow);
}
.support-wrap{max-width:1250px}
.support-grid{gap:20px}
.support-grid>*{border-radius:20px!important}
.profile-grid{gap:22px!important}
/* Touch + responsive */
@media(max-width:900px){
  .site-nav,nav{position:relative;padding:12px 16px}
  .site-nav-links{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}
  .site-nav-links .nav-btn{flex:0 0 auto}
  .grid,.admin-grid{grid-template-columns:1fr}
  .hero>div{border-radius:24px}
}
@media(max-width:600px){
  body{font-size:14px}
  .card{margin:28px 12px;padding:20px;border-radius:18px}
  .grid{padding:0 12px;margin:22px auto}
  .admin-grid{padding:0 12px;margin:22px auto}
  .hero{padding:22px 12px;min-height:calc(100vh - 76px)}
  .hero>div{padding:34px 20px}
  .hero h1{letter-spacing:-4px}
  .hero .button{width:100%;margin:5px 0}
  .detail-grid{grid-template-columns:1fr}
  .site-footer-inner{padding:24px 16px}
  .site-footer-links{gap:10px}
  button,.button{min-height:46px}
  input,select,textarea{min-height:48px}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important}
}


/* V109 — light market chrome + compact mobile header */
.market-head{
  background:#fff!important;
  color:#17221d!important;
  border:1px solid #e1e8e4;
  box-shadow:0 6px 22px rgba(23,34,29,.045);
}
.market-head h1{color:#17221d!important}
.market-head .price{color:#138a5b!important}
.chart-panel{
  background:#fff!important;
  color:#52635b!important;
  border-color:#e1e8e4!important;
  box-shadow:0 6px 22px rgba(23,34,29,.045);
}
.chart-panel h3{
  background:#fff!important;
  color:#17221d!important;
  border-bottom:1px solid #e7ede9!important;
}
.chart-toolbar{
  background:#fff!important;
  color:#52635b!important;
  border-bottom:1px solid #e7ede9!important;
}
.timeframes button{
  border-color:#dce7e1!important;
  background:#f4f8f6!important;
  color:#52635b!important;
}
.timeframes button:hover{background:#e8f3ee!important;color:#087443!important}
.timeframes button.active{
  background:#e2f1eb!important;
  color:#087443!important;
  border-color:#b9d9ca!important;
}
.chart-axis-info{color:#718078!important}
.chart-note{
  color:#718078!important;
  background:#fff!important;
  border-top-color:#e7ede9!important;
}

@media(max-width:700px){
  .site-nav{
    min-height:58px!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:8px!important;
    padding:8px 10px!important;
    overflow:hidden;
  }
  .site-brand{
    flex:0 0 auto!important;
    font-size:20px!important;
    white-space:nowrap!important;
  }
  .site-nav-links{
    width:auto!important;
    flex:1 1 auto!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    gap:5px!important;
    padding:0!important;
    scrollbar-width:none;
  }
  .site-nav-links::-webkit-scrollbar{display:none}
  .site-nav-links .nav-btn{
    flex:0 0 auto!important;
    min-height:32px!important;
    padding:6px 8px!important;
    font-size:9.5px!important;
  }
}

/* VS110 — mobile header: keep logo and auth/menu controls on one row */
@media (max-width:700px){
  .site-nav{
    direction:rtl!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    min-height:58px!important;
    padding:8px 12px!important;
    overflow:hidden!important;
  }
  .site-brand{
    order:1!important;
    flex:0 0 auto!important;
    margin:0!important;
    font-size:20px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  .site-nav-links{
    order:2!important;
    width:auto!important;
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:calc(100% - 72px)!important;
    display:flex!important;
    flex-direction:row!important;
    direction:rtl!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
    margin:0!important;
    padding:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
  }
  .site-nav-links::-webkit-scrollbar{display:none!important}
  .site-nav-links .nav-btn{
    flex:0 0 auto!important;
    min-height:34px!important;
    padding:7px 10px!important;
    font-size:10px!important;
    margin:0!important;
  }
  .home-auth-links{
    flex:0 0 auto!important;
    max-width:none!important;
  }
}


/* VS113 — wallet number formatting and transaction/history clarity */
.dashboard-tx-code{color:#33443c;text-decoration:none;display:inline-block;}
.dashboard-tx-code:hover{text-decoration:underline;color:#138a5b;}
.dashboard-history-list .tx{display:flex;flex-direction:column;align-items:stretch!important;gap:8px!important;}
.dashboard-history-list .tx-top{display:flex;align-items:center;justify-content:flex-start;gap:14px!important;flex-wrap:wrap;width:100%;}
.dashboard-history-list .tx-top b{margin:0!important;}
.dashboard-history-list .tx-top .tx-direction-pill{margin-right:2px!important;}
.dashboard-history-list .tx-details-line{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding-top:2px;}
.dashboard-history-list .tx-details-line strong{font-size:14px;line-height:1.5;}
.dashboard-history-list .tx>small{align-self:flex-start!important;margin:0!important;}
.history-tx{display:block!important;border:1px solid #dfe8e3!important;border-radius:14px!important;background:#fff!important;margin:12px 0!important;padding:16px!important;box-shadow:0 4px 14px rgba(27,43,34,.05)!important;}
.history-tx:hover{background:#fcfefd!important;}
.history-tx-main{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;width:100%!important;}
.history-tx-title{gap:9px!important;row-gap:8px!important;}
.history-tx-amount{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-top:13px!important;padding:11px 12px!important;border:1px solid #e5ece8!important;border-radius:10px!important;background:#f8faf9!important;}
.history-tx-amount span{font-weight:800!important;font-size:15px!important;}
.history-tx-amount small{color:#6d7c74!important;font-size:11px!important;}
.tx-details{margin-top:12px!important;}
.wallet-card .wallet-value-box strong,.wallet-card .wallet-status-item strong{font-variant-numeric:tabular-nums;}
@media(max-width:600px){
 .dashboard-history-list .tx-top{gap:8px!important;}
 .dashboard-history-list .tx-details-line{align-items:flex-start;flex-direction:column;gap:6px;}
 .history-tx-main{flex-direction:column!important;}
 .history-tx-amount{align-items:flex-start!important;flex-direction:column!important;}
}
