/* ═══ BRAND PROFILE PAGE — Redesigned v2 ══════════════════ */
@keyframes bp-fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes bp-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

@keyframes bp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* Org Switcher */
#bp-org-switcher {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: .85rem;
    padding: .75rem 1rem;
}

.bp-org-switcher-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: #EA580C;
    margin-bottom: .4rem;
    letter-spacing: .3px;
}

.bp-org-select {
    width: 100%;
    background: #fff;
    border: 1px solid #FED7AA;
    border-radius: .5rem;
    color: #1E293B;
    font-size: .82rem;
    font-weight: 600;
    padding: .4rem .65rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.bp-org-select:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.bp-org-select option {
    background: #fff;
    color: #1E293B;
}

/* Layout */
.bp-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.25rem;
    animation: bp-fadeUp .35s ease;
}

@media (max-width: 1024px) {
    .bp-layout { grid-template-columns: 1fr; }
}

/* Sidebar (Left Column) */
.bp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Profile Card (Sidebar) */
.bp-profile-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 1.25rem;
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bp-profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(249,115,22,.25) 0%, transparent 70%);
    pointer-events: none;
}

.bp-avatar {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #F97316, #EA580C);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(249,115,22,.3);
    position: relative;
    z-index: 1;
}

.bp-profile-card h1 {
    font-weight: 800;
    font-size: 1.35rem;
    margin: 0 0 .35rem;
    color: #fff;
}

.bp-profile-card .bp-meta {
    font-size: .8rem;
    color: rgba(255,255,255,.65);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    margin-bottom: 1.1rem;
}

.bp-meta-item {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.bp-profile-actions {
    display: flex;
    gap: .5rem;
}

.bp-btn {
    flex: 1;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: .65rem;
    padding: .55rem .8rem;
    font-size: .78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    transition: all .18s;
    text-decoration: none;
    cursor: pointer;
}

.bp-btn:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.25);
    color: #fff;
}

.bp-btn-primary {
    background: #F97316;
    border-color: #F97316;
}

.bp-btn-primary:hover {
    background: #EA580C;
    border-color: #EA580C;
}

/* Stats Card (Sidebar) */
.bp-stats-card {
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-radius: 1.1rem;
    overflow: hidden;
}

