/* =========================================================
   DMLE.pro — TEMA BLESTA
   Base: Bootstrap 4.6 (tema default Blesta)
   Identidade: dmle.pro
   ---------------------------------------------------------
   Carregado depois de application.min.css, theme.css e
   custom_css, para poder sobrepor as definições do tema.
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Fira+Sans:wght@500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

/* =========================================================
   1. TOKENS
========================================================= */

:root {
    --dmle-blue: #2672ff;
    --dmle-blue-dark: #173b8f;
    --dmle-dark: #2d3c58;
    --dmle-text: #4c5671;
    --dmle-muted: #687b9c;
    --dmle-band: #f1f5f9;
    --dmle-surface: #eef4ff;
    --dmle-line: #e2eaf5;
    --dmle-line-soft: #eef2f8;
    --dmle-radius: 14px;
}

/* =========================================================
   2. BASE
========================================================= */

html { -webkit-text-size-adjust: 100%; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: #ffffff;
    color: var(--dmle-text);
    font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.2px;
    color: var(--dmle-dark);
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
h4 { font-size: 19px; font-weight: 600; }
h5 { font-size: 17px; font-weight: 600; }

p { line-height: 1.6; }

a { color: var(--dmle-blue); }
a:hover, a:focus { color: var(--dmle-blue-dark); text-decoration: none; }

small, .small { font-size: 13px; }

::selection { background: rgba(38, 114, 255, 0.18); }

hr { border-top: 1px solid var(--dmle-line); }

.text-muted { color: var(--dmle-muted) !important; }

/* Conteúdo principal empurra o footer para o fundo */
body > .container-md,
body > .site-content {
    flex: 1 0 auto;
    width: 100%;
}

/* Ligação de salto (leitores de ecrã / teclado) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1080;
    padding: 12px 18px;
    background: var(--dmle-blue);
    border-radius: 0 0 10px 0;
    color: #ffffff;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
    color: #ffffff;
    text-decoration: none;
}

/* =========================================================
   3. LARGURA
   O site dmle.pro usa uma caixa de 1170px.
========================================================= */

.container,
.container-md,
.container-lg,
.container-xl {
    max-width: 1170px;
}

.container-md {
    padding-left: 15px;
    padding-right: 15px;
}

.site-content {
    padding-top: 40px;
    padding-bottom: 64px;
}

/* =========================================================
   4. HEADER
========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--dmle-line-soft);
}

.site-header .navbar {
    padding: 0;
}

.site-header .container-md {
    display: flex;
    align-items: center;
    min-height: 86px;
}

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    margin: 0 40px 0 0;
    padding: 0;
}

.site-header .navbar-brand img {
    display: block;
    width: auto;
    height: 44px;
}

.site-header .nav-link {
    padding: 10px 16px !important;
    border-radius: 8px;
    color: var(--dmle-text) !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: color .15s ease, background .15s ease;
}

/* O portal não usa ícones no menu principal */
.site-header .navbar-nav.mr-auto .nav-link > i { display: none; }

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--dmle-blue) !important;
    background: var(--dmle-surface);
}

.site-header .nav-item.active > .nav-link {
    background: var(--dmle-blue);
    color: #ffffff !important;
}

.site-header .nav-link .caret { display: none; }

/* Item da conta (iniciar sessão / nome do cliente) */
.site-header .nav-account { margin-left: 8px; }

.site-header .nav-account > .nav-item > .nav-link {
    padding: 11px 22px !important;
    border: 2px solid var(--dmle-blue);
    border-radius: 10px;
    color: var(--dmle-blue) !important;
    font-weight: 600;
}

.site-header .nav-account > .nav-item > .nav-link i { margin-right: 6px; }

.site-header .nav-account > .nav-item > .nav-link:hover {
    background: var(--dmle-blue);
    color: #ffffff !important;
}

.site-header .navbar-toggler {
    padding: 8px 12px;
    border: 1px solid var(--dmle-line);
    border-radius: 8px;
    color: var(--dmle-dark);
    font-size: 14px;
    font-weight: 600;
}

.site-header .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 114, 255, 0.15);
}

/* Dropdowns */
.dropdown-menu {
    padding: 6px;
    border: 1px solid var(--dmle-line);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(45, 60, 88, 0.12);
}

.dropdown-item {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--dmle-dark);
    font-size: 15px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--dmle-surface);
    color: var(--dmle-blue);
}

.dropdown-divider { border-top-color: var(--dmle-line); }

