/* JoilCraft ticket centre — scoped styles to avoid collisions with the shared layout */
.minecraft-tickets-page .mc-tickets-main{position:relative;z-index:3;width:min(1420px,calc(100% - 44px));margin:24px auto 76px;padding:26px;border:1px solid rgba(255,255,255,.1);border-radius:26px;background:rgba(18,21,29,.91);box-shadow:0 25px 90px #0005;color:#f3f5f8;min-height:calc(100vh - 185px)}
.mc-tickets-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.mc-tickets-heading h1{margin:6px 0 4px;font-size:clamp(23px,3vw,32px);font-weight:900}.mc-tickets-heading p{margin:0;color:#96a0ae;font-size:13px;line-height:1.9}.mc-eyebrow{color:#c5ff00;font-size:10px;font-weight:900;letter-spacing:2px}.mc-new-ticket-btn{border:0;border-radius:12px;padding:12px 18px;background:#c5ff00;color:#152000;font:700 13px Vazirmatn,sans-serif;cursor:pointer;box-shadow:0 8px 24px #c5ff0029;white-space:nowrap}.mc-new-ticket-btn span{font-size:19px;vertical-align:-2px;margin-inline-end:5px}
.mc-ticket-workspace{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:16px;min-height:600px}.mc-ticket-sidebar,.mc-ticket-chat{min-width:0;border:1px solid #ffffff12;border-radius:19px;background:#171b25;overflow:hidden}.mc-ticket-sidebar{display:flex;flex-direction:column}.mc-ticket-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid #ffffff10;font-size:14px}.mc-ticket-sidebar-head span{min-width:27px;padding:3px 8px;text-align:center;border-radius:30px;background:#c5ff001b;color:#c5ff00;font-size:11px}.mc-ticket-list{flex:1;overflow-y:auto;padding:10px}.mc-ticket-item{display:block;width:100%;text-align:start;padding:13px 14px;margin:3px 0;border:1px solid transparent;border-radius:12px;background:transparent;color:#eef1f5;cursor:pointer;transition:.2s}.mc-ticket-item:hover{background:#ffffff08;border-color:#ffffff10}.mc-ticket-item.active{background:linear-gradient(110deg,#c5ff0015,#ffffff06);border-color:#c5ff0055}.mc-ticket-item b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mc-ticket-item small{display:block;margin-top:6px;color:#8e99a9;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mc-ticket-item em{display:inline-block;margin-top:8px;padding:2px 7px;border-radius:20px;background:#22c55e18;color:#86e8a5;font-size:9px;font-style:normal}.mc-ticket-item em.closed{background:#ffffff12;color:#9da6b3}.mc-ticket-list-empty{padding:25px 12px;text-align:center;color:#8792a2;font-size:12px;line-height:2}.mc-ticket-sidebar-foot{padding:13px 16px;border-top:1px solid #ffffff10;color:#7f8a9b;font-size:10px;line-height:1.8}
.mc-ticket-chat{display:flex;flex-direction:column;min-height:600px}.mc-ticket-chat-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #ffffff10;background:linear-gradient(105deg,#202a1b,#1b202a)}.mc-ticket-avatar{width:40px;height:40px;display:grid;place-items:center;border-radius:14px;background:#c5ff001c;color:#d6ff5b;font-size:22px}.mc-ticket-chat-title{flex:1;min-width:0}.mc-ticket-chat-title b,.mc-ticket-chat-title small{display:block}.mc-ticket-chat-title b{font-size:13px}.mc-ticket-chat-title small{margin-top:4px;color:#929eae;font-size:10px}.mc-ticket-live-dot{width:9px;height:9px;border-radius:50%;background:#55d878;box-shadow:0 0 0 5px #55d87818}.mc-ticket-messages{flex:1;min-height:340px;max-height:calc(100vh - 390px);overflow-y:auto;padding:18px;background:radial-gradient(circle at 0 0,#c5ff0009,transparent 40%),#141821}.mc-ticket-welcome{min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#a5afbd}.mc-ticket-welcome-icon{width:62px;height:62px;display:grid;place-items:center;border-radius:20px;background:#ffffff0c;color:#c5ff00;font-size:30px;margin-bottom:14px}.mc-ticket-welcome b{font-size:16px;color:#e9edf2}.mc-ticket-welcome p{max-width:400px;font-size:12px;line-height:2}.mc-ticket-message{width:fit-content;max-width:min(82%,620px);margin:10px 0;padding:11px 13px;border:1px solid #ffffff12;border-radius:15px;background:#252c38;overflow-wrap:anywhere;animation:mcTicketIn .18s ease}.mc-ticket-message.mine{margin-left:auto;margin-right:0;background:#29371e;border-color:#c5ff0034;border-bottom-right-radius:5px}.mc-ticket-message.staff{margin-right:auto;margin-left:0;border-bottom-left-radius:5px}.mc-ticket-message-head{display:flex;align-items:center;gap:8px;margin-bottom:5px;color:#dfe5ed;font-size:10px}.mc-ticket-message-head small{margin-inline-start:auto;color:#7d8998;font-size:9px}.mc-ticket-message p{margin:0;color:#f0f2f5;font-size:12px;line-height:1.9;white-space:pre-wrap}.mc-ticket-message blockquote{margin:5px 0 8px;padding:5px 8px;border-right:2px solid #c5ff00;background:#0002;border-radius:5px;color:#aeb9c7;font-size:10px}.mc-ticket-message img{display:block;max-width:100%;max-height:190px;margin-top:8px;border-radius:10px}.mc-ticket-message audio{display:block;max-width:100%;width:270px;margin-top:8px}.mc-ticket-file{display:inline-block;margin-top:8px;color:#d7fa7b;font-size:11px}.mc-ticket-message-tools{display:flex;justify-content:flex-end;margin-top:5px}.mc-ticket-message-tools button{border:0;background:transparent;color:#a1adba;font:11px Vazirmatn,sans-serif;cursor:pointer}.mc-ticket-reply-preview{display:flex;justify-content:space-between;align-items:center;padding:7px 14px;background:#2b351f;color:#dafa9a;font-size:10px}.mc-ticket-reply-preview button{border:0;background:none;color:white;font-size:20px;cursor:pointer}.mc-ticket-composer{display:flex;align-items:flex-end;gap:8px;padding:12px;background:#1b202a;border-top:1px solid #ffffff10}.mc-ticket-composer textarea{flex:1;min-width:0;max-height:110px;resize:vertical;border:1px solid #ffffff16;border-radius:13px;background:#111620;color:white;padding:10px 12px;font:12px/1.8 Vazirmatn,sans-serif;outline:0}.mc-ticket-composer textarea:focus{border-color:#b9ee36}.mc-ticket-composer textarea:disabled{opacity:.55}.mc-ticket-attach{flex:0 0 auto;display:grid;place-items:center;min-width:38px;height:38px;padding:0 10px;border:1px solid #ffffff20;border-radius:11px;color:#d5f77c;cursor:pointer;font-size:20px}.mc-ticket-attach input{display:none}.mc-ticket-mic,.mc-ticket-send{flex:0 0 39px;height:39px;border:0;border-radius:12px;cursor:pointer}.mc-ticket-mic{background:#ffffff10;color:#d8e1ed;font-size:17px}.mc-ticket-mic.recording{background:#8a2634;color:white;animation:mcMicPulse 1s infinite}.mc-ticket-send{background:#c5ff00;color:#182300;font-size:19px;font-weight:900}.mc-ticket-send:disabled{opacity:.35;cursor:not-allowed}.mc-ticket-composer-note{padding:0 12px 10px;text-align:center;background:#1b202a;color:#8490a0;font-size:10px}.mc-new-ticket-panel{position:fixed;z-index:10010;inset:0;display:grid;place-items:center;padding:18px;background:#05070bd9;backdrop-filter:blur(8px)}.mc-new-ticket-panel[hidden]{display:none}.mc-new-ticket-panel form{width:min(580px,100%);padding:23px;border:1px solid #ffffff19;border-radius:22px;background:#191e28;box-shadow:0 25px 90px #0009}.mc-new-ticket-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.mc-new-ticket-head b,.mc-new-ticket-head small{display:block}.mc-new-ticket-head b{font-size:18px}.mc-new-ticket-head small{margin-top:5px;color:#8994a3;font-size:11px}.mc-new-ticket-head>button{width:34px;height:34px;border:1px solid #ffffff1b;border-radius:10px;background:#ffffff09;color:#fff;font-size:23px;cursor:pointer}.mc-new-ticket-panel label:not(.mc-ticket-attach){display:block;margin:13px 0;color:#bfc7d0;font-size:11px}.mc-new-ticket-panel input[type=text],.mc-new-ticket-panel textarea{display:block;width:100%;margin-top:7px;padding:11px 13px;border:1px solid #ffffff17;border-radius:11px;background:#10151e;color:white;font:12px/1.8 Vazirmatn,sans-serif;outline:0}.mc-new-ticket-panel input:focus,.mc-new-ticket-panel textarea:focus{border-color:#c5ff00}.mc-new-ticket-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:17px}.mc-new-ticket-actions .mc-ticket-attach{font-size:11px;height:40px}.mc-new-ticket-actions button{border:0;border-radius:10px;padding:11px 15px;background:#c5ff00;color:#172000;font:700 11px Vazirmatn,sans-serif;cursor:pointer}.mc-new-ticket-actions button:disabled{opacity:.5}.mc-ticket-form-error{margin:12px 0 0;color:#ffabb3;font-size:11px}.mc-ticket-role{padding:2px 6px;border-radius:6px;font-size:9px;font-weight:900}.mc-ticket-role.owner{background:#d5a52b30;color:#ffe18d}.mc-ticket-role.admin{background:#974be833;color:#e6c9ff}
@keyframes mcTicketIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes mcMicPulse{50%{box-shadow:0 0 0 6px #e34b5a30}}@media(max-width:850px){.minecraft-tickets-page .mc-tickets-main{width:calc(100% - 20px);padding:14px;margin-top:14px}.mc-ticket-workspace{grid-template-columns:1fr;min-height:0}.mc-ticket-sidebar{max-height:250px}.mc-ticket-chat{min-height:520px}.mc-ticket-messages{max-height:50vh}.mc-tickets-heading{align-items:flex-start;flex-direction:column}.mc-new-ticket-btn{align-self:stretch}}@media(max-width:520px){.mc-ticket-composer{gap:5px;padding:8px}.mc-ticket-attach{min-width:34px;height:35px;padding:0 7px}.mc-ticket-mic,.mc-ticket-send{flex-basis:35px;height:35px}.mc-ticket-message{max-width:94%}.mc-new-ticket-panel form{padding:17px}.mc-new-ticket-actions{align-items:stretch;flex-direction:column}.mc-new-ticket-actions button{width:100%}}
[dir="ltr"] .mc-ticket-message.mine{margin-left:0;margin-right:auto;border-bottom-left-radius:5px;border-bottom-right-radius:15px}[dir="ltr"] .mc-ticket-message.staff{margin-right:0;margin-left:auto;border-bottom-right-radius:5px;border-bottom-left-radius:15px}

/* Ticket heading overflow fix: keep Persian/English copy inside the panel. */
.minecraft-tickets-page .mc-tickets-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  min-width: 0;
  max-width: 100%;
}
.minecraft-tickets-page .mc-tickets-heading > div {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.minecraft-tickets-page .mc-tickets-heading h1,
.minecraft-tickets-page .mc-tickets-heading p {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.minecraft-tickets-page .mc-tickets-heading h1 {
  line-height: 1.75;
}
.minecraft-tickets-page .mc-tickets-heading p {
  line-height: 2;
  text-wrap: pretty;
}
.minecraft-tickets-page .mc-tickets-heading .mc-new-ticket-btn {
  max-width: 100%;
  min-width: 0;
  justify-self: end;
}
@media (max-width: 680px) {
  .minecraft-tickets-page .mc-tickets-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .minecraft-tickets-page .mc-tickets-heading .mc-new-ticket-btn {
    justify-self: start;
  }
}


/* Ticket page title + helper copy: keep both texts visibly inside their own card.
   Use a section rather than the global <header> element, whose site-wide styles
   were overriding the ticket page layout. */
.minecraft-tickets-page .mc-tickets-heading-card {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 22px;
  padding: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(197,255,0,.20);
  border-radius: 19px;
  background: radial-gradient(ellipse at 90% 0, rgba(197,255,0,.10), transparent 55%), linear-gradient(120deg, rgba(29,35,43,.98), rgba(21,25,34,.98));
  box-shadow: 0 14px 38px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.035);
  direction: inherit;
}
.minecraft-tickets-page .mc-tickets-heading-copy {
  display: block !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  visibility: visible !important;
  opacity: 1 !important;
  overflow-wrap: anywhere;
}
.minecraft-tickets-page .mc-tickets-heading-copy .mc-eyebrow {
  display: inline-block;
  margin: 0 0 5px;
  color: #c5ff00 !important;
}
.minecraft-tickets-page .mc-tickets-heading-copy h1 {
  display: block !important;
  max-width: 100%;
  margin: 0 0 7px !important;
  color: #f5f7fa !important;
  font-family: Vazirmatn, sans-serif !important;
  font-size: clamp(21px, 2.6vw, 30px) !important;
  font-weight: 900 !important;
  line-height: 1.8 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.minecraft-tickets-page .mc-tickets-heading-copy p {
  display: block !important;
  max-width: 760px;
  margin: 0 !important;
  color: #aeb8c6 !important;
  font-family: Vazirmatn, sans-serif !important;
  font-size: clamp(11px, 1.1vw, 13px) !important;
  font-weight: 400;
  line-height: 2.1 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}
.minecraft-tickets-page .mc-tickets-heading-card .mc-new-ticket-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  justify-self: end;
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 44px;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .minecraft-tickets-page .mc-tickets-heading-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }
  .minecraft-tickets-page .mc-tickets-heading-card .mc-new-ticket-btn {
    justify-self: stretch;
    width: 100%;
  }
}
