/**
 * Shahir — Influencer Portal
 * Metronic 8 skin: clean, formal, readable (rose accent)
 * Distinct from Brand Desk (client) & admin
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
    --stage-ink: #181C32;
    --stage-paper: #F5F8FA;
    --stage-surface: #FFFFFF;
    --stage-magenta: #C01048;
    --stage-magenta-soft: #FDF2F8;
    --stage-border: #EFF2F5;
    --stage-muted: #A1A5B7;
    --stage-text: #3F4254;
    --stage-grad: #C01048;
    --stage-grad-hot: #C01048;
    --stage-glow: rgba(192, 16, 72, 0.12);
    --stage-radius: 0.625rem;
    --stage-font: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

/* ─── Metronic primary override ─── */
body.influencer-studio {
    --bs-primary: #C01048;
    --bs-primary-rgb: 192, 16, 72;
    --kt-primary: #C01048;
    --kt-primary-active: #9F1239;
    --kt-primary-light: #FDF2F8;
    --kt-text-primary: #C01048;
    font-family: var(--stage-font) !important;
    background: var(--stage-paper);
    color: var(--stage-text);
    -webkit-font-smoothing: antialiased;
}

body.influencer-studio .page,
body.influencer-studio #kt_wrapper,
body.influencer-studio #kt_content,
body.influencer-studio #kt_post {
    isolation: isolate;
}

body.influencer-studio .content,
body.influencer-studio #kt_content {
    background: var(--stage-paper) !important;
    position: relative;
}

body.influencer-studio #kt_content_container {
    position: relative;
    z-index: 1;
    padding-top: 0.5rem;
    padding-bottom: 2.5rem;
}

body.influencer-studio #kt_toolbar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.influencer-studio #kt_toolbar .page-title h1 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: var(--stage-ink) !important;
    letter-spacing: -0.01em;
    margin: 0 !important;
    line-height: 1.3 !important;
}

body.influencer-studio #kt_toolbar .breadcrumb {
    margin-top: 0.35rem !important;
}

body.influencer-studio #kt_toolbar .breadcrumb-item,
body.influencer-studio #kt_toolbar .breadcrumb-item a {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

body.influencer-studio #kt_post {
    position: relative;
    z-index: 1;
}

body.influencer-studio h1,
body.influencer-studio h2,
body.influencer-studio h3,
body.influencer-studio .fw-bolder {
    letter-spacing: -0.015em;
}

body.influencer-studio .fs-2hx {
    letter-spacing: -0.03em;
    line-height: 1.15 !important;
}

body.influencer-studio .ls-1 {
    letter-spacing: 0.06em !important;
}

body.influencer-studio .mw-600px {
    max-width: 600px;
}

/* ─── Aside: Metronic dark, quiet accent ─── */
body.influencer-studio .studio-aside.aside-dark,
body.influencer-studio #kt_aside.studio-aside {
    background: #1E1E2D !important;
    border-left: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
    z-index: 98 !important;
}

body.influencer-studio .studio-aside .aside-logo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-block: 1rem !important;
}

body.influencer-studio .studio-badge-mini {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    font-family: var(--stage-font);
}

body.influencer-studio .studio-aside .menu-section {
    color: rgba(255, 255, 255, 0.35) !important;
    opacity: 1;
    letter-spacing: 0.08em !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
}

body.influencer-studio .studio-aside .menu-link {
    border-radius: 0.475rem !important;
    margin-inline: 0.5rem;
    transition: background 0.15s ease, color 0.15s ease;
}

body.influencer-studio .studio-aside .menu-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

body.influencer-studio .studio-aside .menu-link.active {
    background: rgba(192, 16, 72, 0.18) !important;
    box-shadow: none !important;
}

body.influencer-studio .studio-aside .menu-link.active .menu-icon i,
body.influencer-studio .studio-aside .menu-link.active .menu-title {
    color: #FDA4AF !important;
}

