* {
    box-sizing: border-box
}

html {
    background-color: #0b0f14;
}

html.dark {
    background-color: #0b0f14;
}

html:not(.dark) {
    background-color: #ffffff;
}

:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1 --bs-pink: #d63384;
    --bs-red-bg: #fee2e2;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-pending-bg: #fff3cd;
    --bs-pending: #856404;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bright-green: rgb(19, 223, 19);
    --bs-success-bg: #dcfce7;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --alpha-black: #00000099;
    --bs-dark: #212529;
    --bs-black: #000;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0))
}

:root {
    --primary-color: #ff7800;
    --font-color: #58595b;
    --bg-color: #fff;
    --heading-color: #000000;
    --border-radius: 6px;
    --border-radius-full: 35px;
    --border-color: transparent;
    --border-color-light: #e4e6e5;
    --nav-color: #000000;
    --dropdown-color: #fff;
    --iframe-filter: grayscale(0%);
    --bg-grey: #f7f7f9;
    --bg-lightgrey: #f9f9f9;
    --layer: rgb(0 0 0 / 56%);
    --layer1: rgb(0 0 0 / 65%);
    --footer-bg: #000000;
    --footer-bglight: #222;
    --date-scheme: light;
}

.dark {
    --primary-color: #ff7800;
    --font-color: #c2c2c2;
    --bg-color: #0b0d0e;
    --heading-color: #eee;
    --border-color: rgba(255, 255, 255, 0.2);
    --border-color-light: rgba(255, 255, 255, 0.1);
    --nav-color: #fff;
    --dropdown-color: #222;
    --iframe-filter: grayscale(100%);
    --bg-grey: #222;
    --bg-lightgrey: #131617;
    --layer: rgb(0 0 0 / 65%);
    --layer1: rgb(0 0 0 / 75%);
    --footer-bg: #000;
    --footer-bglight: #111;
    --date-scheme: dark;
}

section {
    scroll-margin-top: 80px;
}


/* ======= REMOVE LIGHT BLUE HIGHLIGHTS ONCLICK ======== */
* {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

a,
img,
button,
input {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

a,
img,
button,
input {
    outline: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    /* Safari */
    -moz-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    /* Firefox */
    -ms-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    /* Internet Explorer/Edge */
    tap-highlight-color: rgba(0, 0, 0, 0) !important;
    /* Standard */
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    margin: 15px;
}

::-webkit-scrollbar-track {
    background: transparent;
    margin: 15px;
}

::-webkit-scrollbar-thumb {
    margin: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}


html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg-color) !important;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: var(--font-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.4;
    transition: background .3s ease, color .3s ease;
}

/* ========= LOADING ========= */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--alpha-black);
    backdrop-filter: blur(5px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
    background-color: var(--bs-white);
}

.spinner::before,
.spinner::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    animation: prixClipFix 1.2s linear infinite;
}

.spinner::after {
    border-color: var(--primary-color);
    animation: prixClipFix 1.2s linear infinite, rotate 0.3s linear infinite reverse;
    inset: 6px;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }

    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }

    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
    }

    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
    }
}

#loading-overlay p {
    color: var(--bs-white);
    font-size: 16px;
    margin-top: 1rem;
}


/* ======= WEBAPP LAYOUT ======== */
.app {
    display: flex;
    min-height: 100vh;
    gap: 28px;
}


/* ======= SIDEBAR ======== */
.sidebar {
    width: 280px;
    max-width: 280px;
    height: 100vh;
    background: var(--bg-grey);
    border-right: 1px solid rgba(20, 24, 32, 0.02);
    padding: 28px 20px 0px 20px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform .28s ease, box-shadow .28s ease;
    overflow-y: auto;
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bs-white);
    border: 1px solid var(--border-color-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.logo-mark img {
    width: 30px;
    height: 18px;
}

.brand h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--primary-color);
}

.brand span {
    display: block;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.nav {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nav .section-title {
    font-size: 11px;
    color: var(--font-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 6px 4px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 600;
    transition: all .14s ease;
}

.nav a .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: 1px solid var(--border-color-light);
    color: var(--heading-color);
    font-size: 16px;
}

.nav a.active {
    color: var(--primary-color);
    background: var(--bg-color);
}

.badge {
    margin-left: auto;
    background: var(--bs-red);
    color: var(--bs-white);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.pro {
    margin-left: auto;
    text-align: center;
    background: var(--bg-color);
    color: var(--font-color);
    font-size: 12px !important;
    padding: 6px 15px !important;
    border-radius: 999px;
    font-weight: 700;
}

/* ======== SIDEBAR SUB PLAN ======== */
.sub-plan-container {
    position: sticky;
    bottom: 40px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color-light);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-top: 2.5rem;
}

.sub-plan-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.sub-plan-icon {
    font-size: 24px;
    color: var(--heading-color);
}

.sub-plan-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color);
    text-transform: capitalize;
}

