/* =========================================================
   Campaign Manager
   Full Purple / Pink Marketing Theme
   ========================================================= */

:root {
    --sidebar-width: 270px;
    --topbar-height: 78px;
    --marketing-purple: #6d28d9;
    --marketing-purple-dark: #4c1d95;
    --marketing-purple-deep: #2e1065;
    --marketing-purple-soft: #f5f3ff;
    --marketing-purple-muted: #ede9fe;
    --marketing-pink: #db2777;
    --marketing-pink-dark: #9d174d;
    --marketing-pink-soft: #fce7f3;
    --marketing-orange: #f97316;
    --marketing-orange-soft: #fff7ed;
    --marketing-blue: #2563eb;
    --marketing-blue-soft: #eff6ff;
    --marketing-cyan: #0891b2;
    --marketing-cyan-soft: #ecfeff;
    --page-background: #f7f7fc;
    --surface: #ffffff;
    --surface-soft: #faf9ff;
    --surface-muted: #f4f2f8;
    --text-primary: #171425;
    --text-secondary: #625d70;
    --text-muted: #918b9e;
    --text-inverse: #ffffff;
    --border: #e9e6ef;
    --border-strong: #ddd8e7;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --info: #2563eb;
    --info-soft: #dbeafe;
    --shadow-xs: 0 2px 8px rgba(33, 24, 66, 0.04);
    --shadow-sm: 0 4px 15px rgba(33, 24, 66, 0.05);
    --shadow-md: 0 12px 35px rgba(33, 24, 66, 0.09);
    --shadow-lg: 0 25px 60px rgba(33, 24, 66, 0.14);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

/* =========================================================
   Base
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--page-background);
    color: var(--text-primary);
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

    body.sidebar-open {
        overflow: hidden;
    }

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: inherit;
    }

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--text-primary);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
}

p {
    color: var(--text-secondary);
}

::selection {
    background: rgba(109, 40, 217, 0.18);
    color: var(--marketing-purple-deep);
}

/* =========================================================
   Application Shell
   ========================================================= */

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient( circle at 12% 4%, rgba(219, 39, 119, 0.22), transparent 28% ), radial-gradient( circle at 86% 20%, rgba(109, 40, 217, 0.32), transparent 34% ), linear-gradient( 165deg, #24133f 0%, #171126 50%, #100b1a 100% );
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 14px 0 40px rgba(31, 18, 53, 0.16);
    transition: transform 0.25s ease;
}

.sidebar-brand-area {
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    color: #ffffff;
}

    .sidebar-brand:hover {
        color: #ffffff;
    }

.sidebar-brand-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient( 135deg, var(--marketing-pink), var(--marketing-purple) );
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 12px 28px rgba(219, 39, 119, 0.28);
}

.sidebar-brand-copy {
    min-width: 0;
}