body.influencer-studio .studio-aside .menu-title {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

body.influencer-studio .studio-aside .menu-icon i {
    color: rgba(255, 255, 255, 0.5);
}

body.influencer-studio .studio-aside::after {
    display: none;
}

body.influencer-studio .studio-aside > * {
    position: relative;
    z-index: 1;
}

/* ─── Header ─── */
body.influencer-studio .header.studio-header {
    background: #fff !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--stage-border) !important;
    z-index: 99 !important;
}

body.influencer-studio .studio-header .container-fluid {
    position: relative;
}

body.influencer-studio .studio-header .container-fluid::after {
    display: none;
}

.badge-studio {
    background: var(--stage-magenta-soft);
    color: #C01048 !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(192, 16, 72, 0.12);
    box-shadow: none;
    border-radius: 0.375rem !important;
    font-size: 0.75rem;
}

/* ─── Buttons ─── */
body.influencer-studio .btn-primary {
    background: #C01048 !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: none !important;
    border-radius: 0.475rem !important;
    transition: background 0.15s ease;
}

body.influencer-studio .btn-primary:hover {
    background: #9F1239 !important;
    color: #fff !important;
    transform: none;
    box-shadow: none !important;
}

body.influencer-studio .btn-light,
body.influencer-studio .btn-light-primary {
    background: #F9F9F9 !important;
    color: #3F4254 !important;
    border: 1px solid #E4E6EF !important;
    border-radius: 0.475rem !important;
    font-weight: 600;
}

body.influencer-studio .btn-light-primary {
    background: #FDF2F8 !important;
    color: #9F1239 !important;
    border-color: rgba(192, 16, 72, 0.12) !important;
}

body.influencer-studio .btn-light-primary:hover {
    background: #FCE7F3 !important;
    color: #881337 !important;
}

body.influencer-studio .link-primary {
    color: #C01048 !important;
}

body.influencer-studio .form-control:focus,
body.influencer-studio .form-select:focus,
body.influencer-studio .form-control-solid:focus {
    border-color: #C01048 !important;
    box-shadow: 0 0 0 0.2rem rgba(192, 16, 72, 0.12) !important;
}

body.influencer-studio .badge-light-primary {
    background: #FDF2F8 !important;
    color: #9F1239 !important;
}

body.influencer-studio .symbol-label.bg-light-primary {
    background: #FDF2F8 !important;
    color: #C01048 !important;
}

/* ─── Cards: Metronic flush panels ─── */
body.influencer-studio .card {
    border: 1px solid var(--stage-border) !important;
    border-radius: var(--stage-radius) !important;
    box-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.02) !important;
    background: #fff !important;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

body.influencer-studio .card .card-header {
    position: relative;
    z-index: 1;
    background: transparent !important;
    border-bottom: 1px solid var(--stage-border) !important;
    min-height: auto !important;
}

body.influencer-studio .card .card-title,
body.influencer-studio .card .card-title h3 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--stage-ink) !important;
}

body.influencer-studio .card .card-body {
    position: relative;
    z-index: 1;
}

body.influencer-studio .card .table thead tr {
    border-bottom: 1px solid var(--stage-border);
}

body.influencer-studio .card .table th {
    font-weight: 700 !important;
    color: var(--stage-muted) !important;
    letter-spacing: 0.04em;
}

body.influencer-studio .studio-welcome-card,
body.influencer-studio .stage-welcome {
    border-color: var(--stage-border) !important;
    background: #fff !important;
}

body.influencer-studio .stage-welcome .symbol {
    flex-shrink: 0;
}

/* ─── Dashboard welcome (replaces theatrical hero) ─── */
.stage-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--stage-radius);
    padding: 1.5rem 1.75rem;
    background: #fff;
    color: var(--stage-ink);
    margin-bottom: 1.5rem;
    border: 1px solid var(--stage-border);
    box-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.02);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.stage-hero::before,
.stage-hero::after {
    display: none;
}

.stage-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--stage-muted);
    margin-bottom: 0.5rem;
}

.stage-hero h2 {
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    color: var(--stage-ink);
}

