@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
    --navy: #ffffff;
    --navy-mid: #162032;
    --navy-light: #EDE7FE;
    --navy-card: #ffffff;
    --gold: #771BCE;
    --gold-light: #C22AF6;
    --gold-pale: #F3F0FF;
    --cream: #faf8f3;
    --white: #ffffff;
    --dark: #000000;
    --text-muted: #8B3DFF;
    --text-body: #2d3e52;
    --border: #e9d5ff;
    --border-light: #e9d5ff;
    --success: #27ae60;
    --success-bg: rgba(39, 174, 96, 0.12);
    --danger: #e74c3c;
    --danger-bg: rgba(231, 76, 60, 0.12);
    --warning: #f39c12;
    --warning-bg: rgba(243, 156, 18, 0.12);
    --sidebar-w: 240px;
    --radius: 8px;
    --radius-lg: 12px;
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    /* font-family: 'DM Sans', sans-serif; */
    font-family: 'Karla', sans-serif !important;
    background: #F8FAFC;
    /* background: #1A0129; */
    color: rgba(0, 0, 0, 0.85);
    min-height: 100vh;
    display: flex;
}

/* ── SIDEBAR ── */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(135deg, #F5F3FF 0%, #DDD6FE 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
}

.sb-logo {
    /* padding: 22px 24px 18px; */
    padding: 0px;
    border-bottom: 1px solid var(--border-light);
    font-family: 'DM Serif Display', serif;
    font-size: 1.375rem;
    color: var(--gold);
}

.sb-logo span {
    color: rgba(255, 255, 255, 0.5);
}

.sb-user {
    padding: 16px 20px;
    border-bottom: 1px solid #9843eac9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #771bce, #b05cff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.sb-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.9);
}

.sb-user-plan {
    font-size: 0.7rem;
    color: var(--text-muted) !important;
    background: var(--gold-pale);
    border: 1px solid var(--border);
    padding: 1px 7px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 2px;
}

.sb-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sb-section-label {
    padding: 8px 20px 6px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #00c1ff;
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    transition: all 0.18s;
    border-left: 2px solid transparent;
    text-decoration: none;
}

.sb-item:hover {
    color: rgba(15, 15, 15, 0.85);
    background: rgba(255, 255, 255, 0.04);
}

.sb-item.active {
    color: var(--white) !important;
    background: var(--gradient-primary);
    /* border-left-color: var(--text-muted) !important; */
    padding: 10px 17px;
    border-radius: 6px;
    margin: 0px 11px;
}

.sb-icon {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

.sb-bottom {
    padding: 5px 0;
    border-top: 1px solid #9843eac9;
}

/* ── MAIN ── */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 90vh;
}

