/* gloomov Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --border-color: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --primary-color: #10B981; /* gloomov Emerald Green */
    --primary-gradient: linear-gradient(135deg, #10B981, #059669);
    --secondary-gradient: linear-gradient(135deg, #3B82F6, #1D4ED8);
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Tokens */
body.dark-theme {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --border-color: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Header & Navigation */
header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* Home / Hero Section */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: var(--bg-secondary);
    padding: 0.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
    outline: none;
}

/* Category Slider/Bar */
.categories-bar {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.categories-bar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome */
}

.category-tag {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.category-tag:hover, .category-tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Service / Gig Card Grid */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.section-title {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.2);
}

.service-card.sponsored {
    border: 1px solid #3B82F6;
}

.service-card.featured {
    border: 1px solid #10B981;
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
}

.badge-sponsored {
    background: var(--secondary-gradient);
}

.badge-featured {
    background: var(--primary-gradient);
}

.service-banner {
    width: 100%;
    height: 160px;
    background-color: #E2E8F0;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.freelancer-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.freelancer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #CBD5E1;
    background-size: cover;
}

.freelancer-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.verified-badge {
    color: #3B82F6;
    font-size: 0.9rem;
}

.service-title-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem;
}

.service-card-footer {
    border-top: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--warning-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.price-box {
    text-align: right;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.price-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Service Detail Modal/Page */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.detail-main {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Chat & Workspace */
.workspace-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.workspace-sidebar {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.chat-area {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    height: 100%;
}

.chat-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.message-bubble {
    max-width: 60%;
    padding: 1rem;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.message-bubble.incoming {
    align-self: flex-start;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.message-bubble.outgoing {
    align-self: flex-end;
    background: var(--primary-gradient);
    color: white;
    border-bottom-right-radius: 2px;
}

.message-bubble.system {
    align-self: center;
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563EB;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.85rem;
    text-align: center;
    max-width: 80%;
}

.chat-input-bar {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-textarea {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    resize: none;
    outline: none;
    height: 44px;
}

/* Modals & Forms */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
}

/* Admin Dashboard layout */
.admin-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.admin-sidebar-link:hover, .admin-sidebar-link.active {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--primary-color);
}

/* Toggle Switch Control */
.toggle-switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Custom Table for Admin Settings */
table.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table.admin-table th, table.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

table.admin-table th {
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Toast message styling */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideIn 0.3s ease-out;
}

.toast.error {
    border-left-color: var(--danger-color);
}

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

/* ==========================================
   7. MOBILE RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .workspace-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    
    .workspace-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: auto;
        overflow: visible;
        padding: 1.2rem;
    }
    
    .chat-area {
        height: 550px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
        gap: 0.5rem;
        scrollbar-width: none;
    }
    
    .admin-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .admin-sidebar-link {
        white-space: nowrap;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }
    
    .nav-links .nav-link, .nav-links .btn {
        width: 100%;
        text-align: center;
        padding: 0.6rem;
    }
    
    .hero {
        padding: 2.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 0.5rem;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .search-input {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .search-container .btn {
        width: 100%;
        padding: 0.75rem;
    }
    
    .categories-bar {
        padding: 0 1rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .main-container {
        padding: 0 1rem 3rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 0.8rem;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .chat-input-bar {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    table.admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 90%;
    }
}

@media (max-width: 580px) {
    .timeline-steps {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: flex-start !important;
    }
    .timeline-line {
        display: none !important;
    }
    .timeline-step {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        text-align: left !important;
        flex: initial !important;
    }
    .timeline-step .step-dot {
        margin: 0 !important;
    }
}

.compare-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

/* ==========================================
   8. PACKAGE TABS & FAVORITE HEART HOVERS
   ========================================== */
.package-tab-btn {
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}
.package-tab-btn:hover {
    color: var(--primary-color);
}
.package-tab-btn.active {
    color: var(--primary-color) !important;
}

.fav-heart-btn {
    transition: var(--transition);
}
.fav-heart-btn:hover {
    transform: scale(1.2);
}
.fav-heart-btn.active {
    color: red !important;
}

#slider-prev-btn, #slider-next-btn {
    transition: var(--transition);
}
#slider-prev-btn:hover, #slider-next-btn:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: var(--shadow-md);
}

/* ==========================================
   9. PHASE 6 CUSTOM INTERFACE LAYOUTS
   ========================================== */
.notif-bell-container {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.notif-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notif-dropdown {
    position: absolute;
    top: 35px;
    right: 0;
    width: 300px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1002;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}
.notif-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: var(--transition);
}
.notif-item:hover {
    background-color: var(--bg-primary);
}
.notif-item.unread {
    background-color: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--primary-color);
}
.notif-item-time {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    text-align: right;
}

/* Autosuggest Dropdown */
.search-autosuggest-wrapper {
    position: relative;
    width: 100%;
}
.search-autosuggest {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: none;
    margin-top: 4px;
    max-height: 250px;
    overflow-y: auto;
}
.autosuggest-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}
.autosuggest-item:hover {
    background-color: var(--bg-primary);
    color: var(--primary-color);
}
.autosuggest-category {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.15rem;
}

/* Seller Badge Badges */
.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.seller-badge.level_1 {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563EB;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.seller-badge.level_2 {
    background-color: rgba(139, 92, 246, 0.1);
    color: #7C3AED;
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.seller-badge.top_rated {
    background-color: rgba(245, 158, 11, 0.1);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Q&A Forum */
.qa-wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.qa-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.qa-box:hover {
    box-shadow: var(--shadow-sm);
}
.qa-question-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.qa-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}
.qa-answer-block {
    margin-top: 0.8rem;
    padding: 0.8rem 1rem;
    background-color: var(--bg-primary);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.qa-answer-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}
.qa-answer-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ==========================================
   10. PHASE 7 BRAND EXTENSIONS & ACTIONS
   ========================================== */
/* Vacation Alert Banner */
.vacation-alert-banner {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-left: 4px solid var(--danger-color);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Floating Compare Tray */
.compare-tray {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 1rem 1.5rem;
    display: none; /* toggled by JS */
    align-items: center;
    justify-content: space-between;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { transform: translate(-50%, 100px); }
    to { transform: translate(-50%, 0); }
}
.compare-tray-items {
    display: flex;
    gap: 1rem;
    align-items: center;
    overflow-x: auto;
}
.compare-tray-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}
.compare-tray-remove {
    cursor: pointer;
    color: var(--danger-color);
    font-weight: 700;
}

/* Compare Matrix Table */
.compare-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin-top: 1.5rem;
}
.compare-table th, .compare-table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
}
.compare-table th {
    background-color: var(--bg-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}
.compare-table td.feature-label {
    font-weight: 600;
    text-align: left;
    background-color: var(--bg-primary);
    width: 180px;
}

/* Quick Replies Widget */
.quick-replies-bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}
.quick-replies-bar::-webkit-scrollbar {
    display: none;
}
.quick-reply-pill {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.quick-reply-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Media Editor Gallery Grid */
.gallery-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
    margin-top: 0.5rem;
}
.gallery-editor-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 80px;
}
.gallery-editor-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-editor-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: space-around;
    padding: 0.2rem;
}
.gallery-editor-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
}
.gallery-editor-btn:hover {
    color: var(--primary-color);
}

