* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

:root {

    /* ========================= 
       TYPOGRAPHY SYSTEM         
    ========================== */

    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 18px;

    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 40px;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    

    /* COLORS */
    --bg: oklch(0.09 0 0);
    --bg2: oklch(0.12 0 0);
    --button-white: oklch(92.046% 0.01066 100.933); 

    --red: oklch(62.944% 0.25583 25.982);
    --red2: oklch(54.187% 0.21198 24.926);
    --red-op: oklch(52% 0.22 25 / 0.31);

    --gold: oklch(0.75 0.10 85);
    --green: oklch(83.515% 0.20131 137.512);

    --white: oklch(92.046% 0.01066 100.933);
    --muted: oklch(0.92 0.01 95 / 0.44);

    --border: oklch(0.92 0.01 95 / 0.13);

    --card: oklch(1 0 0 / 0.04);
    --white-03: oklch(1 0 0 / 0.03);
    --white-05: oklch(1 0 0 / 0.05);
    --white-07: oklch(1 0 0 / 0.07);
    --white-10: oklch(1 0 0 / 0.10);
    --white-20: oklch(1 0 0 / 0.20);
    --white-30: oklch(1 0 0 / 0.30);
    --white-50: oklch(1 0 0 / 0.50);
    --font: 'Geist', system-ui, sans-serif;

}


/* LIGHT THEME */
[data-theme="light"] {
  --bg: #fafafa;
  --bg2: #f2f2f2;
  --button-white: oklch(100% 0.00011 271.152); 


  --white: oklch(27.685% 0.00003 271.152);
  --muted: oklch(27.685% 0.00003 271.152 / 0.502);

  --border: oklch(27.685% 0.00003 271.152 / 0.129);

  --card: oklch(100% 0.00011 271.152);

  --white-03: oklch(20.768% 0.03985 265.767 / 0.02);
  --white-05: oklch(20.768% 0.03985 265.767 / 0.04);
  --white-07: oklch(20.768% 0.03985 265.767 / 0.06);
  --white-10: oklch(20.768% 0.03985 265.767 / 0.08);
  --white-20: oklch(20.768% 0.03985 265.767 / 0.12);
  --white-30: oklch(20.768% 0.03985 265.767 / 0.18);
  --white-50: oklch(20.768% 0.03985 265.767 / 0.50);
  .nav-icon {
    filter: brightness(0) saturate(100%) invert(7%) sepia(14%) saturate(2618%) hue-rotate(182deg) brightness(95%) contrast(93%);
  }
  .btn-ghost {
    img {
            filter: brightness(0) saturate(100%) invert(7%) sepia(14%) saturate(2618%) hue-rotate(182deg) brightness(95%) contrast(93%);

    }
  }
  .edit-btn-td,
.del-btn-td,
.delete-sale,
.create-lead-btn,
.cancel-lead-btn,
.edit-client,
.del-client,
.call-sale,
.whatsapp-sale,
.create-user-btn,
.cancel-user-btn, .toggle-password, .delete-user, .logout-btn {
            filter: brightness(0) saturate(100%) invert(7%) sepia(14%) saturate(2618%) hue-rotate(182deg) brightness(95%) contrast(93%);
  }

  
}

.topbar {
    img {
        /* filter: invert(100%) sepia(100%) hue-rotate(180deg); */
    }
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font);
    min-height: 100vh;
    overflow-x: hidden
}

.al-c {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
}


.dn {
    display: none !important;
}

.df-g8 {
    display: flex;
    gap: 8px;
}

/* LAYOUT */
.app {
    display: flex;
    min-height: 100vh
}

.sidebar {
    width: 220px;
    min-height: 100vh;
    background: var(--bg);
    border-right: 0.6px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100
}

.main {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh
}

@media(max-width:768px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap
    }

    .main {
        margin-left: 0
    }
}

/* LOADER */
/* LOADER */
.dashboard-loader-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.dashboard-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Uiverse Spinner */
.loader {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 10px;
}

.loader div {
    width: 5%;
    height: 15%;
    background: var(--white-30);
    /* Use var(--white) if preferred */
    position: absolute;
    left: 50%;
    top: 30%;
    opacity: 0;
    border-radius: 50px;
    animation: fade458 1s linear infinite;
}