.topbar {

    margin-left: var(--sidebar-w);
    -webkit-backdrop-filter: blur(50px);
    backdrop-filter: blur(50px);

    border-bottom: 1px solid var(--border-light);
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-title {
    /* font-family: 'DM Serif Display', serif; */
    font-size: 1.1rem;
    color: #00c1ff;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cmp-live {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--success-bg);
    border: 1px solid rgba(39, 174, 96, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

.cmp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.topbar-notif {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.content {
    padding: 28px 32px;
    flex: 1;
}

/* ── STAT CARDS ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stats-row-analytics {
    grid-template-columns: repeat(3, 1fr) !important;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e9d5ff;
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

/* .stat-card:hover {
    transform: translateY(-2px);
} */

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(var(--gold-pale), transparent 70%);
    transform: translate(20px, -20px);
}

.stat-cards {
    background: linear-gradient(135deg, #F5F3FF 0%, #DDD6FE 100%);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

/* .stat-card:hover {
    transform: translateY(-2px);
} */

.stat-cards::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(var(--gold-pale), transparent 70%);
    transform: translate(20px, -20px);
}


.sc-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sc-value {
    /* font-family: 'DM Serif Display', serif; */
    font-size: 1.875rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.sc-sub {
    font-size: 0.75rem;
}

.sc-sub.pos {
    color: var(--success);
}

.sc-sub.warn {
    color: var(--warning);
}

.sc-sub.muted {
    color: var(--text-muted);
}

.sc-icon-bg {
    position: absolute;
    bottom: 14px;
    right: 18px;
    font-size: 1.5rem;
    /* opacity: 0.2; */
}

/* ── SUBSCRIPTION CARD ── */
.sub-card {
    background: linear-gradient(135deg, #F5F3FF 0%, #DDD6FE 100%);

    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.sub-card::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(rgba(201, 168, 76, 0.06), transparent 70%);
}

.sub-plan-name {
    /* font-family: 'DM Serif Display', serif; */
    font-size: 1.5rem;
    color: var(--dak);
}

.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--success-bg);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 10px;
}

.sub-expiry {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.sub-expiry strong {
    color: rgba(0, 0, 0, 0.8);
}

.sub-progress {
    margin-top: 14px;
}

.sub-progress-bar {
    height: 4px;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.sub-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    width: 65%;
}

.sub-progress-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.sub-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-gold {
    background: var(--text-muted) !important;
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--gold-light);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

/* ── SECTION HEADER ── */
.sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sec-title {
    /* font-family: 'DM Serif Display', serif; */
    font-size: 1.1rem;
    color: var(--white);
}

.sec-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ── TABS ── */
.tabs {
    display: flex;
    gap: 4px;
    background: rgb(255, 255, 255);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 3px;
}

.tab {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.18s;
}

.tab.active {
    background: var(--text-muted);
    color: var(--navy);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--gold-pale);
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 5px;
}

/* ── FILTERS ── */
.filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-input {
    padding: 7px 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #9843eac9;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.8125rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
    width: 180px;
}

.filter-input:focus {
    border-color: #9843eac9;
}

.filter-select {
    padding: 7px 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #9843eac9;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.8125rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.filter-select option {
    background: var(--navy);
}

/* ── STOCK TABLE ── */
.table-wrap {
    background: var(--navy-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    /* overflow: hidden; */
    /* padding-bottom: 100px; */
    overflow-x: auto;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}



.stock-table thead tr {
    background: var(--navy-light);
}

.stock-table th {
    padding: 11px 14px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stock-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.stock-table tbody tr {
    transition: background 0.15s;
    cursor: pointer;
}



.stock-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.co-name {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.875rem;
}

.co-sym {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
}

.badge-open {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
}

.badge-closed {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
}

.cmp-cell {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cmp-change {
    font-size: 0.7rem;
    padding: 1px 5px;
    border-radius: 3px;
}

.cmp-up {
    background: var(--success-bg);
    color: var(--success);
}

.cmp-dn {
    background: var(--danger-bg);
    color: var(--danger);
}

.ret-pos {
    color: var(--success);
    font-weight: 600;
}

.ret-neg {
    color: var(--danger);
    font-weight: 600;
}

.action-btns {
    display: flex;
    gap: 6px;
}

.icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.18s;
    color: rgba(255, 255, 255, 0.5);
}

.icon-btn:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--border);
    color: var(--gold);
}

/* ── MODAL ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    /* 👈 always visible when rendered */
    align-items: center;
    justify-content: center;
}



.modal {
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 640px;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    display: block !important;
    max-width: 90%;
    max-height: 85vh;
    /* 👈 IMPORTANT */
    overflow-y: auto;
    /* 👈 enables scroll */
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal-header {
    padding: 10px 28px;
    border-bottom: 1px solid #88868640;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--navy);
    z-index: 1;
}

.modal-header h3 {
    /* font-family: 'DM Serif Display', serif; */
    font-size: 1.25rem;
    color: var(--dark);
}

.modal-close {
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-muted);
}

.modal-body {
    padding: 24px 28px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.modal-stat label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 5px;
}

.modal-stat value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
}

.yt-embed {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 16px;
    cursor: pointer;
}

.yt-embed:hover {
    border-color: var(--border);
}

/* ── PROFILE / PAYMENT SECTION ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: var(--navy-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}

.card h4 {
    /* font-family: 'DM Serif Display', serif; */
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    font-size: 14px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #9843eac9;
    color: rgba(0, 0, 0, 0.9);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus {
    border-color: #771bce;
}

.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8125rem;
}

.payment-row:last-child {
    border-bottom: none;
}

.pay-id {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.super-admin {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.pay-amount {
    font-weight: 600;
    color: var(--dark);
}

.pay-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.badge-paid {
    background: var(--success-bg);
    color: var(--success);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* page sections */
.page {
    display: none;
}

.page.active {
    display: block;
}

#root {
    width: 100%;
}

.available-plans {
    /* font-family: 'DM Serif Display', serif; */
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 16px
}


/* Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Card */
.plan-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 12px;
    background: var(--navy);
    transition: all 0.3s ease;
}

/* Active Card (your requirement) */
.plan-card.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--navy-light), #162a3e);
}

