/**
 * Vendor Dashboard Styles
 *
 * @package Vendor_Theme
 */

/* ========================================
   AUTH PAGES (Login/Register)
======================================== */
.vendor-auth-page {
    min-height: 100vh;
    background: var(--light);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-card {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 30px;
}

.auth-logo span {
    color: var(--accent);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray-500);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-icon input,
.input-icon select {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-icon input:focus,
.input-icon select:focus {
    outline: none;
    border-color: var(--accent);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--accent);
}

.btn-block {
    width: 100%;
}

.form-message {
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-top: 20px;
    text-align: center;
    display: none;
}

.form-message:not(:empty) {
    display: block;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 5px;
}

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

.form-actions .btn {
    flex: 1;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.auth-side {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.auth-side-content {
    color: white;
    max-width: 400px;
}

.auth-side-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.auth-side-content p {
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.auth-features {
    list-style: none;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1.1rem;
}

.auth-features i {
    color: var(--accent);
}

/* Register Steps */
.register-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.register-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
}

.register-steps .step.active,
.register-steps .step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step.active .step-number {
    background: var(--accent);
    color: white;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.benefit-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: var(--radius);
}

.benefit-card i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.benefit-card h4 {
    color: white;
    margin-bottom: 5px;
}

.benefit-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* ========================================
   DASHBOARD LAYOUT
======================================== */
.vendor-dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--light);
}

.dashboard-sidebar {
    width: 280px;
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1001;
    transition: transform 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        visibility: hidden;
        box-shadow: 5px 0 25px rgba(0,0,0,0.3);
    }
    
    .dashboard-sidebar.open {
        transform: translateX(0) !important;
        visibility: visible !important;
    }
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dashboard-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.dashboard-logo span {
    color: var(--accent);
}

.sidebar-user {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-avatar {
    position: relative;
}

.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.plan-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-free { background: var(--gray-500); }
.badge-basic { background: #3b82f6; }
.badge-professional { background: #f59e0b; }
.badge-premium { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.user-info h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 3px;
}

.user-info p {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.nav-item i {
    width: 20px;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Install App in Sidebar */
.sidebar-install-app {
    padding: 15px 20px;
    margin: 0 15px 15px;
    background: linear-gradient(135deg, rgba(233,69,96,0.2), rgba(244,196,48,0.2));
    border-radius: 12px;
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.3);
    display: none;
}

.sidebar-install-app.show {
    display: block !important;
}

.install-app-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent), #f4c430);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-bottom: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
}

.install-app-btn:hover,
.install-app-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233,69,96,0.4);
}

.install-app-btn i {
    font-size: 1.1rem;
}

.sidebar-install-app p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-footer .btn {
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(239,68,68,0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* Dashboard Main */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

.dashboard-header {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.dashboard-content {
    padding: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-content h3 {
    font-size: 1.75rem;
    margin: 0;
}

.stat-content p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.9rem;
}

.stat-change {
    width: 100%;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.stat-change.positive {
    color: #10b981;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.card-header h3 {
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    color: var(--accent);
}

.card-link {
    font-size: 0.9rem;
    color: var(--accent);
}

.card-body {
    padding: 20px;
}

/* Leads List */
.leads-list {
    display: flex;
    flex-direction: column;
}

.lead-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-100);
}

.lead-item:last-child {
    border-bottom: none;
}

.lead-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.lead-info {
    flex: 1;
}

.lead-info h4 {
    font-size: 0.95rem;
    margin: 0 0 3px;
}

.lead-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

.lead-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--gray-700);
}

.quick-action:hover {
    background: var(--accent);
    color: white;
}

.quick-action i {
    font-size: 1.5rem;
}

/* Usage Bars */
.usage-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.usage-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usage-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.usage-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.plan-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition);
}

.plan-card.current {
    border-color: var(--accent);
}

.plan-card.popular {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
}

