/* ============================================================
   SMMpro User Panel — Enhanced UI/UX Design System
   Full page-level styles for all authenticated user views
   ============================================================ */

/* ─── Layout Shell ──────────────────────────────────────────── */
.app-frame {
    display: flex;
    min-height: 100vh;
    background: var(--smm-off-white);
}

/* ─── Header / Navbar ───────────────────────────────────────── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid rgba(91, 75, 251, 0.1);
    padding: 0 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.app-header.shadow-on-scroll {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Workspace Switcher */
.workspace-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--smm-lavender);
    border: 1px solid rgba(91, 75, 251, 0.2);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    max-width: 220px;
}
.workspace-switcher:hover {
    background: var(--smm-soft-violet);
    border-color: var(--smm-primary);
}
.workspace-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* Avatar header circle */
.avatar-header-sm {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--smm-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}
.avatar-header-md {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--smm-primary) 0%, var(--smm-primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(91, 75, 251, 0.3);
}

/* Search Bar */
.header-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--smm-white);
    border: 1px solid var(--smm-grey-mid);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 400px;
    max-width: 100%;
    transition: var(--transition-base);
}
.header-search-bar:focus-within {
    border-color: var(--smm-primary);
    box-shadow: 0 0 0 3px rgba(91, 75, 251, 0.1);
}
.header-search-bar input {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-heading);
    outline: none;
    flex: 1;
    min-width: 0;
}
.header-search-bar input::placeholder { color: var(--text-muted); }
.header-kbd {
    background: var(--smm-lavender);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Icon Action Buttons in header */
.header-icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--smm-grey-mid);
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
}
.header-icon-btn:hover {
    background: var(--smm-lavender);
    border-color: var(--smm-primary);
    color: var(--smm-primary);
}

/* User dropdown */
.header-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
}
.header-user-info {
    text-align: left;
}
.header-user-info .user-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
}
.user-plan-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 100px;
    background: var(--smm-lavender);
    color: var(--smm-primary);
    text-transform: uppercase;
}

/* Header dropdown */
.header-dropdown {
    min-width: 260px;
    border-radius: 16px;
    border: 1px solid var(--smm-grey-light);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    padding: 0;
    overflow: hidden;
    margin-top: 10px;
}
.header-dropdown-header {
    background: var(--smm-lavender);
    padding: 14px 16px;
    border-bottom: 1px solid var(--smm-grey-light);
}
.header-dropdown-header .email-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-dropdown-header .label-text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}
.header-dropdown .dropdown-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    padding: 9px 16px;
    margin: 2px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}
.header-dropdown .dropdown-item:hover {
    background: var(--smm-lavender);
    color: var(--smm-primary);
}
.header-dropdown .dropdown-item.text-danger:hover {
    background: #FEE2E2;
    color: var(--smm-danger);
}

/* Mobile hamburger */
.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--smm-lavender);
    border: 1px solid rgba(91, 75, 251, 0.2);
    color: var(--smm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}
.mobile-menu-toggle:hover { background: var(--smm-soft-violet); }


/* ─── Page Header Section ───────────────────────────────────── */
.page-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.page-eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--smm-primary);
    margin-bottom: 4px;
    display: block;
}
.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 4px;
}
.page-subtitle {
    font-size: 15px;
    color: var(--text-body);
    margin: 0;
}
.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}


/* ─── Stats / KPI Row ───────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.kpi-card-new {
    background: var(--smm-white);
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid var(--smm-grey-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.kpi-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(91, 75, 251, 0.1);
}
.kpi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.kpi-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--smm-lavender);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--smm-primary);
}
.kpi-icon-wrap.success { background: #DCFCE7; color: var(--smm-success); }
.kpi-icon-wrap.warning { background: #FEF3C7; color: var(--smm-warning); }
.kpi-icon-wrap.danger  { background: #FEE2E2; color: var(--smm-danger); }
.kpi-icon-wrap.info    { background: #DBEAFE; color: var(--smm-info); }
.kpi-badge-trend {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
}
.kpi-badge-trend.up { background: #DCFCE7; color: var(--smm-success); }
.kpi-badge-trend.down { background: #FEE2E2; color: var(--smm-danger); }
.kpi-badge-trend.neutral { background: var(--smm-lavender); color: var(--smm-primary); }
.kpi-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
    letter-spacing: -0.03em;
}
.kpi-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}


/* ─── Cards ─────────────────────────────────────────────────── */
.panel-card {
    background: var(--smm-white);
    border-radius: 18px;
    border: 1px solid var(--smm-grey-light);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.panel-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--smm-grey-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--smm-lavender);
}
.panel-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}
.panel-card-body { padding: 24px; }


