/**
 * Dashboard Styles - Premium Redesign
 * HAGANET Platform
 * Complete premium sidebar and header with collapsible functionality
 */

/* =====================================================
   CSS Variables - משתנים
   ===================================================== */
:root {
    /* Dashboard specific colors */
    --dashboard-bg: #0a0f1a;
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1a2942 100%);
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(30, 41, 59, 0.95);
    --card-border: rgba(148, 163, 184, 0.15);
    --card-hover: rgba(51, 65, 85, 0.6);

    /* Text colors - HIGH VISIBILITY */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Status colors */
    --status-active: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;
    --status-info: #3b82f6;

    /* Gold accent */
    --accent-gold: #fbbf24;
    --accent-gold-light: #fcd34d;
    --accent-gold-glow: rgba(251, 191, 36, 0.25);

    /* Sidebar dimensions */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 76px;
    --header-height: 72px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   Base Layout - מבנה בסיסי
   ===================================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--dashboard-bg);
    direction: rtl;
}

/* =====================================================
   Premium Sidebar - סרגל צד פרימיום
   ===================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    height: 100vh;
    overflow: hidden;
    z-index: 100;
    border-left: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-smooth);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Brand - Premium Logo Section */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid var(--sidebar-border);
    background: rgba(0, 0, 0, 0.2);
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.sidebar-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.sidebar-brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 20px var(--accent-gold-glow);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-brand-text {
    opacity: 0;
    width: 0;
}

.sidebar-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.sidebar-brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    border: 1px solid var(--sidebar-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
    transition: all var(--transition-normal);
    color: var(--text-secondary);
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #2d4a6f, #1e3a5f);
    color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.sidebar-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-normal);
}

.sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

/* Sidebar Navigation Container */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Navigation Sections */
.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.sidebar-section-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--transition-fast);
}

.sidebar.collapsed .sidebar-section-title {
    opacity: 0;
}

.sidebar-section-toggle {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform var(--transition-normal);
}

.sidebar-section.collapsed .sidebar-section-toggle {
    transform: rotate(-90deg);
}

.sidebar.collapsed .sidebar-section-toggle {
    display: none;
}

/* Section Content */
.sidebar-section-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    max-height: 500px;
    transition: max-height var(--transition-smooth), opacity var(--transition-normal);
}

.sidebar-section.collapsed .sidebar-section-content {
    max-height: 0;
    opacity: 0;
}

/* Premium Navigation Links */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    margin: 0 4px;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-4px);
}

.sidebar-link:hover::before {
    opacity: 0.5;
}

.sidebar-link.active {
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.08);
}

.sidebar-link.active::before {
    opacity: 1;
}

.sidebar-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent-gold);
    border-radius: 3px 0 0 3px;
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

/* Link Icon Container */
.sidebar-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

/* Icon color variations */
.sidebar-link-icon.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
}

.sidebar-link-icon.gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
}

.sidebar-link-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
}

.sidebar-link-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
}

.sidebar-link-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
}

.sidebar-link-icon.slate {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.2), rgba(100, 116, 139, 0.05));
}

.sidebar-link:hover .sidebar-link-icon {
    transform: scale(1.05);
}