.sub-plan-upgrade-btn {
    display: block !important;
    margin: 0 auto !important;
    background: var(--primary-color);
    color: var(--bs-white) !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.sub-plan-upgrade-btn:hover {
    background: var(--bs-orange);
}

/* Responsive */
@media (max-width: 480px) {
    .sub-plan-container {
        padding: 14px;
    }

    .sub-plan-name {
        font-size: 14px;
    }
}



/* ======= MAIN ======= */
.main {
    flex: 1;
    padding: 0 28px 22px 28px;
    height: 100vh;
    overflow-y: auto;
}

.topbar {
    position: sticky !important;
    top: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-grey);
    padding: 8px 18px;
    border-radius: 12px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-color-light);
    z-index: 21;
}

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

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

.home-icon {
    font-size: 20px;
    color: var(--heading-color);
    background: var(--bg-color);
    border: 1px solid var(--border-color-light) !important;
    height: 40px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
}

/* ======== THEME TOGGLE ======== */
.theme-toggle {
    display: flex;
}

.theme-toggle .fa-moon {
    display: none;
}

.dark .theme-toggle .fa-sun {
    display: none;
}

.dark .theme-toggle .fa-moon {
    display: inline;
}

.profile {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-color);
    padding: 6px 10px;
    border-radius: 14px;
    border: 1px solid var(--border-color-light);
    cursor: pointer;
    transition: 0.2s;
}

.profile-trigger:hover {
    background: var(--bg-lightgrey);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 0;
    box-shadow: 0 4px 14px rgba(12, 14, 19, 0.08);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.username {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading-color);
}

.arrow {
    font-size: 13px;
    color: var(--heading-color);
    transition: 0.2s;
}

/* ======= PROFILE DROPDOWN ======= */
.dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--bg-color);
    min-width: 200px;
    border-radius: 14px;
    padding: 10px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(40, 45, 55, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.25s ease;
    z-index: 30 !important;
}

.dropdown a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
    text-decoration: none;
    transition: 0.2s;
}

.dropdown a:hover {
    background: var(--bg-grey);
}

.dropdown hr {
    border: 0;
    border-top: 1px solid var(--border-color-light);
    margin: 8px 0;
}

.logout {
    cursor: pointer;
    color: var(--bs-red);
    font-weight: 700;
}

.profile.active .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile.active .arrow {
    transform: rotate(180deg);
}

.nav a:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(12, 16, 24, 0.03)
}


/* ======== HERO CARD ========= */
.hero {
    margin-top: 18px;
    padding: 26px 60px 0 26px;
    border-radius: 14px;
    background: var(--bg-grey);
    border: 1px solid var(--border-color-light);
    min-height: 150px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-between !important;
    gap: 40px 10px;

}

.hero-first {
    width: 50%;
}

.hero .title {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.hero .sub {
    color: var(--font-color);
    font-weight: 500;
    animation: blinkGreen 0.7s infinite alternate;
}

@keyframes blinkGreen {
    0% {
        color: var(--bright-green);
    }

    100% {
        color: var(--font-color);
    }
}

.hero-btns {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
}

.hero-btns a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bs-white);
    border-radius: 10px;
    width: max-content;
    gap: 5px;
}

.hero-btns a:nth-child(1) {
    background-color: var(--bs-green);
}

.hero-btns a:nth-child(2) {
    background: var(--bs-warning);
    display: none;
}

.illustration {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.illustration img {
    display: block;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    padding: 0;
}

/* Responsive */
@media (min-width:1200px) {
    .sidebar {
        position: relative !important;
        transform: none !important;
    }

    #menuToggle {
        display: none !important;
    }
}

@media (max-width:1200px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-110%);
        z-index: 60;
        box-shadow: 12px 0 40px rgba(16, 18, 22, 0.14);
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .app.overlay::after {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(4px);
        z-index: 50;
        pointer-events: auto;
    }
}

@media (max-width:1000px) {
    .sidebar {
        width: 260px;
        max-width: 260px;
    }
}

@media (max-width: 900px) {
    .hero-btns a:nth-child(2) {
        display: flex;
    }

}

@media (max-width:820px) {

    .main {
        padding: 0 18px 18px 18px;
    }

    .search input {
        width: 120px;
    }

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

@media (max-width:575px) {
    .search {
        max-width: 100px;
        min-width: 50px;
    }

    .hero {
        flex-direction: column;
    }

    .hero-first {
        width: 100%;
    }

    .illustration {
        justify-content: center;
    }
}

@media (max-width:480px) {
    .sidebar {
        width: 240px;
        padding: 15px 15px 0 15px;
    }

    .brand h1 {
        font-size: 18px
    }

    .menu-btn {
        width: 44px;
        height: 44px
    }

    .hero .title {
        font-size: 18px
    }

    .topbar {
        padding: 8px 14px
    }

    .username {
        display: none;
    }
}



/* ======== CARDS ======== */
.cards {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width:900px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-grey);
    border: 1px solid var(--border-color-light);
    padding: 18px;
    border-radius: 12px;
    height: 75vh;
    position: relative;
    overflow: scroll;
}

/* ======= ASSETS SEARCH BOX ======= */
.searchBox {
    position: sticky;
    top: -1px;
    width: 100%;
    background-color: var(--bg-color);
    backdrop-filter: blur(1px);
    z-index: 20;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 8px 0;
}

.searchWrapper {
    position: relative;
    width: 90%;
    max-width: 500px;
}