.stage-hero p {
    margin: 0;
    color: var(--stage-text);
    max-width: 36rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.stage-hero-beam {
    display: none;
}

/* ─── Stat cards ─── */
.stage-stat,
.stage-stat-card {
    position: relative;
    background: #fff;
    border-radius: var(--stage-radius);
    border: 1px solid var(--stage-border);
    overflow: hidden;
    height: 100%;
    transition: border-color 0.15s ease;
}

.stage-stat {
    padding: 1.25rem 1.15rem;
    min-height: 7rem;
}

.stage-stat:hover,
.stage-stat-card:hover {
    border-color: #E4E6EF;
}

.stage-stat::before {
    display: none;
}

.stage-stat .stage-stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--stage-muted);
    margin-bottom: 0.45rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stage-stat .stage-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--stage-ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
    padding-inline-end: 3rem;
}

.stage-stat .stage-stat-icon,
.stage-stat-card .stage-stat-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    background: #FDF2F8;
    color: #C01048;
    font-size: 0.9rem;
}

.stage-stat .stage-stat-icon {
    position: absolute;
    inset-inline-end: 1rem;
    top: 1.1rem;
}

.stage-stat:nth-child(2) .stage-stat-icon,
.stage-stat:nth-child(3) .stage-stat-icon,
.stage-stat:nth-child(4) .stage-stat-icon {
    color: #C01048;
}

/* ─── Guest auth ─── */
.influencer-studio-guest {
    font-family: var(--stage-font);
}

.influencer-studio-guest .studio-guest-bg {
    background: #1E1E2D;
    min-height: 100vh;
    position: relative;
}

.influencer-studio-guest .studio-guest-bg::before {
    display: none;
}

.influencer-studio-guest .btn-primary {
    background: #C01048 !important;
    border: 0 !important;
}

.influencer-studio-guest .form-control-solid:focus {
    border-color: #C01048 !important;
    box-shadow: 0 0 0 0.2rem rgba(192, 16, 72, 0.12) !important;
}

.influencer-studio-guest .link-primary {
    color: #C01048 !important;
}

.studio-login-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-login-card .form .text-center + .text-center,
.studio-login-card .form .d-grid + .text-center {
    margin-top: 0.35rem;
}

.studio-login-card .form .text-center.mt-4 {
    margin-top: 1.25rem !important;
    padding-top: 1rem;
    border-top: 1px solid #EFF2F5;
}

.studio-login-side {
    background: #181821;
    position: relative;
    overflow: hidden;
}

.studio-login-side::before {
    display: none;
}

.studio-login-side .content {
    position: relative;
    z-index: 1;
}

/* ─── Compat: portal utility classes ─── */
.inf-card {
    background: #fff;
    border: 1px solid rgba(10, 10, 10, 0.06);
    border-radius: var(--stage-radius);
    padding: 1.5rem;
    box-shadow: 0 12px 40px -28px rgba(10, 10, 10, 0.3);
    margin-bottom: 1.25rem;
}

