* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252548;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d4;
    --accent-cyan: #00f0ff;
    --accent-pink: #ff00ff;
    --accent-purple: #9d00ff;
    --accent-yellow: #ffff00;
    --accent-green: #00ff88;
    --border-color: #2a2a4e;
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.3);
    --shadow-glow-pink: 0 0 20px rgba(255, 0, 255, 0.3);
    --font-size-base: 16px;
    --font-size-medium: 18px;
    --font-size-large: 22px;
    --font-size-title: 28px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(157, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 50%);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: var(--bg-card);
    border: 2px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

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

.logo {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.logo h1 {
    font-size: var(--font-size-title);
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.cyber-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-pink), transparent);
    margin: 10px 0;
}

.login-form {
    position: relative;
    z-index: 1;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: var(--font-size-medium);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-login, .btn-load-more {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: 5px;
    color: var(--text-primary);
    font-size: var(--font-size-medium);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-login:hover, .btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-pink);
}

.btn-login:active, .btn-load-more:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover .btn-glow, .btn-load-more:hover .btn-glow {
    left: 100%;
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    border-radius: 5px;
    color: #ff6b6b;
    display: none;
    font-size: var(--font-size-base);
}

.error-message.show {
    display: block;
}

/* Dashboard */
.dashboard-page {
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header-content h1 {
    font-size: var(--font-size-title);
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.btn-logout {
    padding: 10px 20px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    border-radius: 5px;
    color: #ff6b6b;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.view-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.view-btn {
    padding: 10px 25px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.view-container {
    min-height: 400px;
}

.view-container.hidden {
    display: none;
}

/* Grid View - 2 Kolom menggunakan Flexbox */
.grid-view {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px;
    margin-bottom: 30px;
}

.grid-view .grid-item {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    min-width: 0;
}

.grid-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.item-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.item-price-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent-yellow);
    font-weight: bold;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--accent-yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 0, 0.3);
    z-index: 10;
    white-space: nowrap;
    box-sizing: border-box;
    width: fit-content;
    text-align: left;
}

.item-winner-overlay {
    position: absolute;
    top: 48px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: bold;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
    white-space: nowrap;
    box-sizing: border-box;
    width: fit-content;
    text-align: left;
}

.item-winner-overlay.winner-menang {
    color: #00ff88;
    border: 1px solid #00ff88;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 255, 136, 0.3);
}

.item-winner-overlay.winner-kalah {
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 107, 107, 0.3);
}

/* Winner status badges (for list view and grid view) */
.status-badge.winner-menang {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #00ff88;
    border: 1px solid #00ff88;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 255, 136, 0.3);
}

.status-badge.winner-kalah {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 107, 107, 0.3);
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.5s ease;
}

.grid-item:hover::before {
    left: 100%;
}

