/* ForumX Premium Yanıt Editörü V13 */
.forumx-premium-reply {
    --fxr-accent: #4f8cff;
    --fxr-accent-2: #246be8;
    --fxr-green: #41d3a2;
    --fxr-line: rgba(102, 159, 235, .22);
    --fxr-line-strong: rgba(81, 143, 255, .58);
    --fxr-text: #f3f7ff;
    --fxr-muted: #98a9be;
    position: relative;
    overflow: hidden;
    margin-top: 28px !important;
    margin-bottom: 28px !important;
    padding: 0 !important;
    border: 1px solid var(--fxr-line-strong) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 84% -10%, rgba(49, 109, 218, .19), transparent 35%),
        radial-gradient(circle at 0 100%, rgba(22, 74, 151, .12), transparent 38%),
        linear-gradient(145deg, rgba(20, 41, 67, .98), rgba(9, 23, 39, .99)) !important;
    box-shadow:
        0 22px 60px rgba(0, 8, 24, .34),
        inset 0 1px 0 rgba(255, 255, 255, .035),
        0 0 0 1px rgba(29, 92, 187, .06) !important;
    color: var(--fxr-text);
}

.forumx-premium-reply::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #3f8cff, #6f72ff 48%, #2d8df4);
    box-shadow: 0 0 18px rgba(79, 140, 255, .68);
}

.fxr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 25px 28px 20px;
}

.fxr-heading,
.fxr-header-actions,
.fxr-actions,
.fxr-file-button,
.fxr-file-chip,
.fxr-quote-preview {
    display: flex;
    align-items: center;
}

.fxr-heading {
    min-width: 0;
    gap: 15px;
}

