/* Modern WhatsApp Multi-Session Bot - Sidebar Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Professional WhatsApp Colors */
    --whatsapp-green: #00a884;
    --whatsapp-dark-green: #008069;
    --whatsapp-light-green: #d1f4e0;

    /* Sidebar - Modern Professional Theme */
    --sidebar-bg: #1f2937;
    --sidebar-hover: #374151;
    --sidebar-active: #00a884;
    --sidebar-text: #d1d5db;
    --sidebar-text-active: #ffffff;
    --sidebar-accent: #00a884;

    /* Main Colors - Clean & Sophisticated */
    --main-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;

    /* Status Colors - Professional & Muted */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0284c7;
    --purple: #7c3aed;

    /* Subtle Shadows - Modern & Light */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 8px -2px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 8px 16px -4px rgba(0, 0, 0, 0.1);

    /* Sidebar Dimensions */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--main-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== SIDEBAR - Modern Professional Design ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

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

.sidebar.collapsed .brand-text,
.sidebar.collapsed .brand-subtitle,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-section-title {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-bottom: 1px solid #374151;
}

.sidebar-logo {
    display: none;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    margin-left: auto;
}

.sidebar-close:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.sidebar-brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    transition: all var(--transition-normal);
}

.brand-subtitle {
    font-size: 0.7rem;
    color: #9ca3af;
    white-space: nowrap;
    transition: all var(--transition-normal);
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.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;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    margin: 0.25rem 0;
    border-radius: 10px;
    font-weight: 500;
}

.nav-item i {
    font-size: 1.125rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: #9ca3af;
    transition: all var(--transition-fast);
}

.nav-item span {
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.nav-item:hover i {
    color: var(--sidebar-accent);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--sidebar-accent) 0%, transparent 100%);
    color: #ffffff;
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--sidebar-accent);
    border-radius: 0 4px 4px 0;
}

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

.nav-item.active i {
    color: var(--whatsapp-green);
}

.nav-divider {
    height: 1px;
    background: #374151;
    margin: 1rem 0.5rem;
}

.nav-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-normal);
}



/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

/* Topbar */
.topbar {
    background: white;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
}

.topbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-btn:hover {
    background: var(--main-bg);
    color: var(--text-primary);
}

/* Profile Dropdown */
.profile-btn {
    width: auto !important;
    padding: 0 1rem !important;
    gap: 0.5rem;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

@media (min-width: 768px) {
    .profile-name {
        display: inline;
    }

    .w-md-auto {
        width: auto !important;
    }
}

/* Mobile Session Cards - Compact & Clean */
.session-mobile-card {
    background: white;
    border-radius: 10px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid var(--border-color);
}

.session-mobile-card:active {
    transform: scale(0.98);
}

/* ===== MOBILE-FIRST OPTIMIZATIONS ===== */
@media (max-width: 768px) {

    /* Page Content - Reduced Padding */
    .page-content {
        padding: 0.875rem;
    }

    /* Dashboard Header - Compact */
    .dashboard-header {
        margin-bottom: 0.875rem !important;
    }

    .dashboard-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem !important;
    }

    .dashboard-header p {
        font-size: 0.75rem;
    }

    /* Refresh Status Badge - Smaller */

    /* Create Session Button - Compact */
    .btn-lg {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.875rem !important;
    }

    /* Stats Cards - Compact */
    .stats-card .card-body {
        padding: 0.75rem !important;
    }

    .stats-value {
        font-size: 1.5rem !important;
    }

    .stats-label {
        font-size: 0.7rem !important;
    }

    .stats-icon-bg {
        padding: 0.375rem !important;
    }

    .stats-icon-bg i {
        font-size: 0.875rem !important;
    }

    /* Main Cards - Reduced Padding */
    .card {
        border-radius: 10px;
    }

    .card-header {
        padding: 0.875rem;
    }

    .card-header h5 {
        font-size: 0.875rem;
        font-weight: 600;
    }

    .card-body {
        padding: 0.875rem;
    }

    /* Mobile Session Cards - Very Compact */
    .session-mobile-card {
        margin-bottom: 0.625rem !important;
    }

    .session-mobile-card .card-body {
        padding: 0.75rem !important;
    }

    .session-mobile-card h6 {
        font-size: 0.875rem !important;
    }

    .session-mobile-card .small,
    .session-mobile-card small {
        font-size: 0.7rem !important;
    }

    .session-mobile-card code {
        font-size: 0.65rem;
    }

    /* Compact Buttons on Mobile Cards */
    .session-mobile-card .btn-sm {
        padding: 0.375rem 0.625rem !important;
        font-size: 0.7rem !important;
        border-radius: 6px;
    }

    .session-mobile-card .btn-sm i {
        font-size: 0.75rem;
    }

    /* Gap between buttons */
    .session-mobile-card .d-flex.gap-2 {
        gap: 0.375rem !important;
    }

    /* Badges - Smaller */
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.625rem;
    }

    /* Topbar - Compact */
    .topbar {
        height: 56px;
        padding: 0 0.875rem;
    }

    .topbar-title {
        font-size: 1.125rem;
    }
}

.profile-dropdown {
    min-width: 250px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.profile-dropdown-header i {
    color: var(--primary);
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--main-bg);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}



/* Page Content */
.page-content {
    flex: 1;
    padding: 2rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.card-header h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

/* Stats Cards - Clean & Professional */
.stats-card {
    background: white;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stats-card .card-body {
    position: relative;
    z-index: 1;
}

.stats-icon-bg {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-icon-bg.bg-primary-subtle {
    background: #eff6ff;
}

.stats-icon-bg.bg-success-subtle {
    background: #d1fae5;
}

.stats-icon-bg.bg-warning-subtle {
    background: #fef3c7;
}

.stats-icon-bg.bg-danger-subtle {
    background: #fee2e2;
}

.stats-icon-bg.text-primary {
    color: var(--info);
}

.stats-icon-bg.text-success {
    color: var(--success);
}

.stats-icon-bg.text-warning {
    color: var(--warning);
}

.stats-icon-bg.text-danger {
    color: var(--danger);
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stats-value.text-primary {
    color: var(--info);
}

.stats-value.text-success {
    color: var(--success);
}

.stats-value.text-warning {
    color: var(--warning);
}

.stats-value.text-danger {
    color: var(--danger);
}

.stats-label {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== BUTTONS - Clean & Professional ===== */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success {
    background: var(--whatsapp-green);
    color: white;
}

.btn-success:hover {
    background: var(--whatsapp-dark-green);
    box-shadow: var(--shadow-md);
    color: white;
}

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

.btn-primary:hover {
    background: #0369a1;
    box-shadow: var(--shadow-md);
    color: white;
}

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

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: var(--shadow-md);
    color: white;
}

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

.btn-warning:hover {
    background: #b45309;
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-info {
    background: #0891b2;
    color: white;
}

.btn-info:hover {
    background: #0e7490;
    box-shadow: var(--shadow-md);
    color: white;
}

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

.btn-purple:hover {
    background: #6d28d9;
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== TABLE ===== */
.table {
    width: 100%;
    margin: 0;
}

.table thead th {
    background: var(--main-bg);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(37, 211, 102, 0.05);
}

/* ===== BADGES ===== */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-warning {
    background: var(--warning) !important;
}

.badge.bg-info {
    background: var(--info) !important;
}

.badge.bg-danger {
    background: var(--danger) !important;
}

/* ===== FORMS ===== */
.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ===== MODALS - Clean & Professional ===== */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    gap: 0.625rem;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--whatsapp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.modal-icon-danger {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.modal-icon-warning {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal.fade .modal-dialog {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal .form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
}

.modal .alert {
    border-radius: 12px;
    padding: 1rem;
}

.modal .alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.modal .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.modal .list-unstyled li {
    padding: 0.5rem 0;
    color: var(--text-primary);
}

.modal .btn {
    min-width: 120px;
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

/* ===== ALERTS - MOBILE OPTIMIZED ===== */
.alert {
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert i {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

.alert small {
    display: block;
    line-height: 1.4;
}

@media (max-width: 576px) {
    .alert {
        padding: 0.875rem;
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .alert i {
        font-size: 1rem;
        margin-top: 0.125rem;
    }

    .alert strong {
        font-size: 0.95rem;
        margin-bottom: 0.125rem;
    }

    .alert small {
        font-size: 0.8rem;
    }
}

/* ===== CREATE SESSION MODAL - MODERN REDESIGN ===== */

.modal-session {
    max-width: 520px;
}

.modal-session-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Modern Header with Gradient */
.modal-session-header {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    overflow: hidden;
}

.session-header-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerPulse 8s ease-in-out infinite;
}

@keyframes headerPulse {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10px, -10px) scale(1.05);
    }
}

.btn-close-modern {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.session-header-content {
    position: relative;
    z-index: 2;
}

.session-icon-modern {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.session-title-modern {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: white;
}

.session-desc-modern {
    font-size: 0.9375rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Modal Body */
.modal-session-body {
    padding: 2rem;
}

/* Step Indicator */
.session-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Floating Label Input */
.input-float-group {
    position: relative;
    margin-bottom: 1.75rem;
}

.input-float {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: white;
}

.input-float:focus {
    outline: none;
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 4px rgba(0, 168, 132, 0.1);
}

.input-float-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all var(--transition-normal);
    background: white;
    padding: 0 0.25rem;
}

.input-float-label i {
    position: absolute;
    left: -2.5rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.input-float:focus+.input-float-label,
.input-float:not(:placeholder-shown)+.input-float-label {
    top: 0;
    font-size: 0.75rem;
    color: var(--whatsapp-green);
    left: 3rem;
}

.input-float:focus+.input-float-label i,
.input-float:not(:placeholder-shown)+.input-float-label i {
    color: var(--whatsapp-green);
}

.input-float-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    transition: width var(--transition-normal);
    border-radius: 0 0 12px 12px;
}

.input-float:focus~.input-float-border {
    width: 100%;
}

/* Info Card */
.session-info-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-radius: 12px;
    border: 1px solid #dbeafe;
    margin-bottom: 1.5rem;
}

.info-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--info);
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

.info-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.375rem;
}

.info-card-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Quick Suggestions */
.session-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}

/* Modal Footer */
.modal-session-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.875rem;
    background: var(--main-bg);
}

.btn-modern {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    position: relative;
    overflow: hidden;
}

.btn-secondary-modern {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary-modern:hover {
    background: var(--main-bg);
    border-color: var(--text-secondary);
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.25);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 132, 0.35);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Mobile Responsive - COMPACT */
@media (max-width: 576px) {
    .modal-session {
        margin: 0.5rem;
    }

    .modal-session-header {
        padding: 1rem 1rem 0.875rem !important;
    }

    .session-icon-modern {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.5rem !important;
        margin: 0 auto 0.625rem !important;
        border-radius: 12px !important;
    }

    .session-title-modern {
        font-size: 1.125rem !important;
        margin: 0 0 0.25rem !important;
    }

    .session-desc-modern {
        font-size: 0.75rem !important;
    }

    .btn-close-modern {
        width: 28px !important;
        height: 28px !important;
        top: 0.625rem !important;
        right: 0.625rem !important;
        font-size: 0.875rem !important;
    }

    .modal-session-body {
        padding: 1rem !important;
    }

    .session-steps {
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .input-float-group {
        margin-bottom: 1rem !important;
    }

    .input-float {
        padding: 0.625rem 0.75rem 0.625rem 2.5rem !important;
        font-size: 0.875rem !important;
        border-radius: 10px !important;
    }

    .input-float-label {
        left: 2.5rem !important;
        font-size: 0.875rem !important;
    }

    .input-float:focus+.input-float-label,
    .input-float:not(:placeholder-shown)+.input-float-label {
        font-size: 0.6875rem !important;
        left: 2.5rem !important;
    }

    .input-float-label i {
        left: -2rem !important;
        font-size: 0.875rem !important;
    }

    .session-info-card {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
        border-radius: 10px !important;
    }

    .info-card-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }

    .info-card-title {
        font-size: 0.75rem !important;
        margin: 0 0 0.25rem !important;
    }

    .info-card-text {
        font-size: 0.6875rem !important;
        line-height: 1.4 !important;
    }

    .session-suggestions {
        gap: 0.375rem !important;
    }

    .modal-session-footer {
        padding: 0.875rem 1rem !important;
        gap: 0.5rem !important;
        flex-direction: column;
    }

    .btn-modern {
        padding: 0.625rem 1rem !important;
        font-size: 0.8125rem !important;
        border-radius: 8px !important;
    }

    .btn-modern i {
        font-size: 0.875rem !important;
    }
}

/* ===== COMPACT FORM ELEMENTS ===== */

.form-group-compact {
    margin-bottom: 1rem;
}

.form-label-compact {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-label-compact i {
    margin-right: 0.375rem;
    color: var(--whatsapp-green);
}

.form-control-compact {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    transition: all var(--transition-fast);
}

.form-control-compact:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
    outline: none;
}

.form-text-compact {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: block;
}

.form-text-compact i {
    margin-right: 0.25rem;
}

/* Compact Icon Button Group */
.btn-group-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.btn-compact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-height: 70px;
}

.btn-compact-icon i {
    font-size: 1.25rem;
    color: var(--whatsapp-green);
}

.btn-compact-icon span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.btn-compact-icon:hover {
    background: var(--whatsapp-light-green);
    border-color: var(--whatsapp-green);
    color: var(--whatsapp-dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-compact-icon:active {
    transform: translateY(0);
}

@media (max-width: 576px) {
    .btn-group-compact {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .btn-compact-icon {
        min-height: 65px;
        padding: 0.625rem 0.375rem;
    }
    
    .btn-compact-icon i {
        font-size: 1.1rem;
    }
    
    .btn-compact-icon span {
        font-size: 0.7rem;
    }
}

/* Options Grid - Improved Design */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .options-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--whatsapp-green);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.option-card:hover {
    border-color: var(--whatsapp-green);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
    transform: translateY(-2px);
}

.option-card:hover::before {
    transform: scaleY(1);
}

.option-card:active {
    transform: translateY(0);
}

.option-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}

.option-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

.option-card:hover .option-icon {
    transform: scale(1.1);
}

.bg-success-subtle {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
}

.bg-info-subtle {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0.08) 100%);
}

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

.option-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.option-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.option-card .form-check {
    margin: 0;
    padding: 0;
}

.option-card .form-check-input {
    width: 2.75rem;
    height: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #cbd5e1;
    transition: all 0.2s ease;
}

.option-card .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
    border-color: var(--whatsapp-green);
}

.option-card .form-check-input:checked {
    background-color: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .options-grid {
        gap: 0.625rem;
    }
    
    .option-card {
        padding: 0.875rem 1rem;
        border-radius: 10px;
    }
    
    .option-info {
        gap: 0.75rem;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 1rem;
    }
    
    .option-title {
        font-size: 0.875rem;
    }
    
    .option-desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .option-card .form-check-input {
        width: 2.5rem;
        height: 1.375rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .option-card {
        padding: 0.75rem 0.875rem;
    }
    
    .option-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }
    
    .option-title {
        font-size: 0.8125rem;
    }
    
    .option-desc {
        font-size: 0.6875rem;
    }
    
    .option-card .form-check-input {
        width: 2.25rem;
        height: 1.25rem;
    }
}

/* ===== SEND MESSAGE MODAL ===== */

.modal-message {
    max-width: 540px;
}

.modal-message-content {
    border-radius: 16px;
    border: none;
}

.modal-message-header {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.message-header-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.message-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.375rem;
    color: white;
}

.message-subtitle {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.modal-message-body {
    padding: 1.5rem;
}

.modal-message-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    background: var(--main-bg);
}

/* Mobile Responsive for Send Message Modal */
@media (max-width: 576px) {
    .modal-message {
        margin: 0.5rem;
    }

    .modal-message-header {
        padding: 1rem !important;
    }

    .message-header-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.375rem !important;
        margin: 0 auto 0.625rem !important;
        border-radius: 12px !important;
    }

    .message-title {
        font-size: 1.125rem !important;
    }

    .message-subtitle {
        font-size: 0.75rem !important;
    }

    .modal-message-body {
        padding: 1rem !important;
    }

    .modal-message-footer {
        padding: 0.875rem 1rem !important;
        gap: 0.5rem !important;
        flex-direction: column;
    }

    .modal-message-footer .btn-modern {
        width: 100%;
    }
}

/* ===== QR CODE MODAL - COMPACT REDESIGN ===== */

.modal-qr {
    max-width: 450px;
}

.modal-qr-content {
    border-radius: 16px;
    border: none;
}

.modal-qr-header {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.qr-header-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.qr-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.375rem;
    color: white;
}

.qr-subtitle {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.modal-qr-body {
    padding: 1.5rem;
    text-align: center;
}

.qr-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#qrCodeContainer img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    padding: 1rem;
    background: white;
    border: 2px solid var(--whatsapp-green);
    box-shadow: 0 4px 16px rgba(0, 168, 132, 0.15);
    transition: all 0.3s ease;
}

#qrCodeContainer img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 168, 132, 0.2);
}

.qr-help-compact {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-radius: 12px;
    border: 1px solid #dbeafe;
    margin-top: 1.5rem;
    text-align: left;
}

.qr-help-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--info);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.qr-help-text {
    flex: 1;
}

.qr-help-text strong {
    font-size: 0.875rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.qr-help-text p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Mobile Responsive for QR Modal */
@media (max-width: 576px) {
    .modal-qr {
        margin: 0.5rem;
    }

    .modal-qr-header {
        padding: 1rem !important;
    }

    .qr-header-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.375rem !important;
        margin: 0 auto 0.625rem !important;
        border-radius: 12px !important;
    }

    .qr-title {
        font-size: 1.125rem !important;
    }

    .qr-subtitle {
        font-size: 0.75rem !important;
    }

    .modal-qr-body {
        padding: 1rem !important;
    }

    .qr-container {
        min-height: 250px !important;
        padding: 0.5rem !important;
    }

    #qrCodeContainer img {
        max-width: 220px !important;
        padding: 0.75rem !important;
    }

    .qr-help-compact {
        padding: 0.75rem !important;
        gap: 0.625rem !important;
        margin-top: 1rem !important;
        border-radius: 10px !important;
    }

    .qr-help-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }

    .qr-help-text strong {
        font-size: 0.75rem !important;
    }

    .qr-help-text p {
        font-size: 0.7rem !important;
    }
}


/* ===== TEMPLATES PAGE ===== */

.template-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.template-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.15) !important;
    border-color: var(--whatsapp-green);
}

.template-card .card-title {
    color: var(--text-primary);
    font-size: 1.125rem;
}