.sidebar-brand-title,
.sidebar-brand-subtitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-brand-title {
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.sidebar-brand-subtitle {
    margin-top: 3px;
    color: #948aa2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sidebar-navigation {
    flex: 1;
    overflow-y: auto;
    padding: 20px 14px;
}

    .sidebar-navigation::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar-navigation::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-navigation::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.13);
    }

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-title {
    margin: 0 12px 9px;
    color: #746a83;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.sidebar-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #c8c1d0;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

    .sidebar-link:hover {
        transform: translateX(3px);
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }

    .sidebar-link.active {
        background: linear-gradient( 90deg, rgba(219, 39, 119, 0.22), rgba(109, 40, 217, 0.18) );
        border-color: rgba(236, 72, 153, 0.2);
        color: #ffffff;
        box-shadow: inset 3px 0 0 #ec4899;
    }

.sidebar-link-icon {
    width: 22px;
    display: grid;
    place-items: center;
    color: #91869f;
    font-size: 17px;
}

.sidebar-link.active .sidebar-link-icon {
    color: #f9a8d4;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-profile-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient( 135deg, rgba(236, 72, 153, 0.28), rgba(109, 40, 217, 0.40) );
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.sidebar-profile-details {
    min-width: 0;
    flex: 1;
}

.sidebar-profile-name,
.sidebar-profile-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-profile-name {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-profile-email {
    margin-top: 2px;
    color: #8d8499;
    font-size: 10px;
}

.sidebar-signout {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #93899f;
    transition: background 0.18s ease, color 0.18s ease;
}

    .sidebar-signout:hover {
        background: rgba(220, 38, 38, 0.13);
        color: #fca5a5;
    }

/* =========================================================
   Topbar
   ========================================================= */

.app-content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 30px;
    background: linear-gradient( 90deg, rgba(245, 243, 255, 0.94), rgba(252, 231, 243, 0.88) );
    border-bottom: 1px solid rgba(226, 222, 233, 0.95);
    backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 14px;
    min-width: 0;
}

.topbar-actions {
    gap: 9px;
}

.topbar-eyebrow {
    margin-bottom: 2px;
    color: var(--marketing-purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.topbar-title {
    overflow: hidden;
    max-width: 550px;
    margin: 0;
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu-button,
.topbar-action-button {
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-secondary);
    font-size: 17px;
    box-shadow: var(--shadow-xs);
}

.mobile-menu-button {
    display: none;
}

.topbar-action-button {
    position: relative;
    display: grid;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

    .topbar-action-button:hover {
        transform: translateY(-1px);
        background: var(--marketing-purple-soft);
        border-color: #d8ccf7;
        color: var(--marketing-purple);
    }

.notification-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--marketing-pink);
}

.topbar-profile-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 9px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.88);
    color: inherit;
    box-shadow: var(--shadow-xs);
}

    .topbar-profile-button:hover {
        background: #ffffff;
    }

.topbar-profile-avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient( 135deg, var(--marketing-purple-soft), var(--marketing-pink-soft) );
    color: var(--marketing-purple);
    font-size: 11px;
    font-weight: 800;
}

.topbar-profile-copy {
    min-width: 0;
    max-width: 150px;
    text-align: left;
}

.topbar-profile-name,
.topbar-profile-role {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-profile-name {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
}

.topbar-profile-role {
    color: var(--text-muted);
    font-size: 9px;
}

/* =========================================================
   Main Area
   ========================================================= */

.app-main {
    position: relative;
    flex: 1;
    min-height: calc(100vh - var(--topbar-height));
    overflow: hidden;
    background: radial-gradient( circle at top right, rgba(109, 40, 217, 0.05), transparent 28% ), radial-gradient( circle at bottom left, rgba(219, 39, 119, 0.04), transparent 28% ), var(--page-background);
}

.page-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 28px 30px 42px;
}