@keyframes fade458 {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.25;
    }
}

.loader .bar1 {
    transform: rotate(0deg) translate(0, -130%);
    animation-delay: 0s;
}

.loader .bar2 {
    transform: rotate(30deg) translate(0, -130%);
    animation-delay: -1.1s;
}

.loader .bar3 {
    transform: rotate(60deg) translate(0, -130%);
    animation-delay: -1s;
}

.loader .bar4 {
    transform: rotate(90deg) translate(0, -130%);
    animation-delay: -0.9s;
}

.loader .bar5 {
    transform: rotate(120deg) translate(0, -130%);
    animation-delay: -0.8s;
}

.loader .bar6 {
    transform: rotate(150deg) translate(0, -130%);
    animation-delay: -0.7s;
}

.loader .bar7 {
    transform: rotate(180deg) translate(0, -130%);
    animation-delay: -0.6s;
}

.loader .bar8 {
    transform: rotate(210deg) translate(0, -130%);
    animation-delay: -0.5s;
}

.loader .bar9 {
    transform: rotate(240deg) translate(0, -130%);
    animation-delay: -0.4s;
}

.loader .bar10 {
    transform: rotate(270deg) translate(0, -130%);
    animation-delay: -0.3s;
}

.loader .bar11 {
    transform: rotate(300deg) translate(0, -130%);
    animation-delay: -0.2s;
}

.loader .bar12 {
    transform: rotate(330deg) translate(0, -130%);
    animation-delay: -0.1s;
}

.loader-text {
    margin-top: -2px;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--muted);
}

/* SIDEBAR */
.logo {
    padding-bottom: 20px;
    border-bottom: 0.6px solid var(--border)
}

/* SIDEBAR */
.dashboard-logo {
    padding: 20px;
    border-bottom: 0.6px solid var(--border);
    height: 83px;

    img {
        width: 96px;
    }
}

.logo-text {
    font-size: var(--text-lg);
    font-weight: 700;
}

.logo-text span {
    color: var(--red)
}

.logo-sub {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-top: 2px;
}

.nav {
    padding: 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--border-radius-2);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--muted);
    transition: all .15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left
}

.nav-item:hover {
    background: var(--white-05);
    color: var(--white)
}

.nav-item.active {
    background: var(--white-05);
    color: var(--white);
    font-weight: 600 !important;
}

.nav-icon {
    font-size: var(--text-md);
    width: 18px;
    text-align: center
}

.sidebar-footer {
    padding: 16px;
    border-top: 0.6px solid var(--border)
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px
}

.user-avatar {
    display: none !important;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background: var(--white-03);
    border: 0.6px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: var(--red);
    font-weight: 600
}

.user-info {
    flex: 1
}

.user-name {
    font-size: var(--text-sm);
    font-weight: 500
}

.user-role {
    color: var(--muted);
    display: block;
    /* or inline-block */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted);
    font-size: var(--text-xs);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: var(--text-sm);
    padding: 8px;
    border-radius: var(--border-radius-2);
    transition: .15s
}

.logout-btn:hover {
    background: var(--white-07);
}

/* TOPBAR */
.topbar {
    padding: 18px 28px;
    border-bottom: 0.6px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    height: 83px;
}

.page-title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.page-sub {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-top: 2px
}

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

/* BUTTONS */
.btn {
    background: var(--red);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--border-radius-99);
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: var(--button-white);
    padding: 8px 14px;
    border-radius: var(--border-radius-99);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;

    span {
        display: flex;
        align-items: center;
    }
}

.btn-primary:hover {
    background: var(--red2);
    color: var(--button-white) !important;
}

.btn-ghost {
    background: var(--white-05);
    color: var(--white);
    cursor: pointer;
    height: 100%;
    padding: 8px 14px;
    border: unset !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-99);
    transition: .15s;
    gap: 6px;
}

.btn-ghost:hover {
    background: var(--white-10) !important;
}

.btn-sm {
    padding: 6px var(--text-xs);
    font-size: var(--text-xs)
}

.btn-danger {
    background: oklch(0.4 0.2 25 / 0.2);
    color: var(--red);
    border: 0.6px solid var(--red-op)
}

.btn-danger:hover {
    background: var(--red-op)
}