/* Extras do header (idioma / staff) */
.header-extras {
    display: flex;
    align-items: center;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--dmle-line);
}

.header-extras-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--dmle-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-extras-link:hover,
.header-extras-link:focus {
    color: var(--dmle-blue);
    text-decoration: none;
}

.header-extras .dropdown-menu { left: auto; right: 0; }

.header-extras .badge { font-size: 13px; }

/* =========================================================
   5. BARRA DE TÍTULO
========================================================= */

.title {
    height: auto !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: var(--dmle-band) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--dmle-line) !important;
}

.title > .container-md {
    padding: 22px 15px;
}

.title h3 {
    display: block;
    margin: 0;
    color: var(--dmle-dark) !important;
    font-family: 'Fira Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

/* =========================================================
   6. CARTÕES E PAINÉIS
========================================================= */

.card,
.panel {
    background: #ffffff;
    border: 1px solid var(--dmle-line);
    border-radius: var(--dmle-radius);
    box-shadow: 0 2px 10px rgba(45, 60, 88, 0.05);
}

.card-body { padding: 24px; }
.panel-body { padding: 24px; }

.card-header,
.panel-heading {
    padding: 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--dmle-line);
    border-radius: var(--dmle-radius) var(--dmle-radius) 0 0 !important;
    color: var(--dmle-dark);
    font-weight: 600;
}

.card-footer,
.panel-footer {
    padding: 16px 24px;
    background: #fbfcfe;
    border-top: 1px solid var(--dmle-line);
    border-radius: 0 0 var(--dmle-radius) var(--dmle-radius) !important;
}

.card,
.panel,
.list-group {
    border-radius: var(--dmle-radius) !important;
}

.list-group-item:first-child { border-radius: var(--dmle-radius) var(--dmle-radius) 0 0 !important; }
.list-group-item:last-child { border-radius: 0 0 var(--dmle-radius) var(--dmle-radius) !important; }

.panel-blesta { border-color: var(--dmle-line); }

/* Cartões do dashboard (carregados por AJAX em .cards) */
.cards { margin: 0 -10px; }

.cards .card {
    min-height: 112px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--dmle-line);
    border-radius: var(--dmle-radius);
    box-shadow: 0 2px 10px rgba(45, 60, 88, 0.05);
    color: var(--dmle-dark);
    font-family: inherit;
}