.inf-hero-card {
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.1), rgba(249, 115, 22, 0.08));
    border: 1px solid rgba(219, 39, 119, 0.2);
    border-radius: var(--stage-radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.inf-hero-card.danger {
    background: linear-gradient(135deg, rgba(241, 65, 108, 0.1), rgba(249, 115, 22, 0.05));
    border-color: rgba(241, 65, 108, 0.25);
}

.inf-hero-card.success {
    background: linear-gradient(135deg, rgba(80, 205, 137, 0.12), rgba(250, 204, 21, 0.08));
    border-color: rgba(80, 205, 137, 0.3);
}

.inf-hero-card h2 {
    font-weight: 800;
    color: #0A0A0A;
    margin-bottom: 0.5rem;
}

.inf-hero-card p { color: #78716C; margin: 0; }

.inf-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.inf-stat {
    background: #fff;
    border: 1px solid rgba(10, 10, 10, 0.06);
    border-radius: var(--stage-radius);
    padding: 1.25rem;
    box-shadow: 0 12px 40px -28px rgba(10, 10, 10, 0.25);
}

.inf-stat span {
    display: block;
    color: #A8A29E;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.inf-stat strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0A0A0A;
}

.inf-form label {
    display: block;
    font-weight: 600;
    color: #44403C;
    margin-bottom: 0.35rem;
    margin-top: 0.75rem;
}

.inf-input,
.inf-select,
.inf-textarea,
.inf-form .form-control,
.inf-form .form-select {
    display: block;
    width: 100%;
    padding: 0.775rem 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #0A0A0A;
    background-color: #F5F5F4;
    border: 1px solid #F5F5F4;
    border-radius: 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.inf-textarea { min-height: 100px; resize: vertical; }

.inf-input:focus,
.inf-select:focus,
.inf-textarea:focus {
    outline: 0;
    background-color: #fff;
    border-color: #DB2777;
    box-shadow: 0 0 0 0.25rem rgba(219, 39, 119, 0.15);
}

.inf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
}

.inf-btn-primary {
    background: #C01048;
    color: #fff !important;
}

.inf-btn-primary:hover {
    background: #9F1239;
    color: #fff !important;
}

.inf-btn-ghost {
    background: #F5F5F4;
    color: #44403C !important;
}

.inf-btn-ghost:hover { background: #E7E5E4; }

.inf-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    background: #FDF2F8;
    color: #BE185D;
    font-size: 0.85rem;
    font-weight: 600;
}

.inf-pill.warn {
    background: #FEF3C7;
    color: #B45309;
}

.inf-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.inf-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px dashed #E7E5E4;
    color: inherit;
    text-decoration: none;
}

.inf-list-row:last-child { border-bottom: 0; }
.inf-list-row.linkish:hover { color: #DB2777; }

.inf-avatar {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    object-fit: cover;
    border: 2px solid #DB2777;
}

.inf-avatar.placeholder {
    display: grid;
    place-items: center;
    background: #FDF2F8;
    color: #BE185D;
    font-weight: 800;
    font-size: 1.4rem;
}

.inf-note {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #FFF1F2;
    color: #E11D48;
    font-size: 0.92rem;
}

.inf-link { color: #DB2777; text-decoration: none; font-weight: 600; }
.inf-link:hover { text-decoration: underline; }

.inf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.inf-grid-2-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
    align-items: start;
}

.inf-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.inf-meta-grid span {
    display: block;
    color: #A8A29E;
    font-size: 0.85rem;
    font-weight: 600;
}

.inf-meta-grid strong {
    font-size: 0.98rem;
    color: #0A0A0A;
}

.inf-prose {
    color: #44403C;
    line-height: 1.7;
    white-space: pre-wrap;
}

.inf-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.inf-project-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(10, 10, 10, 0.06);
    border-radius: var(--stage-radius);
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 40px -28px rgba(10, 10, 10, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.inf-project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(219, 39, 119, 0.4);
    box-shadow: 0 16px 40px -20px rgba(219, 39, 119, 0.3);
    color: inherit;
}

.inf-project-card h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0A0A0A;
}

.inf-project-card p {
    color: #78716C;
    font-size: 0.92rem;
    min-height: 3.2rem;
}

.inf-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inf-project-footer {
    display: flex;
    justify-content: space-between;
    color: #57534E;
    font-size: 0.9rem;
    font-weight: 600;
}

.inf-steps {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    padding-bottom: 0.25rem;
}

.inf-step {
    min-width: 140px;
    padding: 0.85rem;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid rgba(10, 10, 10, 0.06);
    color: #78716C;
    text-decoration: none;
    box-shadow: 0 8px 24px -20px rgba(10, 10, 10, 0.2);
}

.inf-step.active {
    color: #0A0A0A;
    border-color: rgba(219, 39, 119, 0.4);
    background: #FDF2F8;
}

.inf-step.done {
    color: #0A0A0A;
    border-color: rgba(250, 204, 21, 0.55);
    background: #FEF9C3;
}

.inf-skills-grid { display: grid; gap: 1.25rem; }
.inf-skill-group h4 { margin-bottom: 0.75rem; font-weight: 800; }
.inf-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
    color: #78716C;
}
.inf-check span { flex: 1; color: #44403C; font-weight: 600; }
.inf-select.sm { max-width: 70px; padding: 0.35rem 0.5rem; }

/* ─── Skills picker ─── */
.skp { display: grid; gap: 1.25rem; }
.skp-intro-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    background: #C01048;
    color: #fff;
    font-size: 0.95rem;
    flex: 0 0 auto;
}
.skp-toolbar { display: grid; gap: 0.85rem; }
.skp-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #FFFCF8;
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 0.95rem;
    padding: 0.7rem 0.95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.skp-search:focus-within {
    border-color: rgba(219, 39, 119, 0.45);
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.1);
}
.skp-search-icon { color: #A8A29E; display: inline-flex; }
.skp-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-family: inherit;
    font-size: 0.98rem;
    color: #0A0A0A;
}
.skp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.skp-filter {
    border: 1px solid rgba(10, 10, 10, 0.08);
    background: #FFFCF8;
    color: #57534E;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.skp-filter:hover { transform: translateY(-1px); border-color: rgba(219, 39, 119, 0.3); }
.skp-filter.is-active {
    background: #0A0A0A;
    border-color: #0A0A0A;
    color: #FFFCF8;
}
.skp-filter-count {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 800;
}
.skp-selected {
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(219, 39, 119, 0.08), transparent 55%),
        linear-gradient(180deg, #FFFCF8, #F7F4F0);
    border: 1px solid rgba(10, 10, 10, 0.07);
    border-radius: 1.1rem;
    padding: 1rem 1.1rem 1.15rem;
}
.skp-selected-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.skp-selected-head strong { font-size: 1.02rem; color: #0A0A0A; }
.skp-hint { color: #78716C; font-size: 0.84rem; margin-top: 0.15rem; }
.skp-count {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    background: #0A0A0A;
    color: #FFFCF8;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 800;
    font-size: 0.85rem;
    white-space: nowrap;
}
.skp-count b { color: #FACC15; font-size: 1.05rem; }
.skp-progress {
    height: 0.35rem;
    background: rgba(10, 10, 10, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}
.skp-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #C01048;
    transition: width .25s ease;
}
.skp-progress span.is-ready {
    background: #16A34A;
}
.skp-selected-list {
    display: grid;
    gap: 0.65rem;
}
.skp-empty {
    margin: 0;
    color: #A8A29E;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.75rem 0.25rem;
}
.skp-item {
    background: #fff;
    border: 1px solid rgba(10, 10, 10, 0.06);
    border-radius: 0.95rem;
    padding: 0.75rem 0.85rem;
    animation: skp-in .22s ease;
}
@keyframes skp-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}
.skp-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}
.skp-item-name { color: #0A0A0A; font-size: 0.95rem; }
.skp-item-remove {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    border: 0;
    background: #F5F5F4;
    color: #78716C;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.skp-item-remove:hover { background: #FFE4E6; color: #E11D48; }
.skp-levels {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
}
.skp-level {
    border: 1px solid rgba(10, 10, 10, 0.08);
    background: #FAFAF9;
    border-radius: 0.65rem;
    padding: 0.35rem 0.2rem;
    cursor: pointer;
    color: #78716C;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.skp-level-num {
    display: block;
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1.1;
}
.skp-level-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.skp-level.is-active {
    background: #0A0A0A;
    border-color: #0A0A0A;
    color: #FFFCF8;
}
.skp-level.is-active .skp-level-num { color: #FACC15; }
.skp-catalog { display: grid; gap: 1.15rem; }
.skp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}
.skp-section-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0A0A0A;
}
.skp-section-head span {
    color: #A8A29E;
    font-size: 0.78rem;
    font-weight: 700;
}
.skp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(10, 10, 10, 0.1);
    background: #FFFCF8;
    color: #44403C;
    border-radius: 999px;
    padding: 0.5rem 0.85rem 0.5rem 0.55rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .15s ease, box-shadow .18s ease;
}
.skp-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(219, 39, 119, 0.35);
    box-shadow: 0 8px 20px -16px rgba(219, 39, 119, 0.55);
}
.skp-chip-plus {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #F5F5F4;
    color: #78716C;
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 800;
}
.skp-chip.is-on {
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.12), rgba(249, 115, 22, 0.12));
    border-color: rgba(219, 39, 119, 0.45);
    color: #9D174D;
}
.skp-chip.is-on .skp-chip-plus {
    background: #C01048;
    color: #fff;
    font-size: 0;
}
.skp-chip.is-on .skp-chip-plus::before {
    content: "✓";
    font-size: 0.72rem;
    font-weight: 800;
}
.skp-no-results {
    text-align: center;
    color: #A8A29E;
    padding: 1.5rem 0;
    margin: 0;
}
.skp-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(10, 10, 10, 0.08);
}
.skp-footer-hint {
    margin: 0;
    color: #78716C;
    font-size: 0.88rem;
    font-weight: 600;
}
.skp-footer-hint.is-ready { color: #15803D; }
.skp-footer .inf-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .skp-levels { gap: 0.25rem; }
    .skp-level-label { font-size: 0.55rem; }
    .skp-footer { flex-direction: column; align-items: stretch; }
    .skp-footer .inf-btn { width: 100%; }
}