.fxr-heading-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid rgba(91, 153, 255, .48);
    border-radius: 15px;
    color: #eaf2ff;
    background: linear-gradient(145deg, #397ff2, #2054c8);
    box-shadow: 0 12px 28px rgba(35, 100, 224, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.fxr-heading-icon .forumx-icon {
    width: 25px;
    height: 25px;
}

.fxr-heading h2 {
    margin: 0;
    color: #f7faff;
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.fxr-heading p {
    margin: 7px 0 0;
    color: var(--fxr-muted);
    font-size: .94rem;
}

.fxr-header-actions {
    flex: 0 0 auto;
    gap: 10px;
}

.fxr-draft-state {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(83, 202, 164, .22);
    border-radius: 999px;
    color: #62ddb4;
    background: rgba(30, 111, 91, .13);
    font-size: .88rem;
    font-weight: 760;
    white-space: nowrap;
}

.fxr-draft-state i {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 15%, transparent);
}

.fxr-draft-state[data-state="dirty"] {
    color: #f4c66a;
    border-color: rgba(244, 198, 106, .25);
    background: rgba(123, 89, 25, .15);
}

.fxr-draft-state[data-state="working"] {
    color: #78aaff;
    border-color: rgba(96, 153, 255, .3);
    background: rgba(41, 89, 163, .16);
}

.fxr-draft-state[data-state="error"] {
    color: #ff8299;
    border-color: rgba(255, 103, 132, .28);
    background: rgba(132, 34, 56, .16);
}

.fxr-collapse {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid rgba(111, 158, 215, .24);
    border-radius: 13px;
    color: #dbe8f8;
    background: rgba(42, 69, 100, .24);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.fxr-collapse:hover,
.fxr-collapse:focus-visible {
    outline: none;
    border-color: rgba(83, 148, 255, .55);
    background: rgba(57, 105, 175, .28);
}

.fxr-collapse svg {
    width: 21px;
    height: 21px;
    transition: transform .2s ease;
}

.forumx-premium-reply.is-collapsed .fxr-collapse svg {
    transform: rotate(180deg);
}

.fxr-body {
    padding: 0 28px 27px;
}

.fxr-form,
.fxr-editor,
.fxr-footer {
    min-width: 0;
}

.fxr-form {
    display: grid;
    gap: 18px;
}

.fxr-quote-preview {
    position: relative;
    gap: 12px;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid rgba(80, 141, 225, .18);
    border-left: 4px solid #4f8cff;
    border-radius: 13px;
    color: #dfe9f6;
    background: linear-gradient(90deg, rgba(42, 94, 168, .16), rgba(23, 52, 88, .12));
}

.fxr-quote-preview[hidden] {
    display: none !important;
}

.fxr-quote-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border-radius: 10px;
    color: #85b1ff;
    background: rgba(61, 120, 214, .2);
}

.fxr-quote-icon .forumx-icon {
    width: 19px;
    height: 19px;
}

.fxr-quote-preview > div {
    min-width: 0;
    flex: 1;
}

.fxr-quote-preview strong,
.fxr-quote-preview p {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fxr-quote-preview strong {
    color: #f0f5fc;
    font-size: .91rem;
}

.fxr-quote-preview p {
    margin: 4px 0 0;
    color: #aab9ca;
    font-size: .88rem;
}

.fxr-quote-preview > button,
.fxr-file-chip > button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #aebed1;
    background: rgba(48, 77, 111, .18);
    font: 500 1.25rem/1 system-ui, sans-serif;
    cursor: pointer;
}

.fxr-quote-preview > button:hover,
.fxr-file-chip > button:hover {
    color: #fff;
    background: rgba(74, 117, 170, .3);
}

.forumx-premium-reply .forumx-quill-shell {
    margin: 0 !important;
    overflow: visible !important;
}

.forumx-premium-reply .forumx-quill-frame {
    overflow: hidden !important;
    border: 1px solid rgba(95, 151, 222, .31) !important;
    border-radius: 17px !important;
    background: rgba(6, 20, 35, .78) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 15px 38px rgba(0, 7, 20, .23) !important;
}

.forumx-premium-reply .forumx-quill-shell.is-focused .forumx-quill-frame {
    border-color: rgba(80, 144, 255, .78) !important;
    box-shadow: 0 0 0 3px rgba(68, 134, 255, .12), 0 19px 44px rgba(0, 8, 24, .28) !important;
}

.forumx-premium-reply .forumx-quill-toolbar.ql-toolbar.ql-snow {
    min-height: 60px;
    border-bottom: 1px solid rgba(102, 154, 216, .18) !important;
    border-radius: 16px 16px 0 0 !important;
    background: linear-gradient(180deg, rgba(26, 53, 83, .86), rgba(12, 31, 51, .9)) !important;
}

.forumx-premium-reply .forumx-quill-toolbar-scroll {
    min-height: 60px;
    padding: 8px 10px;
}

.forumx-premium-reply .forumx-quill-toolbar .ql-formats {
    border-right-color: rgba(121, 164, 218, .18) !important;
}

.forumx-premium-reply .forumx-quill-toolbar.ql-snow button,
.forumx-premium-reply .forumx-quill-toolbar .forumx-quill-tool {
    color: #dce7f5;
}

.forumx-premium-reply .forumx-quill-toolbar.ql-snow button:hover,
.forumx-premium-reply .forumx-quill-toolbar.ql-snow button:focus-visible,
.forumx-premium-reply .forumx-quill-toolbar.ql-snow button.ql-active,
.forumx-premium-reply .forumx-quill-toolbar .forumx-quill-tool:hover,
.forumx-premium-reply .forumx-quill-toolbar .forumx-quill-tool:focus-visible,
.forumx-premium-reply .forumx-quill-toolbar .forumx-quill-tool[aria-expanded="true"] {
    color: #82adff;
    background: rgba(75, 133, 221, .16);
}

.forumx-premium-reply .forumx-quill-frame .ql-container.ql-snow,
.forumx-premium-reply .forumx-quill-frame .ql-editor {
    background: rgba(5, 18, 32, .9) !important;
}

.forumx-premium-reply .forumx-quill-frame .ql-editor {
    min-height: 270px !important;
    max-height: 62vh;
    padding: 25px 24px !important;
    color: #eaf1fa !important;
    font-size: 1rem;
    line-height: 1.72;
}

.forumx-premium-reply .forumx-quill-frame .ql-editor.ql-blank::before {
    left: 24px !important;
    right: 24px !important;
    color: #8395aa !important;
}

.forumx-premium-reply .forumx-quill-status.forumx-xf-status {
    min-height: 48px;
    padding-inline: 16px;
    border-top: 1px solid rgba(97, 148, 209, .16);
    border-radius: 0 0 16px 16px !important;
    background: rgba(20, 43, 70, .72);
}

.fxr-attachment-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(101, 151, 211, .22);
    border-radius: 15px;
    background: rgba(27, 51, 79, .33);
}

.fxr-file-button,
.fxr-file-chip {
    min-width: 0;
    min-height: 64px;
    padding: 10px 13px;
    border: 1px solid rgba(101, 151, 211, .2);
    border-radius: 12px;
    background: rgba(13, 31, 50, .56);
}

.fxr-file-button {
    gap: 12px;
    flex: 1 1 310px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.fxr-file-button:hover {
    border-color: rgba(81, 145, 255, .5);
    background: rgba(26, 58, 95, .54);
}

.fxr-file-button:active {
    transform: translateY(1px);
}

.fxr-file-button input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.fxr-file-icon,
.fxr-file-chip-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    color: #8bb3ff;
    background: rgba(61, 117, 204, .18);
}

.fxr-file-icon .forumx-icon,
.fxr-file-chip-icon .forumx-icon {
    width: 21px;
    height: 21px;
}

.fxr-file-button > span:nth-child(2),
.fxr-file-chip > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.fxr-file-button strong,
.fxr-file-chip strong {
    overflow: hidden;
    color: #edf4fd;
    font-size: .94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fxr-file-button small,
.fxr-file-chip small {
    overflow: hidden;
    color: #8fa2b8;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fxr-file-chip {
    flex: 1 1 270px;
    gap: 11px;
}

.fxr-file-chip[hidden] {
    display: none !important;
}

.fxr-file-chip > span:nth-child(2) {
    flex: 1;
}

.fxr-footer {
    display: grid;
    gap: 18px;
    padding-top: 2px;
}

.fxr-tip {
    margin: 0;
    color: #9aaabd;
    font-size: .84rem;
}

.fxr-tip span {
    margin-right: 6px;
}

.fxr-actions {
    gap: 11px;
}

.fxr-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 17px;
    border: 1px solid rgba(104, 153, 211, .25);
    border-radius: 13px;
    color: #e2ebf6;
    background: rgba(27, 51, 78, .46);
    font: inherit;
    font-size: .91rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.fxr-action:hover,
.fxr-action:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(84, 148, 255, .56);
    background: rgba(42, 78, 120, .56);
}

.fxr-action .forumx-icon {
    width: 20px;
    height: 20px;
}

.fxr-clear {
    color: #d9e3ef;
}

.fxr-preview {
    margin-left: auto;
}

.fxr-submit {
    min-width: 190px;
    color: #fff;
    border-color: rgba(101, 158, 255, .72);
    background: linear-gradient(135deg, #4d91ff, #2467e8 72%);
    box-shadow: 0 12px 28px rgba(31, 101, 231, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.fxr-submit:hover,
.fxr-submit:focus-visible {
    border-color: rgba(143, 186, 255, .9);
    background: linear-gradient(135deg, #62a0ff, #2d73ef 72%);
    box-shadow: 0 15px 34px rgba(31, 101, 231, .36), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.forumx-premium-reply + .forumx-mod-tools {
    margin-top: 28px;
}

body.forumx-reply-editor-active .mobile-bottom-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px))) !important;
}

@media (max-width: 820px) {
    .forumx-premium-reply {
        border-radius: 20px !important;
    }

    .fxr-header {
        align-items: flex-start;
        padding: 22px 20px 18px;
    }

    .fxr-heading-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .fxr-header-actions {
        gap: 8px;
    }

    .fxr-draft-state {
        min-height: 39px;
        padding-inline: 12px;
        font-size: .82rem;
    }

    .fxr-collapse {
        width: 40px;
        height: 40px;
    }

    .fxr-body {
        padding: 0 20px 22px;
    }

    .forumx-premium-reply .forumx-quill-frame .ql-editor {
        min-height: 220px !important;
        padding: 21px 18px !important;
    }

    .forumx-premium-reply .forumx-quill-frame .ql-editor.ql-blank::before {
        left: 18px !important;
        right: 18px !important;
    }

    .fxr-attachment-row {
        flex-direction: column;
    }

    .fxr-file-button,
    .fxr-file-chip {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 620px) {
    .forumx-premium-reply {
        margin-top: 22px !important;
        border-radius: 18px !important;
    }

    .fxr-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 15px 10px;
        padding: 20px 15px 16px;
    }

    .fxr-heading {
        gap: 12px;
    }

    .fxr-heading-icon {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
        border-radius: 13px;
    }

    .fxr-heading h2 {
        font-size: 1.34rem;
    }

    .fxr-heading p {
        max-width: 260px;
        font-size: .83rem;
        line-height: 1.45;
    }

    .fxr-header-actions {
        display: contents;
    }

    .fxr-draft-state {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        max-width: 100%;
    }

    .fxr-collapse {
        grid-column: 2;
        grid-row: 1;
    }

    .fxr-body {
        padding: 0 14px 18px;
    }

    .fxr-form {
        gap: 14px;
    }

    .fxr-quote-preview {
        padding: 13px;
    }

    .forumx-premium-reply .forumx-quill-toolbar.ql-toolbar.ql-snow,
    .forumx-premium-reply .forumx-quill-toolbar-scroll {
        min-height: 55px;
    }

    .forumx-premium-reply .forumx-quill-frame .ql-editor {
        min-height: 190px !important;
        max-height: 52vh;
        padding: 18px 15px !important;
        font-size: .96rem;
    }

    .forumx-premium-reply .forumx-quill-frame .ql-editor.ql-blank::before {
        left: 15px !important;
        right: 15px !important;
    }

    .forumx-premium-reply .forumx-quill-status.forumx-xf-status {
        min-height: 46px;
        padding-inline: 13px;
        font-size: .78rem;
    }

    .fxr-attachment-row {
        padding: 9px;
        border-radius: 13px;
    }

    .fxr-file-button,
    .fxr-file-chip {
        min-height: 58px;
        padding: 9px 10px;
    }

    .fxr-file-icon,
    .fxr-file-chip-icon {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }

    .fxr-tip {
        font-size: .78rem;
        line-height: 1.45;
    }

    .fxr-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px;
    }

    .fxr-action {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding-inline: 11px;
        font-size: .84rem;
    }

    .fxr-preview {
        margin-left: 0;
    }

    .fxr-submit {
        grid-column: 1 / -1;
        min-width: 0;
    }
}

@media (max-width: 370px) {
    .fxr-heading p,
    .fxr-tip {
        display: none;
    }

    .fxr-draft-state {
        font-size: .76rem;
    }

    .fxr-actions {
        grid-template-columns: 1fr;
    }

    .fxr-submit {
        grid-column: auto;
    }
}