/* Title */
.plan-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

/* Price */
.plan-price {
    /* font-family: 'DM Serif Display', serif; */
    font-size: 1.75rem;
    color: var(--white);
}

/* Duration */
.plan-duration {
    font-size: 0.875rem;
    /* font-family: 'DM Sans', sans-serif; */
    font-weight: 400;
}

/* Billing */
.plan-billing {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Header */
.payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.payment-header h4 {
    margin: 0;
}

/* Row */
.payment-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Plan text */
.payment-plan {
    color: var(--dark);
    font-weight: 500;
}

/* Invoice button */
.btn-invoice {
    padding: 5px 12px;
    font-size: 0.75rem;
}



.login-content-box-code {
    background: hsl(var(--black) / 0.5);
}

.cmp-locked-box {
    position: relative;
    width: auto;
    padding: 5px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 150, 0.2);
    text-align: center;
    overflow: hidden;
}

.cmp-blur {
    filter: blur(4px);
    color: #00ff9c;
    font-weight: 600;
    font-size: 14px;
}

.cmp-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    color: #fff;
}

.lock-text {
    font-size: 12px;
    opacity: 0.8;
}







.badge.inprogress {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.badge.resolved {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}







/* Type */
.badge.open {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
}

.badge.closed {
    background: #9843ea45;
    color: #50128c;
}

/* Status */
.badge.published {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Return */
.ret-pos {
    color: #22c55e;
}

.ret-neg {
    color: #ef4444;
}

.badge.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Active (Green) */
.badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Expired (Red) */
.badge.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Blocked (Dark Red / Warning) */
.badge.blocked {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.action-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-link {
    font-size: 12px;
    color: #94a3b8;
    /* muted gray */
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--border-light);
    padding: 4px 15px;
    border-radius: 6px;
}

.badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.plan-card {
    background: #3a025b;
    padding: 20px;
    border-radius: 14px;
}


.plan-row {
    margin-bottom: 18px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #cbd5f5;
    font-size: 14px;
}

.plan-bar {
    width: 100%;
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.plan-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.btn-modal {
    padding: 9px 22px;
    border-radius: var(--radius);
    font-size: 0.8375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s
}

.btn-modal.gold {
    background: var(--gold);
    color: var(--white)
}

.btn-modal.gold:hover {
    background: var(--gold-light)
}

.btn-modal.cancel {
    background: transparent;
    border: 1px solid #771bce;
    color: rgba(0, 0, 0, 0.83);
    z-index: 99;
}

.btn-modal.cancel:hover {
    /* border-color: rgba(255, 255, 255, 0.3); */
    color: rgba(255, 255, 255, 0.9);
    background: #771bce;
}

.tb-search {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    font-family: inherit;
    outline: none;
    width: 200px
}

.tb-search:focus {
    border-color: rgba(201, 168, 76, 0.3)
}

.tb-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: rgb(223 216 254 / 60%);
    border: 1px solid #50128c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.badge.draft {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.permission-table {
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

.perm-header,
.perm-row {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.perm-header {
    color: #94a3b8;
    font-size: 13px;
}

.perm-name {
    color: rgb(1, 1, 1);
}

.perm-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.table-icon {
    width: 24px;
}

.purchase-orders-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Legend */
.purchase-orders-legend {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.purchase-orders-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.purchase-orders-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-top: 5px;
}

.purchase-orders-item p {
    margin: 0;
    font-size: 16px;
    color: #130f26;
}

.purchase-orders-item span {
    font-size: 18px;
    font-weight: 600;
    color: #555555;
}


.purchase-orders-chart {
    position: relative;
    width: 300px;
    height: 300px;
}

.purchase-orders-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.purchase-orders-center h2 {
    margin: 0;
    font-weight: 600;
}

.purchase-orders-center p {
    margin: 0px 0 0;
    font-size: 14px;
    color: #878a99;
}

.settings-dropdown {
    position: absolute;
    top: 60px;
    right: 30px;
    background: var(--navy);
    /* dark */
    border-radius: 10px;
    padding: 10px 0;
    width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.dropdown-item {
    padding: 10px 15px;
    color: #363738 !important;
    cursor: pointer;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: inherit;
    color: var(--text-muted) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    /* 👈 makes icon white */
    cursor: pointer;
}

/* .fa-eye,
.fa-eye-slash {
    color: #fff !important;
} */


.tooltip-wrap {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);

    background: #6d28d9;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;

    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    white-space: nowrap;
    word-break: keep-all;
}

.tooltip-wrap:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 3px;
    /* 👈 thinner */
}

::-webkit-scrollbar-track {
    background: transparent;
    /* or #1a0026 if you want */
}

::-webkit-scrollbar-thumb {
    background: #c22af6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

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

.sun-editor-editable {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-light) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}


/* Main editor wrapper */
.sun-editor {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-light) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px !important;
}

/* Toolbar */
.sun-editor .se-toolbar {
    background: #11001c52 !important;
    outline: 1px solid #dadada3b !important;
    border-radius: 10px 10px 0 0 !important;
    /* border-bottom: 1px solid var(--border-light) !important; */
}

/* Toolbar buttons */
.sun-editor .se-btn {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Editor area */
.sun-editor .se-wrapper {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Editable content */
.sun-editor .se-wrapper .se-wrapper-inner {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Placeholder */
.sun-editor .se-placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Bottom resize bar */
.sun-editor .se-resizing-bar {
    background: rgba(255, 255, 255, 0.05) !important;
    border-top: 1px solid var(--border-light) !important;
}

/* Dropdowns */
.sun-editor .se-list-layer,
.sun-editor .se-dialog {
    background: #1a1a1a !important;
    color: #fff !important;
}

.badge.unsubscribed {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}



.user-profile-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f5ff 100%);
  border: 1px solid rgba(119, 27, 206, 0.12);
  box-shadow:
    0 10px 30px rgba(119, 27, 206, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
}

.user-profile-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(119, 27, 206, 0.05);
}

.user-top-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.user-avatar-wrap {
  position: relative;
}

.user-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #771bce, #b05cff);
  color: white;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(119, 27, 206, 0.35);
}

.status-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border: 3px solid white;
  border-radius: 50%;
}

.user-main-info {
  flex: 1;
  margin-left: 20px;
}

.user-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1e1e1e;
}