.template-card .badge {
    font-size: 0.7rem;
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.template-preview-box {
    background: var(--main-bg);
    border-radius: 10px;
    padding: 1rem;
    border-left: 3px solid var(--whatsapp-green);
}

.template-message {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
}

.template-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.template-actions .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.template-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* WhatsApp Editor */

.toolbar-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.toolbar-btn:hover {
    background: var(--whatsapp-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.toolbar-btn:active {
    transform: translateY(0);
}

/* Responsive */

/* ===== TEMPLATE SELECTOR MODAL ===== */
.template-selector-modal .modal-content {
    border-radius: 16px;
    border: none;
}

.template-search-box {
    position: relative;
}

.template-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.template-search-box input {
    padding-left: 2.75rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.template-search-box input:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.template-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.template-list::-webkit-scrollbar {
    width: 6px;
}

.template-list::-webkit-scrollbar-track {
    background: var(--main-bg);
    border-radius: 10px;
}

.template-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.template-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.template-selector-item {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: white;
}

.template-selector-item:hover {
    border-color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.02);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.1);
}

.template-selector-item:active {
    transform: translateX(4px) scale(0.98);
}

.template-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.template-selector-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.template-selector-preview {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-selector-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.template-selector-meta i {
    margin-right: 0.25rem;
}

.template-selector-arrow {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.template-selector-item:hover .template-selector-arrow {
    color: var(--whatsapp-green);
    transform: translateX(4px);
}

.template-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.03), rgba(37, 211, 102, 0.08));
    border-radius: 12px;
    border: 2px dashed rgba(37, 211, 102, 0.2);
}

.template-empty-state i {
    display: block;
    margin-bottom: 1rem;
}

.template-empty-state p {
    margin-bottom: 0.5rem;
}

.template-empty-state p:last-of-type {
    margin-bottom: 1.5rem;
}

.template-empty-state .btn {
    min-width: 180px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* ===== RESPONSIVE ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

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

    .mobile-toggle {
        display: block;
    }

    .sidebar-overlay {
        display: block;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 1rem;
    }

    .topbar {
        padding: 0 1rem;
    }

    .topbar-title {
        font-size: 1.25rem;
    }

    .stats-value {
        font-size: 2rem;
    }
}

/* ===== UTILITIES ===== */
.text-muted {
    color: var(--text-secondary) !important;
}

code {
    background: var(--main-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875em;
    color: var(--whatsapp-dark-green);
    font-weight: 600;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--main-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Toast Notifications */
#toastContainer {
    position: fixed !important;
    bottom: 2rem !important;
    right: 1rem !important;
    max-width: 400px;
    width: auto;
    z-index: 9999 !important;
}

.toast {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: 100%;
    min-width: 300px;
    margin-left: auto;
}

@media (max-width: 576px) {
    #toastContainer {
        bottom: 1.5rem !important;
        right: 0.75rem !important;
        left: 0.75rem !important;
        max-width: calc(100% - 1.5rem);
    }

    .toast {
        max-width: 100%;
        min-width: auto;
    }
}

.toast-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.toast .btn-close {
    opacity: 0.8;
    padding: 0.5rem;
}

.toast .btn-close:hover {
    opacity: 1;
}

.toast.showing {
    animation: slideInRight 0.3s ease-out;
}

.toast.hide {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}


/* ===== TEMPLATE EDITOR PAGE ===== */
.template-editor-container {
    max-width: 1400px;
    margin: 0 auto;
}

.preview-sticky {
    position: sticky;
    top: 2rem;
}

/* WhatsApp Preview */

.message-bubble {
    background: #dcf8c6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.message-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-left: 8px solid #dcf8c6;
    border-top: 8px solid transparent;
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #303030;
    word-wrap: break-word;
}

.message-text strong {
    font-weight: 700;
}

.message-text em {
    font-style: italic;
}

.message-text del {
    text-decoration: line-through;
}

.message-text code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.message-time {
    text-align: right;
    font-size: 0.7rem;
    color: #667781;
    margin-top: 0.25rem;
}

.message-time .fa-check-double {
    color: #53bdeb;
}

/* Responsive */
@media (max-width: 991px) {
    .preview-sticky {
        position: relative;
        top: 0;
    }
}

/* Dashboard specific styles */

.whatsapp-icon-color {
    color: var(--whatsapp-green);
}

.message-optional-label {
    display: none;
    font-size: 0.85rem;
}

.message-textarea-rounded {
    border-radius: 12px;
}

.media-upload-section {
    display: none;
}

/* API Management page styles */

/* Modal icon styles */
.modal-icon-large {
    font-size: 4rem;
}

/* Users page styles */

/* Templates page styles */

/* Login page styles */
.login-card-width {
    width: 420px;
    max-width: 90vw;
}

.login-whatsapp-icon {
    font-size: 4rem;
    color: var(--whatsapp-green);
    filter: drop-shadow(0 4px 8px rgba(37, 211, 102, 0.3));
}

.login-heading {
    color: var(--text-primary);
}

/* Error page styles */
.error-icon-large {
    font-size: 5rem;
    color: var(--warning);
}

.error-details-card {
    max-width: 700px;
    margin: 0 auto;
    animation-delay: 0.2s;
}

.error-stack-trace {
    font-size: 0.875rem;
    max-height: 300px;
    overflow-y: auto;
}

.error-buttons-container {
    animation-delay: 0.3s;
}

/* API Docs page styles */
.api-docs-main-heading {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.api-docs-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.media-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

/* AI Assistant page styles */

.ai-test-response {
    display: none;
}

.ai-response-text {
    color: #4a5568;
    line-height: 1.6;
}

/* ========================================
   AUTO-REPLY PAGE STYLES
   ======================================== */

#createAutoReplyModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.form-label-clean {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.form-clean {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-clean:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    outline: none;
}

.btn-clean {
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-clean:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-clean-primary {
    border-color: #25D366;
    color: #25D366;
}

.btn-clean-primary:hover {
    background: #25D366;
    color: white;
}

.btn-clean-success {
    border-color: #10b981;
    color: #10b981;
}

.btn-clean-success:hover {
    background: #10b981;
    color: white;
}

.modal-footer.bg-light {
    background: #f8fafc !important;
}

@keyframes pulse-share {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
    }
}

/* ========================================
   AI ASSISTANT PAGE STYLES
   ======================================== */

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #2d3748;
}

.info-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.info-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li i {
    color: #25D366;
    margin-top: 0.25rem;
}

/* ========================================
   CHANGE PASSWORD PAGE STYLES
   ======================================== */

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control-modern {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    outline: none;
}

.btn-change-password {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-change-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #2d3748;
}

/* Message remove button styling - Simple & Professional */
.btn-remove-message {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: white;
    border: 1.5px solid #fecaca;
    color: #dc2626;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-remove-message:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.btn-remove-message i {
    font-size: 0.875rem;
}

/* ===== QR CODE MODAL IMPROVEMENTS ===== */
.qr-code-wrapper {
    text-align: center;
    padding: 1rem;
}

.qr-code-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    padding: 1rem;
    background: white;
    border: 2px solid var(--whatsapp-green);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.15);
    transition: all 0.3s ease;
    animation: qrFadeIn 0.3s ease-in;
}

@keyframes qrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-code-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.2);
}

.qr-info {
    background: rgba(37, 211, 102, 0.05);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(37, 211, 102, 0.1);
}

.qr-status {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.qr-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.qr-loading,
.qr-error,
.qr-timeout {
    text-align: center;
    padding: 2rem 1rem;
}

.qr-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.progress {
    background-color: rgba(37, 211, 102, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* QR Modal Responsive */
@media (max-width: 576px) {
    .qr-code-image {
        max-width: 240px;
    }

    .qr-info {
        padding: 0.75rem;
    }
}


/* ========================================
   AI ASSISTANT PAGE - REDESIGNED
   ======================================== */

.ai-assistant-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.ai-assistant-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.ai-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ai-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ai-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateX(-4px);
}

.ai-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-status-badge i {
    font-size: 0.5rem;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-connected {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.5);
    color: #d1fae5;
}

.status-qr {
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.5);
    color: #dbeafe;
}

.status-connecting {
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid rgba(245, 158, 11, 0.5);
    color: #fef3c7;
}

.status-disconnected {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #fee2e2;
}

.ai-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.ai-header-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.ai-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.ai-header-text {
    flex: 1;
}

.ai-header-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: white;
}

.ai-header-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ai-session-name,
.ai-session-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.ai-session-name i,
.ai-session-phone i {
    opacity: 0.8;
}

.ai-providers-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.provider-icon {
    font-size: 1.5rem;
    cursor: help;
    transition: transform 0.2s ease;
}

.provider-icon:hover {
    transform: scale(1.2);
}

.ai-assistant-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

.ai-config-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-config-card,
.ai-test-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ai-config-card:hover,
.ai-test-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.ai-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f4f8;
}

.ai-section-header i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.ai-section-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.ai-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ai-form-group {
    margin-bottom: 1.5rem;
}

.ai-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.625rem;
    font-size: 0.95rem;
}

.ai-form-label i {
    color: #667eea;
    font-size: 1rem;
}

.ai-required {
    color: #ef4444;
    font-weight: 700;
}

.ai-optional-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.ai-value-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.ai-form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.ai-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.ai-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
}

.ai-input-with-icon {
    position: relative;
}

.ai-input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.ai-input-with-icon .ai-form-control {
    padding-left: 3rem;
}

.ai-form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.ai-form-hint i {
    color: #667eea;
}

.ai-form-hint a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ai-form-hint a:hover {
    color: #764ba2;
}

.ai-advanced-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.ai-slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.ai-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

.ai-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.ai-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

.ai-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.ai-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.ai-slider-labels span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ai-toggle-section {
    margin: 2rem 0;
}

.ai-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.ai-toggle-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.ai-toggle-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-toggle-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.ai-toggle-text h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.25rem 0;
}

.ai-toggle-text p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.ai-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
}

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

.ai-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e0;
    transition: 0.4s;
    border-radius: 36px;
}

.ai-switch-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ai-switch input:checked+.ai-switch-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-switch input:checked+.ai-switch-slider:before {
    transform: translateX(28px);
}

.ai-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.ai-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.ai-submit-btn:active {
    transform: translateY(0);
}

.ai-test-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ai-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.ai-test-response {
    display: none;
    margin-top: 1.5rem;
}

.ai-response-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #a7f3d0;
    border-radius: 14px;
    padding: 1.5rem;
}

.ai-response-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.ai-response-header i {
    font-size: 1.25rem;
}

.ai-response-text {
    color: #047857;
    line-height: 1.7;
    font-size: 0.95rem;
}

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

.ai-info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 2rem;
}

.ai-info-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.ai-info-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.ai-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ai-info-list li:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    transform: translateX(4px);
}

.ai-info-list li:last-child {
    margin-bottom: 0;
}

.ai-info-list li i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.ai-info-list li span {
    flex: 1;
    color: #475569;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.ai-info-list li strong {
    color: #2d3748;
    font-weight: 700;
}

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

    .ai-info-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .ai-assistant-page {
        padding: 1rem;
    }

    .ai-assistant-header {
        padding: 1.5rem;
    }

    .ai-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .ai-header-main {
        width: 100%;
    }

    .ai-header-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .ai-header-text h1 {
        font-size: 1.5rem;
    }

    .ai-header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ai-session-name,
    .ai-session-phone {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .ai-providers-badge {
        width: 100%;
        justify-content: center;
    }

    .ai-form-grid {
        grid-template-columns: 1fr;
    }

    .ai-config-card,
    .ai-test-card {
        padding: 1.5rem;
    }

    .ai-toggle-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .ai-toggle-content {
        flex-direction: column;
    }
}


/* AI Assistant Error Text */


/* ========================================
   TEMPLATE EDITOR - MEDIA PREVIEW
   ======================================== */

.media-preview {
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
}

/* Adjust message bubble when media is present */
.message-bubble:has(.media-preview) {
    max-width: 85%;
}

.message-bubble:has(.media-preview) .message-text {
    margin-top: 0.5rem;
}

.message-bubble:has(.media-preview) .message-text:empty {
    display: none;
}


/* ========================================
   OPENROUTER MODEL CONTROLS
   ======================================== */

.ai-model-search {
    position: relative;
    margin-bottom: 1rem;
}

.ai-model-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.ai-model-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ai-filter-btn {
    flex: 1;
    min-width: 120px;
    position: relative;
    cursor: pointer;
}

.ai-filter-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-filter-btn span {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.ai-filter-btn:hover span {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.ai-filter-btn input[type="radio"]:checked+span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

#loading-models {
    color: #667eea;
    font-weight: 600;
}

#loading-models i {
    margin-right: 0.5rem;
}

/* Model select with icons */
#model option {
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .ai-model-filters {
        flex-direction: column;
    }

    .ai-filter-btn {
        min-width: 100%;
    }
}



/* ========================================
   REUSABLE CONFIRMATION MODAL SYSTEM
   ======================================== */
/* ========================================
   iOS-Style Confirmation Modal
   ======================================== */

.ios-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ios-modal.show {
    display: flex;
}

.ios-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-modal.active .ios-modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.ios-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 14px;
    width: 90%;
    max-width: 380px;
    min-width: 280px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(1.15);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-modal.active .ios-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Modal Header */
.ios-modal-header {
    padding: 20px 16px 16px;
    text-align: center;
    max-height: 70vh;
    overflow-y: auto;
}

.ios-modal-header i.fas:first-child {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.ios-modal-header h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.ios-modal-header p {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #000000;
    opacity: 0.7;
    line-height: 1.5;
    padding: 0 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ios-modal-header div {
    margin-bottom: 10px;
}

.ios-modal-header strong {
    opacity: 1;
    font-weight: 600;
    color: #000000;
}

.ios-modal-header ul,
.ios-modal-header ol {
    text-align: left;
    margin: 10px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.ios-modal-header li {
    margin: 8px 0;
    padding-left: 0;
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ios-modal-header li i {
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Icon Colors */
.ios-danger {
    color: #FF3B30;
}

.ios-success {
    color: #34C759;
}

.ios-info {
    color: #007AFF;
}

.ios-warning {
    color: #FF9500;
}

/* Modal Buttons */
.ios-modal-buttons {
    display: flex;
    border-top: 0.5px solid rgba(60, 60, 67, 0.29);
}

.ios-modal-btn {
    flex: 1;
    padding: 11px 8px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
    color: #007AFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ios-modal-btn:active {
    background: rgba(0, 0, 0, 0.05);
}

.ios-modal-btn-cancel {
    border-right: 0.5px solid rgba(60, 60, 67, 0.29);
    color: #007AFF;
}

.ios-modal-btn-confirm {
    font-weight: 600;
}

/* Confirm Button Colors */
.ios-modal-btn-confirm.ios-danger {
    color: #FF3B30;
}

.ios-modal-btn-confirm.ios-success {
    color: #34C759;
}

.ios-modal-btn-confirm.ios-info {
    color: #007AFF;
}

.ios-modal-btn-confirm.ios-warning {
    color: #FF9500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ios-modal-content {
        max-width: 340px;
        min-width: 280px;
    }
    
    .ios-modal-header {
        padding: 18px 14px 14px;
    }
    
    .ios-modal-header i.fas:first-child {
        font-size: 44px;
        margin-bottom: 10px;
    }
    
    .ios-modal-header h3 {
        font-size: 14px;
    }
    
    .ios-modal-header p,
    .ios-modal-header li {
        font-size: 11px;
    }
    
    .ios-modal-header li i {
        font-size: 12px;
    }
    
    .ios-modal-btn {
        font-size: 14px;
        padding: 10px 6px;
    }
}

@media (max-width: 400px) {
    .ios-modal-content {
        max-width: 300px;
        min-width: 270px;
    }
}

@media (max-width: 320px) {
    .ios-modal-content {
        min-width: 260px;
    }
    
    .ios-modal-btn {
        font-size: 13px;
        padding: 10px 4px;
    }
}


/* ============================================
   Modern Import Button
   ============================================ */

.btn-import-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    overflow: hidden;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(72, 187, 120, 0.5), 0 0 30px rgba(72, 187, 120, 0.2);
    }
}

.btn-import-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(72, 187, 120, 0.4);
    animation: none;
}

.btn-import-modern:active {
    transform: translateY(0);
}

.btn-import-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-import-modern:active::after {
    width: 300px;
    height: 300px;
}

.btn-import-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
    animation: sparkle-rotate 3s linear infinite;
    z-index: 1;
}

