:root {
    --primary-cyan: #00bcd4;
    --primary-orange: #ff5722;
    --dark-bg: #0b0e11;
    --surface-bg: #1e2329;
    --text-white: #eaecef;
    --grey-text: #848e9c;
    --border-color: #2b3139;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    scroll-behavior: smooth;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

header h1 {
    font-size: 2.5rem;
}

/* Navigation */
nav {
    background: rgba(11, 14, 17, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    justify-self: start;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-cyan);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin-left: 15px;
}

.nav-logo img {
    width: 45px;
    height: 45px;
    margin-right: 12px;
    object-fit: contain;
}

.lang-switcher {
    justify-self: center;
    display: flex;
    background: var(--surface-bg);
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-auth-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

#logout-btn {
    margin-right: 15px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-cyan);
    color: #000;
}

.btn-primary:hover {
    background-color: #00d2ee;
    transform: translateY(-1px);
}

.btn-round {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: 0.2s;
    display: block;
}

.nav-avatar-link {
    display: flex;
    align-items: center;
}

.nav-avatar-link:hover .nav-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-secondary:hover {
    background-color: rgba(0, 188, 212, 0.05);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--grey-text);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lang-btn.active {
    background: var(--primary-cyan);
    color: #000;
}

/* Marketplace Grid */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.item-card {
    background: var(--surface-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.item-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.4);
}

.item-card-own {
    border: 1px solid var(--primary-cyan);
}

.item-card-favorite {
    border: 1px solid var(--primary-orange);
}

.item-card-favorite.item-card-own {
    border-image: linear-gradient(to bottom right, var(--primary-cyan), var(--primary-orange)) 1;
}

.card-favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 15;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    cursor: pointer;
    transition: 0.2s;
    border: none;
    padding: 0;
}

.card-favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.7);
}

.card-favorite-btn.active {
    color: var(--primary-orange);
}

.card-publish-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 15;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    cursor: pointer;
    transition: 0.2s;
    border: none;
    padding: 0;
}

.card-publish-btn:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.7);
}

.card-publish-btn.active {
    color: var(--primary-cyan);
}

.item-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background: #2b3139;
}

.item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.item-specs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.spec-cyan {
    color: var(--primary-cyan);
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }

    .nav-content {
        grid-template-columns: 1fr auto;
        row-gap: 20px;
        padding: 10px 0;
    }

    .nav-logo {
        grid-row: 1;
        grid-column: 1;
        margin-left: 0;
        justify-self: start;
    }

    .nav-logo span {
        font-size: 1.2rem;
    }

    .lang-switcher {
        grid-row: 1;
        grid-column: 2;
        justify-self: end;
        transform: scale(0.9);
    }

    .nav-right {
        grid-row: 2;
        grid-column: 1 / span 2;
        justify-self: center;
        gap: 12px;
    }

    .nav-auth-group {
        gap: 6px;
    }

    .nav-logo img {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }

    .btn-round {
        width: 45px;
        height: 45px;
    }

    .btn-round svg {
        width: 24px;
        height: 24px;
    }

    .nav-avatar {
        width: 45px;
        height: 45px;
    }

    header h1 {
        font-size: 1.8rem !important;
    }

    header p {
        font-size: 0.95rem !important;
    }

    .tabs-container {
        gap: 15px;
    }

    .tab-btn {
        font-size: 0.9rem;
    }

    .item-grid, #user-item-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        display: inline;
        font-size: 1.1rem;
    }

    .nav-content {
        padding: 5px 0;
        row-gap: 12px;
    }

    .nav-links {
        justify-content: center;
    }

    .filters-wrapper {
        gap: 6px;
    }

    .filter-chip {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Chat List Styles */
.chat-list-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.chat-list-item {
    display: flex;
    align-items: center;
    background: var(--surface-bg);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: 0.2s;
    gap: 15px;
}

.chat-list-item:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
}

