/* ========================================================
   WAVVY DESIGN SYSTEM - Unified Cute & Modern Theme
   Reusable across Dashboard, Sessions, Campaigns & All Pages
   ======================================================== */

/* ========================================
   1. PAGE HEADERS & ACTIONS
   ======================================== */
.page-header-wrap,
.sessions-page-header,
.campaigns-page-header {
    margin-bottom: 1.5rem;
}

/* Final support ticket mobile chat redesign */
.ticket-mobile-shell {
    --chat-green: #128c7e;
    --chat-green-dark: #075e54;
    --chat-mint: #dcf8c6;
    --chat-bg: #efe7dd;
    --chat-ink: #111827;
    --chat-muted: #667085;
    --chat-line: #e4e7ec;
    max-width: 980px;
    margin: 0 auto;
    background: var(--chat-bg);
    border: 1px solid #d8d2c8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.12);
}

.ticket-chat-header {
    align-items: center;
    background: var(--chat-green-dark);
    color: #ffffff;
    display: grid;
    grid-template-columns: 42px 42px minmax(0, 1fr) 42px;
    gap: 9px;
    min-height: 64px;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 8;
}

.ticket-chat-icon,
.ticket-chat-avatar,
.ticket-mini-avatar,
.ticket-composer-icon,
.ticket-composer-send {
    align-items: center;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.ticket-chat-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    height: 40px;
    width: 40px;
}

.ticket-chat-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.ticket-chat-avatar {
    background: #21a67a;
    color: #ffffff;
    height: 42px;
    width: 42px;
}

.ticket-chat-title {
    min-width: 0;
}