.btn-gold {
    background: oklch(0.75 0.10 85 / 0.15);
    color: var(--gold);
    border: 0.6px solid oklch(0.75 0.10 85 / 0.3)
}

.btn-gold:hover {
    background: oklch(0.75 0.10 85 / 0.25)
}

/* CONTENT */
.content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: calc(100% - 83px);
}

/* GLASS CARDS */
.glass-card {
    background: var(--white-03);
    /* border: 0.7px solid var(--border); */
    border-radius: var(--border-radius-2);
    padding: 20px;
    backdrop-filter: blur(14px)
}

.glass-card-label {
    font-size: var(--text-sm);
    font-weight: 400;
    margin-bottom: 14px;
    color: var(--muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--white-03);
    /* border: 0.7px solid var(--border); */
    border-radius: var(--border-radius-2);
    padding: 20px;
    position: relative;
    overflow: hidden
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0;
    transform: translate(20px, -20px)
}

.stat-card.red::before {
    background: var(--red)
}

.stat-card.gold::before {
    background: var(--gold)
}

.stat-card.white::before {
    background: var(--white)
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-bottom: var(--text-xs)
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: 600;
}

.stat-value.red {
    color: var(--red)
}

.stat-value.gold {
    color: var(--gold)
}

.stat-value.green {
    color: var(--green)
}

.stat-sub {
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 6px;
    display: none;
}

.stat-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: var(--text-lg);
    opacity: .35
}



.dash-clients-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 100%;
}

/* SEARCH & FILTERS */
.controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px
}

.search-wrap input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: var(--white-05);
    border: 0.6px solid transparent;
    border-radius: var(--border-radius-2);
    color: var(--white);
    font-size: var(--text-sm);
    font-family: var(--font)
}

.search-wrap input::placeholder {
    color: var(--muted)
}

.search-wrap input:focus {
    border: 0.6px solid var(--border);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-lg);
    color: var(--muted);
}

.filter-btn {
    padding: 9px 14px;
    background: var(--white-05);
    border: 0.6px solid var(--border);
    border-radius: var(--border-radius-2);
    color: var(--muted);
    font-size: var(--text-sm);
    cursor: pointer;
    font-family: var(--font);
    transition: .15s
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--white-05);
    color: var(--white);
    border-color: var(--white);
}

.filter-btn.active {
    background: var(--white-03);
    color: var(--white);
}

/* TABLE */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--border-radius-3);
    border: 0.6px solid var(--border)
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm)
}

thead tr {
    background: var(--white-03);
    /* border-bottom: 0.6px solid var(--border) */
}

th {
    padding: 12px 16px;
    text-align: left;
    font-size: var(--text-sm) !important;
    font-weight: 500 !important;
    color: var(--muted);
    white-space: nowrap;
    cursor: pointer;
    user-select: none
}

th:hover {
    color: var(--white)
}

th .sort-icon {
    margin-left: 4px;
    opacity: .5
}

td {
    padding: 12px 16px;
    border-bottom: 0.6px solid var(--white-07);
    white-space: nowrap
}

tr:last-child td {
    border-bottom: none
}

tr:hover td {
    background: var(--white-05)
}

.note-input {
    border: 0.6px solid transparent !important;
    background: transparent !important;
    transition: all 0.2s ease;
    color: var(--white) !important;
    width: 100%;
    border-radius: var(--border-radius-2) !important;
    padding: 8px 12px !important;
    outline: none !important;
}

.note-input:hover {
    border-color: var(--border) !important;
    background: var(--white-03) !important;
}

.note-input:focus {
    border-color: var(--border) !important;
    background: var(--white-03) !important;
}

.company-input,
.phone-input,
.note-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--border-radius-2);
    border: 0.6px solid transparent;
    background: transparent;
    color: var(--white);
    outline: none;
    transition: all .2s ease;
}

.company-input:hover,
.phone-input:hover,
.note-input:hover {
    border-color: var(--border);
    background: var(--white-03);
}

.company-input:focus,
.phone-input:focus,
.note-input:focus {
    border-color: var(--border);
    background: var(--white-03);
}

/* =========================
   CONTACTED TOGGLE
========================= */

