/* MEGATOP PREMIUM DASHBOARD V5 */

body.mt-v5 {
    --v5-bg: #0e0b19;
    --v5-card: #1b152b;
    --v5-border: #392d50;
    --v5-yellow: #facc15;
    --v5-blue: #3b82f6;
    --v5-purple: #a855f7;
    --v5-red: #ef4444;
    font-family: system-ui,-apple-system,sans-serif;
    padding-bottom: 110px !important;
}

.mt-v5-dashboard > .max-w-4xl {
    max-width: 1180px !important;
}

body.mt-v5-admin {
    max-width: 1440px !important;
}

.mt-v5 .megatop-brand {
    max-width: 1180px !important;
    width: 100% !important;
    margin: 5px auto 22px !important;
    padding: 20px !important;
    border-radius: 22px !important;
    background: linear-gradient(
        120deg,#15234b,#2b1745,#39172e
    ) !important;
    box-shadow: 0 12px 35px #0003 !important;
}

.mt-v5 .megatop-brand img {
    max-width: 150px !important;
    max-height: 70px !important;
    object-fit: contain;
}

.mt-v5 .megatop-brand-name {
    font-size: 21px !important;
    font-weight: 950 !important;
}

.mt-v5 .megatop-brand-sub {
    font-size: 12px !important;
    margin-top: 4px;
}

/* CABECALHOS DAS AREAS */

.mt-v5-hero {
    position: relative;
    overflow: hidden;
    padding: 25px 22px;
    margin-bottom: 20px;
    border: 1px solid var(--v5-border);
    border-left: 4px solid var(--section-color);
    border-radius: 22px;
    background: linear-gradient(
        120deg,#211a35,#151020
    );
}

.mt-v5-hero::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -55px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--section-color);
    opacity: .08;
    pointer-events: none;
}

.mt-v5-hero-label {
    color: var(--section-color);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mt-v5-hero h2 {
    color: white;
    font-size: clamp(21px,4vw,29px);
    font-weight: 900;
    line-height: 1.25;
}

.mt-v5-hero p {
    color: #c1b8d4;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 8px;
    max-width: 650px;
}

/* SALDO */

.mt-v5 .from-blue-900.to-indigo-900 {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        120deg,#142c75,#482080,#632348
    ) !important;
    border: 1px solid #7653b1 !important;
    border-radius: 24px !important;
    padding: 26px !important;
    min-height: 145px;
    box-shadow: 0 12px 32px #0004;
}

.mt-v5 .from-blue-900.to-indigo-900 h2 {
    font-size: clamp(27px,5vw,40px) !important;
    letter-spacing: -1px;
    margin-top: 6px;
}

.mt-v5 .from-blue-900.to-indigo-900 button {
    border-radius: 12px !important;
    padding: 12px 17px !important;
    box-shadow: 0 5px 18px #facc1520;
}

/* ATALHOS RAPIDOS */

.mt-v5-shortcuts {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin: 18px 0;
}

.mt-v5-shortcut {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 17px;
    border-radius: 17px;
    border: 1px solid #ffffff18;
    border-top: 3px solid var(--shortcut-color);
    background: #20182f;
    min-width: 0;
    color: white;
    transition: transform .2s,background .2s;
}

.mt-v5-shortcut:hover {
    transform: translateY(-3px);
    background: #2b2040;
}

.mt-v5-shortcut i {
    color: var(--shortcut-color);
    font-size: 23px;
    margin-bottom: 13px;
}

.mt-v5-shortcut strong {
    font-size: 14px;
    font-weight: 800;
}

.mt-v5-shortcut small {
    font-size: 11px;
    color: #bcb5d0;
    margin-top: 5px;
}

/* CARTOES */

.mt-v5 .tab-page .bg-gray-900 {
    background: linear-gradient(
        145deg,#20192f,#171222
    ) !important;
    border-color: #3c3053 !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 22px #0002;
}

.mt-v5 .tab-page h3 {
    font-size: 19px !important;
    font-weight: 850 !important;
    margin-top: 8px;
}

.mt-v5 .tab-page h4 {
    font-weight: 800 !important;
}

.mt-v5 .plano-card {
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 8px 24px #0003;
}

.mt-v5 .plano-card h4 {
    font-size: 18px !important;
}

.mt-v5 .plano-card button {
    padding: 12px !important;
    font-size: 13px !important;
    border-radius: 11px !important;
}

.mt-v5 .filter-btn {
    padding: 10px 17px !important;
    border-radius: 25px !important;
    font-size: 12px !important;
}

/* REVENDEDORES */

.mt-v5 #page-revenda .bg-gray-900,
.mt-v5 #page-admin-revendas .bg-gray-900 {
    border-top: 3px solid #a855f7 !important;
}

.mt-v5 #page-revenda button[onclick="solicitarRevenda()"] {
    background: linear-gradient(
        110deg,#6d28d9,#9333ea
    ) !important;
    border-radius: 13px !important;
    padding: 14px 20px !important;
}

.mt-v5 #page-revenda .bg-purple-600 {
    box-shadow: 0 4px 18px #9333ea20;
}

/* RECARGAS */

.mt-v5-payment-guide {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.mt-v5-payment-step {
    background: #21192f;
    border: 1px solid #49345f;
    border-radius: 15px;
    padding: 17px 10px;
    text-align: center;
}

.mt-v5-payment-step i {
    display: block;
    font-size: 25px;
    color: var(--step-color);
    margin-bottom: 12px;
}

.mt-v5-payment-step strong {
    display: block;
    color: #fff;
    font-size: 12px;
}

.mt-v5-payment-step small {
    display: block;
    color: #bcb5d0;
    font-size: 11px;
    margin-top: 5px;
    line-height: 1.5;
}

.mt-v5 #pixInput {
    border: 1px solid #60478c !important;
    background: #100c1e !important;
    padding: 13px !important;
    color: #93c5fd !important;
}

