/* Buttons */
.btn-main {
    background: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.5);
    background: #1E90FF;
    border-top-color: rgba(255, 255, 255, 0.9);
}

#nav-login {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white !important;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
}

#nav-login:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-top-color: white;
}

#nav-logout {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
}

#nav-logout:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-top-color: rgba(255, 255, 255, 0.2);
}

.btn-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-main:hover::after {
    left: 100%;
}

.btn-main:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-main:active {
    transform: translateY(0);
}

.btn-alt {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-alt:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.btn-details,
.btn-back {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 0.5rem;
    display: inline-block;
}

.btn-details:hover,
.btn-back:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Auth & Forms */
.auth-box,
.create-form-box {
    max-width: 450px;
    margin: 4rem auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.create-form-box {
    max-width: 800px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: center;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: white;
}

.search-bar {
    flex-grow: 1;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 1rem;
}

.filter-select {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    min-width: 180px;
    cursor: pointer;
}

select {
    max-height: 200px;
    overflow-y: auto;
}

/* Listings Cards */
.item-card {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.item-card:nth-child(1) {
    animation-delay: 0.1s;
}

.item-card:nth-child(2) {
    animation-delay: 0.15s;
}

.item-card:nth-child(3) {
    animation-delay: 0.2s;
}

.item-card:nth-child(4) {
    animation-delay: 0.25s;
}

.item-card:nth-child(5) {
    animation-delay: 0.3s;
}

.item-card:nth-child(6) {
    animation-delay: 0.35s;
}

.item-card:nth-child(7) {
    animation-delay: 0.4s;
}

.item-card:nth-child(8) {
    animation-delay: 0.45s;
}

.item-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    z-index: 10;
    background: white;
}

.card-image {
    height: 180px;
    background-color: #1e293b;
    position: relative;
    overflow: hidden;
}

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

.card-image-scroll::-webkit-scrollbar {
    display: none;
}

.card-image-scroll img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: center;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.price {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.condition-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-color);
}

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

/* Details View */
.details-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
    backdrop-filter: blur(12px);
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.details-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.details-meta {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
    width: 100%;
}

.main-image-frame {
    width: auto;
    max-width: 100%;
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
}

.main-image-frame img {
    display: block;
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border: 5px solid var(--border-color);
    background: var(--bg-card);
    transition: transform 0.3s ease;
}

.thumbnails-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
    max-width: 100%;
    scroll-behavior: smooth;
}

.thumbnail-btn {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
    background: var(--bg-card);
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumbnail-btn.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.thumbnails-track::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.thumbnails-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.details-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.info-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.seller-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    color: #333;
    border: none;
}

.google-btn:hover {
    background: #f1f5f9;
}

/* No Image Placeholder */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e293b, #312e81, #0f172a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.no-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.no-image-placeholder::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.no-image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
    transition: transform 0.3s ease;
}

.item-card:hover .no-image-placeholder i {
    transform: scale(1.1) rotate(5deg);
}

.no-image-placeholder span {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #94a3b8, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.no-image-placeholder.large {
    height: 400px;
    font-size: 1.2rem;
}

.no-image-placeholder.large i {
    font-size: 4rem;
}

/* Profile View */
.profile-header {
    background: var(--card-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    color: var(--text-main);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    overflow: hidden;
}

.profile-text h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    text-align: left;
}

.profile-text p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 120px;
    border: 1px solid var(--border-color);
}

.stat-card h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: none;
}

.stat-card p {
    margin: 0.25rem 0 0;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Notifications */
.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    border: 2px solid var(--bg-dark);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 380px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    transform-origin: top right;
    animation: scaleIn 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.dropdown-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-text {
    background: none;
    border: none;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-text:hover {
    color: #1e40af;
    text-decoration: underline;
}

#notification-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

#notification-list::-webkit-scrollbar {
    width: 6px;
}

#notification-list::-webkit-scrollbar-track {
    background: transparent;
}

#notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notification-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    border: 1px solid transparent;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.notification-item.unread {
    background: rgba(29, 78, 216, 0.05);
    border-left: 3px solid #1d4ed8;
}

.notification-item.unread:hover {
    background: rgba(29, 78, 216, 0.12);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1d4ed8;
    font-size: 1.2rem;
}

.notification-item.unread .notif-icon {
    background: #1d4ed8;
    color: white;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}