.plan-header h3 {
    margin-bottom: 15px;
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-price .period {
    color: var(--gray-500);
}

.plan-features ul {
    list-style: none;
    margin-bottom: 25px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.plan-features i {
    color: #10b981;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--gray-100);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.text-success { color: #10b981; }
.text-muted { color: var(--gray-300); }

/* Current Plan Info */
.current-plan-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.plan-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    color: white;
}

.plan-free { background: var(--gray-500); }
.plan-basic { background: #3b82f6; }
.plan-professional { background: #f59e0b; }
.plan-premium { background: linear-gradient(135deg, #f59e0b, #ef4444); }

/* Mobile Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plan-card.popular {
        transform: none;
    }
}

@media (max-width: 992px) {
    .dashboard-main {
        margin-left: 0;
    }
    
    .mobile-sidebar-toggle {
        display: block;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-side {
        display: none;
    }
    
    .auth-card {
        padding: 40px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        padding: 15px;
    }
    
    .register-steps {
        flex-wrap: wrap;
    }
    
    /* Dashboard Header Mobile */
    .dashboard-topbar {
        padding: 10px 15px;
    }
    
    .dashboard-topbar h1 {
        font-size: 1.2rem;
    }
    
    /* Cards Mobile */
    .card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .card-header {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    /* Stat Cards Mobile */
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-card p {
        font-size: 0.8rem;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        width: 100%;
    }
    
    /* Forms Mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    /* Modal Mobile */
    .modal {
        margin: 10px;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-lg {
        width: calc(100% - 20px);
    }
}

/* ========================================
   MOBILE LEAD MANAGEMENT STYLES
======================================== */
@media (max-width: 768px) {
    /* Lead Stats Grid */
    .leads-stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .stat-card.mini {
        flex-direction: column;
        text-align: center;
        padding: 10px 8px !important;
        gap: 5px !important;
    }
    
    .stat-card.mini .stat-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem;
    }
    
    .stat-card.mini h3 {
        font-size: 1.1rem !important;
    }
    
    .stat-card.mini p {
        font-size: 0.65rem !important;
        line-height: 1.2;
    }
    
    /* Pending Alert Mobile */
    .pending-leads-alert {
        padding: 15px !important;
        gap: 12px !important;
    }
    
    .pending-leads-alert .alert-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .pending-leads-alert .alert-content strong {
        font-size: 0.95rem !important;
    }
    
    .pending-leads-alert .alert-content p {
        font-size: 0.8rem !important;
    }
    
    /* Hide table, show cards on mobile */
    .data-table {
        display: none !important;
    }
    
    .mobile-leads-list {
        display: block !important;
    }
    
    /* Lead Card Mobile */
    .lead-card-mobile {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        margin-bottom: 12px;
        overflow: hidden;
    }
    
    .lead-card-mobile.pending {
        border-left: 4px solid #f59e0b;
        background: linear-gradient(to right, #fefce8, #fff);
    }
    
    .lead-card-mobile.accepted {
        border-left: 4px solid #10b981;
    }
    
    .lead-card-mobile .lead-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .lead-card-mobile .lead-name-section {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .lead-card-mobile .lead-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 600;
        font-size: 1rem;
    }
    
    .lead-card-mobile .lead-name {
        font-weight: 600;
        font-size: 1rem;
        color: #1f2937;
    }
    
    .lead-card-mobile .lead-date {
        font-size: 0.75rem;
        color: #6b7280;
    }
    
    .lead-card-mobile .lead-status-badge {
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 600;
    }
    
    .lead-card-mobile .lead-status-badge.pending {
        background: #fef3c7;
        color: #92400e;
    }
    
    .lead-card-mobile .lead-status-badge.accepted {
        background: #d1fae5;
        color: #065f46;
    }
    
    .lead-card-mobile .lead-card-body {
        padding: 15px;
    }
    
    .lead-card-mobile .lead-info-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    .lead-card-mobile .lead-info-row i {
        width: 20px;
        color: #6b7280;
    }
    
    .lead-card-mobile .lead-info-row.event-date {
        background: #f0f9ff;
        padding: 8px 12px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .lead-card-mobile .lead-info-row.event-date i {
        color: #0284c7;
    }
    
    .lead-card-mobile .lead-message {
        background: #f9fafb;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 0.85rem;
        color: #4b5563;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .lead-card-mobile .contact-hidden-mobile {
        background: #fef3c7;
        padding: 12px;
        border-radius: 8px;
        text-align: center;
        color: #92400e;
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .lead-card-mobile .contact-hidden-mobile i {
        margin-right: 5px;
    }
    
    .lead-card-mobile .contact-revealed {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .lead-card-mobile .contact-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
    }
    
    .lead-card-mobile .contact-btn.phone-btn {
        background: #10b981;
        color: #fff;
    }
    
    .lead-card-mobile .contact-btn.email-btn {
        background: #3b82f6;
        color: #fff;
    }
    
    .lead-card-mobile .contact-btn.whatsapp-btn {
        background: #25d366;
        color: #fff;
    }
    
    .lead-card-mobile .lead-card-actions {
        display: flex;
        gap: 8px;
        padding: 12px 15px;
        background: #f9fafb;
        border-top: 1px solid #f3f4f6;
    }
    
    .lead-card-mobile .lead-card-actions .btn {
        flex: 1;
        padding: 12px;
        font-size: 0.85rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .lead-card-mobile .lead-card-actions .btn-accept {
        background: #10b981;
        color: #fff;
        border: none;
    }
    
    .lead-card-mobile .lead-card-actions .btn-reject {
        background: #fff;
        color: #ef4444;
        border: 1px solid #ef4444;
    }
    
    .lead-card-mobile .status-select-mobile {
        width: 100%;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 0.9rem;
        background: #fff;
    }
    
    /* Empty State Mobile */
    .empty-state {
        padding: 40px 20px !important;
    }
    
    .empty-state i {
        font-size: 2.5rem !important;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .leads-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stat-card.mini p {
        display: none;
    }
    
    .lead-card-mobile .lead-card-actions {
        flex-direction: column;
    }
    
    .pending-leads-alert {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
    
    .dashboard-page-wrapper {
        padding-bottom: 70px;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.7rem;
    padding: 5px 10px;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-item .nav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.mobile-nav-item-wrapper {
    position: relative;
}

/* ========================================
   MOBILE FLOATING ACTION BUTTON
======================================== */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    z-index: 999;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-fab {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========================================
   MOBILE HEADER IMPROVEMENTS
======================================== */
@media (max-width: 768px) {
    .dashboard-topbar {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
    }
    
    .mobile-menu-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #374151;
        padding: 5px;
        cursor: pointer;
    }
    
    .mobile-header-title {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .mobile-header-actions {
        display: flex;
        gap: 10px;
    }
    
    .mobile-header-actions .btn-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #374151;
    }
}

/* ========================================
   TOUCH-FRIENDLY IMPROVEMENTS
======================================== */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn, button, a.btn {
        min-height: 44px;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 8px 12px;
    }
    
    /* Better spacing for touch */
    .form-group {
        margin-bottom: 16px;
    }
    
    /* Checkbox and radio larger */
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
    }
    
    /* Links with better tap area */
    .nav-link, .sidebar-nav a {
        padding: 12px 15px;
    }
    
    /* Cards with better tap feedback */
    .card, .lead-card-mobile {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Pull to refresh indicator space */
    .dashboard-content {
        min-height: 100vh;
    }
}

/* ========================================
   SWIPE ACTIONS FOR LEADS (Visual Only)
======================================== */
@media (max-width: 768px) {
    .lead-card-mobile {
        position: relative;
        overflow: hidden;
    }
    
    .swipe-hint {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7rem;
        color: #9ca3af;
        display: flex;
        align-items: center;
        gap: 5px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .lead-card-mobile:active .swipe-hint {
        opacity: 1;
    }
}

/* ========================================
   NOTIFICATION TOAST MOBILE
======================================== */
@media (max-width: 768px) {
    .dashboard-notification {
        left: 15px !important;
        right: 15px !important;
        top: auto !important;
        bottom: 80px !important;
        border-radius: 12px !important;
        text-align: center;
    }
}

/* ========================================
   PORTFOLIO GRID MOBILE
======================================== */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .portfolio-item {
        border-radius: 10px;
    }
    
    .portfolio-item img {
        height: 120px;
    }
}

/* ========================================
   BOOKINGS MOBILE
======================================== */
@media (max-width: 768px) {
    .booking-card {
        padding: 15px;
    }
    
    .booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .booking-details {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .booking-actions {
        flex-direction: column;
    }
    
    .booking-actions .btn {
        width: 100%;
    }
}

/* ========================================
   REVIEWS MOBILE
======================================== */
@media (max-width: 768px) {
    .review-card {
        padding: 15px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-rating {
        order: -1;
    }
}

/* ========================================
   PROFILE MOBILE
======================================== */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-bottom: 15px;
    }
    
    .profile-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .profile-form .form-group {
        width: 100%;
    }
}

/* ========================================
   iOS SAFE AREA
======================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    
    .dashboard-page-wrapper {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
======================================== */
@media (prefers-color-scheme: dark) {
    /* Can be enabled later */
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Push Notification Prompt
   ======================================== */
.vv-push-prompt {
    position: fixed;
    bottom: 80px;
    left: 15px;
    right: 15px;
    z-index: 9998;
    transform: translateY(150%);
    transition: transform 0.3s ease;
}

.vv-push-prompt.show {
    transform: translateY(0);
}

.push-prompt-content {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.push-prompt-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.push-prompt-icon i {
    font-size: 22px;
    color: #fff;
    animation: bell-ring 2s infinite;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(10deg); }
    20%, 40% { transform: rotate(-10deg); }
    50% { transform: rotate(0); }
}

.push-prompt-text {
    flex: 1;
    min-width: 0;
}

.push-prompt-text strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 2px;
}

.push-prompt-text p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}

.push-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.push-prompt-actions button {
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.push-prompt-actions .vv-push-subscribe {
    background: #fff;
    color: #667eea;
}

.push-prompt-actions .vv-push-prompt-close {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Toast notification */
.vv-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1f2937;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

/* Push notification toggle in settings */
.push-notification-settings {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.push-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.push-toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.push-toggle-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.push-toggle-text h4 {
    margin: 0 0 2px;
    font-size: 14px;
    color: #1f2937;
}

.push-toggle-text p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.push-toggle-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.push-toggle-btn.vv-push-subscribe {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.push-toggle-btn.vv-push-unsubscribe {
    background: #f3f4f6;
    color: #6b7280;
    display: none;
}

.vv-push-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #fee2e2;
    color: #dc2626;
}

.vv-push-status.enabled {
    background: #d1fae5;
    color: #059669;
}

@media (min-width: 768px) {
    .vv-push-prompt {
        left: auto;
        right: 30px;
        bottom: 30px;
        max-width: 400px;
    }
}
