/* =========================
   SRCBOT Toplum Sayfası
   ========================= */

.community-page {
    background:
        radial-gradient(
            circle at 50% -12%,
            rgba(124, 92, 255, 0.15),
            transparent 33%
        ),
        radial-gradient(
            circle at 95% 35%,
            rgba(46, 211, 163, 0.055),
            transparent 23%
        ),
        var(--bg);
}

.community-page textarea,
.community-page select {
    font: inherit;
}

.community-hero {
    padding: 70px 0 34px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(
            180deg,
            rgba(124, 92, 255, 0.08),
            transparent 70%
        ),
        transparent;
}

.community-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.community-hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.community-hero h1 span {
    color: var(--primary-2);
}

.community-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.community-hero-actions {
    display: flex;
    gap: 11px;
    flex-shrink: 0;
}

.community-stats {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(
        in srgb,
        var(--surface) 75%,
        transparent
    );
    overflow: hidden;
}

.community-stats div {
    padding: 18px 24px;
    display: grid;
    gap: 2px;
    border-right: 1px solid var(--line);
}

.community-stats div:last-child {
    border-right: 0;
}

.community-stats strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.community-stats span {
    color: var(--muted);
    font-size: 10px;
}

.community-main-section {
    padding: 34px 0 90px;
}

.community-layout {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr) 310px;
    align-items: start;
    gap: 22px;
}

.community-left-column,
.community-right-column {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 16px;
}

.community-side-nav {
    padding: 10px;
    display: grid;
    gap: 4px;
    border-radius: 18px;
    box-shadow: none;
}

.community-side-nav button {
    width: 100%;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 11px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.community-side-nav button:hover,
.community-side-nav button.active {
    color: var(--text);
    background: var(--primary-soft);
}

.community-side-nav button.active {
    color: var(--primary-2);
}

.community-side-nav svg {
    width: 18px;
    height: 18px;
}

.community-trending,
.community-rules,
.community-people {
    padding: 19px;
    border-radius: 18px;
    box-shadow: none;
}

.community-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.community-card-heading h2,
.community-trending h2,
.community-rules h2,
.community-chat h2 {
    margin: 3px 0 0;
    font-size: 15px;
    line-height: 1.3;
}

.community-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(46, 211, 163, 0.11);
}

.community-trending > a {
    padding: 9px 0;
    display: grid;
    gap: 2px;
    border-bottom: 1px solid var(--line);
}

.community-trending > a:last-child {
    border-bottom: 0;
}

.community-trending > a span {
    font-size: 11px;
    font-weight: 730;
}

.community-trending > a strong {
    color: var(--muted);
    font-size: 8px;
    font-weight: 600;
}

.community-rules ul {
    margin: 13px 0 15px;
    padding-left: 17px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.65;
}

.community-rules li + li {
    margin-top: 6px;
}

.community-rules .text-link {
    padding: 0;
    border: 0;
    color: var(--primary-2);
    background: transparent;
    font-size: 9px;
    font-weight: 760;
    cursor: pointer;
}

