/* =========================================================
   Music FM V2 — User Support Messages
   Aligned to Community 2026 visual system
========================================================= */

.mf-support-accordion{
    width:min(100% - 46px, 1380px);
    margin:0 auto;
    padding:24px 0 44px;
    direction:rtl;
    color:#111827;
}

.mf-support-accordion *{
    box-sizing:border-box;
}

.mf-support-accordion a:focus-visible,
.mf-support-accordion button:focus-visible,
.mf-support-accordion input:focus-visible,
.mf-support-accordion textarea:focus-visible,
.mf-support-accordion select:focus-visible{
    outline:3px solid rgba(20,124,255,.45);
    outline-offset:3px;
}

/* Alerts */
.support-alert{
    margin-bottom:14px;
    border-radius:4px;
    padding:13px 16px;
    font-weight:950;
}

.support-alert.success{
    background:#ecfdf3;
    color:#087443;
    border:1px solid #c9f5d9;
}

.support-alert.error{
    background:#fff1f2;
    color:#c01048;
    border:1px solid #ffcdd8;
}

/* Hero — same language as community hero */
.support-head{
    display:grid;
    grid-template-columns:1fr auto;
    gap:24px;
    align-items:center;
    margin-bottom:18px;
    overflow:hidden;
    border:1px solid rgba(15,35,70,.12);
    border-radius:4px;
    background:
        radial-gradient(circle at 12% 0%,rgba(89,199,255,.20),transparent 34%),
        linear-gradient(135deg,#071832 0%,#0b2e69 100%);
    color:#fff;
    box-shadow:0 14px 36px rgba(15,35,70,.13);
    padding:38px 44px;
}

.support-head span{
    display:inline-flex;
    padding:7px 11px;
    background:#147cff;
    color:#fff;
    font-size:12px;
    font-weight:950;
    line-height:1;
}

.support-head h1{
    margin:18px 0 12px;
    font-size:56px;
    line-height:.95;
    font-weight:950;
    letter-spacing:-2px;
}

.support-head p{
    max-width:760px;
    margin:0;
    color:rgba(255,255,255,.82);
    font-size:18px;
    line-height:1.65;
    font-weight:750;
}

.support-head > a{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 18px;
    border:1px solid #147cff;
    border-radius:3px;
    background:#147cff;
    color:#fff;
    text-decoration:none;
    font-weight:950;
}

/* Toolbar */
.support-toolbar{
    display:grid;
    grid-template-columns:minmax(280px,460px) minmax(0,1fr);
    gap:16px;
    align-items:center;
    margin-bottom:18px;
}

.support-search{
    display:grid;
    grid-template-columns:minmax(0,1fr) 88px;
    gap:8px;
}

.support-search input,
.new-ticket-form input,
.new-ticket-form select,
.new-ticket-form textarea,
.reply-box textarea{
    width:100%;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    color:#111827;
    font-family:inherit;
    font-weight:850;
    outline:none;
}

.support-search input{
    min-height:48px;
    padding:0 14px;
}

.support-search button,
.new-ticket-form button,
.reply-box button{
    border:0;
    border-radius:4px;
    background:#147cff;
    color:#fff;
    font-family:inherit;
    font-weight:950;
    cursor:pointer;
}

.support-filters{
    display:flex;
    gap:10px;
    justify-content:flex-end;
    overflow:auto;
}

.support-filters a{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:0 16px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    color:#475467;
    text-decoration:none;
    font-weight:950;
    white-space:nowrap;
    box-shadow:0 8px 22px rgba(15,35,70,.045);
}

.support-filters a.active{
    background:#147cff;
    color:#fff;
    border-color:#147cff;
}

.support-filters b{
    min-width:22px;
    height:22px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:rgba(255,255,255,.18);
    font-size:12px;
}

/* Centered list */
.support-list-center{
    display:grid;
    gap:10px;
}

.support-ticket-card{
    overflow:hidden;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    box-shadow:0 9px 24px rgba(15,35,70,.055);
    transition:box-shadow .22s ease,border-color .22s ease,transform .22s ease;
}

.support-ticket-card.is-open{
    border-color:#bcd8ff;
    box-shadow:0 14px 36px rgba(15,35,70,.13);
}

.support-ticket-card.has-unread .ticket-dot{
    background:#147cff;
    box-shadow:0 0 0 5px rgba(20,124,255,.12);
}

.ticket-row-button{
    width:100%;
    min-height:76px;
    border:0;
    background:#fff;
    display:grid;
    grid-template-columns:14px 46px minmax(0,1fr) 120px 30px;
    gap:12px;
    align-items:center;
    padding:12px 16px;
    text-align:right;
    font-family:inherit;
    cursor:pointer;
    color:#111827;
}

.ticket-row-button:hover{
    background:#f8fbff;
}

.ticket-dot{
    width:9px;
    height:9px;
    border-radius:999px;
    background:#d9e2ee;
}

.ticket-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#eef6ff;
    color:#147cff;
    font-weight:1000;
}