.mt-v5 #page-recarga form {
    padding: 22px !important;
    border-radius: 18px !important;
    background: #151021 !important;
    border: 1px solid #49345f !important;
}

.mt-v5 #recarga_comprovante {
    border: 2px dashed #62488b !important;
    padding: 18px 12px !important;
    cursor: pointer;
}

.mt-v5 #page-recarga button[type="submit"] {
    min-height: 46px;
    font-size: 13px !important;
}

/* CAMPOS E BOTOES */

.mt-v5 input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.mt-v5 select,
.mt-v5 textarea {
    border-radius: 11px !important;
    min-height: 40px;
    border-color: #49395f !important;
}

.mt-v5 textarea {
    min-height: 65px;
}

.mt-v5 button {
    transition: background .2s,box-shadow .2s,transform .2s;
}

.mt-v5 button:active:not(:disabled) {
    transform: scale(.98);
}

.mt-v5 button:disabled {
    cursor: not-allowed;
}

.mt-v5 .tab-page button.rounded,
.mt-v5 .tab-page button.rounded-lg {
    border-radius: 10px !important;
}

/* TABELAS */

.mt-v5 .overflow-x-auto {
    border-radius: 15px !important;
    scrollbar-width: thin;
    scrollbar-color: #60478c #171222;
}

.mt-v5 table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.mt-v5 table thead th {
    background: #302345 !important;
    color: #e9ddff !important;
    font-weight: 800 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.mt-v5 table tbody td {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    border-bottom: 1px solid #ffffff08;
}

.mt-v5 table tbody tr:nth-child(even) {
    background: #ffffff03;
}

.mt-v5 table tbody tr:hover {
    background: #a855f70a;
}

/* TERMOS */

body.mt-v5-terms {
    justify-content: flex-start !important;
    padding-top: 25px !important;
    padding-bottom: 35px !important;
}

.mt-v5-terms > .max-w-2xl {
    max-width: 850px !important;
    border-radius: 25px !important;
    padding: 25px !important;
}

.mt-v5-terms .megatop-brand {
    max-width: 850px !important;
}

.mt-v5-terms .leading-relaxed > p {
    background: #241b35;
    border: 1px solid #423052;
    border-left: 3px solid #3b82f6;
    padding: 20px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.9;
}

.mt-v5-terms .leading-relaxed > p:nth-child(2) {
    border-left-color: #a855f7;
}

.mt-v5-terms .leading-relaxed > p:nth-child(3) {
    border-left-color: #facc15;
}

.mt-v5-terms .leading-relaxed > p:nth-child(4) {
    border-left-color: #ef4444;
}

.mt-v5 #page-termos p {
    line-height: 1.9;
    font-size: 13px;
}

.mt-v5 #page-termos h4 {
    color: #e9ddff !important;
    font-size: 16px !important;
}

/* MENU INFERIOR */

.mt-v5 .bottom-nav {
    height: auto !important;
    min-height: 72px;
    padding: 7px 8px;
    padding-bottom: max(7px,env(safe-area-inset-bottom));
    background: #171122f5 !important;
    border: 1px solid #49345f !important;
    border-top: 2px solid #9333ea !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 -8px 35px #0004;
    gap: 4px;
}

.mt-v5 .nav-link {
    border-radius: 13px;
    min-width: 0;
    padding: 9px 4px;
    font-size: 11px !important;
    transition: background .2s;
}

.mt-v5 .nav-link i {
    font-size: 21px !important;
    margin-bottom: 6px !important;
}

.mt-v5 .nav-link.active {
    background: linear-gradient(
        140deg,#4b3274,#302043
    ) !important;
    color: #fde047 !important;
}

.mt-v5 .nav-link:hover {
    background: #ffffff0a;
}

/* JANELAS */

.mt-v5 .swal2-popup {
    border-radius: 23px !important;
    padding: 24px !important;
}

.mt-v5 .swal2-popup.swal-dark {
    background: #21182f !important;
    border: 1px solid #60478c !important;
}

.mt-v5 .swal2-styled {
    border-radius: 11px !important;
    font-weight: 800 !important;
}

/* DESKTOP */

@media(min-width:900px) {
    .mt-v5 .bottom-nav {
        max-width: 1050px;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        bottom: 12px !important;
        border-radius: 22px !important;
    }

    .mt-v5-admin .bottom-nav {
        max-width: 1250px;
    }
}

/* CELULARES */

@media(max-width:600px) {
    .mt-v5-shortcuts {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .mt-v5 .megatop-brand {
        padding: 14px !important;
        gap: 12px !important;
    }

    .mt-v5 .megatop-brand img {
        max-width: 105px !important;
    }

    .mt-v5 .megatop-brand-name {
        font-size: 17px !important;
    }

    .mt-v5 .from-blue-900.to-indigo-900 {
        padding: 19px !important;
        flex-wrap: wrap;
        gap: 14px;
    }

    .mt-v5-hero {
        padding: 20px 16px;
    }

    .mt-v5 .nav-link {
        font-size: 9px !important;
    }

    .mt-v5 .nav-link i {
        font-size: 19px !important;
    }

    .mt-v5-payment-step {
        padding: 14px 7px;
    }

    .mt-v5-terms > .max-w-2xl {
        padding: 17px !important;
    }

    .mt-v5-terms .leading-relaxed > p {
        padding: 15px;
        font-size: 13px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .mt-v5 *,
    .mt-v5 *::before,
    .mt-v5 *::after {
        transition: none !important;
    }
}
