﻿/*@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

/* ── CSS CUSTOM PROPERTIES ────────────────────────────────────── */
:root {
    /* Brand */
    --brand: #5f065e;
    --brand-dark: #5a1d54;
    --brand-light: #8b1a8a;
    --brand-pale: #f9f0f9;
    --brand-glow: rgba(95, 6, 94, 0.18);
    --brand-tint-8: rgba(90, 29, 84, 0.08);
    --brand-tint-10: rgba(90, 29, 84, 0.10);
    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.10);
    --sidebar-primary: #c084fc;
    --sidebar-transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Semantic badge colors */
    --badge-warning-bg: #fdf0c6b5;
    --badge-warning-text: #edb201;
    --badge-success-bg: #d7e7e0ba;
    --badge-success-text: #15803d;
    --badge-danger-bg: #fce4e6cc;
    --badge-danger-text: #dc3545;
    --badge-primary-bg: #ddeafa;
    --badge-primary-text: #1447E8;
    /* Surfaces */
    --card-radius: 12px;
    --body-bg: #f4f4f8;
    --border-line: #e5e7eb;
}

/* ── BASE ── */
body {
    background: var(--body-bg);
    font-family: 'inter', sans-serif !important;
}

a {
    color: var(--brand-dark);
}

    a:hover {
        color: var(--brand-dark);
    }

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ── BRAND COLOR UTILITY ───*/
.brand-text,
.purple-text {
    color: var(--brand-dark) !important;
}

.brand-bg {
    background-color: var(--brand) !important;
}

/* ── ICON CIRCLE ────── */
/*
   Small rounded icon container used in stat cards and list items.
   Replaces: .icon-circle (dashboard inline styles)
*/
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-tint-8);
    flex-shrink: 0;
}

.icon-circle-sm {
    width: 40px;
    height: 40px;
}

/* Square variant used in event list rows */
.icon-square {
    border-radius: 10px;
    background-color: var(--brand-tint-10);
}