.sidebar-link.active .sidebar-link-icon {
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

/* Link Text */
.sidebar-link-text {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.sidebar.collapsed .sidebar-link-text {
    opacity: 0;
    width: 0;
}

/* Link Badge */
.sidebar-link-badge {
    margin-right: auto;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--status-danger);
    color: white;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.sidebar.collapsed .sidebar-link-badge {
    opacity: 0;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: var(--sidebar-border);
    margin: 12px 16px;
}

/* =====================================================
   Premium User Section - Bottom of Sidebar
   ===================================================== */
.sidebar-user {
    padding: 16px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sidebar-border);
    border-radius: 14px;
    transition: all var(--transition-normal);
}

.sidebar-user-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(251, 191, 36, 0.2);
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.sidebar.collapsed .sidebar-user-info {
    opacity: 0;
    width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.sidebar-logout-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #f87171;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.sidebar.collapsed .sidebar-logout-btn span {
    display: none;
}

/* =====================================================
   Premium Dashboard Header
   ===================================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sidebar-border);
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.dashboard-header-info {
    display: flex;
    flex-direction: column;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-title-emoji {
    font-size: 1.3rem;
}

.dashboard-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-header-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sidebar-border);
    border-radius: 12px;
}

.dashboard-header-date {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.dashboard-header-clock {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dashboard-header-actions {
    display: flex;
    gap: 8px;
}

.dashboard-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sidebar-border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    cursor: pointer;
    font-family: inherit;
}

.dashboard-header-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}

.dashboard-header-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.dashboard-header-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* =====================================================
   Main Content - תוכן ראשי
   ===================================================== */
.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-right var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed~.main-content,
.main-content.sidebar-collapsed {
    margin-right: var(--sidebar-collapsed-width);
}

.main-content-inner {
    flex: 1;
    padding: 24px 28px;
}

/* =====================================================
   Stats Grid - רשת סטטיסטיקות
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid var(--card-border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(251, 191, 36, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.team {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
}

.stat-icon.readiness {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
}

.stat-icon.equipment {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
}

.stat-icon.partners {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
}

.stat-trend {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.stat-trend.up {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-active);
}

.stat-trend.down {
    background: rgba(239, 68, 68, 0.15);
    color: var(--status-danger);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

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

/* =====================================================
   Tools Section - אזור כלים
   ===================================================== */
.tools-section {
    margin-bottom: 28px;
}

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

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-link {
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.section-link:hover {
    text-decoration: underline;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(251, 191, 36, 0.3);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 14px;
}

.tool-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.tool-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* =====================================================
   Dashboard Grid - רשת תוכן
   ===================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--card-border);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =====================================================
   Activity Feed - פעילות אחרונה
   ===================================================== */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background var(--transition-fast);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-dot.alert {
    background: var(--status-danger);
    box-shadow: 0 0 10px var(--status-danger);
}

.activity-dot.info {
    background: var(--status-info);
}

.activity-dot.success {
    background: var(--status-active);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =====================================================
   Quick Actions - פעולות מהירות
   ===================================================== */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.quick-action-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent-gold);
    transform: translateX(-6px);
}

.quick-action-btn .icon {
    font-size: 1.2rem;
}

.quick-action-btn.primary {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #0f172a;
    border: none;
}

.quick-action-btn.primary:hover {
    transform: translateX(-6px);
    box-shadow: 0 6px 25px var(--accent-gold-glow);
}

.quick-action-btn.danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.quick-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--status-danger);
}

/* =====================================================
   Login Required - מסך התחברות
   ===================================================== */
.login-required {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: var(--dashboard-bg);
}

.login-required-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.login-required h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.login-required p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.login-btn {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #0f172a;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-gold-glow);
}

.back-link {
    margin-top: 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--accent-gold);
}

/* =====================================================
   Mobile Header - כותרת מובייל
   ===================================================== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%);
    z-index: 200;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sidebar-border);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    border-radius: 10px;
    transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-brand-icon {
    font-size: 1.4rem;
}

.mobile-brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-actions {
    display: flex;
    gap: 8px;
}

.mobile-home-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.3rem;
    transition: background var(--transition-fast);
}

.mobile-home-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 150;
    opacity: 0;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    opacity: 1;
}

/* =====================================================
   Responsive - התאמה למובייל
   ===================================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
    }

    .sidebar.open,
    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-right: 0;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .dashboard-header-left {
        justify-content: flex-end;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        transform: translateX(100%);
        z-index: 200;
        padding-top: 20px;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: none;
    }

    .main-content {
        padding-top: 60px;
    }

    .main-content-inner {
        padding: 16px;
    }

    .dashboard-header {
        padding: 16px;
    }

    .dashboard-title {
        font-size: 1.3rem;
    }

    /* Stats Grid - Horizontal Scroll on Mobile */
    .stats-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .stats-grid::-webkit-scrollbar {
        height: 4px;
    }

    .stats-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .stats-grid::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
    }

    .stat-card {
        flex: 0 0 140px;
        min-width: 140px;
        padding: 16px;
        scroll-snap-align: start;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tool-card {
        padding: 16px;
    }

    .tool-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {

    /* Keep horizontal scroll for stats */
    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        flex: 0 0 120px;
        min-width: 120px;
        padding: 14px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header-time {
        display: none;
    }

    .dashboard-header-actions {
        flex-wrap: wrap;
    }
}

/* =====================================================
   Navigation Cards - כרטיסי ניווט עם חץ
   ===================================================== */
.nav-card,
.quick-action-btn.nav-link,
a.tool-card,
.tool-card[onclick],
a.quick-action-btn,
.quick-action-btn[data-link],
[class*="card"][href],
a[class*="stat-card"],
.stat-card.clickable {
    position: relative;
    cursor: pointer;
}

.nav-card::after,
.quick-action-btn.nav-link::after,
a.tool-card::after,
.tool-card[onclick]::after,
a.quick-action-btn::after,
.quick-action-btn[data-link]::after,
a[class*="stat-card"]::after,
.stat-card.clickable::after {
    content: '←';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--accent-gold, #fbbf24);
    font-weight: 700;
    transition: left 0.3s ease, color 0.3s ease;
}

.nav-card:hover::after,
.quick-action-btn.nav-link:hover::after,
a.tool-card:hover::after,
.tool-card[onclick]:hover::after,
a.quick-action-btn:hover::after,
.quick-action-btn[data-link]:hover::after,
a[class*="stat-card"]:hover::after,
.stat-card.clickable:hover::after {
    left: 12px;
    color: #fff;
}

/* Special nav card styling */
.nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 50px 18px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.15));
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary, white);
    transition: all 0.3s ease;
}

