/* =====================================================
   CLASSIFIED - Reusable Components
   Buttons, cards, forms, badges, chips, stories, loading
   ===================================================== */

/* =====================================================
   Buttons
   ===================================================== */
.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    border: none;
    border-radius: var(--radius-pill);
    padding: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,212,255,0.3);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.google-btn {
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.match-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    border: none;
    color: white;
    padding: var(--spacing-md) 30px;
    border-radius: var(--radius-pill);
    margin-top: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.match-btn:hover {
    transform: scale(1.05);
}

.send-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    border: none;
    border-radius: var(--radius-circle);
    width: 45px;
    height: 45px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

.view-menu-btn {
    background: linear-gradient(45deg, #4a9eff, var(--accent-cyan));
    border: none;
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.view-menu-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

/* =====================================================
   Form Elements
   ===================================================== */
.auth-input {
    width: 100%;
    background: var(--border-light);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.auth-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0,212,255,0.2);
}

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: rgba(255,255,255,0.5);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-medium);
}

.auth-divider span {
    background: var(--bg-dark);
    padding: 0 15px;
    position: relative;
}

/* =====================================================
   Stories Component
   ===================================================== */
.stories-section {
    padding: var(--spacing-lg);
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.stories-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
}

.stories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-scroll::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex-shrink: 0;
    width: 120px;
    height: 180px;
    border-radius: var(--radius-md);
    position: relative;
    cursor: pointer;
    border: 2px solid var(--border-medium);
    transition: transform 0.3s ease;
    overflow: hidden;  /* Ensure image doesn't overflow rounded corners */
}

.story-item:hover {
    transform: scale(1.05);
}

/* Story item image - replaces background-image */
.story-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show image once loaded */
.story-item-image.loaded {
    opacity: 1;
}

/* Placeholder while loading */
.story-item-image:not(.loaded) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 12px;
    border-radius: 0 0 10px 10px;
}

.story-title {
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.story-subtitle {
    font-size: 10px;
    opacity: 0.8;
}

/* Story Viewer */
.story-viewer-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.story-progress-container {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    width: 0%;
    height: 100%;
    background: white;
    transition: width 0.1s linear;
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 15px 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.story-business-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-business-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.story-business-details {
    color: white;
}

.story-business-name {
    font-size: 14px;
    font-weight: 600;
}

.story-business-type {
    font-size: 12px;
    opacity: 0.8;
}

.story-close-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.story-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-text-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    color: white;
    font-size: 16px;
    line-height: 1.6;
    max-height: 40%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.story-nav-areas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

.story-nav-left,
.story-nav-right {
    flex: 1;
    cursor: pointer;
}

.story-actions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.story-action-btn {
    background: var(--accent-cyan);
    border: none;
    color: white;
    padding: 14px 40px;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.story-action-btn:hover {
    background: var(--accent-cyan-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.story-content.paused::after {
    content: '⏸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    opacity: 0.7;
    pointer-events: none;
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from { opacity: 0.7; }
    to { opacity: 0; }
}

#singleBusinessStory {
    z-index: 500 !important;
}

#singleBusinessStory .story-viewer-container {
    z-index: 500 !important;
}

.profile-hero-story-avatar {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20 !important;
    transition: transform 0.2s ease;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.8) 0%,
        rgba(255, 140, 140, 0.7) 25%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 140, 140, 0.7) 75%,
        rgba(255, 107, 107, 0.8) 100%
    );
    padding: 2.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-hero-story-avatar:hover {
    transform: scale(1.05);
}

.profile-hero-story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

/* =====================================================
   Loading & Status Components
   ===================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loading);
}

.loading-overlay.show {
    display: flex;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-left: 4px solid var(--accent-cyan);
    border-radius: var(--radius-circle);
    animation: spin 1s linear infinite;
}

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

.success-message {
    background: rgba(76,175,80,0.2);
    border: 1px solid rgba(76,175,80,0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin: 15px 0;
    text-align: center;
    color: #4CAF50;
}

.error-message {
    background: rgba(255,107,107,0.2);
    border: 1px solid rgba(255,107,107,0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin: 15px 0;
    text-align: center;
    color: #FF6B6B;
}

.security-error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 107, 107, 0.95);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

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

.error-icon {
    font-size: 24px;
}

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

/* =====================================================
   Banners & Promotional Components
   ===================================================== */
.promo-banner {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,212,255,0.3);
}

.promo-banner h3 {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.promo-banner p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.promo-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.promo-btn {
    background: var(--border-medium);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.promo-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.referral-banner {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    padding: var(--spacing-md);
    margin: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.referral-banner h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.referral-banner p {
    margin: 0 0 12px 0;
    font-size: 14px;
    opacity: 0.9;
}

.referral-banner .btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.referral-banner button {
    padding: 8px 16px;
    background: var(--border-medium);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.referral-banner button:hover {
    background: rgba(255,255,255,0.3);
}

/* =====================================================
   Business Cards
   ===================================================== */
.business-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-slow);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: var(--info-border);
}

.business-header {
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
}

.business-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    background-size: cover;
    background-position: center;
    margin-right: var(--spacing-md);
    border: 2px solid var(--border-light);
}

.business-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
}

.business-info p {
    font-size: var(--text-sm);
    opacity: 0.7;
}

.business-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.business-content {
    padding: var(--spacing-md);
}