.ticket-info{
    min-width:0;
    display:grid;
    gap:3px;
}

.ticket-info strong{
    color:#111827;
    font-size:16px;
    font-weight:950;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.ticket-info em{
    color:#667085;
    font-size:13px;
    font-style:normal;
    font-weight:750;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.ticket-info small{
    color:#667085;
    font-size:12px;
    font-weight:750;
}

.ticket-meta{
    display:grid;
    justify-items:end;
    gap:5px;
}

.ticket-meta small{
    color:#667085;
    font-size:12px;
    font-weight:750;
}

.ticket-status{
    min-height:26px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:3px;
    padding:0 10px;
    background:#eef6ff;
    color:#147cff;
    font-size:12px;
    font-style:normal;
    font-weight:950;
    white-space:nowrap;
}

.status-new{
    background:#fff1f2;
    color:#c01048;
}

.status-in_progress{
    background:#eef6ff;
    color:#147cff;
}

.status-waiting_user{
    background:#fff7ed;
    color:#c2410c;
}

.status-answered{
    background:#ecfdf3;
    color:#087443;
}

.status-closed,
.status-resolved{
    background:#f1f5f9;
    color:#475569;
}

.ticket-chevron{
    font-size:20px;
    color:#98a2b3;
    transition:transform .24s ease;
}

.support-ticket-card.is-open .ticket-chevron{
    transform:rotate(180deg);
}

/* Accordion animation */
.ticket-panel{
    display:grid;
    grid-template-rows:0fr;
    opacity:0;
    transform:translateY(-8px);
    transition:grid-template-rows .32s ease,opacity .24s ease,transform .24s ease;
}

.support-ticket-card.is-open .ticket-panel{
    grid-template-rows:1fr;
    opacity:1;
    transform:translateY(0);
}

.ticket-panel-inner{
    min-height:0;
    overflow:hidden;
    border-top:1px solid #e4ebf5;
    background:linear-gradient(180deg,#fff 0%,#f6f9fd 100%);
}

/* Thread header */
.thread-header{
    min-height:82px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:18px 22px;
    border-bottom:1px solid #e4ebf5;
    background:linear-gradient(180deg,#fff 0%,#f6f9fd 100%);
}

.thread-header h2{
    margin:8px 0 0;
    color:#111827;
    font-size:24px;
    line-height:1.2;
    font-weight:950;
}

.thread-header p{
    margin:5px 0 0;
    color:#667085;
    font-size:13px;
    font-weight:750;
}

.thread-header a{
    min-height:40px;
    display:inline-flex;
    align-items:center;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    color:#147cff;
    padding:0 14px;
    text-decoration:none;
    font-weight:950;
}

/* Messages — keep more rounded because these are message bubbles */
.mail-thread-body{
    display:grid;
    gap:14px;
    padding:20px;
}

.mail-message{
    display:grid;
    grid-template-columns:50px minmax(0,1fr);
    gap:12px;
    align-items:start;
}

.mail-avatar{
    width:50px;
    height:50px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#eaf4ff;
    color:#147cff;
    font-size:14px;
    font-weight:1000;
}

.mail-message.support .mail-avatar{
    background:#061326;
    color:#59c7ff;
}

.mail-card{
    border:1px solid #e4ebf5;
    border-radius:14px;
    background:#fff;
    padding:16px;
    box-shadow:0 8px 22px rgba(15,35,70,.035);
}

.mail-card header{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
}

.mail-card strong{
    color:#111827;
    font-weight:950;
}

.mail-card span{
    color:#667085;
    font-size:12px;
    font-weight:750;
}

.mail-card p{
    margin:12px 0 0;
    color:#344054;
    line-height:1.75;
    font-weight:750;
}

.mail-message.support .mail-card{
    background:#eef6ff;
    border-color:#d8eaff;
}

/* Reply */
.reply-box{
    padding:18px;
    border-top:1px solid #e4ebf5;
    display:grid;
    gap:12px;
    background:#fff;
}

.reply-box textarea{
    min-height:120px;
    resize:vertical;
    padding:14px;
}

.reply-box > div{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
}

.reply-box span{
    color:#667085;
    font-size:13px;
    font-weight:750;
}

.reply-box button{
    min-height:44px;
    padding:0 18px;
}

/* Closed */
.closed-note{
    margin:18px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#f8fbff;
    padding:16px;
}

.closed-note strong{
    color:#111827;
    font-weight:950;
}

.closed-note p{
    margin:6px 0 12px;
    color:#667085;
    font-weight:750;
}

.closed-note a{
    min-height:38px;
    display:inline-flex;
    align-items:center;
    padding:0 14px;
    border-radius:3px;
    background:#147cff;
    color:#fff;
    text-decoration:none;
    font-weight:950;
}

/* Empty */
.tickets-empty{
    padding:34px;
    text-align:center;
    color:#667085;
    font-weight:850;
    background:#fff;
    border:1px solid #dfe7f3;
    border-radius:4px;
    box-shadow:0 9px 24px rgba(15,35,70,.055);
}

/* New ticket form */
.new-ticket-section{
    margin-top:18px;
}

.new-ticket-form{
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    box-shadow:0 9px 24px rgba(15,35,70,.055);
    padding:22px;
    display:grid;
    gap:16px;
}

.new-ticket-form header span{
    display:inline-flex;
    min-height:28px;
    align-items:center;
    padding:0 10px;
    background:#147cff;
    color:#fff;
    font-size:12px;
    font-weight:950;
}

.new-ticket-form h2{
    margin:10px 0 0;
    color:#111827;
    font-size:26px;
    font-weight:950;
}

.new-ticket-form p{
    margin:7px 0 0;
    color:#667085;
    font-weight:750;
}

.new-ticket-grid{
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:12px;
}

.new-ticket-form label{
    display:grid;
    gap:7px;
}

.new-ticket-form label span{
    color:#344054;
    font-size:13px;
    font-weight:950;
}

.new-ticket-form input,
.new-ticket-form select{
    min-height:46px;
    padding:0 14px;
}

.new-ticket-form textarea{
    min-height:140px;
    resize:vertical;
    padding:14px;
}

.new-ticket-form button{
    min-height:48px;
    padding:0 20px;
    justify-self:start;
}

/* Reduced motion */
@media(prefers-reduced-motion: reduce){
    .mf-support-accordion *,
    .mf-support-accordion *::before,
    .mf-support-accordion *::after{
        scroll-behavior:auto !important;
        transition:none !important;
        animation:none !important;
    }
}

/* Responsive */
@media(max-width:760px){
    .mf-support-accordion{
        width:min(100% - 18px,1380px);
        padding-top:16px;
    }

    .support-head{
        margin-inline:-9px;
        border-radius:0 0 4px 4px;
        grid-template-columns:1fr;
        padding:28px 22px;
    }

    .support-head h1{
        font-size:40px;
        letter-spacing:-1px;
    }

    .support-head p{
        font-size:16px;
    }

    .support-head > a{
        width:100%;
    }

    .support-toolbar{
        grid-template-columns:1fr;
    }

    .support-filters{
        justify-content:flex-start;
    }

    .ticket-row-button{
        grid-template-columns:10px 38px minmax(0,1fr) 26px;
        padding:12px;
    }

    .ticket-avatar{
        width:38px;
        height:38px;
    }

    .ticket-meta{
        grid-column:3;
        display:flex;
        justify-content:flex-start;
    }

    .ticket-chevron{
        grid-column:4;
        grid-row:1;
    }

    .thread-header{
        display:grid;
        padding:16px;
    }

    .thread-header h2{
        font-size:21px;
    }

    .mail-thread-body{
        padding:14px;
    }

    .mail-message{
        grid-template-columns:40px minmax(0,1fr);
    }

    .mail-avatar{
        width:40px;
        height:40px;
    }

    .mail-card{
        padding:13px;
    }

    .mail-card header,
    .reply-box > div{
        display:grid;
    }

    .new-ticket-grid{
        grid-template-columns:1fr;
    }
}


/* Gmail-like selection checkboxes */
.support-bulk-form{
    display:grid;
    gap:10px;
}

.support-bulk-toolbar{
    min-height:48px;
    display:none;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    box-shadow:0 9px 24px rgba(15,35,70,.055);
    position:sticky;
    top:8px;
    z-index:20;
}

.support-bulk-form.has-selection .support-bulk-toolbar{
    display:flex;
}

.support-bulk-toolbar strong{
    color:#111827;
    font-weight:950;
    margin-inline-end:8px;
}

.support-bulk-toolbar button{
    min-height:32px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#f8fbff;
    color:#344054;
    font-family:inherit;
    font-weight:900;
    cursor:pointer;
    padding:0 10px;
}

.support-bulk-toolbar button:hover{
    border-color:#147cff;
    color:#147cff;
}

.bulk-select-all,
.ticket-check{
    display:grid;
    place-items:center;
    cursor:pointer;
}

.bulk-select-all input,
.ticket-check input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.bulk-select-all span,
.ticket-check span{
    width:18px;
    height:18px;
    display:block;
    border:2px solid #cbd5e1;
    border-radius:3px;
    background:#fff;
    box-shadow:inset 0 0 0 2px #fff;
}

.bulk-select-all input:checked + span,
.ticket-check input:checked + span{
    background:#147cff;
    border-color:#147cff;
}

.bulk-select-all input:checked + span::after,
.ticket-check input:checked + span::after{
    content:"";
    width:8px;
    height:4px;
    display:block;
    border-right:2px solid #fff;
    border-bottom:2px solid #fff;
    transform:rotate(45deg);
    margin:4px auto 0;
}

.ticket-check{
    width:24px;
    height:24px;
}

.ticket-row-button{
    grid-template-columns:24px 14px 46px minmax(0,1fr) 120px 26px 30px;
}

.ticket-pin{
    color:#f59e0b;
    font-size:16px;
    font-weight:950;
}

.support-ticket-card.is-selected{
    border-color:#147cff;
    background:#f8fbff;
}

.support-ticket-card.is-selected .ticket-row-button{
    background:#f8fbff;
}

@media(max-width:760px){
    .support-bulk-toolbar{
        overflow:auto;
        position:static;
    }

    .support-bulk-toolbar button,
    .support-bulk-toolbar strong{
        white-space:nowrap;
    }

    .ticket-row-button{
        grid-template-columns:24px 10px 38px minmax(0,1fr) 26px;
    }

    .ticket-meta{
        grid-column:4;
    }

    .ticket-pin{
        grid-column:5;
        grid-row:1;
    }
}


/* Smooth premium bulk toolbar animation */
.support-bulk-toolbar{
    display:flex !important;
    max-height:0;
    min-height:0;
    padding-top:0;
    padding-bottom:0;
    margin-bottom:0;
    opacity:0;
    transform:translateY(-18px) scale(.985);
    overflow:hidden;
    pointer-events:none;
    border-color:transparent;
    box-shadow:0 0 0 rgba(15,35,70,0);
    backdrop-filter:blur(0);
    transition:
        max-height .72s cubic-bezier(.16,1,.3,1),
        min-height .72s cubic-bezier(.16,1,.3,1),
        padding .72s cubic-bezier(.16,1,.3,1),
        margin .72s cubic-bezier(.16,1,.3,1),
        opacity .48s ease,
        transform .72s cubic-bezier(.16,1,.3,1),
        border-color .48s ease,
        box-shadow .72s cubic-bezier(.16,1,.3,1),
        background-color .48s ease,
        backdrop-filter .72s ease;
}

.support-bulk-form.has-selection .support-bulk-toolbar{
    max-height:86px;
    min-height:48px;
    padding-top:8px;
    padding-bottom:8px;
    margin-bottom:10px;
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
    border-color:#dfe7f3;
    background:rgba(255,255,255,.92);
    box-shadow:0 14px 34px rgba(15,35,70,.10);
    backdrop-filter:blur(10px);
}

.support-bulk-toolbar button{
    transition:transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.support-bulk-toolbar button:hover{
    transform:translateY(-1px);
}

.support-bulk-toolbar .bulk-danger{
    background:#fff1f2;
    color:#c01048;
    border-color:#ffcdd8;
}

.support-bulk-toolbar .bulk-danger:hover{
    background:#ffe4e9;
    color:#a90d3a;
}

.support-ticket-card.is-removing{
    opacity:0;
    transform:translateX(-18px) scale(.985);
    max-height:0;
    margin:0;
    border-width:0;
    transition:opacity .32s ease, transform .32s ease, max-height .55s cubic-bezier(.16,1,.3,1), margin .55s ease, border-width .55s ease;
}

[data-bulk-action-form]{
    display:none !important;
}
.support-bulk-toolbar .bulk-danger{
    background:#fff1f2;
    color:#c01048;
    border-color:#ffcdd8;
}
.support-ticket-card.is-removing{
    opacity:0;
    transform:translateX(-18px) scale(.985);
    max-height:0 !important;
    margin:0;
    border-width:0;
    transition:opacity .32s ease, transform .32s ease, max-height .55s cubic-bezier(.16,1,.3,1), margin .55s ease, border-width .55s ease;
}


/* Advanced support features */
.support-progress{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:1px;
    padding:12px 18px;
    border-bottom:1px solid #e4ebf5;
    background:#fff;
}

.support-progress span{
    position:relative;
    min-height:34px;
    display:grid;
    place-items:center;
    color:#667085;
    font-size:12px;
    font-weight:950;
    background:#f8fbff;
    border:1px solid #dfe7f3;
}

.support-progress span.done{
    color:#147cff;
    background:#eef6ff;
    border-color:#cfe4ff;
}

.support-progress span.done::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:#147cff;
    margin-inline-end:6px;
    display:inline-block;
}

.closed-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:12px;
}

.closed-actions form{
    margin:0;
}

.closed-actions button,
.closed-actions a,
.rating-mini button,
.draft-clear{
    min-height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 14px;
    border-radius:3px;
    border:1px solid #147cff;
    background:#147cff;
    color:#fff;
    font-family:inherit;
    text-decoration:none;
    font-weight:950;
    cursor:pointer;
}

.rating-mini{
    display:grid;
    grid-template-columns:1fr 160px minmax(180px,1fr) 110px;
    gap:8px;
    align-items:center;
    margin-top:12px;
}

.rating-mini strong{
    color:#111827;
    font-weight:950;
}

.rating-mini input,
.rating-mini select{
    min-height:38px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    padding:0 10px;
    font-family:inherit;
    font-weight:850;
}

.reply-box .draft-clear{
    background:#fff;
    color:#147cff;
    border-color:#dfe7f3;
}

.support-help-center{
    margin-top:18px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    box-shadow:0 9px 24px rgba(15,35,70,.055);
    padding:22px;
}

.support-help-center header{
    text-align:center;
    margin-bottom:18px;
}

.support-help-center header span{
    display:inline-flex;
    min-height:28px;
    align-items:center;
    padding:0 10px;
    background:#147cff;
    color:#fff;
    font-size:12px;
    font-weight:950;
}

.support-help-center h2{
    margin:10px 0 0;
    color:#111827;
    font-size:26px;
    font-weight:950;
}

.support-help-center p{
    margin:7px 0 0;
    color:#667085;
    font-weight:750;
}

.help-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.help-grid article{
    min-height:118px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#f8fbff;
    padding:15px;
}

.help-grid b{
    display:block;
    color:#111827;
    font-weight:950;
    margin-bottom:7px;
}

.help-grid p{
    margin:0;
    color:#475467;
    line-height:1.55;
    font-weight:750;
}

@media(max-width:900px){
    .rating-mini{
        grid-template-columns:1fr;
    }

    .help-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:560px){
    .support-progress{
        grid-template-columns:1fr;
    }

    .help-grid{
        grid-template-columns:1fr;
    }
}


/* Realtime typing indicator */
.typing-indicator{
    display:none;
    align-items:center;
    gap:5px;
    padding:10px 18px;
    border-top:1px solid #e4ebf5;
    background:#fbfdff;
    color:#147cff;
    font-weight:950;
    font-size:13px;
}
.typing-indicator.is-visible{
    display:flex;
}
.typing-indicator span{
    width:6px;
    height:6px;
    border-radius:50%;
    background:#147cff;
    animation:typingPulse 1s infinite ease-in-out;
}
.typing-indicator span:nth-child(2){animation-delay:.15s}
.typing-indicator span:nth-child(3){animation-delay:.30s}
.typing-indicator b{
    margin-inline-start:6px;
}
@keyframes typingPulse{
    0%,80%,100%{opacity:.25;transform:translateY(0)}
    40%{opacity:1;transform:translateY(-4px)}
}


/* Typing indicator fixed placement */
.typing-indicator,
.typing-indicator.admin-side,
.typing-indicator.user-side{
    display:flex;
    width:fit-content;
    max-width:92%;
    align-items:center;
    gap:5px;
    margin:10px 18px 14px auto;
    padding:10px 14px;
    border:1px solid #dfe7f3;
    border-radius:14px;
    background:#fff;
    color:#147cff;
    font-weight:950;
    font-size:13px;
    box-shadow:0 8px 22px rgba(15,35,70,.045);
    opacity:0;
    transform:translateY(8px);
    pointer-events:none;
    height:0;
    min-height:0;
    overflow:hidden;
    transition:opacity .22s ease, transform .22s ease, height .22s ease, min-height .22s ease, margin .22s ease, padding .22s ease;
}
.typing-indicator.is-visible,
.typing-indicator.admin-side.is-visible,
.typing-indicator.user-side.is-visible{
    opacity:1;
    transform:translateY(0);
    height:auto;
    min-height:40px;
    overflow:visible;
}
.typing-indicator:not(.is-visible){
    margin-top:0;
    margin-bottom:0;
    padding-top:0;
    padding-bottom:0;
    border-width:0;
}
.typing-indicator span{
    width:6px;
    height:6px;
    border-radius:50%;
    background:#147cff;
    animation:typingPulse 1s infinite ease-in-out;
    flex:0 0 auto;
}
.typing-indicator span:nth-child(2){animation-delay:.15s}
.typing-indicator span:nth-child(3){animation-delay:.30s}
.typing-indicator b{
    margin-inline-start:6px;
    color:#147cff;
}
@keyframes typingPulse{
    0%,80%,100%{opacity:.25;transform:translateY(0)}
    40%{opacity:1;transform:translateY(-4px)}
}


/* =========================================================
   Music FM — Messages Polish Pass
   Clean SVG icons, stronger V2 layout, mobile app feel
========================================================= */

.mf-support-accordion{
    --mf-blue:#147cff;
    --mf-cyan:#59c7ff;
    --mf-ink:#111827;
    --mf-muted:#667085;
    --mf-line:#dfe7f3;
    --mf-soft:#f8fbff;
}

.support-head{
    position:relative;
    isolation:isolate;
    min-height:260px;
    background:
        radial-gradient(circle at 18% 0%,rgba(89,199,255,.22),transparent 34%),
        radial-gradient(circle at 80% 20%,rgba(20,124,255,.18),transparent 34%),
        linear-gradient(135deg,#071832 0%,#08295b 52%,#031126 100%);
    border-color:rgba(20,124,255,.18);
    box-shadow:0 14px 36px rgba(15,35,70,.13), inset 0 1px 0 rgba(255,255,255,.06);
}
.support-head::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:-1;
    background:repeating-linear-gradient(90deg,rgba(255,255,255,.018) 0,rgba(255,255,255,.018) 1px,transparent 1px,transparent 118px);
    opacity:.52;
}
.support-head span,
.new-ticket-form header span,
.support-help-center header span{
    border-radius:3px;
    box-shadow:0 10px 22px rgba(20,124,255,.22);
}
.support-head > a,
.support-search button,
.new-ticket-form button,
.reply-box button:not(.draft-clear){
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.support-head > a:hover,
.support-search button:hover,
.new-ticket-form button:hover,
.reply-box button:not(.draft-clear):hover{
    transform:translateY(-2px);
    box-shadow:0 14px 28px rgba(20,124,255,.22);
}

.support-toolbar,
.new-ticket-form,
.support-help-center,
.support-ticket-card,
.tickets-empty{
    box-shadow:0 9px 24px rgba(15,35,70,.055);
}
.support-filters a,
.ticket-row-button,
.support-ticket-card,
.mail-card,
.thread-header a,
.closed-actions button,
.closed-actions a,
.rating-mini button,
.draft-clear{
    transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.support-filters a:hover,
.thread-header a:hover,
.closed-actions button:hover,
.closed-actions a:hover,
.rating-mini button:hover,
.draft-clear:hover{
    transform:translateY(-1px);
    border-color:rgba(20,124,255,.30);
    box-shadow:0 10px 22px rgba(15,35,70,.075);
}
.support-ticket-card.is-open{
    transform:none;
}
.ticket-row-button{
    position:relative;
}
.ticket-row-button::after{
    content:"";
    position:absolute;
    inset:auto 0 0 0;
    height:3px;
    background:linear-gradient(90deg,var(--mf-cyan),var(--mf-blue));
    opacity:0;
    transition:opacity .18s ease;
}
.support-ticket-card.is-open .ticket-row-button::after,
.support-ticket-card:hover .ticket-row-button::after{
    opacity:1;
}
.ticket-avatar{
    overflow:hidden;
    border-radius:50%;
    border:1px solid #dbeafe;
    box-shadow:inset 0 0 0 1px rgba(20,124,255,.05);
}
.ticket-avatar svg,
.ticket-pin svg,
.ticket-chevron svg{
    width:20px;
    height:20px;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.ticket-pin{
    display:grid;
    place-items:center;
    color:#f59e0b;
}
.ticket-chevron{
    display:grid;
    place-items:center;
}
.ticket-chevron svg{
    width:18px;
    height:18px;
}
.ticket-info strong{
    letter-spacing:-.15px;
}
.ticket-status{
    border:1px solid transparent;
}
.status-new{border-color:#ffd1dc}
.status-in_progress{border-color:#cfe4ff}
.status-waiting_user{border-color:#fed7aa}
.status-answered{border-color:#bbf7d0}
.status-closed,.status-resolved{border-color:#e2e8f0}

.ticket-panel-inner{
    background:
        radial-gradient(circle at 18% 0%,rgba(89,199,255,.07),transparent 30%),
        linear-gradient(180deg,#fff 0%,#f6f9fd 100%);
}
.thread-header{
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}
.support-progress span{
    border-radius:4px;
}
.support-progress span.done::before{
    display:none;
}
.support-progress span.done{
    box-shadow:inset 0 -2px 0 var(--mf-blue);
}

.mail-thread-body{
    background:
        linear-gradient(180deg,rgba(248,251,255,.55),rgba(255,255,255,.75));
}
.mail-message.mine{
    grid-template-columns:minmax(0,1fr) 50px;
}
.mail-message.mine .mail-avatar{
    grid-column:2;
    grid-row:1;
    background:linear-gradient(135deg,#147cff,#59c7ff);
    color:#fff;
}
.mail-message.mine .mail-card{
    grid-column:1;
    grid-row:1;
    justify-self:end;
    width:min(720px,100%);
    background:#147cff;
    border-color:#147cff;
    color:#fff;
    box-shadow:0 12px 28px rgba(20,124,255,.18);
}
.mail-message.mine .mail-card strong,
.mail-message.mine .mail-card p{
    color:#fff;
}
.mail-message.mine .mail-card span{
    color:rgba(255,255,255,.76);
}
.mail-message.support .mail-card{
    width:min(720px,100%);
}
.mail-card{
    border-radius:10px;
}
.mail-message.mine .mail-card{
    border-radius:10px;
}
.mail-card p{
    word-break:break-word;
}
.reply-box{
    position:relative;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}
.reply-box textarea:focus,
.new-ticket-form input:focus,
.new-ticket-form select:focus,
.new-ticket-form textarea:focus,
.support-search input:focus,
.rating-mini input:focus,
.rating-mini select:focus{
    border-color:var(--mf-blue);
    box-shadow:0 0 0 3px rgba(20,124,255,.10);
}
.reply-box > div{
    flex-wrap:wrap;
}
.reply-box .draft-clear{
    color:var(--mf-blue);
}

.help-grid article,
.new-ticket-form,
.support-help-center{
    position:relative;
    overflow:hidden;
}

.help-grid article:hover{
    background:#fff;
    border-color:rgba(20,124,255,.24);
    box-shadow:0 12px 28px rgba(15,35,70,.075);
}

/* Hide old text-only symbols if a browser leaves inline artifacts */
.ticket-avatar{font-size:0}
.ticket-avatar svg{font-size:16px}
.ticket-pin{font-size:0}
.ticket-chevron{font-size:0}

@media(max-width:760px){
    .support-head{
        min-height:auto;
    }
    .support-toolbar{
        gap:12px;
    }
    .support-search{
        grid-template-columns:1fr;
    }
    .support-search button{
        min-height:44px;
    }
    .support-filters{
        padding-bottom:2px;
        scrollbar-width:none;
    }
    .support-filters::-webkit-scrollbar{display:none}
    .support-ticket-card{
        border-radius:4px;
    }
    .ticket-row-button{
        min-height:84px;
        gap:10px;
    }
    .ticket-info em{
        display:none;
    }
    .ticket-info small{
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    .ticket-status{
        min-height:24px;
        padding:0 8px;
        font-size:11px;
    }
    .mail-message,
    .mail-message.mine{
        grid-template-columns:36px minmax(0,1fr);
        gap:9px;
    }
    .mail-message.mine .mail-avatar{
        grid-column:1;
    }
    .mail-message.mine .mail-card{
        grid-column:2;
        justify-self:stretch;
    }
    .mail-avatar{
        width:36px;
        height:36px;
        font-size:12px;
    }
    .mail-card{
        border-radius:8px;
    }
    .mail-card header{
        gap:4px;
    }
    .reply-box{
        padding:14px;
    }
    .reply-box textarea{
        min-height:104px;
    }
    .reply-box button,
    .reply-box .draft-clear{
        width:100%;
        min-height:42px;
    }
    .support-progress{
        grid-template-columns:repeat(5,minmax(88px,1fr));
        overflow-x:auto;
        padding:10px 14px;
        scrollbar-width:none;
    }
    .support-progress::-webkit-scrollbar{display:none}
}
