.card {
    transition: all .25s;
}

.card:hover {
    transform: translateY(-6px);
}

.text-info {
    --bs-text-opacity: 1;
    color: rgb(240 13 13) !important;
}

.card-glass {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-blue {
    border-radius: 20px;
    background: linear-gradient(135deg, #660000 0%, #f34242 100%);
}

.icon-box {
    width: 50px;
    height: 50px;
    font-size: 22px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-item i {
    font-size: 16px;
    color: #f7f7f7;
}

.quick-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.progress-dark {
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.btn-rounded {
    border-radius: 10px;
}

.btn-support {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* MENU */

.floating-menu {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.menu-item {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all .2s;
    cursor: pointer;
}

.menu-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.menu-item.active {
    color: #ffffff;
    background: rgba(255, 3, 3, 0.562);
}

.menu-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    cursor: pointer;
    transition: all .2s;
}

.menu-icon:hover {
    background: rgba(255, 255, 255, 0.12);
}

.menu-contrato {
    display: flex;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* 👈 resolve isso */
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--text-font2);
}

.text-status-txt {
    font-family: var(--text-font2);
}

.pabx-toast.info {
    border-left-color: #0dcaf0;
}

.menu-contrato-back {
    display: flex;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* 👈 resolve isso */
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(240, 2, 2, 0.664);
    color: white;
    cursor: pointer;
    transition: all .2s;
}

.menu-contrato-back:hover {
    display: flex;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* 👈 resolve isso */
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(240, 2, 2, 0.938);
    color: white;
    cursor: pointer;
    transition: all .2s;
}

.login-page {
    min-height: 100vh;
    width: 100%;
    background: #0b0e11;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-danger:hover {
    color: #fff;
    background-color: #a70616;
    border-color: #a70616;
}

.btn-danger {
    color: #fff;
    background-color: #630710;
    border-color: #380005;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(220, 53, 69, 0.2);
    filter: blur(120px);
    z-index: 1;
    border-radius: 50%;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 380px;
}

.login-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.brand-icon {
    font-size: 2.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #dc3545;
    box-shadow: none;
}

.btn-hover {
    border-radius: 12px;
    transition: 0.3s;
}

.btn-hover:hover {
    transform: translateY(-2px);
}

.contract-selection-page {
    background: #0b0e11;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* CONTAINER */
.main-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* GLOW */
.glow-effect {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15), transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(120px);
}

/* CARD */
.contract-card {
    position: relative;
    border-radius: 18px;
    backdrop-filter: blur(14px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s ease;
    overflow: hidden;
}

/* BORDA GLOW */
.contract-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(120deg, transparent, rgba(255, 0, 0, 0.5), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: 0.4s;
}

.contract-card:hover::before {
    opacity: 1;
}

/* HOVER */
.contract-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.15);
}

/* ICON */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    color: #ff4d4d;
    transition: 0.3s;
}

.contract-card:hover .icon-circle {
    transform: scale(1.1) rotate(3deg);
}

/* TEXT */
.contract-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.contract-card p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* STATUS */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge.ativo {
    background: rgba(0, 255, 140, 0.15);
    color: #00ff8c;
}

.status-badge.inativo {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4d4d;
}



/* ANIMAÇÃO */
.fade-in {
    animation: fadeUp 0.8s ease forwards;
}

.contract-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.contract-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contract-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contract-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 12px;
    transition: 0.3s;
}

/* placeholder */
input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* foco */
input:focus {
    border-color: #ff0000 !important;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2) !important;
    outline: none;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 380px;
    transform: translateY(-60px);
}

.bg-statusassinante {
    --bs-bg-opacity: 1;
    background-color: rgba(4, 4, 4, 0.637) !important;
}

.text-statusassinante {
    --bs-text-opacity: 1;
    color: rgb(248, 7, 7) !important;
    font-family: sans-serif;
}

@media (max-width: 768px) {
    .login-wrapper {
        transform: translateY(-20px);
        /* menos agressivo no mobile */
    }
}

#speedtestModal {
    display: none;
    position: fixed !important;
    /* Força o fixed */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483647 !important;
    /* O valor máximo permitido no CSS */
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#speedtestModal.show {
    display: flex !important;
    opacity: 1;
}

/* Remove scrollbar de iframes específicos */
#speedtestFrame {
    overflow: hidden;
}

/* Chrome, Safari e Edge - Esconde a scrollbar mas mantém funcionalidade se necessário */
#speedtestFrame::-webkit-scrollbar {
    display: none;
}

/* Firefox */
#speedtestFrame {
    scrollbar-width: none;
}

.toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pabx-toast {
    background: #1a1a1a;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-left: 4px solid #72e50f;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pabx-toast.show {
    transform: translateX(0);
}

.pabx-toast.error {
    border-left-color: #e50f0f;
}

.pabx-toast .close-btn {
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.5;
    font-size: 20px;
}

.pabx-toast .close-btn:hover {
    opacity: 1;
}
.bg-success-soft { background-color: rgba(25, 135, 84, 0.2) !important; color: #198754 !important; }
.bg-danger-soft  { background-color: rgba(220, 53, 69, 0.2) !important; color: #dc3545 !important; }
.bg-primary-soft { background-color: rgba(13, 110, 253, 0.2) !important; color: #0d6efd !important; }
.bg-warning-soft { background-color: rgba(255, 193, 7, 0.2) !important; color: #ffc107 !important; }