.chat-list-item.unread {
    border-left: 4px solid var(--primary-cyan);
    background: rgba(0, 188, 212, 0.05);
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.chat-item-name {
    color: var(--primary-cyan);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
}

.chat-item-brand {
    font-size: 0.85rem;
    opacity: 0.8;
}

.chat-item-model {
    font-size: 1.05rem;
}

.chat-time {
    color: var(--grey-text);
    font-size: 0.75rem;
}

@media (max-width: 600px) {
    .chat-time {
        display: none;
    }
    .chat-item-name {
        gap: 2px;
    }
    .chat-item-brand {
        font-size: 0.8rem;
    }
    .chat-item-model {
        font-size: 0.95rem;
        font-weight: 800;
    }
}

.chat-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 2px;
}

.chat-last-msg {
    color: var(--grey-text);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-thumb {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--dark-bg);
}

.chat-delete-btn {
    background: transparent;
    border: none;
    color: var(--grey-text);
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.chat-delete-btn:hover {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}
.badge-search { color: var(--primary-orange); }

.card-rating-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 15;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 2px;
}

.item-info {
    padding: 16px;
}

.item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.item-title {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--grey-text);
}

/* Filters */
.filters-wrapper {
    margin: 20px 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filters-wrapper::-webkit-scrollbar {
    height: 4px;
}

.filters-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

.filter-chip:hover {
    border-color: var(--grey-text);
}

.filter-chip.active {
    background: var(--primary-cyan);
    color: #000;
    border-color: var(--primary-cyan);
    font-weight: 600;
}

/* Tabs Container */
.tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.btn-filter-icon {
    background: none;
    border: none;
    color: var(--grey-text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    border-radius: 8px;
    margin-bottom: -1px; /* Align with border-bottom */
}

.btn-filter-icon:hover {
    color: var(--primary-cyan);
    background: rgba(0, 188, 212, 0.05);
}

.btn-filter-icon.active {
    color: var(--primary-cyan);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 4px;
    color: var(--grey-text);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.tab-btn:hover {
    color: var(--text-white);
}

.tab-btn.active {
    color: var(--primary-cyan);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-cyan);
    border-radius: 3px 3px 0 0;
}

/* Localization display logic */
[data-lang] {
    display: none;
}

body.lang-en [data-lang="en"] { display: inline; }
body.lang-ua [data-lang="ua"] { display: inline; }
body.lang-en .block-en { display: block; }
body.lang-ua .block-ua { display: block; }

footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    text-align: center;
}

footer p {
    color: var(--grey-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

footer a {
    color: var(--primary-cyan);
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
}

/* Auth Pages */
.auth-card {
    max-width: 400px;
    margin: 60px auto;
    background: var(--surface-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--grey-text);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--dark-bg);
    color: white;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: var(--primary-cyan);
    outline: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface-bg);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-white);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--primary-cyan);
    background: rgba(0,0,0,0.5);
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.preview-images {
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    overflow-y: auto;
    max-height: 80vh;
}

.preview-images img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.preview-details {
    padding: 40px;
}

.preview-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-cyan);
    margin-bottom: 10px;
}

.preview-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.preview-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
}

.meta-label {
    font-size: 0.9rem;
    color: var(--grey-text);
    text-transform: none;
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
}

/* Kit Styles */
.kit-container {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.kit-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kit-sub-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--dark-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.kit-sub-item:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 188, 212, 0.1);
}

.kit-sub-item-img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

.kit-sub-item-info {
    flex: 1;
    min-width: 0;
}

.kit-sub-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kit-sub-item-price {
    font-size: 0.85rem;
    color: var(--primary-cyan);
    font-weight: 700;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.tech-tag {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-cyan);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Active Filter Chips */
.active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.filter-param-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-white);
}

.filter-param-chip .remove-param {
    cursor: pointer;
    color: var(--grey-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 14px;
}

.filter-param-chip .remove-param:hover {
    color: var(--primary-orange);
}

.filter-param-label {
    color: var(--grey-text);
    margin-right: 2px;
}

.preview-description {
    line-height: 1.6;
    color: var(--grey-text);
    margin-bottom: 30px;
    white-space: pre-line;
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(43, 49, 57, 0.5);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.owner-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.owner-details {
    display: flex;
    flex-direction: column;
}

.owner-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
}

.owner-contacts {
    font-size: 0.85rem;
    color: var(--grey-text);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.contact-pill {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-cyan);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 188, 212, 0.2);
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(43, 49, 57, 0.8);
    border: 1px solid var(--border-color);
}

