/**
 * UI Enhancements - Main CSS
 * Dark Mode, Wishlist, Live Chat, Smart Search, Social Share, Reviews, Hero Slider
 */

/* =====================================================
   CSS Variables & Root
===================================================== */
:root {
    /* Light Theme */
    --ui-bg-primary: #ffffff;
    --ui-bg-secondary: #f8f9fa;
    --ui-bg-tertiary: #e9ecef;
    --ui-text-primary: #212529;
    --ui-text-secondary: #6c757d;
    --ui-text-muted: #adb5bd;
    --ui-border-color: #dee2e6;
    --ui-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --ui-shadow-lg: 0 5px 30px rgba(0, 0, 0, 0.15);
    --ui-accent: #5191FA;
    --ui-accent-hover: #3a7bd5;
    --ui-success: #28a745;
    --ui-danger: #dc3545;
    --ui-warning: #ffc107;
    --ui-overlay: rgba(0, 0, 0, 0.5);
    --ui-card-bg: #ffffff;
    --ui-input-bg: #ffffff;
    --ui-header-bg: #ffffff;
}

/* Dark Theme */
[data-theme="dark"] {
    --ui-bg-primary: #1a1a2e;
    --ui-bg-secondary: #16213e;
    --ui-bg-tertiary: #0f3460;
    --ui-text-primary: #e4e4e4;
    --ui-text-secondary: #a8a8a8;
    --ui-text-muted: #6c6c6c;
    --ui-border-color: #2d3748;
    --ui-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    --ui-shadow-lg: 0 5px 30px rgba(0, 0, 0, 0.4);
    --ui-accent: #5191FA;
    --ui-accent-hover: #6ba3ff;
    --ui-overlay: rgba(0, 0, 0, 0.7);
    --ui-card-bg: #1e2746;
    --ui-input-bg: #16213e;
    --ui-header-bg: #16213e;
}

/* Auto Theme (System Preference) */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        --ui-bg-primary: #1a1a2e;
        --ui-bg-secondary: #16213e;
        --ui-bg-tertiary: #0f3460;
        --ui-text-primary: #e4e4e4;
        --ui-text-secondary: #a8a8a8;
        --ui-text-muted: #6c6c6c;
        --ui-border-color: #2d3748;
        --ui-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
        --ui-shadow-lg: 0 5px 30px rgba(0, 0, 0, 0.4);
        --ui-overlay: rgba(0, 0, 0, 0.7);
        --ui-card-bg: #1e2746;
        --ui-input-bg: #16213e;
        --ui-header-bg: #16213e;
    }
}

/* =====================================================
   Dark Mode Toggle Button
===================================================== */
.theme-toggle {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ui-card-bg);
    border: 2px solid var(--ui-border-color);
    box-shadow: var(--ui-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--ui-shadow-lg);
}

.theme-toggle i {
    font-size: 20px;
    color: var(--ui-text-primary);
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }

[data-theme="dark"] .theme-toggle .fa-sun { display: block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* =====================================================
   Wishlist Button (Heart)
===================================================== */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.wishlist-btn i {
    font-size: 18px;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.wishlist-btn:hover i {
    color: #dc3545;
}

.wishlist-btn.active i {
    color: #dc3545;
}

.wishlist-btn.active i::before {
    content: "\f004"; /* Filled heart */
    font-weight: 900;
}

/* Wishlist animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.wishlist-btn.animating i {
    animation: heartBeat 0.6s ease;
    color: #dc3545;
}

/* Wishlist Counter (Header) */
.wishlist-counter {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--ui-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.wishlist-counter:hover {
    color: var(--ui-accent);
}

.wishlist-counter i {
    font-size: 20px;
}

.wishlist-counter .count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-counter .count:empty,
.wishlist-counter .count[data-count="0"] {
    display: none;
}

/* =====================================================
   Live Chat Widget
===================================================== */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.live-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5191FA 0%, #3a7bd5 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(81, 145, 250, 0.4);
    transition: all 0.3s ease;
}

.live-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(81, 145, 250, 0.5);
}

.live-chat-toggle i {
    font-size: 24px;
    color: #fff;
}

.live-chat-toggle .fa-times { display: none; }
.live-chat-widget.open .live-chat-toggle .fa-comment { display: none; }
.live-chat-widget.open .live-chat-toggle .fa-times { display: block; }

/* Chat Panel */
.live-chat-panel {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: var(--ui-card-bg);
    border-radius: 16px;
    box-shadow: var(--ui-shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.live-chat-widget.open .live-chat-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.live-chat-header {
    padding: 20px;
    background: linear-gradient(135deg, #5191FA 0%, #3a7bd5 100%);
    color: #fff;
}

.live-chat-header h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.live-chat-header p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.live-chat-options {
    padding: 20px;
}

.live-chat-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--ui-bg-secondary);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ui-text-primary);
    transition: all 0.3s ease;
}

.live-chat-option:last-child {
    margin-bottom: 0;
}

.live-chat-option:hover {
    background: var(--ui-bg-tertiary);
    transform: translateX(5px);
}

.live-chat-option i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.live-chat-option.whatsapp i {
    background: #25D366;
    color: #fff;
}

.live-chat-option.telegram i {
    background: #0088cc;
    color: #fff;
}

.live-chat-option.phone i {
    background: var(--ui-accent);
    color: #fff;
}

.live-chat-option.email i {
    background: #ea4335;
    color: #fff;
}

.live-chat-option-text {
    flex: 1;
}

.live-chat-option-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.live-chat-option-text span {
    font-size: 12px;
    color: var(--ui-text-secondary);
}

/* Pulse animation for chat button */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(81, 145, 250, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(81, 145, 250, 0); }
    100% { box-shadow: 0 0 0 0 rgba(81, 145, 250, 0); }
}

