/**
 * FastSend - Modern SaaS Stylesheet
 * Version: 2.0.0
 * Includes: Toast notifications, skeleton loaders, live indicators,
 *           notification bell, progress rings, speed meter, animated stats,
 *           campaign console, empty states, and all original styles.
 */

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
    /* Brand */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;

    /* Sidebar */
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #312e81;
    --sidebar-width: 260px;

    /* Layout */
    --body-bg: #f8fafc;
    --card-border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Status colours */
    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --info: #0284c7;
    --info-light: #e0f2fe;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-primary: 0 4px 12px rgba(79,70,229,0.3);
}

/* =========================================================
   BASE / RESET
   ========================================================= */
html {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

/* Smooth transition for all interactive elements */
a, button, .btn, input, select, textarea,
.nav-link, .card, .table tbody tr {
    transition: all var(--transition-base);
}

/* =========================================================
   LAYOUT — WRAPPER & CONTENT
   ========================================================= */
#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    position: relative;
}

#page-content-wrapper {
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100%;
}

/* =========================================================
   TABLE
   ========================================================= */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: #4f46e5 #e2e8f0;
    position: relative;
    margin-bottom: 0.5rem;
}

.table-responsive > table { min-width: 980px; }

.table-responsive::-webkit-scrollbar { height: 12px; width: 12px; }
.table-responsive::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 6px; }
.table-responsive::-webkit-scrollbar-thumb { background: #4f46e5; border-radius: 6px; border: 2px solid #e2e8f0; }
.table-responsive::-webkit-scrollbar-thumb:hover { background: #4338ca; }

.table thead th {
    background-color: #f8fafc;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
    border-bottom: 1px solid var(--card-border);
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--card-border);
}

.table-hover tbody tr:hover { background-color: #f8fafc; }

/* Campaign row status accents */
.tr-sending {
    border-left: 3px solid var(--info) !important;
    background-color: rgba(2, 132, 199, 0.03);
}

.tr-completed {
    border-left: 3px solid var(--success) !important;
    background-color: rgba(22, 163, 74, 0.03);
}

.tr-failed {
    border-left: 3px solid var(--danger) !important;
    background-color: rgba(220, 38, 38, 0.03);
}

/* =========================================================
   SIDEBAR
   ========================================================= */
#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background-color: var(--sidebar-bg) !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-self: stretch;
    transition: margin var(--transition-slow);
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #1e293b #0f172a;
}

#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: var(--sidebar-bg); }
#sidebar::-webkit-scrollbar-thumb { background: var(--sidebar-hover); border-radius: 4px; }

@media (min-width: 992px) {
    #sidebar {
        position: relative;
        height: auto;
        min-height: 100%;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

#sidebar .nav-link {
    color: #94a3b8;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
}

#sidebar .nav-link i { font-size: 1.1rem; }

#sidebar .nav-link:hover {
    color: #f8fafc;
    background-color: var(--sidebar-hover);
    transform: translateX(2px);
}

#sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-primary);
}

/* Modular Channel Panel Sidebar Styles */
.sidebar-panel-back {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    font-size: 0.85rem !important;
    padding: 0.55rem 0.85rem !important;
}
.sidebar-panel-back:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(-2px) !important;
}

.channel-suite-banner {
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.channel-suite-banner.email-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
}
.channel-suite-banner.whatsapp-banner {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(22, 163, 74, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.channel-suite-banner.sms-banner {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(8, 145, 178, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.35);
}
.channel-suite-banner.api-banner {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(202, 138, 4, 0.1) 100%);
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.sidebar-chevron {
    transition: transform 0.2s ease;
    font-size: 0.72rem;
    display: inline-block;
}
button[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(90deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 2px 0 4px 12px;
    margin: 3px 0 6px 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
}
.sidebar-submenu .nav-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
    color: #94a3b8;
    border-radius: 6px;
}
.sidebar-submenu .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}
.sidebar-submenu .nav-link.active {
    color: #ffffff;
    background: var(--primary);
    font-weight: 600;
}

/* Sidebar section labels */
.nav-header {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
    padding: 1.25rem 1rem 0.35rem;
    user-select: none;
}

/* Mobile sidebar */
@media (max-width: 991.98px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        height: 100vh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    #sidebar.show { margin-left: 0; }

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1030;
        animation: fadeIn 0.2s ease;
    }

    /* Mobile notification dropdown adjustments */
    .notif-dropdown {
        right: -60px !important;
        width: 290px !important;
    }
}