.contacted-toggle {
    appearance: none;
    -webkit-appearance: none;

    width: 46px;
    height: 26px;

    position: relative;
    cursor: pointer;
    border-radius: var(--border-radius-99);

    background: var(--white-03);
    border: 0.6px solid var(--border);

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .2s ease;

    backdrop-filter: blur(10px);
}

.contacted-toggle::before {
    content: "";

    position: absolute;
    top: 2.5px;
    left: 2.5px;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: var(--white);
    /* 
    box-shadow:
        0 2px 12px rgba(0, 0, 0, .4); */

    transition:
        transform .35s cubic-bezier(.68, -0.55, .265, 1.55),
        background .3s ease,
        width .2s ease;
}

/* ON STATE */
.contacted-toggle:checked {
    background: color-mix(in oklch, var(--green) 20%, transparent);
    border-color: color-mix(in oklch, var(--green) 60%, transparent);

    box-shadow:
        0 0 0 1px color-mix(in oklch, var(--green) 40%, transparent),
        0 0 18px color-mix(in oklch, var(--green) 20%, transparent);
}

.contacted-toggle:checked::before {
    transform: translateX(20px);
    background: var(--green);
}

/* HOVER */
.contacted-toggle:hover {
    transform: scale(1.05);
}

/* CLICK EFFECT */
.contacted-toggle:active::before {
    width: 24px;
}

/* FOCUS */
.contacted-toggle:focus-visible {
    box-shadow:
        0 0 0 3px color-mix(in oklch, var(--green) 30%, transparent);
}

/* OPTIONAL SUCCESS PULSE */
/* .contacted-toggle:checked {
    animation: contactedPulse .35s ease;
} */

@keyframes contactedPulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in oklch, var(--green) 40%, transparent);
    }

    100% {
        box-shadow: 0 0 0 12px transparent;
    }
}

.badge {
    padding: 6px 12px;
    border-radius: 99px;
    font-size: var(--text-xs);
    font-weight: 400
}

.badge-red {
    background: var(--white-05);
    color: var(--white)
}

.badge-gold {
    background: oklch(0.75 0.10 85 / 0.15);
    color: var(--gold)
}




.edit-btn-td,
.del-btn-td,
.delete-sale,
.create-lead-btn,
.cancel-lead-btn,
.edit-client,
.del-client,
.call-sale,
.whatsapp-sale,
.create-user-btn,
.cancel-user-btn {
    width: 32px !important;
    height: 32px !important;
    opacity: .7;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--border-radius-2);
    background: transparent;
    transition: .15s
}

.edit-btn-td:hover,
.del-btn-td:hover,
.delete-sale:hover,
.create-lead-btn:hover,
.cancel-lead-btn:hover,
.edit-client:hover,
.del-client:hover,
.call-sale:hover,
.whatsapp-sale:hover,
.create-user-btn:hover,
.cancel-user-btn:hover {
    opacity: 1;
    background: var(--white-05);
}


.call-sale {
    display: none;
}

@media (max-width: 768px) {
    .call-sale {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .delete-sale {
        display: none;
    }
}

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

.actions-btn img {
    width: 24px !important;
    height: 24px !important;
    opacity: .7;
    cursor: pointer
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: oklch(0 0 0 / 0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(14px)
}

.modal {
    background: var(--bg);
    border: 0.6px solid var(--border);
    border-radius: var(--border-radius-3);
    padding: 32px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-icon {
    background: var(--white-05);
    margin-bottom: 20px;
    width: fit-content;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-99);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-2);
}

.modal-close:hover {
    background: var(--white-05);
}


.delete-modal {
    width: 100%;
    max-width: 420px;
    background: var(--bg);
    border: 0.6px solid var(--border);
    border-radius: var(--border-radius-1);
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(40px);
    animation: modalIn .2s ease;
}

.delete-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 999px;
    background: var(--red-op);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-icon img {
    width: 28px;
    height: 28px;
}

.delete-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 8px;
}