.searchWrapper input {
    height: fit-content;
    width: 100%;
    padding: 10px 20px 10px 44px;
    border: none;
    border-radius: 12px;
    background: var(--bg-grey);
    color: var(--heading-color);
    font-size: 16px !important;
    outline: none;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .searchWrapper input {
        font-size: 14px !important;
    }
}

.searchWrapper input::placeholder {
    color: var(--font-color);
}

.searchIcon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--font-color);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 21;
}

.live-charts-tip {
    display: inline-flex;
    margin: 15px 0px 15px 5px;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    border-radius: 8px;
}



/* ========= LIVE ASSETS ROWS ========== */
.cv-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: 56px;
    overflow: hidden;
    background: var(--bg-color);
    border-radius: 10px;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.cv-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

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

.cv-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bs-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.cv-symbol-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.cv-symbol {
    font-weight: 700;
    font-size: 16px;
    color: var(--heading-color);
}

.cv-time {
    font-size: 10px;
    color: var(--font-color);
    margin-top: 4px;
}

.cv-change {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.cv-pill {
    font-weight: 700;
    font-size: 10px;
    padding: 6px 10px;
    border-radius: 16px;
    color: var(--bg-color);
    display: inline-block;
    white-space: nowrap;
}

.cv-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 120px;
}

.cv-price {
    font-weight: 800;
    font-size: 15px;
    color: var(--heading-color);
}

.cv-hl {
    font-size: 10px;
    color: var(--font-color);
    text-align: right;
}

.cv-green {
    background: var(--bs-teal);
}

.cv-red {
    background: var(--bs-danger);
}

#crypto-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cv-list-gap {
    display: none;
}

#tvChart {
    width: 100%;
    height: 420px !important;
    border-radius: 8px;
}

.cv-modal-box {
    width: 95%;
    max-width: 1000px;
    background: var(--bs-white);
    color: var(--bs-black);
    border-radius: 12px;
    padding: 12px 12px 18px 12px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cv-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.cv-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;
    background: var(--bs-gray);
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--bs-white);
    padding: 4px 10px;
    border-radius: 8px;
}


/* Responsive */
@media (max-width:640px) {
    .cv-row {
        grid-template-columns: 1fr 70px 80px;
        height: 64px;
        padding: 0 10px;
        gap: 8px;
    }

    .cv-logo {
        width: 36px;
        height: 36px;
    }

    .cv-symbol {
        font-size: 14px;
    }

    .cv-time {
        font-size: 10px;
    }

    .cv-change {
        justify-content: center !important;
        min-width: unset;
    }

    .cv-pill {
        font-size: 12px;
        padding: 4px 8px;
    }

    .cv-right {
        min-width: unset;
        align-items: flex-end;
    }

    .cv-price {
        font-size: 13px;
    }

    .cv-hl {
        font-size: 10px;
    }
}

@media (max-width: 365px) {
    .cv-row {
        grid-template-columns: 1fr 50px 60px;
        gap: 4px;
        padding: 0 8px;

    }

    .cv-logo {
        width: 30px;
        height: 30px;
    }

    .cv-symbol {
        font-size: 12px !important;
    }

    .cv-time {
        font-size: 8px !important;
    }

    .cv-pill {
        font-size: 8px !important;
        padding: 3px 6px;
    }

    .cv-price {
        font-size: 12px !important;
    }

    .cv-hl {
        font-size: 8px !important;
    }
}




/* ======= TRADE TRANSACTION ======== */
.tx-widget {
    width: 100%;
    font-family: Poppins, system-ui, Arial;
    color: var(--heading-color);
}

.tx-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tx-left {
    flex: 1;
    width: 100%;
}

.tx-current-price {
    font-weight: 700;
    font-size: 18px;
    text-align: right;
    color: var(--heading-color);
}

.tx-label {
    display: block;
    margin: 6px 0 6px;
    font-weight: 900;
    font-size: 16px;
    color: var(--heading-color);
    margin-top: 2rem;
}

.tx-select,
.tx-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color-light);
    background: var(--bg-color);
    color: var(--heading-color);
    font-size: 14px;
    box-sizing: border-box;
}

.tx-select:focus,
.tx-input:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

.tx-available {
    margin-top: 8px;
    font-size: 13px;
    color: var(--font-color);
    text-align: right;
}

.tx-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.tx-btn {
    padding: 10px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.tx-buy {
    background: var(--bs-teal);
    color: var(--bs-white);
}

.tx-sell {
    background: var(--bs-red);
    color: var(--bs-white);
}


/* ======= OPEN TRADES ======= */
.nodata {
    display: block;
    margin: 0 auto;
    width: 165px;
    height: 110px;
}

.tx-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--heading-color);
    padding: 7px 10px;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.tx-h a {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--heading-color);
}

.tx-orders-modern {
    background: transparent;
    padding: 0;
    max-height: none;
    overflow: visible;
    border: none;
    box-shadow: none;
}

.tx-order {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 16px 10px;
    background: var(--bg-color);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tx-order::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--bs-teal);
    border-radius: 0 4px 4px 0;
}

.tx-order.sell::before {
    background: var(--bs-red);
}

.tx-order-left {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.tx-order-symbol {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading-color);
}