/* ─── Tables ─────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table th {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--smm-grey-light);
    white-space: nowrap;
    background: transparent;
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--smm-grey-light);
    vertical-align: middle;
    font-size: 14px;
    color: var(--text-body);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr {
    transition: background 0.15s;
}
.data-table tbody tr:hover { background: var(--smm-off-white); }
.data-table th:first-child, .data-table td:first-child { padding-left: 24px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 24px; }

/* ─── Table SMM (Primary table class, used across all pages) ── */
.table-smm {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.table-smm thead th {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 14px 16px;
    border-bottom: 2px solid var(--smm-grey-light);
    background: var(--smm-lavender);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}
.table-smm td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--smm-grey-light);
    vertical-align: middle;
    color: var(--text-body);
}
.table-smm tbody tr {
    transition: background 0.15s ease;
}
.table-smm tbody tr:hover {
    background: rgba(91, 75, 251, 0.02);
}
.table-smm tbody tr:last-child td {
    border-bottom: none;
}
.table-smm th:first-child,
.table-smm td:first-child { padding-left: 24px; }
.table-smm th:last-child,
.table-smm td:last-child { padding-right: 24px; }


/* ─── Campaign Avatar ────────────────────────────────────────── */
.campaign-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--smm-lavender);
    color: var(--smm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.subscriber-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: var(--smm-lavender);
    color: var(--smm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}


/* ─── Inline Progress Bars ───────────────────────────────────── */
.inline-progress {
    width: 80px;
    height: 6px;
    background: var(--smm-grey-light);
    border-radius: 100px;
    overflow: hidden;
    display: inline-block;
}
.inline-progress-bar {
    height: 100%;
    border-radius: 100px;
    background: var(--smm-primary);
    transition: width 0.5s ease;
}
.inline-progress-bar.success { background: var(--smm-success); }
.inline-progress-bar.warning { background: var(--smm-warning); }
.inline-progress-bar.info    { background: var(--smm-info); }


/* ─── Search Bar (In page) ───────────────────────────────────── */
.page-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--smm-white);
    border: 1px solid var(--smm-grey-mid);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    transition: var(--transition-base);
    width: 260px;
    max-width: 100%;
}
.page-search:focus-within {
    border-color: var(--smm-primary);
    box-shadow: 0 0 0 3px rgba(91, 75, 251, 0.1);
}
.page-search input {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    flex: 1;
    min-width: 0;
    color: var(--text-heading);
}
.page-search input::placeholder { color: var(--text-muted); }


/* ─── Donut Chart / Legend ───────────────────────────────────── */
.donut-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 16px solid var(--smm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 0 2px var(--smm-lavender), inset 0 0 0 2px rgba(255,255,255,0.6);
}
.donut-ring-multi {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 16px solid var(--smm-primary);
    border-right-color: var(--smm-success);
    border-bottom-color: var(--smm-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.donut-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.donut-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
}
.donut-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-body);
}
.legend-dot-sm {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    display: inline-block;
}


/* ─── Chart Area ─────────────────────────────────────────────── */
.chart-area {
    height: 300px;
    background: linear-gradient(180deg, var(--smm-lavender) 0%, transparent 100%);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-placeholder-icon {
    color: var(--text-muted);
    opacity: 0.4;
    text-align: center;
    pointer-events: none;
}
.chart-canvas-wrap {
    position: relative;
    height: 300px;
}


/* ─── Empty State ────────────────────────────────────────────── */
.empty-panel {
    text-align: center;
    padding: 64px 24px;
}
.empty-panel-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--smm-lavender);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--smm-primary);
    margin: 0 auto 20px;
}
.empty-panel h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}
.empty-panel p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}