.nav-card:hover {
    background: var(--card-hover, rgba(51, 65, 85, 0.6));
    border-color: var(--accent-gold, #fbbf24);
    transform: translateX(-4px);
}

.nav-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.nav-card-content {
    flex: 1;
}

.nav-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, white);
    margin-bottom: 4px;
}

.nav-card-description {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
}

/* =====================================================
   Animation Keyframes - אנימציות
   ===================================================== */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--accent-gold-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-gold-glow);
    }
}

/* Loading state */
.loading {
    animation: pulse 1.5s infinite;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Card animations */
.dashboard-card,
.stat-card,
.tool-card {
    animation: fadeSlideIn 0.4s ease forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.05s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.15s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.2s;
}

.tool-card:nth-child(1) {
    animation-delay: 0.05s;
}

.tool-card:nth-child(2) {
    animation-delay: 0.1s;
}

.tool-card:nth-child(3) {
    animation-delay: 0.15s;
}

.tool-card:nth-child(4) {
    animation-delay: 0.2s;
}

.tool-card:nth-child(5) {
    animation-delay: 0.25s;
}

.tool-card:nth-child(6) {
    animation-delay: 0.3s;
}

.tool-card:nth-child(7) {
    animation-delay: 0.35s;
}

.tool-card:nth-child(8) {
    animation-delay: 0.4s;
}

/* =====================================================
   Utility Classes
   ===================================================== */
.hidden {
    display: none !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   Sidebar Link Content with Description
   ===================================================== */
.sidebar-link-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.sidebar.collapsed .sidebar-link-content {
    opacity: 0;
    width: 0;
}

.sidebar-link-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================================
   Social Feed Styles - פיד חברתי
   ===================================================== */
.social-feed-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Feed Header */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.feed-header-right {
    flex: 1;
}

.feed-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-title-icon {
    font-size: 1.4rem;
}

.feed-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.feed-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feed-filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.feed-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.feed-filter-btn.active {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #0f172a;
    border-color: transparent;
    font-weight: 600;
}

/* New Post Card */
.new-post-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    margin-bottom: 20px;
}

.new-post-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0f172a;
    flex-shrink: 0;
}

.new-post-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.new-post-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.new-post-input::placeholder {
    color: var(--text-muted);
}

.new-post-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.new-post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-post-type-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-post-type-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.new-post-submit {
    margin-right: auto;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    border: none;
    border-radius: 10px;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.new-post-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-gold-glow);
}

/* Feed Posts */
.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Post */
.feed-post {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: fadeSlideIn 0.4s ease forwards;
}

.feed-post:hover {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Urgent Post Style */
.feed-post.urgent {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.post-urgent-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

.urgent-icon {
    font-size: 1.1rem;
    animation: pulse 1.5s infinite;
}

.urgent-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f87171;
}

/* Post Header */
.post-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 20px 0;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.post-avatar.purchase {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
}

.post-avatar.cooperation {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
}

.post-avatar.question {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
}

.post-avatar.review {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
}

.post-avatar.urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
}

.post-meta {
    flex: 1;
}

