.theme-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.72);
        backdrop-filter: blur(7px);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        z-index: 99999;
    }

    .theme-popup {
        width: 720px;
        max-width: 100%;
        background: #fff;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
        animation: popupShow .25s ease;
    }

    @keyframes popupShow {
        from {
            opacity: 0;
            transform: translateY(20px) scale(.97);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .theme-header {
        text-align: center;
        padding: 28px 25px 18px;
    }

    .theme-header .icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 12px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #eef2ff;
        color: #4f46e5;
        font-size: 22px;
    }

    .theme-header h2 {
        margin: 0;
        font-size: 24px;
        color: #111827;
        font-weight: 700;
    }

    .theme-header p {
        margin: 7px 0 0;
        color: #6b7280;
        font-size: 14px;
    }

    .theme-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        padding: 12px 28px 25px;
    }

    .theme-option {
        position: relative;
        cursor: pointer;
    }

    .theme-option input {
        display: none;
    }

    .theme-card {
        border: 2px solid #e5e7eb;
        border-radius: 18px;
        padding: 10px;
        transition: all .25s ease;
        background: #fff;
    }

    .theme-option:hover .theme-card {
        transform: translateY(-4px);
        border-color: #a5b4fc;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
    }

    .theme-option input:checked + .theme-card {
        border-color: #4f46e5;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, .10),
                    0 15px 35px rgba(0, 0, 0, .12);
    }

    .selected-mark {
        position: absolute;
        right: 18px;
        top: 18px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #4f46e5;
        color: #fff;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        z-index: 5;
    }

    .theme-option input:checked ~ .selected-mark {
        display: flex;
    }

    /* Browser Preview */
    .browser {
        height: 220px;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
    }

    .browser-top {
        height: 30px;
        display: flex;
        align-items: center;
        padding: 0 10px;
        gap: 5px;
    }

    .browser-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #fff;
        opacity: .75;
    }

    .browser-body {
        height: calc(100% - 30px);
        display: flex;
    }

    /* OLD DESIGN */
    .old-theme {
        background: #f1f1f1;
    }

    .old-theme .browser-top {
        background: #303030;
    }

    .old-theme .sidebar {
        width: 25%;
        background: #343434;
        padding: 12px 7px;
    }

    .old-theme .side-line {
        height: 7px;
        background: #777;
        margin-bottom: 9px;
        border-radius: 2px;
    }

    .old-theme .content {
        flex: 1;
        padding: 13px;
        background: #eeeeee;
    }

    .old-theme .old-title {
        width: 45%;
        height: 10px;
        background: #555;
        margin-bottom: 14px;
    }

    .old-theme .old-boxes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }

    .old-theme .old-box {
        height: 50px;
        background: #fff;
        border: 1px solid #ddd;
    }

    .old-theme .old-table {
        margin-top: 10px;
        height: 55px;
        background: #fff;
        border: 1px solid #ddd;
    }

    /* NEW DESIGN */
    .new-theme {
        background: #f6f8fc;
    }

    .new-theme .browser-top {
        background: linear-gradient(90deg, #6e081d, #c10931);
    }

    .new-theme .sidebar {
        width: 22%;
        background: #fff;
        padding: 12px 7px;
        border-right: 1px solid #e8eaf0;
    }

    .new-theme .side-line {
        height: 7px;
        background: #dfe3f0;
        margin-bottom: 9px;
        border-radius: 5px;
    }

    .new-theme .side-line.active {
        background: linear-gradient(90deg, #6e081d, #c10931);
    }

    .new-theme .content {
        flex: 1;
        padding: 13px;
    }

    .new-theme .new-title {
        width: 42%;
        height: 10px;
        background: linear-gradient(90deg, #6e081d, #c10931);
        border-radius: 5px;
        margin-bottom: 14px;
    }

    .new-theme .new-boxes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }

    .new-theme .new-box {
        height: 52px;
        background: #fff;
        border-radius: 7px;
        box-shadow: 0 3px 10px rgba(0,0,0,.05);
    }

    .new-theme .new-chart {
        height: 60px;
        margin-top: 9px;
        background: #fff;
        border-radius: 7px;
        position: relative;
        overflow: hidden;
    }

    .new-theme .chart-line {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 15px;
        height: 28px;
        border-bottom: 2px solid #818cf8;
        transform: skewY(-8deg);
    }

    .theme-info {
        padding: 13px 6px 4px;
    }

    .theme-info strong {
        display: block;
        font-size: 16px;
        color: #111827;
    }

    .theme-info span {
        display: block;
        margin-top: 3px;
        color: #6b7280;
        font-size: 12px;
    }

    .theme-badge {
        display: inline-block;
        margin-top: 7px;
        padding: 4px 9px;
        border-radius: 20px;
        font-size: 10px;
        font-weight: 600;
        background: #f3f4f6;
        color: #6b7280;
    }

    .theme-option input:checked + .theme-card .theme-badge {
        background: #eef2ff;
        color: #4f46e5;
    }

    .theme-footer {
        padding: 0 28px 28px;
    }

    .theme-button {
        width: 100%;
        height: 48px;
        border: 0;
        border-radius: 12px;
        background: #4f46e5;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: .2s;
    }

    .theme-button:hover {
        background: #4338ca;
        transform: translateY(-1px);
    }

    .theme-note {
        text-align: center;
        margin-top: 10px;
        font-size: 11px;
        color: #9ca3af;
    }

    @media(max-width: 600px) {

        .theme-popup {
            border-radius: 18px;
        }

        .theme-options {
            grid-template-columns: 1fr;
            max-height: 55vh;
            overflow-y: auto;
            padding-left: 18px;
            padding-right: 18px;
        }

        .browser {
            height: 180px;
        }

        .theme-header {
            padding-top: 22px;
        }

        .theme-header h2 {
            font-size: 20px;
        }

        .theme-footer {
            padding: 0 18px 20px;
        }
    }