.user-role {
  margin: 4px 0;
  color: #771bce;
  font-size: 14px;
  font-weight: 600;
}

.user-email {
  margin: 0;
  color: #7a7a7a;
  font-size: 14px;
}

.user-id-badge {
  background: rgba(119, 27, 206, 0.08);
  color: #771bce;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.user-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(119, 27, 206, 0.08);
  transition: all 0.25s ease;
}

.info-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(119, 27, 206, 0.08);
}

.info-icon {
  font-size: 22px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(119, 27, 206, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-label {
  margin: 0;
  font-size: 12px;
  color: #8b8b8b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.info-box h6 {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.user-avatar i {
  font-size: 32px;
  color: white;
}

.info-icon i {
  font-size: 18px;
  color: #771bce;
}


.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #b12cf0 transparent;
}

/* Chrome / Edge / Safari */
.table-wrap::-webkit-scrollbar {
  height: 6px;   /* reduce scrollbar height */
}

.table-wrap::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #c026d3, #a855f7);
  border-radius: 10px;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #a21caf, #9333ea);
}

.shadow-card {
    border: 1px solid rgba(119, 27, 206, 0.12) !important;
    box-shadow: 0 10px 30px rgba(119, 27, 206, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.co-meta {
    font-size: 0.7rem;
    color: #00c1ff;
    margin-top: 1px;
}