/* =========================================================
   BRAND & AVATAR
   ========================================================= */
.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 8px;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    background-color: #ffffff;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

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

.stat-card {
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}

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

/* =========================================================
   BUTTONS & BADGES
   ========================================================= */
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--primary-hover); border-color: var(--primary-hover); }

.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.4em 0.7em;
}

/* Animated gradient badge */
.gradient-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3em 0.75em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), #7c3aed, #a855f7, var(--primary));
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================================
   DEVICE PREVIEW
   ========================================================= */
.device-preview-wrapper {
    background: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 500px;
}

.device-desktop {
    width: 100%;
    max-width: 780px;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.device-mobile {
    width: 380px;
    background: #ffffff;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
    border: 8px solid #334155;
    border-radius: 28px;
    overflow: hidden;
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-purple    { color: #9333ea !important; }
.cursor-pointer { cursor: pointer; }
.max-w-2xl      { max-width: 42rem; }
.max-w-md       { max-width: 28rem; }

/* Section divider */
.section-divider {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 1.5rem 0;
    position: relative;
}

.section-divider[data-label]::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--body-bg);
    padding: 0 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* =========================================================
   KEYFRAME ANIMATIONS (SHARED)
   ========================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

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

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

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.toast-container-custom {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 360px;
    width: calc(100vw - 2.5rem);
    pointer-events: none; /* let clicks through the container gap */
}

.fastsend-toast,
.mailpulse-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.625rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
    border-left: 4px solid transparent;
    pointer-events: all;
    animation: slideInRight 0.35s cubic-bezier(0.22,1,0.36,1) both;
    position: relative;
    overflow: hidden;
}

.fastsend-toast.toast-hiding,
.mailpulse-toast.toast-hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* Progress bar that shrinks as toast auto-dismisses */
.fastsend-toast::after,
.mailpulse-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.4;
    width: 100%;
    transform-origin: left;
    animation: toastCountdown linear forwards;
    animation-duration: inherit;
}

@keyframes toastCountdown {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* Toast type variants */
.fastsend-toast.toast-success, .mailpulse-toast.toast-success { border-left-color: var(--success); color: var(--success); }
.fastsend-toast.toast-danger,  .mailpulse-toast.toast-danger  { border-left-color: var(--danger);  color: var(--danger);  }
.fastsend-toast.toast-warning, .mailpulse-toast.toast-warning { border-left-color: var(--warning); color: var(--warning); }
.fastsend-toast.toast-info,    .mailpulse-toast.toast-info    { border-left-color: var(--info);    color: var(--info);    }

.fastsend-toast .toast-icon,
.mailpulse-toast .toast-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.fastsend-toast .toast-body,
.mailpulse-toast .toast-body {
    flex: 1;
}

.fastsend-toast .toast-title,
.mailpulse-toast .toast-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.fastsend-toast .toast-message,
.mailpulse-toast .toast-message {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.fastsend-toast .toast-close,
.mailpulse-toast .toast-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color var(--transition-fast);
    align-self: flex-start;
}

.fastsend-toast .toast-close:hover,
.mailpulse-toast .toast-close:hover { color: var(--text-main); }

/* =========================================================
   SKELETON LOADING ANIMATIONS
   ========================================================= */
@keyframes shimmer {
    0%   { background-position: -468px 0; }
    100% { background-position: 468px 0;  }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #e2e8f0 25%,
        #f1f5f9 50%,
        #e2e8f0 75%
    );
    background-size: 936px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 0.375rem;
}

.skeleton-text {
    height: 0.875rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child { width: 60%; }

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-card {
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--card-border);
}

.skeleton-card .skeleton-title {
    height: 1rem;
    width: 55%;
    margin-bottom: 0.75rem;
}

.skeleton-card .skeleton-line {
    height: 0.75rem;
    margin-bottom: 0.5rem;
}

.skeleton-card .skeleton-line.short { width: 40%; }

/* =========================================================
   LIVE DOT / PULSING INDICATOR
   ========================================================= */
@keyframes pulseRing {
    0%   { transform: scale(0.8); opacity: 0.8; }
    70%  { transform: scale(1.6); opacity: 0;   }
    100% { transform: scale(1.6); opacity: 0;   }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}

.live-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--danger); /* default red */
    animation: pulseDot 2s ease-in-out infinite;
}

.live-dot.live-dot-green { background-color: var(--success); }
.live-dot.live-dot-blue  { background-color: var(--info);    }