.page-background-decoration {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.page-decoration-one {
    top: -200px;
    right: -130px;
    width: 500px;
    height: 500px;
    background: radial-gradient( circle, rgba(109, 40, 217, 0.09), transparent 68% );
}

.page-decoration-two {
    bottom: -260px;
    left: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient( circle, rgba(219, 39, 119, 0.06), transparent 68% );
}

/* =========================================================
   Footer
   ========================================================= */

.app-footer {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 30px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
}

    .app-footer strong,
    .app-footer span {
        display: block;
    }

    .app-footer strong {
        margin-bottom: 2px;
        color: var(--text-secondary);
        font-size: 12px;
    }

/* =========================================================
   Page Headers
   ========================================================= */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page-header-content {
    min-width: 0;
}

.page-header-eyebrow {
    margin-bottom: 7px;
    color: var(--marketing-purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.page-header-title {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
}

.page-header-description {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

/* =========================================================
   Marketing Hero Banner
   ========================================================= */

.campaign-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 25px;
    padding: 30px;
    border-radius: 24px;
    background: radial-gradient( circle at 90% 10%, rgba(255, 255, 255, 0.18), transparent 28% ), linear-gradient( 125deg, #4c1d95 0%, #7e22ce 48%, #db2777 100% );
    color: #ffffff;
    box-shadow: 0 24px 50px rgba(76, 29, 149, 0.19);
}

    .campaign-banner::before {
        content: "";
        position: absolute;
        top: -90px;
        right: 10%;
        width: 230px;
        height: 230px;
        border: 45px solid rgba(255, 255, 255, 0.06);
        border-radius: 50%;
    }

    .campaign-banner::after {
        content: "";
        position: absolute;
        right: -30px;
        bottom: -90px;
        width: 210px;
        height: 210px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
    }

.campaign-banner-content,
.campaign-banner-actions {
    position: relative;
    z-index: 1;
}

.campaign-banner-content {
    max-width: 720px;
}

.campaign-banner-label {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.campaign-banner-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(25px, 4vw, 39px);
    font-weight: 800;
}

.campaign-banner-description {
    max-width: 640px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 13px;
    line-height: 1.7;
}

.campaign-banner-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn-marketing-primary,
.btn-marketing-outline,
.btn-marketing-soft,
.btn-marketing-danger {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-marketing-primary {
    border: 0;
    background: linear-gradient( 135deg, var(--marketing-purple), var(--marketing-pink) );
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(109, 40, 217, 0.20);
}

    .btn-marketing-primary:hover,
    .btn-marketing-primary:focus {
        transform: translateY(-1px);
        color: #ffffff;
        box-shadow: 0 14px 28px rgba(109, 40, 217, 0.28);
    }

.btn-marketing-outline {
    border: 1px solid var(--border-strong);
    background: #ffffff;
    color: var(--text-secondary);
}

    .btn-marketing-outline:hover {
        background: var(--marketing-purple-soft);
        border-color: #d7caf7;
        color: var(--marketing-purple);
    }

.btn-marketing-soft {
    border: 1px solid transparent;
    background: var(--marketing-purple-soft);
    color: var(--marketing-purple);
}

    .btn-marketing-soft:hover {
        background: var(--marketing-purple-muted);
        color: var(--marketing-purple-dark);
    }

.btn-marketing-danger {
    border: 1px solid #fecaca;
    background: #ffffff;
    color: var(--danger);
}

    .btn-marketing-danger:hover {
        background: var(--danger-soft);
        color: #b91c1c;
    }

.btn-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-secondary);
}

    .btn-icon:hover {
        background: var(--marketing-purple-soft);
        border-color: #d8ccf7;
        color: var(--marketing-purple);
    }

/* =========================================================
   Cards
   ========================================================= */

.marketing-card,
.content-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
}

.marketing-card-header,
.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 21px;
    border-bottom: 1px solid var(--border);
}

.marketing-card-title,
.content-card-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
}

.marketing-card-subtitle,
.content-card-subtitle {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.marketing-card-body,
.content-card-body {
    padding: 21px;
}

.marketing-card-footer,
.content-card-footer {
    padding: 15px 21px;
    border-top: 1px solid var(--border);
    background: var(--surface-soft);
}

.metric-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .metric-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

    .metric-card::after {
        content: "";
        position: absolute;
        right: -35px;
        bottom: -35px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: rgba(109, 40, 217, 0.035);
    }

.metric-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.metric-card-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 19px;
}

    .metric-card-icon.purple {
        background: #f3e8ff;
        color: #7e22ce;
    }

    .metric-card-icon.pink {
        background: #fce7f3;
        color: #db2777;
    }

    .metric-card-icon.orange {
        background: #fff7ed;
        color: #ea580c;
    }

    .metric-card-icon.blue {
        background: #eff6ff;
        color: #2563eb;
    }

    .metric-card-icon.cyan {
        background: #ecfeff;
        color: #0891b2;
    }

.metric-card-label {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.metric-card-value {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    color: var(--text-primary);
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.metric-card-change {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
}

    .metric-card-change.positive {
        color: var(--success);
    }

    .metric-card-change.negative {
        color: var(--danger);
    }

/* =========================================================
   Summary and Quick Access
   ========================================================= */

.summary-panel {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient( 145deg, var(--marketing-purple-soft), #ffffff );
    box-shadow: var(--shadow-sm);
}

.summary-panel-title {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(221, 216, 231, 0.72);
}

    .summary-row:last-child {
        border-bottom: 0;
    }

.summary-label {
    color: var(--text-secondary);
    font-size: 12px;
}

.summary-value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 800;
}

.quick-access-grid {
    display: grid;
    gap: 10px;
}

.quick-access-item {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

    .quick-access-item:hover {
        transform: translateX(2px);
        background: var(--marketing-purple-soft);
        border-color: #e3daf7;
        color: var(--marketing-purple);
    }

.quick-access-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: #ffffff;
    color: var(--marketing-purple);
}

/* =========================================================
   Campaign Cards
   ========================================================= */

.campaign-list-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .campaign-list-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.campaign-list-card-accent {
    height: 5px;
    background: linear-gradient( 90deg, var(--marketing-purple), var(--marketing-pink) );
}

.campaign-list-card-body {
    padding: 18px;
}

.campaign-list-card-title {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 800;
}

.campaign-list-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 10px;
}

.campaign-list-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 18px;
    border-top: 1px solid var(--border);
    background: var(--surface-soft);
}