/* ==========================================
   11. PHASE 8 CUSTOM SAAS INTEGRATIONS
   ========================================== */
/* Countdown Timer Widget */
.countdown-timer-box {
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.countdown-timer-box.late {
    border-color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.05);
}
.countdown-timer-display {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    margin-top: 0.3rem;
    letter-spacing: 1px;
}
.countdown-timer-box.late .countdown-timer-display {
    color: var(--danger-color);
}

/* Buyer Request Cards */
.buyer-request-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    transition: var(--transition);
}
.buyer-request-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.buyer-request-title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}
.buyer-request-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.buyer-request-desc {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* SVG Earnings Chart */
.earnings-chart-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.chart-bar-rect {
    fill: var(--primary-color);
    opacity: 0.85;
    transition: opacity 0.2s;
}
.chart-bar-rect:hover {
    opacity: 1;
}
.chart-axis-line {
    stroke: var(--border-color);
    stroke-width: 2;
}
.chart-grid-line {
    stroke: var(--border-color);
    stroke-dasharray: 4,4;
    stroke-width: 1;
}
.chart-text-label {
    fill: var(--text-secondary);
    font-size: 10px;
    font-family: 'Inter', sans-serif;
}

/* ==========================================
   12. PHASE 9 PREMIUM EXTENSIONS
   ========================================== */
/* Public Profile Styles */
.public-profile-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.public-profile-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(16,185,129,0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.profile-avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--primary-color);
}
.skills-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.skills-badge-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Locked Brief Workspace Warning */
.locked-brief-banner {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid var(--danger-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--danger-color);
    font-weight: 600;
    text-align: center;
}

/* Simulated Email Alerts logs list style */
.email-log-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow-xs);
}
.email-log-subject {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.email-log-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Category Admin Tree view styling */
.category-tree-node {
    padding: 0.5rem 1rem;
    border-left: 2px solid var(--border-color);
    margin-left: 1.5rem;
    margin-top: 0.4rem;
}
.category-root-node {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
}

/* ==========================================
   13. PHASE 10 PREMIUM VISUAL REFINEMENTS
   ========================================== */
/* Global Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Modern Gradient Text styling */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Card Zoom & Hover Effects */
.service-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.12), var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.3);
}
.service-banner {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-card:hover .service-banner {
    transform: scale(1.05);
}

/* Shimmer Loading Animations */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.shimmer-placeholder {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}

.skeleton-card {
    pointer-events: none;
    border: 1px solid var(--border-color);
}
.skeleton-title {
    height: 20px;
    width: 85%;
    margin-bottom: 0.5rem;
}
.skeleton-meta {
    height: 14px;
    width: 45%;
    margin-bottom: 1rem;
}
.skeleton-footer {
    height: 30px;
    width: 100%;
}

/* Custom Notification Toast Animation */
@keyframes slideInSpring {
    0% {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
    70% {
        transform: translateX(-5%) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
    }
}
.toast {
    animation: slideInSpring 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), var(--shadow-md);
    border-left: 5px solid var(--primary-color);
    display:flex;
    flex-direction:row !important;
    align-items:center;
    gap:0.75rem;
    padding:1rem 1.2rem;
    min-width:300px;
}
.toast.error {
    border-left-color: var(--danger-color);
}

/* ==========================================
   14. JURY SYSTEM, ESCROW TIMELINE & CASE STUDIES
   ========================================== */
/* Escrow Timeline styles */
.timeline-step .step-dot {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.timeline-step.active .step-dot {
    background-color: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.timeline-step.completed .step-dot {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}
.timeline-step.completed div {
    color: var(--primary-color) !important;
}
.timeline-step.active div {
    color: var(--warning-color) !important;
}

/* Case Study Project Cards & Modal styles */
.public-portfolio-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.public-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Jury Case card list details */
.jury-case-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s ease;
}
.jury-case-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.jury-case-badge {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
}