@keyframes sparkle-rotate {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

.btn-import-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.btn-import-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-import-label {
    font-size: 15px;
    font-weight: 700;
    display: block;
}

.btn-import-sublabel {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    display: block;
}

.btn-import-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-import-modern:hover .btn-import-shine {
    left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-import-modern {
        padding: 10px 18px;
        gap: 10px;
    }

    .btn-import-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .btn-import-label {
        font-size: 14px;
    }

    .btn-import-sublabel {
        font-size: 10px;
    }
}

/* ============================================
   Modern Share & Import Modal Styles
   ============================================ */

/* Share Modal */

@keyframes pulse-share {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

.btn-share-copy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-share-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-share-copy:active {
    transform: translateY(0);
}

.info-pill {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
}

.info-pill i {
    color: #667eea;
    font-size: 14px;
}

/* Import Modal */

@keyframes bounce-import {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes sparkle {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

.btn-quick-paste {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    color: #4a5568;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quick-paste:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-color: #a0aec0;
    transform: translateY(-1px);
}

.btn-quick-paste i {
    color: #48bb78;
}

.btn-import-cancel {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-import-cancel:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.btn-import-submit {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-import-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-import-submit:hover::before {
    left: 100%;
}

.btn-import-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.btn-import-submit:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 576px) {

    .btn-import-cancel,
    .btn-import-submit,
    .btn-share-copy {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ===== CONTACTS PAGE ===== */

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

.sidebar-header h5 {
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
}

.group-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.group-item:hover {
    background: var(--main-bg);
}

.group-item.active {
    background: rgba(37, 211, 102, 0.1);
    border-left: 4px solid var(--whatsapp-green);
}

.group-info {
    flex: 1;
    min-width: 0;
}

.group-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.btn-edit-group,
.btn-delete-group {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.btn-edit-group:hover {
    background: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp-green);
}

.btn-delete-group:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 300px;
}

.header-left h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-left h2 i {
    font-size: 1.75rem;
    color: var(--whatsapp-green);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-outline {
    background: white;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--whatsapp-green);
    color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
}

.btn-outline i {
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-primary i {
    font-size: 0.9rem;
}

.contact-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--whatsapp-green);
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--main-bg);
    color: var(--text-primary);
}

.btn-icon.active {
    color: #ffc107;
}

.btn-icon.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.contact-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.contact-group {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-notes {
    padding: 0.75rem;
    background: var(--main-bg);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;
        min-width: auto;
    }

    .header-left h2 {
        font-size: 1.25rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .header-actions .btn-outline,
    .header-actions .btn-primary {
        flex: 1;
        justify-content: center;
        font-size: 0.813rem;
        padding: 0.6rem 0.75rem;
    }

    .header-actions .btn-outline span,
    .header-actions .btn-primary span {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-actions {
        gap: 0.4rem;
    }

    .header-actions .btn-outline,
    .header-actions .btn-primary {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ===== WHATSAPP NUMBER CHECKER ===== */

/* Action buttons styling */

.d-flex.gap-2>.btn {
    white-space: nowrap;
}

.btn-sm.btn-danger,
.btn-sm.btn-success,
.btn-sm.btn-warning,
.btn-sm.btn-info {
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure delete button is visible */
.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
}

.checker-header-content {
    flex: 1;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-success-subtle {
    background: #d1f4e0;
    border-color: #a3e9c5;
}

.bg-danger-subtle {
    background: #ffd6d6;
    border-color: #ffb3b3;
}

.bg-primary-subtle {
    background: #e0e7ff;
    border-color: #c7d2fe;
}

.invalid-contacts-container {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.invalid-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

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

.invalid-contact-item:hover {
    background: #f8f9fa;
}

.invalid-contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.invalid-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.invalid-contact-details strong {
    display: block;
    color: #212529;
    margin-bottom: 0.25rem;
}

.invalid-contact-details small {
    color: #6c757d;
}

/* Responsive adjustments for checker */


/* ===== MODERN MODAL STYLES ===== */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
}

.modal-header .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.25rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    outline: none;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.form-check {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    margin-left: 0.5rem;
}

.btn-secondary {
    background: white;
    border: 2px solid #e9ecef;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: var(--text-primary);
}

.modal-footer .btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Import Modal Specific Styles */

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.05);
    transform: translateY(-2px);
}

.file-upload-area.drag-over {
    border-color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.15);
    border-width: 3px;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.file-upload-area.drag-over i {
    color: var(--whatsapp-green);
    transform: scale(1.1);
}

.file-upload-area.drag-over p {
    color: var(--whatsapp-green);
    font-weight: 600;
}

.file-upload-area i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.file-upload-area p {
    color: var(--text-secondary);
    margin: 0;
    transition: all 0.3s ease;
}

.file-upload-area p strong {
    color: var(--text-primary);
}

.file-upload-area input[type="file"] {
    display: none;
}

.selected-file {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(37, 211, 102, 0.1);
    border: 2px solid var(--whatsapp-green);
    border-radius: 10px;
    margin-top: 1rem;
}

.selected-file.show {
    display: flex;
}

.selected-file i {
    color: var(--whatsapp-green);
    font-size: 1.5rem;
}

.selected-file .btn-remove {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.selected-file .btn-remove:hover {
    background: rgba(239, 68, 68, 0.1);
}


/* ===== CAMPAIGNS PAGE ===== */

.campaign-progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-info {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.campaign-progress-wrapper {
    min-width: 200px;
}

.campaign-progress-wrapper .progress {
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.campaign-progress-wrapper .progress-bar {
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

/* ===== CAMPAIGN WIZARD ===== */
.campaign-wizard {
    max-width: 1200px;
    margin: 0 auto;
}

.wizard-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Method Cards */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.method-card {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    background: white;
}

.method-card:hover {
    border-color: var(--whatsapp-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.15);
}

.method-card.active {
    border-color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.05);
}

.method-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.method-info h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.method-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.method-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--whatsapp-green);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.method-card.active .method-check {
    opacity: 1;
}

/* Contacts Selection */

.contact-select-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.contact-select-card:hover {
    border-color: var(--whatsapp-green);
    transform: translateX(4px);
}

.contact-checkbox {
    flex-shrink: 0;
}

.contact-checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.contact-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.contact-details-small {
    flex: 1;
    min-width: 0;
}

.contact-name-small {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-phone-small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.selected-contacts-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 12px;
    margin-top: 1rem;
}

.summary-content {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
}

/* Preview Section */
.preview-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-item {
    padding: 1rem;
    background: var(--main-bg);
    border-radius: 12px;
    border-left: 4px solid var(--whatsapp-green);
}

.preview-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.preview-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Empty State */

/* Responsive */
@media (max-width: 768px) {

    .method-cards {
        grid-template-columns: 1fr;
    }
}


/* Session Selection */

.groups-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.session-select-card,
.group-select-card {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.session-select-card:hover,
.group-select-card:hover {
    border-color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.05);
}

.session-select-card .form-check,
.group-select-card .form-check {
    margin: 0;
}

.session-select-card .form-check-input,
.group-select-card .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0;
    cursor: pointer;
}

.session-select-card .form-check-input:checked~.form-check-label,
.group-select-card .form-check-input:checked~.form-check-label {
    color: var(--whatsapp-green);
}

.session-select-card .form-check-label,
.group-select-card .form-check-label {
    cursor: pointer;
    width: 100%;
    margin-left: 0.5rem;
}

.session-info,
.group-info {
    display: flex;
    flex-direction: column;
}

.session-name,
.group-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.session-phone,
.group-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.selected-groups-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 12px;
    margin-top: 1rem;
}


/* ===== CAMPAIGN WIZARD ===== */
.campaign-wizard {
    max-width: 1200px;
    margin: 0 auto;
}

/* Wizard Steps */

/* Wizard Content */

/* Wizard Actions */
.wizard-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Sessions Selection */

.session-select-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.session-select-card:has(.form-check-input:checked) {
    border-color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.session-select-card .form-check {
    margin: 0;
}

.session-select-card .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.session-select-card .form-check-input:checked {
    background-color: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
}

.session-select-card .form-check-label {
    cursor: pointer;
    width: 100%;
    padding-left: 0.5rem;
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.session-phone {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Method Cards */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.method-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: white;
    position: relative;
}

.method-card:hover {
    border-color: var(--whatsapp-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
}

.method-card.selected {
    border-color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.05);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--whatsapp-green);
    margin-bottom: 1rem;
}

.method-card.selected .method-icon {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    color: white;
}

.method-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.method-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.method-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    color: var(--border-color);
    transition: all var(--transition-fast);
}

.method-card.selected .method-check {
    color: var(--whatsapp-green);
}

.method-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 1;
}

.method-badge.single-session {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.25));
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.method-badge.multi-session {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.25));
    color: var(--whatsapp-dark-green);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.method-badge i {
    font-size: 0.75rem;
}

.method-legend {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: var(--main-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.legend-badge.single-session {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.25));
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.legend-badge.multi-session {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.25));
    color: var(--whatsapp-dark-green);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.legend-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Groups Selection */
.groups-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.group-select-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.group-select-card:has(.form-check-input:checked) {
    border-color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.group-select-card .form-check {
    margin: 0;
}

.group-select-card .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.group-select-card .form-check-input:checked {
    background-color: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
}

.group-select-card .form-check-label {
    cursor: pointer;
    width: 100%;
    padding-left: 0.5rem;
}

.group-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

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

.group-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.selected-groups-summary {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(37, 211, 102, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(37, 211, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-content {
    font-weight: 600;
    color: var(--whatsapp-dark-green);
    font-size: 1rem;
}

/* Campaign Preview - Modern Design */
.preview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.preview-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-item {
    background: var(--main-bg);
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid var(--whatsapp-green);
    transition: all var(--transition-fast);
}

.preview-item:hover {
    background: rgba(37, 211, 102, 0.05);
    transform: translateX(4px);
}

.preview-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.preview-label i {
    color: var(--whatsapp-green);
}

.preview-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Phone Mockup Preview */
.phone-mockup {
    position: sticky;
    top: 2rem;
}

.phone-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: #000;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    background: #e5ddd5;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    height: 640px;
    display: flex;
    flex-direction: column;
}

.phone-header {
    background: linear-gradient(135deg, var(--whatsapp-dark-green), var(--whatsapp-green));
    padding: 3rem 1rem 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.phone-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--whatsapp-green);
    font-weight: 700;
    font-size: 1.125rem;
}

.phone-contact-info {
    flex: 1;
}

.phone-contact-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.phone-contact-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.phone-chat-area {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.02) 10px,
            rgba(0, 0, 0, 0.02) 20px);
}

.phone-message-bubble {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 85%;
    margin-left: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: messagePop 0.3s ease-out;
}

.phone-message-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.phone-message-bubble.sent {
    background: var(--whatsapp-light-green);
}

.phone-message-bubble.sent::after {
    border-left-color: var(--whatsapp-light-green);
}

.phone-message-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #303030;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.phone-message-time {
    font-size: 0.7rem;
    color: #667781;
    text-align: right;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.phone-message-time i {
    font-size: 0.85rem;
    color: #53bdeb;
}

.phone-media-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--whatsapp-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@keyframes messagePop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Template Selector Modal - Redesigned */
.template-selector-modal .modal-dialog {
    max-width: 800px;
}

.template-selector-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.template-selector-modal .modal-header {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(37, 211, 102, 0.1));
    border-bottom: 2px solid rgba(37, 211, 102, 0.2);
    padding: 1.75rem 2rem;
}

.template-selector-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.template-selector-modal .modal-title i {
    font-size: 1.75rem;
}

.template-selector-modal .modal-body {
    padding: 1.5rem 2rem;
}

.template-selector-modal .modal-footer {
    padding: 1.25rem 2rem 1.75rem;
    background: var(--main-bg);
}

.template-search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.template-search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.125rem;
    z-index: 1;
}

.template-search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.template-search-box input:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
    outline: none;
}

.template-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.template-list::-webkit-scrollbar {
    width: 8px;
}

.template-list::-webkit-scrollbar-track {
    background: var(--main-bg);
    border-radius: 10px;
}

.template-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
    transition: background var(--transition-fast);
}

.template-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.template-selector-item {
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.template-selector-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--whatsapp-green);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.template-selector-item:hover {
    border-color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.03);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.15);
}

.template-selector-item:hover::before {
    transform: scaleY(1);
}

.template-selector-item:active {
    transform: translateX(6px) scale(0.98);
}

.template-selector-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.template-selector-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.template-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.template-selector-preview {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-selector-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.template-selector-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.template-selector-meta i {
    color: var(--whatsapp-green);
}

.template-selector-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.template-selector-item:hover .template-selector-arrow {
    color: var(--whatsapp-green);
    transform: translateY(-50%) translateX(6px);
}

.template-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.03), rgba(37, 211, 102, 0.08));
    border-radius: 16px;
    border: 2px dashed rgba(37, 211, 102, 0.3);
}

.template-empty-state i {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 1.5rem;
    display: block;
}

.template-empty-state h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.template-empty-state p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.template-empty-state .btn {
    min-width: 200px;
    padding: 0.875rem 2rem;
}