.cards .card .card-content .card-value {
    margin-bottom: 4px;
    color: inherit;
    font-family: 'Fira Sans', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.cards .card .card-content .card-label {
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.85;
}

/* Cores dos cards definidas no backoffice (Blesta) — não sobrepôr aqui */

/* =========================================================
   7. FORMULÁRIOS
========================================================= */

.form-group { margin-bottom: 18px; }

label,
.form-group label,
.control-label {
    margin-bottom: 6px;
    color: var(--dmle-dark);
    font-size: 13px;
    font-weight: 600;
}

.form-control {
    height: 46px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #d8e1ef;
    border-radius: 10px;
    box-shadow: none;
    color: var(--dmle-dark);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
    border-color: var(--dmle-blue);
    box-shadow: 0 0 0 3px rgba(38, 114, 255, 0.15);
    outline: none;
}

.form-control::placeholder { color: #95a1b8; }

textarea.form-control { height: auto; min-height: 120px; }

select.form-control { height: 46px; }

.form-check,
.checkbox,
.radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
    margin-bottom: 12px;
}

.form-check-input {
    position: static;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0 0;
    border-color: #c9d4e6;
}

.form-check-input:checked {
    background-color: var(--dmle-blue);
    border-color: var(--dmle-blue);
}

.form-check-label,
.checkbox label,
.radio label {
    padding-left: 0;
    color: var(--dmle-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

input[type="checkbox"],
input[type="radio"] { accent-color: var(--dmle-blue); }

.help-block,
.form-text {
    color: var(--dmle-muted);
    font-size: 13px;
}

/* =========================================================
   8. BOTÕES
========================================================= */

.btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn-primary,
.btn-success {
    background: var(--dmle-blue) !important;
    border-color: var(--dmle-blue) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-primary:focus,
.btn-success:focus {
    background: var(--dmle-blue-dark) !important;
    border-color: var(--dmle-blue-dark) !important;
    box-shadow: 0 6px 16px rgba(38, 114, 255, 0.25);
}

.btn-block {
    padding: 12px 18px;
    font-size: 16px;
}

.btn-outline-primary,
.btn-outline-secondary {
    border: 2px solid var(--dmle-blue) !important;
    border-radius: 8px;
    color: var(--dmle-blue) !important;
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background: var(--dmle-blue) !important;
    color: #ffffff !important;
}

.btn-link { color: var(--dmle-blue); }
.btn-link:hover { color: var(--dmle-blue-dark); }

.btn-danger {
    background: #e5484d;
    border-color: #e5484d;
}

.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }

/* =========================================================
   9. TABELAS
========================================================= */

.table {
    margin-bottom: 0;
    color: var(--dmle-text);
    font-size: 15px;
}

.table thead th {
    padding: 12px;
    border-top: 0;
    border-bottom: 2px solid var(--dmle-line);
    color: var(--dmle-dark);
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.table td,
.table th {
    padding: 12px;
    border-top: 1px solid var(--dmle-line-soft);
    vertical-align: middle;
}

.table-hover tbody tr:hover { background: #f7faff; }

.table-responsive {
    border-radius: var(--dmle-radius);
}

/* =========================================================
   10. NAVEGAÇÃO SECUNDÁRIA (list-group)
========================================================= */

.list-group {
    border-radius: var(--dmle-radius);
    box-shadow: 0 2px 10px rgba(45, 60, 88, 0.05);
}

.list-group-item {
    padding: 12px 16px;
    background: #ffffff;
    border-color: var(--dmle-line-soft);
    color: var(--dmle-text);
    font-size: 15px;
}

.list-group-item:first-child { border-radius: var(--dmle-radius) var(--dmle-radius) 0 0; }
.list-group-item:last-child { border-radius: 0 0 var(--dmle-radius) var(--dmle-radius); }

.list-group-item-action:hover,
.list-group-item-action:focus {
    background: var(--dmle-surface);
    color: var(--dmle-blue);
}

.list-group-item.active {
    background: var(--dmle-blue);
    border-color: var(--dmle-blue);
    color: #ffffff;
}

/* =========================================================
   11. AVISOS / BADGES / PAGINAÇÃO / BREADCRUMB
========================================================= */

.alert {
    border-radius: 12px;
    font-size: 15px;
}

.alert-success { background: #eefaf3; border-color: #c9ecda; color: #1e7a4d; }
.alert-danger  { background: #fdf0f1; border-color: #f6cfd4; color: #a3283a; }
.alert-info    { background: var(--dmle-surface); border-color: #d6e4ff; color: #1c4fa8; }
.alert-warning { background: #fff8e9; border-color: #ffe6b8; color: #8a5a00; }

.badge {
    padding: 0.4em 0.6em;
    border-radius: 6px;
    font-weight: 600;
}

.badge-info { background: var(--dmle-surface); color: var(--dmle-blue); }

.pagination .page-link {
    margin: 0 3px;
    border-color: var(--dmle-line);
    border-radius: 8px;
    color: var(--dmle-blue);
}

.pagination .page-item.active .page-link {
    background: var(--dmle-blue);
    border-color: var(--dmle-blue);
    color: #ffffff;
}

.breadcrumb {
    padding: 0;
    background: transparent;
    font-size: 14px;
}

/* =========================================================
   12. LOGIN
========================================================= */

.row.login {
    padding: 60px 0 80px;
    margin-left: 0;
    margin-right: 0;
}

/* Página de login: estilo moderno (século 21) */
body[class*="client_login"] {
    background: #f8fafc;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(38, 114, 255, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(38, 114, 255, 0.05), transparent);
}

body[class*="client_login"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232672ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

body[class*="client_login"] .site-header,
body[class*="client_login"] .site-content,
body[class*="client_login"] .login-wrap {
    position: relative;
    z-index: 1;
}

body[class*="client_login"] .site-content {
    padding-top: 48px;
    padding-bottom: 48px;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body[class*="client_login"] .title {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden;
}

body[class*="client_login"] .title h3 {
    display: none;
}

body[class*="client_login"] .title > .container-md {
    padding: 0;
    min-height: 0;
}

body[class*="client_login"] .footer {
    display: none;
}

body[class*="client_login"] .login-wrap {
    max-width: 400px;
    width: 100%;
}

body[class*="client_login"] .login-logo {
    display: inline-block;
    margin-bottom: 16px;
    line-height: 0;
}

body[class*="client_login"] .login-logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
}

body[class*="client_login"] .login-head {
    text-align: center;
    margin-bottom: 28px;
}

body[class*="client_login"] .login-head p {
    margin: 0;
    color: var(--dmle-muted);
    font-size: 14px;
    line-height: 1.5;
}

body[class*="client_login"] .login-wrap .card {
    border: 1px solid #e8ecf4;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(45, 60, 88, 0.06);
    background: #ffffff;
}

body[class*="client_login"] .login-wrap .card-body {
    padding: 32px 32px 24px;
}

body[class*="client_login"] .login-wrap .form-group {
    margin-bottom: 16px;
}

body[class*="client_login"] .login-wrap .form-control {
    height: 48px;
    font-size: 15px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0 16px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

body[class*="client_login"] .login-wrap .form-control:focus {
    background: #ffffff;
    border-color: var(--dmle-blue);
    box-shadow: 0 0 0 3px rgba(38, 114, 255, 0.1);
}

body[class*="client_login"] .login-wrap .form-control::placeholder {
    color: #a0aec0;
}

body[class*="client_login"] .login-wrap .btn-primary {
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(38, 114, 255, 0.25);
    transition: background .15s, box-shadow .15s, transform .15s;
}

body[class*="client_login"] .login-wrap .btn-primary:hover {
    box-shadow: 0 6px 16px rgba(38, 114, 255, 0.35);
    transform: translateY(-1px);
}

body[class*="client_login"] .login-wrap .form-check {
    margin-bottom: 16px;
}

body[class*="client_login"] .login-wrap .form-check-label {
    font-size: 14px;
    color: var(--dmle-muted);
}

body[class*="client_login"] .login-wrap .card-footer {
    border: 0;
    background: transparent;
    padding: 0 32px 24px;
    text-align: center;
}

body[class*="client_login"] .login-wrap .card-footer a {
    color: var(--dmle-muted);
    font-size: 13px;
    transition: color .15s;
    display: inline-block;
    margin: 4px 8px;
}

body[class*="client_login"] .login-wrap .card-footer a:hover {
    color: var(--dmle-blue);
}

body[class*="client_login"] .header-extras,
body[class*="client_login"] .nav-account {
    display: none;
}

.login-wrap {
    max-width: 440px;
    margin: 0 auto;
}

.login-head {
    margin-bottom: 22px;
    text-align: center;
}

.login-head h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.login-head h2 i {
    margin-right: 8px;
    color: var(--dmle-blue);
    font-size: 22px;
}

.login-head p {
    margin: 0;
    color: var(--dmle-text);
    font-size: 15px;
}

.login-wrap .card {
    border-color: #e6ecf5;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(45, 60, 88, 0.08);
}

.login-wrap .card-body { padding: 26px; }

.login-wrap .card-footer {
    padding: 14px;
    background: #fbfcfe;
    font-size: 14px;
    text-align: center;
}

.login-wrap .card-footer a { display: block; }
.login-wrap .card-footer a + a { margin-top: 6px; }

/* =========================================================
   13. FOOTER
========================================================= */

.footer {
    --footer-blue: #2672ff;
    --footer-dark: #2d3c58;
    --footer-text: #4c5671;
    --footer-band: #f1f5f9;

    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px 10px;
    background: var(--footer-band);
    color: var(--footer-text);
    font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.footer *,
.footer *::before,
.footer *::after { box-sizing: border-box; }

.footer__card {
    max-width: 1170px;
    margin: 0 auto;
    padding: 60px 15px 50px;
    background: #ffffff;
    border-radius: 25px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.36fr 1fr 1fr 1fr;
    gap: 0;
}

.footer__col { min-width: 0; padding: 10px; }

.footer__logo {
    display: block;
    width: 75%;
    max-width: 100%;
    margin: 0 0 15px;
    line-height: 0;
    text-decoration: none;
}

.footer__logo img { display: block; width: 100%; height: auto; }

.footer__about {
    margin: 0;
    color: var(--footer-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.footer__mark {
    text-decoration: underline 2px var(--footer-blue);
    text-underline-offset: 2px;
}

.footer__title {
    margin: 0 0 15px;
    color: var(--footer-dark);
    font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin: 0; padding: 0; list-style: none; }

.footer__list a {
    display: inline-block;
    padding: 5px 0;
    color: var(--footer-text) !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none !important;
    transition: color .2s ease;
}

.footer__list a:hover,
.footer__list a:focus-visible { color: var(--footer-blue) !important; }

.footer__bottom { padding: 10px 0; text-align: center; }

.footer__bottom,
.footer__bottom a {
    color: var(--footer-text);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.footer__bottom a:hover,
.footer__bottom a:focus-visible { color: var(--footer-blue); }

/* =========================================================
   14. ECRÃS PEQUENOS
========================================================= */

@media (max-width: 991px) {

    .container-md { padding-left: 30px; padding-right: 30px; }

    .site-header .container-md {
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-header .navbar-collapse { padding: 10px 0; }

    .site-header .nav-link { padding: 12px 14px !important; }

    .site-header .nav-item.active > .nav-link { background: var(--dmle-surface); color: var(--dmle-blue) !important; }

    .site-header .nav-account { margin-top: 8px; margin-left: 0; }
    .site-header .nav-account > .nav-item > .nav-link { display: inline-block; }

    .header-extras {
        margin: 12px 0 0;
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid var(--dmle-line);
    }

    .title > .container-md { padding: 18px 30px; }

    .row.login { padding: 40px 0 56px; }

    body[class*="client_login"] .site-content { padding-top: 40px; padding-bottom: 64px; }
}

@media (max-width: 767px) {

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }

    .container-md { padding-left: 20px; padding-right: 20px; }

    .title > .container-md { padding: 16px 20px; }

    .login-head h2 { font-size: 24px; }

    body[class*="client_login"] .site-content { padding-top: 32px; padding-bottom: 48px; }

    .card-body, .panel-body { padding: 18px; }

    .footer { padding: 40px 24px 20px; }
    .footer__card { padding: 15px; }
    .footer__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .footer__title { margin-bottom: 10px; font-size: 18px; }
    .footer__about,
    .footer__list a { font-size: 15px; }
}

/* =========================================================
   15. FORMULÁRIO DE ENCOMENDA (ORDER)
========================================================= */

.plugin-orderclient-forms-index .card.bg-light,
.card.bg-light {
    background: #ffffff !important;
    border: 1px solid var(--dmle-line);
    border-radius: var(--dmle-radius);
    box-shadow: 0 2px 10px rgba(45, 60, 88, 0.05);
    padding: 28px !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.plugin-orderclient-forms-index .card.bg-light:hover {
    transform: translateY(-3px);
    border-color: var(--dmle-blue);
    box-shadow: 0 8px 22px rgba(38, 114, 255, 0.12);
}

.plugin-orderclient-forms-index .card.bg-light h3 {
    margin: 0 0 4px;
    color: var(--dmle-dark);
    font-family: 'Fira Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.plugin-orderclient-forms-index .card.bg-light p {
    margin: 0;
    color: var(--dmle-muted);
    font-size: 15px;
}

.plugin-orderclient-forms-index .card.bg-light .btn.btn-lg {
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
}

/* Botão no fim do card, largura total */
.plugin-orderclient-forms-index .card.bg-light .btn.d-none.d-sm-block {
    display: none !important;
}

.plugin-orderclient-forms-index .card.bg-light .btn.d-sm-none {
    display: block !important;
    width: 100%;
    margin-top: 12px;
}

/* Listagem de encomendas em grelha (3 por linha) */
.plugin-orderclient-forms-index .order-listing.col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .plugin-orderclient-forms-index .order-listing.col-lg-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .plugin-orderclient-forms-index .order-listing.col-lg-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* =========================================================
   16. FORMULÁRIO DE ENCOMENDA — CAMPOS
========================================================= */

.plugin-orderclient-forms-index .form-group label,
.plugin-orderclient-config-preconfig .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dmle-dark);
}

.plugin-orderclient-forms-index .form-control.input-md,
.plugin-orderclient-config-preconfig .form-control.input-md {
    height: 50px;
    font-size: 16px;
    border-radius: 10px;
}

/* TLDs como chips */
.plugin-orderclient-config-preconfig .tlds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.plugin-orderclient-config-preconfig .spotlight_tld {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--dmle-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--dmle-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.plugin-orderclient-config-preconfig .spotlight_tld:hover {
    border-color: var(--dmle-blue);
    color: var(--dmle-blue);
}

.plugin-orderclient-config-preconfig .spotlight_tld input[type="checkbox"] {
    margin: 0 6px 0 0;
    accent-color: var(--dmle-blue);
}

.plugin-orderclient-config-preconfig .spotlight_tld:has(input:checked) {
    background: var(--dmle-blue);
    border-color: var(--dmle-blue);
    color: #ffffff;
}

/* =========================================================
   17. ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .site-header .nav-link,
    .footer__list a,
    .btn { transition: none !important; }
}