.tx-order-action {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tx-order-action.buy {
    background: var(--bs-success-bg);
    color: var(--bs-success);
}

.tx-order-action.sell {
    background: var(--bs-red-bg);
    color: var(--bs-red);
}

.tx-order-right {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex: 1;
    gap: 10px;
}

.tx-order-timer {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 14px;
}

.loader {
    text-align: center;
    margin: 0 auto;
    display: inline-block;
    vertical-align: top;
}

svg path,
svg rect {
    fill: var(--primary-color);
}



.tx-order-close {
    position: absolute;
    right: -5px;
    top: 12%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.tx-close-btn {
    width: max-content;
    height: fit-content;
    background: var(--bs-red);
    border: none;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    color: var(--bs-white);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.tx-close-btn:hover {
    background: var(--bs-danger);
}



/* =============== TRANSACTION TABLE ============= */
.transactions-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 3rem;
    border-radius: 16px;
    overflow: scroll;
}

.tx-tabs-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    padding: 12px 20px;
    border-radius: 14px;
    margin: 20px auto;
    max-width: fit-content;
}

.tx-tab-btn {
    position: relative;
    z-index: 1;
    width: fit-content;
    padding: 11px 18px;
    background: transparent;
    border: none;
    color: var(--heading-color);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.35s ease;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    gap: 4px;
}

.tx-tab-btn:hover {
    color: var(--primary-color);
}

.tx-tab-btn.active {
    background: var(--primary-color);
    color: var(--bs-white);
    transform: translateY(-1px);
}

.tx-tables-wrapper {
    height: 600px;
    overflow-y: auto;
}

.tx-table-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tx-table-content.active {
    display: block;
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--heading-color);
}

.tx-table th {
    background: var(--border-color-light);
    color: var(--heading-color);
    padding: 14px 10px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
}

.tx-table th:first-child {
    border-top-left-radius: 10px;
}

.tx-table th:last-child {
    border-top-right-radius: 10px;
}

.tx-table td {
    padding: 14px 10px;
}

.no-data-row {
    text-align: center;
    padding: 60px 20px;
    color: var(--heading-color);
    font-style: italic;
}

.no-data-row td {
    border: none !important;
}


/* ====== Extra Table Design ====== */
.direction.buy {
    color: var(--bs-teal);
    font-weight: bold;
}

.direction.sell {
    color: var(--bs-red);
    font-weight: bold;
}

.market-tag {
    background: var(--bs-green);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    color: var(--bs-success-bg);
}

.trade-type-cell {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: flex-start;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.status-active {
    background: var(--bs-success-bg);
    color: var(--bs-success);
}

.status-closed {
    background: var(--nav-color);
    color: var(--bg-grey);
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .tx-tabs-header {
        padding: 10px 16px;
    }

    .tx-tab-btn {
        padding: 10px 10px;
        font-size: 13px;
    }

    .tx-table th,
    .tx-table td {
        padding: 10px 6px;
        font-size: 13px;
    }

    .tx-tables-wrapper {
        height: 400px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


/* ========== DEPOSIT & WITHDRAW CARD ========= */
.deposit-card,
.withdraw-card {
    height: max-content;
    margin-top: 2rem;
}

.progress-container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 22%;
    left: 65px;
    right: 40px;
    height: 3px;
    background: var(--font-color);
    z-index: 1;
    transition: background 0.4s ease;
}

.withdraw-card .withdraw-form .progress-container .progress-line {
    left: 40px;
    right: 30px;
}

.progress-line.active {
    background: var(--primary-color);
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--font-color);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    transition: all 0.4s ease;
    margin-left: 45px;
}

.withdraw-card .withdraw-form .progress-container .step {
    margin-left: 10px;
}

.step.active {
    background: var(--primary-color);
    transform: scale(1.1);
}

.step-label {
    margin-top: 8px;
    font-size: 14px;
    color: var(--heading-color);
    text-align: center;
}

.step.active+.step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.deposit-form label,
.withdraw-form label {
    display: block;
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
    color: var(--heading-color);
}

.deposit-form select,
.deposit-form input,
.withdraw-form select,
.withdraw-form input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-color);
    color: var(--heading-color);
    border: 1px solid var(--border-color-light);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
}

.deposit-form select:focus,
.deposit-form input:focus,
.withdraw-form select:focus,
.withdraw-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.crypto-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.crypto-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px;
    border-radius: 12px;
    background: var(--border-color-light);
    color: var(--heading-color);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crypto-btn.active {
    background: var(--bs-teal);
    color: var(--bs-white);
}

.crypto-btn img {
    width: 20px;
    height: 20px;
}

.wallet-input-group {
    position: relative;
    margin-top: 8px;
}

.saved-address-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color-light);
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 8px;
    background: var(--bg-color);
    color: var(--heading-color);
}

#walletAddress {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 1px solid var(--border-color-light);
    border-radius: 12px;
    font-size: 15px;
}

.save-btn {
    position: absolute;
    right: 4px;
    top: 8px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--bs-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-btn:hover {
    background: var(--bs-orange);
}

.address-note {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--bs-warning);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
}

.submit-btn {
    width: 58px;
    height: 58px;
    margin-top: 1rem;
    float: right;
    background: var(--primary-color);
    color: var(--bs-white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--bs-orange);
}

