@import "tailwindcss";

/* ==========================================================================
   JC APPS, JC METHOD, JC COMMUNITY, ANNOUNCEMENTS & TUTORIALS - MASTER STYLESHEET
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
    background-color: #000000;
    color-scheme: dark;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

body {
    background-color: #000000;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 15px 0 130px 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Pull to Refresh Indicator Bar */
#pull-to-refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #333333;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease;
}

/* Tab Management */
.tab-content {
    display: none !important;
    width: 100%;
    box-sizing: border-box;
}

.tab-content.active {
    display: block !important;
    animation: fadeIn 0.2s ease-out;
}

#tab-community.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.title-container {
    padding: 8px 0 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-align: center;
}

.title-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
    flex-shrink: 0;
}

.title-description {
    text-align: center;
    color: #888888;
    font-size: 13px;
    margin-bottom: 18px;
    padding: 0 8px;
    line-height: 1.5;
    min-height: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* User Dashboard Top Badge */
.user-dashboard {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 16px;
    padding: 12px 16px;
    margin: 0 auto 16px auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.02);
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.dashboard-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #111111;
    border: 1px solid #333333;
    flex-shrink: 0;
}

.dashboard-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.dashboard-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-status {
    font-size: 10.5px;
    color: #28a745;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dashboard-date {
    font-size: 10px;
    color: #777777;
}

.dashboard-status-badge {
    background: #ffffff;
    color: #000000;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.dashboard-status-badge.badge-online {
    background: #181818 !important;
    color: #28a745 !important;
    border: 1px solid #28a745;
}

.dashboard-status-badge.badge-offline {
    background: #181818 !important;
    color: #ff4d4d !important;
    border: 1px solid #ff4d4d;
}

/* Badges: Admin & Member */
.admin-badge, .member-badge {
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3.5px;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    white-space: nowrap;
    height: 18px;
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
    margin: 0;
}

.admin-badge {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.member-badge {
    background: #1c1c1c;
    color: #cccccc;
    border: 1px solid #333333;
}

.pinned-badge {
    background: #ffffff;
    color: #000000;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Search Bar */
.search-container {
    width: 100%;
    margin: 0 auto 18px auto;
    position: relative;
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    padding: 12px 18px 12px 42px;
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 50px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #666666;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 14px;
}

.no-results {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    background: #0a0a0a;
    border: 1px dashed #333333;
    border-radius: 20px;
    margin: 10px 0 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Cards Wrapper */
.cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 20px;
    padding: 22px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.02);
    width: 100%;
    box-sizing: border-box;
}

.card-header-title {
    text-align: left;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 85px;
    word-break: break-word;
}

.card-title-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    background: #1a1a1a;
}

.card-sub {
    color: #888888;
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
    word-break: break-word;
}

.best {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #ffffff;
    color: #000000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.app-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding: 8px 0;
    width: 100%;
}

.meta-item {
    font-size: 10px;
    color: #aaaaaa;
    background: #141414;
    border: 1px solid #262626;
    padding: 4px 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.meta-item i {
    color: #ffffff;
    font-size: 10px;
}

.meta-item strong {
    color: #ffffff;
}

/* ALL BUTTONS: Pure White Background, Black Text */
button, .btn, .btn-tutorial, .btn-tutorial-close, .dialog-btn, .btn-submit-fb, .chat-send-btn, .badge-link,
.btn-action-edit, .btn-action-unsend, .btn-action-reply, .btn-action-private, .btn-action-close,
.chat-edit-save-btn, .chat-edit-cancel-btn, .btn-action-ban, .btn-action-unban, .btn-admin-post,
.chat-photo-btn, .user-chat-btn, .btn-close-private, .post-comment-btn, .btn-pin-chat {
    font-family: inherit;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
}

.btn, .btn-tutorial, .btn-tutorial-close, .btn-admin-post {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 12px 16px;
    margin-top: 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-sizing: border-box;
}

.btn-tutorial, .btn-tutorial-close {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 10px 14px;
}

.btn-tutorial-close {
    display: none;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
}

.btn-tutorial-close i {
    color: #000000 !important;
}

.btn:hover, .btn-tutorial:hover, .btn-tutorial-close:hover, .btn-admin-post:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

.video-preview-container {
    display: none;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    border: 1px solid #222222;
}

.video-preview-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.features-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 0;
    width: 100%;
    text-align: left;
}