.grid-item:hover {
    border-color: var(--border-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.item-date-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    background: var(--bg-card-hover);
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.item-title {
    font-size: var(--font-size-medium);
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: var(--font-size-base);
    margin-top: 10px;
    flex: 1;
}

.item-title {
    flex-shrink: 0;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.info-value.info-price {
    color: var(--accent-yellow);
    font-weight: bold;
    font-size: var(--font-size-medium);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-laku {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.status-batal {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.status-paid {
    background: rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.status-unpaid {
    background: rgba(255, 255, 0, 0.2);
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
}

/* List View */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-item:hover {
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.list-item-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    font-size: var(--font-size-base);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.load-more-container.hidden {
    display: none;
}

.btn-load-more {
    max-width: 300px;
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-load-more:disabled:hover {
    box-shadow: none;
}

.spinner-small {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    animation: spin 1s linear infinite;
}

/* Modal - Full Screen */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
}

.modal.hidden {
    display: none;
}

/* Modal Image Gallery */
.modal-image-gallery {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.modal-main-image {
    width: 100%;
    max-height: 400px;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--accent-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-main-image:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-darker);
    display: block;
}

.modal-image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.modal-image-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-image-thumbnails img:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.1);
}

.modal-image-thumbnails img.active {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

/* Image Gallery Lightbox */
.image-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-gallery-container {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.gallery-close:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-50%) scale(1.1);
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-glow);
}

.modal-header {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-bottom: 2px solid var(--accent-cyan);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-title {
    font-size: var(--font-size-large);
    color: var(--accent-cyan);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.1);
}

.modal-back-btn {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 16px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.modal-back-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: var(--shadow-glow);
}

.modal-body {
    font-size: var(--font-size-base);
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-detail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-detail-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-detail-row:last-child {
    border-bottom: none;
}

.modal-detail-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-detail-value {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
}

.modal-detail-actions {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 2px solid var(--border-color);
}

.modal-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-action-btn:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.modal-action-btn .action-icon {
    font-size: 20px;
    line-height: 1;
}

.modal-action-btn .action-label {
    font-size: var(--font-size-base);
}

.favorite-action-btn.active {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.favorite-action-btn.active:hover {
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
}

.share-action-btn:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
        --font-size-medium: 16px;
        --font-size-large: 18px;
        --font-size-title: 24px;
    }
    
    .dashboard-container {
        padding: 15px;
    }
    
    .grid-view {
        gap: 10px !important;
    }
    
    .grid-view .grid-item {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }
    
    .list-item-body {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

/* Floating Header */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--accent-cyan);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Chat Preview Banner - Inside dashboard-content, not floating */
.chat-preview-banner {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.15) 0%, rgba(6, 207, 156, 0.15) 100%);
    border-bottom: 1px solid rgba(0, 168, 132, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.chat-preview-banner:hover {
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.25) 0%, rgba(6, 207, 156, 0.25) 100%);
    border-bottom-color: rgba(0, 168, 132, 0.5);
}

.chat-preview-banner.hidden {
    display: none;
}

.chat-preview-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.chat-preview-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.chat-preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-preview-username {
    font-size: 13px;
    font-weight: 600;
    color: #00a884;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-preview-message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-preview-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    flex-shrink: 0;
}

.floating-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-left h1 {
    font-size: 18px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.2;
}

.server-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

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

.header-icon-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-icon-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: var(--shadow-glow);
}

.header-icon-btn.active {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.2);
}

.header-menu {
    position: relative;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-card);
    border: 2px solid var(--accent-cyan);
    border-radius: 8px;
    min-width: 150px;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}

.menu-dropdown.hidden {
    display: none;
}

.menu-item {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-base);
}

.menu-item:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    overflow-x: auto;
    background: rgba(26, 26, 46, 0.5);
    border-top: 1px solid var(--border-color);
}

.filter-bar::-webkit-scrollbar {
    height: 4px;
}

.filter-bar::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

.filter-bar::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 2px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: var(--shadow-glow-pink);
}

/* Floating View Toggle Button */
.view-toggle-fab {
    position: fixed;
    bottom: 80px; /* Above floating nav (nav height ~60-70px) */
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4), 0 0 20px rgba(157, 0, 255, 0.3);
    z-index: 997; /* Below floating nav (z-index 998) */
    transition: all 0.3s ease;
}

.view-toggle-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5), 0 0 30px rgba(157, 0, 255, 0.4);
}

.view-toggle-fab:active {
    transform: scale(0.95);
}

/* Explore Search Bar */
.explore-search-bar {
    display: flex;
    padding: 15px 20px;
    background: rgba(26, 26, 46, 0.5);
    border-top: 1px solid var(--border-color);
}

.explore-search-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.explore-search-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.explore-search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.explore-search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.explore-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-pink);
}

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

/* Adjust dashboard-content padding when explore search bar is present */
body:has(.explore-search-bar) .dashboard-content {
    padding-top: 140px !important; /* 70px header + ~70px search bar */
}

/* Grid View 2 Kolom menggunakan Flexbox */
.grid-view-3 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px;
    margin-bottom: 30px;
}

.grid-view-3 .grid-item {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    min-width: 0;
    min-height: 400px;
}

/* Mobile - Adjust item size untuk 2 kolom */
@media (max-width: 768px) {
    .grid-view-3 {
        gap: 10px !important;
    }
    
    .grid-view-3 .grid-item {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        min-height: 300px;
        padding: 12px;
    }
    
    .grid-view {
        gap: 8px !important;
    }
    
    .grid-view .grid-item {
        flex: 0 0 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }
    
    
    .grid-view-3 .item-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
        min-height: 3em;
    }
    
    .grid-view-3 .item-info {
        font-size: 12px;
        gap: 8px;
    }
    
    .grid-view-3 .info-value.info-price {
        font-size: 13px;
    }
}

.grid-view-3 .grid-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    display: block;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-card));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-view-3 .grid-item-image.loaded {
    opacity: 1;
}