/* Sidebar / Filters Panel */
.filters-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    height: 100%;
    background: var(--surface-bg);
    border-left: 1px solid var(--border-color);
    z-index: 2500;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.filters-panel.open {
    right: 0;
}

.filters-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filters-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--grey-text);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.filter-input {
    width: 100%;
    padding: 10px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    font-weight: 600;
    margin-top: 5px;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip-group-scrollable {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-top: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.chip-group-scrollable::-webkit-scrollbar {
    display: none;
}

.selectable-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 18px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--grey-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.selectable-chip:hover {
    border-color: var(--grey-text);
}

.selectable-chip.active {
    background: rgba(0, 188, 212, 0.1);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    font-weight: 600;
}

.toggle-group {
    display: flex;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
}

.toggle-item {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--grey-text);
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    transition: 0.2s;
}

.toggle-item:last-child {
    border-right: none;
}

.toggle-item.active {
    background: var(--primary-cyan);
    color: #000;
    font-weight: 700;
}

/* Location Autocomplete */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 5px;
    z-index: 2000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-white);
    border-bottom: 1px solid var(--border-color);
    transition: 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-cyan);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-white);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-cyan);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary-cyan);
    background: var(--border-color);
    height: 8px;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
}

.condition-progress {
    background: var(--border-color);
    position: relative;
}

.condition-progress::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
}

.condition-progress::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid currentColor;
    margin-top: -5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.condition-progress::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid currentColor;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2400;
    backdrop-filter: blur(2px);
}

.overlay.open {
    display: block;
}

/* Full Screen Image Overlay */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    cursor: zoom-out;
}

.fullscreen-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
    scrollbar-width: none;
}

.fullscreen-container::-webkit-scrollbar {
    display: none;
}

.fullscreen-container img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: start;
    cursor: default;
}

.fullscreen-overlay .close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 3010;
}

/* Custom Confirm Modal */
#confirm-modal .modal-content {
    max-width: 400px;
    margin-top: 15vh;
    padding: 30px;
    text-align: center;
}

.confirm-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-white);
}

.confirm-text {
    font-size: 1rem;
    color: var(--grey-text);
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-actions .btn {
    flex: 1;
}

.preview-actions-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.preview-actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.preview-pill-btn {
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    border: 1px solid var(--primary-cyan);
    background: transparent;
    flex: 1;
    color: var(--primary-cyan);
    transition: 0.2s;
    cursor: pointer;
}

.preview-pill-btn:hover {
    background: rgba(0, 188, 212, 0.1);
}

.moderation-btn {
    flex: 1;
    height: 54px;
    border: 1px solid var(--primary-cyan);
    background: transparent;
    color: var(--primary-cyan);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

/* Chat Styles */
.message-row {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    max-width: 85%;
}

.message-row.me {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-row.other {
    align-self: flex-start;
}

.chat-bubble-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.message-content {
    display: flex;
    flex-direction: column;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.message-row.me .chat-bubble {
    background: var(--primary-cyan);
    color: #000;
    border-bottom-right-radius: 2px;
}

.message-row.other .chat-bubble {
    background: var(--surface-bg);
    color: white;
    border-bottom-left-radius: 2px;
}

.chat-meta {
    font-size: 0.65rem;
    color: var(--grey-text);
    margin-top: 4px;
}

.message-row.me .chat-meta {
    text-align: right;
}
    border-radius: 12px;
    background: transparent;
    color: var(--primary-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}

.moderation-btn:hover {
    background: rgba(0, 188, 212, 0.05);
}

.moderation-btn.block-btn {
    color: var(--primary-orange);
    border-color: var(--border-color); /* Match image which has subtle border for block? No, keep cyan border for consistency */
}

.moderation-btn:hover {
    background: rgba(0, 188, 212, 0.05);
}

.moderation-btn.block-btn {
    color: var(--primary-orange);
}

@media (max-width: 768px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }
    .preview-images {
        min-height: 300px;
    }
    .preview-details {
        padding: 20px;
    }
}