/* Loading State */
.template-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.template-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.template-loading p {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .preview-section {
        grid-template-columns: 1fr;
    }

    .phone-mockup {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {

    
    .groups-selection {
        grid-template-columns: 1fr;
    }

    .method-cards {
        grid-template-columns: 1fr;
    }

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

    .wizard-actions .btn {
        flex: 1;
        min-width: 140px;
    }

    .phone-container {
        max-width: 320px;
    }

    .phone-screen {
        height: 560px;
    }

    .template-selector-modal .modal-dialog {
        margin: 0.5rem;
    }

    .template-selector-modal .modal-header,
    .template-selector-modal .modal-body,
    .template-selector-modal .modal-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .template-selector-item {
        padding: 1rem;
    }

    .template-selector-arrow {
        position: static;
        transform: none;
        margin-left: auto;
    }
}


/* Method Legend Responsive */
@media (max-width: 768px) {
    .method-legend {
        flex-direction: column;
        gap: 0.75rem;
    }

    .legend-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* Pricing Page Styles */

.btn-plan {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    transition: all 0.3s;
}

.btn-plan-free {
    background: #6c757d;
    color: white;
}

.btn-plan-free:hover {
    background: #5a6268;
}

.btn-plan-paid {
    background: var(--whatsapp-green);
    color: white;
}

.btn-plan-paid:hover {
    background: var(--whatsapp-dark-green);
}

.btn-plan-enterprise {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-plan-enterprise:hover {
    opacity: 0.9;
}

/* Admin Plans Page Styles */


/* ===== MODERN COLORFUL PRICING PAGE ===== */

/* Hero Section with Gradient */

/* Modern Pricing Grid */

.pricing-card-popular {
    border-color: var(--whatsapp-green);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.15);
}

.pricing-card-popular:hover {
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.25);
}

/* Comparison Table */

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.pricing-table thead tr {
    background: var(--main-bg);
}

.pricing-table th {
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.pricing-table tbody tr {
    transition: background 0.2s ease;
}

.pricing-table tbody tr:hover {
    background: rgba(37, 211, 102, 0.02);
}

.pricing-table tbody td {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.pricing-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.pricing-table tbody td i.fa-infinity {
    color: var(--whatsapp-green);
    font-size: 1.25rem;
}

.pricing-table tbody td i.fa-times {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* CTA Section */

/* Responsive Design */

@media (max-width: 768px) {

    .pricing-table {
        min-width: 800px;
    }
}


/* ===== MODERN COLORFUL PRICING CARDS ===== */

.card-header-colored {
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.card-cta {
    padding: 0 2rem 2.5rem;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
}

/* Comparison Section */

/* Help Section */

/* Responsive Design */


/* Plan-specific colors */


/* ===== USAGE PAGE ===== */

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

.feature-enabled {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--success);
}

.feature-disabled {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--border-color);
}

.feature-enabled h6 {
    color: var(--success);
}

.feature-disabled h6 {
    color: var(--text-secondary);
}


/* ===== PRICING PAGE ===== */

/* ===== USAGE PAGE ===== */

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    position: relative;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, currentColor, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.3;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.feature-enabled {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(37, 211, 102, 0.02));
    border-color: rgba(37, 211, 102, 0.3);
}

.feature-enabled:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
    border-color: var(--whatsapp-green);
}

.feature-enabled::before {
    opacity: 0.03;
}

.feature-enabled h6 {
    color: var(--text-primary);
}

.feature-enabled small {
    color: var(--success);
}

.feature-disabled {
    background: var(--main-bg);
    border-color: var(--border-color);
    opacity: 0.5;
}

.feature-disabled h6 {
    color: var(--text-secondary);
}

.feature-disabled small {
    color: var(--text-secondary);
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {

    /* Sidebar Mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        /* Fixed width for mobile sidebar */
        box-shadow: none;
        /* Shadow handled by overlay or when active */
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    /* Reduce sidebar menu size for mobile */
    .nav-item {
        padding: 0.5rem 0.75rem;
        /* Smaller padding */
        font-size: 0.9rem;
        /* Smaller font */
    }

    .nav-item i {
        font-size: 1rem;
        /* Smaller icon */
        width: 20px;
    }

    .sidebar-header {
        padding: 1rem;
        /* Smaller header padding */
    }

    .brand-text {
        font-size: 1.1rem;
    }

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

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

    /* Main Content Mobile */
    .main-content {
        margin-left: 0 !important;
        /* Override collapsed state too */
        width: 100%;
    }

    /* Topbar Mobile */
    .mobile-toggle {
        display: block;
    }

    .topbar {
        padding: 0 1rem;
    }

    .topbar-title {
        display: none;
    }

    .topbar-actions {
        margin-left: auto;
    }

    #refreshBtn {
        display: none;
    }

    .profile-name {
        display: none;
        /* Hide name on mobile to save space */
    }

    /* Adjust page content padding */
    .page-content {
        padding: 1rem;
    }

    /* Stats Cards Mobile */
    .stats-value {
        font-size: 2rem;
    }

    /* ===== MOBILE-OPTIMIZED MODALS ===== */

    /* Bottom Sheet Style Modal - Override Desktop */
    .modal-dialog-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 !important;
        max-width: 100% !important;
        transform: translateY(100%);
    }

    .modal.show .modal-dialog-bottom {
        transform: translateY(0);
    }

    .modal.fade .modal-dialog-bottom {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-header-content {
        flex: 1;
    }

    .modal-subtitle {
        font-size: 0.75rem !important;
        margin-top: 0 !important;
    }

    .modal-icon-small {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
    }

    .btn-close-sm {
        padding: 0.375rem !important;
        font-size: 0.875rem !important;
    }

    /* Compact Form Elements - Mobile Override */
    .form-group-compact {
        margin-bottom: 0.875rem !important;
    }

    .form-label-compact {
        font-size: 0.8rem !important;
        margin-bottom: 0.375rem !important;
    }

    .form-control-compact {
        padding: 0.625rem 0.75rem !important;
        font-size: 0.875rem !important;
        border-width: 1px !important;
        border-radius: 8px !important;
    }

    .form-text-compact {
        font-size: 0.7rem !important;
        margin-top: 0.25rem !important;
    }

    .info-box-compact {
        gap: 0.625rem !important;
        padding: 0.75rem !important;
        border-radius: 8px !important;
        margin-top: 0.875rem !important;
    }

    .info-box-compact i {
        font-size: 0.875rem !important;
    }

    .info-box-compact strong {
        font-size: 0.75rem !important;
        margin-bottom: 0.125rem !important;
    }

    .info-box-compact small {
        font-size: 0.7rem !important;
    }

    .modal-footer-compact {
        padding: 0.75rem 0.875rem !important;
        gap: 0.5rem !important;
        justify-content: stretch !important;
    }

    .btn-compact {
        padding: 0.5rem 0.875rem !important;
        font-size: 0.8rem !important;
        flex: 1;
        min-width: auto !important;
    }

    /* Other Modals on Mobile */
    .modal-dialog:not(.modal-dialog-bottom) {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.875rem 1rem;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* ===== CONTACTS PAGE - MODERN REDESIGN ===== */

/* Page Header */
.contacts-page-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contacts-page-header p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Modern Groups List */
.groups-list-modern {
    padding: 0;
}

.group-item-modern {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    gap: 0.875rem;
}

.group-item-modern:hover {
    background: rgba(0, 168, 132, 0.05);
}

.group-item-modern.active {
    background: rgba(0, 168, 132, 0.1);
    border-left-color: var(--whatsapp-green);
}

.group-icon-modern {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.group-info-modern {
    flex: 1;
    min-width: 0;
}

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

.group-count-modern {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.group-actions-modern {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.group-item-modern:hover .group-actions-modern {
    opacity: 1;
}

.btn-icon-modern {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.btn-icon-modern:hover {
    background: rgba(0, 168, 132, 0.1);
    color: var(--whatsapp-green);
}

.btn-icon-modern.text-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.group-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 1rem;
}

/* Search Box Modern */
.search-box-modern {
    position: relative;
}

.search-box-modern i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-control-modern {
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    width: 100%;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
}

/* Contact Cards Modern */
.contact-card-modern {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    transition: all var(--transition-normal);
    height: 100%;
}

.contact-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 168, 132, 0.12);
    border-color: var(--whatsapp-green);
}

.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-avatar-modern {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-actions-modern {
    display: flex;
    gap: 0.375rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.contact-card-modern:hover .contact-actions-modern {
    opacity: 1;
}

.btn-toggle-favorite {
    color: var(--text-secondary);
}

.btn-toggle-favorite.active,
.btn-toggle-favorite:hover {
    color: #f59e0b;
}

.contact-card-body {
    margin-top: 0.75rem;
}

.contact-name-modern {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.contact-phone-modern {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Empty State Modern */
.empty-state-modern {
    padding: 3rem 2rem;
}

.empty-icon-modern {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.empty-state-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-state-modern p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== CONTACT MODALS - MODERN DESIGN ===== */

.modal-contact,
.modal-import,
.modal-group {
    max-width: 520px;
}

.modal-import {
    max-width: 640px;
}

.modal-contact-content,
.modal-import-content,
.modal-group-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Contact Modal Header */
.modal-contact-header,
.modal-import-header,
.modal-group-header {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    overflow: hidden;
}

.contact-header-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerPulse 8s ease-in-out infinite;
}

.contact-header-content {
    position: relative;
    z-index: 2;
}

.contact-icon-modern {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-title-modern {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: white;
}

.contact-desc-modern {
    font-size: 0.9375rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Modal Body */
.modal-contact-body,
.modal-import-body,
.modal-group-body {
    padding: 2rem;
}

/* Form Check Modern */
.form-check-modern {
    padding: 0.875rem;
    background: var(--main-bg);
    border-radius: 10px;
    margin-top: 1rem;
}

.form-check-modern .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0;
    cursor: pointer;
}

.form-check-modern .form-check-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Modal Footer */
.modal-contact-footer,
.modal-import-footer,
.modal-group-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.875rem;
    background: var(--main-bg);
}

/* File Upload Modern */

.selected-file-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--main-bg);
    border-radius: 10px;
    margin: 1rem 0;
}

.selected-file-modern i {
    font-size: 1.5rem;
    color: var(--whatsapp-green);
}

.btn-remove-modern {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-remove-modern:hover {
    background: rgba(220, 38, 38, 0.2);
}

/* Import Info Modern */

.info-header-modern {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

/* ===== MOBILE RESPONSIVE - CONTACTS PAGE ===== */
@media (max-width: 768px) {
    .contacts-page-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem !important;
    }

    .contacts-page-header p {
        font-size: 0.75rem;
    }

    /* Compact Stats Cards */
    .contact-card-modern {
        padding: 1rem;
    }

    .contact-avatar-modern {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        border-radius: 10px;
    }

    .contact-name-modern {
        font-size: 1rem;
    }

    .contact-phone-modern {
        font-size: 0.8125rem;
    }

    .contact-badge-modern {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.5rem;
    }

    /* Groups Sidebar - Stack on Mobile */
    .groups-list-modern {
        max-height: 300px;
        overflow-y: auto;
    }

    .group-item-modern {
        padding: 0.75rem;
    }

    .group-icon-modern {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .group-name-modern {
        font-size: 0.875rem;
    }

    .group-count-modern {
        font-size: 0.6875rem;
    }

    /* Search Box */
    .search-box-modern {
        margin-bottom: 0.5rem;
    }

    .form-control-modern {
        padding: 0.5rem 0.75rem 0.5rem 2.5rem;
        font-size: 0.875rem;
        border-radius: 8px;
    }

    .search-box-modern i {
        left: 0.75rem;
        font-size: 0.75rem;
    }

    /* Empty State */
    .empty-state-modern {
        padding: 2rem 1rem;
    }

    .empty-icon-modern {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        border-radius: 16px;
    }

    .empty-state-modern h3 {
        font-size: 1.25rem;
    }

    .empty-state-modern p {
        font-size: 0.875rem;
    }

    /* Modals - Compact */
    .modal-contact,
    .modal-import,
    .modal-group {
        margin: 0.5rem;
    }

    .modal-contact-header,
    .modal-import-header,
    .modal-group-header {
        padding: 1.75rem 1rem 1.5rem !important;
    }

    .contact-icon-modern {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.75rem !important;
        margin: 0 auto 1rem !important;
        border-radius: 14px !important;
    }

    .contact-title-modern {
        font-size: 1.25rem !important;
        margin: 0 0 0.375rem !important;
    }

    .contact-desc-modern {
        font-size: 0.8125rem !important;
    }

    .modal-contact-body,
    .modal-import-body,
    .modal-group-body {
        padding: 1.25rem !important;
    }

    .modal-contact-footer,
    .modal-import-footer,
    .modal-group-footer {
        padding: 1rem 1.25rem !important;
        gap: 0.625rem !important;
        flex-direction: column;
    }

    .btn-modern {
        width: 100%;
    }

    /* File Upload */
}

/* =
==== IMPORT MODAL - COMPACT MOBILE-FRIENDLY ===== */
.modal-import-compact {
    max-width: 420px;
}

.modal-import-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.modal-import-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.import-icon-compact {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.modal-import-body-compact {
    padding: 1.25rem;
}

.file-upload-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--main-bg);
    margin-bottom: 0.75rem;
}

.file-upload-compact:hover {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.05);
}

.file-upload-compact.drag-over {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.1);
    border-style: solid;
    transform: scale(1.02);
}

.file-upload-compact i {
    font-size: 1.5rem;
    color: var(--whatsapp-green);
}

.file-upload-compact span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.selected-file-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--whatsapp-light-green);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.file-name-compact {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.btn-remove-compact {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn-remove-compact:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--danger);
}

.format-info-compact {
    background: var(--main-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.format-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.format-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
}

.format-toggle code {
    background: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.format-details {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

.format-details code {
    display: block;
    background: var(--main-bg);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.import-progress-compact {
    padding: 0.75rem;
    background: var(--main-bg);
    border-radius: 8px;
}

.modal-import-footer-compact {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--main-bg);
}

.modal-import-footer-compact .btn {
    flex: 1;
    padding: 0.625rem 1rem;
}

/* Mobile Responsive for Import Modal */
@media (max-width: 576px) {
    .modal-import-compact {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-import-header-compact {
        padding: 0.875rem 1rem;
    }

    .import-icon-compact {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .modal-import-header-compact h5 {
        font-size: 1rem;
    }

    .modal-import-body-compact {
        padding: 1rem;
    }

    .file-upload-compact {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .file-upload-compact i {
        font-size: 1.25rem;
    }

    .file-upload-compact span {
        font-size: 0.8125rem;
        text-align: center;
    }

    .format-toggle {
        font-size: 0.75rem;
        padding: 0.625rem;
    }

    .format-details {
        padding: 0.625rem;
    }

    .format-details code {
        font-size: 0.6875rem;
    }

    .modal-import-footer-compact {
        padding: 0.875rem 1rem;
    }

    .modal-import-footer-compact .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Contacts Page Header Mobile Fix */
@media (max-width: 768px) {
    .contacts-page-header .btn-lg {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }
    
    .contacts-page-header .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
}


/* ===== CONTACT MODAL - COMPACT MOBILE-FRIENDLY ===== */
.modal-contact-compact {
    max-width: 380px;
}

.modal-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.modal-icon-compact {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.modal-icon-compact.bg-success {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
}

.modal-icon-compact.bg-primary {
    background: linear-gradient(135deg, var(--info), #0369a1);
}

.modal-body-compact {
    padding: 1.25rem;
}

.modal-footer-compact {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--main-bg);
}

.modal-footer-compact .btn {
    flex: 1;
    padding: 0.625rem 1rem;
}

.form-check-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--main-bg);
    border-radius: 8px;
}

.form-check-compact .form-check-input {
    margin: 0;
}

.form-check-compact .form-check-label {
    font-size: 0.875rem;
    cursor: pointer;
}

/* Mobile Responsive for Contact Modal */
@media (max-width: 576px) {
    .modal-contact-compact {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-header-compact {
        padding: 0.875rem 1rem;
    }

    .modal-icon-compact {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .modal-header-compact h5 {
        font-size: 1rem;
    }

    .modal-body-compact {
        padding: 1rem;
    }

    .modal-body-compact .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .form-check-compact {
        padding: 0.625rem;
    }

    .modal-footer-compact {
        padding: 0.875rem 1rem;
    }

    .modal-footer-compact .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}


/* ===== PAGINATION - MOBILE FRIENDLY ===== */
.pagination-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--main-bg);
    color: var(--whatsapp-green);
}

.pagination .page-item.active .page-link {
    background: var(--whatsapp-green);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background: transparent;
    color: var(--text-secondary);
    opacity: 0.5;
}

.pagination-info {
    font-size: 0.8125rem;
}

/* Mobile Pagination */
@media (max-width: 576px) {
    .pagination-wrapper {
        padding: 0.75rem;
    }

    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .pagination-info {
        font-size: 0.75rem;
        text-align: center;
    }

    /* Hide some page numbers on mobile */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }

    .pagination .page-item.active,
    .pagination .page-item:first-child,
    .pagination .page-item:last-child {
        display: block;
    }

    /* Show prev/next and active */
    .pagination .page-item:has(.fa-chevron-left),
    .pagination .page-item:has(.fa-chevron-right) {
        display: block !important;
    }
}


/* ===== COLOR INPUT - COMPACT ===== */
.color-input-compact {
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: white;
}

.color-input-compact::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-input-compact::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
}

.color-input-compact:hover {
    border-color: var(--whatsapp-green);
}

@media (max-width: 576px) {
    .color-input-compact {
        width: 36px;
        height: 36px;
    }
}


/* ===== TEMPLATES PAGE - MODERN DESIGN ===== */
.templates-page-header {
    margin-bottom: 1.5rem;
}

/* Template Card - Modern Design */
.template-card-modern {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.template-card-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.template-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.template-icon-modern {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.template-actions-modern {
    display: flex;
    gap: 0.25rem;
}

.template-card-body {
    padding: 1rem;
    flex: 1;
}

.template-name-modern {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.template-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.template-preview-modern {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--main-bg);
    border-radius: 8px;
    min-height: 60px;
}

.template-meta-modern {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.template-meta-modern span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.template-meta-modern i {
    font-size: 0.6875rem;
}

.template-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--main-bg);
}

/* Empty State */
.empty-state-modern {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--main-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .template-card-header {
        padding: 0.75rem;
    }

    .template-icon-modern {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .template-card-body {
        padding: 0.75rem;
    }

    .template-name-modern {
        font-size: 0.9375rem;
    }

    .template-preview-modern {
        font-size: 0.75rem;
        padding: 0.625rem;
        min-height: 50px;
    }

    .template-card-footer {
        padding: 0.625rem 0.75rem;
    }

    .template-card-footer .btn {
        font-size: 0.8125rem;
    }
}


/* ===== COMPACT FILTER CONTROLS ===== */
.search-box-compact {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box-compact i {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.search-box-compact input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.search-box-compact input:focus {
    outline: none;
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
}

.filter-select-compact {
    padding: 0.5rem 1.75rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.8125rem;
    background: white url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.5rem center/10px 10px;
    cursor: pointer;
    min-width: 70px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-select-compact:focus {
    outline: none;
    border-color: var(--whatsapp-green);
}

.btn-filter-compact {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-filter-compact:hover {
    background: var(--main-bg);
}

.btn-filter-compact.active {
    background: #fef3c7;
    border-color: #f59e0b;
}

@media (max-width: 576px) {
    .search-box-compact input {
        padding: 0.375rem 0.625rem 0.375rem 2rem;
        font-size: 0.8125rem;
    }

    .filter-select-compact {
        padding: 0.375rem 1.5rem 0.375rem 0.5rem;
        font-size: 0.75rem;
        min-width: 60px;
    }

    .btn-filter-compact {
        padding: 0.375rem 0.625rem;
    }
}


/* ===== TEMPLATE EDITOR - COMPACT ===== */
.editor-toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--main-bg);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.toolbar-btn-compact {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.toolbar-btn-compact:hover {
    background: var(--whatsapp-green);
    color: white;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    margin: 0 4px;
}

.editor-toolbar + .form-control-compact {
    border-radius: 0 0 8px 8px;
}

.current-media-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    background: var(--main-bg);
    border-radius: 6px;
}

/* WhatsApp Preview - Compact */
.whatsapp-preview-compact {
    background: #e5ddd5 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABDSURBVGiB7c4xDQAwDMCw5l/0bDJIXPQKkHbnnPMBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAID/egGFFQABqwPl5AAAAABJRU5ErkJggg==");
    padding: 1rem;
    min-height: 120px;
}

.wa-message-bubble {
    background: white;
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.wa-message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.wa-message-text {
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.wa-message-time {
    font-size: 0.6875rem;
    color: #667781;
    text-align: right;
    margin-top: 0.25rem;
}

.wa-message-time i {
    color: #53bdeb;
    font-size: 0.625rem;
}

.preview-sticky {
    position: sticky;
    top: 80px;
}

@media (max-width: 992px) {
    .preview-sticky {
        position: static;
    }
}

@media (max-width: 576px) {
    .editor-toolbar {
        padding: 0.375rem;
    }

    .toolbar-btn-compact {
        width: 28px;
        height: 28px;
    }

    .whatsapp-preview-compact {
        padding: 0.75rem;
        min-height: 100px;
    }

    .wa-message-text {
        font-size: 0.8125rem;
    }
}


/* ===== API MANAGEMENT - COMPACT ===== */
.page-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.page-icon-modern.bg-primary {
    background: linear-gradient(135deg, var(--info), #0369a1);
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.btn-icon-sm:hover {
    background: var(--whatsapp-green);
    color: white;
}

/* Password Hints */
.password-hints {
    padding: 0.75rem;
    background: var(--main-bg);
    border-radius: 8px;
}

@media (max-width: 576px) {
    .page-icon-modern {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}


/* ===== API KEY DISPLAY BOX ===== */

.api-key-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.api-key-btn:hover {
    background: var(--whatsapp-green);
    color: white;
}

/* Code Snippets */

@media (max-width: 576px) {

    .api-key-btn {
        width: 32px;
        height: 32px;
    }
}


/* ===== API MANAGEMENT - MOBILE FIX ===== */
@media (max-width: 768px) {

    /* Table mobile */
    .table-responsive table {
        font-size: 0.8125rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem 0.625rem;
    }

    .table-responsive code {
        font-size: 0.6875rem;
    }

    .table-responsive .badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.375rem;
    }
}

@media (max-width: 576px) {
    /* Stack cards vertically */
    .row.g-4 > .col-lg-6 {
        margin-bottom: 0.5rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-header h5 {
        font-size: 0.9375rem;
    }

    .card-body {
        padding: 0.875rem;
    }

    /* Hide description column on very small screens */
    .table-responsive th:last-child,
    .table-responsive td:last-child {
        display: none;
    }
}


/* Endpoint Mobile Items */


/* ===== COMPACT STAT CARDS ===== */


/* ===== API MANAGEMENT PAGE ===== */

.badge-sm {
    font-size: 0.65rem;
}

.btn-docs {
    font-size: 0.7rem;
}


/* ===== ENHANCED MOBILE-FRIENDLY IMPROVEMENTS ===== */

/* ===== FLOATING ACTION BUTTON (FAB) ===== */
.fab-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: none;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 168, 132, 0.5);
}

.fab-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .fab-container {
        display: block;
    }
    
    /* Hide desktop add buttons on mobile when FAB is present */
    .hide-on-mobile-fab {
        display: none !important;
    }
}

/* ===== MOBILE COLLAPSIBLE GROUPS SIDEBAR ===== */
.mobile-groups-toggle {
    display: none;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-groups-toggle:hover {
    background: var(--main-bg);
}

.mobile-groups-toggle .toggle-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-groups-toggle .toggle-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-groups-toggle .toggle-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mobile-groups-toggle .toggle-text {
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-groups-toggle .toggle-badge {
    background: var(--whatsapp-light-green);
    color: var(--whatsapp-dark-green);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-groups-toggle .toggle-arrow {
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
}

.mobile-groups-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

@media (max-width: 991px) {
    .mobile-groups-toggle {
        display: block;
    }
    
    .contacts-sidebar-desktop {
        display: none;
    }
    
    .contacts-sidebar-desktop.show {
        display: block;
        margin-bottom: 1rem;
    }
    
    /* Full width contacts on tablet/mobile */
    .contacts-main-content {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ===== STICKY SEARCH BAR ===== */
@media (max-width: 768px) {
    .sticky-search-mobile {
        position: sticky;
        top: 56px;
        z-index: 50;
        background: var(--main-bg);
        margin: -0.875rem -0.875rem 0.875rem -0.875rem;
        padding: 0.75rem 0.875rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sticky-search-mobile .card {
        margin-bottom: 0;
        box-shadow: none;
        border: none;
    }
    
    .sticky-search-mobile .card-body {
        padding: 0 !important;
    }
}

/* ===== IMPROVED TOUCH TARGETS ===== */
@media (max-width: 768px) {
    /* Minimum 44px touch targets */
    .btn-icon-modern,
    .btn-toggle-favorite,
    .btn-edit-contact,
    .btn-delete-contact,
    .btn-edit-group,
    .btn-delete-group {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Larger contact card action buttons */
    .contact-actions-modern {
        gap: 0.25rem;
    }
    
    .contact-actions-modern button {
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    /* Better group item touch targets */
    .group-item-modern {
        min-height: 56px;
        padding: 0.75rem 1rem;
    }
}

/* ===== CONTACT CARDS - MOBILE OPTIMIZED ===== */
@media (max-width: 576px) {
    .contact-card-modern {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .contact-card-header {
        padding: 0.75rem;
    }
    
    .contact-avatar-modern {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-card-body {
        padding: 0 0.75rem 0.75rem;
    }
    
    .contact-name-modern {
        font-size: 0.9rem;
    }
    
    .contact-phone-modern {
        font-size: 0.8rem;
    }
    
    .contact-badge-modern {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ===== TEMPLATE CARDS - MOBILE OPTIMIZED ===== */
.template-card-modern {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.template-card-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.template-card-modern:active {
    transform: scale(0.98);
}

.template-card-header-modern {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.template-icon-modern {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.template-icon-modern.text-type {
    background: #eff6ff;
    color: #3b82f6;
}

.template-icon-modern.image-type {
    background: #d1fae5;
    color: #059669;
}

.template-icon-modern.video-type {
    background: #fef3c7;
    color: #d97706;
}

.template-icon-modern.document-type {
    background: #fee2e2;
    color: #dc2626;
}

.template-icon-modern.audio-type {
    background: #f3e8ff;
    color: #7c3aed;
}

.template-info-modern {
    flex: 1;
    min-width: 0;
}

.template-name-modern {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-meta-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.template-actions-modern {
    display: flex;
    gap: 0.25rem;
}

.template-actions-modern .btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.template-actions-modern .btn-icon-sm:hover {
    background: var(--main-bg);
    color: var(--text-primary);
}

.template-actions-modern .btn-icon-sm.favorite.active {
    color: #f59e0b;
}

.template-actions-modern .btn-icon-sm.delete:hover {
    background: #fee2e2;
    color: var(--danger);
}

.template-card-body-modern {
    padding: 1rem;
    flex: 1;
}

.template-preview-modern {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.template-card-footer-modern {
    padding: 0.75rem 1rem;
    background: var(--main-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-usage-modern {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.template-usage-modern i {
    margin-right: 0.25rem;
}

.btn-use-template {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
    background: var(--whatsapp-green);
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-use-template:hover {
    background: var(--whatsapp-dark-green);
}

/* Template Cards Mobile */
@media (max-width: 576px) {
    .template-card-header-modern {
        padding: 0.75rem;
    }
    
    .template-icon-modern {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .template-name-modern {
        font-size: 0.875rem;
    }
    
    .template-card-body-modern {
        padding: 0.75rem;
    }
    
    .template-preview-modern {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .template-card-footer-modern {
        padding: 0.625rem 0.75rem;
    }
}

/* ===== MOBILE FILTER COLLAPSE ===== */
.filter-collapse-toggle {
    display: none;
    width: 100%;
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

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

.filter-collapse-toggle .toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.filter-collapse-toggle .filter-count {
    background: var(--whatsapp-light-green);
    color: var(--whatsapp-dark-green);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

@media (max-width: 576px) {
    .filter-collapse-toggle {
        display: block;
    }
    
    .filter-content-collapsible {
        display: none;
    }
    
    .filter-content-collapsible.show {
        display: block;
    }
}

/* ===== DASHBOARD SESSION CARDS - ENHANCED MOBILE ===== */
.session-card-mobile {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.session-card-mobile:active {
    transform: scale(0.98);
}

.session-card-header-mobile {
    padding: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.session-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.session-status-indicator.connected {
    background: var(--success);
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
}

.session-status-indicator.connecting {
    background: var(--warning);
    animation: pulse 1.5s infinite;
}

.session-status-indicator.disconnected {
    background: var(--danger);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.session-info-mobile {
    flex: 1;
    min-width: 0;
}

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

.session-phone-mobile {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.session-status-badge-mobile {
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.session-card-actions-mobile {
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.session-card-actions-mobile .btn {
    flex: 1;
    min-width: calc(50% - 0.25rem);
    padding: 0.5rem;
    font-size: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

/* ===== EMPTY STATE - MOBILE OPTIMIZED ===== */
.empty-state-modern {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--whatsapp-light-green), #d1fae5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--whatsapp-green);
}

@media (max-width: 576px) {
    .empty-state-modern {
        padding: 1.5rem 0.75rem;
    }
    
    .empty-icon-modern {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
    
    .empty-state-modern h3 {
        font-size: 1.125rem;
    }
    
    .empty-state-modern p {
        font-size: 0.85rem;
    }
}

/* ===== PULL TO REFRESH INDICATOR ===== */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== SWIPE HINT ===== */

/* ===== BOTTOM SHEET MODAL FOR MOBILE ===== */
@media (max-width: 576px) {
    .modal-bottom-sheet .modal-dialog {
        margin: 0;
        max-width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .modal-bottom-sheet .modal-content {
        border-radius: 20px 20px 0 0;
        border: none;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-bottom-sheet .modal-header {
        border-bottom: none;
        padding: 1rem 1rem 0.5rem;
    }
    
    .modal-bottom-sheet .modal-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--border-color);
        border-radius: 2px;
    }
}

/* ===== IMPROVED PAGINATION MOBILE ===== */
@media (max-width: 576px) {
    .pagination-wrapper {
        background: white;
        border-radius: 10px;
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.25rem;
        padding-bottom: 0.25rem;
    }
    
    .pagination::-webkit-scrollbar {
        display: none;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 8px !important;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* ===== QUICK ACTIONS BAR MOBILE ===== */

@media (max-width: 576px) {
    
    /* Add padding to page content to account for bottom bar */
    .page-content {
        padding-bottom: 5rem !important;
    }
}

/* ===== TEMPLATE EDITOR MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .preview-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: white;
        border-top: 1px solid var(--border-color);
        padding: 0.75rem;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .preview-sticky .card {
        margin-bottom: 0.5rem;
    }
    
    .preview-sticky .whatsapp-preview-compact {
        max-height: 120px;
        overflow-y: auto;
    }
    
    /* Toggle preview button */
}

/* ===== SEARCH BOX IMPROVEMENTS ===== */
.search-box-modern {
    position: relative;
}

.search-box-modern i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box-modern .form-control-modern {
    padding-left: 2.75rem;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    width: 100%;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.search-box-modern .form-control-modern:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
    outline: none;
}

/* ===== LOADING SKELETON ===== */

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

/* ===== TOAST NOTIFICATIONS MOBILE ===== */
@media (max-width: 576px) {
    #toastContainer {
        bottom: 2rem !important;
        right: 0.75rem !important;
        left: 0.75rem !important;
        max-width: calc(100% - 1.5rem);
    }
    
    .toast {
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }
    
    .toast-body {
        font-size: 0.875rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}


/* ===== ADDITIONAL TEMPLATE CARD FIXES ===== */
.template-card-modern .template-card-header-modern {
    background: white;
}

.template-card-modern .template-card-body-modern {
    background: white;
}

/* Template type badge in cards */
.template-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

/* Fix btn-icon-modern for templates */
.template-actions-modern .btn-icon-sm.favorite.active i {
    color: #f59e0b;
}

/* ===== CONTACTS PAGE HEADER MOBILE FIX ===== */
@media (max-width: 576px) {
    .contacts-page-header .col-md-6:last-child {
        margin-top: 0.75rem;
    }
    
    .contacts-page-header .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .contacts-page-header .btn-lg {
        width: 100%;
    }
}

/* ===== DASHBOARD HEADER MOBILE FIX ===== */
@media (max-width: 576px) {
    .dashboard-header .col-md-4 {
        display: block !important;
        margin-top: 1rem;
    }
}

/* ===== TEMPLATES HEADER MOBILE FIX ===== */
/* Removed - button now shows on mobile */

/* ===== IMPROVED MOBILE CARD GRID ===== */
@media (max-width: 576px) {
    .row.g-3 > .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== MOBILE GROUPS LIST IMPROVEMENTS ===== */
@media (max-width: 991px) {
    .groups-list-modern {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .group-item-modern {
        padding: 0.625rem 0.875rem;
    }
    
    .group-icon-modern {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .group-name-modern {
        font-size: 0.875rem;
    }
    
    .group-count-modern {
        font-size: 0.7rem;
    }
}

/* ===== SMOOTH TRANSITIONS FOR COLLAPSIBLES ===== */
.contacts-sidebar-desktop {
    transition: all 0.3s ease;
}

.filter-content-collapsible {
    transition: all 0.3s ease;
}

/* ===== BETTER TOUCH FEEDBACK ===== */
.contact-card-modern,
.template-card-modern,
.session-card-mobile,
.group-item-modern {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.contact-card-modern:active,
.template-card-modern:active,
.group-item-modern:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* ===== SAFE AREA INSETS FOR NOTCHED PHONES ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .fab-container {
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

/* ===== IMPROVED MODAL ANIMATIONS ===== */
@media (max-width: 576px) {
    .modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }
    
    .modal.show .modal-dialog {
        transform: translateY(0);
    }
}

/* ===== LOADING STATES ===== */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== BETTER SCROLLBAR FOR MOBILE ===== */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
    
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
}

/* ===== CONTACT CARD IMPROVEMENTS ===== */
.contact-card-modern {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-fast);
    height: 100%;
}

.contact-card-modern:hover {
    box-shadow: var(--shadow-md);
}

.contact-card-header {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-avatar-modern {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.contact-actions-modern {
    display: flex;
    gap: 0.25rem;
}

.contact-card-body {
    padding: 0 1rem 1rem;
}

.contact-name-modern {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-phone-modern {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 576px) {
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    h5 {
        font-size: 0.9rem;
    }
    
    .text-muted {
        font-size: 0.8rem;
    }
}


/* ===== MODERN API DOCS DESIGN ===== */

/* API Hero Section */

/* API Key Card */



/* Section Styling */

/* Info Cards */

/* Code Blocks */

.btn-copy-code {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Endpoint Cards */

.btn-copy-endpoint {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-copy-endpoint:hover {
    background: var(--main-bg);
    color: var(--text-primary);
}

/* Method Badges */

.method-get {
    background: #dbeafe;
    color: #1e40af;
}

.method-post {
    background: #d1fae5;
    color: #065f46;
}

.method-delete {
    background: #fee2e2;
    color: #991b1b;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-200, .status-201 {
    background: #d1fae5;
    color: #065f46;
}

.status-400, .status-401, .status-403, .status-404 {
    background: #fef3c7;
    color: #92400e;
}

.status-500 {
    background: #fee2e2;
    color: #991b1b;
}

/* Parameters Table */

/* Media Type Cards */

/* Error Table */



/* ===== API DOCUMENTATION STYLES ===== */
.api-docs-container {
    display: flex;
    min-height: calc(100vh - 70px);
    position: relative;
}

/* Mobile Navigation Toggle */
.api-mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
    align-items: center;
    gap: 0.5rem;
}

.api-mobile-nav-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 168, 132, 0.4);
}

.api-mobile-nav-toggle i {
    font-size: 1rem;
}

/* API Sidebar */
.api-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.api-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.05), rgba(0, 128, 105, 0.05));
}

.api-sidebar-header h6 {
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.api-sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.api-sidebar-close:hover {
    background: var(--main-bg);
    color: var(--text-primary);
}

.api-sidebar-nav {
    list-style: none;
    padding: 0.5rem;
    margin: 0;
}

.api-sidebar-nav li {
    margin: 0.25rem 0;
}

.api-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.api-sidebar-nav a i {
    width: 18px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.api-sidebar-nav a:hover {
    background: var(--main-bg);
    color: var(--text-primary);
}

.api-sidebar-nav a:hover i {
    color: var(--whatsapp-green);
}

.api-sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(0, 168, 132, 0.1), transparent);
    color: var(--whatsapp-green);
    font-weight: 600;
}

.api-sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--whatsapp-green);
    border-radius: 0 4px 4px 0;
}

.api-sidebar-nav a.active i {
    color: var(--whatsapp-green);
}

.api-sidebar-section {
    padding: 1rem 1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* API Content */
.api-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.api-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.05), rgba(0, 128, 105, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(0, 168, 132, 0.1);
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.api-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.2);
}

.api-docs-main-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.api-docs-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.api-section {
    margin-bottom: 2rem;
    scroll-margin-top: 90px;
}

.api-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.api-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.25rem 0 0.75rem 0;
}

.api-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
}

/* Code Blocks */
.code-block {
    background: #1e293b !important;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.875rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.code-block-header {
    background: #0f172a;
    padding: 0.625rem 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-block-title {
    color: #94a3b8;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.copy-code-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e1;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.code-block code {
    display: block !important;
    padding: 1rem !important;
    color: #e2e8f0 !important;
    background: #1e293b !important;
    font-family: 'Courier New', Consolas, monospace !important;
    font-size: 0.8125rem !important;
    line-height: 1.6 !important;
    overflow-x: auto !important;
    white-space: pre !important;
    word-wrap: normal !important;
    border: none !important;
    max-width: 100% !important;
}

.code-block code .api-base {
    color: #22d3ee !important;
}

/* Info Boxes */
.info-box {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin: 1rem 0;
    border-left: 4px solid;
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word;
}

.info-box code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.info-box-info {
    background: rgba(2, 132, 199, 0.1);
    border-color: var(--info);
    color: #0c4a6e;
}

.info-box-warning {
    background: rgba(217, 119, 6, 0.1);
    border-color: var(--warning);
    color: #78350f;
}

.info-box-success {
    background: rgba(5, 150, 105, 0.1);
    border-color: var(--success);
    color: #064e3b;
}

.info-box-danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--danger);
    color: #7f1d1d;
}

/* Endpoint Cards - Complete Redesign */
.endpoint-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.endpoint-card:hover {
    box-shadow: 0 4px 20px rgba(0, 168, 132, 0.12);
    border-color: var(--whatsapp-green);
}

/* Endpoint Header - Compact Design */
.endpoint-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.endpoint-method-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.endpoint-method-wrapper .method-badge {
    position: static;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.method-get {
    background: #10b981;
    color: white;
    border-color: #059669;
}

.method-post {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
}

.method-delete {
    background: #ef4444;
    color: white;
    border-color: #dc2626;
}

.endpoint-path {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.6;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.copy-endpoint-btn {
    background: var(--whatsapp-green);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.125rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.25);
}

.copy-endpoint-btn:hover {
    background: var(--whatsapp-dark-green);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.35);
}

.copy-endpoint-btn:active {
    transform: scale(0.95);
}

/* Endpoint Content */
.endpoint-card > p.endpoint-description {
    padding: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(0, 168, 132, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.endpoint-card h4 {
    padding: 1.25rem 1.25rem 0.75rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.endpoint-card .code-block {
    margin: 0 1.25rem 1.25rem;
}

.endpoint-card .param-table {
    margin: 0 1.25rem 1.25rem;
    padding: 0;
}

.endpoint-card .info-box {
    margin: 0 1.25rem 1.25rem;
}

/* Parameter Table - Clean List Design */
.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
    border: none;
}

.param-table thead {
    display: none;
}

.param-table tbody {
    display: block;
}

.param-table tr {
    display: block;
    background: #f8fafc;
    border: none;
    border-left: 3px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.875rem;
    transition: all var(--transition-fast);
}

.param-table tr:last-child {
    margin-bottom: 0;
}

.param-table tr:hover {
    background: rgba(0, 168, 132, 0.05);
    border-left-color: var(--whatsapp-green);
}

.param-table td {
    display: block;
    padding: 0.5rem 0;
    border: none;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.param-table td:first-child {
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.param-table td::before {
    content: attr(data-label);
    display: inline-block;
    font-weight: 700;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.75rem;
    min-width: 90px;
}

.param-table td:first-child::before {
    display: none;
}

.param-name {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: white;
    background: var(--whatsapp-green);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
    font-size: 1rem;
}

.param-required {
    background: #ef4444;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-block;
}

.param-optional {
    background: #64748b;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-block;
}

/* Media Types Grid */
.media-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

/* Language Tabs */
.language-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0 0 0;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.language-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.language-tab:hover {
    color: var(--text-primary);
}

.language-tab.active {
    color: var(--whatsapp-green);
    border-bottom-color: var(--whatsapp-green);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .api-docs-container {
        flex-direction: column;
    }

    .api-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        z-index: 1001;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        transition: all var(--transition-normal);
    }

    .api-sidebar.active {
        left: 0;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    }

    .api-sidebar-close {
        display: block;
    }

    .api-mobile-nav-toggle {
        display: flex;
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }

    .api-content {
        padding: 0.875rem;
        padding-bottom: 4.5rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .api-docs-container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .api-page-header {
        flex-direction: row;
        padding: 0.875rem;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .api-header-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
        border-radius: 10px;
    }

    .api-docs-main-heading {
        font-size: 1.125rem;
    }

    .api-docs-subtitle {
        font-size: 0.75rem;
    }

    .api-section {
        margin-bottom: 1.5rem;
    }

    .api-section h2 {
        font-size: 1.125rem;
        margin: 1.25rem 0 0.875rem 0;
        padding: 0.625rem 0;
        gap: 0.5rem;
    }

    .api-section h4 {
        font-size: 0.9375rem;
        margin: 1rem 0 0.625rem 0;
    }

    .api-section p {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .btn-toggle-api-key,
    .btn-copy-api-key {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .btn-regenerate-key {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .endpoint-card {
        margin: 1rem 0;
        border-radius: 12px;
        border-width: 1px;
    }

    .endpoint-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .endpoint-method-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }

    .method-badge {
        font-size: 0.75rem;
        padding: 0.4375rem 0.875rem;
    }

    .endpoint-path {
        font-size: 0.8125rem;
        width: 100%;
    }

    .copy-endpoint-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .endpoint-card > p.endpoint-description {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .endpoint-card h4 {
        padding: 1rem 1rem 0.625rem;
        font-size: 0.8125rem;
    }

    .endpoint-card .code-block {
        margin: 0 1rem 1rem;
    }

    .endpoint-card .param-table {
        margin: 0 1rem 1rem;
    }

    .endpoint-card .info-box {
        margin: 0 1rem 1rem;
    }

    .param-table tr {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
        border-radius: 6px;
        border: none;
        border-left: 3px solid #e2e8f0;
    }

    .param-table tr:last-child {
        margin-bottom: 0;
    }

    .param-table td {
        padding: 0.375rem 0;
        font-size: 0.875rem;
    }

    .param-table td:first-child {
        font-size: 1rem;
        margin-bottom: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .param-table td::before {
        font-size: 0.6875rem;
        min-width: 80px;
        margin-right: 0.5rem;
    }

    .param-name {
        font-size: 0.9375rem;
        padding: 0.3125rem 0.625rem;
    }

    .param-required,
    .param-optional {
        font-size: 0.75rem;
        padding: 0.3125rem 0.625rem;
    }

    .info-box {
        padding: 0.75rem 0.875rem;
        margin: 0.75rem 0;
        font-size: 0.8125rem;
        border-radius: 8px;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .info-box code {
        overflow-wrap: break-word;
        word-wrap: break-word;
        font-size: 0.75rem;
    }



    .code-block {
        margin: 0.75rem 0;
        border-radius: 8px;
    }

    .code-block-header {
        padding: 0.5rem 0.75rem;
    }

    .code-block-title {
        font-size: 0.625rem;
    }

    .copy-code-btn {
        padding: 0.3125rem 0.5rem;
        font-size: 0.625rem;
    }

    .code-block code {
        font-size: 0.6875rem !important;
        padding: 0.75rem !important;
        line-height: 1.5 !important;
        white-space: pre !important;
        overflow-x: auto !important;
        max-width: 100% !important;
    }

    .code-block {
        max-width: 100%;
        overflow: hidden;
    }

    .language-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.375rem;
        margin: 1rem 0 0 0;
    }

    .language-tab {
        white-space: nowrap;
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .media-types-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 0.75rem 0;
    }
}

@media (max-width: 576px) {
    .api-mobile-nav-toggle {
        bottom: 0.875rem;
        right: 0.875rem;
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }

    .api-content {
        padding: 0.75rem;
        padding-bottom: 4rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .api-page-header {
        padding: 0.75rem;
        gap: 0.625rem;
        border-radius: 10px;
    }

    .api-header-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .api-docs-main-heading {
        font-size: 1rem;
    }

    .api-docs-subtitle {
        font-size: 0.6875rem;
    }

    .api-section {
        margin-bottom: 1.25rem;
    }

    .api-section h2 {
        font-size: 1rem;
        margin: 1rem 0 0.75rem 0;
        padding: 0.5rem 0;
        gap: 0.375rem;
    }

    .api-section h4 {
        font-size: 0.875rem;
        margin: 0.875rem 0 0.5rem 0;
    }

    .endpoint-card {
        margin: 0.875rem 0;
        border-radius: 10px;
    }

    .endpoint-header {
        padding: 0.875rem;
    }

    .method-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }

    .endpoint-path {
        font-size: 0.75rem;
    }

    .copy-endpoint-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }

    .endpoint-card > p.endpoint-description {
        padding: 0.875rem;
        font-size: 0.8125rem;
    }

    .endpoint-card h4 {
        padding: 0.875rem 0.875rem 0.5rem;
        font-size: 0.75rem;
    }

    .endpoint-card .code-block {
        margin: 0 0.875rem 0.875rem;
    }

    .endpoint-card .param-table {
        margin: 0 0.875rem 0.875rem;
    }

    .endpoint-card .info-box {
        margin: 0 0.875rem 0.875rem;
    }

    .param-table tr {
        padding: 0.75rem;
        margin-bottom: 0.625rem;
        border-radius: 6px;
        border: none;
        border-left: 3px solid #e2e8f0;
    }

    .param-table tr:last-child {
        margin-bottom: 0;
    }

    .param-table td {
        padding: 0.3125rem 0;
        font-size: 0.8125rem;
    }

    .param-table td:first-child {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .param-table td::before {
        font-size: 0.625rem;
        min-width: 70px;
    }

    .param-name {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }

    .param-required,
    .param-optional {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    .btn-toggle-api-key,
    .btn-copy-api-key {
        width: 40px;
        height: 40px;
        font-size: 0.9375rem;
    }

    .btn-regenerate-key {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .code-block code {
        font-size: 0.625rem !important;
        padding: 0.625rem !important;
        white-space: pre !important;
        overflow-x: auto !important;
    }

    .endpoint-path {
        font-size: 0.6875rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .api-section {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Sidebar Overlay for Mobile */
.api-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.api-sidebar-overlay.active {
    display: block;
    opacity: 1;
}


/* ===== API KEY SECTION - CLEAN REDESIGN ===== */
.api-key-section {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.api-key-header-clean {
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.05), rgba(0, 128, 105, 0.05));
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.api-key-icon-clean {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.25);
}

.api-key-header-text {
    flex: 1;
    min-width: 0;
}

.api-key-header-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.api-key-header-text p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.api-key-badge-secure {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50px;
    color: var(--success);
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
}

.api-key-body-clean {
    padding: 1.25rem;
}

.api-key-input-container {
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.api-key-input-container code {
    flex: 1;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    overflow-wrap: break-word;
    word-wrap: break-word;
    background: transparent;
    padding: 0;
    border: none;
    min-width: 0;
    max-width: 100%;
}

.api-key-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.api-key-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-key-btn-toggle {
    background: #64748b;
}

.api-key-btn-toggle:hover {
    background: #475569;
    transform: scale(1.05);
}

.api-key-btn-copy {
    background: var(--whatsapp-green);
}

.api-key-btn-copy:hover {
    background: var(--whatsapp-dark-green);
    transform: scale(1.05);
}

.api-key-btn:active {
    transform: scale(0.95);
}

.api-key-footer-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.api-key-regenerate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.api-key-regenerate-btn:hover {
    border-color: var(--whatsapp-green);
    color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.05);
}

.api-key-warning-clean {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Mobile Styles for Clean API Key */
@media (max-width: 992px) {
    .api-key-section {
        margin: 1rem 0;
    }

    .api-key-header-clean {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .api-key-icon-clean {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .api-key-header-text h3 {
        font-size: 1rem;
    }

    .api-key-header-text p {
        font-size: 0.75rem;
    }

    .api-key-badge-secure {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .api-key-body-clean {
        padding: 1rem;
    }

    .api-key-input-container {
        padding: 0.75rem;
    }

    .api-key-input-container code {
        font-size: 0.75rem;
    }

    .api-key-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }

    .api-key-footer-clean {
        flex-direction: column;
        align-items: stretch;
    }

    .api-key-regenerate-btn {
        width: 100%;
        justify-content: center;
    }

    .api-key-warning-clean {
        justify-content: center;
        padding: 0.5rem;
        background: rgba(217, 119, 6, 0.05);
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .api-key-header-clean {
        padding: 0.875rem;
    }

    .api-key-icon-clean {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }

    .api-key-header-text h3 {
        font-size: 0.9375rem;
    }

    .api-key-header-text p {
        font-size: 0.6875rem;
    }

    .api-key-badge-secure {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.625rem;
    }

    .api-key-body-clean {
        padding: 0.875rem;
    }

    .api-key-input-container {
        padding: 0.625rem;
    }

    .api-key-input-container code {
        font-size: 0.6875rem;
    }

    .api-key-btn {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .api-key-regenerate-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
    }

    .api-key-warning-clean {
        font-size: 0.75rem;
    }
}


/* Method Badge in Section Titles */
.method-badge-inline {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.method-badge-inline.method-get {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.method-badge-inline.method-post {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.method-badge-inline.method-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

@media (max-width: 992px) {
    .method-badge-inline {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.625rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .method-badge-inline {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
        margin-right: 0.375rem;
    }
}

/* ===== API MANAGEMENT PAGE ===== */
.api-management-container {
    max-width: 1000px;
    margin: 0 auto;
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.endpoint-item-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--main-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.endpoint-item-simple:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.method-badge-simple {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 70px;
    text-align: center;
}

.method-badge-simple.method-get {
    background: #10b981;
    color: white;
}

.method-badge-simple.method-post {
    background: #3b82f6;
    color: white;
}

.method-badge-simple.method-delete {
    background: #ef4444;
    color: white;
}

.endpoint-path-simple {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.endpoint-desc-simple {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 150px;
}

@media (max-width: 768px) {
    .endpoint-item-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .endpoint-path-simple {
        width: 100%;
        font-size: 0.8125rem;
    }

    .endpoint-desc-simple {
        font-size: 0.8125rem;
        min-width: auto;
    }
}


/* ===== CAMPAIGNS PAGE - MODERN DESIGN ===== */

/* Page Header */
.campaigns-page-header {
    margin-bottom: 1.5rem;
}

/* Mobile Campaign Cards */
.campaign-card-mobile {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.campaign-card-mobile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.campaign-card-header-mobile {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.campaign-info-mobile {
    flex: 1;
    min-width: 0;
}

.campaign-name-mobile {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign-meta-mobile {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.campaign-meta-mobile span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.campaign-progress-mobile {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.campaign-footer-mobile {
    padding: 0.875rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.campaign-actions-mobile {
    display: flex;
    gap: 0.375rem;
}

.campaign-actions-mobile .btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

/* Progress Bars */
.progress {
    border-radius: 8px;
    overflow: hidden;
    background: var(--border-color);
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.empty-state-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-modern p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Pagination Wrapper */
.pagination-wrapper {
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.pagination-info {
    font-size: 0.875rem;
}

.pagination-sm .page-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    margin: 0 0.125rem;
}

.pagination-sm .page-item.active .page-link {
    background: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
}

/* Mobile Responsive - Campaigns */
@media (max-width: 768px) {
    .campaigns-page-header {
        margin-bottom: 1rem;
    }

    .campaigns-page-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .campaigns-page-header p {
        font-size: 0.75rem;
    }

    .campaign-card-mobile {
        margin-bottom: 0.75rem;
    }

    .campaign-card-header-mobile {
        padding: 0.75rem;
    }

    .campaign-name-mobile {
        font-size: 0.9375rem;
    }

    .campaign-meta-mobile {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .campaign-progress-mobile {
        padding: 0.75rem;
    }

    .campaign-footer-mobile {
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .campaign-actions-mobile .btn-sm {
        padding: 0.3125rem 0.5rem;
        font-size: 0.75rem;
    }

    .empty-icon-modern {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .empty-state-modern h3 {
        font-size: 1.125rem;
    }

    .empty-state-modern p {
        font-size: 0.875rem;
    }

    .pagination-wrapper {
        padding: 0.75rem;
    }

    .pagination-info {
        font-size: 0.75rem;
    }

    .pagination-sm .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Desktop Table Improvements */
@media (min-width: 992px) {
    .table tbody tr {
        transition: all var(--transition-fast);
    }

    .table tbody tr:hover {
        background: rgba(0, 168, 132, 0.05);
    }

    .btn-group .btn {
        transition: all var(--transition-fast);
    }

    .btn-group .btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }
}

/* Status Badge Improvements */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-warning {
    background: var(--warning) !important;
    color: white !important;
}

.badge.bg-info {
    background: var(--info) !important;
}

.badge.bg-danger {
    background: var(--danger) !important;
}

.badge.bg-secondary {
    background: #6b7280 !important;
}


/* ===== NUMBER CHECKER PAGE - MOBILE CARDS ===== */

/* Mobile Checker Cards */
.checker-card-mobile {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.checker-card-mobile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.checker-card-header-mobile {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.checker-info-mobile {
    flex: 1;
    min-width: 0;
}

.checker-name-mobile {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.checker-name-mobile:hover {
    color: var(--whatsapp-green);
}

.checker-meta-mobile {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.checker-meta-mobile span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.checker-progress-mobile {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.checker-footer-mobile {
    padding: 0.875rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.checker-actions-mobile {
    display: flex;
    gap: 0.375rem;
}

.checker-actions-mobile .btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

/* Number Checker Page Header */
.number-checker-page-header {
    margin-bottom: 1.5rem;
}

/* Mobile Responsive - Number Checker */
@media (max-width: 768px) {
    .number-checker-page-header {
        margin-bottom: 1rem;
    }

    .number-checker-page-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .number-checker-page-header p {
        font-size: 0.75rem;
    }

    .checker-card-mobile {
        margin-bottom: 0.75rem;
    }

    .checker-card-header-mobile {
        padding: 0.75rem;
    }

    .checker-name-mobile {
        font-size: 0.9375rem;
    }

    .checker-meta-mobile {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .checker-progress-mobile {
        padding: 0.75rem;
    }

    .checker-footer-mobile {
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .checker-actions-mobile .btn-sm {
        padding: 0.3125rem 0.5rem;
        font-size: 0.75rem;
    }
}


/* ===== CAMPAIGN CREATE PAGE - MODERN WIZARD DESIGN ===== */


/* Page Header */
.campaign-create-header {
    margin-bottom: 1.5rem;
}

.campaign-create-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-icon-back {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0;
}

/* Modern Wizard Steps */
.wizard-steps-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow-x: auto;
}

.wizard-step-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    min-width: 120px;
}

.step-circle-modern {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
    margin-bottom: 0.75rem;
}

.step-number-modern {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.step-check-modern {
    display: none;
    font-size: 1.25rem;
    color: white;
}

.wizard-step-modern.active .step-circle-modern {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.3);
}

.wizard-step-modern.active .step-number-modern {
    color: white;
}

.wizard-step-modern.completed .step-circle-modern {
    background: var(--success);
}

.wizard-step-modern.completed .step-number-modern {
    display: none;
}

.wizard-step-modern.completed .step-check-modern {
    display: block;
}

.step-info-modern {
    text-align: center;
}

.step-title-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-desc-modern {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.step-line-modern {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.wizard-step-modern:last-child .step-line-modern {
    display: none;
}

/* Wizard Content */
.wizard-content-modern {
    margin-bottom: 1.5rem;
}

.wizard-panel-modern {
    display: none;
}

.wizard-panel-modern.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

/* Session Selection Modern */
.sessions-selection-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.session-select-card-modern {
    position: relative;
}

.form-check-input-modern {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.session-label-modern {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.session-label-modern:hover {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.05);
}

.form-check-input-modern:checked + .session-label-modern {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.1);
}

.session-icon-modern {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.session-info-modern {
    flex: 1;
    min-width: 0;
}

.session-name-modern {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-phone-modern {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.session-check-modern {
    font-size: 1.25rem;
    color: var(--border-color);
    transition: all var(--transition-fast);
}

.form-check-input-modern:checked + .session-label-modern .session-check-modern {
    color: var(--whatsapp-green);
}

/* Method Cards - Keep existing styles but ensure they work */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.method-card {
    position: relative;
    padding: 1.25rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.method-card:hover {
    border-color: var(--whatsapp-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.method-card.selected {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.05);
}

.method-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.method-badge.single-session {
    background: #eff6ff;
    color: var(--info);
}

.method-badge.multi-session {
    background: #d1fae5;
    color: var(--success);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--main-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--whatsapp-green);
    margin-bottom: 0.875rem;
}

.method-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.method-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.method-check {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 1.25rem;
    color: var(--border-color);
    transition: all var(--transition-fast);
}

.method-card.selected .method-check {
    color: var(--whatsapp-green);
}

.method-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--main-bg);
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.legend-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

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

/* Groups Selection */
.groups-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.group-select-card {
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.group-select-card:has(.group-checkbox:checked) {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.05);
}

.selected-groups-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 168, 132, 0.1);
    border: 1px solid var(--whatsapp-green);
    border-radius: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.summary-content {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.summary-content i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

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

.summary-text .text-muted {
    font-size: 0.8125rem;
    font-weight: 400;
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: sticky;
    bottom: 1rem;
    z-index: 10;
}

.flex-grow-1 {
    flex-grow: 1;
}

/* Phone Mockup */
.phone-mockup {
    max-width: 320px;
    margin: 0 auto;
}

.phone-container {
    background: #1f2937;
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    background: #e5ddd5;
    border-radius: 20px;
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.phone-header {
    background: var(--whatsapp-green);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.phone-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-contact-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.phone-contact-status {
    font-size: 0.75rem;
    opacity: 0.9;
}

.phone-chat-area {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.phone-message-bubble {
    max-width: 80%;
    margin-left: auto;
    background: #dcf8c6;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.phone-media-icon {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.phone-message-text {
    font-size: 0.875rem;
    color: #303030;
    line-height: 1.4;
    word-wrap: break-word;
}

.phone-message-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: #667781;
    margin-top: 0.25rem;
}

/* Preview Section */
.preview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.preview-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-item {
    padding: 1rem;
    background: var(--main-bg);
    border-radius: 10px;
}

.preview-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

/* Mobile Responsive - Campaign Create */
@media (max-width: 768px) {
    .campaign-create-header h2 {
        font-size: 1.125rem;
    }

    .campaign-create-header p {
        font-size: 0.75rem;
    }

    .wizard-steps-modern {
        padding: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wizard-step-modern {
        min-width: 80px;
    }

    .step-circle-modern {
        width: 36px;
        height: 36px;
        margin-bottom: 0.5rem;
    }

    .step-number-modern {
        font-size: 0.875rem;
    }

    .step-title-modern {
        font-size: 0.75rem;
    }

    .step-desc-modern {
        display: none;
    }

    .step-line-modern {
        top: 18px;
    }

    .sessions-selection-modern {
        grid-template-columns: 1fr;
    }

    .session-label-modern {
        padding: 0.875rem;
    }

    .session-icon-modern {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .method-cards {
        grid-template-columns: 1fr;
    }

    .method-card {
        padding: 1rem;
    }

    .groups-selection {
        grid-template-columns: 1fr;
    }

    .selected-groups-summary {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .summary-content {
        font-size: 0.875rem;
        gap: 0.5rem;
        min-width: 0;
    }

    .summary-content i {
        font-size: 1rem;
    }

    .summary-text strong {
        font-size: 0.875rem;
    }

    .summary-text .text-muted {
        font-size: 0.75rem;
    }

    #btnClearGroups {
        width: 100%;
    }

    .wizard-actions {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .wizard-actions .btn {
        flex: 1;
        min-width: 120px;
    }

    .preview-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .preview-details {
        display: flex;
        order: 2;
    }

    .phone-mockup {
        order: 1;
        max-width: 280px;
        margin: 0 auto;
    }

    .phone-screen {
        height: 500px;
    }

    .preview-item {
        padding: 0.875rem;
    }

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

    .preview-value {
        font-size: 0.9375rem;
    }
}

/* Template Selector Modal */
.template-selector-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.template-search-box {
    position: relative;
    margin-bottom: 1rem;
}

.template-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.template-search-box input {
    padding-left: 2.75rem;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.template-selector-item {
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.template-selector-item:hover {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.05);
}

.template-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.template-selector-title {
    font-weight: 600;
    color: var(--text-primary);
}

.template-type-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.template-selector-preview {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.template-selector-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.template-selector-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.template-selector-item:hover .template-selector-arrow {
    color: var(--whatsapp-green);
    transform: translateY(-50%) translateX(4px);
}

.template-loading,
.template-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.template-empty-state i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}


/* ===== NUMBER CHECKER MODAL - MODERN DESIGN ===== */
.modal-checker {
    max-width: 480px;
}

.modal-checker-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Header */
.modal-checker-header {
    position: relative;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    overflow: hidden;
}

.checker-header-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerPulse 8s ease-in-out infinite;
}

.checker-header-content {
    position: relative;
    z-index: 2;
}

.checker-icon-modern {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.checker-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.375rem;
    color: white;
}

.checker-desc-modern {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Body */
.modal-checker-body {
    padding: 1.5rem;
}

.checker-input-group {
    margin-bottom: 1rem;
}

.checker-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.checker-label i {
    color: var(--whatsapp-green);
    margin-right: 0.375rem;
    width: 16px;
}

.checker-input,
.checker-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: white;
}

.checker-input:focus,
.checker-select:focus {
    outline: none;
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
}

.checker-input::placeholder {
    color: #9ca3af;
}

.checker-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Groups Section */
.checker-groups-section {
    margin-bottom: 1rem;
}

.checker-groups-container {
    max-height: 180px;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem;
    background: #f9fafb;
}

.checker-groups-container::-webkit-scrollbar {
    width: 6px;
}

.checker-groups-container::-webkit-scrollbar-track {
    background: transparent;
}

.checker-groups-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.checker-groups-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.checker-groups-container .form-check {
    padding: 0.625rem 0.75rem;
    margin: 0;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.checker-groups-container .form-check:hover {
    background: white;
}

.checker-groups-container .form-check-input {
    margin-top: 0.25rem;
}

.checker-groups-container .form-check-input:checked {
    background-color: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
}

.checker-groups-container .form-check-label {
    font-size: 0.875rem;
    cursor: pointer;
}

.checker-groups-container .badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
}

/* Preview Section */
.checker-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 12px;
    margin-top: 0.5rem;
}

.preview-icon {
    width: 44px;
    height: 44px;
    background: var(--whatsapp-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.preview-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.preview-stat {
    display: flex;
    flex-direction: column;
}

.preview-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--whatsapp-dark-green);
    line-height: 1;
}

.preview-label {
    font-size: 0.75rem;
    color: #047857;
    font-weight: 500;
}

.preview-divider {
    width: 1px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
}

/* Footer */
.modal-checker-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    background: #f9fafb;
}

.btn-checker {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checker-cancel {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-checker-cancel:hover {
    background: var(--main-bg);
    border-color: var(--text-secondary);
}

.btn-checker-create {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.25);
}

.btn-checker-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 168, 132, 0.35);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .modal-checker {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-checker-header {
        padding: 1.25rem 1rem 1rem;
    }

    .checker-icon-modern {
        width: 48px;
        height: 48px;
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
        border-radius: 12px;
    }

    .checker-title-modern {
        font-size: 1.25rem;
    }

    .checker-desc-modern {
        font-size: 0.75rem;
    }

    .modal-checker-body {
        padding: 1rem;
    }

    .checker-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .checker-input,
    .checker-select {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

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

    .checker-groups-container {
        max-height: 150px;
    }

    .checker-preview {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .preview-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .preview-value {
        font-size: 1.25rem;
    }

    .preview-label {
        font-size: 0.6875rem;
    }

    .preview-divider {
        height: 24px;
    }

    .modal-checker-footer {
        padding: 0.875rem 1rem;
        flex-direction: column;
    }

    .btn-checker {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}


/* Number Checker Groups Empty State */
.checker-groups-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
}

.checker-groups-empty i {
    font-size: 1.5rem;
    opacity: 0.5;
}

.checker-groups-empty span {
    font-size: 0.8125rem;
}


/* Number Checker Preview Warning State */
.checker-preview-warning {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
}

.checker-preview-warning .preview-icon {
    background: #dc2626 !important;
}

.checker-preview-warning .preview-value {
    color: #991b1b !important;
}

.checker-preview-warning .preview-label {
    color: #991b1b !important;
}

.preview-warning-text {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

.preview-warning-text i {
    margin-right: 0.375rem;
}


/* ===== USAGE PAGE - MODERN DESIGN ===== */

/* Page Header */
.usage-page-header {
    margin-bottom: 1.5rem;
}

/* Plan Card */
.usage-plan-card {
    border: none;
    overflow: hidden;
    position: relative;
}

.usage-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--whatsapp-green), var(--whatsapp-dark-green));
}

.usage-plan-icon-modern {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.usage-plan-label-modern {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.usage-plan-name-modern {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.usage-plan-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.usage-plan-price-modern,
.usage-plan-expiry-modern {
    display: flex;
    align-items: center;
}

.usage-plan-divider {
    color: var(--border-color);
}

/* Usage Cards */

/* Feature Cards */
.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.feature-card.feature-enabled {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid var(--success);
}

.feature-card.feature-disabled {
    background: #f9fafb;
    border: 2px solid var(--border-color);
    opacity: 0.7;
}

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

.feature-enabled .feature-icon {
    background: var(--success);
    color: white;
}

.feature-disabled .feature-icon {
    background: #e5e7eb;
    color: var(--text-secondary);
}

.feature-info {
    flex: 1;
}

.feature-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.feature-status {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .usage-plan-icon-modern {
        width: 48px;
        height: 48px;
        font-size: 1.375rem;
        border-radius: 12px;
    }

    .usage-plan-name-modern {
        font-size: 1.375rem;
    }

    .usage-plan-meta {
        font-size: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .usage-plan-divider {
        display: none;
    }

    .feature-card {
        padding: 0.75rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .feature-name {
        font-size: 0.875rem;
    }

    .feature-status {
        font-size: 0.75rem;
    }
}


/* ===== PRICING PAGE - COMPACT DESIGN ===== */

/* Page Header */
.pricing-page-header {
    margin-bottom: 1.5rem;
}

/* Pricing Cards - Compact */
.pricing-card-compact {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
}

.pricing-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--whatsapp-green);
}

.pricing-card-popular {
    border-color: var(--whatsapp-green);
}

.pricing-card-active {
    border-color: var(--info);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

/* Pricing Badge - Compact */
.pricing-badge-compact {
    position: absolute;
    top: -10px;
    right: 12px;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pricing-badge-popular {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
}

.pricing-badge-active {
    background: linear-gradient(135deg, var(--info), #0369a1);
}

/* Pricing Header - Compact */
.pricing-header-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pricing-icon-compact {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.pricing-name-compact {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Pricing Price - Compact */
.pricing-price-compact {
    text-align: center;
    padding: 0.875rem 0;
    margin-bottom: 0.875rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-value-compact {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

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

/* Pricing Features - Compact */
.pricing-features-compact {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.pricing-features-compact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
}

.pricing-features-compact li i {
    color: var(--whatsapp-green);
    font-size: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Pricing Buttons - Compact */
.btn-pricing-compact {
    padding: 0.625rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-pricing-primary {
    background: linear-gradient(135deg, var(--info), #0369a1);
    color: white;
}

.btn-pricing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    color: white;
}

.btn-pricing-success {
    background: linear-gradient(135deg, var(--success), #047857);
    color: white;
}

.btn-pricing-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    color: white;
}

.btn-pricing-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
}

.btn-pricing-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    color: white;
}

.btn-pricing-danger {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
    color: white;
}

.btn-pricing-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    color: white;
}

.btn-pricing-current {
    background: #e5e7eb;
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Pricing Table */
.pricing-table {
    margin: 0;
}

.pricing-table thead th {
    background: var(--main-bg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.pricing-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table tbody tr:hover {
    background: rgba(0, 168, 132, 0.05);
}

/* Mobile Comparison */
.comparison-card-mobile {
    background: var(--main-bg);
    border-radius: 12px;
    padding: 1rem;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

.comparison-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Help Section */
.pricing-help-card {
    border: none;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.pricing-help-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pricing-card-compact .card-body {
        padding: 0.75rem !important;
    }

    .pricing-header-compact {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .pricing-icon-compact {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .pricing-name-compact {
        font-size: 0.9375rem;
    }

    .pricing-price-compact {
        padding: 0.625rem 0;
        margin-bottom: 0.625rem;
    }

    .price-value-compact {
        font-size: 1.375rem;
    }

    .price-period-compact {
        font-size: 0.6875rem;
    }

    .pricing-features-compact {
        margin-bottom: 0.75rem;
    }

    .pricing-features-compact li {
        padding: 0.25rem 0;
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .pricing-features-compact li i {
        font-size: 0.6875rem;
    }

    .btn-pricing-compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .pricing-badge-compact {
        font-size: 0.625rem;
        padding: 0.1875rem 0.5rem;
        top: -8px;
        right: 8px;
    }

    .pricing-help-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    .pricing-help-card .card-body {
        padding: 2rem 1rem !important;
    }
}

/* ===================================
   AUTO-REPLY PAGE STYLES
   =================================== */

/* Page Header */
.auto-reply-page-header {
    padding: 1rem 0;
}

/* Modern Stat Cards - Extra Compact */
.auto-reply-stat-card {
    background: white;
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.auto-reply-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.auto-reply-stat-card .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.auto-reply-stat-card .stat-content {
    width: 100%;
}

.auto-reply-stat-card .stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.7;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auto-reply-stat-card .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    word-break: break-word;
}

/* Stat Card Variants */
.auto-reply-stat-card.stat-success {
    border-color: rgba(16, 185, 129, 0.2);
}

.auto-reply-stat-card.stat-success .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.auto-reply-stat-card.stat-success .stat-label {
    color: #059669;
}

.auto-reply-stat-card.stat-success .stat-value {
    color: #10b981;
}

.auto-reply-stat-card.stat-danger {
    border-color: rgba(239, 68, 68, 0.2);
}

.auto-reply-stat-card.stat-danger .stat-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.auto-reply-stat-card.stat-danger .stat-label {
    color: #dc2626;
}

.auto-reply-stat-card.stat-danger .stat-value {
    color: #ef4444;
}

.auto-reply-stat-card.stat-primary {
    border-color: rgba(0, 168, 132, 0.2);
}

.auto-reply-stat-card.stat-primary .stat-icon {
    background: linear-gradient(135deg, #00a884, #00d9a5);
    color: white;
}

.auto-reply-stat-card.stat-primary .stat-label {
    color: #00a884;
}

.auto-reply-stat-card.stat-primary .stat-value {
    color: #00a884;
}

.auto-reply-stat-card.stat-info {
    border-color: rgba(59, 130, 246, 0.2);
}

.auto-reply-stat-card.stat-info .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.auto-reply-stat-card.stat-info .stat-label {
    color: #2563eb;
}

.auto-reply-stat-card.stat-info .stat-value {
    color: #3b82f6;
}

/* Responsive adjustments for stat cards */
@media (max-width: 991px) {
    .auto-reply-stat-card {
        padding: 0.65rem;
        gap: 0.35rem;
    }
    
    .auto-reply-stat-card .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .auto-reply-stat-card .stat-label {
        font-size: 0.55rem;
    }
    
    .auto-reply-stat-card .stat-value {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .auto-reply-stat-card {
        padding: 0.6rem;
        gap: 0.3rem;
        border-radius: 8px;
    }
    
    .auto-reply-stat-card .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 7px;
    }
    
    .auto-reply-stat-card .stat-label {
        font-size: 0.5rem;
        margin-bottom: 0.05rem;
        letter-spacing: 0.2px;
    }
    
    .auto-reply-stat-card .stat-value {
        font-size: 0.95rem;
    }
}

/* Mobile Auto-Reply Cards */
.auto-reply-card-mobile {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.auto-reply-card-mobile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.auto-reply-card-header-mobile {
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auto-reply-trigger-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.trigger-icon-mobile {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trigger-info-mobile {
    flex: 1;
    min-width: 0;
}

.trigger-type-mobile {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trigger-value-mobile {
    display: block;
    font-size: 0.9rem;
    color: #0d6efd;
    background: #e7f1ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auto-reply-card-body-mobile {
    padding: 1rem;
}

.reply-preview-mobile {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reply-option-mobile {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #0dcaf0;
    display: flex;
    align-items: center;
}

.auto-reply-card-footer-mobile {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.auto-reply-card-footer-mobile .btn {
    flex-shrink: 0;
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-icon-modern {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #00a884 0%, #00d9a5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 168, 132, 0.3);
}

.empty-state-modern h3 {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.empty-state-modern p {
    color: #718096;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .empty-state-modern {
        padding: 1.5rem 0.75rem;
    }

    .empty-icon-modern {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .empty-state-modern h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .empty-state-modern p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auto-reply-card-header-mobile {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .auto-reply-trigger-mobile {
        width: 100%;
    }
    
    .auto-reply-card-footer-mobile {
        flex-wrap: wrap;
    }
    
    .auto-reply-card-footer-mobile .btn {
        flex: 1;
        min-width: 0;
    }
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* ===================================
   IMPORT & SHARE MODALS - MOBILE FIRST
   =================================== */

/* Base Styles (Mobile First) */

.btn-close-modal {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: white;
}

.btn-close-modal:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Import Modal - Mobile First */

.btn-paste-code {
    width: 100%;
    padding: 0.625rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.85rem;
    color: #495057;
}

.btn-paste-code:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-import-cancel {
    padding: 0.75rem;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-import-cancel:hover {
    background: #e9ecef;
}

.btn-import-submit {
    padding: 0.75rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.btn-import-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
}

/* Share Modal - Mobile First */

.btn-copy-code {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #00a884 0%, #00d9a5 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.btn-copy-code:hover {
    background: linear-gradient(135deg, #009874 0%, #00c995 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 168, 132, 0.3);
    color: white !important;
}

.btn-copy-code i,
.btn-copy-code span {
    color: white !important;
}

/* Tablet & Desktop (min-width: 576px) */
@media (min-width: 576px) {
    
    .btn-close-modal {
        top: 0.875rem;
        right: 0.875rem;
        width: 30px;
        height: 30px;
    }
    
    .btn-import-cancel {
        flex: 1;
    }
    
    .btn-import-submit {
        flex: 2;
    }
}

/* Desktop (min-width: 768px) */
@media (min-width: 768px) {
    
    .btn-close-modal {
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
    }
}

/* ===================================
   IMPORT & SHARE MODALS - MOBILE FIRST
   =================================== */

/* Base Modal Styles (Mobile First) */

.modal-dialog-centered {
    margin: 1rem;
}

.btn-close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: white;
    backdrop-filter: blur(10px);
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ===== IMPORT MODAL ===== */

.btn-paste-code {
    width: 100%;
    padding: 0.875rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
}

.btn-paste-code:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.btn-import-cancel {
    flex: 1;
    padding: 0.875rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-import-cancel:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.btn-import-submit {
    flex: 2;
    padding: 0.875rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-import-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

/* ===== SHARE MODAL ===== */

.btn-copy-code {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #00a884 0%, #00d9a5 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-copy-code:hover {
    background: linear-gradient(135deg, #009874 0%, #00c995 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 132, 0.3);
    color: white !important;
}

.btn-copy-code i,
.btn-copy-code span {
    color: white !important;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 576px) {
    .modal-dialog-centered {
        margin: 0.5rem;
    }

    .btn-close-modal {
        top: 0.75rem;
        right: 0.75rem;
        width: 28px;
        height: 28px;
    }

    /* Import Modal Mobile */

    .btn-paste-code {
        padding: 0.75rem;
        font-size: 0.875rem;
        border-radius: 8px;
    }

    .btn-import-cancel,
    .btn-import-submit {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    /* Share Modal Mobile */

    .btn-copy-code {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* ===== TABLET & DESKTOP ENHANCEMENTS ===== */
@media (min-width: 768px) {
    .modal-dialog-centered {
        max-width: 480px;
        margin: 1.75rem auto;
    }

    .btn-close-modal {
        width: 36px;
        height: 36px;
    }

    .btn-import-submit {
        flex: 2;
    }
}


/* ===================================
   NEW SHARE & IMPORT MODALS - MOBILE FIRST
   =================================== */

/* Share Modal Header */

/* Import Modal Header */

/* Modal Responsive - Mobile First */
@media (max-width: 575.98px) {
    .modal-fullscreen-sm-down .modal-content {
        border-radius: 0 !important;
    }
}

/* Tablet and up */
@media (min-width: 576px) {
    #shareAutoReplyModal .modal-dialog,
    #importAutoReplyModal .modal-dialog {
        max-width: 420px;
    }
}


/* ===================================
   SHARE & IMPORT MODALS - MOBILE FIRST v2
   =================================== */

/* Share Modal Header - Green Gradient */

/* Import Modal Header - Blue Gradient */

/* Mobile Full Screen Modal Fix */
@media (max-width: 575.98px) {
    .modal-fullscreen-sm-down .modal-content {
        border-radius: 0 !important;
        min-height: 100vh;
    }
}

/* Tablet and Desktop */
@media (min-width: 576px) {
    #shareAutoReplyModal .modal-dialog,
    #importAutoReplyModal .modal-dialog {
        max-width: 400px;
    }
    
    #shareAutoReplyModal .modal-content,
    #importAutoReplyModal .modal-content {
        border-radius: 1rem !important;
    }
}

/* ===================================
   COMPACT MODALS - MOBILE FIRST
   =================================== */

/* Mobile adjustments */
@media (max-width: 575.98px) {
    .modal-sm {
        max-width: calc(100% - 24px);
        margin: 12px;
    }
}

/* ===================================
   SHARE & IMPORT MODALS v3 - CLEAN
   =================================== */

.share-import-dialog {
    max-width: 320px;
    margin: 10px;
}

.si-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.si-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 10px;
    position: relative;
}

.si-header-green {
    background: #00a884;
    color: #fff;
}

.si-header-blue {
    background: #0d6efd;
    color: #fff;
}

.si-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.si-title {
    font-weight: 600;
    font-size: 15px;
}

.si-close {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}

.si-close:hover {
    color: #fff;
}

.si-body {
    padding: 20px 16px;
    background: #fff;
}

.si-code-display {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #166534;
    letter-spacing: 3px;
    margin-bottom: 14px;
    word-break: break-all;
}

.si-input-wrap {
    position: relative;
    margin-bottom: 8px;
}

.si-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.2s;
}

.si-input:focus {
    outline: none;
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

.si-input::placeholder {
    color: #cbd5e1;
    letter-spacing: 4px;
}

.si-char-count {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #94a3b8;
}

.si-paste-btn {
    width: 100%;
    padding: 10px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    margin-bottom: 14px;
    transition: all 0.2s;
}

.si-paste-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.si-dest {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.si-dest-label {
    color: #64748b;
}

.si-dest-value {
    font-weight: 600;
    color: #1e293b;
}

.si-actions {
    display: flex;
    gap: 10px;
}

.si-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.si-btn-green {
    background: #00a884;
    color: #fff;
    width: 100%;
}

.si-btn-green:hover {
    background: #009874;
}

.si-btn-blue {
    background: #0d6efd;
    color: #fff;
}

.si-btn-blue:hover {
    background: #0b5ed7;
}

.si-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.si-btn-cancel:hover {
    background: #e2e8f0;
}

.si-footer-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 12px;
    color: #64748b;
}

.si-footer-info i {
    margin-right: 4px;
}

/* Mobile tweaks */
@media (max-width: 400px) {
    .share-import-dialog {
        max-width: calc(100% - 20px);
    }
    
    .si-code-display {
        font-size: 17px;
        letter-spacing: 2px;
        padding: 14px;
    }
    
    .si-input {
        font-size: 16px;
        padding: 12px;
        letter-spacing: 2px;
    }
    
    .si-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}


/* ===================================
   AUTO-REPLY MODAL - COMPACT & RESPONSIVE
   =================================== */

/* Modal Dialog */
.ar-modal-dialog {
    max-width: 480px;
    margin: 0.5rem auto;
}

.ar-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Compact Header */
.ar-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    position: relative;
}

.ar-header-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ar-header-text {
    flex: 1;
    min-width: 0;
}

.ar-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.ar-modal-subtitle {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.85;
}

.ar-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ar-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Modal Body */
.ar-modal-body {
    padding: 1rem 1.25rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Section Styles */
.ar-section {
    margin-bottom: 1rem;
}

.ar-section:last-of-type {
    margin-bottom: 0;
}

.ar-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ar-section-label i {
    color: var(--whatsapp-green);
    font-size: 0.75rem;
}

/* Trigger Row */
.ar-trigger-row {
    display: flex;
    gap: 0.5rem;
}

.ar-select {
    flex: 0 0 120px;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ar-select:focus {
    border-color: var(--whatsapp-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
}

.ar-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    min-width: 0;
}

.ar-input:focus {
    border-color: var(--whatsapp-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
}

.ar-help-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ar-help-text i {
    font-size: 0.65rem;
}

/* Messages Container */
.ar-messages-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    max-height: 180px;
    overflow-y: auto;
}

/* Message Card - Compact */
.ar-message-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem;
}

.ar-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ar-message-type {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ar-message-type i {
    color: var(--whatsapp-green);
}

.ar-message-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.ar-message-remove:hover {
    background: #fecaca;
    transform: scale(1.05);
}

.ar-textarea {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    resize: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ar-textarea:focus {
    border-color: var(--whatsapp-green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 168, 132, 0.1);
}

.ar-file-input {
    width: 100%;
    padding: 0.375rem;
    border: 1.5px dashed var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    background: white;
    margin-bottom: 0.375rem;
}

.ar-file-input:focus {
    border-color: var(--whatsapp-green);
    outline: none;
}

.ar-caption-input {
    font-size: 0.8rem;
    padding: 0.375rem 0.625rem;
}

/* Add Buttons */
.ar-add-btns {
    display: flex;
    gap: 0.5rem;
}

.ar-add-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1.5px dashed var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.ar-add-btn:hover {
    border-style: solid;
}

.ar-add-text:hover {
    border-color: var(--info);
    color: var(--info);
    background: #eff6ff;
}

.ar-add-media:hover {
    border-color: var(--whatsapp-green);
    color: var(--whatsapp-green);
    background: var(--whatsapp-light-green);
}

/* Options Section - Compact Inline */
.ar-options {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    gap: 0.75rem;
}

.ar-option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.ar-option-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.ar-option-info i {
    font-size: 0.75rem;
}

.ar-option-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

/* Custom Switch - Compact */
.ar-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

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

.ar-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 20px;
}

.ar-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ar-switch input:checked + .ar-slider {
    background-color: var(--whatsapp-green);
}

.ar-switch input:checked + .ar-slider:before {
    transform: translateX(16px);
}

/* Modal Footer - Compact */
.ar-modal-footer {
    display: flex;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.ar-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.ar-btn-cancel {
    background: white;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
}

.ar-btn-cancel:hover {
    background: #f1f5f9;
    border-color: var(--text-secondary);
}

.ar-btn-create {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.25);
}

.ar-btn-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.35);
}

/* ===================================
   AUTO-REPLY MODAL - MOBILE RESPONSIVE
   =================================== */

@media (max-width: 576px) {
    .ar-modal-dialog {
        margin: 0.375rem;
        max-width: calc(100% - 0.75rem);
    }
    
    .ar-modal-content {
        border-radius: 14px;
    }
    
    /* Header - More Compact */
    .ar-modal-header {
        padding: 0.75rem 1rem;
        gap: 0.625rem;
    }
    
    .ar-header-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        font-size: 0.9rem;
    }
    
    .ar-modal-title {
        font-size: 1rem;
    }
    
    .ar-modal-subtitle {
        font-size: 0.7rem;
    }
    
    .ar-close-btn {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        font-size: 0.8rem;
    }
    
    /* Body - Compact */
    .ar-modal-body {
        padding: 0.875rem 1rem;
        max-height: 55vh;
    }
    
    .ar-section {
        margin-bottom: 0.875rem;
    }
    
    .ar-section-label {
        font-size: 0.7rem;
        margin-bottom: 0.375rem;
    }
    
    .ar-section-label i {
        font-size: 0.65rem;
    }
    
    /* Trigger - Stack on Mobile */
    .ar-trigger-row {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .ar-select {
        flex: none;
        width: 100%;
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .ar-input {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .ar-help-text {
        font-size: 0.65rem;
        margin-top: 0.25rem;
    }
    
    /* Messages - Compact */
    .ar-messages-container {
        max-height: 140px;
        gap: 0.375rem;
    }
    
    .ar-message-card {
        padding: 0.5rem;
        border-radius: 6px;
    }
    
    .ar-message-header {
        margin-bottom: 0.375rem;
    }
    
    .ar-message-type {
        font-size: 0.65rem;
    }
    
    .ar-message-remove {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    
    .ar-textarea {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
        min-height: 50px;
    }
    
    .ar-file-input {
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    .ar-caption-input {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    
    /* Add Buttons - Compact */
    .ar-add-btns {
        gap: 0.375rem;
    }
    
    .ar-add-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    /* Options - Horizontal Row on Mobile */
    .ar-options {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0;
        background: transparent;
        border: none;
    }
    
    .ar-option-item {
        flex: 1;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border: 1px solid var(--border-color);
        padding: 0.625rem 0.5rem;
        border-radius: 10px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.375rem;
        min-width: 0;
    }
    
    .ar-option-item:last-child {
        margin-bottom: 0;
    }
    
    .ar-option-info {
        flex-direction: column;
        gap: 0.125rem;
        font-size: 0.7rem;
        text-align: center;
        flex: none;
    }
    
    .ar-option-info i {
        font-size: 1rem;
        margin-bottom: 0.125rem;
    }
    
    .ar-option-info span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .ar-option-divider {
        display: none;
    }
    
    .ar-switch {
        width: 38px;
        height: 20px;
    }
    
    .ar-slider:before {
        height: 16px;
        width: 16px;
    }
    
    .ar-switch input:checked + .ar-slider:before {
        transform: translateX(18px);
    }
    
    /* Footer - Compact */
    .ar-modal-footer {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .ar-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .ar-modal-header {
        padding: 0.625rem 0.875rem;
    }
    
    .ar-header-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .ar-modal-title {
        font-size: 0.9rem;
    }
    
    .ar-modal-body {
        padding: 0.75rem 0.875rem;
    }
    
    .ar-modal-footer {
        padding: 0.625rem 0.875rem;
    }
}


/* ===================================
   SHARE & IMPORT MODALS - CENTERED & RESPONSIVE
   =================================== */

/* Modal Dialog - Centered */
.share-import-dialog {
    max-width: 380px;
    margin: 1rem auto;
}

.si-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
.si-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: white;
    position: relative;
}

.si-header-green {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
}

.si-header-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.si-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.si-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
}

.si-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.si-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Body Styles */
.si-body {
    padding: 1.25rem;
}

/* Code Display (Share Modal) */
.si-code-display {
    background: #f1f5f9;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Input Wrapper (Import Modal) */
.si-input-wrap {
    position: relative;
    margin-bottom: 0.75rem;
}

.si-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.si-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.si-input::placeholder {
    letter-spacing: 3px;
    color: #cbd5e1;
}

.si-char-count {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: white;
    padding: 0 0.25rem;
}

/* Paste Button */
.si-paste-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1.5px dashed var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.si-paste-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* Destination Info */
.si-dest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.si-dest-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.si-dest-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Action Buttons */
.si-actions {
    display: flex;
    gap: 0.625rem;
}

.si-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
}

.si-btn-cancel {
    background: white;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
}

.si-btn-cancel:hover {
    background: #f1f5f9;
    border-color: var(--text-secondary);
}

.si-btn-green {
    width: 100%;
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.25);
    margin-bottom: 1rem;
}

.si-btn-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.35);
}

.si-btn-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.si-btn-blue:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Footer Info (Share Modal) */
.si-footer-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.si-footer-info span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.si-footer-info i {
    font-size: 0.7rem;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .share-import-dialog {
        max-width: calc(100% - 1rem);
        margin: 0.5rem;
    }
    
    .si-modal {
        border-radius: 14px;
    }
    
    .si-header {
        padding: 0.875rem 1rem;
        gap: 0.625rem;
    }
    
    .si-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .si-title {
        font-size: 1rem;
    }
    
    .si-close {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .si-body {
        padding: 1rem;
    }
    
    .si-code-display {
        font-size: 1.25rem;
        padding: 0.875rem;
    }
    
    .si-input {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .si-paste-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .si-dest {
        padding: 0.625rem;
    }
    
    .si-dest-label {
        font-size: 0.75rem;
    }
    
    .si-dest-value {
        font-size: 0.8rem;
    }
    
    .si-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .si-footer-info {
        gap: 1rem;
        font-size: 0.7rem;
    }
}


/* Existing file indicator in edit modal */
.ar-existing-file {
    font-size: 0.75rem;
    color: var(--whatsapp-green);
    background: var(--whatsapp-light-green);
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ar-existing-file i {
    font-size: 0.7rem;
}


/* Template Card Styles */
.template-card-modern {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.template-card-modern:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.template-card-header-modern {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.template-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Icon colors for different types */
.template-icon-modern.text-type {
    background: #e3f2fd;
    color: #1976d2;
}

.template-icon-modern.image-type {
    background: #e8f5e9;
    color: #388e3c;
}

.template-icon-modern.video-type {
    background: #ffebee;
    color: #d32f2f;
}

.template-icon-modern.audio-type {
    background: #e1f5fe;
    color: #0288d1;
}

.template-icon-modern.document-type {
    background: #fff3e0;
    color: #f57c00;
}

.template-icon-modern.sticker-type {
    background: #fff9c4;
    color: #f9a825;
}

.template-icon-modern.location-type {
    background: #fce4ec;
    color: #c2185b;
}

.template-icon-modern.contact-type {
    background: #f3e5f5;
    color: #7b1fa2;
}

.template-icon-modern.poll-type {
    background: #e0f2f1;
    color: #00796b;
}

.template-icon-modern.viewOnceImage-type,
.template-icon-modern.viewOnceVideo-type,
.template-icon-modern.viewOnceAudio-type {
    background: #eceff1;
    color: #546e7a;
}

.template-info-modern {
    flex: 1;
    min-width: 0;
}

.template-name-modern {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1f1f1f;
}

.template-meta-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8696a0;
}

.template-actions-modern {
    display: flex;
    gap: 4px;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f0f2f5;
    color: #667781;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-icon-sm:hover {
    background: #e9ecef;
    color: #1f1f1f;
}

.btn-icon-sm.favorite {
    color: #ffc107;
}

.btn-icon-sm.favorite.active {
    background: #fff3cd;
    color: #ffc107;
}

.btn-icon-sm.delete:hover {
    background: #fee;
    color: #dc3545;
}

.template-card-body-modern {
    padding: 1rem;
}

.template-preview-modern {
    font-size: 14px;
    line-height: 1.5;
    color: #667781;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-card-footer-modern {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f2f5;
}

.template-usage-modern {
    font-size: 13px;
    color: #8696a0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-use-template {
    background: #00a884;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-use-template:hover {
    background: #20ba5a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}


/* ===================================
   CAMPAIGN CREATE - REDESIGNED COMPACT
   =================================== */

/* Step Badge */
.step-badge {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Wizard Steps - Compact Horizontal */
.wizard-steps-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    gap: 0.5rem;
}

.wizard-step-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-indicator-compact {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-indicator-compact .step-num {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.step-indicator-compact .step-done {
    display: none;
    color: white;
    font-size: 0.875rem;
}

.wizard-step-compact .step-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.wizard-step-compact.active .step-indicator-compact {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.3);
}

.wizard-step-compact.active .step-indicator-compact .step-num {
    color: white;
}

.wizard-step-compact.active .step-label {
    color: var(--whatsapp-green);
}

.wizard-step-compact.completed .step-indicator-compact {
    background: var(--success);
}

.wizard-step-compact.completed .step-indicator-compact .step-num {
    display: none;
}

.wizard-step-compact.completed .step-indicator-compact .step-done {
    display: block;
}

.step-connector {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* Wizard Panels */
.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* Session Grid - Compact */
.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.session-card-compact {
    cursor: pointer;
}

.session-card-compact input {
    display: none;
}

.session-card-inner {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.session-card-compact:hover .session-card-inner {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.03);
}

.session-card-compact input:checked + .session-card-inner {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.08);
}

.session-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.session-details {
    flex: 1;
    min-width: 0;
}

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

.session-phone-sm {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.session-check-icon {
    font-size: 1rem;
    color: var(--border-color);
    transition: all 0.2s ease;
}

.session-card-compact input:checked + .session-card-inner .session-check-icon {
    color: var(--whatsapp-green);
}

/* Method Grid - Compact */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.method-card-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.method-card-compact:hover {
    border-color: var(--whatsapp-green);
    transform: translateY(-2px);
}

.method-card-compact.selected {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.08);
}

.method-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--main-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--whatsapp-green);
    transition: all 0.2s ease;
}

.method-card-compact.selected .method-icon-sm {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    color: white;
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

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

.method-desc {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.method-tag {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.method-tag.single {
    background: #eff6ff;
    color: var(--info);
}

.method-tag.multi {
    background: #d1fae5;
    color: var(--success);
}

/* Groups Grid - Compact */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.group-card-compact {
    cursor: pointer;
}

.group-card-compact input {
    display: none;
}

.group-card-inner {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.group-card-compact:hover .group-card-inner {
    border-color: var(--whatsapp-green);
}

.group-card-compact input:checked + .group-card-inner {
    border-color: var(--whatsapp-green);
    background: rgba(0, 168, 132, 0.08);
}

.group-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--whatsapp-light-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--whatsapp-green);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.group-details {
    flex: 1;
    min-width: 0;
}

.group-name-sm {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.group-count-sm {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.group-check-icon {
    font-size: 1rem;
    color: var(--border-color);
    transition: all 0.2s ease;
}

.group-card-compact input:checked + .group-card-inner .group-check-icon {
    color: var(--whatsapp-green);
}

/* Selection Summary */
.selection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: rgba(0, 168, 132, 0.1);
    border: 1px solid var(--whatsapp-green);
    border-radius: 8px;
}

.summary-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

/* Preview List - Compact */
.preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.625rem 0.875rem;
    background: var(--main-bg);
    border-radius: 8px;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.preview-item-compact .preview-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 80px;
}

.preview-item-compact .preview-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

/* Empty State - Compact */
.empty-state-compact {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.empty-state-compact i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-state-compact p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* FAB Button */
.btn-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.4);
    z-index: 100;
    border: none;
}

.btn-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 168, 132, 0.5);
}

/* WhatsApp Media Placeholder */
.wa-media-placeholder {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

/* Mobile Responsive - Campaign Create */
@media (max-width: 991px) {
    .wizard-steps-compact {
        padding: 0.75rem 1rem;
        gap: 0.375rem;
    }
    
    .step-indicator-compact {
        width: 32px;
        height: 32px;
    }
    
    .step-indicator-compact .step-num {
        font-size: 0.75rem;
    }
    
    .wizard-step-compact .step-label {
        font-size: 0.75rem;
    }
    
    .step-connector {
        width: 24px;
    }
}

@media (max-width: 768px) {
    .session-grid {
        grid-template-columns: 1fr;
    }
    
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-fab {
        bottom: 1rem;
        right: 1rem;
        width: 52px;
        height: 52px;
        font-size: 1.375rem;
    }
    
    .preview-item-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .preview-item-compact .preview-label {
        min-width: auto;
    }
    
    .preview-item-compact .preview-value {
        text-align: left;
    }
    
    .selection-summary {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .summary-info {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
    }
    
    .method-card-compact {
        padding: 0.625rem 0.375rem;
    }
    
    .method-icon-sm {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .method-name {
        font-size: 0.75rem;
    }
    
    .method-desc {
        font-size: 0.625rem;
    }
    
    .method-tag {
        font-size: 0.5rem;
        padding: 0.0625rem 0.25rem;
    }
    
    .session-card-inner,
    .group-card-inner {
        padding: 0.625rem;
    }
    
    .session-icon-sm {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .session-name-sm,
    .group-name-sm {
        font-size: 0.75rem;
    }
    
    .preview-item-compact {
        padding: 0.5rem 0.75rem;
    }
    
    .preview-item-compact .preview-label {
        font-size: 0.6875rem;
    }
    
    .preview-item-compact .preview-value {
        font-size: 0.75rem;
    }
}


/* ===== AUTHENTICATION PAGES - Modern Design ===== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(60px);
    animation: float 20s infinite ease-in-out;
}

.auth-shape-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -250px;
    animation-delay: 0s;
}

.auth-shape-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
    animation-delay: 5s;
}

.auth-shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.auth-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease-out;
    max-height: 95vh;
    overflow-y: auto;
}

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

.auth-card-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.875rem;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 168, 132, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(0, 168, 132, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(0, 168, 132, 0.4);
    }
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.auth-alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.auth-alert-success {
    background: rgba(5, 150, 105, 0.1);
    color: #065f46;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

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

.auth-input-group {
    margin-bottom: 1rem;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.auth-label i {
    color: var(--whatsapp-green);
    font-size: 1rem;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    background: white;
}

.auth-input:focus {
    outline: none;
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 4px rgba(0, 168, 132, 0.1);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input-wrapper .auth-input {
    padding-right: 3rem;
}

.auth-input-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.auth-input-toggle:hover {
    color: var(--whatsapp-green);
}

.auth-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark-green));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.3);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 132, 0.4);
    color: white;
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.auth-btn-secondary:hover {
    background: var(--main-bg);
    border-color: var(--whatsapp-green);
    color: var(--whatsapp-green);
}

.auth-btn-google {
    background: white;
    color: #5f6368;
    border: 2px solid var(--border-color);
}

.auth-btn-google:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    color: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.auth-btn-google i {
    color: #4285f4;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.25rem 0;
}

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

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background: white;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer {
    margin-top: 1.25rem;
    text-align: center;
}

.auth-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-footer i {
    color: var(--whatsapp-green);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .auth-container {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .auth-content {
        padding: 0.375rem;
        max-width: 100%;
        width: 100%;
        margin-top: -10vh;
    }

    .auth-card {
        padding: 1rem 0.875rem;
        border-radius: 12px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .auth-card-header {
        margin-bottom: 0.75rem;
    }

    .auth-logo {
        width: 44px;
        height: 44px;
        font-size: 1.375rem;
        margin-bottom: 0.5rem;
        border-radius: 10px;
    }

    .auth-title {
        font-size: 1.125rem;
        margin-bottom: 0.125rem;
    }

    .auth-subtitle {
        font-size: 0.6875rem;
    }

    .auth-alert {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.75rem;
        font-size: 0.6875rem;
        gap: 0.375rem;
        border-radius: 8px;
    }

    .auth-alert i {
        font-size: 0.8125rem;
    }

    .auth-form {
        margin-bottom: 0.75rem;
    }

    .auth-input-group {
        margin-bottom: 0.75rem;
    }

    .auth-label {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
        gap: 0.25rem;
    }

    .auth-label i {
        font-size: 0.75rem;
    }

    .auth-input {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
        border-radius: 7px;
        border-width: 1.5px;
    }

    .auth-input-wrapper .auth-input {
        padding-right: 2.25rem;
    }

    .auth-input-toggle {
        width: 2.25rem;
        font-size: 0.875rem;
    }

    .auth-hint {
        font-size: 0.625rem;
        margin-top: 0.1875rem;
    }

    .auth-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        border-radius: 7px;
        gap: 0.375rem;
    }

    .auth-btn i {
        font-size: 0.8125rem;
    }

    .auth-divider {
        margin: 0.75rem 0;
    }

    .auth-divider span {
        font-size: 0.6875rem;
        padding: 0 0.5rem;
    }

    .auth-footer {
        margin-top: 0.75rem;
    }

    .auth-footer p {
        font-size: 0.625rem;
        gap: 0.25rem;
    }

    .auth-footer i {
        font-size: 0.6875rem;
    }

    .auth-shape-1,
    .auth-shape-2,
    .auth-shape-3 {
        display: none;
    }
}

/* Tablet Responsive */
@media (min-width: 577px) and (max-width: 768px) {
    .auth-content {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.75rem 1.5rem;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    .auth-title {
        font-size: 1.375rem;
    }

    .auth-subtitle {
        font-size: 0.8125rem;
    }

    .auth-input-group {
        margin-bottom: 1rem;
    }
}

/* Small Desktop / Large Tablet */
@media (min-width: 769px) and (max-width: 992px) {
    .auth-card {
        padding: 1.875rem 1.625rem;
    }
}


/* ===== PHONE VERIFICATION - COMPACT & MOBILE-FRIENDLY ===== */
.verify-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.verify-card-success {
    text-align: center;
    padding: 2rem 1.5rem;
}

.verify-header {
    text-align: center;
    padding: 1.5rem 1.25rem 1rem;
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.08) 0%, rgba(0, 128, 105, 0.04) 100%);
    border-bottom: 1px solid var(--border-color);
}

.verify-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark-green) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.3);
}

.verify-icon-success {
    background: linear-gradient(135deg, var(--success) 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.verify-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.verify-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.verify-step {
    padding: 1.25rem;
}

.verify-step-success {
    text-align: center;
    padding: 2rem 1.25rem;
}

.verify-success-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
    margin: 0.75rem 0 0.25rem;
}

.verify-success-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
}

.verify-input-group {
    margin-bottom: 1rem;
}

.verify-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.verify-label i {
    color: var(--whatsapp-green);
    margin-right: 0.25rem;
}

.verify-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all var(--transition-fast);
    background: white;
}

.verify-input:focus {
    outline: none;
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
}

.verify-input-otp {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5rem;
    padding: 0.875rem 1rem;
}

.verify-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
}

.verify-error {
    display: none;
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 0.375rem;
}

.verify-info-badge {
    display: none;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: rgba(0, 168, 132, 0.08);
    border-radius: 6px;
    width: fit-content;
}

.verify-info-badge i {
    color: var(--whatsapp-green);
}

.verify-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verify-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(2, 132, 199, 0.08);
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.verify-note i {
    color: var(--info);
    flex-shrink: 0;
}

.verify-timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: var(--main-bg);
    border-radius: 8px;
    margin-top: 1rem;
}

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

.verify-timer i {
    margin-right: 0.25rem;
    color: var(--warning);
}

.verify-resend {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--whatsapp-green);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.verify-resend:hover {
    color: var(--whatsapp-dark-green);
    text-decoration: underline;
}

.verify-back-btn {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.verify-back-btn:hover {
    color: var(--text-primary);
}

.verify-back-btn i {
    margin-right: 0.25rem;
}

/* Benefits Strip */
.verify-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.verify-benefit {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.verify-benefit i {
    color: var(--whatsapp-green);
    font-size: 0.6875rem;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .verify-header {
        padding: 1.25rem 1rem 0.875rem;
    }
    
    .verify-icon-wrap {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        border-radius: 12px;
        margin-bottom: 0.625rem;
    }
    
    .verify-title {
        font-size: 1.125rem;
    }
    
    .verify-subtitle {
        font-size: 0.75rem;
    }
    
    .verify-step {
        padding: 1rem;
    }
    
    .verify-label {
        font-size: 0.75rem;
    }
    
    .verify-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
        border-radius: 8px;
    }
    
    .verify-input-otp {
        font-size: 1.25rem;
        letter-spacing: 0.375rem;
        padding: 0.75rem 0.875rem;
    }
    
    .verify-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        border-radius: 8px;
    }
    
    .verify-note {
        font-size: 0.6875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .verify-timer-row {
        padding: 0.5rem 0.75rem;
    }
    
    .verify-timer,
    .verify-resend {
        font-size: 0.6875rem;
    }
    
    .verify-back-btn {
        font-size: 0.75rem;
        padding: 0.375rem;
    }
    
    .verify-benefits {
        gap: 0.375rem;
    }
    
    .verify-benefit {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
    }
    
    .verify-card-success {
        padding: 1.5rem 1rem;
    }
    
    .verify-step-success {
        padding: 1.5rem 1rem;
    }
    
    .verify-success-title {
        font-size: 1.125rem;
    }
    
    .verify-success-text {
        font-size: 0.8125rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .verify-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1.375rem;
    }
    
    .verify-title {
        font-size: 1rem;
    }
    
    .verify-input-otp {
        font-size: 1.125rem;
        letter-spacing: 0.25rem;
    }
    
    .verify-benefits {
        flex-direction: column;
        align-items: stretch;
    }
    
    .verify-benefit {
        justify-content: center;
    }
}


/* ===== PHONE VERIFICATION BANNER - WARNING STYLE ===== */
.verify-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.12) 100%);
    border: 1px solid rgba(255, 152, 0, 0.35);
    border-radius: 10px;
    position: relative;
}

.verify-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.verify-banner-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c4d00;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.verify-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    flex: 1;
}

.verify-banner-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verify-banner-desc {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verify-banner-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.verify-banner-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    color: white;
    transform: translateX(2px);
}

.verify-banner-btn i {
    font-size: 0.625rem;
}

.verify-banner-close {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.625rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.verify-banner-close:hover {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1;
}

/* Mobile - Stack layout */
@media (max-width: 576px) {
    .verify-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        padding-right: 1.75rem;
        gap: 0.625rem;
    }
    
    .verify-banner-content {
        flex-wrap: wrap;
    }
    
    .verify-banner-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 6px;
    }
    
    .verify-banner-text {
        flex: 1;
        min-width: 120px;
    }
    
    .verify-banner-title {
        font-size: 0.75rem;
        white-space: normal;
    }
    
    .verify-banner-desc {
        display: none;
    }
    
    .verify-banner-btn {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
        margin-top: 0.25rem;
    }
    
    .verify-banner-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Tablet - Inline but compact */
@media (min-width: 577px) and (max-width: 768px) {
    .verify-banner-desc {
        display: none;
    }
    
    .verify-banner-title {
        font-size: 0.75rem;
    }
}


/* ===== NUMBER CHECKER PROGRESS SECTION ===== */
.progress-percentage {
    font-size: 2rem;
    font-weight: 700;
}

.progress-percentage.completed {
    color: #10b981;
}

.progress-percentage.in-progress {
    color: #0284c7;
}

.progress-percentage span {
    font-size: 1.25rem;
}

.progress-bar-container {
    height: 24px;
    border-radius: 12px;
    background: #f3f4f6;
    overflow: hidden;
}

.progress-bar-container .progress-bar {
    transition: width 0.3s ease;
}

.progress-bar-container .progress-bar.bg-success {
    border-radius: 12px 0 0 12px;
}

.progress-bar-container .progress-bar.bg-danger {
    border-radius: 0 12px 12px 0;
}

/* Stat Box - Mobile Friendly */
.stat-box {
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-box.stat-success {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.stat-box.stat-danger {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.stat-box.stat-info {
    background: #eff6ff;
    border-left-color: #0284c7;
}

.stat-box.stat-purple {
    background: #f5f3ff;
    border-left-color: #7c3aed;
}

.stat-box-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-box-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-box.stat-success .stat-box-value {
    color: #10b981;
}

.stat-box.stat-danger .stat-box-value {
    color: #dc2626;
}

.stat-box.stat-info .stat-box-value {
    color: #0284c7;
}

.stat-box.stat-purple .stat-box-value {
    color: #7c3aed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .progress-percentage {
        font-size: 1.5rem;
    }

    .progress-percentage span {
        font-size: 1rem;
    }

    .stat-box {
        padding: 0.875rem;
    }

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

    .stat-box-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .progress-percentage {
        font-size: 1.25rem;
    }

    .progress-percentage span {
        font-size: 0.875rem;
    }

    .stat-box {
        padding: 0.75rem;
    }

    .stat-box-label {
        font-size: 0.7rem;
    }

    .stat-box-value {
        font-size: 1.25rem;
    }
}
