:root {
    --primary-color: #ec4899;
    --secondary-color: #6366f1;
    --tertiary-color: #768193;

    --dark-grey: #121212;
    --medium-grey: #1e1e1e;
    --medium-bg-grey: #3c3d3e;
    --light-grey: #b0b3b8;

    --btn-hover-bg-color: #5a5a5a;
    --btn-hover-text-color: #e1e1e1;
    --btn-bg-color: #282b31;
    --blue-btn-bg-color: #9198ff;
    --more-link-background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #0d1117 15%);

    --gradient: linear-gradient(to right, #ec4899 40%, /* pink-500 */ #8b5cf6 70%, /* purple-500 */ #6366f1 100% /* indigo-500 */);

    --error-color: #e54d42;
    --link-color: #4192ff;

    --toggle-bg-off: #3c3f44;
    --toggle-border-off: #3c3f44;
}


/* General */
html {
    background:
            radial-gradient(ellipse 55% 45% at 12% 18%, rgba(139, 92, 246, 0.09) 0%, transparent 100%),
            radial-gradient(ellipse 50% 40% at 88% 78%, rgba(99, 102, 241, 0.08) 0%, transparent 100%),
            radial-gradient(ellipse 38% 30% at 65% 8%,  rgba(236, 72, 153, 0.05) 0%, transparent 100%),
            #0b0b14;
}
.title, label.label, div, p {
    color: white;
}
a {
    color: var(--link-color);
    text-decoration: underline;
}
p {
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.3;
}
h1, h2, h3, h4, h5, .title {
    font-weight: 700;
    display: inline-block;
}

.textarea, .input {
    background-color: var(--medium-grey);
    border: none;
    color: white;
    font-size: 14px;
    resize: none;
    text-align: left;
}
.textarea::-moz-placeholder, .input::-moz-placeholder {
    color: var(--light-grey);
}
.textarea::placeholder,
.input::placeholder {
    color: var(--light-grey);
}

label > .label-right {
    float: right;
    color: var(--light-grey);
    font-weight: 400;
    font-size: 14px;
}

button {
    border-radius: 6px;
    font-size: 15px !important;
    font-weight: 700;
    color: white!important;
    background: var(--gradient);
    border: none!important;
    transition: 0.2s all ease-out;
    opacity: 0.9;
}
button.is-small{
    font-size: 12px !important;
    border-radius: 15px;
    padding: 12px 15px;
}
button.is-large {
    font-size: 20px !important;
    border-radius: 10px;
    padding: 8px 15px;
    height: auto;
}
button.is-outlined {
    border: 1px solid #333!important;
    background: transparent!important;
    color: #ccc !important;
}
button.is-outlined:hover {
    --glow-border: var(--gradient);
    --glow-bg-from-to: var(--dark-grey), var(--dark-grey);
    --glow-bg-gradient: linear-gradient(var(--glow-bg-from-to));
    border: 1px solid transparent!important;
    background: var(--glow-bg-gradient) padding-box, var(--glow-border) border-box!important;
    box-shadow: none;
    color: white!important;
}
button:hover {
    opacity: 1;
}
button.full-width {
    width: 100%;
}

iframe {
    height: 450px;
    border-radius: 15px;
}

.bg-gradient, .text-gradient {
    color: white;
    background: var(--gradient);
}
.bg-gradient {
    color: white!important;
}
.text-gradient {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent!important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #333;
}
::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Grid & columns */
.column-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media screen and (max-width: 1215px) {
    .column-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 1023px) {
    .column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .column-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Menu */
.menu {
    font-size: 15px;

    a, .menu path {
        color: #4c4f54!important;
    }
    li span {
        color: #9094A6!important;
    }
    a span {
        position: absolute;
        left: 50px;
    }
    .menu-page-logo {
        font-size: 18px;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        padding: 10px 15px;
        font-weight: 600;
    }
    li:hover span, .menu li:hover path {
        color: white!important;
    }
    a.router-link-active.router-link-exact-active {
        font-weight: bold;
        color: white!important;
    }
}

:deep(path) {
    color: #aaa;
}
a.router-link-active :deep(path) {
    color: white;
}

.logo {
    text-align: left;
    padding: 20px 10px;
    width: 100%;

    img {
        width: 140px;
    }
}

.mobile-navigation {
    display: none;
    width: 100%;
    position: fixed;
    background: #1e1e1e;
    gap: 0px;
    height: 50px;
    padding: 5px 10px;

    .logo {
        margin-bottom: 0px;
        padding: 0px;
        min-width: 130px;
        width: 130px;
    }
    .logo > img {
        width: 100px;
    }
    .menu > ul {
        padding: 0px!important;
    }
    .menu > ul > li {
        padding: 8px 5px;
    }
    .menu > ul > li:hover {
        cursor: pointer;
    }
}

@media screen and (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .mobile-navigation {
        display: flex;
    }
    .main-content {
        margin-top: 52px;
    }
    .menu li {
        margin-bottom: 0px;
    }
}


/* Main elements */
.card {
    height: 500px;
    border-radius: 8px;
    background-color: var(--medium-grey);
}
.card > div {
    border: 1px solid transparent;
}
.card-image {
    height: 500px;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    /*transition: 0.2s all ease-out;*/
}
.card-header {
    z-index: 1;
    position: absolute;
    justify-content: space-between;
    margin-bottom: 10px;
    box-shadow: none;
    width: 100%;
    padding: 10px;
    align-items: center;
}
.card-content {
    padding: 20px 15px;
    position: absolute;
    z-index: 100;
    background: #111;
    opacity: 0.8;
    bottom: 0px;
    border-radius: 0px 0px 8px 8px;
    width: 100%;
}
.card .tag {
    font-weight: 700;
}
.card.disabled {
    opacity: 0.8;
}

.card:hover:not(.disabled) {
    cursor: pointer;
    background-color: #222222;
}
.card:hover:not(.disabled) > div {
    /*
    box-shadow: 0 0 50px 5px #48abe0;
    border: #8b5cf6 1px solid;
    box-shadow: 0 0 10px 4px #8b5cf6;
    */
}
.card:hover:not(.disabled) .card-image {
    transition: 0.2s all ease-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.25, 1.25);
    opacity: 0.5;
}

.main-content {
    position: relative;
    padding: 20px;
    min-width: 0;
}
@media screen and (max-width: 768px) {
    .main-content {
        margin-top: 50px;
    }
}


.request {
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid transparent;
    border-bottom: 1px solid var(--medium-grey);
    justify-content: space-between;
    align-items: center;

    .request-title {
        font-weight: 700;
        line-height: 18px;
        font-size: 14px;
    }
    .request-date {
        font-size: 12px;
        color: #768193;
    }
}
.request:hover {
    background-color: var(--dark-grey);
}
.request.selected {
    border: 1px solid var(--secondary-color);

    .request-title {
        color: var(--secondary-color);
    }
}

.glow-on-hover {
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 0;
}
.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, var(--primary-color), #8b5cf6, var(--secondary-color), var(--tertiary-color));
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}
.glow-on-hover:active {
    color: #000
}
.glow-on-hover:active:after {
    background: transparent;
}
.glow-on-hover:hover:before {
    opacity: 1;
}
.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: transparent;
}