.inf-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.85rem;
    margin-bottom: 1rem;
}
.inf-alert.success { background: #ECFDF5; color: #059669; }
.inf-alert.error { background: #FFF1F2; color: #E11D48; }

/* Scrolltop accent */
body.influencer-studio .scrolltop {
    background: #C01048 !important;
}

@media (max-width: 992px) {
    .inf-stats { grid-template-columns: 1fr 1fr; }
    .inf-grid-2, .inf-grid-2-top, .inf-project-grid, .inf-meta-grid { grid-template-columns: 1fr; }
    .stage-hero { padding: 1.5rem; }
}

/* ??? Phone-first auth (fast + responsive) ??? */
.phone-auth-card { max-width: 920px; }
.phone-auth-steps {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.phone-auth-steps span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #71717A;
    background: #F4F4F6;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}
.phone-auth-steps span.is-active {
    color: #6D28D9;
    background: #F5F3FF;
}
.phone-input-wrap {
    display: flex;
    align-items: stretch;
    border-radius: 0.475rem;
    overflow: hidden;
    background: #F9F9F9;
    border: 1px solid #E4E6EF;
}
.phone-input-wrap:focus-within {
    border-color: #6D28D9;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}
.phone-prefix {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.85rem;
    font-weight: 700;
    color: #52525B;
    background: #EEEEF2;
    white-space: nowrap;
}
.phone-flag {
    font-size: 1.05rem;
    line-height: 1;
}
.phone-input-wrap .phone-input {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
.pin-input {
    letter-spacing: 0.35em;
    font-weight: 700;
    font-size: 1.15rem;
}
@media (max-width: 576px) {
    .phone-auth-card .p-8 { padding: 1.5rem !important; }
    .pin-input { font-size: 1rem; letter-spacing: 0.25em; }
}

/* ═══════════════════════════════════════════
   Client Projects Market — editorial / decorative
   ═══════════════════════════════════════════ */
.market-stage {
    --market-ink: #1A1523;
    --market-rose: #C01048;
    --market-cream: #FFF8F3;
    --market-line: rgba(26, 21, 35, 0.1);
    --market-display: 'Amiri', 'Times New Roman', serif;
    --market-kufi: 'Reem Kufi', Cairo, sans-serif;
}

.market-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1rem;
    padding: 2.25rem 2rem 2rem;
    margin-bottom: 1.75rem;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(192, 16, 72, 0.1), transparent 55%),
        linear-gradient(165deg, #1A1523 0%, #2A2035 100%);
    color: #FFF8F3;
    border: 1px solid rgba(255, 248, 243, 0.08);
}

.market-hero-ornament {
    position: absolute;
    inset: 0.85rem;
    border: 1px solid rgba(255, 248, 243, 0.12);
    border-radius: 0.75rem;
    pointer-events: none;
    z-index: 0;
}

.market-hero-ornament::before,
.market-hero-ornament::after {
    content: '';
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid rgba(253, 164, 175, 0.55);
}

.market-hero-ornament::before {
    top: -1px;
    inset-inline-start: -1px;
    border-inline-end: 0;
    border-bottom: 0;
}

.market-hero-ornament::after {
    bottom: -1px;
    inset-inline-end: -1px;
    border-inline-start: 0;
    border-top: 0;
}

.market-hero > *:not(.market-hero-ornament) {
    position: relative;
    z-index: 1;
}

.market-kicker {
    font-family: var(--market-kufi);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FDA4AF;
    margin: 0 0 0.75rem;
}

.market-display {
    font-family: var(--market-display);
    font-weight: 700;
    font-size: clamp(1.85rem, 3.4vw, 2.65rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.85rem;
    color: inherit;
}

.market-lede {
    max-width: 38rem;
    margin: 0 0 1.5rem;
    font-size: 1.02rem;
    line-height: 1.85;
    color: rgba(255, 248, 243, 0.72);
    font-weight: 500;
}

.market-search {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 34rem;
}

.market-search input {
    flex: 1 1 220px;
    min-width: 0;
    border: 1px solid rgba(255, 248, 243, 0.18);
    background: rgba(255, 248, 243, 0.06);
    color: #FFF8F3;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    outline: 0;
}

.market-search input::placeholder {
    color: rgba(255, 248, 243, 0.42);
}

.market-search input:focus {
    border-color: #FDA4AF;
    background: rgba(255, 248, 243, 0.1);
}

.market-search button {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    background: #C01048;
    color: #fff;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease;
}

.market-search button:hover { background: #9F1239; }

.market-gate {
    margin-top: 1.25rem;
    padding: 0.95rem 1.15rem;
    border-radius: 0.75rem;
    background: rgba(253, 164, 175, 0.12);
    border: 1px dashed rgba(253, 164, 175, 0.45);
    display: grid;
    gap: 0.25rem;
    max-width: 36rem;
}

.market-gate strong {
    font-family: var(--market-kufi);
    font-size: 0.95rem;
    color: #FECDD3;
}

.market-gate span {
    color: rgba(255, 248, 243, 0.7);
    font-size: 0.88rem;
    line-height: 1.6;
}

.market-gate a {
    color: #FECDD3;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    width: fit-content;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.market-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.35rem 1.3rem 1.2rem;
    background: #fff;
    border: 1px solid var(--market-line);
    border-radius: 1rem;
    text-decoration: none !important;
    color: inherit;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 12px 30px -24px rgba(26, 21, 35, 0.35);
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, #C01048, #FDA4AF 55%, transparent);
    opacity: 0.85;
}

.market-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 16, 72, 0.28);
    box-shadow: 0 22px 40px -24px rgba(192, 16, 72, 0.35);
    color: inherit;
}

.market-card.is-featured {
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(192, 16, 72, 0.06), transparent 50%),
        #fff;
}

.market-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.market-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #FDF2F8;
    color: #9F1239;
    font-size: 0.72rem;
    font-weight: 700;
}

.market-code {
    font-size: 0.72rem;
    font-weight: 700;
    color: #A1A5B7;
    letter-spacing: 0.04em;
}

.market-category {
    font-family: var(--market-kufi);
    font-size: 0.78rem;
    color: #C01048;
    margin-bottom: 0.35rem;
}

.market-card-title {
    font-family: var(--market-display);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--market-ink);
    margin: 0 0 0.65rem;
}

.market-card-excerpt {
    color: #5E6278;
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0 0 1.15rem;
    flex: 1;
}

.market-card-meta {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-top: 1px dashed var(--market-line);
    border-bottom: 1px dashed var(--market-line);
    margin-bottom: 0.9rem;
}

.market-card-meta span {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #A1A5B7;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.market-card-meta strong {
    font-size: 0.95rem;
    color: var(--market-ink);
    font-weight: 800;
}

.market-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.market-client {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7E8299;
}

.market-cta {
    font-family: var(--market-kufi);
    font-size: 0.82rem;
    font-weight: 600;
    color: #C01048;
}

.market-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #fff;
    border: 1px dashed var(--market-line);
    border-radius: 1rem;
    color: #7E8299;
}