.grid-view-3 .grid-item-image.error {
    display: none;
}

.item-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-card));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.item-image-placeholder::before {
    content: '📷';
    font-size: 48px;
    opacity: 0.3;
}

.item-image-placeholder::after {
    content: 'Gambar tidak tersedia';
    position: absolute;
    bottom: 15px;
    font-size: 12px;
    opacity: 0.6;
}

.grid-view-3 .item-title {
    -webkit-line-clamp: 3;
    min-height: 4.2em;
}

/* Color Coding untuk Status */
.grid-item[data-status="LAKU"] {
    border-color: var(--border-color);
    background: var(--bg-card);
}

.grid-item[data-status="LAKU"]:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.grid-item[data-status="BATAL"] {
    border-color: var(--border-color);
    background: var(--bg-card);
}

.grid-item[data-status="BATAL"]:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.grid-item[data-status="TAYANG"] {
    border-color: var(--border-color);
    background: var(--bg-card);
}

.grid-item[data-status="TAYANG"]:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.grid-item[data-payment="PAID"] {
    border-left: 4px solid var(--border-color);
}

.grid-item[data-payment="UNPAID"] {
    border-left: 4px solid var(--border-color);
}

/* Slideshow Section */
.slideshow-section {
    margin-bottom: 40px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--accent-cyan);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card);
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.slideshow-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--accent-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.slideshow-prev {
    left: 15px;
}

.slideshow-next {
    right: 15px;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-50%) scale(1.1);
}

/* Section Title */
.lelang-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: var(--font-size-large);
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 2px solid var(--accent-cyan);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 5px;
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.1);
    box-sizing: border-box;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 60px;
    flex: 1;
    max-width: 100px;
}

.nav-btn span {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-btn:hover {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

.nav-btn.active {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.nav-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

/* Account Card */
.account-card {
    background: var(--bg-card);
    border: 2px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-glow);
}

.account-card h2 {
    font-size: var(--font-size-large);
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.account-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

/* Dashboard Content Padding untuk Floating Nav */
.dashboard-content {
    padding-bottom: 90px;
    padding-top: 100px !important;
}

.dashboard-container {
    padding-bottom: 0;
}

/* Image Placeholder - sudah didefinisikan di atas dengan item-image-wrapper */

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
        --font-size-medium: 16px;
        --font-size-large: 18px;
        --font-size-title: 24px;
    }
    
    .dashboard-container {
        padding: 15px;
    }
    
    .grid-view {
        gap: 10px !important;
    }
    
    .grid-view .grid-item {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }
    
    .grid-view-3 {
        gap: 10px !important;
    }
    
    .grid-view-3 .grid-item {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        min-height: 350px;
    }
    
    .list-item-body {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .floating-header-content {
        padding: 10px 15px;
    }
    
    .header-left h1 {
        font-size: 18px;
    }
    
    .filter-bar {
        padding: 10px 15px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .view-toggle-fab {
        bottom: 75px; /* Adjust for mobile nav height */
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .view-toggle-fab svg {
        width: 20px;
        height: 20px;
    }
    
    .explore-search-bar {
        padding: 10px 15px;
    }
    
    .explore-search-form {
        gap: 8px;
    }
    
    .explore-search-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .explore-search-btn {
        padding: 10px 16px;
        min-width: 45px;
    }
    
    body:has(.explore-search-bar) .dashboard-content {
        padding-top: 120px !important; /* Mobile: 70px header + ~50px search bar */
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .dashboard-content {
        padding-top: 85px !important; /* Header ~70px + 15px spacing for mobile */
    }
    
    .floating-nav {
        padding: 10px 5px;
    }
    
    .nav-btn {
        padding: 6px 8px;
        min-width: 50px;
        max-width: 80px;
    }
    
    .nav-btn span {
        font-size: 10px;
    }
    
    .nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .dashboard-content {
        padding-bottom: 85px !important;
    }
}

/* Chat Welcome Modal */
.chat-welcome-modal {
    position: fixed;
    top: 70px; /* Below floating header (~70px) */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px - 70px); /* Full height minus header and nav bar (~70px each) */
    z-index: 997; /* Below floating header (999) and nav (998), but above chat content */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 80px; /* Space for floating nav */
    box-sizing: border-box;
    pointer-events: none; /* Allow clicks to pass through overlay to content below */
}

.chat-welcome-modal.hidden {
    display: none;
}

.chat-welcome-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: all; /* Catch clicks on overlay */
}

.chat-welcome-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--accent-cyan);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 220px); /* Account for header and nav space */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.1);
    z-index: 1;
    pointer-events: all; /* Enable clicks on modal content */
}