.submit-btn:disabled {
    background: var(--bs-gray);
    color: var(--bs-white);
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 480px) {

    .deposit-card,
    .withdraw-card {
        padding: 1.5rem;
    }

    .submit-btn {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}


/* ========== DEPOSIT CONFIRMATION CARD ========== */
.deposit-confirmation-card {
    height: max-content;
    margin-top: 2rem;
}

.dc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.dc-label {
    display: block;
    font-size: 16px;
    color: var(--heading-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.dc-asset-item,
.dc-network-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-color);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.dc-coin-icon,
.dc-network-logo {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    object-fit: contain;
}

.dc-coin-name strong {
    color: var(--heading-color);
}

.dc-address-section {
    margin-bottom: 32px;
}

.dc-address-box {
    position: relative;
    margin-top: 10px;
}

.dc-address-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 1px solid var(--border-color-light);
    border-radius: 12px;
    background: var(--bg-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--heading-color);
    user-select: all;
    margin-bottom: 5px;
}

.dc-copy-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--heading-color);
    transition: all 0.2s;
}

.dc-copy-btn:hover {
    background: var(--bg-grey);
}

.dc-copy-btn.copied {
    color: var(--bs-green);
}

.dc-address-note {
    color: var(--bs-warning);
    margin-top: 45px !important;
}

.dc-bottom {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

.dc-qr img {
    width: 140px;
    height: 140px;
}

.dc-details {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    font-size: 13.5px;
    color: var(--heading-color);
}

.dc-detail-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color-light);
}

.dc-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dc-detail-row strong {
    font-weight: 700;
    color: var(--bs-green);
}

/* Responsive */
@media (max-width: 600px) {
    .dc-header {
        flex-direction: row;
    }

    .dc-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}



/* =========== DEPOSIT TABLE ========== */
.deposits-no-data {
    text-align: center;
    font-style: italic;
    color: var(--font-color);
}

.deposits-no-data-text {
    padding: 40px 0;
}

.deposits-row {
    transition: background 0.2s;
}

.deposits-crypto-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.deposits-crypto-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
}

.deposits-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.deposits-status.success {
    background: var(--bs-success-bg);
    color: var(--bs-green);
}

.deposits-status.pending {
    background: var(--bs-pending-bg);
    color: var(--bs-pending);
}

.deposits-status.failed {
    background: var(--bs-red-bg);
    color: var(--bs-red);
}

.deposits-tx-id {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--heading-color);
    letter-spacing: 0.5px;
}


/* ======== BALANCE CARD ========= */
.balance-card {
    margin-top: 2rem;
    height: max-content;
    overflow: auto;
}

.balance-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.balance-title {
    font-size: 15px;
    color: var(--heading-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.eye-toggle {
    background: none;
    border: none;
    color: var(--heading-color);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin: 12px 0;
    letter-spacing: -0.5px;
    color: var(--heading-color);
    transition: all 0.3s ease;
}

.balance-amount.hidden {
    letter-spacing: 4px;
    color: var(--bs-gray);
}

.balance-label {
    font-size: 14px;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--nav-color);
}

.balance-row:first-of-type {
    border-top: none;
}

.balance-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--heading-color);
    transition: all 0.3s ease;
}

.balance-value.hidden {
    letter-spacing: 4px;
    color: var(--bs-gray);
}

.hidden-balance {
    display: none;
}

.hidden-balance {
    letter-spacing: 4px;
    color: var(--font-color);
}


@media (max-width: 480px) {
    .balance-card {
        padding: 24px;
        border-radius: 20px;
    }

    .balance-amount {
        font-size: 32px;
    }
}

/* ======= KYC FORM ======= */
.kyc-card {
    margin-top: 2rem;
    height: max-content;
}

.kyc-card .kyc-form .progress-container .step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    transition: all 0.4s ease;
    margin-left: 20px;
}

.kyc-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.kyc-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.kyc-form label {
    display: block;
    margin: 1.8rem 0 0.6rem;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 15px;
}

.kyc-form input,
.kyc-form select {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--border-color-light);
    border-radius: 14px;
    font-size: 15px;
    background: var(--bg-color);
    color: var(--heading-color);
    transition: all 0.3s ease;
}

input[type="date"],
input[type="datetime-local"],
input[type="time"] {
    color-scheme: var(--date-scheme) !important;
}

input:disabled {
    cursor: not-allowed !important;
}

.kyc-form input:focus,
.kyc-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.kyc-note {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--bs-warning);
    font-weight: 500;
}

.kyc-btn-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.kyc-prev-btn {
    width: 55px;
    height: 55px;
    background: var(--bg-color);
    border: 1px solid var(--border-color-light);
    border-radius: 50%;
    font-weight: 600;
    color: var(--nav-color);
    cursor: pointer;
    font-size: 20px;
}

.kyc-prev-btn:hover {
    background: var(--bg-grey);
    transition: 0.5s;
}

.kyc-next-btn,
#kycSubmitBtn {
    margin-top: 1rem;
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: var(--bs-white);
    border: none;
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    font-size: 20px;
}

.kyc-next-btn:hover,
#kycSubmitBtn:hover {
    background: var(--bs-orange);
    transition: 0.5s;
}

.kyc-review {
    text-align: center;
    padding: 20px 0;
}