.arrow-icon {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    font-size: 14px;
    transform-origin: center center;
}

.features-toggle.active .arrow-icon,
.accordion.active .arrow-icon {
    transform: rotate(180deg);
}

.features-list {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.3s ease-out;
    padding-right: 4px;
}

ul {
    list-style: none;
    padding-top: 5px;
}

li {
    padding: 8px 0;
    color: #cccccc;
    font-size: 12px;
    line-height: 1.4;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
}

li:last-child {
    border-bottom: none;
}

.li-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.badge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.2s ease;
    margin-top: 4px;
    white-space: nowrap;
}

.badge-link i {
    color: #000000 !important;
    font-size: 13px;
}

.check i { color: #ffffff; margin-top: 2px; flex-shrink: 0; }
.cross i { color: #555555; margin-top: 2px; flex-shrink: 0; }

/* ==========================================================================
   FIXED MODERN BOTTOM NAVIGATION BAR (CLEAR VISIBILITY, NEVER CUT OFF)
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 480px;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95);
    z-index: 10000;
    box-sizing: border-box;
    gap: 2px;
}

.nav-item {
    color: #888888;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    border-radius: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    position: relative;
    white-space: nowrap;
    overflow: visible;
}

.nav-item i {
    font-size: 1.05rem;
    margin-bottom: 2px;
    display: block;
    transition: transform 0.2s ease;
}

.nav-item span {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    display: block;
    line-height: 1.1;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item.active {
    color: #000000 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

.nav-item.active i {
    transform: scale(1.05);
    color: #000000 !important;
}

.nav-item.active span {
    color: #000000 !important;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #ff3344;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 10px;
    border: 2px solid #000000;
    min-width: 14px;
    text-align: center;
    display: none;
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ==========================================================================
   TELEGRAM-STYLE CHAT SYSTEM (BLACK BG, WHITE TEXT, SEEN COUNTERS)
   ========================================================================== */
#tab-community {
    width: 100%;
    box-sizing: border-box;
}

.community-card {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 100px);
    min-height: 820px;
    max-height: none;
    box-sizing: border-box;
    margin: 0 auto 20px auto;
    overflow: hidden;
    position: relative;
}

.community-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 14px;
    padding: 8px 6px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    user-select: none;
}

.stat-item:hover {
    background: #181818;
    border-color: #333333;
}

.stat-item.active-filter {
    background: #ffffff !important;
    border-color: #ffffff !important;
}

.stat-item.active-filter .stat-value,
.stat-item.active-filter .stat-label {
    color: #000000 !important;
}

.stat-value {
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
}

.stat-label {
    font-size: 10px;
    text-align: center;
    color: #888888;
    text-transform: uppercase;
    font-weight: 700;
}

.comm-sub-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.comm-sub-btn {
    flex: 1;
    background: #111111 !important;
    border: 1px solid #222222 !important;
    color: #888888 !important;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.comm-sub-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

.sub-badge {
    background: #ff3344;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    display: inline-block;
}

/* Pinned Message Banner inside Chat */
.chat-pinned-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #141414;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.chat-pinned-banner:hover {
    background: #191919;
    border-color: #555555;
}

.chat-pinned-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    gap: 2px;
}