.post-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.post-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.post-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.post-badge.purchase {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.post-badge.cooperation {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.post-badge.question {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.post-badge.review {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-gold);
}

.post-badge.urgent {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.post-verified {
    width: 18px;
    height: 18px;
    background: var(--status-info);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-settlement {
    color: var(--text-secondary);
}

.post-separator {
    opacity: 0.5;
}

.post-menu-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Post Content */
.post-content {
    padding: 16px 20px;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.4;
}

.post-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Post Details Card */
.post-details-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value.highlight {
    color: var(--accent-gold);
}

.detail-value.success {
    color: var(--status-active);
}

/* Post Progress */
.post-progress-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.progress-percent {
    font-weight: 600;
    color: var(--accent-gold);
}

.post-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #f59e0b);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Post Participants */
.post-participants {
    display: flex;
    align-items: center;
    gap: 12px;
}

.participants-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.participants-avatars {
    display: flex;
    gap: -8px;
}

.participant {
    width: 36px;
    height: 36px;
    background: var(--card-hover);
    border: 2px solid var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: -8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.participant:hover {
    transform: translateY(-2px);
    z-index: 1;
}

.participant.add {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
}

/* Post Highlights */
.post-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.highlight-icon {
    font-size: 1rem;
}

/* CTA Banner */
.post-cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

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

.cta-icon {
    font-size: 1.3rem;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cta-text strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

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

.cta-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Poll Styles */
.post-poll {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
}

.poll-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.poll-option:hover {
    border-color: var(--accent-gold);
}

.poll-option input {
    display: none;
}

.poll-option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1;
    flex: 1;
}

.poll-option-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.poll-votes {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.poll-bar {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--percent);
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), transparent);
    transition: width 0.5s ease;
}

.poll-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Review Styles */
.review-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.2);
}

.star.filled {
    color: var(--accent-gold);
}

.star.half {
    background: linear-gradient(90deg, var(--accent-gold) 50%, rgba(255, 255, 255, 0.2) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-score {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.rating-label {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.pros,
.cons {
    padding: 14px;
    border-radius: 10px;
}

.pros {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cons {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pros h4,
.cons h4 {
    font-size: 0.85rem;
    margin: 0 0 10px;
}

.pros h4 {
    color: #34d399;
}

.cons h4 {
    color: #f87171;
}

.pros ul,
.cons ul {
    margin: 0;
    padding-right: 18px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.review-gallery {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.gallery-item {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-item:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.gallery-item.more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Urgent Details */
.urgent-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.urgent-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.urgent-detail-icon {
    font-size: 1.1rem;
}

/* Post Actions */
.post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.15);
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.post-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.post-action-btn.like:hover,
.post-action-btn.like.liked {
    color: #60a5fa;
}

.post-action-btn.liked {
    color: #60a5fa;
}

.post-action-btn.comment:hover {
    color: var(--accent-gold);
}

.action-icon {
    font-size: 1rem;
}

.action-count {
    font-weight: 600;
}

.post-action-btn.primary,
.post-action-btn.join.primary,
.post-action-btn.answer.primary {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #0f172a;
    font-weight: 600;
    margin-right: auto;
}

.post-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.post-action-btn.urgent-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    margin-right: auto;
}

.post-action-btn.urgent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Post Comments */
.post-comments {
    padding: 0 20px 20px;
}

.comment {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-top: 12px;
}

.comment.expert {
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.comment-avatar {
    width: 36px;
    height: 36px;
    background: var(--card-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.comment-avatar.expert {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
    color: #34d399;
}

.comment-content {
    flex: 1;
}

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

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

.comment-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 8px;
}

.comment-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 6px 0 10px;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-like,
.comment-reply {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    font-family: inherit;
}

.comment-like:hover,
.comment-reply:hover {
    color: var(--accent-gold);
}

/* Load More */
.feed-load-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.load-more-icon {
    font-size: 1.1rem;
}

/* Responsive Social Feed */
@media (max-width: 768px) {
    .social-feed-container {
        padding: 0;
    }

    .feed-header {
        flex-direction: column;
    }

    .feed-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .feed-filter-btn {
        flex-shrink: 0;
    }

    .new-post-card {
        flex-direction: column;
    }

    .new-post-avatar {
        align-self: flex-start;
    }

    .post-cta-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .review-pros-cons {
        grid-template-columns: 1fr;
    }

    .post-actions {
        flex-wrap: wrap;
    }

    .post-action-btn.primary,
    .post-action-btn.urgent-btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}