.kyc-review h3 {
    font-size: 24px;
    margin: 16px 0 12px;
    color: var(--heading-color);
}

.kyc-review p {
    color: var(--font-color);
    font-size: 15px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
    .step-label {
        font-size: 11px !important;
    }

    .kyc-card .kyc-form .step {
        margin-left: 70px;
    }
}


/* ======= KYC STATUS ======== */
.kyc-status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    min-height: fit-content;
    color: var(--heading-color);
}

.kyc-status-container .status-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.kyc-status-container.pending .status-icon {
    color: var(--bs-warning);
}

.kyc-status-container.success .status-icon {
    color: var(--bs-teal);
}

.kyc-status-container.failed .status-icon {
    color: var(--bs-red);
}

.kyc-status-container h3 {
    font-size: 28px;
    margin: 0 0 16px;
    color: var(--heading-color);
}

.kyc-status-container p {
    font-size: 16px;
    color: var(--font-color);
    line-height: 1.6;
    max-width: 400px;
}

.refresh-btn {
    margin-top: 20px;
    padding: 14px 20px;
    background: var(--primary-color);
    color: var(--bs-white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: var(--bs-orange);
    transform: translateY(-2px);
}


/* ======= AUTHENTICATIONS SETTINGS ======= */
.account-settings-card {
    margin-top: 2rem;
    height: max-content;
    padding: 28px;
}

.settings-header {
    text-align: center;
    margin-bottom: 32px;
}

.settings-header h3 {
    font-size: 24px;
    color: var(--heading-color);
    margin: 0 0 8px 0;
}

.settings-header p {
    color: var(--font-color);
    font-size: 15px;
    margin: 0;
}

.settings-tabs {
    display: flex;
    background: var(--bg-color);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 32px;
    gap: 8px;
    font-family: "Poppins" !important;
}

.tab-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--font-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--bs-white);
}

.settings-form label {
    display: block;
    margin: 20px 0 8px;
    font-weight: 600;
    color: var(--heading-color);
}

.settings-form input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color-light);
    border-radius: 14px;
    background: var(--bg-color);
    color: var(--heading-color);
    font-size: 15px;
    transition: all 0.3s;
}

.settings-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.settings-form input:disabled {
    background: var(--bg-grey);
    color: var(--bs-gray);
    cursor: not-allowed;
}

.form-group {
    position: relative;
}

.see,
.unsee {
    position: absolute;
    color: var(--heading-color);
    right: 12px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    background-color: transparent;
    font-size: 18px;
}


.settings-form .submit-btn {
    width: 100%;
    margin-top: 32px;
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: var(--bs-white);
    border: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.settings-form .submit-btn:hover {
    background: var(--bs-orange);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Responsive */
@media (max-width: 480px) {
    .account-settings-card {
        padding: 20px;
    }

    .settings-tabs {
        padding: 4px;
    }

    .tab-btn {
        font-size: 14px;
        padding: 12px 8px;
    }
}

@media (max-width: 380px) {
    .tab-btn {
        font-size: 10px;
    }
}


/* ======== USER PROFILE ======= */
.profile-card {
    margin-top: 2rem;
    height: max-content;
    border: 1px solid var(--border-color-light);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color-light);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bs-white);
    border: 4px solid var(--bg-color);
    box-shadow: 0 4px 14px rgba(12, 14, 19, 0.08);
}

.profile-info h3.profile-username {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--heading-color);
}

.profile-info p.profile-email {
    margin: 8px 0 0;
    color: var(--font-color);
    font-size: 16px;
}

.profile-field {
    margin-bottom: 28px;
    position: relative;
}

.profile-edit {
    position: absolute;
    right: 12px;
    top: 68%;
    transform: translateY(-50%);
    background-color: transparent;
    font-size: 18px;
    color: var(--font-color);
}

.profile-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 15px;
}

.profile-input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color-light);
    border-radius: 18px;
    background: var(--bg-color);
    color: var(--heading-color);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.profile-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.profile-input-disabled {
    background: var(--bg-grey);
    color: var(--bs-gray);
    cursor: not-allowed;
    opacity: 0.9;
}

.profile-save-btn {
    margin-top: 20px;
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: var(--bs-white);
    border: none;
    border-radius: 50%;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    float: right;
}

.profile-save-btn:hover {
    background: var(--bs-orange);
}

/* Mobile */
@media (max-width: 480px) {
    .profile-card {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }
}



/* ======= CONTACT MODAL ======= */
.contact-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.contact-overlay.active {
    display: flex;
}

.contact-modal {
    background: var(--bg-color);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color-light);
    position: relative;
}

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

.contact-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--heading-color);
    font-weight: 700;
}

.contact-close {
    background: var(--bg-grey);
    border-radius: 10px;
    color: var(--font-color);
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
    border: none;
}

.contact-close:hover {
    color: var(--heading-color);
}

.contact-form .form-group:nth-child(1),
.contact-form .form-group:nth-child(2) {
    display: none;
}