.community-feed {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.community-composer {
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    box-shadow: none;
}

.community-avatar {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 2px solid color-mix(
        in srgb,
        var(--surface) 65%,
        transparent
    );
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.avatar-purple {
    background: linear-gradient(145deg, #a784ff, #6743d8);
}

.avatar-orange {
    background: linear-gradient(145deg, #ffb45e, #e36f31);
}

.avatar-blue {
    background: linear-gradient(145deg, #69b9ff, #3565d8);
}

.avatar-green {
    background: linear-gradient(145deg, #55d8ad, #1e9276);
}

.avatar-yellow {
    background: linear-gradient(145deg, #f9da69, #bd7e1d);
}

.community-composer-trigger {
    min-height: 43px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-2);
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.community-composer-trigger:hover {
    border-color: rgba(124, 92, 255, 0.4);
    background: var(--surface-3);
}

.community-composer-tools {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 17px;
}

.community-composer-tools button {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 9px;
    font-weight: 710;
    cursor: pointer;
}

.community-composer-tools button:hover {
    color: var(--text);
}

.community-composer-tools svg {
    width: 15px;
    height: 15px;
    color: var(--primary-2);
}

.community-feed-toolbar {
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 14px;
    box-shadow: none;
}

.community-feed-tabs {
    display: flex;
    align-items: center;
    gap: 3px;
}

.community-feed-tabs button,
.community-feed-settings {
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    font-size: 9px;
    font-weight: 760;
    cursor: pointer;
}

.community-feed-tabs button.active {
    color: var(--text);
    background: var(--surface-3);
}

.community-feed-settings {
    display: grid;
    place-items: center;
}

.community-feed-settings svg {
    width: 16px;
    height: 16px;
}

.community-post-list {
    display: grid;
    gap: 14px;
}

.community-post {
    border-radius: 18px;
    box-shadow: none;
    overflow: hidden;
}

.community-post[hidden] {
    display: none;
}

.community-post-header {
    padding: 17px 18px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.community-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.community-user > span:last-child {
    display: grid;
    gap: 1px;
}

.community-user strong {
    font-size: 11px;
}

.community-user small {
    color: var(--muted);
    font-size: 8px;
}

.verified-badge {
    width: 15px;
    height: 15px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary);
    font-size: 8px;
    font-style: normal;
    vertical-align: 1px;
}

.community-more-button {
    padding: 5px 3px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
}

.community-post-body {
    padding: 9px 18px 16px;
}

.community-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.community-post-tags span {
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.pair-tag {
    color: var(--primary-2);
    background: var(--primary-soft);
}

.timeframe-tag {
    color: var(--muted);
    background: var(--surface-3);
}

.direction-tag.long {
    color: var(--green);
    background: var(--green-soft);
}

.direction-tag.short {
    color: var(--red);
    background: var(--red-soft);
}

.direction-tag.neutral,
.discussion-tag {
    color: var(--yellow);
    background: rgba(246, 200, 95, 0.12);
}

.community-post-body h2 {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.38;
    letter-spacing: -0.012em;
}

.community-post-body > p {
    margin: 0;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.75;
}

.community-chart {
    position: relative;
    min-height: 260px;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.028) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.028) 1px,
            transparent 1px
        ),
        #090d16;
    background-size: 45px 45px;
    overflow: hidden;
}

.community-chart svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.community-chart .chart-grid-line {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
}

.community-chart .chart-line {
    fill: none;
    stroke: var(--primary-2);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(
        0 5px 9px rgba(124, 92, 255, 0.28)
    );
}

.community-chart .negative-line {
    stroke: var(--red);
    filter: drop-shadow(
        0 5px 9px rgba(255, 102, 122, 0.25)
    );
}

.community-chart .chart-sweep-point,
.community-chart .chart-reject-point {
    fill: var(--green);
    stroke: rgba(46, 211, 163, 0.3);
    stroke-width: 11;
}

.community-chart .chart-reject-point {
    fill: var(--red);
    stroke: rgba(255, 102, 122, 0.3);
}

.community-chart .chart-sweep-arrow {
    fill: none;
    stroke: var(--green);
    stroke-width: 3;
}

.chart-watermark {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 14px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.chart-zone {
    position: absolute;
    z-index: 2;
    right: 10px;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 7px;
    font-weight: 800;
}

.chart-zone::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    width: 700px;
    border-top: 1px dashed currentColor;
    opacity: 0.3;
}

.chart-zone-high {
    top: 18%;
    color: var(--red);
    background: rgba(255, 102, 122, 0.11);
}

.chart-zone-eq {
    top: 48%;
    color: var(--yellow);
    background: rgba(246, 200, 95, 0.11);
}

.chart-zone-low {
    top: 78%;
    color: var(--green);
    background: rgba(46, 211, 163, 0.11);
}

.chart-note {
    position: absolute;
    z-index: 2;
    right: 25%;
    bottom: 13px;
    padding: 5px 7px;
    border: 1px solid rgba(46, 211, 163, 0.22);
    border-radius: 6px;
    color: var(--green);
    background: rgba(7, 10, 18, 0.82);
    font-size: 7px;
    font-weight: 750;
}

.chart-note-top {
    top: 18px;
    right: 27%;
    bottom: auto;
    color: var(--red);
    border-color: rgba(255, 102, 122, 0.25);
}

.community-trade-plan {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.community-trade-plan div {
    padding: 11px;
    display: grid;
    gap: 3px;
    border-right: 1px solid var(--line);
    background: var(--surface-2);
}

.community-trade-plan div:last-child {
    border-right: 0;
}

.community-trade-plan span {
    color: var(--muted);
    font-size: 7px;
}

.community-trade-plan strong {
    font-size: 9px;
}

.community-post-disclaimer {
    margin-top: 10px !important;
    font-size: 8px !important;
    font-style: italic;
}

.community-post-footer {
    padding: 9px 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.post-action {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    font-size: 8px;
    font-weight: 720;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.post-action:hover {
    color: var(--text);
    background: var(--surface-2);
}

.post-action svg {
    width: 15px;
    height: 15px;
}

.post-like-button.active {
    color: var(--red);
}

.post-like-button.active svg,
.post-save-button.active svg {
    fill: currentColor;
}

.post-save-button.active {
    color: var(--primary-2);
}

.community-comments {
    padding: 14px 18px 17px;
    border-top: 1px solid var(--line);
    background: color-mix(
        in srgb,
        var(--surface-2) 70%,
        transparent
    );
}

.community-comment {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 14px;
}

.community-comment .community-avatar,
.community-comment-form .community-avatar,
.chat-message .community-avatar {
    width: 30px;
    height: 30px;
    font-size: 7px;
}

.community-comment div {
    min-width: 0;
}

.community-comment strong {
    font-size: 9px;
}

.community-comment p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

.community-comment small {
    color: var(--muted);
    font-size: 7px;
}

.community-comment-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
}

.community-comment-form input {
    min-width: 0;
    height: 35px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    color: var(--text);
    background: var(--surface);
    font-size: 9px;
}

.community-comment-form input:focus {
    border-color: var(--primary);
}

.community-comment-form button {
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--primary);
    font-size: 8px;
    font-weight: 750;
    cursor: pointer;
}

.community-poll {
    margin-top: 15px;
    padding: 14px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-2);
}

.community-poll > strong {
    margin-bottom: 2px;
    font-size: 10px;
}

.community-poll button {
    position: relative;
    min-height: 35px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: var(--surface);
    font-size: 8px;
    font-weight: 670;
    overflow: hidden;
    cursor: pointer;
}

.community-poll button i {
    position: absolute;
    z-index: 0;
    inset: 0 auto 0 0;
    background: rgba(124, 92, 255, 0.13);
}

.community-poll button span,
.community-poll button em {
    position: relative;
    z-index: 1;
    font-style: normal;
}

.community-poll button.selected {
    border-color: rgba(124, 92, 255, 0.5);
}

.community-poll > small {
    color: var(--muted);
    font-size: 7px;
}

.community-empty-state {
    padding: 55px 30px;
    place-items: center;
    text-align: center;
    box-shadow: none;
}

.community-empty-state:not([hidden]) {
    display: grid;
}

.community-empty-state svg {
    width: 38px;
    height: 38px;
    color: var(--primary-2);
}

.community-empty-state h2 {
    margin: 14px 0 6px;
    font-size: 16px;
}

.community-empty-state p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.community-chat {
    border-radius: 18px;
    box-shadow: none;
    overflow: hidden;
}

.community-chat-header {
    padding: 17px 17px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
}

.community-chat-header > span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 7px;
}

.community-chat-header > span i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.community-chat-rooms {
    padding: 8px 10px;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}

.community-chat-rooms button {
    padding: 7px 8px;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    font-size: 7px;
    font-weight: 730;
    white-space: nowrap;
    cursor: pointer;
}

.community-chat-rooms button.active {
    color: var(--primary-2);
    background: var(--primary-soft);
}

.community-chat-messages {
    height: 330px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.chat-day {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 7px;
}

.chat-day::before,
.chat-day::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.chat-message div {
    min-width: 0;
    padding: 8px 9px;
    border-radius: 3px 10px 10px;
    background: var(--surface-2);
}

.chat-message p {
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-message strong {
    font-size: 8px;
}

.chat-message time {
    color: var(--muted);
    font-size: 6px;
}

.chat-message div > span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.48;
    word-break: break-word;
}

.chat-message.current-user {
    flex-direction: row-reverse;
}

.chat-message.current-user div {
    border-radius: 10px 3px 10px 10px;
    background: var(--primary-soft);
}

.community-chat-form {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    border-top: 1px solid var(--line);
}

.community-chat-form input {
    min-width: 0;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    color: var(--text);
    background: var(--surface-2);
    font-size: 9px;
}

.community-chat-form input:focus {
    border-color: var(--primary);
}

.community-chat-form button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: var(--primary);
    cursor: pointer;
}

.community-chat-form svg {
    width: 16px;
    height: 16px;
}

.community-chat-note {
    margin: 0;
    padding: 0 12px 12px;
    color: var(--muted);
    font-size: 6.5px;
    line-height: 1.45;
}

.community-people article {
    padding: 10px 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.community-people article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.community-people article .community-avatar {
    width: 32px;
    height: 32px;
    font-size: 7px;
}

.community-people article div {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.community-people article strong {
    overflow: hidden;
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-people article small {
    overflow: hidden;
    color: var(--muted);
    font-size: 6.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-people article button {
    padding: 6px 8px;
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 7px;
    color: var(--primary-2);
    background: var(--primary-soft);
    font-size: 6.5px;
    font-weight: 760;
    cursor: pointer;
}

.community-people article button.following {
    color: var(--muted);
    border-color: var(--line);
    background: var(--surface-2);
}

.community-risk-note {
    padding: 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid rgba(246, 200, 95, 0.15);
    border-radius: 13px;
    color: var(--muted);
    background: rgba(246, 200, 95, 0.055);
}

.community-risk-note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--yellow);
}

.community-risk-note p {
    margin: 0;
    font-size: 7.5px;
    line-height: 1.55;
}

.community-modal,
.community-rules-modal {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
}

.community-modal.open,
.community-rules-modal.open {
    display: grid;
}

.community-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 9, 0.78);
    backdrop-filter: blur(9px);
}

.community-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: min(88vh, 860px);
    border-radius: 20px;
    overflow-y: auto;
}

.community-modal-dialog > header,
.community-rules-dialog > header {
    position: sticky;
    z-index: 2;
    top: 0;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    background: color-mix(
        in srgb,
        var(--surface) 92%,
        transparent
    );
    backdrop-filter: blur(14px);
}

.community-modal-dialog > header h2,
.community-rules-dialog > header h2 {
    margin: 4px 0 0;
    font-size: 17px;
}

.community-modal-dialog > header button,
.community-rules-dialog > header button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface-2);
    font-size: 20px;
    cursor: pointer;
}

#communityPostForm {
    padding: 20px;
}