.business-description {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    margin-bottom: 12px;
}

.business-promo {
    background: linear-gradient(135deg, var(--error), #FF8C42);
    border-radius: 10px;
    padding: var(--spacing-sm);
    margin-top: 10px;
}

.promo-title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 14px;
}

.promo-details {
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* Business Auth Tabs */
.business-auth-tabs {
    display: flex;
    margin: var(--spacing-lg) 30px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-pill);
    padding: 4px;
}

.business-auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.business-auth-tab.active {
    background: linear-gradient(135deg, var(--accent-gold), #FF6B6B);
    color: white;
}

/* =====================================================
   Menu Components
   ===================================================== */
.menu-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item-simple {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item-simple:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
}

.menu-item-info {
    flex: 1;
    padding-right: 12px;
}

.menu-item-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
}

.menu-item-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

.menu-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #4a9eff;
    flex-shrink: 0;
}

.view-full-menu {
    padding-top: 8px;
    text-align: center;
}

/* =====================================================
   Generic Section Components
   ===================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

.view-all {
    color: var(--accent-cyan);
    cursor: pointer;
    font-size: var(--text-sm);
    transition: opacity 0.2s;
}

.view-all:hover {
    opacity: 0.8;
}

/* Messages */
.message-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.message-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    padding-left: var(--spacing-md); /* Reset for consistency */
    background: rgba(255,255,255,0.03);
    border-radius: 0; /* 🔧 FIX: Square corners for dashboard */
    cursor: pointer;
    transition: all 0.2s;
    position: relative; /* 🔧 FIX: For absolute positioning of badge */
    margin: 0;
    width: 100%; /* 🔧 FIX: Full width */
    box-sizing: border-box; /* 🔧 FIX: Include padding in width */
}

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

.message-item.unread {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6; /* 🔧 FIX: Match overlay styling */
    padding-left: 12px; /* 🔧 FIX: Compensate for border */
    border-radius: 0; /* 🔧 FIX: Square corners */
}

/* 🔧 FIX: Unread badge for dashboard messages - top right corner */
.message-item .unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    z-index: 5;
    border: 2px solid var(--bg-dark);
}

.message-content {
    flex: 1;
}

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

.message-preview {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

.message-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.message-time {
    font-size: var(--text-xs);
    opacity: 0.5;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.stat-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid var(--border-light);
}

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

.stat-label {
    font-size: var(--text-sm);
    opacity: 0.7;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.action-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border: 1px solid var(--border-light);
}

.action-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Generic Sections */
.messages-section,
.promotions-section,
.insights-section {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    margin: 0 var(--spacing-lg) var(--spacing-lg);
    padding: var(--spacing-lg);
}

.promotions-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.insight-item {
    text-align: center;
}

.insight-label {
    font-size: var(--text-sm);
    opacity: 0.7;
    margin-bottom: 4px;
}

.insight-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-cyan);
}

/* =====================================================
   Utility Components
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 40px;
    opacity: 0.7;
}

.fab-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,212,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 100;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,212,255,0.4);
}

/* Social Proof Notification */
.social-proof-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,212,255,0.9);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    z-index: 999;
    animation: slideInRight 0.3s ease;
}

/* Auto-response Message Styling */
.message:has([data-is-auto="true"]) .message-bubble,
.message.received .message-bubble:contains("currently closed") {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-style: italic;
}

.quick-message-btn:hover {
    background: rgba(0, 212, 255, 0.3) !important;
    transform: scale(1.1);
}

/* =====================================================
   Form Components
   ===================================================== */
.promotion-form {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

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

.form-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.form-section input,
.form-section textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    opacity: 0.5;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* =====================================================
   Chart & Analytics Components
   ===================================================== */
.chart-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.insights-card {
    background: linear-gradient(135deg, rgba(0,212,255,0.1) 0%, rgba(139,92,246,0.1) 100%);
    border: 1px solid rgba(0,212,255,0.3);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.insights-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-cyan);
    font-size: 16px;
}

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

.analytics-footer {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.analytics-footer .btn {
    flex: 1;
}

.card-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   Search & Filter Components
   ===================================================== */
.search-bar {
    display: flex;
    gap: 10px;
    margin: var(--spacing-lg);
    align-items: center;
    max-width: calc(100% - 40px);
}

.search-input {
    flex: 1 1 auto;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    color: white;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0,212,255,0.2);
}

.filter-btn {
    flex: 0 1 auto;
    max-width: 180px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--border-light);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--border-medium);
}

/* =====================================================
   Filter Options
   ===================================================== */

.filter-options {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-options::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background: var(--border-light);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    border-color: var(--accent-cyan);
    transform: scale(1.02);
}

.filter-chip:hover:not(.active) {
    background: var(--border-medium);
    border-color: rgba(255,255,255,0.3);
}

/* =====================================================
   Messaging UI Components
   ===================================================== */
.messaging-container {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    background: var(--bg-dark);
}

.matches-section {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-dark);
}

.matches-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.matches-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.matches-scroll::-webkit-scrollbar {
    display: none;
}

.match-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-circle);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid var(--accent-cyan);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.match-avatar:hover {
    transform: scale(1.05);
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-dark);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    background-size: cover;
    background-position: center;
    margin-right: 15px;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.chat-message {
    font-size: 14px;
    opacity: 0.7;
}

.chat-time {
    font-size: 12px;
    opacity: 0.5;
}