.market-empty .market-display {
    color: var(--market-ink);
    margin-bottom: 0.5rem;
}

.market-pagination { margin-top: 1.75rem; }

.brief-stage { display: grid; gap: 1.5rem; }

.brief-masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1rem;
    padding: 2rem 1.75rem 1.75rem;
    background:
        radial-gradient(ellipse 55% 70% at 0% 0%, rgba(192, 16, 72, 0.12), transparent 55%),
        linear-gradient(160deg, #FFF8F3, #fff 55%);
    border: 1px solid rgba(192, 16, 72, 0.12);
}

.brief-masthead-ornament {
    position: absolute;
    inset: 0.7rem;
    border: 1px solid rgba(192, 16, 72, 0.1);
    border-radius: 0.7rem;
    pointer-events: none;
}

.brief-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}

.brief-tag {
    display: inline-flex;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #F5F8FA;
    color: #5E6278;
    font-size: 0.72rem;
    font-weight: 700;
}

.brief-tag.is-hot {
    background: #FFF1F2;
    color: #BE123C;
}

.brief-code {
    margin-inline-start: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: #A1A5B7;
}

.brief-display {
    font-family: 'Amiri', 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    color: #1A1523;
    margin: 0 0 0.65rem;
    position: relative;
    z-index: 1;
}