/* =========================================================
   Tables
   ========================================================= */

.table-responsive {
    border-radius: 15px;
}

.table {
    margin-bottom: 0;
    color: var(--text-primary);
}

    .table > :not(caption) > * > * {
        padding: 13px 14px;
        border-bottom-color: var(--border);
        vertical-align: middle;
    }

    .table thead th {
        background: #faf9fc;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .table tbody td {
        color: var(--text-secondary);
        font-size: 12px;
    }

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

    .table tbody tr:hover {
        background: #fcfbff;
    }

.table-row-title {
    color: var(--text-primary);
    font-weight: 700;
}

.table-row-subtitle {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* =========================================================
   Forms
   ========================================================= */

.form-label {
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.form-text {
    color: var(--text-muted);
    font-size: 10px;
}

.form-control,
.form-select {
    min-height: 43px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 12px;
    box-shadow: none;
}

    .form-control::placeholder {
        color: #aaa4b4;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: #a78bfa;
        box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.09);
    }

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.input-group-text {
    border-color: var(--border-strong);
    background: #faf9fc;
    color: var(--text-muted);
}

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

.form-section {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.form-section-title {
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 800;
}

.form-section-description {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 11px;
}

/* =========================================================
   Status Badges
   ========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

    .status-badge::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    .status-badge.draft {
        background: #f1f5f9;
        color: #64748b;
    }

    .status-badge.active {
        background: var(--success-soft);
        color: #15803d;
    }

    .status-badge.review {
        background: var(--warning-soft);
        color: #b45309;
    }

    .status-badge.rejected {
        background: var(--danger-soft);
        color: #b91c1c;
    }

    .status-badge.completed {
        background: var(--marketing-purple-muted);
        color: var(--marketing-purple);
    }

    .status-badge.pending {
        background: var(--marketing-blue-soft);
        color: var(--marketing-blue);
    }

/* =========================================================
   Progress
   ========================================================= */

.progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece9f1;
}

.progress-bar {
    border-radius: 999px;
    background: linear-gradient( 90deg, var(--marketing-purple), var(--marketing-pink) );
}

.progress-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
}

/* =========================================================
   Empty States
   ========================================================= */

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 280px;
    padding: 30px;
    text-align: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 20px;
    background: linear-gradient( 135deg, var(--marketing-purple-soft), var(--marketing-pink-soft) );
    color: var(--marketing-purple);
    font-size: 28px;
}

.empty-state-title {
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 800;
}

.empty-state-description {
    max-width: 420px;
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.65;
}

/* =========================================================
   Dropdowns
   ========================================================= */

.dropdown-menu {
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}

.dropdown-profile-header {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
}

    .dropdown-profile-header strong {
        color: var(--text-primary);
        font-size: 11px;
    }

    .dropdown-profile-header span {
        overflow: hidden;
        margin-top: 3px;
        color: var(--text-muted);
        font-size: 9px;
        text-overflow: ellipsis;
    }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

    .dropdown-item:hover {
        background: var(--marketing-purple-soft);
        color: var(--marketing-purple);
    }

    .dropdown-item.text-danger:hover {
        background: #fef2f2;
        color: var(--danger) !important;
    }

/* =========================================================
   Alerts
   ========================================================= */

.alert {
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 12px;
}

.alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.alert-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.alert-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

/* =========================================================
   Modals
   ========================================================= */

