/* Nexora tickets page */
.tk-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}
@media(max-width:700px){.tk-grid{grid-template-columns:1fr}}
#tk-form-card label,#tk-thread-card label{display:block}
#tk-form-card textarea{min-height:130px}
#tk-preview{max-width:220px;max-height:160px;border-radius:10px;border:1px solid rgba(125,211,252,.35);margin-top:8px}
.tk-err{min-height:16px;color:#ff9aa6;font-size:11.5px;margin:8px 0 0}
.tk-btn{border:0;border-radius:11px;padding:12px 26px;background:linear-gradient(135deg,#147fff,#7d40ff);color:#fff;font:700 13px Vazirmatn;cursor:pointer;margin-top:12px;box-shadow:0 10px 26px rgba(46,108,255,.4)}
.tk-btn:hover{transform:translateY(-2px)}
.tk-btn.sm{padding:9px 18px;font-size:12px;margin-top:0}
.tk-btn.ghost{background:rgba(15,60,105,.5);border:1px solid rgba(100,190,240,.45);box-shadow:none;margin-bottom:10px}
.tk-row{display:flex;gap:8px;margin-top:10px}
.tk-row input{flex:1;margin:0}
.tk-item{display:block;width:100%;text-align:right;background:rgba(4,18,36,.55);border:1px solid rgba(125,211,252,.22);border-radius:12px;padding:12px 14px;margin-top:10px;cursor:pointer;color:#eaf7ff;font:inherit;transition:.15s}
.tk-item:hover{border-color:rgba(140,220,255,.55);transform:translateY(-2px)}
.tk-item-top{display:flex;align-items:center;gap:8px;font-size:13px}
.tk-item-top b{flex:1}
.tk-item-sub{display:block;font-size:11px;color:#7fa3bd;margin-top:4px}
.tk-st{font-size:10.5px;font-weight:800;border-radius:20px;padding:2px 11px;white-space:nowrap}
.tk-open{background:rgba(20,127,255,.2);color:#7cc4ff;border:1px solid rgba(90,170,255,.5)}
.tk-answered{background:rgba(25,160,90,.2);color:#5fe3a1;border:1px solid rgba(80,220,140,.5)}
.tk-closed{background:rgba(120,130,140,.18);color:#9fb0bd;border:1px solid rgba(150,160,170,.4)}
.tk-unread{background:#ff5d7a;color:#fff;font-size:10.5px;font-weight:800;border-radius:12px;padding:2px 9px}
#tk-mine-card{margin-top:16px}
#tk-thread-card{margin-top:16px}
#tk-th-meta{font-size:12px;color:#8fb0c6;margin:2px 0 12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#tk-msgs{display:flex;flex-direction:column;gap:9px;max-height:380px;overflow-y:auto;padding:12px;border:1px solid rgba(125,211,252,.2);border-radius:12px;background:rgba(2,10,24,.55);margin-bottom:10px}
.tk-msg{display:flex}
.tk-msg.me{justify-content:flex-start}
.tk-msg.adm{justify-content:flex-end}
.tk-bubble{max-width:85%;padding:9px 13px;border-radius:12px;font-size:12.5px;line-height:2;white-space:pre-wrap;word-break:break-word}
.tk-msg.me .tk-bubble{background:linear-gradient(135deg,#147fff,#0a4fa8);color:#fff;border-bottom-right-radius:4px}
.tk-msg.adm .tk-bubble{background:rgba(20,45,75,.9);border:1px solid rgba(125,211,252,.25);border-bottom-left-radius:4px}
.tk-bubble img{max-width:200px;max-height:150px;border-radius:8px;margin-top:6px;border:1px solid rgba(125,211,252,.3)}
#tk-reply{min-height:80px}
.tk-file{display:flex;align-items:center;gap:8px;font-size:12px;color:#bfe3f7;cursor:pointer}
.tk-file input{width:auto}
/* ---- Nexora ticket page layout + form theme (glass, RTL) ---- */
.ticket-main{max-width:1180px;margin:0 auto}
.tk-wrap{max-width:880px;margin:34px auto 0;display:grid;gap:16px}
.tk-card{border:1px solid rgba(255,255,255,.26);border-radius:22px;padding:clamp(20px,4vw,34px);background:linear-gradient(135deg,rgba(255,255,255,.11),rgba(255,255,255,.035),rgba(120,200,255,.07));backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%);box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 18px 48px rgba(0,0,0,.34)}
.tk-card h2{margin:0 0 4px;font-size:19px;font-weight:900;text-shadow:0 1px 6px rgba(0,0,0,.55)}
.tk-card .tk-sub{margin:0 0 14px;color:#9fc3d8;font-size:12.5px;line-height:2}
#tk-form-card label,#tk-thread-card label{display:block;font-size:12.5px;font-weight:700;color:#bfe3f7;margin:12px 0 6px}
#tk-form-card label span,#tk-thread-card label span{display:block;margin-bottom:6px}
#tk-form-card input[type=text],#tk-form-card select,#tk-form-card textarea,#tk-thread-card textarea,.tk-row input{width:100%;border:1px solid rgba(125,211,252,.3);border-radius:12px;background:rgba(2,10,26,.7);color:#fff;padding:11px 13px;font:inherit;font-size:13px;outline:none;transition:.2s}
#tk-form-card input:focus,#tk-form-card select:focus,#tk-form-card textarea:focus,#tk-thread-card textarea:focus,.tk-row input:focus{border-color:#6fd8ff;box-shadow:0 0 0 4px rgba(52,195,255,.14),0 0 20px rgba(52,195,255,.18)}
#tk-form-card select option{background:#071a30;color:#fff}
#tk-form-card textarea{min-height:130px;line-height:2;resize:vertical}
.tk-file{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px dashed rgba(125,211,252,.4);border-radius:12px;padding:10px 13px;background:rgba(6,26,50,.5)}
.tk-file input[type=file]{flex:1;min-width:0;color:#bfe3f7;font-size:12px}
#tk-th-msgs,#tk-msgs{display:flex;flex-direction:column;gap:9px;max-height:380px;overflow-y:auto;padding:12px;border:1px solid rgba(125,211,252,.2);border-radius:12px;background:rgba(2,10,24,.55);margin-bottom:10px}
#tk-list .muted,.muted{color:#8fb0c6;font-size:12px}
@media(max-width:650px){.tk-wrap{margin-top:24px}.tk-card{padding:18px 15px}}