/* Outer ring */
.live-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: pulseRing 2s ease-out infinite;
}

/* Pulse ring wrapper (for use outside .live-dot) */
.pulse-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulseRing 1.8s ease-out infinite;
}

/* =========================================================
   NOTIFICATION BELL
   ========================================================= */
.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
    transition: transform var(--transition-fast);
    animation: badgePop 0.3s cubic-bezier(0.22,1,0.36,1);
}

@keyframes badgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.notif-badge.hidden { display: none; }

/* Dropdown panel */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    width: 340px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    display: none;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.notif-dropdown::-webkit-scrollbar { width: 4px; }
.notif-dropdown::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.notif-dropdown.show {
    display: flex;
    animation: fadeIn 0.18s ease;
}

.notif-dropdown-header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.notif-dropdown-header h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.notif-dropdown-footer {
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
    position: sticky;
    bottom: 0;
    background: #fff;
}

/* Individual notification item */
.notif-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background var(--transition-fast);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

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

.notif-item:hover { background: #f8fafc; }

/* Unread state */
.notif-item.unread {
    border-left: 3px solid var(--primary);
    background: var(--primary-light);
}

.notif-item.unread:hover { background: #e0e7ff; }

.notif-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notif-item-content { flex: 1; min-width: 0; }

.notif-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* =========================================================
   PROGRESS RING (SVG-based circular progress)
   ========================================================= */
.progress-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring__track {
    fill: none;
    stroke: var(--card-border);
    stroke-width: 4;
}

.progress-ring__bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4,0,0.2,1);
}

.progress-ring__label {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    line-height: 1.2;
}

/* =========================================================
   SPEED METER
   ========================================================= */
.speed-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    gap: 0.4rem;
}