.delete-sub {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.delete-actions {
    display: flex;
    gap: 12px;
}

.delete-actions button {
    flex: 1;
}

.btn-danger {
    background: var(--red);
    color: var(--white);
    border: none;
}

.btn-danger:hover {
    background: var(--red2);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-group {
    margin-bottom: 16px
}

.form-label {
    display: block;
    font-size: var(--text-sm) !important;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: 0.6px solid var(--border);
    border-radius: var(--border-radius-2);
    color: var(--white);
    font-size: var(--text-sm);
    font-family: var(--font);
    transition: .15s
}

.form-input:focus {
    outline: none;
    border-color: var(--red);
    background: transparent;
    box-shadow: 0px 0px 0px 3px #ff002533;


}

.form-input::placeholder {
    color: var(--muted)
}

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

.form-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 0.6px solid var(--border)
}

/* ANALYTICS */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.chart-card {
    background: var(--white-03);
    border-radius: var(--border-radius-2);
    padding: 20px
}

.chart-title {
    font-size: var(--text-md);
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white)
}

.chart-sub {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-bottom: 16px
}

.top-client {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    padding-right: 20px;
    border-radius: var(--border-radius-2);
    background: var(--white-03);
    margin-bottom: 12px
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-99);
    background: var(--white-03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--white);
    flex-shrink: 0;
    border: 0.6px solid var(--border);
}

.client-meta {
    flex: 1
}

.client-name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 4px;
}

.client-biz {
    font-size: var(--text-sm);
    color: var(--muted)
}

.client-rev {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--green)
}

/* LOGIN */
.login-wrap {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-image: url('../assets/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;

    background: oklch(0.11 0 0);
    border: 0.6px solid var(--border);
    border-radius: var(--border-radius-2);
}

.login-logo {
    text-align: center;
    margin-bottom: 24px
}

.login-logo-text {
    font-size: var(--text-lg);
    font-weight: 600;
}

.login-logo-text span {
    color: var(--red)
}

.login-logo-sub {
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 6px;
}

.login-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 6px
}


.login-sub {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-bottom: 28px
}

.login-error {
    border: 0.6px solid var(--red);
    border-radius: var(--border-radius-2);
    padding: 10px 14px;
    font-size: var(--text-sm);
    color: var(--red);
    margin-bottom: 16px
}

.login-btn {
    width: 100%;
}



/* EMPTY STATE */
.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted)
}

.empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: .4
}

.empty-text {
    font-size: var(--text-sm)
}

/* REVENUE BAR */
.rev-bar-wrap {
    margin-bottom: 8px
}

.rev-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    margin-bottom: 5px
}

.rev-bar {
    height: 6px;
    border-radius: 99px;
    background: var(--white-05);
    overflow: hidden
}

.rev-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    transition: width .6s ease
}

/* TOASTS */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: oklch(0.13 0 0);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-2);
    padding: 12px 18px;
    font-size: var(--text-sm);
    z-index: 999;
    animation: slideIn .2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
}

.toast.success {
    /* border: 1px solid var(--green); */
    backdrop-filter: blur(20px);

    background: #83E65820;
    /* box-shadow: 0px 0px 0px 3px oklch(47.834% 0.09751 164.881 / 0.3); */
}

.toast.error {
    border: 1px solid var(--red);
    box-shadow: 0px 0px 0px 3px oklch(62.944% 0.25583 25.982 / 0.3);
}

.toast-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    filter: brightness(0) saturate(100%) invert(68%) sepia(31%) saturate(781%) hue-rotate(97deg) brightness(94%) contrast(89%);
}

.toast.error .toast-icon {
    filter: brightness(0) saturate(100%) invert(41%) sepia(92%) saturate(1843%) hue-rotate(338deg) brightness(98%) contrast(92%);
}