.notif-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notif-message {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-delete-notif {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0;
    transition: all 0.2s;
    border-radius: 50%;
}

.btn-delete-notif:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.notification-item:hover .btn-delete-notif {
    opacity: 1;
}

.no-notifs {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-notifs::before {
    content: '\f0f3';
    font-family: 'remixicon';
    font-size: 3rem;
    opacity: 0.2;
}

/* Comments */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments-section h3 {
    margin-bottom: 1.5rem;
}

.comment-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.comment-form input {
    flex-grow: 1;
    border-radius: 2rem;
}

.comment-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Chat */
.chat-container {
    display: flex;
    height: calc(100vh - 100px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.chat-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
}

.chat-sidebar h3 {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.chat-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.chat-item {
    padding: 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    border: 1px solid transparent;
}

.chat-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chat-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.chat-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-main);
}

.chat-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.btn-delete-chat {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
}

.btn-delete-chat:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    transform: scale(1.1);
}

.chat-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #475569, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-window {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.chat-user-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.chat-user-info span {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.chat-messages {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    max-width: 80%;
    margin-bottom: 1rem;
    width: 100%;
}

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

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

.chat-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.message.sent {
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px 20px 4px 20px;
}

.message.received {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-radius: 20px 20px 20px 4px;
    border: 1px solid var(--border-color);
}

.chat-input-area {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    align-items: center;
    position: relative;
    z-index: 10;
}

.chat-input-area input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-input-area input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.chat-input-area input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.chat-input-area button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    font-size: 1.2rem;
}

.chat-input-area button:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.5);
}

.chat-input-area button:active {
    transform: scale(0.95);
}

.btn-back-chat {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

.empty-chat-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.empty-chat-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.message.has-image {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: flex;
    flex-direction: column;
}

.message.has-image.sent {
    align-items: flex-end;
}

.message.has-image.received {
    align-items: flex-start;
}

.message img {
    max-width: 250px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    object-fit: cover;
    display: block;
}

.message img:hover {
    transform: scale(1.02);
}

.message.has-image span {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    border-top-right-radius: 2px;
    max-width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message.received.has-image span {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-top-right-radius: 12px;
    border-top-left-radius: 2px;
}

/* Ratings & Reviews */
.rating-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-stars.large {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.review-form-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
}

.star-rating-widget {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.star-item {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.star-item:hover {
    transform: scale(1.1);
}

.star-item.active,
.star-item.hover {
    color: #fbbf24;
}

.reviews-container {
    margin-top: 2rem;
}

.review-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, background 0.2s;
}

.review-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.bg-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.bg-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bg-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.bg-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.bg-pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.review-author {
    font-weight: 600;
    color: var(--text-main);
    display: block;
    line-height: 1.2;
}

.rating-stars.small {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.reviews-summary-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.rating-big-display {
    text-align: center;
    min-width: 120px;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.rating-distribution {
    flex-grow: 1;
    max-width: 400px;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dist-star {
    min-width: 35px;
}

.dist-bar-bg {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.dist-bar-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 3px;
}

.dist-count {
    min-width: 20px;
    text-align: right;
}

/* Category Scroll (Mobile/Premium) */
.category-scroll-container {
    padding: 1.5rem 0 2rem;
    gap: 1.2rem;
    display: flex;
    overflow-x: auto;
    margin-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    cursor: pointer;
    transition: transform 0.2s;
}

.category-item:active {
    transform: scale(0.95);
}

.cat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.category-item.active .cat-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 4px 15px var(--primary-glow);
    border: none;
    color: white;
}

.category-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.category-item.active span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Modals */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background-color: var(--bg-card);
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--danger-color);
    text-decoration: none;
    cursor: pointer;
}

/* Click to View Button Overlay */
.click-to-view-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.click-to-view-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateX(-50%) scale(1.05);
}

/* Full Photo Modal */
.full-photo-modal {
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.full-photo-modal.hidden {
    display: none !important;
}

.full-photo-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.full-photo-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
    display: none;
}

.full-photo-content.active {
    display: block;
}

.close-full-photo {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 4002;
}

.close-full-photo:hover,
.close-full-photo:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 4001;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Lightbox (Toggle Mode) */
.lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
    backdrop-filter: blur(5px);
    margin: 0;
    padding: 0;
}

.lightbox.hidden {
    display: none !important;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* Chat Image Styling */
.message.has-image {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: flex;
    flex-direction: column;
}

.message.has-image.sent {
    align-items: flex-end;
}

.message.has-image.received {
    align-items: flex-start;
}

.message img {
    max-width: 250px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    object-fit: cover;
    display: block;
}

.message img:hover {
    transform: scale(1.02);
}

/* If text accompanies image, style it separately */
.message.has-image span {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    border-top-right-radius: 2px;
    max-width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message.received.has-image span {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-top-right-radius: 12px;
    border-top-left-radius: 2px;
}

/* Chat Avatar Fix */
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: var(--bg-card);
    flex-shrink: 0;
}

.chat-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.message-row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 1rem;
    width: 100%;
}

.message-row.sent {
    flex-direction: row-reverse;
}

.message-row.sent .chat-avatar {
    margin-right: 0;
    margin-left: 0.75rem;
}