.live-chat-toggle.pulse {
    animation: pulse 2s infinite;
}

/* =====================================================
   Smart Search
===================================================== */
.smart-search-wrapper {
    position: relative;
}

.smart-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--ui-border-color);
    border-radius: 30px;
    background: var(--ui-input-bg);
    color: var(--ui-text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.smart-search-input:focus {
    outline: none;
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 4px rgba(81, 145, 250, 0.1);
}

.smart-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ui-text-muted);
    pointer-events: none;
}

.smart-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--ui-card-bg);
    border-radius: 16px;
    box-shadow: var(--ui-shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.smart-search-wrapper.active .smart-search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.smart-search-section {
    padding: 15px 20px;
    border-bottom: 1px solid var(--ui-border-color);
}

.smart-search-section:last-child {
    border-bottom: none;
}

.smart-search-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ui-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.smart-search-section-title i {
    margin-right: 8px;
}

.smart-search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 0 -10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ui-text-primary);
    transition: all 0.2s ease;
}

.smart-search-item:hover {
    background: var(--ui-bg-secondary);
}

.smart-search-item-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.smart-search-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--ui-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--ui-accent);
}

.smart-search-item-info {
    flex: 1;
    min-width: 0;
}

.smart-search-item-title {
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-search-item-meta {
    font-size: 13px;
    color: var(--ui-text-secondary);
}

.smart-search-item-price {
    font-weight: 600;
    color: var(--ui-accent);
}

.smart-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smart-search-tag {
    padding: 6px 14px;
    background: var(--ui-bg-secondary);
    border-radius: 20px;
    font-size: 13px;
    color: var(--ui-text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.smart-search-tag:hover {
    background: var(--ui-accent);
    color: #fff;
}

/* Loading spinner */
.smart-search-loading {
    display: none;
    padding: 30px;
    text-align: center;
    color: var(--ui-text-muted);
}

.smart-search-wrapper.loading .smart-search-loading {
    display: block;
}

.smart-search-loading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =====================================================
   Social Share
===================================================== */
.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-share-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ui-text-secondary);
    margin-right: 5px;
}

.social-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 16px;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-share-btn.facebook { background: #1877f2; }
.social-share-btn.twitter { background: #1da1f2; }
.social-share-btn.whatsapp { background: #25d366; }
.social-share-btn.telegram { background: #0088cc; }
.social-share-btn.linkedin { background: #0077b5; }
.social-share-btn.pinterest { background: #e60023; }
.social-share-btn.copy-link { background: var(--ui-text-secondary); }

.social-share-btn.copy-link.copied {
    background: var(--ui-success);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ui-overlay);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.open {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: var(--ui-card-bg);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.share-modal.open .share-modal-content {
    transform: scale(1);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--ui-text-primary);
}

.share-modal-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--ui-bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-text-secondary);
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background: var(--ui-bg-tertiary);
}

.share-modal-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-modal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background: var(--ui-bg-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-modal-btn:hover {
    background: var(--ui-bg-tertiary);
    transform: translateY(-2px);
}

.share-modal-btn i {
    font-size: 24px;
    margin-bottom: 8px;
}

.share-modal-btn span {
    font-size: 12px;
    color: var(--ui-text-secondary);
}

.share-modal-btn.facebook i { color: #1877f2; }
.share-modal-btn.twitter i { color: #1da1f2; }
.share-modal-btn.whatsapp i { color: #25d366; }
.share-modal-btn.telegram i { color: #0088cc; }
.share-modal-btn.linkedin i { color: #0077b5; }
.share-modal-btn.pinterest i { color: #e60023; }

.share-modal-link {
    display: flex;
    gap: 10px;
}

.share-modal-link input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--ui-border-color);
    border-radius: 10px;
    background: var(--ui-input-bg);
    color: var(--ui-text-primary);
    font-size: 14px;
}

.share-modal-link button {
    padding: 12px 20px;
    background: var(--ui-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.share-modal-link button:hover {
    background: var(--ui-accent-hover);
}

/* =====================================================
   Enhanced Reviews
===================================================== */
.review-card-enhanced {
    background: var(--ui-card-bg);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--ui-shadow);
}

.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-weight: 600;
    color: var(--ui-text-primary);
    margin-bottom: 3px;
}

.review-date {
    font-size: 13px;
    color: var(--ui-text-muted);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.review-rating i {
    color: #ffc107;
    font-size: 14px;
}

.review-rating i.empty {
    color: var(--ui-text-muted);
}

.review-content {
    color: var(--ui-text-primary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.review-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.review-photo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--ui-shadow);
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--ui-border-color);
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-helpful-text {
    font-size: 13px;
    color: var(--ui-text-muted);
}

.review-helpful-btns {
    display: flex;
    gap: 10px;
}

.review-helpful-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--ui-border-color);
    background: transparent;
    color: var(--ui-text-secondary);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.review-helpful-btn:hover {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
}

.review-helpful-btn.active {
    background: var(--ui-accent);
    border-color: var(--ui-accent);
    color: #fff;
}

.review-report {
    font-size: 13px;
    color: var(--ui-text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.review-report:hover {
    color: var(--ui-danger);
}

/* Review Upload */
.review-upload-photos {
    margin-top: 15px;
}

.review-upload-area {
    border: 2px dashed var(--ui-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-upload-area:hover {
    border-color: var(--ui-accent);
    background: var(--ui-bg-secondary);
}

.review-upload-area i {
    font-size: 32px;
    color: var(--ui-text-muted);
    margin-bottom: 10px;
}

.review-upload-area p {
    margin: 0;
    color: var(--ui-text-secondary);
    font-size: 14px;
}

.review-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.review-upload-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
}

.review-upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.review-upload-preview-item .remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ui-danger);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* =====================================================
   Hero Slider
===================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-slide-subtitle {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero-slide-desc {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-slide-btn {
    padding: 15px 35px;
    background: var(--ui-accent);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-slide-btn:hover {
    background: var(--ui-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(81, 145, 250, 0.4);
}

/* Slider Navigation */
.hero-slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot:hover,
.hero-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Slider Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
}

.hero-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero-slider-arrow.prev { left: 20px; }
.hero-slider-arrow.next { right: 20px; }

/* =====================================================
   Toast Notifications
===================================================== */
.ui-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ui-toast {
    padding: 15px 20px;
    background: var(--ui-card-bg);
    border-radius: 12px;
    box-shadow: var(--ui-shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ui-toast.removing {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.ui-toast-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ui-toast.success .ui-toast-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--ui-success);
}

.ui-toast.error .ui-toast-icon {
    background: rgba(220, 53, 69, 0.1);
    color: var(--ui-danger);
}

.ui-toast.warning .ui-toast-icon {
    background: rgba(255, 193, 7, 0.1);
    color: var(--ui-warning);
}

.ui-toast.info .ui-toast-icon {
    background: rgba(81, 145, 250, 0.1);
    color: var(--ui-accent);
}

.ui-toast-content {
    flex: 1;
}

.ui-toast-title {
    font-weight: 600;
    color: var(--ui-text-primary);
    margin-bottom: 3px;
}

.ui-toast-message {
    font-size: 13px;
    color: var(--ui-text-secondary);
}

.ui-toast-close {
    background: none;
    border: none;
    color: var(--ui-text-muted);
    cursor: pointer;
    padding: 5px;
    margin: -5px;
    transition: color 0.2s ease;
}

.ui-toast-close:hover {
    color: var(--ui-text-primary);
}

/* =====================================================
   Responsive
===================================================== */
@media (max-width: 768px) {
    .live-chat-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }
    
    .hero-slide-title {
        font-size: 32px;
    }
    
    .hero-slide-desc {
        font-size: 16px;
    }
    
    .share-modal-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-toggle {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .live-chat-toggle {
        width: 55px;
        height: 55px;
    }
}

/* =====================================================
   Dark Mode Overrides for Existing Elements
===================================================== */
[data-theme="dark"] body {
    background-color: var(--ui-bg-primary);
    color: var(--ui-text-primary);
}

[data-theme="dark"] .bravo_wrap,
[data-theme="dark"] .page-template-content {
    background-color: var(--ui-bg-primary);
}

[data-theme="dark"] .bravo-list-item,
[data-theme="dark"] .item-loop,
[data-theme="dark"] .card {
    background: var(--ui-card-bg);
    border-color: var(--ui-border-color);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--ui-input-bg);
    border-color: var(--ui-border-color);
    color: var(--ui-text-primary);
}

[data-theme="dark"] .bravo_header,
[data-theme="dark"] header,
[data-theme="dark"] .main-header {
    background: var(--ui-header-bg);
    border-color: var(--ui-border-color);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--ui-card-bg);
    border-color: var(--ui-border-color);
}

[data-theme="dark"] .modal-content {
    background: var(--ui-card-bg);
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--ui-accent);
    border-color: var(--ui-accent);
}

[data-theme="dark"] a {
    color: var(--ui-accent);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: var(--ui-text-primary);
}