/* ── AVATAR CIRCLE ─────── */
/*
   Replaces: .avatar-circle (site.css) + .Avatar-bg (HostDetails inline)
   Both were nearly identical – unified here.
*/
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, #81007f, #5f065e);
}
.icon-bold {
    -webkit-text-stroke: 0.5px currentColor;
}
.avatar-cornered {
    width: 36px;
    height: 36px;
    border-radius: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, #81007f, #5f065e);
}
/* Square avatar variant (host detail page) */
.avatar-square {
    border-radius: 8px;
    background: linear-gradient(135deg, #81007f, #5f065e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ── STAT / FEATURE CARDS ────── */
.stat-card {
    border-radius: var(--card-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 14px !important;
}

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    }

/* ── BADGES ───── */
/*
   Semantic badge classes used across the whole project.
   Replaces scattered badge inline styles.
*/
.badge-warning,
.Warning-bg {
    background-color: var(--badge-warning-bg) !important;
    color: var(--badge-warning-text) !important;
}

.badge-success,
.Success-bg {
    background-color: var(--badge-success-bg) !important;
    color: var(--badge-success-text) !important;
}

.badge-danger,
.Danger-bg {
    background-color: var(--badge-danger-bg) !important;
    color: var(--badge-danger-text) !important;
}

.badge-primary,
.primary {
    background-color: var(--badge-primary-bg) !important;
    color: var(--badge-primary-text) !important;
}

/* Ticket-sale badge (Payments page) */
.badge-ticket {
    background-color: #e8dff7db;
    color: #961aab;
    border-radius: 4px;
}

/* Broadcast top-up badge (Payments page) */
.badge-topup {
    background-color: #fbe3d2;
    color: #f97316;
    border-radius: 4px;
}

/* ── REPORT STATUS TEXT ───── */
.report-status-open {
    color: var(--badge-primary-text);
    font-size: 13px;
}

.report-status-inprogress {
    color: var(--badge-warning-text);
    font-weight: 600;
    font-size: 0.75rem;
}

/* ── ACTION CELL (tables) ──── */
.action-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

    .action-cell .form-check {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .action-cell .form-check-input {
        margin: 0;
        cursor: pointer;
        flex-shrink: 0;
    }

    .action-cell .bi {
        cursor: pointer;
        font-size: 1rem;
        line-height: 1;
    }

/* ── TABLE HELPERS ──── */
.table thead th {
    font-size: 13.2px;
    white-space: nowrap;
}

/* ── BUTTONS ──── */
.btn-brand {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

    .btn-brand:hover {
        background: var(--brand-light);
        color: #fff;
        box-shadow: 0 6px 20px var(--brand-glow);
        transform: translateY(-1px);
    }

/* Outline brand button */
.btn-brand-outline {
    background: transparent;
    color: var(--brand-dark);
    border: 1.5px solid var(--brand-dark);
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

    .btn-brand-outline:hover {
        background: var(--brand-pale);
        color: var(--brand);
    }

/* Danger/block button */
.btn-block {
    background: #fae8e969;
    color: #dc3545;
    border: 1px solid #dc3545;
    font-weight: 600;
    transition: background 0.2s;
}

    .btn-block:hover {
        background: #fde8e8;
        color: #dc3545;
    }
.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: repeating-conic-gradient(#5f065e 0 90deg, #ccc 0 180deg);
    animation: l21 1s infinite linear;
}

@keyframes l21 {
    100% {
        transform: rotate(.5turn);
    }
}
/* Plans: Edit button*/
.btn-plan-edit,
.btn-edit {
    flex: 1;
    border: 1.5px solid var(--brand-dark);
    background: #fff;
    border-radius: 8px;
    padding: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-plan-edit:hover {
        background: var(--brand-pale);
    }
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    min-height: 64px;
    overflow: hidden;
}

.brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

/* Collapsed (default) state — compact icon mark */
.brand-logo-full {
    display: none;
}

.brand-logo-icon {
    display: block;
    max-height: 60px;
    max-width: 58px;
}

/* Expanded state — full wordmark, small and centered, NOT stretched */
/*.sidebar.expanded .sidebar-header {
    justify-content: flex-start;
    padding: 18px 20px;
}*/

.sidebar.expanded .brand-logo-icon {
    display: none;
}

.sidebar.expanded .brand-logo-full {
    display: block;
    max-height: 128px;
    max-width: 197px;
    width: auto;
}

/* Plans: Delete button  */
.btn-plan-delete,
.btn-delete {
    border: 1.5px solid #fee2e2;
    background: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.2s;
}

    .btn-plan-delete:hover {
        background: #fef2f2;
    }

/* Plans: Create plan button*/
.btn-create-plan {
    background: var(--brand-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

    .btn-create-plan:hover {
        background: var(--brand-light);
        color: #fff;
        transform: translateY(0.5px);
    }

/* ── FILTER PILLS (Reports page) ─────────────────────────────── */
/* Replaces .filters + hover inline */
.filter-pill {
    border-radius: 15px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

    .filter-pill:hover,
    .filter-pill.active {
        background-color: var(--brand) !important;
        color: #fff !important;
        border-color: var(--brand) !important;
    }

/* Keep backward compat */
.filters {
    border-radius: 20px;
}

    .filters:hover {
        background-color: var(--brand) !important;
        color: #fff !important;
        border-color: var(--brand) !important;
    }

/* ── REPORT CARD ── */
.report-card {
    cursor: pointer;
    transition: border 0.2s;
}

    .report-card.selected {
        border: 1px solid var(--brand-dark) !important;
    }

/* ── PLAN CARDS ── */
.plan-card {
    border: 1.5px solid #e0e0f0;
    border-radius: 12px;
    padding: 11px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

    .plan-card:hover {
        box-shadow: 0 6px 24px rgba(79, 70, 229, 0.13);
        transform: translateY(-2px);
    }

/* Tier accent tops */
.tier-starter {
    border-top: 3px solid #67b7ff;
}

.tier-basic {
    border-top: 3px solid #4f46e5;
}

.tier-professional {
    border-top: 3px solid #198754;
}

.tier-enterprise {
    border-top: 3px solid #d97706;
}

/* Feature cells inside plan cards */
.feature-cell {
    background: #F8F4FB;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 13px;
}

    .feature-cell i {
        color: var(--brand-dark);
        font-size: 18px;
    }

    .feature-cell .fval {
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--brand-dark);
        display: block;
        line-height: 1.1;
    }

    .feature-cell .flabel {
        font-size: 0.7rem;
        color: #888;
        display: block;
    }

.food-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
}

    .food-row.excluded {
        background: #fafafa;
        color: #aaa;
    }

    .food-row.included {
        background: #f0fdf4;
        color: #15803d;
    }

/* ── PAGINATION ── */
.page-link {
    color: var(--brand-dark);
}

    .page-link:hover {
        color: var(--brand-dark);
    }

.page-item.active .page-link {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}

/* ── EVENT LIST ITEMS ── */
.event-item:hover {
    background-color: #f8f5fa;
    cursor: pointer;
}

/* ── PAGE LAYOUT ─── */
.page-header {
    margin-top: 35px;
}

/* ── INPUT GROUP FOCUS ── */
.input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-radius: 8px;
}

/* SIDEBAR  */
.sidebar {
    width: var(--sidebar-collapsed-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    background: linear-gradient(to top left, #1A0418 0%, #3D1439 30%, #5A1D54 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--sidebar-transition);
}

    .sidebar:not(.expanded) {
        overflow: visible;
    }

    .sidebar::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
    }

    .sidebar > * {
        position: relative;
        z-index: 1;
    }

    .sidebar.expanded {
        width: var(--sidebar-width);
    }

/* Header */
.sidebar-header {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--glass-border);
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.brand-text {
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    transition: opacity 0.4s, width 0.4s;
    pointer-events: none;
}

    .brand-text h6 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 700;
        color: #fff;
    }

    .brand-text small {
        font-size: 0.7rem;
        color: rgba(255,255,255,0.45);
    }

.sidebar.expanded .brand-text {
    opacity: 1;
    width: 150px;
    pointer-events: auto;
}

.sidebar-toggle-btn {
    margin-left: auto;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: background 0.2s;
    text-decoration: none;
}

    .sidebar-toggle-btn:hover {
        background: rgba(255,255,255,0.18);
        color: #fff;
    }

.sidebar:not(.expanded) .sidebar-toggle-btn {
    margin-left: 0;
    width: 100%;
    border-radius: 0;
    background: transparent;
    border: none;
    justify-content: center;
}

/* Menu heading */
.menu-heading {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
    padding: 0 16px;
    margin: 14px 0 6px;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s, max-height 0.3s;
}

.sidebar.expanded .menu-heading {
    opacity: 1;
    max-height: 30px;
}

/* Nav area */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
    padding: 8px 10px;
    scrollbar-width: none;
}

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

/* Nav item wrapper */
.nav-item-wrapper {
    position: relative;
    margin-bottom: 4px;
}

/* Nav link row */
.nav-link-custom {
    height: 35px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.4,0,0.2,1), color 0.3s;
    user-select: none;
}

    .nav-link-custom:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

    .nav-link-custom.active {
        background: rgba(192,132,252,0.18);
        color: #fff;
        border: 1px solid rgba(192,132,252,0.22);
    }

.sidebar:not(.expanded) .nav-link-custom:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

    .sidebar:not(.expanded) .nav-link-custom:hover .nav-icon {
        color: white;/*sidebar icon */
        transform: scale(1.15);
        transition: transform 0.2s ease, color 0.2s ease;
    }

.sidebar.expanded .nav-item-wrapper.active > .nav-link-custom,
.sidebar.expanded .nav-link-custom.active {
    background: #FFFFFF26 !important;
    color: #fff;
   
}

/* Icon */
.nav-icon {
    width: 52px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Label */
.nav-label {
    opacity: 0;
    white-space: nowrap;
    transform: translateX(-10px);
    transition: opacity 0.35s, transform 0.35s;
    font-size: 0.87rem;
    font-weight: 500;
    pointer-events: none;
    flex: 1;
}

.sidebar.expanded .nav-label {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Arrow */
.nav-arrow {
    margin-right: 14px;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.35s cubic-bezier(0.4,0,0.2,1);
    flex-shrink: 0;
}

.sidebar.expanded .nav-arrow {
    opacity: 1;
}

.nav-item-wrapper.active > .nav-link-custom .nav-arrow {
    transform: rotate(90deg);
}

/* Flyout bridge */
.sidebar:not(.expanded) .nav-item-wrapper::after {
    content: '';
    position: fixed;
    left: var(--sidebar-collapsed-width);
    width: 20px;
    height: 54px;
    background: transparent;
    pointer-events: auto;
    z-index: 9998;
    display: none;
}

.sidebar:not(.expanded) .nav-item-wrapper:hover::after {
    display: block;
}

/* Sub-menu: collapsed flyout */
.sidebar:not(.expanded) .sub-menu {
    position: fixed;
    left: calc(var(--sidebar-collapsed-width) + 16px);
    top: auto;
    min-width: 210px;
    background: linear-gradient(to top left, #1A0418 0%, #3D1439 30%, #5A1D54 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 10px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    list-style: none;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transform: translateX(16px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.165,0.84,0.44,1), transform 0.35s cubic-bezier(0.165,0.84,0.44,1), visibility 0.35s;
    pointer-events: none;
}

.sidebar:not(.expanded) .sub-menu {
    transition: none !important;
}

.sub-menu-header {
    padding: 4px 16px 8px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: ghostwhite;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 4px;
    list-style: none;
}

.sub-menu li:not(.sub-menu-header) {
    padding: 9px 18px;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    list-style: none;
    white-space: nowrap;
}

    .sub-menu li:not(.sub-menu-header):hover {
        color: #fff;
        transform: translateX(4px);
    }

/* Sub-menu: expanded accordion */
.sidebar.expanded .sub-menu {
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1) !important;
    padding-left: 52px !important;
}

.sidebar.expanded .nav-item-wrapper.active .sub-menu {
    max-height: 300px;
}

.sidebar.expanded .sub-menu-header {
    display: none;
}

.sidebar.expanded .sub-menu li:not(.sub-menu-header) {
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.83rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    white-space: nowrap;
}

    .sidebar.expanded .sub-menu li:not(.sub-menu-header):hover {
        color: #fff;
        transform: translateX(4px);
    }

/* Sidebar footer */
.sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sidebar-footer-text {
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    transition: opacity 0.4s, width 0.4s;
}

.sidebar.expanded .sidebar-footer-text {
    opacity: 1;
    width: auto;
}

.sidebar-footer-action {
    margin-left: auto;
    color: rgba(255,255,255,0.4);
    opacity: 0;
    text-decoration: none;
    transition: opacity 0.4s, color 0.2s;
}

.sidebar.expanded .sidebar-footer-action {
    opacity: 1;
}

.sidebar-footer-action:hover {
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   TOP NAVBAR
══════════════════════════════════════════════════════════════ */
.top-navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-collapsed-width);
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--border-line);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1030;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.expanded ~ .main-content .top-navbar {
    left: var(--sidebar-width);
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
══════════════════════════════════════════════════════════════ */
.main-content {
    margin-left: var(--sidebar-collapsed-width);
    padding: 1.1rem;
    min-height: 100vh;
    transition: margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.expanded ~ .main-content {
    margin-left: var(--sidebar-width);
}

/* ══════════════════════════════════════════════════════════════
   MOBILE OVERLAY
══════════════════════════════════════════════════════════════ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1035;
}

    .sidebar-overlay.show {
        display: block;
    }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE  ≤ 767px
══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .sidebar {
        width: var(--sidebar-width) !important;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

        .sidebar.show {
            transform: translateX(0);
        }

        /* Force expanded appearance on mobile */
        .sidebar .brand-text {
            opacity: 1 !important;
            width: 150px !important;
            pointer-events: auto !important;
        }

        .sidebar .menu-heading {
            opacity: 1 !important;
            max-height: 30px !important;
        }

        .sidebar .nav-label {
            opacity: 1 !important;
            transform: translateX(0) !important;
            pointer-events: auto !important;
        }

        .sidebar .nav-arrow {
            opacity: 1 !important;
        }

        .sidebar .sidebar-footer-text {
            opacity: 1 !important;
            width: auto !important;
        }

        .sidebar .sidebar-footer-action {
            opacity: 1 !important;
        }

        /* Submenus as accordion on mobile */
        .sidebar .sub-menu {
            position: static !important;
            background: transparent !important;
            backdrop-filter: none !important;
            border: none !important;
            box-shadow: none !important;
            visibility: visible !important;
            opacity: 1 !important;
            transform: none !important;
            pointer-events: auto !important;
            max-height: 0 !important;
            overflow: hidden !important;
            transition: max-height 0.4s ease !important;
            padding-left: 52px !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            padding-right: 0 !important;
        }

        .sidebar .nav-item-wrapper.active .sub-menu {
            max-height: 300px !important;
        }

        .sidebar .sub-menu-header {
            display: none !important;
        }

        .sidebar:not(.expanded) .sidebar-header {
            justify-content: flex-start;
            cursor: default;
        }

        .sidebar:not(.expanded) .sidebar-toggle-btn {
            margin-left: auto;
            width: 30px;
            border-radius: 50%;
            background: rgba(255,255,255,0.08);
            border: 1px solid var(--glass-border);
        }

    .top-navbar {
        left: 0 !important;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   PLANS PAGE
══════════════════════════════════════════════════════════════ */
.plans-wrapper {
    padding-top: 45px;
}

.plans-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

    .plans-top h5 {
        font-weight: 700;
        margin: 0;
    }

    .plans-top p {
        color: #666;
        font-size: 0.83rem;
        margin: 2px 0 0;
    }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* Card header row (title + icon) */
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

    .card-head h6 {
        font-weight: 700;
        font-size: 1rem;
        margin: 0 0 4px;
        color: #1a1a2e;
    }

    .card-head p {
        font-size: 0.75rem;
        color: #666;
        margin: 0;
        line-height: 1.4;
    }

/* Tier icon colors */
.tier-starter .plan-icon {
    color: #67b7ff;
    font-size: 1.4rem;
}

.tier-basic .plan-icon {
    color: #4f46e5;
    font-size: 1.4rem;
}

.tier-professional .plan-icon {
    color: #198754;
    font-size: 1.4rem;
}

.tier-enterprise .plan-icon {
    color: #d97706;
    font-size: 1.4rem;
}

/* Price block */
.plan-price {
    margin: 0;
}

    .plan-price .amount {
        font-size: 1.4rem;
        color: var(--brand-dark);
    }

    .plan-price .period {
        font-size: 16px;
        color: #888;
    }

/* Features 2-column grid inside plan card */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Host count row */
.host-count {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer row (edit + delete buttons) */
.card-footer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* ══════════════════════════════════════════════════════════════
   MISC UTILITIES
══════════════════════════════════════════════════════════════ */
.bg-brand {
    background-color: var(--brand) !important;
}

.text-brand {
    color: var(--brand) !important;
}

.border-brand {
    border-color: var(--brand-dark) !important;
}

/* Shadow hover (generic cards, e.g. Reports page) */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .hover-lift:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    }

/*.sidebar:not(.expanded) .sidebar-toggle-btn {
    display: none;
}*/
/*Badges of ilters tab*/
/* ── Filter Tabs ── */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

    .filter-tab:hover {
        border-color: #5a1d54;
        background: #faf5ff;
    }

    .filter-tab.active {
        background: #5a1d54;
        color: #fff;
    }

    .filter-tab .tab-badge {
        background: rgba(255,255,255,0.25);
        color: #fff;
        border-radius: 999px;
        padding: 1px 8px;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .filter-tab:not(.active) .tab-badge {
        background: #f3f4f6;
        color: #6b7280;
    }

    .filter-tab.active .tab-badge {
        background: rgba(255,255,255,0.28);
        color: #fff;
    }
/* ═══════════════════════════════════════════════════
   AFFILIATE PAGE SCOPED STYLES (.aff-pg- namespace)
   ═══════════════════════════════════════════════════ */
/* ── Stat Cards ── */
.aff-pg-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

    .aff-pg-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    }

.aff-pg-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Filter Tabs ── */
.aff-pg-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.aff-pg-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

    .aff-pg-filter-tab:hover {
        border-color: #5a1d54;
        background: #faf5ff;
    }

    .aff-pg-filter-tab.active {
        background: #5a1d54;
        color: #fff;
        border-color: #5a1d54;
        box-shadow: 0 2px 8px rgba(90, 29, 84, 0.2);
    }

.aff-pg-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    margin-left: 4px;
    line-height: 1;
}

.aff-pg-filter-tab.active .aff-pg-tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ── Table Wrapper & Toolbar ── */
.aff-pg-table-wrapper {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.aff-pg-toolbar {
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.aff-pg-search-input {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 14px 8px 36px;
    font-size: 0.875rem;
    width: 450px;
    max-width: 100%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 12px center;
    transition: border-color 0.2s;
}

    .aff-pg-search-input:focus {
        outline: none;
        border-color: #5a1d54;
        box-shadow: 0 0 0 3px rgba(90, 29, 84, 0.1);
    }

/* ── Table Styling ── */
.aff-pg-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .aff-pg-table th {
        text-align: left;
        padding: 14px 24px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6b7280;
        border-bottom: 1px solid #f3f4f6;
        background: #fafafa;
        white-space: nowrap;
    }

    .aff-pg-table td {
        padding: 16px 24px;
        vertical-align: middle;
        border-bottom: 1px solid #f3f4f6;
        font-size: 0.875rem;
        color: #111827;
    }

    .aff-pg-table tr:last-child td {
        border-bottom: none;
    }

    .aff-pg-table tr:hover td {
        background: #fcfbfd;
    }

/* ── Applicant Cell ── */
.aff-pg-applicant-name {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.aff-pg-applicant-meta {
    font-size: 0.78rem;
    color: #6b7280;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

    .aff-pg-applicant-meta i {
        font-size: 0.7rem;
        opacity: 0.7;
    }

/* ── Status Dots (Applications tab) ── */
.aff-pg-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

    .aff-pg-status-dot::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

.aff-pg-st-approved::before {
    background: #22c55e;
}

.aff-pg-st-approved {
    color: #15803d;
}

.aff-pg-st-pending::before {
    background: #f59e0b;
}

.aff-pg-st-pending {
    color: #b45309;
}

.aff-pg-st-declined::before {
    background: #ef4444;
}

.aff-pg-st-declined {
    color: #dc2626;
}

/* ── Action Buttons ── */
.aff-pg-btn-review {
    background: #5a1d54;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

    .aff-pg-btn-review:hover {
        background: #7f2977;
    }

.aff-pg-text-disabled {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* ── Tab Pane Utility ── */
.aff-pg-tab-pane {
    display: none;
}

    .aff-pg-tab-pane.active {
        display: block;
        animation: affPgFadeIn 0.25s ease;
    }

@keyframes affPgFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Universal Modal ── */
.aff-pg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.aff-pg-modal-container {
    background: #fff;
    width: 600px;
    max-width: 95%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px 32px;
    overflow-y: auto;
    position: relative;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
}

/* ── Review Modal Specifics ── */
.aff-pg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.aff-pg-modal-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.aff-pg-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.aff-pg-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
}

    .aff-pg-close-btn:hover {
        color: #111827;
    }

.aff-pg-applicant-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #f3f4f6;
}

.aff-pg-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.aff-pg-role-badge {
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.aff-pg-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.aff-pg-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aff-pg-contact-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
}

.aff-pg-contact-value {
    font-size: 0.85rem;
    color: #374151;
}

.aff-pg-contact-link {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.aff-pg-toggle-wrapper {
    display: flex;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.aff-pg-toggle-btn {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: #6b7280;
}

.aff-pg-toggle-active {
    background: #dcfce7;
    color: #15803d;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.aff-pg-toggle-inactive {
    background: #fee2e2;
    color: #b91c1c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.aff-pg-config-section {
    margin-bottom: 24px;
    animation: affPgFadeIn 0.3s ease;
}

.aff-pg-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.aff-pg-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.aff-pg-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aff-pg-form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
}

.aff-pg-form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

    .aff-pg-form-control:focus {
        border-color: #5a1d54;
    }

.aff-pg-code-wrapper {
    position: relative;
    display: flex;
}

.aff-pg-code-input {
    background: #f9fafb;
    font-family: monospace;
    font-weight: 600;
    color: #5a1d54;
}

.aff-pg-copy-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
}

.aff-pg-helper-text {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 0;
}

.aff-pg-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
}

.aff-pg-btn-back {
    background: none;
    border: none;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

    .aff-pg-btn-back:hover {
        color: #111827;
    }

.aff-pg-btn-confirm {
    background: #5a1d54;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .aff-pg-btn-confirm:hover {
        background: #4a1745;
    }

/* ══════════ Review Modal → Right-Side Drawer ══════════ */
/* ══════════ Right-Side Drawer Modals ══════════ */
#reviewModal.aff-pg-modal-overlay,
#editTermsModal.aff-pg-modal-overlay,
#shareModal.aff-pg-modal-overlay,
#recordPayoutModal.aff-pg-modal-overlay {
    justify-content: flex-end;
    align-items: stretch;
    backdrop-filter: blur(2px);
}

#reviewModal .aff-pg-modal-container,
#editTermsModal .aff-pg-modal-container,
#shareModal .aff-pg-modal-container,
#recordPayoutModal .aff-pg-modal-container {
    width: 500px;
    max-width: 90vw;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 28px 28px 24px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    animation: aff-pg-drawer-slide-in 0.25s ease-out;
}

@keyframes aff-pg-drawer-slide-in {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* keep footer pinned to the bottom of the drawer regardless of content height */
/* keep footer pinned to the bottom of the drawer regardless of content height */
#reviewModal .aff-pg-modal-footer,
#editTermsModal .d-flex.gap-2.justify-content-end,
#recordPayoutModal .d-flex.gap-2.justify-content-end {
    margin-top: auto;
}

/* ══════════ Approve / Decline → Separate Tabs (not joined) ══════════ */
#reviewModal .aff-pg-toggle-wrapper {
    background: transparent; /* remove the shared gray container */
    padding: 0;
    gap: 10px; /* visible space between the two tabs */
}

#reviewModal .aff-pg-toggle-btn {
    flex: 1;
    border-radius: 10px; /* full rounded corners on each, not shared */
    border: 1.5px solid transparent;
    padding: 12px;
}

    /* Inactive state gets a neutral tab look instead of colored fill */
    #reviewModal .aff-pg-toggle-btn:not(.aff-pg-toggle-active):not(.aff-pg-toggle-inactive) {
        background: #fff;
        border-color: #e5e7eb;
        color: #6b7280;
    }

/* Active "Approve" tab */
#reviewModal .aff-pg-toggle-active {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

/* Active "Decline" tab */
#reviewModal .aff-pg-toggle-inactive {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}

/* ══════════ Active Affiliates Table (unique styling) ══════════ */
.aff-pg-active-table {
    margin-bottom: 0;
}

    .aff-pg-active-table thead th {
        text-align: left;
        padding: 14px 24px;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6b7280;
        background: #fafafa;
        border-bottom: 1px solid #f3f4f6;
        white-space: nowrap;
    }

    .aff-pg-active-table tbody td {
        padding: 16px 24px;
        vertical-align: middle;
        border-bottom: 1px solid #f3f4f6;
        font-size: 0.875rem;
    }

    .aff-pg-active-table tbody tr:last-child td {
        border-bottom: none;
    }

    .aff-pg-active-table tbody tr:hover td {
        background: #fcfbfd;
    }

/* Referral code badge (replaces full link row) */
.aff-pg-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7eff6;
    color: #5a1d54;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ecd9ea;
}

    .aff-pg-code-badge i {
        font-size: 0.75rem;
        color: #9ca3af;
        cursor: pointer;
        transition: color 0.15s;
    }

        .aff-pg-code-badge i:hover {
            color: #5a1d54;
        }

/* ── Status Toggle (click to switch Active ⇄ Paused) ── */
.aff-pg-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    transition: all 0.15s ease;
}

    .aff-pg-status-toggle i {
        font-size: 0.7rem;
    }

.aff-pg-status-active {
    color: #16a34a;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

    .aff-pg-status-active:hover {
        background: #dcfce7;
    }

.aff-pg-status-paused {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

    .aff-pg-status-paused:hover {
        background: #fee2e2;
    }

/* ── Action Icon Buttons (plain, no background) ── */
.aff-pg-action-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.aff-pg-icon-view {
    color: #5a1d54;
}

    .aff-pg-icon-view:hover {
        color: #1d4ed8;
    }

.aff-pg-icon-send {
    color: #2563eb;
}

    .aff-pg-icon-send:hover {
        color: #1d4ed8;
    }

.aff-pg-icon-edit {
    color: #6b7280;
}

    .aff-pg-icon-edit:hover {
        color: #5a1d54;
    }

.aff-pg-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.aff-pg-contact-item {
    max-width: 100%;
    overflow: hidden;
}
/* ── No Results State ── */
#activeNoResults i {
    color: #d1d5db;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 768px) {
    .aff-pg-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .aff-pg-search-input {
        width: 100%;
    }

    .aff-pg-contact-grid {
        grid-template-columns: 1fr;
    }

    .aff-pg-form-row {
        flex-direction: column;
    }

    .aff-pg-modal-container {
        padding: 20px;
        margin: 10px;
    }

    .aff-pg-table th,
    .aff-pg-table td {
        padding: 12px 16px;
    }

    .aff-pg-filter-tabs {
        gap: 6px;
    }

    .aff-pg-filter-tab {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .aff-pg-active-table thead th,
    .aff-pg-active-table tbody td {
        padding: 12px 14px;
        font-size: 0.8rem;
    }

    .aff-pg-code-badge {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .aff-pg-action-icon-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .aff-pg-status-toggle {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    .aff-pg-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .aff-pg-toggle-wrapper {
        flex-direction: column;
    }

    .aff-pg-modal-footer {
        flex-direction: column-reverse;
        gap: 10px;
    }

        .aff-pg-modal-footer .btn,
        .aff-pg-modal-footer button {
            width: 100%;
        }

    #reviewModal .aff-pg-modal-container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
}
/*Dots of status badges*/
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12.8px;
}

    .status-dot::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
        flex-shrink: 0;
    }
/* 
DASHBOARD PAGE SCOPED STYLES (.dash- namespace)
/* Utility: Muted text specific to dashboard */
.dash-text-muted {
    color: #21252975 !important;
}

/* Utility: Small text specific to dashboard */
.dash-small-text {
    font-size: 12px;
}

/* Dashboard Card Overrides */
.dash-card {
    border-radius: 12px !important;
}

    .dash-card .table-responsive {
        border-radius: 0 0 12px 12px;
        overflow: hidden;
    }

.dash-list-group-flush {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* Stat Icon Helper */
.dash-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════
DASHBOARD RESPONSIVE STYLES
═══════════════════════════════════════════════════ */

@media (max-width: 991px) {
    /* On tablets/small laptops, reduce padding slightly */
    .dash-card .card-body {
        padding: 1rem !important;
    }
}

@media (max-width: 767px) {
    /* Mobile: Stack stat cards evenly */
    .col-xl-2.col-md-4.col-sm-6 {
        flex: 0 0 50%; /* Force 2 per row on mobile if desired, or 100% */
        max-width: 50%;
    }

    /* If you want 1 per row on very small screens, uncomment below: */
    /* 
    @media (max-width: 576px) {
        .col-xl-2.col-md-4.col-sm-6 {
            flex: 0 0 100%;
            max-width: 100%;
        }
    } 
    */

    /* Mobile: Adjust table font sizes for better readability */
    .dash-table-mobile-adjust th,
    .dash-table-mobile-adjust td {
        font-size: 0.75rem !important;
        padding: 0.5rem !important;
        white-space: nowrap;
    }

    /* Hide less important columns on mobile if needed */
    .dash-hide-mobile {
        display: none !important;
    }
}
@media (max-width: 576px) {
    .page-body {
        padding: 1rem .75rem;
    }

    .ev-right {
        display: none;
    }

    .tx-table th:nth-child(n+4), .tx-table td:nth-child(n+4) {
        display: none;
    }
    /* ── Header card: stack avatar/info and buttons full-width ── */
    .card .d-flex.flex-wrap.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
    }

    .card .d-flex.align-items-center.gap-2 {
        width: 100%;
        justify-content: stretch;
    }

    .btn-change-plan, .btn-block-host {
        flex: 1;
        text-align: center;
    }
    /* ── Main tabs: scroll horizontally instead of wrapping/overflowing ── */
    .d-flex.mb-4 > .d-flex.gap-3 {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .d-flex.mb-4 > .d-flex.gap-3::-webkit-scrollbar {
            display: none;
        }

    .main-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    /* ── Stat chips: tighten on small screens ── */
    .stat-chip {
        padding: .75rem .9rem;
        gap: .6rem;
    }

        .stat-chip .val {
            font-size: 1.05rem;
        }

        .stat-chip .ic {
            width: 36px;
            height: 36px;
            font-size: 1rem;
        }
    /* ── Billing summary: stack the 3 stat cards ── */
    #tab-billing .row.g-3.mb-4 > .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: .5rem;
    }
}