@keyframes slideIn {
    from {
        transform: translateX(40px);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

@media(max-width:640px) {
    .analytics-grid {
        grid-template-columns: 1fr
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .content {
        padding: 16px
    }

    .topbar {
        padding: 14px 16px
    }

    .app {
        flex-direction: column;
    }

    .nav {
        display: none;
    }

    .sidebar {
        flex-direction: row;
        width: 100%;
        flex-wrap: nowrap;
    }

    .user-avatar {
        display: none
    }

    .user-info {
        display: none
    }

    .sidebar-footer {
        border-top: none !important;
        border-bottom: 0.6px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logout-btn {
        padding: 8px 14px;
        background: var(--white-03);
        border-radius: var(--border-radius-2);
    }


    .login-card {
        background: oklch(0.11 0 0);
        border: 0.6px solid var(--border);
        border-radius: var(--border-radius-2);
        padding: 40px;
        width: 100%;
    }

    .filter-btn {
        display: none;
    }


    .dashboard-logo {
        width: 100%;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .dash-clients-grid {
        grid-template-columns: 1fr;
    }

}

.mobile-menu-btn {
    display: none;
}

@media (max-width:768px) {

    .sidebar {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: var(--border-radius-99);
        background: var(--white-03);
        cursor: pointer;
        font-size: 20px;
    }

    .mobile-topbar-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .70);
        z-index: 9999;
        backdrop-filter: blur(4px);
    }

    .mobile-menu {
        position: absolute;
        left: 0;
        top: 0;
        width: 300px;
        height: 100%;
        background: var(--bg2);
        padding: 24px 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        animation: slideMenu .25s ease;
        border-right: 0.6px solid var(--border);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .mobile-nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 14px;
        border: none;
        background: transparent;
        color: white;
        border-radius: 12px;
        cursor: pointer;
    }

    .mobile-nav-item.active {
        background: var(--white-05);
    }

    .mobile-close-btn {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        transition: .2s;
    }

    .mobile-close-btn:hover {
        background: var(--white-05);
    }

    .mobile-close-btn img {
        width: 18px;
        height: 18px;
    }

    .login-wrap {
        padding: 16px;
    }

    .login-card {
        width: calc(100% - 40px);
        padding: 28px;
    }

    @keyframes slideMenu {
        from {
            transform: translateX(-100%);
        }

        to {
            transform: translateX(0);
        }
    }
}

@media (max-width: 768px) {

    /* Sales table horizontal scroll */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
        min-width: 720px;
    }

    /* Sticky Actions column */
    .sales-table th:last-child,
    .sales-table td:last-child {
        position: sticky;
        right: 0;
        background: var(--bg);
        z-index: 10;
        border-left: 0.6px solid var(--border);
        width: 81px !important;
    }

    /* Contacted column */
    .sales-table th:nth-last-child(2),
    .sales-table td:nth-last-child(2) {
        position: sticky;
        right: 81px;
        /* Actions width */
        background: var(--bg);
        z-index: 9;
        border-left: 0.6px solid var(--border);
    }


    .sales-table th:last-child {
        z-index: 11;
    }
    

    .td,
    .th,
    .company-input,
    .phone-input,
    .note-input {
        font-size: 16px !important;
    }

    .create-lead-btn {
        display: none;
    }
}


.whatsapp-sale {
    display: none;
}

@media (max-width: 768px) {
    .whatsapp-sale {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sales-topbar-actions {
        display: none;
    }
}


/* =========================
   USERS PAGE - SALES STYLE
========================= */

.user-name-input,
.user-email-input,
.user-password-input,
.user-role-input,
.user-input {
    width: 100%;
    padding: 8px;
    border-radius: var(--border-radius-2);
    border: 0.6px solid transparent;
    background: transparent;
    color: var(--white);
    outline: none;
    transition: all .2s ease;
    font-size: var(--text-sm);
}

.user-name-input:hover,
.user-email-input:hover,
.user-password-input:hover,
.user-role-input:hover,
.user-input:hover {
    border-color: var(--border);
    background: var(--white-03);
}

.user-name-input:focus,
.user-email-input:focus,
.user-password-input:focus,
.user-role-input:focus,
.user-input:focus {
    border-color: var(--border);
    background: var(--white-03);
}

.user-role-input,
#new-user-role {
    appearance: none;
    cursor: pointer;
}

.password-wrap {
    position: relative;
    width: 100%;
}

.password-wrap input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: .7;
    transition: .15s;
}

.toggle-password:hover {
    opacity: 1;
}

.delete-user {
    width: 32px;
    height: 32px;
    opacity: .7;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--border-radius-2);
    transition: .15s;
}

.delete-user:hover {
    opacity: 1;
    background: var(--white-05);
}

.new-user-row {
    background: var(--white-03);
}

.new-user-row td {
    border-bottom: 0.6px solid var(--border);
}

.users-table {
    width: 100%;
    table-layout: fixed;
}

.users-table td,
.users-table th {
    vertical-align: middle;
}