.colorize {
    background: transparent;
    filter: brightness(1000%) saturate(0%); /* Blanc au départ */
    animation: colorize 2s ease-in-out infinite; /* Animation continue */
}


.collapse-panel-container {
    background: #1e1e1e;
    border-radius: 8px;
    margin-bottom: 20px;

    .collapse-panel-header {
        padding: 20px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        cursor: pointer;
        border-bottom: 1px solid #333;

        .collapse-panel-header__title {
            color: #768193;
            font-weight: 700;
        }

        .collapse-panel-header__status svg {
            transform: rotate(0deg);
            transition: transform 0.25s ease;
        }

        .collapse-panel-header__status {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .collapse-panel-header__status > .tag {
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            padding: 10px 20px;
            border-radius: 8px;
        }

        .collapse-panel-header__status > .tag.pending {
            background: #46452E;
            color: #b1ae44;
        }
        .collapse-panel-header__status > .tag.completed {
            background: #244636;
            color: #44b164;
        }
    }

    .collapse-panel-body {
        overflow: hidden;
        background: rgb(30, 30, 30);
        border-radius: 0px 0px 8px 8px;

        > div {
            padding: 20px;
            margin-top: -100%;
            transition: all 1s ease-out;
        }
    }
}

.collapse-panel-container.collapsed {
    .collapse-panel-header {
        .collapse-panel-header__title {
            color: white;
            font-weight: 700;
        }

        .collapse-panel-header__status svg {
            transform: rotate(180deg);
            transition: transform 0.5s ease;
        }
    }

    .collapse-panel-body > div {
        margin-top: 0;
        transition: all 0.5s ease;
    }
}

.project-title {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-content-desc {
  font-size: 0.75rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.category-tag {
  font-size: 0.8rem !important;
  height: 1em !important;
  font-weight: 600 !important;
  padding: 2px 0px !important;
  border-radius: 12px !important;
  text-transform: capitalize;
  color: white !important;
  background-color: transparent !important;
  margin-bottom: 0px !important;
}

/* Text colors per category */
.category-marketing { color: #8e44ad !important; }
.category-instagram { color: #e1306c !important; }
.category-vente { color: #d35400 !important; }
.category-publicités { color: #2980b9 !important; }
.category-nouveau { color: #c0392b !important; }

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

@keyframes colorize {
    0%, 100% {
        filter: brightness(1000%) saturate(0%); /* white */
    }
    50% {
        filter: brightness(100%) saturate(100%); /* natural colors */
    }
}

@keyframes gradientFade {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}


.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;

    p {
       color: var(--light-grey)
    }

    .modal-close-button {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        position: absolute;
        top: 10px;
        right: 25px;
    }
    .modal-close-button:hover,
    .modal-close-button:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

    .modal-icon {
        display: flex;
        flex-direction: column;
        align-items: center;

        img {
            margin-top: 5px;
            width: 75px;
            margin-bottom: 20px;
            padding: 0px;
        }
    }
    .modal-back {
        position: absolute;
        cursor: pointer
    }
    .modal-title {
        font-weight: 700;
        font-size: 22px;
        margin-bottom: 5px;
    }
    .modal-subtitle {
        margin-bottom: 10px;
    }
    .modal-content {
        padding: 30px;
        width: 80%;
        max-width: 600px;
        border-radius: 12px;
        background-color: var(--medium-grey);
        text-align: center;
    }
    .modal-step {
        display: none;

        .title {
            font-size: 2rem;
            text-align: center;
            margin-top: 0px;
            margin-bottom: 20px;
        }
    }
    .modal-step.active {
        display: block;
        animation: fadeIn 0.4s ease-out;
    }
}
.modal.show {
    display: flex!important;
    vertical-align: middle;
}

.inline-block {
    display: inline-block;
}

.mr-0 {
    margin-right: 0;
}

.mr-05 {
    margin-right: 0.5em;
}

.mr1 {
    margin-right: 1em;
}

.ml-0 {
    margin-left: 0;
}

.ml-05 {
    margin-left: 0.5em;
}

.ml1 {
    margin-left: 1em;
}

.flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.jc {
    justify-content: center;
}

.jcb {
    justify-content: space-between;
}

.je {
    justify-content: flex-end;
}

.font-12px {
    font-size: 12px;
}

.font-13px {
    font-size: 13px;
}

.font-14px {
    font-size: 14px;
}

.font-16px {
    font-size: 16px;
}

.font-18px {
    font-size: 18px;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
}

.toggle-container:focus {
    box-shadow: none !important;
}

.toggle-blue {
    --toggle-bg-on: #9198ff;
    --toggle-border-on: #9198ff;
}

.min-height-300 {
    min-height: 300px;
}

/* identity css start */
.item-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}
.item-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--light-grey);
}
.item-title-hover-icon {
  visibility: hidden;
  font-size: 16px;
}
.item-title:hover .item-title-hover-icon {
  visibility: visible;
}
.identity-item-tabs {
  display: flex;
  gap: 25px;
  justify-content: normal;
}
.identity-item-tabs .tab {
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  color: var(--light-grey);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
}
.identity-item-tabs .tab * {
  color: var(--light-grey);
}
.identity-item-tabs .tab:hover {
  cursor: pointer;
  border-bottom: 1px solid white;
  color: white;
}
.identity-item-tabs .tab:hover * {
  color: white;
}
.identity-item-tabs .tab.selected {
  border-bottom: 1px solid var(--blue-btn-bg-color);
  color: white;
}
.item-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.logo.colorize {
  width: 125px;
}
.identity-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.identity-list-item {
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  background-color: var(--btn-bg-color);
  color: var(--light-grey);
  font-weight: 600;
}
.identity-list-item.selected {
  border: 1px solid var(--blue-btn-bg-color);
  color: var(--btn-hover-text-color);
}

.identity-list-item:hover {
    background-color: var(--btn-hover-bg-color);
    color: var(--btn-hover-text-color);
}

.identity-action-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  gap: 15px;
  margin-top: 15px;
}
.identity-item-active-txt {
  font-size: 14px;
  color: var(--light-grey);
  margin-left: 7px;
}
button.identity-default-btn {
  background-color: var(--blue-btn-bg-color) !important;
  color: #fff !important;
}
.identity-return-back {
    display: inline-block;
    cursor: pointer;
}
.identity-item-action-trigger {
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.identity-item-action-trigger:hover {
    background: var(--light-grey);
}
.identity-item-action-item {
    padding: 5px 10px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    font-weight: bold;
    position: relative;
}
.identity-item-action-item:hover {
    background-color: var(--light-grey);
}
.identity-item-action-dropdown-content {
    background-color: var(--medium-bg-grey);
}
/* identity css end */


/* ============================================================
   Campaign/Card.vue
   ============================================================ */

/* ── Carte ───────────────────────────────────────────────────────────────── */
.campaign-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #2a2d31;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background: var(--card-bg-color, #1a1d22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.campaign-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-color, #6c63ff);
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.15);
}

/* Accent coloré sur le bord gauche selon le type */
.campaign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0px;
    border-radius: 12px 0 0 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.campaign-card:hover::before {
    opacity: 1;
}

.campaign-card--email::before {
    background: #5ea8f0;
}

.campaign-card--sms::before {
    background: #7ec850;
}

.campaign-card--post::before {
    background: #f0a050;
}

.campaign-card--html::before {
    background: #c07ef0;
}

.campaign-card--text::before {
    background: #768193;
}

/* ── Visuel ──────────────────────────────────────────────────────────────── */
.campaign-card__visual {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #23262c;
    flex-shrink: 0;
}

.campaign-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.campaign-card:hover .campaign-card__img {
    transform: scale(1.04);
}

.campaign-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* motif de points discret */
    background-image: radial-gradient(circle, #2e3138 1px, transparent 1px);
    background-size: 18px 18px;
}

.campaign-card__placeholder-icon {
    font-size: 36px;
    color: #3a3e47;
}

/* Badge type */
.campaign-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
}

.campaign-card__content-badges .campaign-card__badge {
    position: static;
}

.campaign-card__content-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.badge--email {
    background: rgba(30, 58, 95, 0.9);
    color: #5ea8f0;
}

.badge--sms {
    background: rgba(42, 61, 30, 0.9);
    color: #7ec850;
}

.badge--post {
    background: rgba(61, 42, 30, 0.9);
    color: #f0a050;
}

.badge--funnel {
    background: rgba(58, 30, 61, 0.9);
    color: #c07ef0;
}

.badge--text {
    background: rgba(42, 45, 49, 0.9);
    color: #768193;
}

.badge--email-sequence {
    background: rgba(30, 58, 95, 0.9);
    color: #5ea8f0;
}

.badge--email-sequence-inverted {
    background: rgba(20, 50, 85, 0.9);
    color: #93c5fd;
}

/* Pill étapes */
.campaign-card__steps-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #c5cad4;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ── Corps ───────────────────────────────────────────────────────────────── */
.campaign-card__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.campaign-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #f0f2f5;
    margin: 0;
    line-height: 1.3;
    /* Tronquer à 2 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campaign-card__desc {
    font-size: 13px;
    color: #768193;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer CTA */
.campaign-card__footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.campaign-card__cost {
    font-size: 12px;
    font-weight: 700;
    color: #c5cad4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.campaign-card__cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-color, #6c63ff);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.campaign-card:hover .campaign-card__cta {
    opacity: 1;
    transform: translateX(0);
}

.campaign-card__arrow {
    font-size: 11px;
    transition: transform 0.2s;
}

.campaign-card:hover .campaign-card__arrow {
    transform: translateX(3px);
}


/* ============================================================
   Campaign/Flow.vue
   ============================================================ */

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.flow-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.flow-back {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #768193;
    background: #23262c;
    border: 1px solid #2e3138;
    flex-shrink: 0;
    transition: all 0.15s;
    text-decoration: none;
}

.flow-back:hover {
    color: #f0f2f5;
    border-color: #555;
    background: #2e3138;
}

.flow-header__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flow-header__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #4a5568;
}