.contact-form label {
    display: block;
    margin: 20px 0 8px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    background: var(--bg-color);
    font-size: 15px;
    transition: all 0.3s ease;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .submit-btn {
    margin-top: 24px;
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: var(--bs-white);
    border: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .submit-btn:hover {
    background: var(--bs-orange);
}

/* Responsive */
@media (max-width: 480px) {
    .contact-modal {
        padding: 24px;
        border-radius: 20px;
    }

    .contact-header h3 {
        font-size: 22px;
    }
}



/* ====== SUB PLANS ======= */
.plans-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.plan-card {
    background: var(--bg-grey);
    border: 1px solid var(--border-color-light);
    border-radius: 20px;
    padding: 12px 7px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card.active {
    position: relative;
    border: 2px solid var(--primary-color);
    overflow: visible;
}

@media (max-width: 663px) {
    .plan-card.active {
        margin-top: 2rem;
    }
}

.plan-card.active::after {
    content: "\f521";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 30px;
    color: var(--primary-color);
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.plan-header {
    margin-bottom: 10px;
    position: relative;
}

.plan-header h4 {
    font-size: 18px;
    color: var(--heading-color);
    margin: 0;
    font-weight: 900;
}

.popular-tag {
    position: absolute;
    top: 33px;
    right: -46px;
    background: var(--bs-green);
    color: var(--bs-white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(90deg);
}

.plan-rate {
    font-size: 40px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 8px 0;
}

.plan-desc {
    color: var(--font-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.plan-more {
    display: block;
    margin: 10px 0;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.plan-more:hover {
    color: var(--bs-orange);
}

.plan-subscribe {
    width: 70%;
    padding: 16px 0px;
    background: var(--primary-color);
    color: var(--bs-white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-subscribe:hover {
    background: var(--bs-orange);
    transform: translateY(-2px);
}

/* BILLING TOGGLE */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px 0 10px 0;
    font-size: 16px;
}

.toggle-label {
    font-weight: 600;
    color: var(--font-color);
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: var(--primary-color);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--font-color);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: var(--bg-color);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.save-tag {
    background: var(--bs-green);
    color: var(--bs-white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    display: block;
    margin: 0 auto;
    width: fit-content;
}

/* PLANS — UPDATED WITH PRICES */
.plan-price {
    margin: 20px 0;
}

.price-amount {
    font-size: 25px;
    font-weight: 700;
    color: var(--heading-color);
}

.plan-card:first-child .plan-subscribe {
    cursor: default;
}


/* ======= SUBSCRIPTION MODAL ======== */
.sub-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.sub-modal-overlay.active {
    display: flex;
}

.sub-modal {
    background: var(--bg-color);
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.sub-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--bg-grey);
    border: none;
    border-radius: 50%;
    color: var(--heading-color);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.sub-modal-close:hover {
    transform: scale(1.1);
}

.sub-modal-header h3 {
    font-size: 19px;
    color: var(--heading-color);
    margin: 0 0 24px;
}

.sub-modal-plan,
.sub-modal-rate,
.sub-modal-price,
.sub-modal-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color-light);
    font-size: 14px;
}

.sub-modal-plan span,
.sub-modal-rate span,
.sub-modal-price span,
.sub-modal-balance span {
    color: var(--font-color);
}

.sub-selected-plan,
.sub-rate-value,
.sub-price-value,
#userBalance {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 14px;
}

.sub-confirm-btn {
    float: right;
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: var(--bs-white);
    border: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.sub-confirm-btn:hover {
    background: var(--bs-orange);
}



/* ======== ADMIN PRESET TABLE ========= */
.admin-users-container {
    margin-top: 2rem;
    background: var(--bg-grey);
    border-radius: 12px;
    padding: 0;
    padding-bottom: 5px;
}

.admin-users-table {
    width: 100%;
    font-size: 15px;
}

.admin-users-table th {
    background: var(--primary-color);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--bs-white);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-users-table th:first-child {
    position: sticky;
    left: 0;
    border-top-left-radius: 12px;
    z-index: 21;
}

.admin-users-table th:last-child {
    border-top-right-radius: 12px;
}

.admin-users-table td {
    padding: 6px;
    border: 1px solid var(--border-color-light);
    color: var(--heading-color);
}

.admin-users-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-grey);
}

.admin-users-table td .admin-actions,
.admin-image-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
}

.admin-actions-btn,
.admin-image-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 4px 7px;
    height: 28px;
    border-radius: 5px;
}

.admin-actions-btn.edit {
    color: var(--bs-white);
    background: var(--bs-blue);
}

.admin-actions-btn.delete {
    color: var(--bs-white);
    background: var(--bs-red);
}

.admin-actions-btn:hover {
    transform: scale(1.2);
}

/* POPUP */
.admin-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.admin-popup-overlay.active {
    display: flex;
}

.admin-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    padding: 25px 30px;
    background: var(--bg-grey);
    color: var(--heading-color);
    border: 1px solid var(--border-color-light);
    border-radius: 20px;
    z-index: 1000;
    text-align: center;
    width: 80%;
    max-width: 340px;
    animation: fadeInUp 0.3s ease forwards;
}

.admin-popup h3 {
    font-size: 18px;
    color: var(--heading-color);
    margin: 0 0 8px;
}

.admin-popup p {
    color: var(--font-color);
    font-size: 14px;
    margin: 0 0 32px;
}

.admin-popup-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.admin-btn {
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 35%;
    height: inherit;
    padding: 10px 10px;
    border: 1px solid var(--border-color-light);
    background: var(--primary-color);
    border-radius: 10px;
}

.admin-btn-secondary {
    background: var(--bs-gray);
    color: var(--bs-white);
}

.admin-btn-secondary:hover {
    background: var(--bs-gray-dark);
}

.admin-btn-danger {
    background: var(--bs-red);
    color: var(--bs-white);
}

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

/* EDIT MODAL */
.admin-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.admin-modal-overlay.active {
    display: flex;
}

.admin-edit-modal {
    background: var(--bg-grey);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 520px;
}

.admin-modal-header {
    display: flex;
    justify-content: right;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--font-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-modal-close:hover {
    color: var(--heading-color);
}

.admin-edit-form label {
    display: block;
    margin: 14px 0 8px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 15px;
}

.admin-edit-form input,
.admin-edit-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--heading-color);
    font-size: 12px;
    transition: all 0.3s ease;
}

.admin-edit-form input:focus,
.admin-edit-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.editGroup {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.editGroup div {
    flex: 1;
}

.admin-btn-primary {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bs-white);
    border: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    float: right;
}

.admin-btn-primary:hover {
    background: var(--bs-orange);
}

/* Responsive */
@media (max-width: 768px) {

    .admin-edit-modal {
        padding: 20px 18px;
    }
}



/* ====== IMAGE VIEW/DOWNLOAD ICONS ======== */
.admin-image-btn.view {
    background: var(--bs-orange);
    color: var(--bs-white);
}

.admin-image-btn.download {
    background: var(--bs-green);
    color: var(--white);
}

.admin-image-btn:hover {
    transform: scale(1.2);
}

/* IMAGE MODAL */
.admin-image-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.admin-image-modal-overlay.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.admin-image-modal {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    padding: 32px;
    background: var(--bs-white);
    border-radius: 24px;
}

#imageView {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
}

#closeImageModal {
    background: var(--bs-white);
    color: var(--bs-black);
    border-radius: 8px;
    height: 30px;
    width: 30px;
}