.brief-byline {
    margin: 0;
    color: #7E8299;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.brief-byline strong { color: #3F4254; }

.brief-layout {
    display: grid;
    grid-template-columns: 1.45fr 0.9fr;
    gap: 1.25rem;
    align-items: start;
}

.brief-panel,
.brief-offer-card {
    background: #fff;
    border: 1px solid #EFF2F5;
    border-radius: 1rem;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.02);
}

.brief-section-title {
    font-family: 'Reem Kufi', Cairo, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1A1523;
    margin: 0 0 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #EFF2F5;
}

.brief-prose {
    color: #3F4254;
    line-height: 1.9;
    font-size: 1.02rem;
    white-space: pre-wrap;
}

.brief-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.brief-facts > div {
    padding: 0.85rem 0.95rem;
    border-radius: 0.75rem;
    background: #FFF8F3;
    border: 1px solid rgba(192, 16, 72, 0.08);
}

.brief-facts span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #A1A5B7;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.brief-facts strong {
    color: #1A1523;
    font-size: 0.95rem;
}

.brief-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.brief-tags span {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #FDF2F8;
    color: #9F1239;
    font-size: 0.78rem;
    font-weight: 700;
}

.brief-side-title {
    font-family: 'Amiri', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1A1523;
    margin: 0 0 0.5rem;
}