.flow-header__title {
    font-size: 14px;
    font-weight: 700;
    color: #f0f2f5;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Barre de progression ────────────────────────────────────────────────── */
.flow-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.flow-progress__track {
    flex: 1;
    height: 4px;
    background: #2a2d31;
    border-radius: 99px;
    overflow: hidden;
}

.flow-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color, #6c63ff), #48B164);
    border-radius: 99px;
    transition: width 0.5s ease;
}

.flow-progress__label {
    font-size: 11px;
    font-weight: 700;
    color: #768193;
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
}

.flow-divider {
    height: 1px;
    background: #23262c;
    margin: 6px 0;
}

.flow-step {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 10px 10px 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.15s, border-color 0.15s;
    overflow: hidden;
    align-items: center;
}

.flow-step:hover {
    background: #23262c;
    border-color: #2e3138;
}

.flow-step--active {
    background: #1e2128;
    border-color: var(--secondary-color, #6c63ff) !important;
}

.flow-step--done .flow-step__label {
    color: #48B164;
}

/* Barre de couleur à gauche pour l'étape active */
.flow-step__active-bar {
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--secondary-color, #6c63ff);
}

/* Icône */
.flow-step__index {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.flow-step__icon-done {
    font-size: 16px;
    color: #48B164;
}

.flow-step__icon-idle {
    font-size: 14px;
    color: #4a5568;
    transition: color 0.15s;
}

.flow-step--active .flow-step__icon-idle {
    color: var(--secondary-color, #6c63ff);
}

/* Texte */
.flow-step__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

/* Numéro + label alignés sur une seule ligne */
.flow-step__row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.flow-step__num {
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
    flex-shrink: 0;
    line-height: 1.35;
    transition: color 0.15s;
}

.flow-step--active .flow-step__num {
    color: var(--secondary-color, #6c63ff);
}

.flow-step--done .flow-step__num {
    color: #48B164;
}

.flow-step__label {
    font-size: 13px;
    font-weight: 600;
    color: #c5cad4;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
    min-width: 0;
}

.flow-step--active .flow-step__label {
    color: #f0f2f5;
}

.flow-step--done .flow-step__label {
    color: #48B164;
}


/* ============================================================
   Campaign/Identity.vue
   NOTE: .step-header and .step-badge are also defined in
   Instructions.vue (below) with different values — the last
   rule wins. Scope them further if visual conflicts arise.
   ============================================================ */

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.identity {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Identity variant — accent colour badge */
.identity .step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--secondary-color, #6c63ff);
    background: rgba(108, 99, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.step-header__title {
    font-size: 26px;
    font-weight: 800;
    color: #f0f2f5;
    margin: 0;
    line-height: 1.2;
}

.step-header__desc {
    font-size: 14px;
    color: #768193;
    margin: 0;
    line-height: 1.6;
}

/* ── Grille des selects ──────────────────────────────────────────────────── */
.identity-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Carte de champ */
.id-field {
    border: 1px solid #2a2d31;
    border-radius: 12px;
    padding: 16px 18px;
    background: #1a1d22;
    transition: border-color 0.2s, background 0.2s;
}

.id-field:hover {
    border-color: #3a3e47;
    background: #1e2128;
}

.id-field--set {
    border-color: rgba(72, 177, 100, 0.35);
    background: rgba(72, 177, 100, 0.04);
}

.id-field__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

/* Icônes colorées par type */
.id-field__icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.id-field__icon--personality {
    background: rgba(108, 99, 255, 0.15);
    color: var(--secondary-color, #6c63ff);
}

.id-field__icon--audience {
    background: rgba(94, 168, 240, 0.15);
    color: #5ea8f0;
}

.id-field__icon--offer {
    background: rgba(240, 160, 80, 0.15);
    color: #f0a050;
}

.id-field__label {
    font-size: 14px;
    font-weight: 700;
    color: #f0f2f5;
    flex: 1;
}

.id-field__check {
    font-size: 16px;
    color: #48B164;
}

.id-field__desc {
    font-size: 12px;
    color: #4a5568;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Select custom */
.id-field__select-wrap {
    position: relative;
}

.id-field__select {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 12px;
    border-radius: 8px;
    border: 1px solid #2e3138;
    background: #23262c;
    color: #f0f2f5;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.id-field__select:focus {
    outline: none;
    border-color: var(--secondary-color, #6c63ff);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.id-field__arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #768193;
    font-size: 12px;
    pointer-events: none;
}


/* ============================================================
   Campaign/Instructions.vue
   NOTE: .step-header and .step-badge overlap with Identity.vue
   above — scoped here via .instruction parent selector.
   ============================================================ */

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.instruction {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.instruction .step-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Instruction variant — neutral badge */
.instruction .step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #768193;
    background: #23262c;
    border: 1px solid #2e3138;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.instruction .step-header__title {
    font-size: 26px;
    font-weight: 800;
    color: #f0f2f5;
    margin: 0;
    line-height: 1.25;
}

.instruction .step-header__desc {
    font-size: 14px;
    color: #768193;
    margin: 0;
    line-height: 1.65;
    max-width: 580px;
}

/* ── Zone de saisie ──────────────────────────────────────────────────────── */
.instruction-input {
    display: flex;
    flex-direction: column;
}

.input-wrap {
    display: flex;
    flex-direction: column;
}

.input-wrap--narrow {
    max-width: 380px;
}

/* Input générique */
.ins-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    color: #f0f2f5;
    background: #1a1d22;
    border: 1px solid #2e3138;
    border-radius: 10px;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    outline: none;
}

.ins-input::placeholder {
    color: #4a5568;
}

.ins-input:focus {
    border-color: var(--secondary-color, #6c63ff);
    background: #1e2128;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.ins-input--filled {
    border-color: rgba(72, 177, 100, 0.4);
    background: rgba(72, 177, 100, 0.04);
}

.ins-input--filled:focus {
    border-color: var(--secondary-color, #6c63ff);
    background: #1e2128;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

/* Textarea */
.ins-input--textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

/* Date */
.ins-date-wrap {
    position: relative;
}

.ins-date-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #768193;
    font-size: 14px;
    pointer-events: none;
}

.ins-input--date {
    padding-left: 40px;
    color-scheme: dark;
}

/* État erreur */
.ins-input--error {
    border-color: rgba(224, 82, 82, 0.6) !important;
    background: rgba(224, 82, 82, 0.04) !important;
    box-shadow: none !important;
}

.ins-input--error:focus {
    border-color: #e05252 !important;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15) !important;
}

.ins-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #e05252;
}

/* Transition message d'erreur */
.err-fade-enter-active, .err-fade-leave-active {
    transition: opacity 0.2s, transform 0.2s;
}

.err-fade-enter-from, .err-fade-leave-to {
    opacity: 0;
    transform: translateY(-4px);
}

/* Select */
.ins-select-wrap {
    position: relative;
}

.ins-input--select {
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
    height: 46px;
}

.ins-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #768193;
    font-size: 12px;
    pointer-events: none;
}

/* Radio */
.ins-radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ins-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #2e3138;
    border-radius: 10px;
    background: #1a1d22;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.ins-radio:hover {
    border-color: #3a3e47;
    background: #1e2128;
}

.ins-radio--selected {
    border-color: var(--secondary-color, #6c63ff);
    background: rgba(108, 99, 255, 0.06);
}

.ins-radio__input {
    display: none;
}

.ins-radio__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #3a3e47;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ins-radio--selected .ins-radio__dot {
    border-color: var(--secondary-color, #6c63ff);
    background: var(--secondary-color, #6c63ff);
}

.ins-radio__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.ins-radio__title {
    font-size: 14px;
    font-weight: 600;
    color: #c5cad4;
}

.ins-radio--selected .ins-radio__title {
    color: #f0f2f5;
}

.ins-radio__sub {
    font-size: 12px;
    color: #768193;
}

.ins-radio__check {
    font-size: 16px;
    color: var(--secondary-color, #6c63ff);
}

/* ── Statut ──────────────────────────────────────────────────────────────── */
.instruction-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #48B164;
}

.instruction-status__icon {
    font-size: 14px;
}


/* ============================================================
   Campaign/Result.vue
   ============================================================ */

/* ── Panel ─────────────────────────────────────────────────────────────── */
.result-panel {
    flex-direction: column;
    gap: 0;
    /*background-color: var(--medium-grey);*/
    border-radius: 8px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 5px 20px;
    border-bottom: none
}
.result-header__meta { display: flex; flex-direction: row; gap: 6px; }
.result-header__label {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #f0f2f5;
    line-height: 1.3;
}

/* Badge type */
.result-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
}
.badge--email { background: #1e3a5f; color: #5ea8f0; }
.badge--sms   { background: #2a3d1e; color: #7ec850; }
.badge--post  { background: #3d2a1e; color: #f0a050; }
.badge--html  { background: #3a1e3d; color: #c07ef0; }
.badge--text  { background: #2a2d31; color: #768193; }

/* ── Actions ─────────────────────────────────────────────────────────────── */
.result-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.result-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 7px;
    border: 1px solid #2e3138;
    background: #23262c;
    color: #c5cad4;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.result-btn:hover:not(:disabled) { background: #2e3138; border-color: #444; }
.result-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.result-btn--wolfeo {
    background: #1a2a3d;
    border-color: #2a4a6d;
    color: #5ea8f0;
}
.result-btn--wolfeo:hover:not(:disabled) { background: #1f3550; }
.result-btn--sm { font-size: 12px; padding: 5px 10px; margin-top: 10px; }

/* ── Feedback export ─────────────────────────────────────────────────────── */
.result-export-feedback {
    margin: 0 20px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 20px;
}
.feedback--ok  { background: #1a2e1e; color: #7ec850; border: 1px solid #2a4d2e; }
.feedback--err { background: #2e1a1a; color: #e05252; border: 1px solid #4d2a2a; }

/* ── Body ─────────────────────────────────────────────────────────────────── */
.result-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

/* Email */
.render-email {
    background: #fff;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 28px 32px;
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.render-email div, .render-email p, .render-email span, .render-email .title, .render-email label.label {
    color: #555;
}

/* SMS */
.render-sms { display: flex; justify-content: flex-end; }
.sms-bubble {
    background: #1a73e8;
    color: #fff;
    border-radius: 18px 18px 4px 18px;
    padding: 14px 18px;
    max-width: 80%;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
}
.sms-chars {
    display: block;
    text-align: right;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
}

/* Post */
.render-post {
    background: #23262c;
    border-radius: 8px;
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.7;
    color: #d8dce4;
}

/* HTML iframe */
.render-html {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.render-wolfeo__frame {
    height: 100%;
}
.render-html__frame {
    width: 100%;
    height: 560px;
    border: 1px solid #2a2d31;
    border-radius: 8px;
    background: #fff;
}

/* Texte */
.render-text pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    color: #c5cad4;
    line-height: 1.7;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.result-nav {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-direction: row;
}
.result-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #2e3138;
    background: transparent;
    color: #768193;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.result-tab:hover { border-color: #444; color: #c5cad4; }
.result-tab--active {
    background: var(--secondary-color, #6c63ff);
    border-color: var(--secondary-color, #6c63ff);
    color: #fff;
}

.result-arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}
.result-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #2e3138;
    background: #23262c;
    color: #c5cad4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.result-arrow:hover:not(:disabled) { background: #2e3138; }
.result-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.result-counter { font-size: 13px; color: white; }

/* Transition feedback */
.fade-enter-active, .fade-leave-active { transition: opacity 0.3s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }


/* ============================================================
   Campaign/GenerationModal.vue
   ============================================================ */

/* Overlay */
.gm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Card */
.gm-card {
    background: #1a1d22;
    border: 1px solid #2e3138;
    border-radius: 16px;
    padding: 40px 48px;
    min-width: 420px;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s;
}

.gm-card--done {
    border-color: #48B164;
}

.gm-card--error {
    border-color: #e05252;
}

/* Spinner */
.gm-icon {
    margin-bottom: 20px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gm-spinner {
    width: 52px;
    height: 52px;
}

.gm-spinner__svg {
    width: 100%;
    height: 100%;
    animation: rotate 1.4s linear infinite;
}

.gm-spinner__svg circle {
    stroke: var(--secondary-color, #6c63ff);
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
    animation: dash 1.4s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.gm-icon--success {
    font-size: 48px;
    color: #48B164;
}

.gm-icon--error {
    font-size: 48px;
    color: #e05252;
}

/* Textes */
.gm-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f0f2f5;
}

.gm-subtitle {
    font-size: 14px;
    color: #768193;
    margin-bottom: 24px;
}

.gm-subtitle--error {
    color: #e05252;
}

/* Barre */
.gm-progress-track {
    height: 6px;
    background: #2e3138;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}

.gm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color, #6c63ff), #48B164);
    border-radius: 99px;
    transition: width 0.6s ease;
}

.gm-progress-bar--indeterminate {
    width: 40% !important;
    animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
    0% {
        margin-left: -40%;
    }
    100% {
        margin-left: 100%;
    }
}

.gm-progress-label {
    font-size: 12px;
    color: #768193;
    display: block;
    text-align: right;
    margin-bottom: 0px;
}

/* Étapes */
.gm-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-bottom: 8px;
}

.gm-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #768193;
    transition: color 0.3s;
}

.gm-step--done {
    color: #48B164;
}

.gm-step--active {
    color: #f0f2f5;
    font-weight: 600;
}

.gm-step__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    transition: background 0.3s;
}

.gm-step--active .gm-step__dot {
    background: var(--secondary-color, #6c63ff);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(108, 99, 255, 0.1);
    }
}

/* Retry */
.gm-btn-retry {
    margin-top: 20px;
    padding: 10px 28px;
    background: #e05252;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.gm-btn-retry:hover {
    background: #c43f3f;
}



/* ── pages/Campaign.vue ───────────────────────────────────────────────── */

.cp-layout {
    display: flex;
    height: 100%;
    overflow: hidden;
    align-items: flex-start;
}

.cp-sidebar {
    width: 350px;
    flex-shrink: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    padding: 15px;
    background-color: var(--medium-grey);
}

.cp-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cp-main__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 5px 30px;
    max-width: 760px;
}

.cp-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
}

.cp-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    border: none;
}

.cp-nav__btn--prev {
    background: transparent;
    border: 1px solid #2e3138;
    color: #768193;
}

.cp-nav__btn--prev:hover:not(:disabled) {
    border-color: #555;
    color: #c5cad4;
    background: #23262c;
}

.cp-nav__btn--prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cp-nav__btn--next {
    background: #23262c;
    border: 1px solid #3a3e47;
    color: #f0f2f5;
}

.cp-nav__btn--next:hover {
    background: #2e3138;
    border-color: var(--secondary-color, #6c63ff);
    color: #fff;
}

.cp-nav__btn--generate {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color, #6c63ff), #48B164);
    border: none;
    color: #fff;
    padding: 11px 28px;
    overflow: hidden;
    border-radius: 8px;
}

.cp-nav__btn--generate:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.35);
}

.cp-nav__btn--generate:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: none;
    transform: none;
    box-shadow: none;
}

.cp-nav__btn-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-nav__btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cp-nav__btn--generate:hover:not(:disabled) .cp-nav__btn-glow {
    opacity: 1;
}

.cp-result {
    width: 660px;
    flex-shrink: 0;
    border-left: 1px solid #2a2d31;
    overflow-y: auto;
}

.cp-fade-enter-active,
.cp-fade-leave-active {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cp-fade-enter-from {
    opacity: 0;
    transform: translateY(8px);
}

.cp-fade-leave-to {
    opacity: 0;
    transform: translateY(-8px);
}

.cp-slide-enter-active,
.cp-slide-leave-active {
    transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.cp-slide-enter-from,
.cp-slide-leave-to {
    transform: translateX(30px);
    opacity: 0;
}

@media (max-width: 900px) {
    .cp-sidebar {
        width: 220px;
        padding: 16px 12px;
    }

    .cp-main__inner {
        padding: 20px;
    }

    .cp-result {
        width: 100%;
        border-left: none;
        border-top: 1px solid #2a2d31;
    }

    .cp-layout {
        flex-wrap: wrap;
    }
}

/* ── pages/Campaigns.vue ──────────────────────────────────────────────── */

.campaigns-page-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.campaigns-page-subtitle {
    font-size: 14px;
    color: #768193;
    margin: 0;
}

.campaigns-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.campaigns-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 240px;
    max-width: 320px;
    flex: 1;
}

.campaigns-search__icon {
    position: absolute;
    left: 11px;
    color: #768193;
    font-size: 13px;
    pointer-events: none;
}

.campaigns-search__input {
    text-align: left;
    padding-left: 32px !important;
    padding-right: 32px !important;
    height: 38px;
    width: 100%;
    border-radius: 8px;
}

.campaigns-search__clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #768193;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    transition: color 0.15s;
}

.campaigns-search__clear:hover {
    color: #f0f2f5;
}

.campaigns-type-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.campaigns-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #2e3138;
    background: transparent;
    color: #768193;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.campaigns-type-btn:hover {
    border-color: #444;
    color: #c5cad4;
    background: var(--btn-hover-bg-color, #23262c);
}

.campaigns-type-btn--active {
    background: var(--secondary-color, #6c63ff);
    border-color: var(--secondary-color, #6c63ff);
    color: #fff;
}

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.campaign-card--skeleton {
    border: 1px solid #2a2d31;
    border-radius: 12px;
    overflow: hidden;
    cursor: default;
}

.skeleton-img {
    height: 120px;
    background: linear-gradient(90deg, #23262c 25%, #2e3138 50%, #23262c 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #23262c 25%, #2e3138 50%, #23262c 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-line--title {
    height: 16px;
    width: 65%;
}

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

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.campaigns-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    gap: 12px;
}

.campaigns-empty__icon {
    font-size: 48px;
    color: #2e3138;
}

.campaigns-empty__text {
    font-size: 16px;
    font-weight: 700;
    color: #768193;
    margin: 0;
}

.campaigns-empty__sub {
    font-size: 14px;
    color: #4a5568;
    margin: 0;
}

@media (max-width: 600px) {
    .campaigns-grid {
        grid-template-columns: 1fr;
    }

    .campaigns-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .campaigns-search {
        max-width: 100%;
    }
}