.bp-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.bp-stat {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.bp-stat:nth-child(1) { border-right: 1px solid #F3F4F6; border-bottom: 1px solid #F3F4F6; }
.bp-stat:nth-child(2) { border-bottom: 1px solid #F3F4F6; }
.bp-stat:nth-child(3) { border-right: 1px solid #F3F4F6; }

.bp-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: .5rem;
}

.bp-stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111827;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.bp-stat-lbl {
    font-size: .7rem;
    color: #6B7280;
    font-weight: 600;
    margin-top: .25rem;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Account Status Card (Sidebar) */
.bp-status-card {
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-radius: 1.1rem;
    overflow: hidden;
}

.bp-status-head {
    padding: .75rem 1rem;
    border-bottom: 1.5px solid #F3F4F6;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.bp-status-head h3 {
    font-weight: 800;
    font-size: .82rem;
    color: #111827;
    margin: 0;
}

.bp-status-body {
    padding: 1rem;
}

.bp-checklist-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem 0;
    border-bottom: 1px solid #F9FAFB;
}

.bp-checklist-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bp-checklist-item:first-child {
    padding-top: 0;
}

.bp-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .75rem;
}

.bp-check-icon.done {
    background: #D1FAE5;
    color: #059669;
}

.bp-check-icon.pending {
    background: #FEF3C7;
    color: #D97706;
}

.bp-check-text {
    flex: 1;
    font-size: .82rem;
    color: #374151;
    font-weight: 500;
}

.bp-check-text.done {
    color: #9CA3AF;
    text-decoration: line-through;
}

.bp-check-action {
    background: #F97316;
    color: #fff;
    border: none;
    border-radius: .45rem;
    padding: .3rem .65rem;
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    text-decoration: none;
}

.bp-check-action:hover {
    background: #EA580C;
    color: #fff;
}

.bp-status-alert {
    margin-top: .75rem;
    background: #FEF9C3;
    border: 1px solid #FDE68A;
    border-radius: .6rem;
    padding: .6rem .75rem;
    font-size: .78rem;
    color: #92400E;
    display: flex;
    align-items: flex-start;
    gap: .4rem;
}

.bp-status-alert i {
    flex-shrink: 0;
    margin-top: .1rem;
}

/* Main Content (Right Column) */
.bp-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Section Card */
.bp-section {
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-radius: 1.1rem;
    overflow: hidden;
}

.bp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.15rem;
    border-bottom: 1.5px solid #F3F4F6;
}

.bp-section-head h2 {
    font-weight: 800;
    font-size: .92rem;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.bp-section-badge {
    background: #F3F4F6;
    color: #6B7280;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 99px;
}

.bp-section-body {
    padding: 1rem 1.15rem;
}

/* Campaign Grid */
.bp-camp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .85rem;
}

.bp-camp-card {
    background: #FAFAFA;
    border: 1.5px solid #E5E7EB;
    border-radius: .9rem;
    overflow: hidden;
    transition: all .2s;
    text-decoration: none;
    display: block;
}

.bp-camp-card:hover {
    border-color: #FDBA74;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(249,115,22,.12);
}

.bp-camp-banner {
    aspect-ratio: 2 / 1;
    background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.bp-camp-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-camp-status {
    position: absolute;
    top: .5rem;
    right: .5rem;
    font-size: .65rem;
    font-weight: 700;
    padding: .18rem .5rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.bp-camp-status.published { background: #D1FAE5; color: #059669; }
.bp-camp-status.draft { background: #FEF3C7; color: #D97706; }
.bp-camp-status.closed { background: #E5E7EB; color: #6B7280; }
.bp-camp-status.paused { background: #EDE9FE; color: #7C3AED; }

.bp-camp-content {
    padding: .85rem;
}

.bp-camp-title {
    font-weight: 700;
    font-size: .88rem;
    color: #111827;
    margin: 0 0 .5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-camp-stats {
    display: flex;
    gap: .75rem;
}

.bp-camp-stat {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    color: #6B7280;
}

.bp-camp-stat i {
    font-size: .8rem;
}

/* Empty State */
.bp-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.bp-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .9rem;
    font-size: 1.5rem;
    color: #9CA3AF;
}

.bp-empty h4 {
    font-weight: 800;
    font-size: 1rem;
    color: #374151;
    margin: 0 0 .35rem;
}

.bp-empty p {
    font-size: .82rem;
    color: #9CA3AF;
    margin: 0 0 1rem;
}

.bp-empty-btn {
    background: #F97316;
    color: #fff;
    border: none;
    border-radius: .6rem;
    padding: .55rem 1.1rem;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: all .15s;
}

.bp-empty-btn:hover {
    background: #EA580C;
    color: #fff;
}

/* Loading */
.bp-loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.bp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #F3F4F6;
    border-top-color: #F97316;
    border-radius: 50%;
    animation: bp-spin .8s linear infinite;
}

@keyframes bp-spin {
    to { transform: rotate(360deg); }
}

.bp-loading-wrap p {
    margin: 1rem 0 0;
    font-size: .85rem;
    color: #9CA3AF;
}

/* Error */
.bp-error {
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.bp-error i {
    font-size: 2rem;
    color: #EF4444;
    margin-bottom: .5rem;
}

.bp-error p {
    font-size: .88rem;
    color: #991B1B;
    margin: 0;
}

/* Modal Redesign */
.bp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bp-modal-backdrop.open {
    display: flex;
}

.bp-modal {
    background: #fff;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px rgba(0,0,0,.25);
    animation: bp-fadeUp .25s ease;
    overflow: hidden;
}

.bp-modal-head {
    padding: 1.1rem 1.25rem;
    border-bottom: 1.5px solid #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bp-modal-head h3 {
    font-weight: 800;
    font-size: 1rem;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.bp-modal-close {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    border: none;
    background: #F3F4F6;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.bp-modal-close:hover {
    background: #E5E7EB;
    color: #374151;
}

.bp-modal-body {
    padding: 1.25rem;
}

.bp-form-group {
    margin-bottom: 1rem;
}

.bp-form-group:last-child {
    margin-bottom: 0;
}

.bp-label {
    display: block;
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6B7280;
    margin-bottom: .4rem;
}

.bp-input {
    width: 100%;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: .65rem;
    padding: .65rem .9rem;
    font-size: .88rem;
    font-family: inherit;
    color: #111827;
    transition: all .15s;
}

.bp-input:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.1);
    background: #fff;
}

.bp-modal-foot {
    padding: 1rem 1.25rem;
    border-top: 1.5px solid #F3F4F6;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

.bp-modal-btn {
    padding: .55rem 1.1rem;
    border-radius: .6rem;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1.5px solid transparent;
}

.bp-modal-btn-secondary {
    background: #fff;
    border-color: #E5E7EB;
    color: #374151;
}

.bp-modal-btn-secondary:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.bp-modal-btn-primary {
    background: #F97316;
    color: #fff;
}

.bp-modal-btn-primary:hover {
    background: #EA580C;
}

.bp-modal-btn-primary:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

/* Quick Actions */
.bp-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
}

.bp-quick-action {
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: .75rem;
    padding: .9rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all .18s;
}

.bp-quick-action:hover {
    border-color: #FDBA74;
    background: #FFF7ED;
}

.bp-quick-action i {
    font-size: 1.25rem;
    color: #F97316;
    margin-bottom: .4rem;
}

.bp-quick-action span {
    font-size: .75rem;
    font-weight: 700;
    color: #374151;
}

/* Responsive */
@media (max-width: 640px) {
    .bp-camp-grid {
        grid-template-columns: 1fr;
    }

    .bp-quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .bp-profile-actions {
        flex-direction: column;
    }
}
