.x_panel {
    border-radius: 14px;
}
.panel {
    border-radius: 14px;
}
.panel-heading {
    border-radius: 14px 14px 0 0;
}
.panel-footer {
    border-radius: 0 0 14px 14px;
}
.btn {
    border-radius: 18px;
}
.form-control {
    border-radius: 10px;
}
.label {
    border-radius: 6px;
}

/* SweetAlert2 — corrige tamanho em temas com font-size base reduzido (Bootstrap 3 / AdminLTE) */
.swal2-popup {
    font-size: 16px !important;
    width: 32em !important;
    max-width: 90vw !important;
}
.swal2-title {
    font-size: 1.375em !important;
    font-weight: 600 !important;
}
.swal2-html-container {
    font-size: 1.125em !important;
}
.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    font-size: 1.0625em !important;
    padding: 0.5rem 1.5rem !important;
    min-width: 100px !important;
}
.swal2-container {
    z-index: 9999 !important;
}
.swal2-container.swal2-top-end .swal2-popup.swal2-toast {
    width: auto !important;
    max-width: 400px !important;
    font-size: 14px !important;
}

/* Modais — cantos arredondados */
.modal-content {
    border-radius: 14px;
}
.modal-header {
    border-radius: 14px 14px 0 0;
}
.modal-footer {
    border-radius: 0 0 14px 14px;
}

/* Convite para o novo layout no topo do layout clássico (views/header.php -> POST ui/toggle) */
.ui-try-form { margin: 0; }
.dropdown-usermenu .ui-try-form .btn-link {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #5A738E;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
}
.dropdown-usermenu .ui-try-form .btn-link:hover { background: #f5f5f5; }
.ui-try-pill button {
    margin: 13px 6px 0 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f8fe0, #29b6d8);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 14px -4px rgba(31, 143, 224, .6);
    transition: transform .15s, box-shadow .15s;
}
.ui-try-pill button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -4px rgba(31, 143, 224, .75); }
.ui-try-pill button span {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    font-size: 10px;
    text-transform: uppercase;
}

/* Selo "PRO" no menu: recurso fora do plano da oficina (libs/Plan.php) */
.menu-pro {
    display: inline-block;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: .04em;
    vertical-align: middle;
    color: #fff;
    background: linear-gradient(135deg, #f0ad4e, #e67e22);
}

/* Aviso rápido (VK.toast em public/js/vk.common.js) */
.vk-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3000;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
    background: #1abb9c;
    box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .5);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s;
}
.vk-toast.is-in { opacity: 1; transform: none; }
.vk-toast-error { background: #d9534f; }
.vk-toast-info { background: #2a8bd8; }

/* Faixa do teste do Pro, lançamento 2.0 (Plan::trialBanner em libs/Plan.php) */
.pro-trial-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #0b3a66;
    background: linear-gradient(135deg, #e6f3fd, #e3f7fb);
    border: 1px solid #b9dcf6;
}
.pro-trial-bar .fa { color: #1f8fe0; margin-right: 4px; }
.pro-trial-bar.is-ending { color: #7a4a00; background: linear-gradient(135deg, #fff6e5, #fff1d6); border-color: #f5d08a; }
.pro-trial-bar.is-ending .fa { color: #e67e22; }
.pro-trial-bar.is-ended { color: #7a2a2a; background: #fdeeee; border-color: #f3c2c2; }
.pro-trial-bar.is-ended .fa { color: #ef6b6b; }
html body .pro-trial-bar a.pro-trial-cta {
    margin: 0;
    border: 0;
    font-size: 14px;
    flex-shrink: 0;
    padding: 6px 18px;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1f8fe0, #22b5d6);
    text-decoration: none;
}
html body .pro-trial-bar a.pro-trial-cta:hover, html body .pro-trial-bar a.pro-trial-cta:focus { color: #fff; filter: brightness(1.06); }
.pro-trial-bar .pro-trial-text { flex: 1 1 420px; }
body.ui2 .pro-trial-bar { margin: 0 0 16px; }

/* Botão "Ajuda" do topo: manual e vídeos de cada tela (views/header.ui.php e views/header.php) */
html body a.vk-help-btn,
html body a.vk-help-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 4px 14px rgba(249, 115, 22, .35);
    text-decoration: none;
}
html body a.vk-help-btn:hover, html body a.vk-help-btn:focus { color: #fff; filter: brightness(1.06); text-decoration: none; }
html body a.vk-help-btn svg { stroke: currentColor; }
html body .top_nav .nav > li > a.vk-help-btn { margin: 12px 8px 0 0; padding: 6px 14px; }
html body .top_nav .nav > li > a.vk-help-btn .fa { font-size: 18px; }

/* Faixa do acesso de suporte: master dentro da conta do cliente (libs/SupportAccess.php) */
.support-access-bar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    box-shadow: 0 6px 18px rgba(192, 57, 43, .25);
}
.support-access-bar .fa { margin-right: 4px; }
.support-access-bar .support-access-text { flex: 1 1 420px; }
html body .support-access-bar a.support-access-back {
    margin: 0;
    border: 0;
    flex-shrink: 0;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #c0392b;
    background: #fff;
    text-decoration: none;
}
html body .support-access-bar a.support-access-back:hover, html body .support-access-bar a.support-access-back:focus { color: #962d22; background: #fff4ef; }
body.ui2 .support-access-bar { margin: 0 0 16px; }