.brief-side-hint {
    color: #7E8299;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}

.brief-offer-amount {
    font-family: 'Amiri', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #C01048;
    margin: 0 0 0.35rem;
}

.brief-offer-card.is-locked {
    background: linear-gradient(180deg, #FFF8F3, #fff);
    border-style: dashed;
    border-color: rgba(192, 16, 72, 0.25);
}

.brief-offer-form label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    color: #5E6278;
    margin: 0.75rem 0 0.35rem;
}

.brief-offer-form input,
.brief-offer-form textarea {
    width: 100%;
    border: 1px solid #E4E6EF;
    background: #F9F9F9;
    border-radius: 0.55rem;
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1A1523;
}

.brief-offer-form input:focus,
.brief-offer-form textarea:focus {
    outline: 0;
    border-color: #C01048;
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(192, 16, 72, 0.1);
}

.brief-offer-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.brief-offer-form .btn { margin-top: 0.35rem; }

@media (max-width: 992px) {
    .market-grid { grid-template-columns: 1fr 1fr; }
    .brief-layout { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .market-grid { grid-template-columns: 1fr; }
    .market-hero { padding: 1.6rem 1.25rem; }
    .brief-facts,
    .brief-offer-dates { grid-template-columns: 1fr; }
    .market-card-meta { grid-template-columns: 1fr 1fr; }
}