.community-modal-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.community-modal-user div {
    display: grid;
}

.community-modal-user strong {
    font-size: 10px;
}

.community-modal-user small {
    color: var(--muted);
    font-size: 7px;
}

.community-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.community-form-field {
    position: relative;
    display: grid;
    gap: 6px;
}

.community-form-field-full {
    margin-bottom: 11px;
}

.community-form-field > span {
    font-size: 8px;
    font-weight: 730;
}

.community-form-field input,
.community-form-field select,
.community-form-field textarea {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    color: var(--text);
    background: var(--surface-2);
    font-size: 9px;
    resize: vertical;
}

.community-form-field input:focus,
.community-form-field select:focus,
.community-form-field textarea:focus {
    border-color: var(--primary);
}

.community-form-field select option {
    color: var(--text);
    background: var(--surface);
}

.community-form-field > small {
    position: absolute;
    right: 9px;
    bottom: 8px;
    color: var(--muted);
    font-size: 6.5px;
}

.community-upload-field {
    margin-top: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed rgba(124, 92, 255, 0.36);
    border-radius: 12px;
    background: var(--primary-soft);
    cursor: pointer;
}

.community-upload-field input {
    display: none;
}

.community-upload-field svg {
    width: 22px;
    height: 22px;
    color: var(--primary-2);
}