.modal-content {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.modal-header,
.modal-footer {
    border-color: var(--border);
}

.modal-header {
    background: var(--surface-soft);
}

.modal-title {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
}

/* =========================================================
   Tabs
   ========================================================= */

.nav-tabs {
    gap: 4px;
    border-bottom: 1px solid var(--border);
}

    .nav-tabs .nav-link {
        border: 0;
        border-bottom: 2px solid transparent;
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 700;
    }

        .nav-tabs .nav-link:hover {
            color: var(--marketing-purple);
        }

        .nav-tabs .nav-link.active {
            border-bottom-color: var(--marketing-purple);
            background: transparent;
            color: var(--marketing-purple);
        }

/* =========================================================
   Pagination
   ========================================================= */

.pagination {
    gap: 5px;
}

.page-link {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px !important;
    color: var(--text-secondary);
    font-size: 11px;
}

    .page-link:hover {
        background: var(--marketing-purple-soft);
        border-color: #d8ccf7;
        color: var(--marketing-purple);
    }

.page-item.active .page-link {
    border-color: var(--marketing-purple);
    background: var(--marketing-purple);
    color: #ffffff;
}

/* =========================================================
   Utilities
   ========================================================= */

.soft-panel {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
}

.divider {
    height: 1px;
    background: var(--border);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-purple {
    color: var(--marketing-purple) !important;
}

.text-pink {
    color: var(--marketing-pink) !important;
}

.bg-purple-soft {
    background: var(--marketing-purple-soft) !important;
}

.bg-pink-soft {
    background: var(--marketing-pink-soft) !important;
}

.bg-orange-soft {
    background: var(--marketing-orange-soft) !important;
}

.bg-blue-soft {
    background: var(--marketing-blue-soft) !important;
}

.rounded-marketing {
    border-radius: 18px !important;
}

.shadow-marketing {
    box-shadow: var(--shadow-md) !important;
}

/* =========================================================
   Sidebar Overlay
   ========================================================= */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1035;
    display: none;
    background: rgba(18, 12, 31, 0.58);
    backdrop-filter: blur(3px);
}

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

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199.98px) {
    .campaign-banner {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

        .app-sidebar.show {
            transform: translateX(0);
        }

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

    .mobile-menu-button {
        display: grid;
    }

    .app-topbar {
        padding: 12px 18px;
    }

    .page-content {
        padding: 23px 18px 35px;
    }

    .app-footer {
        padding: 15px 18px;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        flex-direction: column;
    }

    .page-header-actions {
        width: 100%;
    }

        .page-header-actions .btn {
            flex: 1;
        }

    .campaign-banner {
        padding: 24px 21px;
        border-radius: 19px;
    }

    .topbar-profile-copy {
        display: none;
    }

    .marketing-card-header,
    .content-card-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .app-sidebar {
        width: min(88vw, 300px);
    }

    .app-topbar {
        min-height: 70px;
        padding: 10px 13px;
    }

    .topbar-eyebrow {
        display: none;
    }

    .topbar-title {
        max-width: 170px;
        font-size: 15px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .topbar-action-button,
    .mobile-menu-button {
        width: 39px;
        height: 39px;
    }

    .topbar-profile-button {
        min-height: 39px;
        padding: 2px;
    }

    .topbar-profile-avatar {
        width: 33px;
        height: 33px;
    }

    .page-content {
        padding: 18px 13px 30px;
    }

    .page-header-title {
        font-size: 23px;
    }

    .campaign-banner-title {
        font-size: 25px;
    }

    .campaign-banner-actions,
    .campaign-banner-actions .btn {
        width: 100%;
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 13px;
    }

    .table-actions {
        justify-content: flex-start;
    }
}
.sidebar-link-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-section + .sidebar-section::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 12px 21px;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-link {
    position: relative;
}

.sidebar-link.active::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f9a8d4;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(249, 168, 212, 0.65);
}

.topbar-title-wrapper {
    min-width: 0;
}
body > .modal {
    position: fixed !important;
    z-index: 1060 !important;
}

    body > .modal.show {
        display: block;
    }

body > .modal-backdrop {
    position: fixed !important;
    z-index: 1055 !important;
}

body.modal-open {
    overflow: hidden;
}

body > .modal .modal-dialog,
body > .modal .modal-content,
body > .modal input,
body > .modal button,
body > .modal select,
body > .modal textarea,
body > .modal label {
    pointer-events: auto;
}

/* =========================================================
   Notifications
   ========================================================= */

.notification-dropdown-wrapper {
    position: relative;
}

.notification-button {
    overflow: visible;
}

    .notification-button.notification-active {
        background: var(--marketing-purple-soft);
        border-color: #d8ccf7;
        color: var(--marketing-purple);
    }

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--marketing-pink), #ef4444);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(219, 39, 119, 0.28);
}

    .notification-count.notification-pulse {
        animation: notification-pulse 0.7s ease;
    }

