.community-app-wrapper {
    background: #f6fbfb;
}

.community-container {
    width: 100%;
}

.community-container .community-inner {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

.community-app {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: white;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 25px 80px rgba(16, 42, 67, 0.08);
}

.community-app-full {
    max-width: 900px;
    margin: 0 auto;
}

.community-chat {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid #111;
    display: flex;
    flex-direction: column;
    min-height: 560px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chat-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #67737a;
}

.chat-title {
    margin: 0;
    color: #102a43;
    font-size: 1.8rem;
    font-weight: 700;
}

.handle-pill {
    background: #f2f9f9;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.handle-pill .pill-label {
    font-size: 0.8rem;
    color: #5c6f7f;
}

.handle-pill .pill-value {
    font-weight: 600;
    color: #102a43;
}

.streak-pill {
    background: #ffeccd;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #a15400;
    font-weight: 600;
}

.community-extras {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pulse-card,
.spark-card {
    flex: 1;
    min-width: 240px;
    background: #f7fbfe;
    border: 1px solid #dbe9f5;
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 12px 35px rgba(15, 40, 73, 0.08);
}

.pulse-question h3,
.spark-card h3 {
    margin: 0;
    color: #102a43;
    font-size: 1.25rem;
}

.pulse-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.85rem 0;
}

.pulse-option {
    flex: 1;
    min-width: 100px;
    border-radius: 999px;
    border: 1px solid #cfe0ef;
    background: #fff;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #274b73;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pulse-option:hover,
.pulse-option.active {
    border-color: #2e8989;
    color: #2e8989;
    background: rgba(46, 137, 137, 0.08);
}

.pulse-status {
    font-size: 0.85rem;
    color: #607d8b;
    margin-bottom: 0.4rem;
}

.pulse-counts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pulse-counts span {
    background: rgba(27, 54, 93, 0.08);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1b365d;
}

.spark-card {
    background: #fff8f3;
    border-color: #ffe4d1;
}

.spark-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.spark-next {
    border: none;
    background: rgba(255, 160, 101, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff7f32;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.spark-next:hover {
    transform: rotate(90deg);
}

.spark-hint {
    font-size: 0.85rem;
    color: #aa5d1f;
    margin: 0.6rem 0 0;
}

@media (max-width: 768px) {
    .community-extras {
        flex-direction: column;
    }

    .pulse-card,
    .spark-card {
        width: 100%;
    }

    .community-app {
        padding: 1rem;
        box-shadow: none;
    }
}

.feedback-bar {
    border-radius: 16px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feedback-bar.error {
    background: #ffe5e5;
    color: #a6212a;
}

.feedback-bar.success {
    background: #e2f7ef;
    color: #1a7f5a;
}

.chat-feed {
    flex: 1;
    border: 1px solid #e6eef2;
    border-radius: 24px;
    padding: 1rem;
    background: #fbfdfd;
    overflow-y: auto;
}

.community-message {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: white;
    margin-bottom: 0.75rem;
    box-shadow: 0 6px 18px rgba(16, 42, 67, 0.05);
    position: relative;
    overflow: hidden;
}

.community-message.self {
    background: #e9f7f6;
    border: 1px solid rgba(46, 137, 137, 0.35);
}

.community-message .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #5d6b78;
    margin-bottom: 0.35rem;
}

.community-message .text {
    font-size: 1rem;
    color: #102a43;
    white-space: pre-wrap;
    word-break: break-word;
}

.community-message .message-reply {
    border-left: 3px solid rgba(46, 137, 137, 0.35);
    padding-left: 0.75rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: #4b5a63;
}

.community-message .message-reply strong {
    display: block;
    color: #2e8989;
    margin-bottom: 0.2rem;
}

.community-message .message-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-top: 0.5rem;
}

.community-message:hover .message-actions {
    opacity: 1;
}

.reaction-bar {
    display: inline-flex;
    gap: 0.4rem;
}

.reaction-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(17, 17, 17, 0.05);
    color: #2c3e50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.reaction-btn:hover,
.reaction-btn.active {
    background: rgba(46, 137, 137, 0.15);
    transform: translateY(-1px);
}

.reaction-counts {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.reaction-count {
    background: rgba(46, 137, 137, 0.08);
    border-radius: 999px;
    padding: 0.1rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2e8989;
}

.message-reply-btn {
    border: none;
    background: none;
    color: #5d6b78;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.message-reply-btn:hover {
    color: #2e8989;
}

.empty-state {
    text-align: center;
    color: #93a1b0;
    padding: 3rem 1rem;
}

.composer {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.composer-reply-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f2f7fb;
    border: 1px solid #cfe0ef;
    border-radius: 15px;
    padding: 0.6rem 0.9rem;
}

.composer-reply-preview strong {
    color: #2e8989;
    font-size: 0.85rem;
}

.composer-reply-preview p {
    margin: 0;
    font-size: 0.85rem;
    color: #546e7a;
}

.reply-cancel-btn {
    border: none;
    background: transparent;
    color: #5d6b78;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.composer-input {
    width: 100%;
    border-radius: 20px;
    border: 2px solid #d7e6f1;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    resize: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.composer-input:focus {
    border-color: #2e8989;
    box-shadow: 0 0 0 3px rgba(46, 137, 137, 0.15);
    outline: none;
}

.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: #111;
    color: white;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.send-btn i {
    font-size: 1.2rem;
}

.send-btn:disabled {
    opacity: 0.5;
}

.send-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .community-app {
        padding: 1.5rem;
    }

    .community-app-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .community-app-wrapper > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .community-app-full,
    .community-chat {
        border-radius: 0;
        max-width: 100%;
        width: 100%;
    }

    .community-chat {
        border: none;
    }
}

.community-details {
    background: #ffffff;
}

.details-card {
    max-width: 820px;
    margin: 0 auto;
    background: #f3fafa;
    border: 1px solid #e0eded;
    border-radius: 24px;
    padding: 2.5rem;
}

.details-card h2 {
    margin-bottom: 1rem;
    color: #102a43;
    font-weight: 700;
}

.details-card p {
    color: #2b3a42;
    line-height: 1.6;
}

.community-showcase {
    background: #ffffff;
}

.showcase-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: #8aa0ae;
    margin-bottom: 0.4rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: #8aa0ae;
}

.showcase-header h2 {
    margin: 0;
    color: #102a43;
    font-weight: 700;
}

.showcase-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.showcase-card {
    border-radius: 24px;
    border: 1px solid #e6eef2;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(16, 42, 67, 0.08);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.showcase-card .media {
    height: 160px;
    width: 100%;
    overflow: hidden;
}

.showcase-card .media-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.showcase-card .media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3fafa;
    color: #5c6f7f;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.showcase-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.showcase-card .card-body h3 {
    margin: 0;
    color: #102a43;
    font-size: 1.1rem;
    font-weight: 700;
}

.showcase-card .meta {
    font-size: 0.85rem;
    color: #6b7c8c;
    margin-bottom: 0.2rem;
}

.showcase-card .price {
    font-weight: 700;
    color: #2e8989;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #2e8989;
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}