.community-upload-field > span {
    display: grid;
}

.community-upload-field strong {
    font-size: 9px;
}

.community-upload-field small {
    color: var(--muted);
    font-size: 7px;
}

.community-image-preview {
    position: relative;
    margin-top: 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.community-image-preview img {
    width: 100%;
    max-height: 260px;
    display: block;
    object-fit: cover;
}

.community-image-preview button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    color: #ffffff;
    background: rgba(7, 10, 18, 0.82);
    font-size: 7px;
    cursor: pointer;
}

.community-modal-notice {
    margin-top: 13px;
    padding: 11px;
    display: flex;
    gap: 9px;
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface-2);
}

.community-modal-notice svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--yellow);
}

.community-modal-notice p {
    margin: 0;
    font-size: 7.5px;
    line-height: 1.55;
}

#communityPostForm > footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.community-rules-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    padding-bottom: 20px;
    border-radius: 20px;
}

.community-rules-dialog ol {
    margin: 20px 22px;
    padding-left: 22px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.community-rules-dialog li + li {
    margin-top: 9px;
}

.community-rules-dialog > .button {
    margin-left: 22px;
}

body.modal-open {
    overflow: hidden;
}

.community-user-post-image {
    width: 100%;
    max-height: 420px;
    display: block;
    margin: 15px 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    object-fit: cover;
}

@media (max-width: 1160px) {
    .community-layout {
        grid-template-columns:
            200px minmax(0, 1fr) 280px;
        gap: 16px;
    }

    .community-trade-plan {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-trade-plan div:nth-child(2) {
        border-right: 0;
    }

    .community-trade-plan div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 980px) {
    .community-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .community-left-column {
        position: static;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .community-side-nav {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 1fr);
    }

    .community-side-nav button {
        justify-content: center;
    }

    .community-rules,
    .community-trending {
        display: none;
    }
}

@media (max-width: 760px) {
    .community-hero {
        padding: 48px 0 28px;
    }

    .community-hero-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .community-hero-actions {
        width: 100%;
    }

    .community-hero-actions .button {
        flex: 1;
    }

    .community-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-stats div:nth-child(2) {
        border-right: 0;
    }

    .community-stats div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .community-layout {
        grid-template-columns: 1fr;
    }

    .community-left-column,
    .community-right-column {
        position: static;
    }

    .community-right-column {
        order: 3;
    }

    .community-chat-messages {
        height: 370px;
    }

    .community-side-nav {
        padding: 7px;
        grid-template-columns: repeat(2, 1fr);
    }

    .community-side-nav button {
        justify-content: flex-start;
    }

    .community-chart {
        min-height: 220px;
    }
}

@media (max-width: 540px) {
    .community-hero h1 {
        font-size: 38px;
    }

    .community-hero p {
        font-size: 14px;
    }

    .community-hero-actions {
        display: grid;
    }

    .community-stats div {
        padding: 14px;
    }

    .community-stats strong {
        font-size: 17px;
    }

    .community-composer {
        grid-template-columns: auto 1fr;
    }

    .community-composer-tools {
        grid-column: 1 / -1;
        justify-content: space-around;
        padding-top: 5px;
    }

    .community-post-header,
    .community-post-body {
        padding-right: 14px;
        padding-left: 14px;
    }

    .community-chart {
        min-height: 190px;
        margin-right: -5px;
        margin-left: -5px;
    }

    .chart-zone::before {
        width: 430px;
    }

    .community-trade-plan {
        grid-template-columns: 1fr 1fr;
    }

    .community-post-footer {
        padding: 7px;
    }

    .post-action span {
        display: none;
    }

    .post-action svg {
        width: 18px;
        height: 18px;
    }

    .community-comment-form {
        grid-template-columns: auto 1fr;
    }

    .community-comment-form button {
        grid-column: 2;
        justify-self: end;
    }

    .community-form-grid {
        grid-template-columns: 1fr;
    }

    .community-modal {
        padding: 0;
        align-items: end;
    }

    .community-modal-dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 20px 20px 0 0;
    }
}

.toast-message {
    position: fixed;
    z-index: 700;
    right: 20px;
    bottom: 20px;
    max-width: min(360px, calc(100% - 40px));
    padding: 11px 14px;
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 11px;
    color: #ffffff;
    background: rgba(14, 18, 31, 0.94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    font-size: 9px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    backdrop-filter: blur(14px);
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}