.notification-dropdown {
    width: min(410px, calc(100vw - 24px));
    min-width: 410px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.notification-dropdown-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 19px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient( 135deg, rgba(245, 243, 255, 0.98), rgba(252, 231, 243, 0.72) );
}

.notification-dropdown-title {
    color: var(--text-primary);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.notification-dropdown-subtitle {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
}

.notification-mark-all {
    flex: 0 0 auto;
    padding: 5px 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--marketing-purple);
    font-size: 10px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;
}

    .notification-mark-all:hover {
        background: rgba(109, 40, 217, 0.09);
        color: var(--marketing-purple-dark);
    }

    .notification-mark-all:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

.notification-list {
    max-height: 430px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

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

    .notification-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .notification-list::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #ddd8e7;
    }

.notification-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: background 0.18s ease;
}

    .notification-item:last-child {
        border-bottom: 0;
    }

    .notification-item:hover {
        background: var(--surface-soft);
        color: inherit;
    }

    .notification-item.unread {
        background: linear-gradient( 90deg, rgba(245, 243, 255, 0.95), rgba(252, 231, 243, 0.30) );
    }

        .notification-item.unread::before {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            width: 3px;
            background: linear-gradient( 180deg, var(--marketing-purple), var(--marketing-pink) );
        }

.notification-item-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--marketing-purple-soft);
    color: var(--marketing-purple);
    font-size: 16px;
}

    .notification-item-icon.request {
        background: var(--marketing-blue-soft);
        color: var(--marketing-blue);
    }

    .notification-item-icon.campaign {
        background: var(--marketing-purple-soft);
        color: var(--marketing-purple);
    }

    .notification-item-icon.whatsapp {
        background: var(--success-soft);
        color: var(--success);
    }

    .notification-item-icon.success {
        background: var(--success-soft);
        color: var(--success);
    }

    .notification-item-icon.warning {
        background: var(--warning-soft);
        color: var(--warning);
    }

    .notification-item-icon.error {
        background: var(--danger-soft);
        color: var(--danger);
    }

    .notification-item-icon.info {
        background: var(--info-soft);
        color: var(--info);
    }

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

.notification-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.notification-item-title {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item-unread-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--marketing-pink);
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.10);
}

.notification-item-message {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notification-item-date {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
}

.notification-loading,
.notification-empty,
.notification-error {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 25px;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
}

.notification-empty-icon,
.notification-error-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient( 135deg, var(--marketing-purple-soft), var(--marketing-pink-soft) );
    color: var(--marketing-purple);
    font-size: 23px;
}

.notification-error-icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.notification-empty-title,
.notification-error-title {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
}

.notification-empty-text,
.notification-error-text {
    max-width: 240px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.notification-dropdown-footer {
    padding: 11px 14px;
    border-top: 1px solid var(--border);
    background: var(--surface-soft);
}

.notification-view-all {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    color: var(--marketing-purple);
    font-size: 10px;
    font-weight: 800;
    transition: background 0.18s ease, color 0.18s ease;
}

    .notification-view-all:hover {
        background: var(--marketing-purple-muted);
        color: var(--marketing-purple-dark);
    }

.notification-toast-container {
    z-index: 12000;
}

.notification-toast {
    overflow: hidden;
    width: min(390px, calc(100vw - 24px));
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.notification-toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient( 135deg, var(--marketing-purple-soft), var(--marketing-pink-soft) );
}

.notification-toast-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #ffffff;
    color: var(--marketing-purple);
    box-shadow: var(--shadow-xs);
}

.notification-toast-title {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-toast-body {
    padding: 14px 15px;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.6;
}

@keyframes notification-pulse {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.28);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 575.98px) {
    .notification-dropdown {
        position: fixed !important;
        top: 66px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto;
        min-width: 0;
        transform: none !important;
    }

    .notification-dropdown-header {
        padding: 15px;
    }

    .notification-list {
        max-height: calc(100vh - 190px);
    }
}