.chat-welcome-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-welcome-modal-header h2 {
    margin: 0;
    font-size: var(--font-size-large);
    color: var(--accent-cyan);
    font-weight: 600;
}

.chat-welcome-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.chat-welcome-close:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    transform: scale(1.1);
}

.chat-welcome-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.chat-welcome-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-welcome-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.chat-welcome-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
}

.chat-welcome-text {
    flex: 1;
}

.chat-welcome-text strong {
    display: block;
    color: var(--accent-cyan);
    font-size: var(--font-size-medium);
    margin-bottom: 8px;
    font-weight: 600;
}

.chat-welcome-text p {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.chat-welcome-modal-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.chat-welcome-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.chat-welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

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

/* Chat Room Styles - WhatsApp/Messenger Style */
.chat-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, #0e1621 0%, #0a0a0f 100%);
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 80px 0 150px; /* Increased bottom padding to accommodate fixed chat-input-container */
    overflow: hidden;
    background: #0e1621;
}

.admin-call-banner {
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.2) 0%, rgba(6, 207, 156, 0.2) 100%);
    border-bottom: 2px solid #00a884;
    padding: 12px 20px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-call-banner:hover {
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.3) 0%, rgba(6, 207, 156, 0.3) 100%);
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.3);
}

.admin-call-text {
    color: #00a884;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    background: #0e1621;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

.chat-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.reply-indicator {
    background: rgba(0, 168, 132, 0.1);
    border-left: 3px solid #00a884;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.reply-indicator-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.reply-indicator-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reply-indicator-label {
    font-size: 12px;
    font-weight: 600;
    color: #00a884;
}

.reply-indicator-message {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reply-indicator-cancel {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.reply-indicator-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.chat-reply-preview {
    display: flex;
    gap: 8px;
    padding: 6px 8px;
    border-left: 3px solid rgba(0, 168, 132, 0.6);
    background: rgba(0, 168, 132, 0.1);
    border-radius: 4px;
    margin-bottom: 4px;
}

.chat-message.self .chat-reply-preview {
    border-left-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.chat-reply-line {
    width: 2px;
    background: rgba(0, 168, 132, 0.5);
    flex-shrink: 0;
}

.chat-reply-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
}

.chat-reply-username {
    font-size: 12px;
    font-weight: 600;
    color: #00a884;
}

.chat-message.self .chat-reply-username {
    color: rgba(0, 0, 0, 0.9);
}

.chat-reply-message {
    font-size: 12px;
    color: rgba(134, 150, 160, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-message.self .chat-reply-message {
    color: rgba(0, 0, 0, 0.7);
}

.message-options-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.2s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.message-options-popup {
    background: #1a222a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    padding: 12px;
    min-width: 220px;
    animation: popupFadeIn 0.2s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.message-options-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #e9edef;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.message-option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.message-option-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

.message-option-btn svg {
    flex-shrink: 0;
    color: #8696a0;
}

.message-option-btn:hover svg {
    color: #00a884;
}

.message-option-btn[data-action="report"] {
    color: #ff6b6b;
}

.message-option-btn[data-action="report"]:hover {
    background: rgba(255, 107, 107, 0.1);
}

.message-option-btn[data-action="report"] svg {
    color: #ff6b6b;
}

.report-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 168, 132, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.report-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

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

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 65%;
    margin-bottom: 8px;
    animation: slideIn 0.2s ease-out;
    width: 100%;
    cursor: pointer;
}

.chat-message:hover .chat-message-bubble {
    opacity: 0.9;
}

.chat-message.self {
    align-self: flex-end;
    align-items: flex-end;
    margin-left: auto;
}

.chat-message.other {
    align-self: flex-start;
    align-items: flex-start;
    margin-right: auto;
}

.chat-message-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-message.self .chat-message-bubble {
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: #000000;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

.chat-message.other .chat-message-bubble {
    background: #202c33;
    color: #e9edef;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    padding: 0 4px;
}

.chat-message.self .chat-message-header {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.chat-message.other .chat-message-header {
    justify-content: flex-start;
}

.chat-username {
    font-weight: 600;
    font-size: 13px;
    color: #53bdeb;
}

.chat-message.self .chat-username {
    color: #dcf8c6;
    display: none; /* Hide username for self messages */
}

.chat-message.other .chat-username {
    color: #53bdeb;
}

.chat-timestamp {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Segoe UI', sans-serif;
    white-space: nowrap;
}

.chat-message.self .chat-timestamp {
    color: rgba(0, 0, 0, 0.7);
}

.chat-message.other .chat-timestamp {
    color: rgba(255, 255, 255, 0.5);
}

.chat-message-text {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.chat-message-link {
    color: #53bdeb;
    text-decoration: underline;
    cursor: pointer;
}

.chat-message-link:hover {
    color: #00a884;
}

.chat-message-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-message-image:hover {
    transform: scale(1.02);
}

.chat-message-link-preview {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-link-preview-content {
    padding: 12px;
}

.chat-link-preview-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: inherit;
}

.chat-link-preview-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    line-height: 1.4;
}

.chat-link-preview-url {
    font-size: 12px;
    color: #53bdeb;
    word-break: break-all;
}

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

.chat-input-container {
    position: fixed;
    bottom: 70px; /* Height of floating-nav (approximately 60-70px) */
    left: 0;
    right: 0;
    background: #202c33;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    z-index: 997; /* Below floating-nav (z-index 998) but above chat messages */
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: #2a3942;
    border-radius: 24px;
    padding: 6px 8px;
}

.chat-attach-btn {
    background: transparent;
    border: none;
    color: #8696a0;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-attach-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.chat-input {
    flex: 1;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 24px;
    color: #e9edef;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    min-height: 20px;
    outline: none;
}

.chat-input::placeholder {
    color: #8696a0;
}

.chat-send-btn {
    background: #00a884;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.chat-send-btn:hover {
    background: #06cf9c;
    transform: scale(1.05);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-input-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding: 0 4px;
}

.image-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2a3942;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 200px;
}

.image-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-preview-btn {
    background: rgba(255, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-preview-btn:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

.char-count {
    font-size: 11px;
    color: #8696a0;
}

.char-count.warning {
    color: #ffb02e;
}

.char-count.danger {
    color: #f15c6d;
}

.chat-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-style: italic;
}

.chat-status {
    text-align: center;
    padding: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.chat-status.connected {
    color: var(--accent-green);
}

.chat-status.disconnected {
    color: #ff6b6b;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 2px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    min-width: 300px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-success {
    border-color: var(--accent-green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 255, 136, 0.2);
}

.toast-success .toast-icon {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
}

.toast-error {
    border-color: #ff6b6b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 107, 107, 0.2);
}

.toast-error .toast-icon {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.toast-warning {
    border-color: var(--accent-yellow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 0, 0.2);
}

.toast-warning .toast-icon {
    background: rgba(255, 255, 0, 0.2);
    color: var(--accent-yellow);
}

.toast-info {
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.2);
}

.toast-info .toast-icon {
    background: rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
}

/* Pull to Refresh */
.pull-to-refresh-indicator {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 2px solid var(--accent-cyan);
    border-radius: 20px;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.pull-refresh-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Typing Indicator for Chat */
.chat-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 8px;
    width: fit-content;
}

.chat-typing-indicator .typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite;
}

.chat-typing-indicator .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-indicator .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-typing-text {
    color: var(--text-secondary);
    font-size: 12px;
    font-style: italic;
    margin-left: 8px;
}

/* Swipe Actions */
.swipe-actions-left,
.swipe-actions-right {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}

.swipe-actions-left {
    left: 0;
    padding-left: 10px;
}

.swipe-actions-right {
    right: 0;
    padding-right: 10px;
}

.swipe-action-btn {
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    padding: 12px;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.swipe-action-btn.swipe-action-favorite {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.swipe-action-btn.swipe-action-favorite.active {
    background: #ff6b6b;
    color: white;
}

.swipe-action-btn.swipe-action-share {
    background: rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
}

/* Bottom Sheet */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10003;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.bottom-sheet-overlay.show {
    opacity: 1;
}

.bottom-sheet-content {
    background: var(--bg-card);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bottom-sheet-content.show {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 2px;
    margin: 10px auto;
    cursor: grab;
}

.bottom-sheet-title {
    padding: 20px;
    font-size: var(--font-size-large);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

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

.bottom-sheet-actions {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.bottom-sheet-action-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-card-hover);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bottom-sheet-action-btn:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-dark);
}

/* Account Page */
.account-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 2px solid var(--accent-cyan);
    margin-bottom: 30px;
}


.account-info h2 {
    margin: 0 0 5px 0;
    font-size: var(--font-size-large);
}

.account-email {
    color: var(--text-secondary);
    margin: 0;
}

.account-section {
    background: var(--bg-card);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    padding: 25px;
    margin-bottom: 20px;
}

.account-section .section-title {
    font-size: var(--font-size-medium);
    margin: 0 0 20px 0;
    color: var(--accent-cyan);
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.favorite-item {
    background: var(--bg-card-hover);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-item:hover {
    border-color: var(--accent-cyan);
    transform: translateX(5px);
}

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

.setting-item {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-base);
}

.setting-item:hover {
    background: var(--bg-card);
    border-color: var(--accent-cyan);
}

.setting-value {
    color: var(--text-secondary);
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    background: var(--bg-card-hover);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Chat Search */

@keyframes highlight-pulse {
    0%, 100% { background: transparent; }
    50% { background: rgba(0, 240, 255, 0.3); }
}

/* Pinned Messages */
.pinned-messages-section {
    background: rgba(157, 0, 255, 0.1);
    border: 2px solid var(--accent-purple);
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 10px;
}

.pinned-messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-purple);
}

.pinned-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
}

.pinned-message-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pinned-message-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.pinned-message-content {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.pinned-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.pinned-message-meta button {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}

/* Read Receipts */
.read-receipt {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 11px;
    color: var(--text-secondary);
}

.read-receipt-icon {
    font-size: 14px;
}

/* Favorite Button */
.favorite-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.active {
    color: #ff6b6b;
}

/* Account Page Enhancements */
.account-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    border: 3px solid var(--accent-cyan);
    overflow: hidden; /* Pastikan gambar rounded bulat */
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pastikan gambar fill container dengan maintain aspect ratio */
    border-radius: 50%; /* Pastikan gambar juga rounded bulat */
}

.account-info h2 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 24px;
}

.account-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-section {
    margin-bottom: 24px;
}

.account-section h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.favorite-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
}

.favorite-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.favorite-item-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.account-settings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-settings-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-settings-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
}

.settings-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-item-icon {
    font-size: 20px;
}

.settings-item-text {
    display: flex;
    flex-direction: column;
}

.settings-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.settings-item-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .view-controls {
        flex-direction: column;
    }
    
    .view-btn {
        width: 100%;
    }
    
    .grid-view-3 {
        gap: 8px !important;
    }
    
    .grid-view-3 .grid-item {
        flex: 0 0 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }
    
    .grid-view {
        gap: 8px !important;
    }
    
    .grid-view .grid-item {
        flex: 0 0 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }
    
    .dashboard-content {
        padding-top: 140px !important;
    }
    
    .chat-container {
        padding: 80px 0 100px;
    }
    
    .chat-messages {
        padding: 10px 15px;
    }
    
    .chat-message {
        max-width: 85%;
    }
    
    .chat-message.self {
        margin-left: auto;
        margin-right: 0;
    }
    
    .chat-message.other {
        margin-right: auto;
        margin-left: 0;
    }
    
    .chat-input-wrapper {
        gap: 6px;
    }
    
    .chat-input-container {
        padding: 6px 15px;
        bottom: 65px; /* Adjust for mobile nav height */
    }
    
    .chat-container {
        padding: 80px 0 140px; /* Adjust bottom padding for mobile */
    }
    
    .chat-welcome-modal {
        top: 70px;
        height: calc(100vh - 70px - 65px); /* Mobile: header ~70px, nav ~65px */
        padding-bottom: 75px;
    }
    
    .chat-welcome-modal-content {
        max-width: 95%;
        max-height: calc(100vh - 220px);
    }
    
    .chat-welcome-modal-header {
        padding: 15px 20px;
    }
    
    .chat-welcome-modal-header h2 {
        font-size: var(--font-size-medium);
    }
    
    .chat-welcome-modal-body {
        padding: 20px;
    }
    
    .chat-welcome-item {
        gap: 12px;
    }
    
    .chat-welcome-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .chat-welcome-text strong {
        font-size: var(--font-size-base);
    }
    
    .chat-welcome-text p {
        font-size: 14px;
    }
    
    .chat-welcome-modal-footer {
        padding: 15px 20px;
    }
    
    .chat-welcome-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