.ticket-chat-title strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-chat-title span {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-info-sheet {
    background: #ffffff;
    border-bottom: 1px solid var(--chat-line);
    padding: 10px 12px;
}

.ticket-main-state,
.ticket-fast-actions,
.ticket-bubble-files,
.ticket-composer-files {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ticket-main-state {
    margin-bottom: 9px;
}

.ticket-state {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 850;
}

.ticket-state-open,
.ticket-state-resolved,
.ticket-priority-low {
    background: #ecfdf3;
    color: #067647;
}

.ticket-state-progress,
.ticket-priority-medium {
    background: #eff8ff;
    color: #175cd3;
}

.ticket-state-answered,
.ticket-state-waiting,
.ticket-priority-high {
    background: #fffaeb;
    color: #b54708;
}

.ticket-state-closed {
    background: #f2f4f7;
    color: #475467;
}

.ticket-priority-urgent {
    background: #fef3f2;
    color: #b42318;
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--chat-line);
    border: 1px solid var(--chat-line);
    border-radius: 8px;
    overflow: hidden;
}

.ticket-info-grid div {
    background: #ffffff;
    min-width: 0;
    padding: 9px 10px;
}

.ticket-info-grid span {
    color: var(--chat-muted);
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ticket-info-grid strong {
    color: var(--chat-ink);
    display: block;
    font-size: 0.84rem;
    font-weight: 850;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-fast-actions {
    margin-top: 9px;
}

.ticket-fast-actions button,
.ticket-fast-actions a {
    align-items: center;
    background: #f2f4f7;
    border: 0;
    border-radius: 999px;
    color: #344054;
    display: inline-flex;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 850;
}

.ticket-fast-actions button {
    background: var(--chat-green);
    color: #ffffff;
}

.ticket-chat-body {
    background-color: var(--chat-bg);
    min-height: 460px;
    max-height: calc(100vh - 322px);
    overflow-y: auto;
    padding: 14px 12px;
}

.ticket-chat-row {
    display: flex;
    gap: 7px;
    margin-bottom: 10px;
}

.ticket-chat-row.mine {
    justify-content: flex-end;
}

.ticket-mini-avatar {
    background: #ffffff;
    color: var(--chat-green-dark);
    flex: 0 0 31px;
    height: 31px;
    width: 31px;
}

.ticket-chat-bubble {
    background: #ffffff;
    border-radius: 8px 8px 8px 2px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.12);
    color: var(--chat-ink);
    max-width: min(76%, 620px);
    min-width: 124px;
    padding: 8px 10px;
}

.ticket-chat-row.mine .ticket-chat-bubble {
    background: var(--chat-mint);
    border-radius: 8px 8px 2px 8px;
}

.ticket-bubble-top {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 3px;
}

.ticket-bubble-top strong {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 850;
}

.ticket-bubble-top time {
    color: #667085;
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
}

.ticket-bubble-text {
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ticket-bubble-files {
    border-top: 1px solid rgba(102, 112, 133, 0.18);
    margin-top: 7px;
    padding-top: 7px;
}

.ticket-photo-file img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    width: 126px;
}

.ticket-doc-file {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(102, 112, 133, 0.22);
    border-radius: 8px;
    color: #101828;
    display: inline-flex;
    gap: 7px;
    max-width: 210px;
    min-height: 36px;
    padding: 7px 9px;
    text-decoration: none;
}

.ticket-doc-file span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-chat-empty {
    align-items: center;
    color: #667085;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    min-height: 280px;
    text-align: center;
}

.ticket-chat-empty i {
    color: var(--chat-green);
    font-size: 2rem;
}

.ticket-chat-empty strong {
    color: var(--chat-ink);
}

.ticket-chat-composer {
    background: #f0f2f5;
    border-top: 1px solid #d0d5dd;
    padding: 10px 12px;
    position: sticky;
    bottom: 0;
    z-index: 7;
}

.ticket-chat-composer form {
    align-items: end;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
}

.ticket-chat-composer textarea {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 20px !important;
    color: var(--chat-ink) !important;
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
    max-height: 120px;
    min-height: 42px;
    padding: 10px 13px !important;
    resize: none;
}

.ticket-chat-composer textarea:focus {
    border-color: var(--chat-green) !important;
    box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.14) !important;
}

.ticket-composer-icon,
.ticket-composer-send {
    height: 42px;
    width: 42px;
}

.ticket-composer-icon {
    background: #ffffff;
    color: #475467;
}

.ticket-composer-send {
    background: var(--chat-green);
    color: #ffffff;
}

.ticket-composer-send:disabled {
    opacity: 0.7;
}

.ticket-composer-files {
    grid-column: 1 / -1;
}

.ticket-composer-file {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    color: #344054;
    display: inline-flex;
    gap: 7px;
    max-width: 210px;
    min-height: 31px;
    padding: 5px 8px;
    font-size: 0.76rem;
}

.ticket-composer-file span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-reopen-note {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    font-size: 0.82rem;
}

@media (max-width: 767.98px) {
    .ticket-mobile-shell {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin-left: -10px;
        margin-right: -10px;
    }

    .ticket-chat-header {
        grid-template-columns: 38px 38px minmax(0, 1fr) 38px;
        gap: 7px;
        min-height: 58px;
        padding: 8px 10px;
    }

    .ticket-chat-icon,
    .ticket-chat-avatar {
        height: 38px;
        width: 38px;
    }

    .ticket-chat-title strong {
        font-size: 0.92rem;
    }

    .ticket-info-sheet {
        padding: 8px 10px;
    }

    .ticket-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ticket-chat-body {
        max-height: none;
        min-height: calc(100vh - 312px);
        padding: 10px 8px;
    }

    .ticket-chat-bubble {
        max-width: 84%;
        padding: 8px 9px;
    }

    .ticket-mini-avatar {
        flex-basis: 28px;
        height: 28px;
        width: 28px;
    }

    .ticket-photo-file img {
        width: 104px;
    }

    .ticket-chat-composer {
        padding: 8px 9px;
    }

    .ticket-chat-composer form {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 7px;
    }

    .ticket-composer-icon,
    .ticket-composer-send {
        height: 38px;
        width: 38px;
    }
}

/* ==========================================
   Support Ticket Detail - Case File Redesign
   ========================================== */
.ticket-workspace {
    --ticket-ink: #14151a;
    --ticket-muted: #6b7280;
    --ticket-line: #e7e9ee;
    --ticket-paper: #ffffff;
    --ticket-soft: #f5f7fa;
    --ticket-green: #0f9f6e;
    --ticket-blue: #2563eb;
    --ticket-yellow: #f5b51b;
    --ticket-red: #dc2626;
    max-width: 1060px;
    margin: 0 auto;
    padding-bottom: 28px;
}

.ticket-hero {
    color: #ffffff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #111827 0%, #0f766e 100%);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.ticket-tone-warn {
    background: linear-gradient(135deg, #18181b 0%, #b45309 100%);
}

.ticket-tone-info {
    background: linear-gradient(135deg, #111827 0%, #1d4ed8 100%);
}

.ticket-tone-done {
    background: linear-gradient(135deg, #111827 0%, #166534 100%);
}

.ticket-tone-muted {
    background: linear-gradient(135deg, #18181b 0%, #475569 100%);
}

.ticket-hero-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ticket-round-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.ticket-round-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.24);
}

.ticket-id-stack span,
.ticket-metric span,
.ticket-message-head span {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ticket-id-stack span {
    color: rgba(255, 255, 255, 0.72);
}

.ticket-id-stack strong {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
}

.ticket-hero-main h1 {
    font-size: 1.72rem;
    line-height: 1.12;
    font-weight: 900;
    margin: 10px 0 14px;
    max-width: 760px;
    overflow-wrap: anywhere;
}

.ticket-status-row,
.ticket-action-bar,
.ticket-reply-tools,
.ticket-attachments,
.ticket-selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    gap: 7px;
    min-height: 32px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 850;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.ticket-pill-danger {
    background: rgba(220, 38, 38, 0.88);
}

.ticket-pill-warn {
    background: rgba(245, 181, 27, 0.9);
    color: #241a04;
}

.ticket-pill-muted {
    background: rgba(255, 255, 255, 0.18);
}

.ticket-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.ticket-metric {
    background: var(--ticket-paper);
    border: 1px solid var(--ticket-line);
    border-radius: 8px;
    padding: 10px;
    min-width: 0;
}

.ticket-metric span {
    color: var(--ticket-muted);
}

.ticket-metric strong {
    color: var(--ticket-ink);
    display: block;
    font-size: 0.88rem;
    font-weight: 850;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-action-bar {
    background: var(--ticket-paper);
    border: 1px solid var(--ticket-line);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 8px;
}

.ticket-action,
.ticket-tool-btn,
.ticket-send-btn {
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 850;
    min-height: 40px;
    padding: 9px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.ticket-action {
    background: #f1f5f9;
    color: #263244;
}

.ticket-action.primary,
.ticket-send-btn {
    background: var(--ticket-green);
    color: #ffffff;
}

.ticket-conversation {
    background: var(--ticket-paper);
    border: 1px solid var(--ticket-line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.ticket-timeline {
    background: linear-gradient(90deg, #f8fafc 0, #f8fafc 42px, #eef2f7 42px, #eef2f7 44px, #f8fafc 44px);
    max-height: calc(100vh - 310px);
    min-height: 420px;
    overflow-y: auto;
    padding: 14px 14px 14px 0;
    scroll-behavior: smooth;
}

.ticket-message {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.ticket-message-pin {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.ticket-message-pin span {
    align-items: center;
    background: #ffffff;
    border: 2px solid #d7dce5;
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.ticket-message-card {
    background: #ffffff;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    padding: 12px;
}

.ticket-message.from-user .ticket-message-card {
    border-color: rgba(15, 159, 110, 0.34);
    box-shadow: inset 4px 0 0 var(--ticket-green);
}

.ticket-message.from-support .ticket-message-card {
    border-color: rgba(37, 99, 235, 0.26);
    box-shadow: inset 4px 0 0 var(--ticket-blue);
}

.ticket-message-head {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ticket-message-head strong {
    color: var(--ticket-ink);
    display: block;
    font-size: 0.94rem;
}

.ticket-message-head span,
.ticket-message-head time {
    color: var(--ticket-muted);
}

.ticket-message-head time {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 700;
}

.ticket-message-text {
    color: #1f2937;
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ticket-attachments {
    border-top: 1px solid var(--ticket-line);
    margin-top: 10px;
    padding-top: 10px;
}

.ticket-image-file img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    border: 1px solid var(--ticket-line);
    object-fit: cover;
    width: 124px;
}

.ticket-download-file {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--ticket-line);
    border-radius: 8px;
    color: #111827;
    display: inline-flex;
    gap: 8px;
    max-width: 240px;
    min-height: 38px;
    padding: 8px 10px;
    text-decoration: none;
}

.ticket-download-file span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-reply-dock {
    background: #ffffff;
    border-top: 1px solid var(--ticket-line);
    padding: 12px;
    position: sticky;
    bottom: 0;
    z-index: 3;
}

.ticket-reply-input {
    background: #f8fafc !important;
    border: 1px solid #cfd7e3 !important;
    border-radius: 8px !important;
    color: var(--ticket-ink) !important;
    font-size: 0.94rem !important;
    padding: 10px 11px !important;
    resize: vertical;
}

.ticket-reply-input:focus {
    background: #ffffff !important;
    border-color: var(--ticket-green) !important;
    box-shadow: 0 0 0 3px rgba(15, 159, 110, 0.14) !important;
}

.ticket-reply-tools {
    align-items: center;
    margin-top: 9px;
}

.ticket-tool-btn {
    background: #eef2f7;
    color: #334155;
}

.ticket-send-btn {
    margin-left: auto;
}

.ticket-send-btn:disabled {
    opacity: 0.72;
}

.ticket-selected-files {
    flex: 1 1 220px;
}

.ticket-selected-file {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--ticket-line);
    border-radius: 999px;
    display: inline-flex;
    gap: 7px;
    max-width: 190px;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 0.76rem;
}

.ticket-selected-file span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-lock-note {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #7c2d12;
    display: flex;
    gap: 8px;
    margin-bottom: 9px;
    padding: 8px 10px;
    font-size: 0.84rem;
}

.ticket-empty-state {
    align-items: center;
    color: var(--ticket-muted);
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    min-height: 280px;
    padding-left: 44px;
    text-align: center;
}

.ticket-empty-state i {
    color: #94a3b8;
    font-size: 2rem;
}

.ticket-empty-state strong {
    color: var(--ticket-ink);
}

@media (max-width: 767.98px) {
    .ticket-workspace {
        margin-left: -10px;
        margin-right: -10px;
        padding-bottom: 0;
    }

    .ticket-hero {
        border-radius: 0 0 18px 18px;
        margin-bottom: 8px;
        min-height: 210px;
        padding: 12px;
    }

    .ticket-hero-main h1 {
        font-size: 1.35rem;
        line-height: 1.16;
    }

    .ticket-metrics {
        display: flex;
        gap: 8px;
        margin: 0 0 8px;
        overflow-x: auto;
        padding: 0 10px 2px;
    }

    .ticket-metric {
        flex: 0 0 134px;
    }

    .ticket-action-bar {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin-bottom: 8px;
        overflow-x: auto;
        padding: 8px 10px;
    }

    .ticket-action {
        flex: 0 0 auto;
    }

    .ticket-conversation {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .ticket-timeline {
        background: linear-gradient(90deg, #f8fafc 0, #f8fafc 25px, #e3e8ef 25px, #e3e8ef 27px, #f8fafc 27px);
        max-height: none;
        min-height: calc(100vh - 390px);
        padding: 10px 10px 10px 0;
    }

    .ticket-message {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 4px;
    }

    .ticket-message-pin span {
        height: 26px;
        width: 26px;
    }

    .ticket-message-card {
        padding: 10px;
    }

    .ticket-message-head {
        display: block;
    }

    .ticket-message-head time {
        display: block;
        margin-top: 2px;
    }

    .ticket-image-file img {
        width: 96px;
    }

    .ticket-reply-dock {
        padding: 10px;
    }

    .ticket-tool-btn span,
    .ticket-send-btn span {
        display: none;
    }

    .ticket-tool-btn,
    .ticket-send-btn {
        min-width: 42px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .ticket-selected-files {
        flex-basis: 100%;
        order: 3;
    }
}

.page-title-wrap,
.sessions-title-wrap,
.campaigns-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title,
.sessions-page-title,
.campaigns-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cute-emoji-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    border-radius: 12px;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}
.cute-emoji-badge:hover {
    transform: scale(1.15) rotate(8deg);
}

.page-desc,
.sessions-page-desc,
.campaigns-page-desc {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cute-sparkle-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: cutePulse 2s infinite;
}
@keyframes cutePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

.btn-cute-create {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.925rem;
    padding: 0.65rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}
.btn-cute-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.42);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
}
.btn-cute-create:active {
    transform: scale(0.97);
}
.btn-cute-icon-bubble {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* ========================================
   2. UNIFIED STAT CARDS (2-col mobile, 4-col desktop)
   ======================================== */
.dash-stats,
.cute-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
    margin-bottom: 24px;
}
@media (min-width: 992px) {
    .dash-stats,
    .cute-stat-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px;
    }
}

.dash-stat-card,
.cute-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    text-decoration: none;
}
.dash-stat-card::before,
.cute-stat-card::before {
    content: '';
    position: absolute;
    top: -24px;
    right: -24px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    opacity: 0.35;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}
.dash-stat-card:hover,
.cute-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    border-color: rgba(203, 213, 225, 0.9);
}
.dash-stat-card:hover::before,
.cute-stat-card:hover::before {
    transform: scale(1.4);
    opacity: 0.6;
}

/* Card theme variant glows */
.dash-stat-card.green::before, .cute-stat-card.green::before { background: radial-gradient(circle, #a7f3d0 0%, transparent 70%); }
.dash-stat-card.orange::before, .cute-stat-card.orange::before, .cute-stat-card.amber::before { background: radial-gradient(circle, #fde68a 0%, transparent 70%); }
.dash-stat-card.purple::before, .cute-stat-card.purple::before { background: radial-gradient(circle, #ddd6fe 0%, transparent 70%); }
.dash-stat-card.red::before, .cute-stat-card.red::before { background: radial-gradient(circle, #fecdd3 0%, transparent 70%); }
.dash-stat-card.blue::before, .cute-stat-card.blue::before { background: radial-gradient(circle, #bfdbfe 0%, transparent 70%); }
.dash-stat-card.teal::before, .cute-stat-card.teal::before { background: radial-gradient(circle, #99f6e4 0%, transparent 70%); }

.dash-stat-icon,
.cute-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dash-stat-card:hover .dash-stat-icon,
.cute-stat-card:hover .cute-icon-box {
    transform: scale(1.08) rotate(3deg);
}

.dash-stat-card.green .dash-stat-icon, .cute-stat-card.green .cute-icon-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    color: #059669;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.14);
}
.dash-stat-card.orange .dash-stat-icon, .cute-stat-card.orange .cute-icon-box, .cute-stat-card.amber .cute-icon-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    color: #d97706;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.12);
}
.dash-stat-card.purple .dash-stat-icon, .cute-stat-card.purple .cute-icon-box {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    color: #7c3aed;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.12);
}
.dash-stat-card.red .dash-stat-icon, .cute-stat-card.red .cute-icon-box {
    background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
    border: 1px solid #fecdd3;
    color: #e11d48;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.12);
}
.dash-stat-card.blue .dash-stat-icon, .cute-stat-card.blue .cute-icon-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #2563eb;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
}
.dash-stat-card.teal .dash-stat-icon, .cute-stat-card.teal .cute-icon-box {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
    color: #0d9488;
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.12);
}
.dash-stat-card.rose .dash-stat-icon, .cute-stat-card.rose .cute-icon-box {
    background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%);
    border: 1px solid #fda4af;
    color: #e11d48;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.12);
}
.dash-stat-card.pink .dash-stat-icon, .cute-stat-card.pink .cute-icon-box {
    background: linear-gradient(135deg, #fdf4ff 0%, #f5d0fe 100%);
    border: 1px solid #e879f9;
    color: #c026d3;
    box-shadow: 0 3px 10px rgba(192, 38, 211, 0.12);
}
.dash-stat-card.sky .dash-stat-icon, .cute-stat-card.sky .cute-icon-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 100%);
    border: 1px solid #7dd3fc;
    color: #0284c7;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.12);
}
.dash-stat-card.indigo .dash-stat-icon, .cute-stat-card.indigo .cute-icon-box {
    background: linear-gradient(135deg, #eef2ff 0%, #c7d2fe 100%);
    border: 1px solid #a5b4fc;
    color: #4338ca;
    box-shadow: 0 3px 10px rgba(67, 56, 202, 0.12);
}

/* Glow variants for rose/pink/sky/indigo */
.dash-stat-card.rose::before, .cute-stat-card.rose::before { background: radial-gradient(circle, #fda4af 0%, transparent 70%); }
.dash-stat-card.pink::before, .cute-stat-card.pink::before { background: radial-gradient(circle, #f5d0fe 0%, transparent 70%); }
.dash-stat-card.sky::before, .cute-stat-card.sky::before { background: radial-gradient(circle, #bae6fd 0%, transparent 70%); }
.dash-stat-card.indigo::before, .cute-stat-card.indigo::before { background: radial-gradient(circle, #c7d2fe 0%, transparent 70%); }

.dash-stat-info,
.cute-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.dash-stat-value,
.cute-stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.dash-stat-label,
.cute-stat-name {
    font-size: 0.815rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.01em;
}

@media (max-width: 576px) {
    .dash-stat-card,
    .cute-stat-card {
        padding: 14px 15px;
        gap: 12px;
        border-radius: 14px;
    }
    .dash-stat-icon,
    .cute-icon-box {
        width: 44px;
        height: 44px;
        font-size: 17px;
        border-radius: 12px;
    }
    .dash-stat-value,
    .cute-stat-num {
        font-size: 1.45rem;
    }
    .dash-stat-label,
    .cute-stat-name {
        font-size: 0.75rem;
    }
    .page-title,
    .sessions-page-title,
    .campaigns-page-title {
        font-size: 1.35rem;
    }
    .cute-emoji-badge {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
}

/* ========================================
   3. UNIFIED CARDS & CONTAINERS
   ======================================== */
.cute-main-card,
.dash-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}
.cute-main-card:hover,
.dash-card:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.cute-main-card-header,
.dash-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
}

.cute-main-card-title,
.dash-card-header h3 {
    margin: 0;
    font-size: 0.975rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.cute-card-icon-badge,
.cute-card-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    transition: transform 0.2s ease;
}
.dash-card:hover .cute-card-icon-badge,
.cute-main-card:hover .cute-card-badge {
    transform: scale(1.08) rotate(-3deg);
}

.cute-card-icon-badge.blue, .cute-card-badge.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.cute-card-icon-badge.green, .cute-card-badge.green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }
.cute-card-icon-badge.purple, .cute-card-badge.purple { background: #f5f3ff; border: 1px solid #ddd6fe; color: #7c3aed; }
.cute-card-icon-badge.orange, .cute-card-badge.orange { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }
.cute-card-icon-badge.teal, .cute-card-badge.teal { background: #f0fdfa; border: 1px solid #99f6e4; color: #0d9488; }
.cute-card-icon-badge.sky, .cute-card-badge.sky { background: #f0f9ff; border: 1px solid #bae6fd; color: #0284c7; }
.cute-card-icon-badge.pink, .cute-card-badge.pink { background: #fdf4ff; border: 1px solid #f5d0fe; color: #c026d3; }
.cute-card-icon-badge.rose, .cute-card-badge.rose { background: #fff1f2; border: 1px solid #fecdd3; color: #e11d48; }

.cute-header-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.01em;
}
.cute-header-pill.purple { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.cute-header-pill.orange { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.cute-header-pill.teal { background: #f0fdfa; color: #0d9488; border: 1px solid #99f6e4; }
.cute-header-pill.blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.cute-header-pill.green { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.dash-view-all {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #059669;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #a7f3d0;
}
.dash-view-all:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    transform: translateX(2px) scale(1.05);
}

/* ========================================
   4. UNIFIED TABLES & LIST ROWS
   ======================================== */
.cute-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}
.cute-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
}
.cute-table td {
    padding: 15px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.88rem;
}
.cute-table tbody tr {
    transition: background-color 0.15s ease;
}
.cute-table tbody tr:hover {
    background-color: #f8fafc;
}

.campaign-name-cell {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.925rem;
}

/* ========================================
   5. UNIFIED BADGES & STATUS PILLS
   ======================================== */
.cute-session-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}
.cute-session-pill i {
    color: #10b981;
    font-size: 13px;
}

.cute-method-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cute-contacts-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}

.cute-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.cute-status-pill.completed { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.cute-status-pill.running { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.cute-status-pill.pending { background: #f5f3ff; border: 1px solid #ddd6fe; color: #6d28d9; }
.cute-status-pill.paused { background: #f1f5f9; border: 1px solid #cbd5e1; color: #475569; }
.cute-status-pill.failed { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }

.cute-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.cute-status-pill.completed .cute-status-dot { background: #10b981; }
.cute-status-pill.running .cute-status-dot { background: #f59e0b; animation: cutePulse 1.5s infinite; }
.cute-status-pill.pending .cute-status-dot { background: #8b5cf6; }
.cute-status-pill.paused .cute-status-dot { background: #64748b; }
.cute-status-pill.failed .cute-status-dot { background: #ef4444; }

/* ========================================
   6. PROGRESS TRACKS & BARS
   ======================================== */
.cute-progress-box {
    min-width: 170px;
}
.cute-progress-track {
    height: 7px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    border: 1px solid #e2e8f0;
    margin-bottom: 5px;
}
.cute-progress-segment {
    height: 100%;
    transition: width 0.3s ease;
}
.cute-progress-segment.sent { background: linear-gradient(90deg, #10b981, #059669); }
.cute-progress-segment.failed { background: linear-gradient(90deg, #f43f5e, #e11d48); }

.cute-progress-meta {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.cute-date-cell {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

/* ========================================
   7. UNIFIED ACTION BUTTONS
   ======================================== */
.cute-actions-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}
.cute-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}
.cute-action-btn:hover {
    transform: translateY(-2px) scale(1.05);
}
.cute-action-btn.play {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}
.cute-action-btn.play:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}
.cute-action-btn.pause {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
}
.cute-action-btn.pause:hover {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
}
.cute-action-btn.view {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}
.cute-action-btn.view:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}
.cute-action-btn.delete {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}
.cute-action-btn.delete:hover {
    background: #f43f5e;
    color: #ffffff;
    border-color: #f43f5e;
}

/* ========================================
   8. UNIFIED MOBILE CARDS
   ======================================== */
.cute-campaign-mobile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.cute-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.cute-mobile-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.cute-mobile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cute-mobile-progress {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}
.cute-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* ========================================
   9. UNIFIED EMPTY STATES
   ======================================== */
.cute-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.cute-empty-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    color: #d97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}
.cute-empty-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.cute-empty-desc {
    color: #64748b;
    font-size: 0.925rem;
    max-width: 440px;
    margin: 0 auto 20px;
}

/* ========================================
   10. UNIFIED PAGINATION
   ======================================== */
.cute-pagination-nav .page-link {
    border-radius: 9px;
    margin: 0 3px;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}
.cute-pagination-nav .page-item.active .page-link {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.32);
}
.cute-pagination-nav .page-link:hover:not(.active) {
    background: #f1f5f9;
    color: #0f172a;
}

/* ========================================
   11. DASHBOARD SPECIFIC COMPONENTS
   ======================================== */
.dash-card-wide .dash-card-body {
    height: 220px;
}

.dash-card-body-chart {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dash-day-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
    border: 1px solid #e2e8f0;
}
.dash-day-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.4;
}
.dash-day-btn:hover {
    color: #0f172a;
}
.dash-day-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.32);
}

.cute-chart-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cute-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
}
.cute-center-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}
.cute-center-sub {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.dash-card-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    align-items: center;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: transform 0.2s ease;
}
.legend-item:hover {
    transform: translateY(-1px);
}
.legend-item.green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.legend-item.red { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }
.legend-item.yellow { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.legend-item.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.legend-item.purple { background: #f5f3ff; border: 1px solid #ddd6fe; color: #6d28d9; }
.legend-item.cyan { background: #ecfeff; border: 1px solid #a5f3fc; color: #0e7490; }
.legend-item.gray { background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; }

.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (max-width: 1199px) {
    .dash-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 14px;
    }
}

.dash-widget-card {
    border-radius: 16px;
}
.dash-widget-card .dash-card-header {
    padding: 11px 15px;
}
.dash-widget-card .dash-card-body {
    padding: 13px 15px;
    min-height: auto;
}

.cute-metric-card {
    text-align: center;
    padding: 8px 10px;
    border-radius: 12px;
    margin-bottom: 9px;
    border: 1px solid transparent;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-metric-card:hover {
    transform: translateY(-1px);
}
.cute-metric-card.sky {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}
.cute-metric-card.purple {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border-color: #f5d0fe;
}
.cute-metric-card.emerald {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}
.cute-metric-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.cute-metric-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

.widget-progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0;
    border: 1px solid #e2e8f0;
}
.widget-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}
.widget-progress-fill.success {
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.35);
}
.widget-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.35);
}
.widget-progress-fill.danger {
    background: linear-gradient(90deg, #f43f5e, #e11d48);
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.35);
}

.widget-file-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.file-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border-radius: 10px;
    padding: 6px 2px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.file-type-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}
.file-type-item.rose {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
}
.file-type-item.violet {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #7c3aed;
}
.file-type-item.amber {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
}
.file-type-item.blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}
.file-type-item i {
    font-size: 14px;
}
.file-type-item span {
    font-size: 11.5px;
    font-weight: 800;
    color: #0f172a;
}

.widget-footer-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    margin-top: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}
.widget-footer-stat i {
    color: #10b981;
    font-size: 12px;
}

.cute-split-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}
.cute-split-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    transition: transform 0.2s ease;
}
.cute-split-item:hover {
    transform: translateY(-1px);
}
.cute-split-item.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.cute-split-item.success i {
    color: #059669;
}

.widget-secondary-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 9px;
    margin-top: 6px;
    font-size: 11.5px;
    color: #475569;
    font-weight: 600;
}
.widget-secondary-stat i {
    color: #10b981;
    font-size: 12px;
}

.widget-ai-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}
.ai-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    justify-content: center;
    transition: transform 0.2s ease;
}
.ai-provider-badge:hover {
    transform: translateY(-1px);
}
.ai-provider-badge.openai {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}
.ai-provider-badge.openrouter {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}
.ai-provider-badge.gemini {
    background: #fdf4ff;
    border: 1px solid #f5d0fe;
    color: #c026d3;
}

.widget-empty-state {
    text-align: center;
    padding: 10px 8px;
    color: #94a3b8;
}
.widget-empty-state i {
    font-size: 20px;
    margin-bottom: 4px;
    color: #cbd5e1;
    background: #f8fafc;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.widget-empty-state p {
    margin: 0;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}

/* ========================================
   12. UNIFIED TEMPLATES STYLES
   ======================================== */
.btn-cute-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.925rem;
    padding: 0.65rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.32);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}
.btn-cute-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(244, 63, 94, 0.42);
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
}
.btn-cute-danger:active {
    transform: scale(0.97);
}

/* Cute Filter Bar Redesign */
.cute-filter-bar {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
}

.cute-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cute-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
}

.cute-search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}

.cute-search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 11px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cute-search-input:focus {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}

.cute-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cute-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cute-select-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 12px;
    pointer-events: none;
    z-index: 1;
}

.cute-filter-select {
    height: 40px;
    padding: 0 28px 0 32px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 11px;
    font-size: 12.5px;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.cute-filter-select:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.cute-filter-select:focus {
    background-color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.cute-filter-fav-btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 11px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.cute-filter-fav-btn:hover {
    background: #fef3c7;
    border-color: #fcd34d;
    transform: translateY(-1px);
}

.cute-filter-fav-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

@media (max-width: 767px) {
    .cute-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .cute-search-wrap {
        width: 100%;
    }
    .cute-filter-actions {
        width: 100%;
        justify-content: space-between;
    }
    .cute-select-wrap {
        flex: 1;
    }
    .cute-filter-select {
        width: 100%;
    }
}

/* ========================================
   13. CUTE TEMPLATE CARDS REDESIGN
   ======================================== */
.cute-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
@media (max-width: 576px) {
    .cute-templates-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.cute-template-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.cute-template-card::before {
    content: '';
    position: absolute;
    top: -24px;
    right: -24px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    opacity: 0.35;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}
.cute-template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    border-color: rgba(203, 213, 225, 0.9);
}
.cute-template-card:hover::before {
    transform: scale(1.4);
    opacity: 0.6;
}

/* Theme Glows */
.cute-template-card.blue::before { background: radial-gradient(circle, #bfdbfe 0%, transparent 70%); }
.cute-template-card.green::before { background: radial-gradient(circle, #a7f3d0 0%, transparent 70%); }
.cute-template-card.amber::before, .cute-template-card.orange::before { background: radial-gradient(circle, #fde68a 0%, transparent 70%); }
.cute-template-card.rose::before { background: radial-gradient(circle, #fecdd3 0%, transparent 70%); }
.cute-template-card.purple::before { background: radial-gradient(circle, #ddd6fe 0%, transparent 70%); }
.cute-template-card.teal::before { background: radial-gradient(circle, #99f6e4 0%, transparent 70%); }
.cute-template-card.sky::before { background: radial-gradient(circle, #bae6fd 0%, transparent 70%); }

/* Card Top Section */
.cute-template-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.cute-template-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.cute-template-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-template-card:hover .cute-template-icon {
    transform: scale(1.08) rotate(3deg);
}

.cute-template-icon.blue { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #bfdbfe; color: #2563eb; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12); }
.cute-template-icon.green { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); border: 1px solid #a7f3d0; color: #059669; box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12); }
.cute-template-icon.amber, .cute-template-icon.orange { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border: 1px solid #fde68a; color: #d97706; box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12); }
.cute-template-icon.rose { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); border: 1px solid #fecdd3; color: #e11d48; box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12); }
.cute-template-icon.purple { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); border: 1px solid #ddd6fe; color: #7c3aed; box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12); }
.cute-template-icon.teal { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); border: 1px solid #99f6e4; color: #0d9488; box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12); }
.cute-template-icon.sky { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border: 1px solid #bae6fd; color: #0284c7; box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12); }

.cute-template-title-wrap {
    min-width: 0;
    flex: 1;
}
.cute-template-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
.cute-template-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.cute-template-type-pill.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.cute-template-type-pill.green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.cute-template-type-pill.amber, .cute-template-type-pill.orange { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.cute-template-type-pill.rose { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }
.cute-template-type-pill.purple { background: #f5f3ff; border: 1px solid #ddd6fe; color: #6d28d9; }
.cute-template-type-pill.teal { background: #f0fdfa; border: 1px solid #99f6e4; color: #0f766e; }
.cute-template-type-pill.sky { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; }

.cute-template-fav-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.cute-template-fav-btn:hover {
    background: #fffbeb;
    border-color: #fde68a;
    color: #f59e0b;
    transform: scale(1.1) rotate(15deg);
}
.cute-template-fav-btn.active {
    background: #fffbeb;
    border-color: #fde68a;
    color: #f59e0b;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

/* Card Body & Speech Bubble */
.cute-template-body {
    flex: 1;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cute-template-bubble {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    border-top-left-radius: 4px;
    padding: 9px 12px;
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.45;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.cute-template-bubble.empty {
    color: #94a3b8;
    font-style: italic;
}
.cute-bubble-quote {
    color: #94a3b8;
    font-size: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}
.cute-bubble-text {
    word-break: break-word;
}

.cute-template-attachment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}

/* Card Footer */
.cute-template-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.cute-template-usage {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cute-template-usage i {
    color: #10b981;
    font-size: 11px;
}

.cute-template-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   14. UNIFIED CONTACTS STYLES
   ======================================== */
.btn-cute-import {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669 !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.925rem;
    padding: 0.65rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}
.btn-cute-import:hover {
    background: #d1fae5;
    color: #047857 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.22);
}
.btn-cute-import:active {
    transform: scale(0.97);
}

/* Groups Sidebar Card */
.cute-groups-card,
.groups-container {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
}

.cute-groups-card-header {
    padding-bottom: 4px;
}

.cute-group-row,
.group-simple-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #334155;
    text-decoration: none;
    border: 1px solid transparent;
    margin-bottom: 3px;
    position: relative;
}
.cute-group-row:hover,
.group-simple-item:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateX(2px);
}
.cute-group-row.active,
.group-simple-item.active {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.cute-group-row-icon,
.group-simple-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.cute-group-row:hover .cute-group-row-icon,
.group-simple-item:hover .group-simple-icon {
    transform: scale(1.08);
}
.cute-group-row-icon.blue, .group-simple-icon.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.cute-group-row-icon.amber, .cute-group-row-icon.orange, .group-simple-icon.orange { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }
.cute-group-row-icon.green, .group-simple-icon.green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }

.cute-group-row-info,
.group-simple-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}
.cute-group-row-name,
.group-simple-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
.cute-group-row-count,
.group-simple-count {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.cute-group-row.active .cute-group-row-count,
.group-simple-item.active .group-simple-count {
    background: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.cute-group-row-actions,
.group-simple-actions {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}
.cute-group-row:hover .cute-group-row-actions,
.group-simple-item:hover .group-simple-actions {
    display: flex;
}
.cute-row-action-btn,
.btn-simple-action {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cute-row-action-btn:hover,
.btn-simple-action:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.cute-row-action-btn.delete:hover,
.btn-simple-action.delete:hover {
    color: #e11d48;
    background: #fff1f2;
    border-color: #fecdd3;
}

.cute-group-divider,
.groups-separator {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 0;
}

.group-simple-actions {
    display: none;
    align-items: center;
    gap: 3px;
}
.group-simple-item:hover .group-simple-actions {
    display: flex;
}
.btn-simple-action {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.btn-simple-action:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.groups-separator {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

/* Mobile Groups Horizontal Scroll */
.mobile-groups-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.mobile-groups-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-group-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.mobile-group-chip:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    background: #f8fafc;
}
.mobile-group-chip.active {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18);
}
.mobile-group-chip.create {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.mobile-group-chip.create:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
}

/* Contacts Search & Export Bar */
.contacts-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    flex-wrap: wrap;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
}
.search-input-wrapper i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}
.search-input-wrapper .search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 11px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.search-input-wrapper .search-input:focus {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}

.export-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.export-btn {
    height: 40px;
    padding: 0 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.export-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .contacts-search-bar {
        padding: 10px;
        gap: 8px;
    }
    .search-input-wrapper {
        width: 100%;
        min-width: 100%;
    }
    .export-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .export-btn {
        justify-content: center;
    }
}

/* Contacts Grid & Cute Cards */
.contacts-grid,
.cute-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 576px) {
    .contacts-grid,
    .cute-contacts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.cute-contact-card,
.contact-card-simple {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.cute-contact-card:hover,
.contact-card-simple:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    border-color: rgba(203, 213, 225, 0.9);
}

.cute-contact-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.cute-contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-contact-card:hover .cute-contact-avatar {
    transform: scale(1.08) rotate(4deg);
}

.cute-contact-title-wrap {
    flex: 1;
    min-width: 0;
}
.cute-contact-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.cute-contact-group-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.cute-contact-group-pill.default {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.cute-contact-fav-btn,
.btn-favorite {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.cute-contact-fav-btn:hover,
.btn-favorite:hover {
    color: #f59e0b;
    background: #fffbeb;
    border-color: #fde68a;
    transform: scale(1.1);
}
.cute-contact-fav-btn.active,
.btn-favorite.active {
    color: #f59e0b;
    background: #fffbeb;
    border-color: #fde68a;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.cute-contact-phone-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 11px;
    margin-bottom: 14px;
}
.cute-contact-phone-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #ecfdf5;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.cute-contact-phone-number {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.02em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.cute-contact-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.cute-contact-btn {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    user-select: none;
}
.cute-contact-btn.edit {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}
.cute-contact-btn.edit:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}
.cute-contact-btn.delete {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}
.cute-contact-btn.delete:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    border-color: #f43f5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.28);
}
.cute-contact-btn:active {
    transform: scale(0.97);
}

.contact-phone {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.contact-phone i {
    color: #10b981;
    font-size: 11px;
}

/* ========================================
   15. CUTE MODALS & POPUPS
   ======================================== */
.cute-modal .modal-content,
.modal-content.cute-modal-content {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.cute-modal-header {
    padding: 18px 22px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.cute-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-modal-icon-badge.purple {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    color: #7c3aed;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.12);
}
.cute-modal-icon-badge.green {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    color: #059669;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.12);
}
.cute-modal-icon-badge.blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #2563eb;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
}

.cute-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}
.cute-modal-subtitle {
    font-size: 0.815rem;
    color: #64748b;
    font-weight: 500;
    margin: 2px 0 0 0;
}

.cute-modal-body {
    padding: 20px 22px;
}

.cute-form-group {
    margin-bottom: 16px;
}
.cute-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.cute-form-label i {
    color: #10b981;
    font-size: 12px;
}

.cute-form-input,
.cute-form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-form-input:focus,
.cute-form-textarea:focus {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}

/* Cute Form Select — used in all cute-modal dropdowns */
.cute-form-select {
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    appearance: auto;
    cursor: pointer;
    outline: none;
}
.cute-form-select:focus {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}
.cute-form-select:hover {
    border-color: #cbd5e1;
}

.cute-color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.cute-color-native-input {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    background: transparent;
    padding: 2px;
}
.cute-color-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cute-color-preset-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-color-preset-dot:hover {
    transform: scale(1.2);
}

.cute-modal-footer {
    padding: 14px 22px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cute-cancel {
    padding: 8px 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-cute-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ========================================
   16. UNIFIED FILE MANAGER STYLES
   ======================================== */
.cute-storage-quota-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.cute-quota-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.cute-quota-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cute-quota-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cute-quota-text {
    min-width: 0;
}
.cute-quota-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.cute-quota-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cute-quota-subtitle span {
    color: #0f172a;
    font-weight: 700;
}

.cute-quota-right {
    flex-shrink: 0;
}

.cute-quota-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.cute-quota-track-wrap {
    width: 100%;
}

.cute-quota-track {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.cute-quota-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 576px) {
    .cute-storage-quota-card {
        padding: 12px 14px;
    }
    .cute-quota-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .cute-quota-title {
        font-size: 0.88rem;
    }
    .cute-quota-subtitle {
        font-size: 0.76rem;
    }
    .cute-quota-badge {
        padding: 3px 8px;
        font-size: 10.5px;
    }
}

/* Toolbar & Breadcrumb */
.cute-fm-toolbar {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    flex-wrap: wrap;
}

.cute-fm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cute-breadcrumb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-breadcrumb-chip:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-1px);
}
.cute-breadcrumb-chip.home {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}

.cute-fm-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cute-fm-filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cute-filter-pill {
    padding: 6px 12px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cute-filter-pill:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.8);
}
.cute-filter-pill.active {
    background: #ffffff;
    color: #059669;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cute-fm-view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cute-view-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cute-view-btn:hover {
    color: #0f172a;
}
.cute-view-btn.active {
    background: #ffffff;
    color: #059669;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* File Content Card */
.cute-fm-content-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
}

/* Upload Area */
.cute-fm-upload-area {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cute-fm-upload-area:hover,
.cute-fm-upload-area.dragover {
    background: #ecfdf5;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    transform: scale(1.01);
}

.cute-upload-icon-bubble {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-fm-upload-area:hover .cute-upload-icon-bubble {
    transform: translateY(-3px) scale(1.08);
}

@media (max-width: 576px) {
    .cute-fm-content-card {
        padding: 12px;
        border-radius: 16px;
    }
    .cute-fm-upload-area {
        flex-direction: row;
        padding: 10px 14px;
        gap: 12px;
        border-radius: 14px;
        text-align: left;
        align-items: center;
        justify-content: flex-start;
        border-width: 1.5px;
    }
    .cute-upload-icon-bubble {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 16px;
        flex-shrink: 0;
    }
    .cute-upload-text {
        text-align: left;
    }
    .cute-upload-text p {
        font-size: 0.86rem !important;
        margin-bottom: 1px !important;
    }
    .cute-upload-text span {
        font-size: 0.74rem !important;
        display: block;
    }
}

/* File Grid & Cards */
.cute-fm-grid,
.fm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

@media (max-width: 576px) {
    .cute-fm-grid,
    .fm-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    .fm-item {
        padding: 6px !important;
        border-radius: 12px !important;
    }
    .fm-item-preview {
        height: 70px !important;
        border-radius: 9px !important;
        margin-bottom: 6px !important;
    }
    .fm-item-name {
        font-size: 11px !important;
    }
    .fm-item-meta {
        font-size: 9.5px !important;
    }
}

.fm-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}
.fm-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.fm-item.selected {
    background: #ecfdf5;
    border-color: #10b981;
    box-shadow: 0 0 0 2px #10b981, 0 8px 20px rgba(16, 185, 129, 0.18);
}

.fm-item-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}
.fm-item:hover .fm-item-checkbox,
.fm-item.selected .fm-item-checkbox {
    opacity: 1;
}
.fm-item.selected .fm-item-checkbox {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.fm-item-preview {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}
.fm-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fm-item:hover .fm-item-preview img {
    transform: scale(1.06);
}
.fm-item-preview i {
    font-size: 38px;
    color: #94a3b8;
}
.fm-item[data-type="folder"] .fm-item-preview i {
    color: #f59e0b;
}

.fm-item-info {
    width: 100%;
}
.fm-item-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.fm-item-meta {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

/* Floating Selection Bar */
.cute-fm-selection-bar,
.fm-selection-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-fm-selection-bar.show,
.fm-selection-bar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cute-selection-badge {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.btn-cute-danger-sm {
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-cute-danger-sm:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
}

.btn-cute-close-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-cute-close-sm:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Context Menu */
.cute-context-menu,
.fm-context-menu {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.14);
    min-width: 160px;
    z-index: 1000;
}
.fm-context-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.fm-context-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.fm-context-item.danger {
    color: #e11d48;
}
.fm-context-item.danger:hover {
    background: #fff1f2;
    color: #be123c;
}
.fm-context-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

/* Preview Modal */
.cute-preview-modal,
.fm-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    flex-direction: column;
}
.cute-preview-modal.show,
.fm-preview-modal.show {
    display: flex;
}
.cute-preview-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.cute-preview-title {
    font-size: 15px;
    font-weight: 700;
}
.cute-preview-action-btn {
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cute-preview-action-btn:hover {
    background: #10b981;
    border-color: #10b981;
}
.cute-preview-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cute-preview-close-btn:hover {
    background: #f43f5e;
}
.cute-preview-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}
.cute-preview-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cute-preview-nav-btn:hover {
    background: #10b981;
    border-color: #10b981;
}
.cute-preview-nav-btn.prev { left: 24px; }
.cute-preview-nav-btn.next { right: 24px; }

/* Cute Upload Progress Floating Panel */
.cute-upload-progress-panel,
.upload-progress-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 330px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.22);
    z-index: 1050;
    overflow: hidden;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-upload-progress-panel.show,
.upload-progress-panel.show {
    transform: translateY(0);
    opacity: 1;
}

.cute-upload-progress-header,
.upload-progress-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.cute-upload-header-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: pulse 1.5s infinite;
}

.cute-upload-close-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cute-upload-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cute-upload-progress-body,
.upload-progress-body {
    padding: 10px 14px;
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cute-upload-item,
.upload-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.cute-upload-item-preview,
.upload-item-preview {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cute-upload-item-info,
.upload-item-info {
    flex: 1;
    min-width: 0;
}

.cute-upload-item-name,
.upload-item-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.cute-upload-item-size,
.upload-item-size {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
}

.cute-upload-item-percent,
.upload-item-percent {
    font-size: 10.5px;
    font-weight: 700;
    color: #059669;
}

.cute-upload-progress-track {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.cute-upload-progress-fill,
.upload-progress-panel .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.cute-upload-item-status,
.upload-item-status {
    font-size: 14px;
    flex-shrink: 0;
}

/* ========================================
   17. UNIFIED NUMBER CHECKER STYLES
   ======================================== */
.cute-speed-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-size: 11.5px;
    font-weight: 700;
}
.cute-speed-chip i {
    font-size: 10px;
    color: #eab308;
}

.cute-dual-progress-track {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    display: flex;
    overflow: hidden;
    gap: 1px;
}
.cute-dual-progress-valid {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 999px 0 0 999px;
    transition: width 0.4s ease;
}
.cute-dual-progress-invalid {
    height: 100%;
    background: linear-gradient(90deg, #f43f5e 0%, #e11d48 100%);
    border-radius: 0 999px 999px 0;
    transition: width 0.4s ease;
}

/* Mobile Card View */
.cute-checker-card-mobile {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cute-checker-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.cute-checker-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.cute-checker-name-mobile {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}

.cute-checker-chips-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Action button variations */
.cute-action-btn.play {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}
.cute-action-btn.play:hover {
    background: #10b981;
    color: #ffffff;
}

.cute-action-btn.pause {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
}
.cute-action-btn.pause:hover {
    background: #f59e0b;
    color: #ffffff;
}

.cute-action-btn.stop {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}
.cute-action-btn.stop:hover {
    background: #f43f5e;
    color: #ffffff;
}

.cute-action-btn.view {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}
.cute-action-btn.view:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Modal Group Selector */
.cute-groups-select-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    max-height: 180px;
    overflow-y: auto;
}

/* ========================================
   18. UNIFIED CUTE TABLES & LISTS
   ======================================== */
.cute-table-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    overflow: hidden;
}

.cute-table-header {
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cute-table-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.cute-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.cute-table thead th {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.cute-table tbody td {
    padding: 14px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    background: #ffffff;
}

.cute-table tbody tr:last-child td {
    border-bottom: none;
}

.cute-table tbody tr {
    transition: background 0.15s ease;
}

.cute-table tbody tr:hover td {
    background: #fafbfc;
}

.cute-table-icon-squircle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.cute-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.cute-session-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.cute-session-chip i {
    color: #16a34a;
    font-size: 12px;
}

.cute-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.cute-count-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
}

.cute-date-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

/* Pagination */
.cute-pagination-wrapper {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.cute-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cute-pagination .page-item .page-link {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.cute-pagination .page-item .page-link:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.cute-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.cute-pagination .page-item.disabled .page-link {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #f1f5f9;
    pointer-events: none;
}

/* ========================================
   19. UNIFIED STATUS PILLS
   ======================================== */
.cute-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}
.cute-status-pill i {
    font-size: 8px;
}

/* Active / Completed / Success */
.cute-status-pill.active,
.cute-status-pill.completed,
.cute-status-pill.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}
.cute-status-pill.active i,
.cute-status-pill.completed i,
.cute-status-pill.success i {
    color: #10b981;
}

/* Running / Warning / In Progress */
.cute-status-pill.running,
.cute-status-pill.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
}
.cute-status-pill.running i,
.cute-status-pill.warning i {
    color: #f59e0b;
}

/* Pending / Info */
.cute-status-pill.pending,
.cute-status-pill.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}
.cute-status-pill.pending i,
.cute-status-pill.info i {
    color: #3b82f6;
}

/* Paused / Disconnected / Secondary */
.cute-status-pill.paused,
.cute-status-pill.disconnected,
.cute-status-pill.secondary {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}
.cute-status-pill.paused i,
.cute-status-pill.disconnected i,
.cute-status-pill.secondary i {
    color: #94a3b8;
}

/* Failed / Danger / Error */
.cute-status-pill.failed,
.cute-status-pill.danger,
.cute-status-pill.error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}
.cute-status-pill.failed i,
.cute-status-pill.danger i,
.cute-status-pill.error i {
    color: #f43f5e;
}

/* Badge Icon Pills */
.cute-badge-pill {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.cute-badge-pill.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.cute-badge-pill.green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }
.cute-badge-pill.purple { background: #faf5ff; border: 1px solid #e9d5ff; color: #9333ea; }
.cute-badge-pill.amber { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }
.cute-badge-pill.rose { background: #fff1f2; border: 1px solid #fecdd3; color: #e11d48; }
.cute-badge-pill.teal { background: #f0fdfa; border: 1px solid #99f6e4; color: #0d9488; }

/* Metadata Pills & Badges */
.cute-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.cute-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
}

.cute-empty-icon-bubble {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

/* Plan & Status Meta Grid */
.cute-plan-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.cute-plan-meta-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.cute-plan-meta-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.cute-plan-meta-icon.amber { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }
.cute-plan-meta-icon.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.cute-plan-meta-icon.green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }
.cute-plan-meta-icon.purple { background: #faf5ff; border: 1px solid #e9d5ff; color: #9333ea; }
.cute-plan-meta-icon.rose { background: #fff1f2; border: 1px solid #fecdd3; color: #e11d48; }

.cute-plan-meta-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 1px;
}

.cute-plan-meta-val {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

/* Mini Stat Cards */
.cute-stat-mini-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid transparent;
}
.cute-stat-mini-card.green {
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.cute-stat-mini-card.rose {
    background: #fff1f2;
    border-color: #fecdd3;
}
.cute-stat-mini-card.blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.cute-stat-mini-card.purple {
    background: #faf5ff;
    border-color: #e9d5ff;
}

.cute-mini-label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.cute-stat-mini-card.green .cute-mini-label { color: #059669; }
.cute-stat-mini-card.rose .cute-mini-label { color: #e11d48; }
.cute-stat-mini-card.blue .cute-mini-label { color: #2563eb; }
.cute-stat-mini-card.purple .cute-mini-label { color: #9333ea; }

.cute-mini-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 2px;
}

.cute-mini-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.cute-phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
}
.cute-phone-chip i {
    color: #10b981;
    font-size: 12px;
}
.cute-phone-chip code {
    color: #0f172a;
    background: transparent;
    padding: 0;
    font-size: 12.5px;
    font-weight: 700;
}

.cute-progress-percent {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
}
.cute-progress-percent.completed {
    color: #059669;
}
.cute-progress-percent span {
    font-size: 1rem;
    font-weight: 700;
}

/* ========================================
   20. UNIFIED USAGE & LIMITS STYLES
   ======================================== */
.cute-plan-hero-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.cute-plan-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.cute-plan-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cute-plan-avatar {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
    flex-shrink: 0;
}

.cute-plan-kicker {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 2px;
}

.cute-plan-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin: 0;
}

.cute-plan-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
}

@media (max-width: 768px) {
    .cute-plan-metrics-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 14px;
    }
    .cute-plan-hero-card {
        padding: 16px;
    }
    .cute-plan-avatar {
        width: 44px;
        height: 44px;
        font-size: 19px;
        border-radius: 12px;
    }
    .cute-plan-heading {
        font-size: 1.3rem;
    }
}

.cute-plan-metric-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cute-plan-metric-col:not(:last-child) {
    border-right: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .cute-plan-metric-col:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 8px;
    }
}

.cute-metric-icon-bubble {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.cute-metric-icon-bubble.amber { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }
.cute-metric-icon-bubble.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.cute-metric-icon-bubble.green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }

.cute-metric-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1px;
}

.cute-metric-text {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}



.cute-usage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .cute-usage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .cute-usage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .cute-plan-card {
        padding: 16px;
    }
    .cute-plan-icon-wrapper {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 12px;
    }
    .cute-plan-name-text {
        font-size: 1.25rem;
    }
}

.cute-usage-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cute-usage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.cute-usage-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cute-usage-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.cute-usage-icon-box.purple { background: #faf5ff; border: 1px solid #e9d5ff; color: #9333ea; }
.cute-usage-icon-box.green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }
.cute-usage-icon-box.orange { background: #fff7ed; border: 1px solid #fed7aa; color: #ea580c; }
.cute-usage-icon-box.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.cute-usage-icon-box.rose { background: #fff1f2; border: 1px solid #fecdd3; color: #e11d48; }
.cute-usage-icon-box.indigo { background: #eef2ff; border: 1px solid #c7d2fe; color: #4f46e5; }
.cute-usage-icon-box.cyan { background: #ecfeff; border: 1px solid #a5f3fc; color: #0891b2; }
.cute-usage-icon-box.teal { background: #f0fdfa; border: 1px solid #99f6e4; color: #0d9488; }

.cute-usage-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cute-usage-numbers {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 8px;
}
.cute-usage-used {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.cute-usage-total {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}

.cute-usage-track {
    width: 100%;
    height: 5px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}
.cute-usage-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cute-usage-fill.purple { background: linear-gradient(90deg, #a855f7 0%, #9333ea 100%); }
.cute-usage-fill.green { background: linear-gradient(90deg, #10b981 0%, #059669 100%); }
.cute-usage-fill.orange { background: linear-gradient(90deg, #f97316 0%, #ea580c 100%); }
.cute-usage-fill.blue { background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%); }
.cute-usage-fill.rose { background: linear-gradient(90deg, #f43f5e 0%, #e11d48 100%); }
.cute-usage-fill.indigo { background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%); }
.cute-usage-fill.cyan { background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%); }
.cute-usage-fill.teal { background: linear-gradient(90deg, #14b8a6 0%, #0d9488 100%); }

.cute-usage-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
}

.cute-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

@media (max-width: 576px) {
    .cute-features-grid {
        grid-template-columns: 1fr;
    }
}

.cute-feature-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.cute-feature-chip.enabled {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.cute-feature-chip.locked {
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.7;
}

/* ========================================
   21. UNIFIED COURIER SETTINGS STYLES
   ======================================== */
.cute-courier-session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
    margin-bottom: 10px;
}
.cute-courier-session-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.cute-courier-session-item.active {
    background: #f0fdf4;
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}
.cute-courier-session-item.disabled {
    opacity: 0.6;
    background: #f8fafc;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .cute-courier-session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }
    .cute-courier-session-item-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .cute-courier-session-item-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-top: 8px;
        border-top: 1px dashed #e2e8f0;
    }
}

.cute-session-check-input {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.cute-session-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.cute-courier-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    margin-bottom: 8px;
}
.cute-courier-quick-link:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #10b981;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.cute-courier-quick-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.cute-courier-quick-link-icon.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.cute-courier-quick-link-icon.purple { background: #faf5ff; border: 1px solid #e9d5ff; color: #9333ea; }
.cute-courier-quick-link-icon.amber { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }
.cute-courier-quick-link-icon.teal { background: #f0fdfa; border: 1px solid #99f6e4; color: #0d9488; }
.cute-courier-quick-link-icon.rose { background: #fff1f2; border: 1px solid #fecdd3; color: #e11d48; }
.cute-courier-quick-link-icon.green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }

/* Courier Session Card Grid & Reassign Controls */
.cute-sm-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.cute-sm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}
.cute-sm-card.connected {
    border-color: #a7f3d0;
}
.cute-sm-card.disconnected {
    border-color: #fecdd3;
    background: #fffafa;
}

.cute-reassign-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .cute-reassign-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }
}

/* ========================================
   22. CUTE BUTTON SYSTEM
   ======================================== */
.btn-cute-create,
.btn-cute-primary,
.btn-cute-amber,
.btn-cute-warning,
.btn-cute-rose,
.btn-cute-danger,
.btn-cute-blue,
.btn-cute-info,
.btn-cute-purple,
.btn-cute-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.btn-cute-create:hover,
.btn-cute-primary:hover,
.btn-cute-amber:hover,
.btn-cute-warning:hover,
.btn-cute-rose:hover,
.btn-cute-danger:hover,
.btn-cute-blue:hover,
.btn-cute-purple:hover {
    transform: translateY(-1.5px);
    text-decoration: none;
}

.btn-cute-create:active,
.btn-cute-amber:active {
    transform: translateY(0);
}

/* Green / Create / Primary */
.btn-cute-create,
.btn-cute-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-cute-create:hover,
.btn-cute-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    color: #ffffff !important;
}

/* Amber / Reconnect / Warning */
.btn-cute-amber,
.btn-cute-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.btn-cute-amber:hover,
.btn-cute-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
    color: #ffffff !important;
}

/* Rose / Danger */
.btn-cute-rose,
.btn-cute-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

/* Blue / Info */
.btn-cute-blue,
.btn-cute-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Purple */
.btn-cute-purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

/* Secondary / Outline */
.btn-cute-secondary {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #334155 !important;
    box-shadow: none;
}
.btn-cute-secondary:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Mini & Small Button Sizes */
.btn-cute-sm {
    padding: 5px 12px;
    border-radius: 9px;
    font-size: 11.5px;
    gap: 6px;
}
.btn-cute-xs {
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 10.5px;
    gap: 4px;
}

.btn-cute-icon-bubble {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.btn-cute-sm .btn-cute-icon-bubble {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    font-size: 9.5px;
}

/* Action Icon Buttons */
.btn-cute-action-delete,
.btn-cute-icon-delete {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    box-shadow: none;
}
.btn-cute-action-delete:hover,
.btn-cute-icon-delete:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
}


/* Steps List Utilities */
.cute-steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cute-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cute-step-num {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.cute-step-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.cute-step-desc {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   23. MOBILE COMPACT OVERRIDES
   Aggressive compact for screens <= 576px
   ======================================== */
@media (max-width: 576px) {

    /* ---- Stat Grid: 2x2 tiny cards ---- */
    .cute-stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
    }
    .cute-stat-card {
        padding: 8px 10px !important;
        border-radius: 12px !important;
        gap: 8px !important;
    }
    .cute-icon-box {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        flex-shrink: 0;
    }
    .cute-stat-content {
        gap: 1px !important;
    }
    .cute-stat-num {
        font-size: 14px !important;
        line-height: 1.1 !important;
    }
    .cute-stat-name {
        font-size: 9.5px !important;
        line-height: 1.2 !important;
    }

    /* ---- Table / Cards ---- */
    .cute-table-card {
        border-radius: 14px !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
    }

    /* ---- Card inner headers (h5, h6 inside cards) ---- */
    .cute-table-card h5 {
        font-size: 13px !important;
    }
    .cute-table-card h6 {
        font-size: 12px !important;
    }
    .cute-table-card .text-muted.small,
    .cute-table-card small {
        font-size: 10.5px !important;
    }
    .cute-table-card .border-bottom {
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
    }

    /* ---- Badge pills (squircle icons) ---- */
    .cute-badge-pill {
        width: 30px !important;
        height: 30px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
        flex-shrink: 0;
    }

    /* ---- Status pill ---- */
    .cute-status-pill {
        padding: 2px 7px !important;
        font-size: 9.5px !important;
        border-radius: 18px !important;
        gap: 3px !important;
    }

    /* ---- Sm-cards (device rows, session items) ---- */
    .cute-sm-card {
        border-radius: 10px !important;
        padding: 8px 10px !important;
    }

    /* ---- Session items ---- */
    .cute-courier-session-item {
        padding: 8px 10px !important;
        gap: 6px !important;
        border-radius: 12px !important;
    }

    /* ---- Usage icon boxes ---- */
    .cute-usage-icon-box {
        width: 28px !important;
        height: 28px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        flex-shrink: 0;
    }

    /* ---- Count badge ---- */
    .cute-count-badge {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
    }

    /* ---- Quick links ---- */
    .cute-courier-quick-link {
        padding: 7px 8px !important;
        font-size: 11.5px !important;
        gap: 7px !important;
        border-radius: 10px !important;
    }
    .cute-courier-quick-link-icon {
        width: 26px !important;
        height: 26px !important;
        border-radius: 7px !important;
        font-size: 11px !important;
        flex-shrink: 0;
    }

    /* ---- Buttons ---- */
    .btn-cute-create,
    .btn-cute-primary,
    .btn-cute-secondary,
    .btn-cute-rose,
    .btn-cute-danger,
    .btn-cute-amber,
    .btn-cute-warning,
    .btn-cute-blue,
    .btn-cute-purple {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        border-radius: 9px !important;
        gap: 5px !important;
    }
    .btn-cute-icon-bubble {
        width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
        border-radius: 5px !important;
    }
    .btn-cute-sm {
        padding: 4px 10px !important;
        font-size: 10.5px !important;
        border-radius: 7px !important;
    }
    .btn-cute-action-delete,
    .btn-cute-icon-delete {
        width: 26px !important;
        height: 26px !important;
        font-size: 10.5px !important;
        border-radius: 7px !important;
    }

    /* ---- Steps list ---- */
    .cute-steps-list {
        gap: 8px !important;
    }
    .cute-step-item {
        gap: 7px !important;
    }
    .cute-step-num {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
        flex-shrink: 0;
    }
    .cute-step-title {
        font-size: 11.5px !important;
        margin-bottom: 1px !important;
    }
    .cute-step-desc {
        font-size: 10.5px !important;
        line-height: 1.35 !important;
    }

    /* ---- Reassign bar ---- */
    .cute-reassign-bar {
        padding: 8px 10px !important;
        gap: 6px !important;
        border-radius: 12px !important;
    }

    /* ---- Empty state ---- */
    .cute-empty-icon-bubble {
        width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
    }

    /* ---- Page action header button (top-right) ---- */
    .d-flex.justify-content-end.mb-4 {
        margin-bottom: 10px !important;
    }

    /* ---- Row gaps ---- */
    .row.g-3.g-lg-4 {
        --bs-gutter-x: 0.5rem !important;
        --bs-gutter-y: 0.5rem !important;
    }

    /* ---- Sidebar cards: tighter stacking ---- */
    .col-lg-4 .cute-table-card {
        margin-bottom: 8px !important;
    }

    /* ---- Info/alert boxes inside cards ---- */
    .cute-table-card .p-3.rounded-3 {
        padding: 8px 10px !important;
        border-radius: 10px !important;
        font-size: 11.5px !important;
    }

    /* ---- Page header text ---- */
    .cute-page-header {
        padding: 10px 12px !important;
    }
    .cute-page-header h4,
    .cute-page-header h5 {
        font-size: 14px !important;
    }
}

/* ========================================
   24. GLOBAL MOBILE LAYOUT COMPACTION
   Applies across ALL pages at <= 576px
   ======================================== */
@media (max-width: 576px) {

    /* ---- Page content area: reduce outer padding ---- */
    .page-content {
        padding: 12px 10px !important;
    }

    /* ---- Topbar: tighter height ---- */
    .topbar {
        padding: 8px 12px !important;
        min-height: 48px !important;
    }
    .topbar-title {
        font-size: 13px !important;
    }

    /* ---- General h4/h5/h6 on page ---- */
    h4 { font-size: 16px !important; }
    h5 { font-size: 14px !important; }
    h6 { font-size: 13px !important; }

    /* ---- Bootstrap .card ---- */
    .card {
        border-radius: 14px !important;
    }
    .card-body {
        padding: 12px !important;
    }
    .card-header {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    .card-footer {
        padding: 8px 12px !important;
    }

    /* ---- Bootstrap .form-control / .form-select ---- */
    .form-control,
    .form-select {
        padding: 6px 10px !important;
        font-size: 12.5px !important;
        border-radius: 9px !important;
        height: auto !important;
    }
    .form-label {
        font-size: 12px !important;
        margin-bottom: 3px !important;
    }
    .input-group-text {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }

    /* ---- Bootstrap .table ---- */
    .table th,
    .table td {
        padding: 6px 8px !important;
        font-size: 11.5px !important;
    }
    .table th {
        font-size: 11px !important;
    }

    /* ---- Bootstrap .btn ---- */
    .btn {
        padding: 5px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }
    .btn-sm {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
    .btn-lg {
        padding: 7px 16px !important;
        font-size: 13px !important;
    }

    /* ---- Bootstrap .badge ---- */
    .badge {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
    }

    /* ---- Bootstrap .dropdown-menu ---- */
    .dropdown-menu {
        font-size: 12.5px !important;
    }
    .dropdown-item {
        padding: 6px 12px !important;
        font-size: 12.5px !important;
    }

    /* ---- Bootstrap .modal ---- */
    .modal-header {
        padding: 10px 14px !important;
    }
    .modal-body {
        padding: 12px 14px !important;
    }
    .modal-footer {
        padding: 8px 14px !important;
    }
    .modal-title {
        font-size: 15px !important;
    }

    /* ---- Bootstrap .alert ---- */
    .alert {
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        border-radius: 10px !important;
    }

    /* ---- Bootstrap row/col gutters ---- */
    .row {
        --bs-gutter-x: 0.625rem !important;
    }
    .mb-4 { margin-bottom: 10px !important; }
    .mb-3 { margin-bottom: 8px !important; }
    .mt-4 { margin-top: 10px !important; }
    .mt-3 { margin-top: 8px !important; }
    .p-4  { padding: 12px !important; }
    .p-3  { padding: 10px !important; }
    .py-4 { padding-top: 12px !important; padding-bottom: 12px !important; }
    .py-3 { padding-top: 8px !important; padding-bottom: 8px !important; }
    .px-4 { padding-left: 12px !important; padding-right: 12px !important; }
    .px-3 { padding-left: 10px !important; padding-right: 10px !important; }

    /* ---- Pagination ---- */
    .pagination .page-link {
        padding: 4px 8px !important;
        font-size: 11.5px !important;
    }

    /* ---- Profile/avatar in topbar ---- */
    .profile-name {
        font-size: 12px !important;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ---- Verify banner ---- */
    .verify-banner {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    .verify-banner-icon {
        font-size: 16px !important;
    }
    .verify-banner-title {
        font-size: 12px !important;
    }
    .verify-banner-desc {
        font-size: 10.5px !important;
    }

    /* ---- Dashboard stat cards if non-cute ---- */
    .stat-card,
    .info-card {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    /* ---- General text helpers ---- */
    .fs-5 { font-size: 15px !important; }
    .fs-6 { font-size: 13px !important; }
    .small { font-size: 11px !important; }

    /* ---- gap helpers ---- */
    .gap-3 { gap: 8px !important; }
    .gap-4 { gap: 10px !important; }
}



/* ========================================
   25. SIDEBAR + PAGE BUTTONS MOBILE COMPACT
   Overrides style.css sidebar & action btns
   at <= 576px
   ======================================== */
@media (max-width: 576px) {

    /* ---- Sidebar nav padding ---- */
    .sidebar-nav {
        padding: 8px !important;
    }

    /* ---- Section headings ---- */
    .sidebar-section-heading {
        padding: 6px 8px 5px !important;
        margin-top: 8px !important;
        margin-bottom: 3px !important;
        font-size: 9.5px !important;
        letter-spacing: 0.06em !important;
    }

    /* ---- Nav group header ---- */
    .nav-group {
        margin-bottom: 3px !important;
    }
    .nav-group-header {
        padding: 8px 10px !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
    }
    .nav-group-header > span > i {
        width: 16px !important;
        margin-right: 9px !important;
        font-size: 13px !important;
    }
    .nav-group-header i.chevron {
        font-size: 9px !important;
    }
    .nav-group.open .nav-group-items {
        margin-top: 3px !important;
        padding-left: 7px !important;
        margin-left: 5px !important;
    }

    /* ---- Nav subitems ---- */
    .nav-subitem {
        padding: 6px 8px 6px 12px !important;
        margin-bottom: 2px !important;
        font-size: 11.5px !important;
        border-radius: 6px !important;
    }
    .nav-subitem:hover,
    .nav-subitem.active {
        padding-left: 15px !important;
    }
    .nav-subitem i {
        width: 15px !important;
        margin-right: 7px !important;
        font-size: 11.5px !important;
    }

    /* ---- Nav items (single links) ---- */
    .nav-item {
        padding: 8px 10px !important;
        margin-bottom: 3px !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
    }
    .nav-item i {
        width: 16px !important;
        margin-right: 9px !important;
        font-size: 13px !important;
    }

    /* ---- Special item badge (PRO pill) ---- */
    .nav-item.special-item::after,
    .nav-item.api-item::after {
        font-size: 8px !important;
        padding: 2px 5px !important;
        right: 8px !important;
    }

    /* ---- Page action header buttons (Import, Add, Create etc) ---- */
    .btn-cute-import {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        border-radius: 9px !important;
        gap: 5px !important;
    }

    /* Shrink the action bar gap and bottom margin */
    .d-flex.justify-content-end.gap-2.mb-4,
    .d-flex.justify-content-between.mb-4,
    .d-flex.justify-content-end.mb-3 {
        gap: 6px !important;
        margin-bottom: 8px !important;
        flex-wrap: wrap !important;
    }

    /* ---- Sidebar header (logo) ---- */
    .sidebar-header {
        padding: 10px 12px !important;
    }
    .brand-logo {
        height: 26px !important;
    }
}

/* ========================================
   26. PER-PAGE MOBILE COMPACT OVERRIDES
   Covers all pages by their specific CSS classes
   at <= 576px
   ======================================== */
@media (max-width: 576px) {

    /* ======== SHARED PAGE HEADERS ======== */
    .page-title,
    .sessions-page-title,
    .campaigns-page-title {
        font-size: 1.2rem !important;
        gap: 6px !important;
    }
    .sessions-page-header,
    .campaigns-page-header,
    .page-header-wrap {
        margin-bottom: 10px !important;
    }
    .sessions-page-desc,
    .campaigns-page-desc,
    .page-desc {
        font-size: 0.78rem !important;
        margin-top: 2px !important;
    }
    .cute-emoji-badge {
        width: 30px !important;
        height: 30px !important;
        border-radius: 9px !important;
        font-size: 1rem !important;
    }

    /* ======== DASHBOARD ======== */
    /* Stat cards — dashboard.css classes */
    .dash-stat-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        border-radius: 13px !important;
    }
    .dash-stat-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
    }
    .dash-stat-value {
        font-size: 1.15rem !important;
        margin-bottom: 1px !important;
    }
    .dash-stat-label {
        font-size: 0.7rem !important;
    }
    /* Dashboard charts */
    .dash-card {
        border-radius: 14px !important;
    }
    .dash-card-header {
        padding: 10px 12px !important;
    }
    .dash-card-header h3 {
        font-size: 0.85rem !important;
        gap: 7px !important;
    }
    .dash-card-body {
        padding: 10px 12px !important;
    }
    .dash-card-wide .dash-card-body {
        height: 170px !important;
    }
    .dash-card-body-chart {
        height: 150px !important;
    }
    .dash-charts-section {
        gap: 12px !important;
    }
    .dash-charts-row {
        gap: 10px !important;
    }
    .dash-grid {
        gap: 12px !important;
    }
    /* Day toggle */
    .dash-day-btn {
        font-size: 10.5px !important;
        padding: 3px 9px !important;
    }
    /* Header pill */
    .cute-header-pill {
        font-size: 9.5px !important;
        padding: 2px 7px !important;
    }
    .cute-card-icon-badge {
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
        font-size: 11.5px !important;
    }
    /* Dashboard legend */
    .dash-card-legend {
        padding: 8px 12px !important;
        font-size: 10.5px !important;
        gap: 6px !important;
    }

    /* ======== SESSIONS PAGE ======== */
    .dashboard-header.sessions-page-header {
        padding: 0 !important;
        margin-bottom: 10px !important;
    }

    /* ======== CONTACTS PAGE ======== */
    .cute-groups-card,
    .groups-container {
        padding: 10px !important;
        border-radius: 12px !important;
    }
    .mobile-group-chip {
        padding: 5px 10px !important;
        font-size: 11px !important;
        border-radius: 20px !important;
        gap: 4px !important;
    }
    .mobile-groups-scroll {
        gap: 6px !important;
        padding-bottom: 6px !important;
    }

    /* ======== USAGE PAGE ======== */
    .cute-plan-hero-card {
        padding: 12px !important;
        border-radius: 14px !important;
    }
    .cute-plan-avatar {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    .cute-plan-heading {
        font-size: 1.1rem !important;
    }
    .cute-plan-kicker {
        font-size: 10px !important;
    }
    .cute-plan-metrics-strip {
        padding: 8px 0 0 !important;
        gap: 8px !important;
    }
    .cute-plan-metric-col {
        padding: 8px 10px !important;
    }

    /* ======== CAMPAIGNS / TEMPLATES ======== */
    .cute-campaign-card,
    .cute-template-card {
        border-radius: 12px !important;
        padding: 10px 12px !important;
    }

    /* ======== NUMBER CHECKER ======== */
    .cute-checker-card {
        border-radius: 12px !important;
        padding: 10px 12px !important;
    }

    /* ======== FILE MANAGER ======== */
    .cute-file-card,
    .file-grid-item {
        border-radius: 10px !important;
        padding: 8px !important;
    }

    /* ======== AUTO-REPLY ======== */
    .cute-autoreply-card {
        border-radius: 12px !important;
        padding: 10px 12px !important;
    }

    /* ======== SHARED: Table card in style.css ======== */
    .cute-table-wrap {
        border-radius: 14px !important;
        overflow-x: auto !important;
    }

    /* ======== SEND MESSAGE ======== */
    .send-message-card {
        border-radius: 14px !important;
        padding: 12px !important;
    }
}

/* ========================================
   27. CUTE-MODAL & CUTE-FORM MOBILE COMPACT
   Keeps modals properly sized on mobile
   ======================================== */

/* Ensure Section 24 .form-control/.form-select overrides
   do NOT accidentally affect cute-modal custom inputs */
.cute-form-input,
.cute-form-textarea,
.cute-form-select {
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    height: auto !important;
}

@media (max-width: 576px) {

    /* Cute modal: slightly compact on mobile */
    .modal-content.cute-modal-content {
        border-radius: 16px !important;
    }
    .cute-modal-header {
        padding: 12px 14px !important;
        gap: 8px !important;
    }
    .cute-modal-header-left {
        gap: 8px !important;
    }
    .cute-modal-icon-badge {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
    }
    .cute-modal-title {
        font-size: 0.95rem !important;
    }
    .cute-modal-subtitle {
        font-size: 0.73rem !important;
    }
    .cute-modal-body {
        padding: 12px 14px !important;
    }
    .cute-modal-footer {
        padding: 10px 14px !important;
        gap: 8px !important;
    }
    .cute-form-group {
        margin-bottom: 10px !important;
    }
    .cute-form-label {
        font-size: 0.76rem !important;
        margin-bottom: 4px !important;
        gap: 4px !important;
    }

    /* Keep cute-form inputs their own compact size on mobile */
    .cute-form-input,
    .cute-form-textarea,
    .cute-form-select {
        padding: 8px 11px !important;
        font-size: 12.5px !important;
        border-radius: 10px !important;
    }

    .btn-cute-cancel {
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    /* Groups select box inside modal */
    .cute-groups-select-box {
        border-radius: 10px !important;
        max-height: 160px !important;
    }
}

/* ========================================
   SESSION CARD - WEBHOOK ACTION BUTTON
   ======================================== */
.session-btn-action.btn-action-webhook {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}
.session-btn-action.btn-action-webhook:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

.mobile-action-webhook {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}
.mobile-action-webhook:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}

/* ==========================================================================
   COURIER ORDER MANAGEMENT & EMAIL AUTOMATION STYLES
   ========================================================================== */

:root {
    --om-primary: #00a884;
    --om-primary-hover: #008f6f;
    --om-primary-light: #e6f7f3;
    --om-dark: #0f172a;
    --om-slate: #334155;
    --om-muted: #64748b;
    --om-light-border: #e2e8f0;
    --om-card-bg: #ffffff;
    --om-bg-subtle: #f8fafc;
    --om-radius-lg: 16px;
    --om-radius-md: 12px;
    --om-radius-sm: 8px;
    --om-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
    --om-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --om-shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.om-hidden {
    display: none !important;
}

.om-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.25rem 0.25rem 3rem 0.25rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--om-dark);
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .om-container {
        padding: 0.75rem 1.25rem 3.5rem 1.25rem;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .om-container {
        padding: 1rem 1.75rem 4rem 1.75rem;
        max-width: 100%;
    }
}

/* Top Header Card */
.om-header-card {
    background: var(--om-card-bg);
    border: 1px solid var(--om-light-border);
    border-radius: var(--om-radius-lg);
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--om-shadow-sm);
}

@media (min-width: 768px) {
    .om-header-card {
        padding: 0.85rem 1rem;
        margin-bottom: 0.85rem;
    }
}

.om-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.om-brand-section {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.om-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00a884 0%, #008f6f 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 168, 132, 0.25);
}

@media (min-width: 768px) {
    .om-brand-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 1.2rem;
    }
}

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

.om-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.om-title {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    font-weight: 800;
    color: var(--om-dark);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.om-badge-count {
    background: #ecfdf5;
    color: #059669;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
}

.om-subtitle {
    font-size: 0.72rem;
    color: var(--om-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.12rem 0 0 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.om-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.om-btn-outline {
    background: var(--om-bg-subtle);
    border: 1.5px solid var(--om-light-border);
    color: var(--om-slate);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.42rem 0.65rem;
    border-radius: var(--om-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.om-btn-outline:hover, .om-btn-outline:active {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--om-dark);
}

.om-btn-primary {
    background: linear-gradient(135deg, #00a884 0%, #008f6f 100%);
    color: #ffffff !important;
    border: none;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.42rem 0.85rem;
    border-radius: var(--om-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.25);
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.om-btn-primary:hover {
    background: linear-gradient(135deg, #008f6f 0%, #00775d 100%);
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.35);
    transform: translateY(-1px);
}

.om-btn-google {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1.5px solid #dadce0 !important;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.42rem 0.85rem;
    border-radius: var(--om-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.om-btn-google span {
    color: #374151 !important;
}

.om-btn-google:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #111827 !important;
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.15);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .om-btn-text {
        display: none;
    }
    .om-btn-outline, .om-btn-google {
        padding: 0.45rem 0.6rem;
    }
}

/* KPI Metrics Grid */
.om-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .om-kpi-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }
}

.om-kpi-card {
    background: var(--om-card-bg);
    border: 1px solid var(--om-light-border);
    border-radius: var(--om-radius-md);
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: var(--om-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}

.om-kpi-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--om-shadow-md);
}

.om-kpi-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .om-kpi-icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

.kpi-total .om-kpi-icon-wrap { background: #eff6ff; color: #2563eb; }
.kpi-active .om-kpi-icon-wrap { background: #f0fdfa; color: #0d9488; }
.kpi-delivered .om-kpi-icon-wrap { background: #f0fdf4; color: #16a34a; }
.kpi-returns .om-kpi-icon-wrap { background: #fef2f2; color: #dc2626; }

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

.om-kpi-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--om-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-kpi-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--om-dark);
    line-height: 1.15;
    margin: 0.08rem 0;
}

.om-kpi-sub {
    font-size: 0.64rem;
    color: var(--om-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-pulse-indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0d9488;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
    animation: omPulse 1.8s infinite;
}

@keyframes omPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Horizontal Status Tabs */
.om-status-tabs-wrapper {
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 0.7rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.om-status-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.om-status-tabs-track {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.om-tab-btn {
    background: var(--om-card-bg);
    border: 1.5px solid var(--om-light-border);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--om-slate);
    transition: all 0.15s ease;
    box-shadow: var(--om-shadow-sm);
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
}

.om-tab-btn:hover {
    border-color: #cbd5e1;
    color: var(--om-dark);
}

.om-tab-btn.active {
    background: var(--om-dark);
    border-color: var(--om-dark);
    color: #ffffff;
}

.om-tab-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.tab-all { background: #3b82f6; }
.tab-active { background: #06b6d4; }
.tab-delivered { background: #10b981; }
.tab-returned { background: #ef4444; }
.tab-today { background: #8b5cf6; }

.om-tab-badge {
    background: #f1f5f9;
    color: var(--om-slate);
    font-size: 0.66rem;
    font-weight: 800;
    padding: 0.06rem 0.4rem;
    border-radius: 999px;
}

.om-tab-btn.active .om-tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Filter & Search Panel */
.om-filter-panel {
    background: var(--om-card-bg);
    border: 1px solid var(--om-light-border);
    border-radius: var(--om-radius-lg);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--om-shadow-sm);
}

@media (min-width: 768px) {
    .om-filter-panel {
        padding: 0.85rem;
        margin-bottom: 0.85rem;
    }
}

.om-search-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

@media (min-width: 768px) {
    .om-search-bar-row {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}

.om-search-input-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.om-search-icon {
    position: absolute;
    left: 12px;
    color: var(--om-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.om-search-input {
    width: 100%;
    padding: 0.52rem 2.2rem 0.52rem 2.2rem;
    border: 1.5px solid var(--om-light-border);
    border-radius: 10px;
    font-size: 0.85rem;
    background: var(--om-bg-subtle);
    color: var(--om-dark);
    outline: none;
    transition: all 0.15s ease;
}

.om-search-input:focus {
    background: #ffffff;
    border-color: var(--om-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.12);
}

.om-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--om-muted);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.om-filter-selects {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.om-custom-select {
    flex: 1;
    padding: 0.52rem 1.6rem 0.52rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1.5px solid var(--om-light-border);
    border-radius: 10px;
    background-color: var(--om-bg-subtle);
    color: var(--om-slate);
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-custom-select:focus {
    border-color: var(--om-primary);
    background-color: #ffffff;
}

/* Courier Chips Strip */
.om-courier-strip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-top: 0.55rem;
    margin-top: 0.55rem;
    border-top: 1px solid #f1f5f9;
}

.om-courier-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--om-muted);
    text-transform: uppercase;
    flex-shrink: 0;
}

.om-courier-chips-list {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.om-courier-chips-list::-webkit-scrollbar {
    display: none;
}

.om-courier-chip {
    background: var(--om-bg-subtle);
    border: 1px solid var(--om-light-border);
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--om-slate);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.om-courier-chip:hover {
    border-color: #cbd5e1;
    color: var(--om-dark);
}

.om-courier-chip.active {
    background: var(--om-dark);
    border-color: var(--om-dark);
    color: #ffffff;
}

.om-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.dot-trax { background: #ea580c; }
.dot-leopards { background: #eab308; }
.dot-postex { background: #8b5cf6; }
.dot-blueex { background: #0284c7; }
.dot-fastex { background: #ef4444; }
.dot-flaship { background: #06b6d4; }

.om-chip-count {
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.06);
    padding: 0.05rem 0.32rem;
    border-radius: 8px;
}

.om-courier-chip.active .om-chip-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Meta Count Row */
.om-filter-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.45rem;
    font-size: 0.74rem;
    color: var(--om-muted);
    flex-wrap: wrap;
    gap: 0.3rem;
}

.om-table-actions-cluster {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.om-table-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.73rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}
.om-table-email-btn:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.25);
}
.om-table-email-btn.is-max {
    background: #f1f5f9;
    color: #475569;
}
.om-table-email-btn.is-max:hover {
    background: #e2e8f0;
    color: #1e293b;
    box-shadow: none;
}

/* Gmail Disconnect Notice */
.om-gmail-disconnect-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.76rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.om-gmail-disconnect-notice .notice-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.om-gmail-disconnect-notice .google-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    flex-shrink: 0;
}
.om-gmail-disconnect-notice .notice-text {
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
}
.om-gmail-disconnect-notice .notice-text strong {
    color: #0f172a;
    font-weight: 600;
}
.om-gmail-disconnect-notice .notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.om-gmail-disconnect-notice .notice-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(37,99,235,0.2);
}

.om-gmail-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    margin-left: 6px;
    text-decoration: none;
    vertical-align: middle;
    transition: all 0.15s ease;
}
.om-gmail-status-pill.connected {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.om-gmail-status-pill.disconnected {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}
.om-gmail-status-pill.disconnected:hover {
    background: #ffe4e6;
    color: #be123c;
    border-color: #fda4af;
}
.om-gmail-status-pill .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.om-gmail-status-pill.connected .status-dot {
    background: #10b981;
}
.om-gmail-status-pill.disconnected .status-dot {
    background: #f43f5e;
}

/* Desktop Table Action Buttons Cluster */
.om-table-actions-cluster {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.om-table-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
    flex-shrink: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.om-table-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}
.om-table-icon-btn:active {
    transform: scale(0.92);
}

.om-table-icon-btn.btn-email {
    background: #fee2e2;
    color: #dc2626;
}
.om-table-icon-btn.btn-email:hover {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.25);
}

.om-table-icon-btn.btn-email-warn {
    background: #fef3c7;
    color: #d97706;
}
.om-table-icon-btn.btn-email-warn:hover {
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25);
}

.om-table-icon-btn.btn-email-done {
    background: #f1f5f9;
    color: #475569;
}
.om-table-icon-btn.btn-email-done:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.om-table-icon-btn.btn-sync {
    background: #e0f2fe;
    color: #0284c7;
}
.om-table-icon-btn.btn-sync:hover {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
}

.om-table-icon-btn.btn-history {
    background: #ede9fe;
    color: #7c3aed;
}
.om-table-icon-btn.btn-history:hover {
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.25);
}

.om-table-icon-btn.btn-details {
    background: #ecfdf5;
    color: #059669;
}
.om-table-icon-btn.btn-details:hover {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.25);
}

.om-table-icon-btn .om-attempt-sub-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.om-table-btn-email {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.om-table-btn-email:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(225, 29, 72, 0.25);
}

.om-table-btn-history {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.om-table-btn-history:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

.om-table-btn-details {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.om-table-btn-details:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.25);
}

.btn-email-history {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.btn-email-history:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* Email Dispatch History Modal Styling - Mobile-First Connected Progress Tracker */
.om-history-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.15rem;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.om-history-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.om-history-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.om-history-header-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.om-history-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.om-history-title-text {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}

.om-history-tracking-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    width: fit-content;
}

.om-history-tracking-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.om-history-tracking-pill .copy-icon {
    font-size: 0.70rem;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.om-history-tracking-pill:hover .copy-icon {
    color: #2563eb;
}

.om-attempts-progress-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.om-attempts-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.om-attempts-tracker-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.om-attempts-tracker-wrap::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.om-attempt-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 32%;
}

.om-attempt-node .node-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    margin-bottom: 0.3rem;
}

.om-attempt-node.is-done .node-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.om-attempt-node.is-active .node-circle {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.om-attempt-node .node-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.om-attempt-node .node-sub {
    font-size: 0.63rem;
    color: #64748b;
    line-height: 1.2;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.om-attempt-node.is-done .node-sub {
    color: #059669;
    font-weight: 600;
}

.om-attempt-node.is-active .node-sub {
    color: #2563eb;
    font-weight: 600;
}

/* Modern Clean Timeline Feed */
.om-history-feed {
    position: relative;
    padding-left: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.om-history-feed::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 11px;
    width: 2px;
    background: #e2e8f0;
}

/* Resend / Postmark Style Clean Email Logs */
.om-history-feed {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding-left: 0;
    margin-top: 0.25rem;
}

.om-history-feed::before {
    display: none !important;
}

.resend-log-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    transition: all 0.15s ease-in-out;
}

.resend-log-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.resend-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.resend-status-dot.sent {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.resend-status-dot.failed {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.resend-recipient-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
}

.resend-attempt-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.resend-time-text {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
}

.resend-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.73rem;
    color: #64748b;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid #f1f5f9;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.resend-trigger-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #475569;
}

.resend-error-box {
    margin-top: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    font-size: 0.7rem;
    color: #e11d48;
}

.om-active-filter-pill {
    background: var(--om-primary-light);
    color: var(--om-primary-hover);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.66rem;
    margin-left: 0.25rem;
    display: inline-block;
}

.om-reset-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.om-reset-btn:hover {
    text-decoration: underline;
}

/* Mobile Shipment Cards Feed (< 992px) */
.om-mobile-feed {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.om-card-mobile {
    background: var(--om-card-bg);
    border: 1px solid var(--om-light-border);
    border-radius: var(--om-radius-md);
    padding: 0.75rem 0.85rem;
    box-shadow: var(--om-shadow-sm);
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.om-card-mobile:active {
    transform: scale(0.985);
    border-color: var(--om-primary);
}

.om-card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.om-card-top-left {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.om-card-serial {
    font-size: 0.66rem;
    font-weight: 800;
    color: var(--om-muted);
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 5px;
}

.om-card-tracking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--om-bg-subtle);
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    margin-bottom: 0.45rem;
    gap: 0.4rem;
}

.om-card-tracking-left {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.om-card-tracking-num {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--om-dark);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-card-copy-btn {
    background: #ffffff;
    border: 1px solid var(--om-light-border);
    color: var(--om-muted);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.om-card-copy-btn:active {
    transform: scale(0.9);
    color: var(--om-primary);
}

.om-card-cod {
    font-size: 0.84rem;
    font-weight: 800;
    color: #059669;
    white-space: nowrap;
    flex-shrink: 0;
}

.om-card-customer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.om-card-customer-details {
    flex: 1;
    min-width: 0;
}

.om-card-customer-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--om-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.08rem;
}

.om-card-customer-sub {
    font-size: 0.72rem;
    color: var(--om-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-card-city {
    color: #b45309;
    font-weight: 600;
}

.om-card-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.om-round-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    text-decoration: none;
    transition: transform 0.1s ease;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.om-round-action-btn:active {
    transform: scale(0.9);
}

.btn-phone-call { background: #eff6ff; color: #2563eb; }
.btn-whatsapp-chat { background: #25d366; color: #ffffff; }

.om-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.4rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.7rem;
    color: #94a3b8;
}

.om-card-view-details {
    color: var(--om-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Status & Courier Badges */
.om-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 12px;
    white-space: nowrap;
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-green, .pill-green { background: #dcfce7; color: #15803d; }
.status-blue, .pill-blue { background: #dbeafe; color: #1d4ed8; }
.status-amber, .pill-amber { background: #fef3c7; color: #b45309; }
.status-red, .pill-red { background: #fee2e2; color: #b91c1c; }
.status-purple, .pill-purple { background: #f3e8ff; color: #7e22ce; }
.status-gray, .pill-gray { background: #f1f5f9; color: #475569; }

.om-courier-badge, .om-card-courier-tag {
    font-size: 0.64rem;
    font-weight: 800;
    padding: 0.12rem 0.4rem;
    border-radius: 5px;
    text-transform: uppercase;
}

.badge-trax, .tag-trax { background: #ffedd5; color: #c2410c; }
.badge-leopards, .tag-leopards { background: #fef9c3; color: #a16207; }
.badge-postex, .tag-postex { background: #f3e8ff; color: #7e22ce; }
.badge-blueex, .tag-blueex { background: #e0f2fe; color: #0369a1; }
.badge-fastex, .tag-fastex { background: #fee2e2; color: #b91c1c; }

/* Desktop Table View (>= 992px) */
.om-desktop-table-container {
    background: var(--om-card-bg);
    border: 1px solid var(--om-light-border);
    border-radius: var(--om-radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--om-shadow-sm);
    margin-bottom: 0.85rem;
}

.om-desktop-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.om-desktop-table thead th {
    background: var(--om-bg-subtle);
    color: var(--om-slate);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid var(--om-light-border);
    white-space: nowrap;
}

.om-desktop-table tbody td {
    padding: 0.7rem 0.65rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
    color: #1e293b;
    vertical-align: middle;
}

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

/* Sticky Details & Actions Column: permanently pinned on top without horizontal swipe */
.om-desktop-table thead th:last-child,
.om-desktop-table tbody td:last-child {
    position: sticky;
    right: 0;
    background: #ffffff;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 5;
}

.om-desktop-table thead th:last-child {
    background: var(--om-bg-subtle, #f8fafc);
    z-index: 6;
}

.om-desktop-table tbody tr:hover td:last-child {
    background: #f8fafc;
}

/* Modern Tracking Number Capsule */
.om-tracking-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3.5px 8px;
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: all;
    max-width: fit-content;
}

.om-tracking-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.om-tracking-num {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.om-pill-copy-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease, transform 0.1s ease;
}

.om-tracking-pill:hover .om-pill-copy-btn {
    color: var(--om-primary);
}

.om-pill-copy-btn:active {
    transform: scale(0.9);
}

.om-table-copy-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}

.om-table-copy-btn:hover {
    color: var(--om-primary);
}

.om-table-btn-details {
    padding: 0.32rem 0.7rem;
    border-radius: 7px;
    background: var(--om-primary-light);
    color: var(--om-primary-hover);
    border: 1px solid #bbf0e4;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.om-table-btn-details:hover {
    background: var(--om-primary);
    color: #ffffff;
    border-color: var(--om-primary);
}

/* Pagination */
.om-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding: 0.35rem 0.1rem;
}

.om-pagination-info {
    font-size: 0.76rem;
    color: var(--om-muted);
}

.om-pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.om-page-btn {
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--om-light-border);
    background: #ffffff;
    color: var(--om-slate);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.om-page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: var(--om-dark);
}

.om-page-btn.active {
    background: var(--om-primary);
    border-color: var(--om-primary);
    color: #ffffff;
}

.om-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Empty States */
.om-empty-state-box, .om-zero-orders-card {
    background: var(--om-card-bg);
    border: 1px solid var(--om-light-border);
    border-radius: var(--om-radius-lg);
    padding: 2.25rem 1rem;
    text-align: center;
    margin-bottom: 0.85rem;
}

.om-empty-icon-circle, .om-zero-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #f0fdf4;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 0.75rem auto;
}

.om-empty-heading, .om-zero-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--om-dark);
    margin-bottom: 0.35rem;
}

.om-empty-desc, .om-zero-subtitle {
    font-size: 0.82rem;
    color: var(--om-muted);
    margin-bottom: 1rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.om-zero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Details Modal & Mobile Bottom Sheet */
.om-details-sheet-modal .modal-dialog {
    margin: 1.25rem auto;
    max-width: 580px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.om-details-sheet-modal .modal-content {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: var(--om-shadow-lg);
    overflow: hidden;
}

@media (max-width: 767px) {
    .om-details-sheet-modal {
        padding: 0 !important;
    }
    .om-details-sheet-modal .modal-dialog {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        max-width: 100%;
        max-height: 92vh;
        transform: translateY(0);
        display: flex;
        align-items: flex-end;
    }
    .om-sheet-content {
        width: 100%;
        border-radius: 20px 20px 0 0 !important;
        max-height: 92vh;
        display: flex;
        flex-direction: column;
        border-bottom: none !important;
        animation: omSheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

@keyframes omSheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.om-sheet-handle-bar {
    display: flex;
    justify-content: center;
    padding: 8px 0 3px 0;
    background: #ffffff;
    cursor: grab;
}

.om-sheet-handle {
    width: 38px;
    height: 4.5px;
    background: #cbd5e1;
    border-radius: 999px;
}

.om-sheet-header {
    background: #ffffff;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.om-sheet-header-left {
    min-width: 0;
    flex: 1;
}

.om-sheet-tags-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.om-modal-courier-tag {
    font-size: 0.64rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.om-modal-live-tag {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.om-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: omPulse 1.8s infinite;
}

.om-sheet-tracking-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.om-sheet-tracking-code {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--om-dark);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-sheet-copy-btn {
    background: #f1f5f9;
    border: 1px solid var(--om-light-border);
    color: var(--om-muted);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.om-sheet-copy-btn:hover {
    background: #e2e8f0;
    color: var(--om-dark);
}

.om-sheet-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.om-sheet-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--om-light-border);
    background: var(--om-bg-subtle);
    color: var(--om-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.om-sheet-icon-btn:hover {
    background: var(--om-dark);
    color: #ffffff;
    border-color: var(--om-dark);
}

.om-sheet-body {
    padding: 0.7rem 0.8rem;
    background: var(--om-bg-subtle);
    overflow-y: auto;
    max-height: calc(90vh - 125px);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .om-sheet-body {
        padding: 0.95rem 1.05rem;
        max-height: 70vh;
        gap: 0.75rem;
    }
}

.om-sheet-footer {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom, 0.6rem));
}

@media (max-width: 576px) {
    .om-sheet-footer {
        justify-content: stretch;
    }
    .om-sheet-footer .om-btn-outline {
        flex: 1;
        justify-content: center;
    }
    .om-sheet-footer .om-btn-track-portal {
        flex: 2;
        justify-content: center;
    }
}

/* Modal Internal Blocks */
.om-modal-banner {
    background: #ffffff;
    border: 1px solid var(--om-light-border);
    border-left: 4px solid #94a3b8;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.om-modal-banner.banner-delivered {
    border-left-color: #10b981;
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #bbf7d0;
}

.om-modal-banner.banner-returned {
    border-left-color: #ef4444;
    background: linear-gradient(90deg, #fef2f2 0%, #ffffff 100%);
    border-color: #fecaca;
}

.om-modal-banner.banner-active {
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%);
    border-color: #bfdbfe;
}

.om-modal-banner.banner-amber {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
    border-color: #fde68a;
}

.om-banner-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.om-banner-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.banner-delivered .om-banner-icon-box { background: #dcfce7; color: #15803d; }
.banner-returned .om-banner-icon-box { background: #fee2e2; color: #b91c1c; }
.banner-active .om-banner-icon-box { background: #dbeafe; color: #1d4ed8; }
.banner-amber .om-banner-icon-box { background: #fef3c7; color: #b45309; }

.om-banner-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--om-dark);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-banner-sub {
    font-size: 0.68rem;
    color: var(--om-muted);
    margin-top: 0.08rem;
}

/* 4-Cell Matrix */
.om-modal-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

@media (min-width: 576px) {
    .om-modal-stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.om-modal-stat-cell {
    background: #ffffff;
    border: 1px solid var(--om-light-border);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    text-align: center;
}

.om-cell-lbl {
    font-size: 0.62rem;
    color: var(--om-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.om-cell-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--om-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-cell-val.is-cod {
    color: #059669;
}

/* Customer & Party Box */
.om-modal-party-box {
    background: #ffffff;
    border: 1px solid var(--om-light-border);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
}

.om-party-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.om-party-label {
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--om-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.om-city-badge {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.om-customer-big-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--om-dark);
    margin-bottom: 0.2rem;
}

.om-delivery-address {
    font-size: 0.74rem;
    color: var(--om-slate);
    line-height: 1.35;
    margin-bottom: 0.45rem;
    background: var(--om-bg-subtle);
    padding: 0.38rem 0.55rem;
    border-radius: 6px;
    border: 1px dashed var(--om-light-border);
}

.om-contact-action-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.om-phone-badge {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--om-slate);
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.om-quick-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.om-quick-pill-btn:active {
    transform: scale(0.94);
}

.pill-call { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.pill-wa { background: #25d366; color: #ffffff; }
.pill-copy { background: #f1f5f9; color: var(--om-muted); border: 1px solid var(--om-light-border); }

.om-origin-subrow {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px dashed var(--om-light-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--om-muted);
}

/* Timeline Box */
.om-timeline-container {
    background: #ffffff;
    border: 1px solid var(--om-light-border);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
}

.om-timeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.om-timeline-heading {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--om-slate);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.om-timeline-badge {
    background: #f1f5f9;
    color: var(--om-slate);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
}

.om-timeline-step-list {
    position: relative;
    padding-left: 0.2rem;
}

.om-timeline-step {
    position: relative;
    padding-left: 1.4rem;
    padding-bottom: 0.55rem;
}

.om-timeline-step:last-child {
    padding-bottom: 0;
}

.om-timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 14px;
    bottom: -2px;
    width: 2px;
    background: #e2e8f0;
}

.om-timeline-node-icon {
    position: absolute;
    left: 0;
    top: 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.52rem;
    z-index: 1;
}

.om-timeline-step.is-latest .om-timeline-node-icon {
    background: #00a884;
    border-color: #00a884;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.2);
}

.om-timeline-card {
    background: var(--om-bg-subtle);
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 0.38rem 0.55rem;
}

.om-timeline-step.is-latest .om-timeline-card {
    background: #ffffff;
    border-color: #bbf0e4;
    box-shadow: 0 1px 3px rgba(0, 168, 132, 0.08);
}

.om-node-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.om-node-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--om-dark);
}

.om-timeline-step.is-latest .om-node-title {
    color: #008f6f;
    font-weight: 800;
}

.om-node-timestamp {
    font-size: 0.65rem;
    color: #94a3b8;
    white-space: nowrap;
}

.om-node-body {
    font-size: 0.7rem;
    color: var(--om-muted);
    margin-top: 0.12rem;
    line-height: 1.3;
}

.om-node-recipient {
    margin-top: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    padding: 0.12rem 0.4rem;
    border-radius: 5px;
}

/* ==========================================================================
   MOBILE-FIRST COMPACT ADJUSTMENTS FOR ORDER MANAGEMENT & EMAIL AUTOMATION
   ========================================================================== */
@media (max-width: 767px) {
    .om-container {
        padding: 0.25rem 0.25rem 2.5rem 0.25rem;
    }
    .om-header-card {
        padding: 0.45rem 0.6rem;
        margin-bottom: 0.45rem;
        border-radius: 10px;
    }
    .om-header-content {
        flex-wrap: nowrap !important;
        gap: 0.45rem !important;
    }
    .om-brand-section {
        min-width: 0 !important;
        flex: 1 !important;
    }
    .om-brand-text {
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .om-header-actions {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
    }
    .om-brand-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }
    .om-title {
        font-size: 0.9rem !important;
    }
    .om-badge-count {
        font-size: 0.62rem !important;
        padding: 0.06rem 0.35rem !important;
    }
    .om-subtitle {
        font-size: 0.65rem !important;
        margin-top: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .om-btn-outline, .om-btn-primary, .om-btn-google {
        font-size: 0.7rem !important;
        padding: 0.32rem 0.55rem !important;
        border-radius: 6px !important;
    }
    .om-kpi-grid {
        gap: 0.35rem;
        margin-bottom: 0.45rem;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .om-kpi-card {
        padding: 0.45rem 0.55rem !important;
        border-radius: 10px !important;
        gap: 0.4rem !important;
    }
    .om-kpi-icon-wrap {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }
    .om-kpi-label {
        font-size: 0.6rem !important;
        line-height: 1 !important;
    }
    .om-kpi-val {
        font-size: 0.95rem !important;
        margin: 0.05rem 0 !important;
        line-height: 1.1 !important;
    }
    .om-kpi-sub {
        font-size: 0.58rem !important;
    }
    .om-zero-orders-card, .om-empty-state-box {
        padding: 1.25rem 0.85rem !important;
        border-radius: 12px !important;
        margin-bottom: 0.5rem !important;
    }
    .om-zero-icon, .om-empty-icon-circle {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.15rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 12px !important;
    }
    .om-zero-title, .om-empty-heading {
        font-size: 0.95rem !important;
        margin-bottom: 0.25rem !important;
    }
    .om-zero-subtitle, .om-empty-desc {
        font-size: 0.72rem !important;
        margin-bottom: 0.85rem !important;
        line-height: 1.4 !important;
    }
    .om-zero-actions {
        gap: 0.4rem !important;
    }
    .om-zero-actions .om-btn-primary,
    .om-zero-actions .om-btn-outline {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.72rem !important;
    }
    .om-status-tabs-wrapper {
        margin-bottom: 0.45rem !important;
    }
    .om-status-tabs-track {
        gap: 0.25rem !important;
    }
    .om-tab-btn {
        padding: 0.25rem 0.55rem !important;
        font-size: 0.68rem !important;
    }
    .om-filter-panel {
        padding: 0.55rem !important;
        margin-bottom: 0.45rem !important;
        border-radius: 10px !important;
    }
    .om-mobile-feed {
        gap: 0.4rem !important;
    }
    .om-mobile-card {
        padding: 0.55rem 0.65rem !important;
        border-radius: 10px !important;
    }
    .om-card-tracking {
        font-size: 0.8rem !important;
    }
    .om-card-details-row {
        font-size: 0.68rem !important;
        gap: 0.25rem !important;
        margin-top: 0.35rem !important;
        padding-top: 0.35rem !important;
    }

    /* Compact Order Details Modal for Mobile */
    .om-sheet-header {
        padding: 0.45rem 0.75rem !important;
    }
    .om-sheet-body {
        padding: 0.45rem 0.65rem !important;
        gap: 0.35rem !important;
        max-height: calc(88vh - 100px) !important;
    }
    .om-modal-banner {
        padding: 0.4rem 0.55rem !important;
        border-radius: 8px !important;
    }
    .om-banner-icon-box {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.72rem !important;
        border-radius: 6px !important;
    }
    .om-banner-title {
        font-size: 0.78rem !important;
    }
    .om-banner-sub {
        font-size: 0.62rem !important;
    }
    .om-modal-stat-grid {
        gap: 0.25rem !important;
    }
    .om-modal-stat-cell {
        padding: 0.25rem 0.35rem !important;
        border-radius: 6px !important;
    }
    .om-cell-lbl {
        font-size: 0.56rem !important;
        margin-bottom: 0.05rem !important;
    }
    .om-cell-val {
        font-size: 0.74rem !important;
    }
    .om-modal-party-box {
        padding: 0.45rem 0.55rem !important;
        border-radius: 8px !important;
    }
    .om-party-head {
        margin-bottom: 0.15rem !important;
    }
    .om-customer-big-name {
        font-size: 0.8rem !important;
        margin-bottom: 0.1rem !important;
    }
    .om-delivery-address {
        font-size: 0.68rem !important;
        padding: 0.25rem 0.4rem !important;
        margin-bottom: 0.3rem !important;
        border-radius: 5px !important;
    }
    .om-contact-action-bar {
        gap: 0.2rem !important;
    }
    .om-phone-badge {
        font-size: 0.68rem !important;
        padding: 0.15rem 0.35rem !important;
        border-radius: 5px !important;
    }
    .om-quick-pill-btn {
        padding: 0.18rem 0.4rem !important;
        font-size: 0.66rem !important;
        border-radius: 5px !important;
    }
    .om-timeline-container {
        padding: 0.45rem 0.55rem !important;
        border-radius: 8px !important;
    }
    .om-timeline-top {
        margin-bottom: 0.3rem !important;
    }
    .om-timeline-heading {
        font-size: 0.7rem !important;
    }
    .om-timeline-badge {
        font-size: 0.6rem !important;
        padding: 0.06rem 0.3rem !important;
    }
    .om-timeline-node-icon {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.58rem !important;
    }
    .om-timeline-card {
        padding: 0.28rem 0.45rem !important;
        margin-bottom: 0.25rem !important;
        border-radius: 5px !important;
    }
    .om-node-title {
        font-size: 0.7rem !important;
    }
    .om-node-timestamp {
        font-size: 0.58rem !important;
    }
    .om-node-body {
        font-size: 0.65rem !important;
        margin-top: 0.1rem !important;
    }
    .om-sheet-footer {
        padding: 0.35rem 0.65rem !important;
    }
}

/* ==========================================================================
   ULTRA-COMPACT IMPERSONATION FLOATING DOCK FOR MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    body:has(.impersonation-dock-wrapper),
    body:has(.impersonation-bar) {
        padding-bottom: 50px !important;
    }
    .impersonation-dock-wrapper {
        bottom: 8px !important;
        width: calc(100% - 16px) !important;
        max-width: 440px !important;
    }
    .impersonation-dock {
        padding: 4px 8px !important;
        gap: 6px !important;
        border-radius: 10px !important;
        box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.45) !important;
    }
    .impersonation-dock-left {
        gap: 6px !important;
        min-width: 0 !important;
        flex: 1 !important;
    }
    .impersonation-avatar {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }
    .impersonation-details {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
        min-width: 0 !important;
        flex: 1 !important;
    }
    .impersonation-eyebrow {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    .impersonation-badge {
        font-size: 8.5px !important;
        padding: 1px 4px !important;
        letter-spacing: 0 !important;
    }
    .impersonation-tier-pill {
        display: none !important;
    }
    .impersonation-user-title {
        font-size: 11px !important;
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        flex: 1 !important;
    }
    .impersonation-label,
    .impersonation-handle {
        display: none !important;
    }
    .impersonation-name {
        max-width: 105px !important;
        display: inline-block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    .impersonation-exit-btn {
        font-size: 10.5px !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        gap: 3px !important;
        white-space: nowrap !important;
        height: 24px !important;
    }
}

/* ==========================================================================
   26. COMPACT SESSIONS REDESIGN (DESKTOP TABLE & MOBILE COMPACT CARDS)
   ========================================================================== */

/* --- Desktop Table Card Container (Compact) --- */
.session-table-card {
    background: #ffffff;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden;
    margin-bottom: 1.5rem !important;
    transition: all 0.2s ease;
}

.session-table-card:hover {
    box-shadow: 0 6px 20px -3px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.session-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.session-table thead {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.session-table thead th {
    font-size: 0.68rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
}

.session-table tbody tr {
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.session-table tbody tr:last-child {
    border-bottom: none;
}

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

.session-table tbody td {
    padding: 0.75rem 1rem !important;
    vertical-align: middle;
    border-top: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.825rem !important;
    color: #1e293b;
}

/* --- Compact Desktop Info Cell --- */
.session-info-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem !important;
}

.session-row-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem !important;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.18s ease;
}

.session-table tbody tr:hover .session-row-avatar {
    transform: scale(1.04);
}

.session-row-avatar.connected {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1.5px solid #a7f3d0;
    color: #059669;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

.session-row-avatar.connecting,
.session-row-avatar.qr {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1.5px solid #bfdbfe;
    color: #2563eb;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.15);
}

.session-row-avatar.disconnected {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1.5px solid #fecdd3;
    color: #e11d48;
    box-shadow: 0 1px 4px rgba(225, 29, 72, 0.1);
}

.session-row-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem !important;
    min-width: 0;
}

.session-row-name {
    font-weight: 700;
    font-size: 0.88rem !important;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.session-id-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.65rem !important;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.08rem 0.4rem !important;
    border-radius: 5px !important;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    width: fit-content;
}

.session-id-chip:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* --- Compact Status Badges / Pills --- */
.session-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 9999px;
    font-size: 0.7rem !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border-width: 1px;
    border-style: solid;
    line-height: 1.2;
}

.session-status-pill.status-connected {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.session-status-pill.status-disconnected {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.session-status-pill.status-connecting,
.session-status-pill.status-qr {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.status-dot-pulse {
    width: 6.5px !important;
    height: 6.5px !important;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.status-connected .status-dot-pulse {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite;
}

.status-connecting .status-dot-pulse,
.status-qr .status-dot-pulse {
    background: #3b82f6;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: statusPulse 2s infinite;
}

.status-disconnected .status-dot {
    width: 6.5px !important;
    height: 6.5px !important;
    border-radius: 50%;
    background: #f43f5e;
    display: inline-block;
}

/* --- Compact Phone & Date Pills --- */
.session-phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem !important;
    font-size: 0.78rem !important;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.15rem 0.5rem !important;
    border-radius: 6px !important;
}

.session-phone-pill i {
    color: #10b981;
    font-size: 0.7rem !important;
}

.session-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem !important;
    font-size: 0.75rem !important;
    color: #64748b;
    white-space: nowrap;
}

.session-date-pill i {
    color: #94a3b8;
    font-size: 0.7rem !important;
}

/* --- Compact Desktop Action Buttons --- */
.session-action-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem !important;
}

.session-btn-action {
    width: 30px !important;
    height: 30px !important;
    border-radius: 7px !important;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem !important;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    position: relative;
    background: #ffffff;
}

.session-btn-action:active {
    transform: scale(0.92) !important;
}

.session-btn-action.btn-action-send {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}
.session-btn-action.btn-action-send:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.session-btn-action.btn-action-reconnect {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
}
.session-btn-action.btn-action-reconnect:hover {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.session-btn-action.btn-action-qr {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}
.session-btn-action.btn-action-qr:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.session-btn-action.btn-action-bot {
    background: #f0fdfa;
    border-color: #ccfbf1;
    color: #0d9488;
}
.session-btn-action.btn-action-bot:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.session-btn-action.btn-action-ai {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #7c3aed;
}
.session-btn-action.btn-action-ai:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.session-btn-action.btn-action-webhook {
    background: #ecfeff;
    border-color: #cffafe;
    color: #0891b2;
}
.session-btn-action.btn-action-webhook:hover {
    background: #0891b2;
    border-color: #0891b2;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.25);
}

.session-btn-action.btn-action-settings {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}
.session-btn-action.btn-action-settings:hover {
    background: #475569;
    border-color: #475569;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.2);
}

.session-btn-action.btn-action-delete {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}
.session-btn-action.btn-action-delete:hover {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

/* ==========================================================================
   ULTRA-COMPACT MOBILE SESSION CARD (THEME OVERRIDE)
   ========================================================================== */

.session-card-mobile {
    background: #ffffff;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 0.65rem !important;
    overflow: hidden;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.session-card-mobile:active {
    transform: scale(0.985) !important;
}

/* Top accent line */
.session-card-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px !important;
    background: #cbd5e1;
    z-index: 2;
}

.session-card-mobile.connected::before {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%) !important;
}

.session-card-mobile.connecting::before,
.session-card-mobile.qr::before {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%) !important;
}

.session-card-mobile.disconnected::before {
    background: linear-gradient(90deg, #f43f5e 0%, #fb7185 100%) !important;
}

/* Top Header */
.session-card-top-mobile {
    padding: 0.65rem 0.75rem 0.45rem 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem !important;
}

.session-card-main-info {
    display: flex;
    align-items: center;
    gap: 0.55rem !important;
    min-width: 0;
    flex: 1;
}

/* Compact Avatar */
.session-avatar-wrap {
    position: relative;
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0;
}

.session-avatar-icon {
    width: 100%;
    height: 100%;
    border-radius: 9px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem !important;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
}

.session-avatar-wrap.connected .session-avatar-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-color: #a7f3d0 !important;
    color: #059669 !important;
}

.session-avatar-wrap.connecting .session-avatar-icon,
.session-avatar-wrap.qr .session-avatar-icon {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}

.session-avatar-wrap.disconnected .session-avatar-icon {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%) !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
}

.session-live-pulse {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px !important;
    height: 9px !important;
    border-radius: 50%;
    border: 1.5px solid #ffffff !important;
    background: #94a3b8;
}

/* Compact Identity */
.session-identity-mobile {
    min-width: 0;
    flex: 1;
}

.session-title-row {
    margin-bottom: 0.1rem !important;
}

.session-name-mobile {
    font-weight: 700;
    font-size: 0.88rem !important;
    color: #0f172a;
    line-height: 1.2 !important;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-id-chip-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem !important;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px !important;
    padding: 0.08rem 0.35rem !important;
    font-size: 0.65rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #64748b;
    cursor: pointer;
    line-height: 1.15;
}

.session-id-prefix {
    color: #94a3b8;
    font-size: 0.6rem !important;
    font-weight: 700;
}

/* Compact Details Strip */
.session-card-details-mobile {
    padding: 0.35rem 0.65rem !important;
    margin: 0 0.65rem 0.45rem 0.65rem !important;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem !important;
}

.session-detail-item {
    display: flex;
    align-items: center;
    gap: 0.3rem !important;
    font-size: 0.74rem !important;
    min-width: 0;
}

.session-detail-item .detail-icon {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.68rem !important;
    color: #64748b;
    flex-shrink: 0;
}

.phone-detail .detail-icon {
    color: #10b981 !important;
}

.detail-value {
    color: #334155;
    font-weight: 600;
    font-size: 0.74rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-value.unlinked {
    color: #94a3b8;
    font-weight: 400;
    font-style: italic;
}

/* Compact Action Section */
.session-card-actions-mobile {
    padding: 0 0.65rem 0.65rem 0.65rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.45rem !important;
}

.session-primary-action-mobile.dual {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.35rem !important;
}

.btn-primary-mobile,
.btn-secondary-mobile {
    width: 100%;
    padding: 0.45rem 0.65rem !important;
    border-radius: 8px !important;
    border: 1px solid transparent;
    font-size: 0.8rem !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem !important;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-send-mobile {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.22) !important;
}

.btn-qr-mobile {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22) !important;
}

.btn-connect-mobile {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.22) !important;
}

.btn-reconnect-mobile {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #d97706 !important;
}

.btn-text {
    font-size: 0.78rem !important;
}

.btn-arrow {
    font-size: 0.68rem !important;
}

/* Compact 5-Column Grid */
.session-tools-grid-mobile {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.3rem !important;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.15rem !important;
    border-radius: 8px !important;
    border: 1px solid #f1f5f9 !important;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.12s ease;
    outline: none;
    text-decoration: none;
    min-width: 0;
}

.tool-btn:active {
    transform: scale(0.92) !important;
}

.tool-btn .tool-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 7px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem !important;
    margin-bottom: 0.15rem !important;
    transition: all 0.15s ease;
}

.tool-btn .tool-label {
    font-size: 0.6rem !important;
    font-weight: 600 !important;
    color: #475569;
    letter-spacing: -0.01em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tool-bot .tool-icon {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    color: #0d9488;
}
.tool-ai .tool-icon {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #7c3aed;
}
.tool-webhook .tool-icon {
    background: #ecfeff;
    border: 1px solid #cffafe;
    color: #0891b2;
}
.tool-settings .tool-icon {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.tool-delete .tool-icon {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
}

/* ========================================================
   EMAIL SETTINGS & GOOGLE OAUTH COMPACT DESIGN
   ======================================================== */

.es-compact-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0.25rem 0.25rem 2rem 0.25rem;
}

@media (min-width: 768px) {
    .es-compact-wrap {
        padding: 0.5rem 0.5rem 2.5rem 0.5rem;
    }
}

.es-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
    .es-panel {
        padding: 0.85rem 1rem;
        margin-bottom: 0.75rem;
    }
}

.es-panel-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}


.es-account-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.65rem;
}

.es-google-icon-sm {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fee2e2;
    color: #ea4335;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(234, 67, 53, 0.15);
}

.es-form-label-compact {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.2rem;
    display: block;
}

.es-input-compact {
    width: 100%;
    height: 34px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.15s ease;
}

.es-input-compact:focus {
    border-color: #00a884;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.12);
}

.es-textarea-compact {
    width: 100%;
    min-height: 78px;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.45;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    resize: vertical;
    transition: all 0.15s ease;
    display: block;
}

.es-textarea-compact:focus {
    border-color: #00a884;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.12);
}

.es-switch-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.es-switch-compact strong {
    font-size: 0.76rem;
    color: #0f172a;
    display: block;
}

.es-switch-compact p {
    font-size: 0.68rem;
    color: #64748b;
    margin: 0;
    line-height: 1.25;
}

/* Custom Bulletproof Toggle Switch */
.es-switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.es-switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.es-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 999px;
}

.es-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.es-switch-toggle input:checked + .es-slider {
    background-color: #00a884;
}

.es-switch-toggle input:checked + .es-slider::before {
    transform: translateX(20px);
}

.es-btn-sm-primary {
    background: linear-gradient(135deg, #00a884 0%, #008f6f 100%);
    color: #ffffff !important;
    border: none;
    height: 34px;
    padding: 0 0.85rem;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.es-btn-sm-primary:hover {
    background: linear-gradient(135deg, #008f6f 0%, #00775d 100%);
    transform: translateY(-1px);
}

.es-btn-sm-outline {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    height: 29px;
    padding: 0 0.65rem;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.es-btn-sm-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.es-btn-sm-danger {
    background: #fff1f2;
    border: 1.5px solid #fecdd3;
    color: #e11d48;
    height: 29px;
    padding: 0 0.65rem;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.es-btn-sm-danger:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
}

.es-micro-pill {
    font-size: 0.66rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.es-hero-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
    .es-hero-compact {
        padding: 2rem 1.5rem;
    }
}


.om-gmail-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    margin-left: 6px;
    text-decoration: none;
    vertical-align: middle;
    transition: all 0.15s ease;
}
.om-gmail-status-pill.connected {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}
.om-gmail-status-pill.disconnected {
    background: #fff1f2 !important;
    color: #e11d48 !important;
    border: 1px solid #fecdd3 !important;
}
.om-gmail-status-pill.disconnected:hover {
    background: #ffe4e6 !important;
    color: #be123c !important;
    border-color: #fda4af !important;
}
.om-gmail-status-pill .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.om-gmail-status-pill.connected .status-dot {
    background: #10b981;
}
.om-gmail-status-pill.disconnected .status-dot {
    background: #f43f5e;
}


.btn-email-send {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecdd3 !important;
}
.btn-email-send:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

/* Ultra-Compact Email Disconnected Warning Strip */
.om-email-warning-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.38rem 0.75rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 3.5px solid #ea4335;
    border-radius: 8px;
    font-size: 0.76rem;
    box-shadow: 0 1px 3px rgba(234, 67, 53, 0.05);
}

.om-warning-strip-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.om-warning-strip-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.om-warning-strip-text {
    min-width: 0;
    color: #7c2d12;
    line-height: 1.25;
    font-size: 0.74rem;
}

.om-warning-strip-title {
    font-weight: 700;
    color: #9a3412;
    margin-right: 0.25rem;
}

.om-warning-strip-desc {
    color: #8c3b17;
}

.om-warning-strip-actions {
    flex-shrink: 0;
}

.om-btn-connect-google-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    transition: all 0.15s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.om-btn-connect-google-compact:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767.98px) {
    .om-email-warning-strip {
        padding: 0.32rem 0.55rem;
        gap: 0.45rem;
    }
    .om-btn-connect-google-compact {
        padding: 0.2rem 0.48rem;
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .om-email-warning-strip {
        flex-direction: row;
        align-items: center;
    }
    .om-warning-strip-desc {
        display: none;
    }
    .om-warning-strip-title {
        font-size: 0.72rem;
        margin-right: 0;
    }
}

/* ==========================================================================
   COURIER MESSAGES - ULTRA-COMPACT MOBILE-FIRST DESIGN SYSTEM
   ========================================================================== */
.cmp-page {
    padding: 0.65rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .cmp-page {
        padding: 1.25rem 1.5rem;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .cmp-page {
        padding: 1.5rem 2rem;
        max-width: 100%;
    }
}

/* 1. App Bar Header - Ultra-Clean Single-Row Mobile-First */
.cmp-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.cmp-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
}

.cmp-header-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

.cmp-btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-size: 0.82rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.cmp-btn-back:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cmp-title-wrap {
    min-width: 0;
    flex: 1;
}

.cmp-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.cmp-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmp-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #bbf7d0;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.cmp-dot-live {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: cmpPulse 2s infinite;
}

@keyframes cmpPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.cmp-subtitle {
    display: block;
    margin: 1px 0 0 0;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.cmp-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 34px;
    padding: 0 0.55rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cmp-tool-btn:hover {
    background: #ffffff;
    border-color: #94a3b8;
    color: #0f172a;
}

.cmp-tool-btn.is-active {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}

.cmp-tool-btn i {
    font-size: 0.78rem;
}

@media (min-width: 576px) {
    .cmp-header {
        padding: 0.7rem 0.95rem;
    }
    .cmp-btn-back {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .cmp-title {
        font-size: 1.05rem;
    }
    .cmp-subtitle {
        font-size: 0.72rem;
    }
    .cmp-tool-btn {
        padding: 0 0.75rem;
    }
}

@media (min-width: 768px) {
    .cmp-header {
        padding: 0.85rem 1.25rem;
        margin-bottom: 1rem;
    }
    .cmp-btn-back {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        border-radius: 9px;
    }
    .cmp-title {
        font-size: 1.25rem;
    }
    .cmp-subtitle {
        font-size: 0.8rem;
    }
    .cmp-tool-btn {
        height: 38px;
        padding: 0 1rem;
        font-size: 0.82rem;
        border-radius: 9px;
    }
    .cmp-card-header {
        padding: 0.75rem 1.15rem;
        min-height: 52px;
    }
    .cmp-card-title {
        font-size: 0.96rem;
    }
    .cmp-card-code {
        font-size: 0.75rem;
        padding: 2px 8px;
    }
    .cmp-editor-inner {
        padding: 1rem 1.25rem;
    }
    .cmp-textarea {
        min-height: 105px;
        font-size: 0.9rem;
        padding: 0.75rem 1rem 1.75rem;
    }
    .cmp-pill-var {
        font-size: 0.74rem;
        padding: 3px 8px;
    }
    .cmp-footer-row {
        padding-top: 0.65rem;
    }
    .cmp-btn-reset,
    .cmp-btn-save {
        padding: 0.45rem 1.15rem;
        font-size: 0.82rem;
    }
}

/* Variables Drawer - Balanced 2-Column Mobile Grid */
.cmp-variables-drawer {
    margin-top: 0.55rem;
    padding: 0.6rem 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    animation: cmpSlideDown 0.2s ease-out;
}

@keyframes cmpSlideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.cmp-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e2e8f0;
}

.cmp-drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.cmp-drawer-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.cmp-drawer-hint {
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
}

.cmp-drawer-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 3px 6px;
    font-size: 0.85rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.cmp-drawer-close:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.cmp-var-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    width: 100%;
}

@media (min-width: 640px) {
    .cmp-var-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 860px) {
    .cmp-var-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

.cmp-var-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 0.35rem 0.5rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.12s ease;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.cmp-var-card:hover {
    background: #f0fdf4;
    border-color: #10b981;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.12);
    transform: translateY(-1px);
}

.cmp-var-card:active {
    transform: scale(0.97);
    background: #dcfce7;
}

.cmp-var-card code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #059669;
    background: transparent;
    padding: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.cmp-var-card span {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

/* 2. Template Cards List */
.cmp-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cmp-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.cmp-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cmp-card.expanded {
    border-color: #10b981;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.08);
}

/* Card Header (Collapsed State) */
.cmp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    min-height: 48px;
    transition: background-color 0.15s ease;
}

.cmp-card-header:hover {
    background: #f8fafc;
}

.cmp-card.expanded .cmp-card-header {
    background: #f0fdf4;
    border-bottom: 1px solid #e2e8f0;
}

.cmp-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

.cmp-expand-icon-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 0.68rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.15s ease;
}

.cmp-card.expanded .cmp-expand-icon-btn {
    transform: rotate(90deg);
    background: #dcfce7;
    color: #15803d;
}

.cmp-card-titles {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    min-width: 0;
    flex-wrap: wrap;
}

.cmp-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
}

.cmp-card-code {
    font-size: 0.68rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
    line-height: 1.2;
    white-space: nowrap;
}

.cmp-card-header-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.cmp-status-badge {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cmp-status-badge.badge-on {
    background: #dcfce7;
    color: #15803d;
}

.cmp-status-badge.badge-off {
    background: #f1f5f9;
    color: #94a3b8;
}

/* Switch */
.cmp-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

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

.cmp-switch-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: 0.2s;
    border-radius: 20px;
}

.cmp-switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cmp-switch input:checked + .cmp-switch-slider {
    background-color: #10b981;
}

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

/* 3. Card Body (Expanded State) */
.cmp-card-body {
    display: none;
    background: #ffffff;
}

.cmp-card.expanded .cmp-card-body {
    display: block;
    animation: cmpFadeIn 0.2s ease;
}

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

.cmp-editor-inner {
    padding: 0.75rem;
}

/* Quick-Insert Variables Bar */
.cmp-quick-vars-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.cmp-quick-vars-bar::-webkit-scrollbar {
    display: none;
}

.cmp-vars-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cmp-vars-scroll {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
}

.cmp-pill-var {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 2px 7px;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: #047857;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.12s ease;
    line-height: 1.3;
}

.cmp-pill-var:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
    transform: scale(0.98);
}

/* Textarea Box */
.cmp-textarea-box {
    position: relative;
    margin-bottom: 0.55rem;
}

.cmp-textarea {
    width: 100%;
    min-height: 88px;
    height: 96px;
    padding: 0.65rem 0.75rem;
    padding-bottom: 1.65rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px; /* Exact 14px to prevent iOS auto-zoom */
    line-height: 1.45;
    color: #0f172a;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cmp-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.cmp-char-badge {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 0.68rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 4px;
    border-radius: 4px;
    pointer-events: none;
}

/* Media Section (Ultra-Compact) */
.cmp-media-section {
    margin-bottom: 0.55rem;
}

.cmp-media-empty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.75rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.76rem;
    color: #475569;
}

.cmp-media-empty-row:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #047857;
}

.cmp-media-empty-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
}

.cmp-media-empty-left i {
    color: #10b981;
    font-size: 0.85rem;
}

.cmp-optional-tag {
    font-size: 0.66rem;
    color: #94a3b8;
    background: #e2e8f0;
    padding: 1px 5px;
    border-radius: 4px;
}

.cmp-media-selected-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.55rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.cmp-media-preview-box {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmp-media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmp-media-thumb-fallback {
    color: #ffffff;
    font-size: 0.95rem;
}

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

.cmp-media-filename {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.cmp-media-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.66rem;
    font-weight: 600;
    color: #15803d;
}

.cmp-media-btns {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.cmp-btn-media-change,
.cmp-btn-media-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.15s ease;
}

.cmp-btn-media-change {
    background: #e2e8f0;
    color: #334155;
}

.cmp-btn-media-change:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.cmp-btn-media-del {
    background: #fee2e2;
    color: #dc2626;
}

.cmp-btn-media-del:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Bottom Actions Row */
.cmp-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid #f1f5f9;
}

.cmp-meta-time {
    font-size: 0.68rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.cmp-footer-btns {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cmp-btn-reset,
.cmp-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.85rem;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.cmp-btn-reset {
    background: #f1f5f9;
    color: #64748b;
}

.cmp-btn-reset:hover {
    background: #e2e8f0;
    color: #334155;
}

.cmp-btn-save {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.25);
}

.cmp-btn-save:hover {
    background: #059669;
}

.cmp-btn-save:disabled,
.cmp-btn-reset:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   AUTO-REPLY - ULTRA-COMPACT MOBILE-FIRST DESIGN SYSTEM
   ========================================================================== */
.ar-page {
    padding: 0.65rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .ar-page {
        padding: 1.25rem 1.5rem;
    }
}

@media (min-width: 1200px) {
    .ar-page {
        padding: 1.5rem 2rem;
    }
}

/* 1. Header Bar - Mobile Compact, PC Full Dashboard Header */
.ar-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.ar-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
}

.ar-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.ar-btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-size: 0.82rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.ar-btn-back:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ar-title-wrap {
    min-width: 0;
    flex: 1;
}

.ar-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.ar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ar-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.ar-status-badge.is-connected {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #bbf7d0;
}

.ar-status-badge.is-offline {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.ar-dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: arPulse 2s infinite;
}

@keyframes arPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.ar-subtitle {
    display: block;
    margin: 2px 0 0 0;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ar-header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.ar-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 34px;
    padding: 0 0.75rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ar-tool-btn:hover {
    background: #ffffff;
    border-color: #94a3b8;
    color: #0f172a;
}

.ar-btn-primary {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.25);
}

.ar-btn-primary:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

@media (min-width: 768px) {
    .ar-header {
        padding: 0.85rem 1.25rem;
        margin-bottom: 1rem;
    }
    .ar-btn-back {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        border-radius: 9px;
    }
    .ar-title {
        font-size: 1.25rem;
    }
    .ar-subtitle {
        font-size: 0.8rem;
    }
    .ar-tool-btn {
        height: 38px;
        padding: 0 1rem;
        font-size: 0.82rem;
        border-radius: 9px;
    }
}

/* 2. Stats Grid - Compact on Mobile, Rich KPI Dashboard Cards on PC */
.ar-stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.ar-stat-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    min-width: 0;
}

.ar-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ar-icon-blue { background: #eff6ff; color: #2563eb; }
.ar-icon-green { background: #ecfdf5; color: #059669; }
.ar-icon-red { background: #fef2f2; color: #dc2626; }
.ar-icon-purple { background: #faf5ff; color: #9333ea; }

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

.ar-stat-val {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ar-stat-lbl {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ar-stat-sub {
    display: none;
}

@media (min-width: 768px) {
    .ar-stats-strip {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    .ar-stat-item {
        padding: 0.95rem 1.15rem;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .ar-stat-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }
    .ar-stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 1.15rem;
    }
    .ar-stat-lbl {
        font-size: 0.7rem;
        font-weight: 700;
        color: #64748b;
        letter-spacing: 0.04em;
    }
    .ar-stat-val {
        font-size: 1.45rem;
        font-weight: 800;
        margin: 2px 0;
    }
    .ar-stat-sub {
        display: block;
        font-size: 0.72rem;
        color: #94a3b8;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 3. Warning Banner */
.ar-warning-banner {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 9px;
    color: #b45309;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
}

/* 4. Rules Card & Header */
.ar-rules-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.ar-rules-header {
    padding: 0.65rem 0.85rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ar-rules-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.ar-count-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
}

.ar-toolbar-desktop {
    display: none;
}

@media (min-width: 768px) {
    .ar-rules-header {
        padding: 0.85rem 1.25rem;
    }
    .ar-rules-title {
        font-size: 1rem;
        gap: 0.6rem;
    }
    .ar-toolbar-desktop {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .ar-search-wrap {
        position: relative;
        width: 220px;
    }
    .ar-search-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        color: #94a3b8;
        pointer-events: none;
    }
    .ar-search-input {
        width: 100%;
        height: 34px;
        padding-left: 28px;
        padding-right: 10px;
        border: 1px solid #cbd5e1;
        border-radius: 7px;
        font-size: 0.78rem;
        background: #f8fafc;
        color: #0f172a;
        transition: all 0.15s ease;
    }
    .ar-search-input:focus {
        outline: none;
        background: #ffffff;
        border-color: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
    }
    .ar-filter-select {
        height: 34px;
        padding: 0 0.65rem;
        border: 1px solid #cbd5e1;
        border-radius: 7px;
        font-size: 0.76rem;
        background: #ffffff;
        color: #334155;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.15s ease;
    }
    .ar-filter-select:focus {
        outline: none;
        border-color: #10b981;
    }
}

/* 5. Mobile Cards List */
.ar-mobile-list {
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auto-reply-card-mobile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    margin-bottom: 0 !important;
    transition: all 0.15s ease;
}

.auto-reply-card-mobile:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.auto-reply-card-header-mobile {
    padding: 0.5rem 0.65rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.auto-reply-trigger-mobile {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
}

.trigger-icon-mobile {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.trigger-info-mobile {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex-wrap: wrap;
}

.trigger-type-mobile {
    font-size: 0.66rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.trigger-value-mobile {
    font-family: 'JetBrains Mono', monospace, sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.auto-reply-card-body-mobile {
    padding: 0.55rem 0.65rem;
    background: #ffffff;
}

.reply-preview-mobile {
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reply-preview-mobile .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.reply-option-mobile {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.auto-reply-card-footer-mobile {
    padding: 0.38rem 0.65rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.auto-reply-card-footer-mobile button {
    width: 30px !important;
    height: 30px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
}

/* 6. Full Desktop Table Styles */
.ar-table {
    width: 100%;
    margin-bottom: 0;
}

.ar-table th {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8fafc;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.ar-table td {
    padding: 0.85rem 1.15rem;
    font-size: 0.84rem;
    color: #1e293b;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.ar-table tr:hover td {
    background-color: #fbfcfe;
}

.ar-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.tag-exact { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-contains { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.tag-starts { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }
.tag-ends { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }
.tag-regex { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.ar-table-code {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 5px;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.ar-count-pill {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    flex-shrink: 0;
}

.ar-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.ar-status-pill.pill-on {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #bbf7d0 !important;
}
.ar-status-pill.pill-off {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border: 1px solid #e2e8f0 !important;
}

.ar-self-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f0f9ff !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
    line-height: 1.2;
}

.ar-self-none {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #94a3b8;
    font-size: 0.72rem;
}

/* Action Buttons */
.ar-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 7px !important;
    font-size: 0.76rem !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    background: #ffffff;
    transition: all 0.15s ease !important;
}
.ar-action-btn:hover {
    transform: translateY(-1px);
}
.ar-action-btn.btn-toggle-on {
    background: #fefce8 !important;
    color: #ca8a04 !important;
    border-color: #fef08a !important;
}
.ar-action-btn.btn-toggle-on:hover {
    background: #fef08a !important;
    color: #854d0e !important;
}
.ar-action-btn.btn-toggle-off {
    background: #f0fdf4 !important;
    color: #16a34a !important;
    border-color: #bbf7d0 !important;
}
.ar-action-btn.btn-toggle-off:hover {
    background: #dcfce7 !important;
    color: #15803d !important;
}
.ar-action-btn.btn-self-on {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}
.ar-action-btn.btn-self-off {
    background: #f8fafc !important;
    color: #64748b !important;
    border-color: #cbd5e1 !important;
}
.ar-action-btn.btn-self-off:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
.ar-action-btn.btn-edit {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}
.ar-action-btn.btn-edit:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}
.ar-action-btn.btn-share {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #bbf7d0 !important;
}
.ar-action-btn.btn-share:hover {
    background: #059669 !important;
    color: #ffffff !important;
}
.ar-action-btn.btn-delete {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}
.ar-action-btn.btn-delete:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.btn-ar-action {
    width: 32px !important;
    height: 32px !important;
    border-radius: 7px !important;
    font-size: 0.76rem !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
}

.btn-ar-action:hover {
    transform: translateY(-1px);
}

.ar-page .empty-state-modern {
    padding: 3rem 1.5rem;
    text-align: center;
}

.ar-page .empty-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.85rem;
}

.ar-page .empty-state-modern h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.ar-page .empty-state-modern p {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

/* ========================================================
   WAVVY PUBLIC PRICING - MOBILE REDESIGN (THEME.CSS)
   Ultra-Modern, Touch-Optimized Mobile Pricing Experience
   Scoped to < 1024px so Desktop/PC Remains 100% Untouched
   ======================================================== */
@media (max-width: 1023.98px) {
    /* Hide desktop-only layout */
    .desktop-4-grid {
        display: none !important;
    }

    /* Container Spacing */
    .pricing-main-container {
        padding: 0.25rem 0.75rem 2.5rem !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }

    /* Hero Polish - Compact for Mobile */
    .pricing-hero-wrap {
        padding: 2.25rem 1rem 1rem !important;
        background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, rgba(248, 250, 252, 0.8) 60%, #f8fafc 100%) !important;
    }

    .hero-trust-pill {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.7rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 9999px !important;
        box-shadow: 0 1px 6px rgba(16, 185, 129, 0.08) !important;
    }

    .hero-main-title {
        font-size: 1.45rem !important;
        line-height: 1.22 !important;
        letter-spacing: -0.025em !important;
        margin-bottom: 0.35rem !important;
    }

    .hero-subtext {
        font-size: 0.775rem !important;
        line-height: 1.45 !important;
        color: #475569 !important;
        margin: 0 auto 0.65rem !important;
        padding: 0 0.5rem !important;
    }

    .hero-highlights-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem 0.35rem !important;
        max-width: 420px !important;
        margin: 0 auto !important;
    }

    .hero-highlight-item {
        font-size: 0.65rem !important;
        padding: 0.18rem 0.5rem !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 9999px !important;
        color: #334155 !important;
        font-weight: 700 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    }

    /* Mobile Cards Vertical Stack - Ultra-Compact */
    .mobile-cards-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        width: 100% !important;
    }

    .mobile-plan-card {
        background: #ffffff !important;
        border-radius: 1.15rem !important;
        border: 1.5px solid #e2e8f0 !important;
        padding: 1rem 0.95rem 0.9rem !important;
        box-shadow: 0 3px 14px -2px rgba(15, 23, 42, 0.06) !important;
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }

    /* Popular / Pro Featured Card */
    .mobile-plan-card.is-popular {
        border: 2px solid #8b5cf6 !important;
        box-shadow: 0 10px 28px -6px rgba(139, 92, 246, 0.22), 0 2px 8px -2px rgba(139, 92, 246, 0.1) !important;
        background: linear-gradient(180deg, #faf5ff 0%, #ffffff 35%) !important;
        padding-top: 1.35rem !important;
    }

    .mobile-plan-card .popular-ribbon {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
        color: #ffffff !important;
        font-size: 0.625rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        padding: 0.25rem 1rem !important;
        border-radius: 0 0 0.75rem 0.75rem !important;
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.25rem !important;
        white-space: nowrap !important;
        z-index: 5 !important;
    }

    /* Compact Top Bar: Identity (Left) + Price (Right) */
    .mobile-card-topbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        margin-bottom: 0.65rem !important;
    }

    .mobile-card-identity {
        display: flex !important;
        align-items: center !important;
        gap: 0.6rem !important;
        min-width: 0 !important;
    }

    .mobile-plan-card .plan-icon-wrapper {
        width: 2.35rem !important;
        height: 2.35rem !important;
        border-radius: 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1rem !important;
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
    }

    .mobile-plan-card .plan-icon-wrapper.plan-icon-free { background-color: #eff6ff !important; color: #2563eb !important; }
    .mobile-plan-card .plan-icon-wrapper.plan-icon-starter { background-color: #ecfdf5 !important; color: #059669 !important; }
    .mobile-plan-card .plan-icon-wrapper.plan-icon-professional { background-color: #f5f3ff !important; color: #7c3aed !important; }
    .mobile-plan-card .plan-icon-wrapper.plan-icon-business { background-color: #fff7ed !important; color: #ea580c !important; }
    .mobile-plan-card .plan-icon-wrapper.plan-icon-enterprise { background-color: #fffbeb !important; color: #d97706 !important; }

    .mobile-plan-card .plan-title {
        font-size: 1.125rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        line-height: 1.2 !important;
        margin-bottom: 0.1rem !important;
    }

    .mobile-plan-card .plan-tagline {
        font-size: 0.72rem !important;
        color: #64748b !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 170px !important;
    }

    .mobile-badge-popular {
        font-size: 0.625rem !important;
        font-weight: 800 !important;
        color: #7c3aed !important;
        background: #ede9fe !important;
        padding: 0.12rem 0.45rem !important;
        border-radius: 9999px !important;
        display: inline-block !important;
    }

    .mobile-card-price-col {
        text-align: right !important;
        flex-shrink: 0 !important;
    }

    .mobile-price-val {
        font-size: 1.25rem !important;
        font-weight: 900 !important;
        color: #0f172a !important;
        line-height: 1.1 !important;
        letter-spacing: -0.02em !important;
    }

    .mobile-price-pkr {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        color: #64748b !important;
    }

    .mobile-price-sub {
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
        margin-top: 0.12rem !important;
    }

    .mobile-usd-inline {
        font-size: 0.62rem !important;
        font-weight: 700 !important;
        color: #475569 !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        padding: 0.06rem 0.35rem !important;
        border-radius: 9999px !important;
        display: inline-block !important;
        margin-left: 0.2rem !important;
    }

    /* 4-Item Compact Bento Grid */
    .mobile-plan-card .key-metrics-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.35rem !important;
        margin-bottom: 0.65rem !important;
    }

    .mobile-plan-card .metric-pill {
        background: #f8fafc !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 0.65rem !important;
        padding: 0.35rem 0.2rem !important;
        text-align: center !important;
    }

    .mobile-plan-card.is-popular .metric-pill {
        background: #fdfcff !important;
        border-color: #ede9fe !important;
    }

    .mobile-plan-card .metric-pill-val {
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        line-height: 1.15 !important;
    }

    .mobile-plan-card .metric-pill-lbl {
        font-size: 0.58rem !important;
        color: #64748b !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
        margin-top: 0.12rem !important;
    }

    /* Curated Features List */
    .mobile-plan-card .card-features-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.3rem !important;
        margin-bottom: 0.75rem !important;
    }

    .mobile-plan-card .card-feature-row {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        font-size: 0.74rem !important;
        color: #334155 !important;
        line-height: 1.35 !important;
    }

    .mobile-plan-card .card-feature-row i.fa-check-circle {
        color: #10b981 !important;
        font-size: 0.825rem !important;
        flex-shrink: 0 !important;
    }

    /* High-Impact Compact CTA Button */
    .mobile-plan-card .card-action-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        width: 100% !important;
        min-height: 40px !important;
        padding: 0.55rem 1rem !important;
        font-size: 0.825rem !important;
        font-weight: 800 !important;
        border-radius: 0.75rem !important;
        text-decoration: none !important;
        cursor: pointer !important;
        border: none !important;
        box-sizing: border-box !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .mobile-plan-card .card-action-btn:active {
        transform: scale(0.98) !important;
    }

    /* Action Button Themes */
    .btn-plan-popular {
        background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(139, 92, 246, 0.32) !important;
    }

    .btn-plan-free {
        background: #0f172a !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
    }

    .btn-plan-starter {
        background: #059669 !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2) !important;
    }

    .btn-plan-business {
        background: #ea580c !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2) !important;
    }

    .btn-plan-enterprise {
        background: #0f172a !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
    }

    /* 3. Mobile Comparison Table */
    .mobile-compare-wrap {
        margin: 2rem auto 1rem !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 1rem !important;
        padding: 1rem 0.75rem !important;
        box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05) !important;
    }

    .mobile-compare-header {
        text-align: center !important;
        margin-bottom: 0.75rem !important;
    }

    .mobile-compare-title {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin-bottom: 0.2rem !important;
    }

    .mobile-compare-sub {
        font-size: 0.725rem !important;
        color: #64748b !important;
    }

    .mobile-table-scroll {
        overflow-x: auto !important;
        scrollbar-width: thin !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 0.75rem !important;
        border: 1px solid #f1f5f9 !important;
    }

    .mobile-matrix-table {
        width: 100% !important;
        min-width: 520px !important;
        border-collapse: collapse !important;
        font-size: 0.75rem !important;
    }

    .mobile-matrix-table th,
    .mobile-matrix-table td {
        padding: 0.65rem 0.75rem !important;
        text-align: center !important;
        border-bottom: 1px solid #f1f5f9 !important;
        white-space: nowrap !important;
    }

    .mobile-matrix-table th:first-child,
    .mobile-matrix-table td:first-child {
        text-align: left !important;
        font-weight: 700 !important;
        color: #334155 !important;
        position: sticky !important;
        left: 0 !important;
        background: #ffffff !important;
        z-index: 2 !important;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.03) !important;
    }

    .mobile-matrix-table th {
        background: #f8fafc !important;
        color: #0f172a !important;
        font-weight: 800 !important;
    }

    .mobile-matrix-table th.is-featured {
        background: #f5f3ff !important;
        color: #7c3aed !important;
    }

    .mobile-matrix-table td.is-featured {
        background: #faf5ff !important;
        font-weight: 700 !important;
    }

    /* Enterprise VIP Card on Mobile */
    .enterprise-vip-card {
        margin: 1.5rem 0 1rem !important;
        border-radius: 1.35rem !important;
        padding: 1.35rem !important;
    }

    .enterprise-vip-card-chips {
        grid-template-columns: 1fr !important;
        gap: 0.45rem !important;
    }

    .enterprise-vip-cta-btn {
        width: 100% !important;
        min-height: 48px !important;
    }

    /* Couriers Grid on Mobile */
    .courier-partners-section {
        margin: 2.5rem auto 1.5rem !important;
        padding: 0 0.5rem !important;
    }

    .courier-badge-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        margin-top: 1.25rem !important;
    }

    .courier-badge-card {
        border-radius: 1rem !important;
        text-align: center !important;
    }

    /* FAQ Mobile Polish */
    .faq-section-container {
        margin: 3rem auto 2rem !important;
        padding: 0 0.5rem !important;
    }

    .faq-summary {
        padding: 0.95rem 1rem !important;
    }

    .faq-question-text {
        font-size: 0.84rem !important;
        line-height: 1.35 !important;
    }

    .faq-body-content {
        padding: 0 1rem 1rem 3.1rem !important;
        font-size: 0.785rem !important;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    .courier-badge-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
    }
}