.speed-meter-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.speed-meter-unit {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

/* =========================================================
   ANIMATED STAT NUMBERS
   ========================================================= */
.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-number.counting {
    transition: color 0.3s ease;
    color: var(--primary);
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    gap: 0.75rem;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.empty-state-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.empty-state-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0;
    line-height: 1.6;
}

/* =========================================================
   CAMPAIGN MONITOR — CONSOLE / LOG
   ========================================================= */
.console-log-container {
    background: #0d1117;
    border-radius: 0.75rem;
    border: 1px solid #30363d;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

.console-log-header {
    background: #161b22;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #30363d;
}

.console-log-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.console-log-header .dot-red    { background: #ff5f57; }
.console-log-header .dot-yellow { background: #febc2e; }
.console-log-header .dot-green  { background: #28c840; }

.console-log-header span {
    margin-left: 0.5rem;
    font-size: 0.72rem;
    color: #8b949e;
    font-family: 'Inter', sans-serif;
}

.console-log-body {
    padding: 0.75rem 1rem;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #30363d #0d1117;
}

.console-log-body::-webkit-scrollbar { width: 5px; }
.console-log-body::-webkit-scrollbar-track { background: #0d1117; }
.console-log-body::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }

/* Log entry base */
.log-entry {
    padding: 0.1rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    color: #c9d1d9;
    word-break: break-all;
}

.log-entry .log-time {
    color: #484f58;
    font-size: 0.72rem;
    flex-shrink: 0;
    min-width: 60px;
}

.log-entry .log-level {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.05em 0.5em;
    border-radius: 3px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Log level variants */
.log-entry.log-success .log-level { background: rgba(35,134,54,0.3); color: #56d364; }
.log-entry.log-error   .log-level { background: rgba(248,81,73,0.2);  color: #f85149; }
.log-entry.log-warning .log-level { background: rgba(187,128,9,0.2);  color: #e3b341; }
.log-entry.log-info    .log-level { background: rgba(31,111,235,0.2); color: #58a6ff; }
.log-entry.log-debug   .log-level { background: rgba(139,148,158,0.2); color: #8b949e; }

.log-entry.log-success .log-text { color: #56d364; }
.log-entry.log-error   .log-text { color: #f85149; }
.log-entry.log-warning .log-text { color: #e3b341; }
.log-entry.log-info    .log-text { color: #58a6ff; }
.log-entry.log-debug   .log-text { color: #8b949e; }

/* =========================================================
   PRINT / MISC
   ========================================================= */
@media print {
    #sidebar, .navbar, .btn, .toast-container-custom { display: none !important; }
    #page-content-wrapper { margin: 0 !important; padding: 0 !important; }
}

/* =========================================================
   UNIVERSAL MULTI-LANGUAGE TRANSLATION WIDGET
   ========================================================= */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}
body {
    top: 0px !important;
    position: static !important;
}
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}
.skiptranslate:not(#fastsendLangDropdown):not(#fastsendLandingLangDropdown) {
    display: none !important;
}
#fastsendLangDropdown .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

/* =========================================================
   PRO-LEVEL MODERN SAAS LANDING PAGE & RESPONSIVE SYSTEM
   ========================================================= */

/* 1. Fluid Typography & Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 2. Pro Hero Section */
.hero-section-pro {
    position: relative;
    padding: 100px 0 80px;
    background: 
        radial-gradient(circle at 50% 10%, rgba(79, 70, 229, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 15% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        #ffffff;
    overflow: hidden;
}

.hero-glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}
.hero-glow-1 { top: -150px; left: 50%; transform: translateX(-50%); background: #4f46e5; }
.hero-glow-2 { top: 200px; right: -100px; background: #06b6d4; }

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 50rem;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 600;
    color: #4338ca;
    transition: all 0.25s ease;
}
.hero-badge-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.14);
}

.pulse-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulseAnim 2s infinite;
}
@keyframes livePulseAnim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 3. Hero Interactive Console / Dashboard Mockup */
.hero-mockup-wrapper {
    position: relative;
    max-width: 1040px;
    margin: 45px auto 0;
    z-index: 1;
}

.hero-mockup-frame {
    background: #0f172a;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 60px -15px rgba(15, 23, 42, 0.4),
        0 0 40px rgba(79, 70, 229, 0.15);
    overflow: hidden;
    color: #ffffff;
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-mockup-frame:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 35px 80px -15px rgba(15, 23, 42, 0.5),
        0 0 50px rgba(79, 70, 229, 0.25);
}

.mockup-topbar {
    background: #1e293b;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mockup-dots {
    display: flex;
    gap: 7px;
}
.mockup-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.mockup-dot-red    { background: #ef4444; }
.mockup-dot-yellow { background: #f59e0b; }
.mockup-dot-green  { background: #10b981; }

.mockup-body {
    padding: 24px;
    background: radial-gradient(circle at 90% 10%, rgba(79, 70, 229, 0.15) 0%, transparent 60%), #0f172a;
}

.mockup-stat-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    backdrop-filter: blur(10px);
}

/* 4. Bento Grid Features */
.bento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}
.bento-card.bento-highlight {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-color: #c7d2fe;
}
.bento-card.bento-highlight:hover {
    border-color: #818cf8;
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
}

.bento-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 20px;
}

/* 5. Interactive ROI / Cost Calculator */
.calc-card-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
    color: #ffffff;
    padding: 40px;
}
@media (max-width: 768px) {
    .calc-card-container { padding: 24px 18px; border-radius: 18px; }
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #334155;
    outline: none;
    transition: background 0.2s;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}
.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
    border: 2px solid #ffffff;
}

/* 6. Universal Screen-Size Responsiveness Across All Devices */
@media (max-width: 576px) {
    /* Mobile Smartphones (< 576px) */
    .hero-section-pro { padding: 60px 0 40px; }
    .hero-badge-pill { font-size: 0.75rem; padding: 5px 12px; }
    .bento-card { padding: 22px 18px; border-radius: 16px; }
    .mockup-body { padding: 16px; }
    .navbar-brand span { font-size: 1.25rem; }
    .dropdown-menu { max-width: calc(100vw - 24px) !important; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    /* Tablets & Small Laptops (576px - 991px) */
    .hero-section-pro { padding: 80px 0 50px; }
    .mockup-body { padding: 20px; }
}

@media (min-width: 1400px) {
    /* 4K & Ultra-wide Displays (> 1400px) */
    .container { max-width: 1320px; }
    .hero-mockup-wrapper { max-width: 1140px; }
    body { font-size: 1.05rem; }
}

/* Ensure all buttons have comfortable touch targets on mobile */
.btn {
    touch-action: manipulation;
}
@media (max-width: 768px) {
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

/* Sidebar First Read This Guide Button */
.guide-highlight-link {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.12) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    color: #fbbf24 !important;
    transition: all 0.25s ease-in-out;
}
.guide-highlight-link:hover,
.guide-highlight-link.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.guide-highlight-link:hover i,
.guide-highlight-link.active i {
    color: #ffffff !important;
}
.guide-highlight-link:hover .badge,
.guide-highlight-link.active .badge {
    background: #ffffff !important;
    color: #92400e !important;
}