/* ─── Alerts ─────────────────────────────────────────────────── */
.panel-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.panel-alert .alert-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.panel-alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.panel-alert-success .alert-icon { background: #DCFCE7; color: var(--smm-success); }
.panel-alert-danger { background: #FFF5F5; border: 1px solid #FED7D7; color: #9B2335; }
.panel-alert-danger .alert-icon { background: #FEE2E2; color: var(--smm-danger); }
.panel-alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.panel-alert-warning .alert-icon { background: #FEF3C7; color: var(--smm-warning); }
.panel-alert-info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8; }
.panel-alert-info .alert-icon { background: #DBEAFE; color: var(--smm-info); }


/* ─── Form Enhancements ──────────────────────────────────────── */
.form-section {
    background: var(--smm-white);
    border-radius: 16px;
    border: 1px solid var(--smm-grey-light);
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-title i { font-size: 18px; color: var(--smm-primary); }
.form-label-up {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 7px;
}
.input-smm {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-heading);
    background: var(--smm-lavender);
    border: 1px solid transparent;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.input-smm:focus {
    background: var(--smm-white);
    border-color: var(--smm-primary);
    box-shadow: 0 0 0 3px rgba(91, 75, 251, 0.12);
}
.input-smm::placeholder { color: var(--text-muted); }
.select-smm {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}


/* ─── Pagination ─────────────────────────────────────────────── */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 0;
    flex-wrap: wrap;
}
.pagination-btn {
    height: 36px;
    min-width: 36px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--smm-grey-mid);
    background: var(--smm-white);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-base);
}
.pagination-btn:hover {
    background: var(--smm-lavender);
    border-color: var(--smm-primary);
    color: var(--smm-primary);
}
.pagination-btn.active {
    background: var(--smm-primary);
    border-color: var(--smm-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(91, 75, 251, 0.3);
}
.pagination-btn:disabled, .pagination-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}


/* ─── Bulk Toolbar ───────────────────────────────────────────── */
.bulk-toolbar {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text-heading);
    color: #fff;
    padding: 14px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.24);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 200;
    white-space: nowrap;
}
.bulk-toolbar.visible {
    transform: translateX(-50%) translateY(0);
}
.bulk-count-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--smm-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}


/* ─── Analytics Bento Grid ───────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.bento-card { grid-column: span 12; }
.bento-6  { grid-column: span 6; }
.bento-4  { grid-column: span 4; }
.bento-3  { grid-column: span 3; }

/* ─── AI Tools ───────────────────────────────────────────────── */
.ai-feature-card {
    background: linear-gradient(135deg, rgba(91, 75, 251, 0.06) 0%, rgba(255,255,255,1) 100%);
    border: 1px solid rgba(91, 75, 251, 0.15);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.ai-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(91, 75, 251, 0.14);
    border-color: var(--smm-primary);
}
.ai-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--smm-primary) 0%, var(--smm-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(91, 75, 251, 0.3);
}
.ai-feature-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}
.ai-feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ─── List Cards (Subscriber Lists) ──────────────────────────── */
.list-card {
    background: var(--smm-white);
    border: 1px solid var(--smm-grey-light);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
    height: 100%;
}
.list-card:hover {
    box-shadow: 0 12px 40px rgba(91, 75, 251, 0.1);
    transform: translateY(-3px);
    border-color: rgba(91, 75, 251, 0.2);
}
.list-card-header {
    background: var(--smm-lavender);
    padding: 20px 22px;
    border-bottom: 1px solid var(--smm-grey-light);
}
.list-card-stat {
    background: var(--smm-lavender);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}
.list-card-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-heading);
    display: block;
    line-height: 1.1;
}
.list-card-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}


/* ─── Settings Pages ─────────────────────────────────────────── */
.settings-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: var(--transition-base);
}
.settings-nav-link:hover { background: var(--smm-lavender); color: var(--smm-primary); }
.settings-nav-link.active { background: var(--smm-lavender); color: var(--smm-primary); font-weight: 700; }
.settings-nav-link i { font-size: 16px; }

/* Profile image upload */
.profile-upload-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--smm-grey-light);
    padding: 3px;
    position: relative;
    margin: 0 auto;
}
.profile-upload-ring img,
.profile-upload-ring .profile-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.profile-initials {
    background: var(--smm-lavender);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--smm-primary);
}
.profile-upload-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--smm-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(91, 75, 251, 0.3);
}


/* ─── Auth Pages ─────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--smm-grey-light);
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 20px;
    background: var(--smm-white);
    border: 1px solid var(--smm-grey-mid);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    transition: var(--transition-base);
}
.social-btn:hover {
    background: var(--smm-lavender);
    border-color: var(--smm-primary);
    color: var(--smm-primary);
}


/* ─── Footer ─────────────────────────────────────────────────── */
.app-footer {
    background: var(--smm-dark-navy);
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 40px 28px;
    margin-top: auto;
}
.footer-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--smm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.footer-heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
}
.footer-link {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.9); }
.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 16px;
}
.footer-social-btn:hover {
    background: var(--smm-primary);
    color: #fff;
}
.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--smm-success);
}
.footer-divider {
    border-color: rgba(255,255,255,0.06);
    margin: 28px 0 20px;
}

/* Footer responsive */
@media (max-width: 767px) {
    .app-footer { padding: 32px 16px 20px; }
    .app-footer .row.g-5 { --bs-gutter-y: 28px; }
    .footer-heading { margin-bottom: 10px; }
}