/* ======= SUBS MGT ======= */
.sub-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.sub-status.active {
    background: var(--bs-success-bg);
    color: var(--bs-success);
}

.sub-status.expired {
    background: var(--nav-color);
    color: var(--bg-color);
}

.sub-status.cancelled {
    background: var(--bs-red-bg);
    color: var(--bs-red);
}


/* ======== GLOBAL ADMIN SEARCH ========*/
.admin-search-toggle {
    display: flex;
    align-items: center;
    margin: 5px 0 -15px 0 !important;
    justify-content: center;
}

.admin-search-input {
    flex: 1;
    max-width: 0;
    opacity: 0;
    padding: 8px 15px;
    border: 1px solid var(--border-color-light);
    background: var(--bg-grey);
    color: var(--heading-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.admin-search-input::placeholder {
    color: var(--font-color);
}

.admin-search-input.show {
    max-width: 400px;
    opacity: 1;
    pointer-events: auto;
}

.admin-search-input:focus {
    border-color: var(--primary-color);
}

.admin-users-table tr.hidden {
    display: none;
}


/* SEARCH NOT FOUND MESSAGE */
.admin-search-empty {
    display: none;
    text-align: left;
    padding: 24px;
    font-size: 15px;
    color: var(--heading-color);
}

.admin-search-empty.show {
    display: table-row;
}

.admin-search-empty td {
    padding: 24px;
    font-style: italic;
    border: none;
}













































































/*
90000 = 1
500 = x
90000x = 500
x = 500 / 90000
x = 0.005555...%
*/






/* ======== LOGOUT POPUP STYLING ======== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    z-index: 999;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: block;
    opacity: 1;
}

#popup,
#confirmationPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    padding: 25px 30px;
    background: var(--bg-grey);
    color: var(--heading-color);
    border: 1px solid var(--border-color-light);
    border-radius: 20px;
    display: none;
    z-index: 1000;
    text-align: center;
    width: 340px;
    animation: fadeInUp 0.3s ease forwards;
}

@media (max-width: 480px) {

    #popup,
    #confirmationPopup {
        width: 80%;
    }

}

#popup.show,
#confirmationPopup.show {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.25s ease;
}

/* ======= HEADER CLOSE BUTTON ======== */
.popup .close,
.close-popup {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
    color: var(--bs-white);
    transition: color 0.3s ease;
}

.popup .close:hover,
.close-popup:hover {
    color: var(--bs-red);
}

#confirmationMessage {
    color: var(--heading-color);
    font-weight: 400;
}

.popup-content h3 {
    color: var(--bs-red);
}

.popup-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 20px;
}

.confirm-button {
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 50%;
    height: inherit;
    padding: 10px 20px;
    border: 1px solid var(--border-color-light);
    background: var(--bg-color);
    border-radius: 10px;
}

#confirmYes {
    color: var(--bs-red);
}

#confirmNo {
    color: var(--nav-color);
}

/* ======= Responsive for very small screens ======== */
@media (max-width: 345px) {
    .back-home {
        display: none;
    }
}

@media (max-width: 320px) {

    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    table,
    label,
    div,
    input,
    select,
    span {
        font-size: 12px !important;
    }

    .sidebar {
        width: 200px;
        padding: 10px 10px 0px 10px;
    }
}