.chat-pinned-title {
    font-size: 10px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-pinned-text {
    font-size: 11.5px;
    color: #cccccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.chat-pinned-unpin-btn {
    background: #222222 !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.chat-pinned-unpin-btn:hover {
    background: #ff3344 !important;
    border-color: #ff3344 !important;
    color: #ffffff !important;
}

.chat-box {
    flex: 1 1 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
    padding-right: 4px;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Telegram Style Chat Bubble Cards */
.chat-message {
    background: #0f0f0f;
    border: 1px solid #222222;
    border-radius: 16px 16px 16px 4px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 88%;
    align-self: flex-start;
    word-break: break-word;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.chat-message:hover {
    border-color: #444444;
}

.chat-message.my-message {
    background: #181818;
    border: 1px solid #333333;
    border-radius: 16px 16px 4px 16px;
    align-self: flex-end;
}

.chat-message.my-message:hover {
    border-color: #555555;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 2px;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #222222;
    border: 1px solid #333333;
    flex-shrink: 0;
}

.chat-user-details {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
}

.chat-username {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-online { background: #28a745; box-shadow: 0 0 6px #28a745; }
.dot-offline { background: #ff4d4d; }

.chat-text {
    font-size: 13.5px;
    color: #ffffff;
    line-height: 1.45;
    word-break: break-word;
    margin-top: 2px;
}

.chat-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: 9.5px;
    color: #888888;
    margin-top: 4px;
}

.chat-seen-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #55ff88;
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.chat-seen-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-reply-quote {
    background: #141414;
    border-left: 3px solid #ffffff;
    border-radius: 4px 8px 8px 4px;
    padding: 4px 8px;
    margin-bottom: 4px;
    font-size: 11px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-reply-quote-sender {
    font-weight: 800;
    color: #ffffff;
    font-size: 10.5px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-reply-quote-text {
    color: #aaaaaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* User Directory List & Private Threads List */
.users-directory-list, .private-threads-list {
    display: none;
    flex: 1 1 0;
    overflow-y: auto;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding-right: 4px;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}

.private-thread-card {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.private-thread-card:hover {
    background: #161616;
    border-color: #444444;
}

.private-thread-preview {
    font-size: 11px;
    color: #888888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.private-thread-time {
    font-size: 10px;
    color: #888888;
    white-space: nowrap;
    text-align: right;
}

.user-item-card {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.user-item-card:hover {
    background: #161616;
    border-color: #444444;
}

.user-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.user-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    gap: 3px;
}

.user-item-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #222222;
    border: 1px solid #333333;
    flex-shrink: 0;
}

.user-item-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-item-displayname {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-item-lastseen {
    font-size: 10.5px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.user-chat-btn {
    padding: 0 14px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    cursor: pointer;
    height: 30px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.user-chat-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* User Profile / Chat Options Dashboard Modal */
.profile-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 29500;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.profile-card-box {
    background: #0d0d0d;
    border: 1px solid #333333;
    border-radius: 22px;
    padding: 24px 20px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.profile-modal-close-icon-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.profile-modal-close-icon-btn i {
    color: #000000 !important;
}

.profile-modal-close-icon-btn:hover {
    background: #e6e6e6 !important;
    color: #000000 !important;
    border-color: #e6e6e6 !important;
    transform: scale(1.08);
}

.profile-avatar-large {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a1a;
    border: 2px solid #ffffff;
}

.profile-name-title {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.profile-info-grid {
    width: 100%;
    background: #141414;
    border: 1px solid #262626;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11.5px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.profile-info-row span:first-child {
    color: #888888;
    font-weight: 600;
}

.profile-info-row span:last-child {
    color: #ffffff;
    font-weight: 800;
    text-align: right;
    word-break: break-all;
}

/* SELECTED CHAT DISPLAY (SPACIOUS & EXPANDED) */
.profile-selected-chat-card {
    display: none;
    width: 100%;
    background: #161616;
    border: 1px solid #333333;
    border-radius: 14px;
    padding: 14px 16px;
    box-sizing: border-box;
}

.profile-selected-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 900;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.profile-selected-chat-body {
    font-size: 13.5px;
    color: #ffffff;
    line-height: 1.5;
    word-break: break-word;
    max-height: 160px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.profile-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* ==========================================================================
   JC ANNOUNCEMENT & JC TUTORIALS FEED & CARDS
   ========================================================================== */
.post-composer-card {
    background: #0d0d0d;
    border: 1px solid #333333;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.composer-title {
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-input, .post-textarea {
    width: 100%;
    background: #141414;
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 12.5px;
    outline: none;
    box-sizing: border-box;
}

.post-textarea {
    min-height: 80px;
    resize: vertical;
}

.post-item-card {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.post-item-card.is-pinned {
    border: 1px solid #ffffff;
    background: #0d0d0d;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #333333;
}

.post-title {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.35;
}

.post-body-text {
    font-size: 13px;
    color: #dddddd;
    line-height: 1.55;
    white-space: pre-line;
    word-break: break-word;
}

.post-media-video {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #333333;
    background: #000000;
    max-height: 380px;
    display: block;
}

.post-media-photo {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #333333;
    max-height: 380px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

/* Post Comments Box */
.post-comments-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.post-comment-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.post-comment-input {
    flex: 1;
    background: #141414;
    border: 1px solid #282828;
    border-radius: 50px;
    padding: 9px 16px;
    color: #ffffff;
    font-size: 12px;
    outline: none;
}

.post-comment-btn {
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-weight: 900 !important;
    font-size: 11.5px !important;
    cursor: pointer;
}

/* Dialog Overlay */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 30000;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.dialog-box {
    background: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 18px;
    padding: 24px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

.dialog-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #141414;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.dialog-icon-wrap i {
    font-size: 1.8rem;
    color: #ffffff;
}

.dialog-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dialog-message {
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-bottom: 20px;
    line-height: 1.5;
    word-break: break-word;
}

.dialog-btn {
    width: 100%;
    padding: 12px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    cursor: pointer;
    text-transform: uppercase;
}

.dialog-btn-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.image-lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 35000;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.lightbox-content-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    border: 1px solid #333333;
    object-fit: contain;
}

.lightbox-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.lightbox-close-btn i {
    color: #000000 !important;
}

.lightbox-close-btn:hover {
    background: #e6e6e6 !important;
    color: #000000 !important;
    border-color: #e6e6e6 !important;
    transform: scale(1.1);
}

/* Reviews & Ratings UI */
.feedback-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #222222;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.5px;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: #111111;
    border: 1px solid #222222;
    padding: 8px 12px;
    border-radius: 8px;
    width: fit-content;
}

.star-rating i {
    font-size: 16px;
    color: #444444;
    transition: color 0.2s ease;
}

.star-rating i.active, .star-rating i:hover {
    color: #ffc107;
}

.fb-input {
    width: 100%;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.btn-submit-fb {
    width: 100%;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.comments-list {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.comment-item {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: #222222;
}

.comment-user {
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.comment-stars {
    color: #ffc107;
    font-size: 11px;
    margin-left: auto;
}

.comment-text {
    color: #dddddd;
    line-height: 1.45;
    word-break: break-word;
}

.comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.comment-time {
    font-size: 9px;
    color: #666666;
    margin-left: auto;
}

/* Accordion and Methods */
.method-desktop-grid {
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.accordion {
    cursor: pointer;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    user-select: none;
    box-sizing: border-box;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.25s ease;
    text-align: left;
}

.instructions-content.open {
    max-height: 3000px;
    opacity: 1;
    margin-top: 12px;
}

.instruction-card {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.section-group {
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.steps-list {
    font-size: 0.82rem;
    color: #aaaaaa;
    line-height: 1.6;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 2px 0;
    border-bottom: none;
}

.steps-list li .bullet {
    color: #ffffff;
    font-weight: 900;
    font-size: 12px;
}

.upload-zone {
    border: 2px dashed #333333;
    padding: 36px 20px;
    border-radius: 16px;
    cursor: pointer;
    background: #0d0d0d;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
    user-select: none;
}

.upload-zone:hover {
    border-color: #666666;
    background: #121212;
}

.upload-zone.dragover {
    border-color: #ffffff;
    background: #181818;
}

.upload-zone.processing-disabled,
.upload-zone.is-processing {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.65;
    background: #080808;
    border-color: #444444;
    user-select: none;
}

.upload-zone-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    color: #ffffff;
}

/* Chat Input Bar */
.chat-input-area {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.chat-input {
    flex: 1 1 auto;
    min-width: 0;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 50px;
    padding: 11px 16px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.chat-send-btn {
    border-radius: 50% !important;
    padding: 0 !important;
    height: 42px;
    width: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    font-weight: 900 !important;
    font-size: 15px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.chat-send-btn:hover {
    transform: scale(1.06);
    opacity: 0.92;
}

.chat-photo-btn {
    border-radius: 50px !important;
    padding: 0 14px !important;
    height: 42px;
    font-size: 15px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-photo-preview-bar, .chat-reply-preview-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #141414;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 6px 12px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.chat-photo-preview-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.chat-photo-cancel-btn, .chat-reply-cancel-btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-photo-cancel-btn i, .chat-reply-cancel-btn i {
    color: #000000 !important;
}

.chat-image-wrap {
    margin-top: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.chat-message.my-message .chat-image-wrap {
    justify-content: flex-end;
}

.chat-attached-image {
    max-width: 100%;
    max-height: 240px;
    border-radius: 12px;
    border: 1px solid #333333;
    object-fit: contain;
    background: #000000;
    display: block;
}

/* User Search Box */
.user-search-box {
    display: flex;
    align-items: center;
    background: #141414;
    border: 1px solid #282828;
    border-radius: 12px;
    padding: 8px 12px;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.user-search-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 12px;
    width: 100%;
    outline: none;
}

.private-chat-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.private-chat-target-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.private-chat-target-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #333333;
    background: #222222;
    flex-shrink: 0;
}

.private-chat-target-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    gap: 2px;
}

.private-chat-target-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.private-chat-target-status {
    font-size: 10.5px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.private-chat-target-status span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-close-private {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-close-private i {
    color: #000000 !important;
}

.btn-close-private:hover {
    background: #e6e6e6 !important;
    color: #000000 !important;
    border-color: #e6e6e6 !important;
    transform: scale(1.1);
}

/* Edit message modal */
.chat-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 29000;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.chat-edit-box {
    background: #0d0d0d;
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}

.chat-edit-input, .chat-edit-textarea {
    width: 100%;
    background: #181818;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 12px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.chat-edit-textarea {
    min-height: 90px;
    resize: vertical;
}

.chat-edit-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.chat-edit-save-btn, .chat-edit-cancel-btn {
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    cursor: pointer;
}

/* Admin Panel Tab UI */
.admin-panel-card {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.admin-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #222222;
    padding-bottom: 12px;
}

.admin-section-title {
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.admin-user-row {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Ads & Footer */
.ad-container-wrapper {
    width: 100%;
    margin: 28px 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ad-label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 14px 0;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-label::before, .ad-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #2a2a2a;
}

.ad-container-block {
    width: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #080808;
    border: 1px dashed #333333;
    border-radius: 16px;
    overflow: hidden;
}

.footer {
    text-align: center;
    color: #666666;
    margin: 30px 0 15px 0;
    width: 100%;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    color: #ffffff;
    font-size: 30px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

@keyframes tg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   EDIT CHAT MESSAGE MODAL (PREMIUM DARK & CRISP TYPOGRAPHY)
   ========================================================================== */
.chat-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 32000;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.chat-edit-box {
    background: #0d0d0d;
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 22px 20px;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.chat-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #222222;
    padding-bottom: 12px;
    width: 100%;
}

.chat-edit-title {
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.chat-edit-close-btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s ease;
}

.chat-edit-close-btn i {
    color: #000000 !important;
}

.chat-edit-close-btn:hover {
    background: #e6e6e6 !important;
    color: #000000 !important;
    border-color: #e6e6e6 !important;
    transform: scale(1.08);
}

.chat-edit-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.chat-edit-textarea {
    width: 100%;
    background: #141414;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 13.5px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-edit-textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 1px #ffffff;
}

.chat-edit-hint {
    font-size: 10.5px;
    color: #777777;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 2px;
}

.chat-edit-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.chat-edit-cancel-btn {
    flex: 1;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #000000 !important;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.chat-edit-cancel-btn i {
    color: #000000 !important;
}

.chat-edit-cancel-btn:hover {
    background: #e6e6e6 !important;
    color: #000000 !important;
    border-color: #e6e6e6 !important;
}

.chat-edit-save-btn {
    flex: 1.3;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #000000 !important;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.chat-edit-save-btn:hover {
    background: #e0e0e0 !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   SEEN USERS MODAL (WIDE, NON-CLIPPING, CLEAN ALIGNMENT)
   ========================================================================== */
.seen-users-modal-box {
    max-width: 480px;
    width: 95%;
    padding: 20px;
    text-align: left;
    background: #0d0d0d;
    border: 1px solid #333333;
    border-radius: 20px;
    box-sizing: border-box;
}

.seen-modal-close-btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s ease;
}

.seen-modal-close-btn i {
    color: #000000 !important;
}

.seen-modal-close-btn:hover {
    background: #e6e6e6 !important;
    color: #000000 !important;
    border-color: #e6e6e6 !important;
    transform: scale(1.08);
}

.seen-users-list {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding-right: 2px;
}

.seen-user-item, .seen-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #131313;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.seen-user-item:hover {
    background: #181818;
    border-color: #383838;
}

.seen-user-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.seen-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e1e1e;
    border: 1px solid #333333;
    flex-shrink: 0;
}

.seen-user-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.seen-user-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.seen-user-display {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seen-user-sub-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: #888888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seen-user-time {
    font-size: 10.5px;
    color: #888888;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 4px;
}

/* ==========================================================================
   ADMIN PANEL MANAGE USERS STYLES (1080P & LOW-END RESPONSIVE ALIGNMENT)
   ========================================================================== */
.admin-user-row {
    background: #121212;
    border: 1px solid #282828;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

@media (min-width: 768px) {
    .admin-user-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }
}

.admin-user-row:hover {
    background: #161616;
    border-color: #404040;
}

.admin-user-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.admin-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #444444;
    flex-shrink: 0;
    background: #1e1e1e;
}

.admin-user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 5px;
}

.admin-user-header-row {
    font-size: 13.5px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-tg-name {
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.admin-tg-id-pill {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}

.admin-tg-id-pill i {
    color: #000000 !important;
}

.site-verify-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.site-verify-pill.verified {
    background: rgba(40, 167, 69, 0.18);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.site-verify-pill.not-verified {
    background: rgba(255, 77, 77, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 77, 77, 0.35);
}

.tg-group-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.tg-group-status.in-group {
    background: rgba(40, 167, 69, 0.18);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.tg-group-status.left-group {
    background: rgba(255, 77, 77, 0.18);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.4);
}

.tg-group-status.not-in-group {
    background: rgba(136, 136, 136, 0.18);
    color: #cccccc;
    border: 1px solid rgba(136, 136, 136, 0.35);
}

.user-apps-verify-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.app-verify-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.app-verify-pill.app-verified {
    background: rgba(40, 167, 69, 0.15);
    color: #4cd964;
    border: 1px solid rgba(40, 167, 69, 0.35);
}

.app-verify-pill.app-not-verified {
    background: rgba(255, 255, 255, 0.05);
    color: #888888;
    border: 1px solid #333333;
}

.admin-status-banned {
    background: #ffffff;
    color: #000000;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid #ffffff;
}

.admin-status-active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ALL BUTTONS IN ADMIN PANEL: BACKGROUND WHITE & TEXT BLACK */
.admin-action-btn,
.btn-admin-post,
.admin-panel-card .btn,
.post-composer-card .btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    font-weight: 900 !important;
    margin-top: 0 !important;
    width: auto !important;
    padding: 7px 12px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

.admin-action-btn i,
.btn-admin-post i,
.admin-panel-card .btn i,
.post-composer-card .btn i {
    color: #000000 !important;
}

.admin-action-btn:hover,
.btn-admin-post:hover,
.admin-panel-card .btn:hover,
.post-composer-card .btn:hover {
    background: #e6e6e6 !important;
    color: #000000 !important;
    border-color: #e6e6e6 !important;
    transform: translateY(-1px) !important;
}

.admin-action-btn:active,
.btn-admin-post:active,
.admin-panel-card .btn:active,
.post-composer-card .btn:active {
    transform: scale(0.98) !important;
}

.admin-del-btn,
.admin-ban-btn,
.admin-unban-btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
}

.admin-del-btn:hover,
.admin-ban-btn:hover,
.admin-unban-btn:hover {
    background: #f0f0f0 !important;
    color: #000000 !important;
    border-color: #f0f0f0 !important;
}

.fb-already-submitted {
    background: #111111;
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 12px 14px;
    color: #cccccc;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

/* ==========================================================================
   RESPONSIVE DESIGN & ALIGNMENT FOR 1080P DESKTOP & LOW-END DEVICES
   ========================================================================== */

@media (min-width: 992px) {
    .container {
        max-width: 1060px;
        padding: 0 24px;
    }

    .cards-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        align-items: stretch;
    }

    .card {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        padding: 24px 20px;
    }

    .card-sub {
        flex: 1 0 auto;
        min-height: 52px;
    }

    .card .btn {
        margin-top: auto;
    }

    .method-desktop-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
        align-items: start;
        max-width: 1060px;
        margin: 0 auto 20px auto;
    }

    .community-card {
        max-width: 900px;
        height: calc(100vh - 90px);
        min-height: 860px;
        max-height: none;
        padding: 22px;
    }

    .post-composer-card,
    .post-item-card,
    .instruction-card {
        max-width: 880px;
        margin-left: auto;
        margin-right: auto;
    }

    .user-dashboard {
        max-width: 1060px;
        padding: 14px 20px;
    }

    .search-container {
        max-width: 1060px;
    }

    .ad-container-wrapper {
        max-width: 1060px;
    }
}

@media (min-width: 641px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 18px;
    }

    .cards-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        align-items: stretch;
    }

    .card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .card .btn {
        margin-top: auto;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px 0 110px 0;
    }

    .container {
        padding: 0 10px;
    }

    .section-title {
        font-size: 19px;
    }

    .title-icon {
        width: 32px;
        height: 32px;
    }

    .user-dashboard {
        padding: 10px 12px;
        border-radius: 14px;
        gap: 8px;
    }

    .dashboard-avatar {
        width: 36px;
        height: 36px;
    }

    .dashboard-name {
        font-size: 12px;
    }

    .dashboard-status-badge {
        padding: 4px 10px;
        font-size: 9px;
    }

    .card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .card-header-title {
        font-size: 17px;
        padding-right: 70px;
    }

    .best {
        top: 14px;
        right: 14px;
        font-size: 8px;
        padding: 3px 8px;
    }

    .card-sub {
        font-size: 11.5px;
        line-height: 1.4;
    }

    .app-meta {
        gap: 4px;
        padding: 6px 0;
    }

    .meta-item {
        font-size: 9px;
        padding: 3px 6px;
    }

    .btn, .btn-tutorial, .btn-tutorial-close {
        padding: 11px 14px;
        font-size: 12px;
    }

    .bottom-nav {
        width: calc(100% - 10px);
        bottom: 8px;
        padding: 5px 2px;
        gap: 1px;
    }

    .nav-item {
        padding: 4px 1px;
    }

    .nav-item i {
        font-size: 0.95rem;
    }

    .nav-item span {
        font-size: 7.5px;
        letter-spacing: -0.2px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }

    .community-card {
        height: calc(100vh - 85px);
        min-height: 620px;
        max-height: none;
        padding: 14px 10px;
        border-radius: 16px;
    }

    .comm-sub-btn {
        padding: 7px 6px;
        font-size: 10.5px;
        gap: 4px;
    }

    .chat-message {
        max-width: 92%;
        padding: 8px 10px;
    }

    .chat-text {
        font-size: 12.5px;
    }

    .chat-send-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        flex: 0 0 40px;
        font-size: 14px;
        padding: 0;
    }

    .chat-photo-btn {
        padding: 0 12px;
    }

    .upload-zone {
        padding: 26px 14px;
    }

    .upload-zone-icon {
        font-size: 2.4rem;
    }

    .post-item-card {
        padding: 14px 12px;
        border-radius: 16px;
    }
}

/* Disable animation and movement effect on refresh button when clicked */
button[onclick*="renderAdminPanel"],
button[onclick*="renderAdminPanel"]:hover,
button[onclick*="renderAdminPanel"]:active,
button[onclick*="renderAdminPanel"]:focus,
button[onclick*="renderAdminPanel"] i,
#pull-to-refresh-indicator,
#pull-to-refresh-indicator i {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}