/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-6 { grid-column: span 12; }
    .bento-4 { grid-column: span 6; }
    .bento-3 { grid-column: span 6; }
    .header-search-bar { width: 300px; }
}

@media (max-width: 991px) {
    .page-title { font-size: 26px; }
    .kpi-num { font-size: 24px; }
    .header-search-bar { display: none !important; }
    .panel-card-header { flex-wrap: wrap; gap: 10px; }
    .page-intro { flex-direction: column; align-items: flex-start; }
    .bento-4 { grid-column: span 12; }
    .bento-3 { grid-column: span 12; }
}

@media (max-width: 767px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .page-intro { gap: 12px; }
    .page-actions { width: 100%; }
    .page-actions .btn-smm { flex: 1; justify-content: center; }
    .app-header { padding: 0 14px; }
    .workspace-name { max-width: 100px; }
    .header-dropdown { min-width: 220px; }
    .data-table th:nth-child(4),
    .data-table td:nth-child(4) { display: none; }
    .bulk-toolbar { left: 12px; right: 12px; transform: translateX(0) translateY(80px); width: auto; }
    .bulk-toolbar.visible { transform: translateX(0) translateY(0); }
}

@media (max-width: 575px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .kpi-num { font-size: 22px; }
    .kpi-icon-wrap { width: 38px; height: 38px; font-size: 17px; }
    .panel-card-header { padding: 14px 16px; }
    .panel-card-body { padding: 16px; }
    .data-table th:nth-child(3),
    .data-table td:nth-child(3) { display: none; }
    .page-title { font-size: 22px; }
    .workspace-switcher { display: none !important; }
    .header-user-info { display: none; }
    .header-actions .header-icon-btn:not(:last-child) { display: none; }
}

/* ─── Mobile Sidebar Overlay ─────────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
}
.sidebar-overlay.active { display: block; }

@media (max-width: 1199px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    .app-sidebar.open {
        transform: translateX(0);
    }
    .app-main.sidebar-wrapper.content-area {
        margin-left: 0 !important;
    }
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.anim-slide-up { animation: slideUp 0.35s ease forwards; }
.anim-fade-in  { animation: fadeIn 0.3s ease forwards; }

/* Stagger animation utility */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }

/* ─── Analytics AI Panel ─────────────────────────────────────── */
.ai-insight-panel {
    background: linear-gradient(135deg, rgba(91, 75, 251, 0.06) 0%, rgba(255,255,255,1) 100%);
}
.ai-insight-content {
    font-size: 1.02rem;
    line-height: 1.65;
}

/* ─── Extra Icon Box Sizes ───────────────────────────────────── */
.icon-box-xs {
    width: 32px; height: 32px; min-width: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.icon-box-sm {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.icon-box-lg {
    width: 64px; height: 64px; min-width: 64px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.icon-box-xl {
    width: 80px; height: 80px; min-width: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
}

/* chart area heights */
.chart-350 { height: 350px; }
.chart-200 { height: 200px; }

/* ─── Pulse Status Dot ───────────────────────────────────────── */
.status-dot {
    width: 10px; height: 10px; min-width: 10px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.online  { background: var(--smm-success); }
.status-dot.paused  { background: var(--smm-warning); }
.status-dot.offline { background: var(--smm-danger); }

/* ─── Misc ───────────────────────────────────────────────────── */
.mb-10 { margin-bottom: 64px; }
.py-10 { padding-top: 64px; padding-bottom: 64px; }

.text-gradient-primary {
    background: linear-gradient(135deg, var(--smm-primary) 0%, var(--smm-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hover-lift { transition: transform 0.2s, box-shadow 0.2s; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(91, 75, 251, 0.12); }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rounded-xl  { border-radius: 16px !important; }
.rounded-2xl { border-radius: 20px !important; }
.rounded-3xl { border-radius: 24px !important; }
.overflow-hidden { overflow: hidden; }
.sticky-top-100 { position: sticky; top: 100px; }
.z-10 { z-index: 10; }

/* ─── Button Group SMM (Analytics Toggles) ────────────────────────── */
.btn-group-smm {
    display: inline-flex;
    background: var(--smm-lavender);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(91, 75, 251, 0.08);
}

.btn-group-smm button {
    border: none;
    background: transparent;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    outline: none !important;
}

.btn-group-smm button:hover {
    color: var(--smm-primary);
}

.btn-group-smm button.active {
    background: #fff;
    color: var(--smm-primary);
    box-shadow: 0 4px 10px rgba(91, 75, 251, 0.1);
}

/* ─── Premium Card Enhancements ────────────────────────────── */
.shadow-premium {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
}
