@font-face {
    font-family: "Vazir-Medium-FD";
    src: url("fonts/Vazir-Medium-FD.woff2") format("woff2");
    font-display: swap;
}

:root {
    --support-ink: #0f172a;
    --support-muted: #64748b;
    --support-brand: #1b4b84;
    --support-brand-light: #2c5ea0;
    --support-brand-deep: #163a68;
    --support-cyan: #06b6d4;
    --support-cyan-soft: #dff7fb;
    --support-orange: #f47d2d;
    --support-bg: #f3f8fb;
    --support-line: rgba(27, 75, 132, 0.12);
    --support-surface: rgba(255, 255, 255, 0.84);
    --support-shadow: 0 28px 80px rgba(22, 58, 104, 0.13);
    --support-cutout: #eaf5f9;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--support-ink);
    background: var(--support-bg);
    font-family: "Vazir-Medium-FD", Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.support-auth {
    display: grid;
    grid-template-columns: minmax(380px, 42%) minmax(0, 1fr);
    min-height: 100vh;
    overflow: hidden;
    background: #fff;
    direction: ltr;
}
.support-auth__visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    background:
        linear-gradient(150deg, rgba(255,255,255,.7), rgba(235,246,252,.86)),
        #eef7fb;
    border-inline-end: 1px solid rgba(27,75,132,.08);
}
.support-auth__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(27,75,132,.13) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .32;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.support-orb {
    position: absolute;
    border-radius: 50%;
    filter: saturate(1.05);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 30px 80px rgba(27,75,132,.08);
}
.support-orb--one {
    width: 270px; height: 270px; left: -54px; bottom: 60px;
    background: rgba(6,182,212,.12);
}
.support-orb--two {
    width: 215px; height: 215px; right: -58px; top: 17%;
    background: rgba(27,75,132,.10);
}
.support-orb--three {
    width: 84px; height: 84px; left: 25%; top: 17%;
    background: linear-gradient(145deg, rgba(244,125,45,.84), rgba(244,125,45,.48));
    box-shadow: 0 28px 60px rgba(244,125,45,.2);
}
.support-glass-shape {
    position: absolute;
    width: 210px;
    height: 260px;
    border: 1px solid rgba(27,75,132,.12);
    border-radius: 40px;
    background: rgba(255,255,255,.42);
    backdrop-filter: blur(20px);
    box-shadow: 0 26px 70px rgba(27,75,132,.08);
}
.support-glass-shape--top { left: -112px; top: 10%; transform: rotate(-4deg); }
.support-glass-shape--bottom { right: -128px; bottom: -100px; transform: rotate(8deg); }
.support-auth__visual-copy {
    position: absolute;
    z-index: 2;
    left: 50%; top: 54%;
    width: min(300px, 68%);
    transform: translate(-50%, -50%);
    text-align: center;
    direction: rtl;
}
.support-auth__visual-copy p {
    margin: 18px 0 0;
    color: var(--support-brand-deep);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.8;
}
.support-auth__visual-icon {
    display: grid;
    width: 76px; height: 76px;
    margin: auto;
    place-items: center;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 26px;
    background: linear-gradient(135deg, var(--support-brand-deep), var(--support-brand-light));
    color: #fff;
    font-size: 28px;
    box-shadow: 0 20px 50px rgba(27,75,132,.24);
}
.support-auth__content {
    display: grid;
    min-width: 0;
    padding: 48px clamp(28px, 7vw, 110px);
    place-items: center;
    direction: rtl;
    background:
        radial-gradient(circle at 88% 8%, rgba(6,182,212,.07), transparent 26%),
        #fff;
}
.support-auth__content-inner { width: min(100%, 520px); }
.support-auth .glass { padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.support-auth .auth { width: 100%; max-width: none; margin: 0; }
.support-auth .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 52px;
    text-decoration: none;
}
.support-auth .auth-brand img { width: 142px; height: auto; display: block; }
.support-auth .auth-brand span {
    padding-inline-start: 14px;
    border-inline-start: 1px solid var(--support-line);
    color: var(--support-muted);
    font-size: 13px;
}
.support-auth .auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--support-brand-light);
    font-size: 13px;
    font-weight: 900;
}
.auth-phone-field { display: flex; min-height: 56px; align-items: stretch; overflow: hidden; border: 1px solid rgba(27,75,132,.16); border-radius: 15px; background: rgba(248,252,254,.9); transition: .2s ease; }
.auth-phone-field:focus-within { border-color: rgba(44,94,160,.65); background: #fff; box-shadow: 0 0 0 4px rgba(44,94,160,.09); }
.auth-phone-field > span { display: grid; padding: 0 17px; place-items: center; border-inline-end: 1px solid var(--support-line); background: #edf6fb; color: var(--support-brand); font-size: 13px; font-weight: 900; }
.auth-phone-field input { min-height: 54px; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }
.auth-phone-field input:focus { background: transparent; }
.auth-privacy { display: flex; margin: 22px 0 0; align-items: center; justify-content: center; gap: 8px; color: #94a3b8; font-size: 11px; line-height: 1.8; }
.auth-back { display: inline-flex; margin: 0 0 28px; align-items: center; gap: 8px; color: var(--support-brand); font-size: 12px; text-decoration: none; }
.auth-trust-note { display: flex; width: max-content; max-width: 100%; margin: -12px 0 24px; padding: 9px 11px; align-items: center; gap: 10px; border: 1px solid rgba(27,75,132,.09); border-radius: 13px; background: #f7fafc; }
.auth-trust-note > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #edf6fb; color: var(--support-brand-light); }
.auth-trust-note strong, .auth-trust-note small { display: block; }
.auth-trust-note strong { color: #334155; font-size: 11px; line-height: 1.7; }
.auth-trust-note small { color: #94a3b8; font-size: 9px; line-height: 1.7; }
.otp-fields { display: grid; grid-template-columns: repeat(5, 52px); justify-content: center; gap: 10px; }
.otp-digit { width: 52px; min-height: 56px; padding: 0; text-align: center; color: var(--support-brand-deep); font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.resend-form { margin-top: 12px; text-align: center; }
.resend-form .link-button:disabled { color: #94a3b8; cursor: default; }
.otp-delivery { display: flex; margin: 10px 0 24px; align-items: center; justify-content: space-between; gap: 12px; color: var(--support-muted); font-size: 11px; line-height: 1.8; }
.otp-delivery b { color: #334155; }
.otp-delivery a { display: inline-flex; flex: 0 0 auto; padding: 6px 9px; align-items: center; gap: 5px; border-radius: 9px; background: #edf6fb; color: var(--support-brand); font-size: 9px; text-decoration: none; }
.profile-brand { display: flex; margin-bottom: 32px; align-items: center; gap: 14px; }
.profile-brand img { width: 132px; height: auto; }
.profile-brand span { padding-inline-start: 14px; border-inline-start: 1px solid var(--support-line); color: var(--support-muted); font-size: 12px; }
.support-auth h1 {
    margin: 0;
    color: var(--support-ink);
    font-size: clamp(29px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: -.02em;
}
.support-auth .muted { max-width: 430px; margin: 13px 0 30px; }

.support-portal {
    min-height: 100vh;
    padding: 20px;
    background:
        radial-gradient(circle at 5% 5%, rgba(6,182,212,.11), transparent 25%),
        radial-gradient(circle at 95% 20%, rgba(27,75,132,.08), transparent 28%),
        linear-gradient(180deg, #fbfdfd 0%, #eef7fb 100%);
}
.support-nav {
    position: sticky;
    z-index: 20;
    top: 18px;
    display: flex;
    width: min(1180px, 100%);
    min-height: 70px;
    margin: 0 auto 2px;
    padding: 9px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 26px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 18px 55px rgba(22,58,104,.09);
    backdrop-filter: blur(20px);
}
.support-brand { display: flex; align-items: center; gap: 14px; color: var(--support-brand); text-decoration: none; }
.support-brand img { display: block; width: 132px; height: auto; }
.support-brand span { padding-inline-start: 16px; border-inline-start: 1px solid var(--support-line); font-size: 14px; font-weight: 900; color: var(--support-muted); }
.support-nav__links { display: flex; align-items: center; gap: 7px; }
.support-nav__links a, .support-nav__links button {
    display: inline-flex;
    min-height: 40px;
    padding: 0 13px;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--support-muted);
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}
.support-nav__links a:hover, .support-nav__links button:hover, .support-nav__links a.is-active { background: #edf6fb; color: var(--support-brand); }
.support-nav__links a.is-active { font-weight: 900; }
.support-nav__links form { margin: 0; }
.support-shell { width: min(1180px, 100%); margin: 0 auto; padding: 0 0 42px; }
.support-shell--profile { display: grid; min-height: calc(100vh - 40px); padding: 0; place-items: center; }

.support-panel {
    display: flex;
    width: min(1180px, 100%);
    min-height: calc(100vh - 40px);
    margin: 0 auto;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 30px;
    background: var(--support-surface);
    box-shadow: var(--support-shadow);
    backdrop-filter: blur(18px);
}
.support-panel .support-nav {
    position: relative;
    top: auto;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.support-panel .support-shell { display: flex; width: 100%; min-height: 0; margin: 0; padding-bottom: 0; flex: 1 1 auto; flex-direction: column; border-top: 3px solid var(--support-cutout); }
.support-panel .support-shell > .glass {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.support-panel .support-shell > .glass::before,
.support-panel .support-shell > .glass::after {
    content: "";
    position: absolute;
    z-index: 5;
    top: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--support-cutout);
}
.support-panel .support-shell > .glass::before { right: -9px; }
.support-panel .support-shell > .glass::after { left: -9px; }

.glass {
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 30px;
    background: var(--support-surface);
    box-shadow: var(--support-shadow);
    backdrop-filter: blur(18px);
}
.card { padding: clamp(23px, 3vw, 32px); }
.auth { width: min(100%, 520px); margin: 5vh auto; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.card h1 { margin: 8px 0 4px; font-size: clamp(24px, 2.5vw, 32px); font-weight: 900; line-height: 1.5; }
.muted { color: var(--support-muted); font-size: 12px; line-height: 1.9; }
label { display: block; margin: 17px 0 7px; color: #334155; font-size: 12px; font-weight: 900; }
input, textarea, select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid rgba(27,75,132,.16);
    border-radius: 15px;
    outline: none;
    background: rgba(248,252,254,.9);
    color: var(--support-ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus, textarea:focus, select:focus { border-color: rgba(44,94,160,.65); background: #fff; box-shadow: 0 0 0 4px rgba(44,94,160,.09); }
input:disabled { color: var(--support-muted); background: #edf3f7; cursor: not-allowed; }
textarea { min-height: 120px; resize: vertical; line-height: 1.9; }
.btn {
    display: inline-flex;
    min-height: 46px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--support-brand-deep), var(--support-brand-light));
    box-shadow: 0 14px 30px rgba(27,75,132,.18);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 19px 36px rgba(27,75,132,.23); }
.btn.alt { border: 1px solid rgba(27,75,132,.1); background: #f2f7fb; box-shadow: none; color: var(--support-brand); }
.btn.danger { background: #a63f4d; }
.link-button { padding: 10px 14px; border: 0; background: none; color: var(--support-brand); cursor: pointer; }
.notice, .errors {
    display: flex;
    margin: 0 0 18px;
    padding: 13px 15px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(44,94,160,.14);
    border-radius: 14px;
    background: #edf6fb;
    color: var(--support-brand-deep);
    font-size: 13px;
    line-height: 1.8;
}
.errors { border-color: rgba(190,65,65,.16); background: #fff2f2; color: #9e3542; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #edf6fb; color: var(--support-brand); font-size: 10px; font-weight: 900; }
.tabs { display: flex; gap: 20px; margin: 22px 0 14px; border-bottom: 1px solid var(--support-line); }
.tab { position: relative; padding: 11px 2px; border: 0; background: none; color: var(--support-muted); font-size: 12px; cursor: pointer; }
.tab::after { content: ""; position: absolute; right: 0; bottom: -1px; width: 0; height: 2px; border-radius: 2px; background: var(--support-brand-light); transition: width .2s ease; }
.tab.active { color: var(--support-brand); font-weight: 900; }
.tab.active::after { width: 100%; }
.ticket { display: block; margin: 9px 0; padding: 15px 17px; border: 1px solid var(--support-line); border-radius: 16px; background: rgba(255,255,255,.76); color: inherit; text-decoration: none; transition: .2s ease; }
.ticket:hover { transform: translateY(-2px); border-color: rgba(44,94,160,.28); background: #fff; box-shadow: 0 14px 30px rgba(27,75,132,.07); }
.ticket strong { color: var(--support-ink); font-size: 13px; }
.ticket small { display: block; margin-top: 6px; }
.tickets-page { display: flex; flex-direction: column; }
.tickets-page__heading { flex: 0 0 auto; }
.tickets-panel { min-height: 0; flex: 1 1 auto; }
.tickets-closed-badge { gap: 5px; color: #27845a; }
.tickets-empty {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: clamp(390px, 55vh, 560px);
    margin-top: 8px;
    padding: clamp(26px, 5vw, 64px);
    overflow: hidden;
    grid-template-columns: minmax(280px, .88fr) minmax(300px, 1.12fr);
    align-items: center;
    gap: clamp(28px, 6vw, 80px);
    border: 1px dashed rgba(44,94,160,.17);
    border-radius: 28px;
    background:
        radial-gradient(circle at 78% 35%, rgba(6,182,212,.1), transparent 27%),
        radial-gradient(circle at 15% 82%, rgba(244,125,45,.07), transparent 24%),
        linear-gradient(145deg, rgba(248,252,254,.95), rgba(237,247,251,.75));
}
.tickets-empty::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(27,75,132,.12) 1px, transparent 1px); background-size: 24px 24px; opacity: .22; mask-image: linear-gradient(90deg, transparent 5%, #000 55%, transparent 100%); }
.tickets-empty__visual { position: relative; width: clamp(230px, 26vw, 330px); aspect-ratio: 1; margin: auto; }
.tickets-empty__visual::before { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(27,75,132,.11); border-radius: 44% 56% 62% 38% / 45% 38% 62% 55%; background: rgba(255,255,255,.62); box-shadow: 0 34px 80px rgba(22,58,104,.12), inset 0 1px 0 rgba(255,255,255,.9); transform: rotate(-8deg); backdrop-filter: blur(15px); }
.tickets-empty__icon { position: absolute; z-index: 2; inset: 25%; display: grid; place-items: center; border-radius: 36px; background: linear-gradient(145deg, var(--support-brand-deep), var(--support-brand-light)); color: #fff; font-size: clamp(72px, 8vw, 112px); box-shadow: 0 28px 60px rgba(27,75,132,.3), inset 0 1px 1px rgba(255,255,255,.3); transform: rotate(4deg); }
.tickets-empty__icon i { filter: drop-shadow(0 10px 16px rgba(5,24,48,.18)); }
.tickets-empty__orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(44,94,160,.13); }
.tickets-empty__orbit--one { inset: 3%; animation: tickets-orbit 18s linear infinite; }
.tickets-empty__orbit--two { inset: 16%; border-style: dashed; animation: tickets-orbit 13s linear infinite reverse; }
.tickets-empty__spark { position: absolute; z-index: 3; display: grid; place-items: center; border: 5px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 16px 32px rgba(22,58,104,.16); }
.tickets-empty__spark--one { top: 8%; right: 10%; width: 55px; height: 55px; background: linear-gradient(145deg, #f47d2d, #ff9d5b); color: #fff; font-size: 18px; transform: rotate(8deg); }
.tickets-empty__spark--two { bottom: 12%; left: 8%; width: 48px; height: 48px; background: #fff; color: #2b9c70; font-size: 17px; transform: rotate(-7deg); }
.tickets-empty__copy { max-width: 480px; }
.tickets-empty__kicker { display: inline-flex; margin-bottom: 10px; padding: 7px 11px; align-items: center; gap: 7px; border-radius: 999px; background: rgba(6,182,212,.1); color: #087e93; font-size: 10px; font-weight: 900; }
.tickets-empty__copy h2 { margin: 0; color: var(--support-brand-deep); font-size: clamp(27px, 3.4vw, 43px); line-height: 1.45; letter-spacing: -.025em; }
.tickets-empty__copy p { max-width: 420px; margin: 10px 0 23px; color: var(--support-muted); font-size: 12px; line-height: 2; }
.tickets-empty__action { min-height: 50px; padding-inline: 21px; }
.tickets-empty--closed { background: linear-gradient(145deg, rgba(248,252,254,.96), rgba(242,247,250,.82)); }
.tickets-empty--closed .tickets-empty__icon { background: linear-gradient(145deg, #586b83, #8291a5); }
.tickets-empty--closed .tickets-empty__kicker { background: #edf2f6; color: #64748b; }
@keyframes tickets-orbit { to { transform: rotate(360deg); } }
.stage { display: inline-flex; padding: 6px 10px; border-inline-start: 3px solid var(--stage-color, var(--support-brand)); border-radius: 9px; background: #edf6fb; color: #334155; font-size: 10px; font-weight: 900; }
.chat { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; margin: 0; padding: 18px 20px; overflow: auto; border-block: 1px solid var(--support-line); background: linear-gradient(180deg, rgba(242,247,251,.92), rgba(248,252,254,.98)); }
.bubble { align-self: flex-end; width: max-content; max-width: min(72%, 620px); margin: 7px 0; padding: 10px 13px; border: 1px solid var(--support-line); border-radius: 15px 15px 5px 15px; background: #fff; color: #334155; font-size: 12px; line-height: 1.85; box-shadow: 0 7px 18px rgba(27,75,132,.045); }
.bubble.client { align-self: flex-start; margin-inline: 0; border: 0; border-radius: 15px 15px 15px 5px; background: linear-gradient(135deg, var(--support-brand-deep), var(--support-brand-light)); color: #fff; }
.bubble p { margin: 2px 0 0; white-space: pre-wrap; }
.bubble__label { margin-bottom: 2px; font-size: 9px; font-weight: 900; opacity: .72; }
.time { display: block; margin-top: 5px; color: #94a3b8; font-size: 10px; }
.bubble.client .time { color: rgba(255,255,255,.68); }
.files a { display: block; margin-top: 7px; color: var(--support-cyan); font-size: 12px; }
.bubble.client .files a { color: #dffafe; }
.field-error { display: flex; margin: 6px 1px 0; align-items: center; gap: 6px; color: #a13d49; font-size: 10px; line-height: 1.7; }
.label-hint { margin-inline-start: 6px; color: #94a3b8; font-size: 9px; font-weight: 500; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.page-heading__back { flex: 0 0 auto; order: 2; }
.form-actions { display: flex; margin-top: 20px; justify-content: flex-end; }
.ticket-create-card { width: 100%; }
.ticket-create-card form { max-width: 820px; }
.file-picker { display: flex; min-height: 86px; margin-top: 7px; padding: 14px 16px; align-items: center; gap: 13px; border: 1px dashed rgba(44,94,160,.35); border-radius: 16px; background: rgba(242,247,251,.72); cursor: pointer; transition: .2s ease; }
.file-picker:hover { border-color: var(--support-brand-light); background: #f7fbfd; }
.file-picker input, .composer-attachment input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.file-picker__icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: #e5f2f8; color: var(--support-brand); font-size: 17px; }
.file-picker__copy { min-width: 0; flex: 1; }
.file-picker__copy strong, .file-picker__copy small { display: block; }
.file-picker__copy strong { color: #334155; font-size: 12px; }
.file-picker__copy small { margin-top: 3px; color: #94a3b8; font-size: 9px; font-weight: 500; }
.file-picker__action { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--support-line); border-radius: 10px; background: #fff; color: var(--support-brand); font-size: 10px; }
.selected-files { display: flex; margin-top: 8px; gap: 6px; flex-wrap: wrap; }
.selected-file { display: inline-flex; max-width: 230px; padding: 5px 8px; align-items: center; gap: 5px; overflow: hidden; border-radius: 8px; background: #edf6fb; color: #475569; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.ticket-chat-card { position: relative; display: flex; height: 100%; min-height: 530px; overflow: hidden; flex-direction: column; border-radius: 28px; }
.ticket-chat-head { display: flex; padding: 18px 22px; align-items: center; justify-content: space-between; gap: 24px; }
.ticket-chat-head__title { min-width: 0; }
.ticket-chat-head__title h1 { margin: 7px 0 0; color: var(--support-ink); font-size: clamp(20px, 2vw, 28px); line-height: 1.45; }
.ticket-chat-head__meta { display: flex; align-items: center; gap: 8px; }
.ticket-reference { color: #718096; font-size: 9px; font-weight: 900; }
.ticket-chat-head__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.ticket-chat-head__actions form { margin: 0; }
.ticket-chat-head__back { flex: 0 0 auto; }
.ticket-resolve-button { min-height: 42px; padding-inline: 15px; background: #102d52; font-size: 11px; }
.ticket-composer-wrap { padding: 11px 14px 8px; background: rgba(255,255,255,.82); }
.composer { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: 54px; overflow: hidden; align-items: stretch; border: 1px solid rgba(27,75,132,.16); border-radius: 15px; background: #f8fcfe; }
.composer:focus-within { border-color: rgba(44,94,160,.5); box-shadow: 0 0 0 4px rgba(44,94,160,.07); }
.composer textarea { min-height: 52px; max-height: none; padding: 14px; overflow-y: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; line-height: 1.85; resize: none; }
.composer__actions { display: flex; padding: 6px; align-items: center; gap: 5px; }
.composer-attachment { display: inline-flex; min-height: 40px; margin: 0; padding: 0 10px; align-items: center; gap: 6px; border-radius: 10px; color: var(--support-muted); font-size: 10px; cursor: pointer; }
.composer-attachment:hover { background: #edf6fb; color: var(--support-brand); }
.composer__send { min-height: 40px; padding-inline: 14px; border-radius: 10px; font-size: 11px; }
.selected-files--composer { margin: 6px 2px 0; }
.composer-error { margin: 0 2px 7px; }
.ticket-closed { display: flex; padding: 12px 16px; align-items: center; justify-content: center; gap: 8px; background: #edf6fb; color: var(--support-brand); font-size: 11px; }

.ticket-chat-card.is-closed .chat { pointer-events: none; filter: blur(4px); opacity: .2; transform: scale(1.015); }
.ticket-closed-wash { position: absolute; z-index: 6; inset: 76px 0 0; background: rgba(238,247,251,.42); backdrop-filter: blur(1px); }
.ticket-rating-card {
    position: absolute;
    z-index: 8;
    top: calc(50% + 38px);
    left: 50%;
    width: min(560px, calc(100% - 36px));
    padding: 24px;
    border: 1px solid rgba(255,255,255,.96);
    border-radius: 25px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 28px 80px rgba(22,58,104,.2);
    text-align: center;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(22px);
}
.ticket-rating-card__icon { display: grid; width: 46px; height: 46px; margin: -47px auto 10px; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #f47d2d, #ff9a57); color: #fff; font-size: 18px; box-shadow: 0 12px 28px rgba(244,125,45,.28); }
.ticket-rating-card__eyebrow { margin: 0 0 3px; color: #3f9b6a; font-size: 10px; font-weight: 900; }
.ticket-rating-card h2 { margin: 0; color: var(--support-brand-deep); font-size: 21px; }
.ticket-rating-card__lead { margin: 6px 0 14px; color: var(--support-muted); font-size: 11px; line-height: 1.8; }
.rating-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.rating-form fieldset { margin: 0; padding: 10px; border: 1px solid var(--support-line); border-radius: 14px; }
.rating-form legend { padding: 0 6px; color: #475569; font-size: 10px; font-weight: 900; }
.star-rating { display: inline-flex; direction: rtl; }
.star-rating input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-rating label { margin: 0; padding: 2px 3px; color: #dbe3ea; font-size: 20px; cursor: pointer; transition: color .15s ease, transform .15s ease; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #f6b51d; }
.star-rating label:hover { transform: scale(1.12); }
.rating-form textarea { min-height: 58px; margin-top: 11px; padding: 9px 12px; font-size: 10px; }
.rating-form__submit { min-height: 40px; margin-top: 10px; padding-inline: 18px; font-size: 10px; }
.rating-result { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.rating-result > div { padding: 13px; border: 1px solid var(--support-line); border-radius: 14px; background: #f8fbfd; }
.rating-result span, .rating-result strong { display: block; }
.rating-result span { color: var(--support-muted); font-size: 9px; }
.rating-result strong { margin-top: 3px; color: #f6a914; font-size: 22px; }
.rating-result strong small { color: #94a3b8; font-size: 9px; }
.rating-result__comment { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: #f5f9fb; color: #64748b; font-size: 10px; line-height: 1.8; }
.rating-result__back { min-height: 40px; margin-top: 12px; padding-inline: 15px; font-size: 10px; }

body.support-modal-open { overflow: hidden; }
.support-modal[hidden] { display: none; }
.support-modal { position: fixed; z-index: 100; inset: 0; display: grid; padding: 20px; place-items: center; direction: rtl; }
.support-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(8,25,47,.58); backdrop-filter: blur(7px); cursor: default; animation: support-modal-fade .2s ease both; }
.support-modal__dialog { position: relative; width: min(430px, 100%); padding: 30px 28px 25px; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: rgba(255,255,255,.97); box-shadow: 0 35px 100px rgba(7,28,55,.3); text-align: center; animation: support-modal-rise .24s ease both; }
.support-modal__icon { display: grid; width: 58px; height: 58px; margin: -59px auto 15px; place-items: center; border: 5px solid #fff; border-radius: 20px; background: linear-gradient(135deg, var(--support-brand-deep), var(--support-brand-light)); color: #fff; font-size: 22px; box-shadow: 0 16px 34px rgba(27,75,132,.25); }
.support-modal__eyebrow { margin: 0 0 4px; color: var(--support-orange); font-size: 10px; font-weight: 900; }
.support-modal__dialog h2 { margin: 0; color: var(--support-brand-deep); font-size: 22px; }
.support-modal__dialog > p:last-of-type { margin: 10px auto 22px; max-width: 340px; color: var(--support-muted); font-size: 11px; line-height: 2; }
.support-modal__actions { display: flex; justify-content: center; gap: 9px; }
.support-modal__actions .btn { min-height: 43px; font-size: 10px; }
.support-modal__confirm { background: #102d52; }
@keyframes support-modal-fade { from { opacity: 0; } }
@keyframes support-modal-rise { from { opacity: 0; transform: translateY(14px) scale(.97); } }

.profile-card { width: 100%; }
.profile-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.profile-card__icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: #edf6fb; color: var(--support-brand); font-size: 18px; }
.profile-form { margin-top: 12px; }
.profile-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.profile-form__actions { display: flex; margin-top: 20px; justify-content: flex-end; }
.readonly-field { display: grid; min-height: 48px; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 5px; overflow: hidden; border: 1px solid rgba(27,75,132,.16); border-radius: 15px; background: #edf3f7; }
.readonly-field > i { display: grid; place-items: center; color: #94a3b8; }
.readonly-field input { min-width: 0; min-height: 46px; padding: 9px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.readonly-field > span { margin-inline-end: 8px; padding: 4px 7px; border-radius: 7px; background: rgba(27,75,132,.08); color: var(--support-brand); font-size: 8px; white-space: nowrap; }
.profile-logout-form { margin-top: 9px; text-align: center; }

@media (min-width: 681px) {
    body.support-v2--profile,
    body.support-v2--ticket { overflow: hidden; }
    .support-v2--profile .support-portal,
    .support-v2--ticket .support-portal { height: 100vh; min-height: 0; overflow: hidden; }
    .support-v2--profile .support-shell:not(.support-shell--profile) { height: calc(100vh - 110px); padding-bottom: 20px; }
    .support-v2--profile .profile-card--regular { max-height: 100%; }
    .support-v2--profile .support-shell--profile { height: calc(100vh - 40px); min-height: 0; }
    .support-v2--profile .profile-required-card { margin: 0 auto; padding-block: 24px; }
    .support-v2--profile .profile-required-card .profile-brand { margin-bottom: 20px; }
    .support-v2--profile .profile-required-card .muted { margin-block: 6px 10px; }
    .support-v2--profile .profile-required-card label { margin-top: 11px; }
    .support-v2--ticket .support-panel { height: calc(100vh - 40px); min-height: 0; }
    .support-v2--ticket .support-shell { height: auto; padding-bottom: 0; }
}

@media (max-width: 900px) {
    .support-auth { grid-template-columns: 33% minmax(0,1fr); }
    .support-auth__visual-copy { display: none; }
    .support-auth__content { padding-inline: 38px; }
    .support-orb--three { left: 36%; }
    .support-nav { align-items: flex-start; }
    .support-brand span { display: none; }
    .profile-form__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
    .support-auth { display: block; position: relative; background: #f8fcfe; }
    .support-auth__visual { position: fixed; inset: 0; min-height: 100%; opacity: .9; }
    .support-auth__visual-copy { display: none; }
    .support-orb--one { width: 210px; height: 210px; }
    .support-orb--two { width: 180px; height: 180px; }
    .support-auth__content { position: relative; z-index: 3; min-height: 100vh; padding: 30px 20px; background: rgba(248,252,254,.45); backdrop-filter: blur(2px); }
    .support-auth .glass { padding: 27px 23px; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: rgba(255,255,255,.86); box-shadow: var(--support-shadow); backdrop-filter: blur(22px); }
    .support-auth .auth-brand { margin-bottom: 34px; }
    .support-auth .auth-brand img { width: 126px; }
    .support-auth h1 { font-size: 29px; }
    .support-portal { padding: 12px; }
    .support-panel { border-radius: 20px; }
    .support-nav { top: 9px; min-height: 66px; padding: 9px 11px; border-radius: 20px; }
    .support-brand img { width: 112px; }
    .support-nav__links { gap: 1px; }
    .support-nav__links a, .support-nav__links button { min-height: 42px; padding: 0 11px; }
    .support-nav__links span { display: none; }
    .card { padding: 23px 18px; border-radius: 24px; }
    .otp-fields { grid-template-columns: repeat(5, minmax(42px, 48px)); gap: 7px; }
    .otp-digit { width: 100%; min-height: 52px; }
    .page-heading, .ticket-chat-head { gap: 14px; }
    .page-heading__back, .ticket-chat-head__back { min-height: 40px; padding-inline: 12px; }
    .ticket-chat-head { align-items: flex-start; }
    .ticket-chat-head__actions { flex-direction: column-reverse; align-items: stretch; }
    .ticket-resolve-button { padding-inline: 11px; font-size: 9px; }
    .file-picker { align-items: flex-start; flex-wrap: wrap; }
    .file-picker__copy { flex-basis: calc(100% - 60px); }
    .file-picker__action { margin-inline-start: 57px; }
    .profile-form__grid { grid-template-columns: 1fr; gap: 2px; }
    .ticket-chat-card { height: auto; min-height: calc(100vh - 108px); }
    .ticket-rating-card { top: calc(50% + 48px); padding: 20px 15px; }
    .rating-form__grid { grid-template-columns: 1fr; gap: 7px; }
    .ticket-rating-card__lead { margin-bottom: 9px; }
    .rating-form fieldset { padding-block: 7px; }
    .support-modal__dialog { padding: 27px 18px 20px; }
    .support-modal__actions { flex-direction: column-reverse; }
    .support-modal__actions .btn { width: 100%; }
    .chat { min-height: 390px; }
    .composer { grid-template-columns: 1fr; }
    .composer__actions { justify-content: space-between; }
    .composer .btn { width: auto; }
    .bubble { max-width: 90%; }
    .chat { padding: 14px; }
    .tickets-empty { min-height: 520px; padding: 28px 18px; grid-template-columns: 1fr; gap: 5px; text-align: center; }
    .tickets-empty__visual { width: 230px; }
    .tickets-empty__copy { margin: auto; }
    .tickets-empty__copy p { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .tickets-empty__orbit { animation: none; }
}
