:root {
    --codeef-purple: #8c3fd9;
    --codeef-purple-2: #a960ee;
    --codeef-purple-soft: #f2e9fb;
    --codeef-black: #0b0a0f;
    --codeef-dark: #15121c;
    --codeef-text: #211c2a;
    --codeef-muted: #777181;
    --codeef-border: #e9e4ed;
    --codeef-bg: #f7f5f9;
    --codeef-surface: #ffffff;
    --codeef-radius: 22px;
    --codeef-shadow: 0 18px 55px rgba(30, 20, 42, .08);
    --sidebar-width: 86px;
    --sidebar-expanded-width: 250px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--codeef-text);
    font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--codeef-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--codeef-purple); }
a:hover { color: #6f28af; }

.app-shell { min-height: 100vh; }
.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    padding: 18px 12px;
    overflow-y: auto;
    color: #fff;
    background:
        radial-gradient(circle at 10% 10%, rgba(140, 63, 217, .35), transparent 30%),
        linear-gradient(180deg, #0b0a0f, #17121e 70%, #0d0b11);
}
.app-brand { display: block; width: 58px; padding: 4px 2px 16px; overflow: hidden; }
.app-brand img { display: block; width: 215px; max-width: none; height: auto; transition: width .2s ease; }
.sidebar-expanded .app-brand { width: 100%; padding-inline: 7px; }
.sidebar-toggle { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; color: #bcb6c5; background: rgba(255,255,255,.035); font-size: .78rem; font-weight: 800; }
.sidebar-toggle:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar-toggle span { display: none; white-space: nowrap; }
.sidebar-expanded .sidebar-toggle { justify-content: flex-start; }
.sidebar-expanded .sidebar-toggle span { display: inline; }
.sidebar-label {
    display: none;
    margin: 12px 12px 8px;
    color: #85808e;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.sidebar-expanded .sidebar-label { display: block; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 47px;
    justify-content: center;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: #c9c4cf;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: .18s ease;
}
.sidebar-link span { display: none; white-space: nowrap; }
.sidebar-expanded .sidebar-link { justify-content: flex-start; }
.sidebar-expanded .sidebar-link span { display: inline; }
.sidebar-link i { width: 21px; color: #8f8998; font-size: 1.1rem; text-align: center; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.sidebar-link.active {
    border-color: rgba(169, 96, 238, .28);
    color: #fff;
    background: linear-gradient(135deg, rgba(140,63,217,.28), rgba(140,63,217,.1));
}
.sidebar-link.active i { color: var(--codeef-purple-2); }
.sidebar-spacer { flex: 1; }
.sidebar-user {
    margin-top: 22px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
}
.sidebar-user-name { color: #fff; font-size: .88rem; font-weight: 800; }
.sidebar-user-email { margin-top: 2px; overflow: hidden; color: #8f8998; font-size: .75rem; text-overflow: ellipsis; }
.sidebar-logout { margin-top: 12px; }
.sidebar-logout .btn { width: 100%; border-color: rgba(255,255,255,.1); color: #c9c4cf; }
.sidebar-logout .btn:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-user-name { display: flex; min-width: 0; align-items: center; gap: 7px; }
.sidebar-user-avatar { flex: 0 0 auto; font-size: 1.05rem; }
.app-sidebar-desktop .sidebar-user { padding: 9px; text-align: center; }
.app-sidebar-desktop .sidebar-user-name { justify-content: center; }
.app-sidebar-desktop .sidebar-user-name span,
.app-sidebar-desktop .sidebar-user-email,
.app-sidebar-desktop .sidebar-plan,
.app-sidebar-desktop .sidebar-logout .btn span { display: none; }
.app-sidebar-desktop .sidebar-logout .btn { min-height: 36px; padding: 7px; }
.app-sidebar-desktop .sidebar-logout .btn i { margin: 0 !important; font-size: 1rem; }
.sidebar-expanded .app-sidebar-desktop .sidebar-user { padding: 14px; text-align: left; }
.sidebar-expanded .app-sidebar-desktop .sidebar-user-name { justify-content: flex-start; }
.sidebar-expanded .app-sidebar-desktop .sidebar-user-name span,
.sidebar-expanded .app-sidebar-desktop .sidebar-user-email,
.sidebar-expanded .app-sidebar-desktop .sidebar-plan,
.sidebar-expanded .app-sidebar-desktop .sidebar-logout .btn span { display: inline; }
.sidebar-expanded .app-sidebar-desktop .sidebar-user-email { display: block; }

.app-main { display: flex; min-height: 100vh; flex-direction: column; margin-left: var(--sidebar-width); transition: margin-left .2s ease; }
.sidebar-expanded .app-sidebar-desktop { width: var(--sidebar-expanded-width); }
.sidebar-expanded .app-main { margin-left: var(--sidebar-expanded-width); }
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px clamp(18px, 4vw, 48px);
    border-bottom: 1px solid rgba(231, 225, 235, .78);
    background: rgba(247, 245, 249, .9);
    backdrop-filter: blur(18px);
}
.topbar-title { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 900; letter-spacing: -.035em; }
.topbar-subtitle { margin-top: 3px; color: var(--codeef-muted); font-size: .78rem; }
.app-content { flex: 1; padding: 28px clamp(18px, 4vw, 48px) 50px; }
.app-legal-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: auto; padding: 20px clamp(18px, 4vw, 48px); border-top: 1px solid var(--codeef-border); background: #fff; }
.app-legal-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.app-legal-footer nav a { color: #766e7c; font-size: .72rem; font-weight: 750; }
.app-codeef-signature { display: block; text-decoration: none; }
.app-codeef-logo { position: relative; display: block; width: 132px; height: 40px; overflow: hidden; }
.app-codeef-logo img { position: absolute;  display: block; width: 120px; max-width: none; height: 37px; }
.mobile-brand { width: 150px; }

.card-codeef {
    border: 1px solid var(--codeef-border);
    border-radius: var(--codeef-radius);
    background: var(--codeef-surface);
    box-shadow: var(--codeef-shadow);
}
.card-codeef .card-header {
    padding: 20px 22px 0;
    border: 0;
    background: transparent;
}
.card-codeef .card-body { padding: 22px; }
.card-codeef .card-footer { padding: 0 22px 22px; border: 0; background: transparent; }

.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h2 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 900; letter-spacing: -.045em; }
.page-heading p { max-width: 720px; margin: 7px 0 0; color: var(--codeef-muted); line-height: 1.55; }

/* Padrao visual para as telas administrativas: indicadores, filtros e listagens. */
.management-heading { margin-bottom: 28px; }
.management-heading > div:first-child { position: relative; padding-left: 16px; }
.management-heading > div:first-child::before { position: absolute; top: 4px; bottom: 5px; left: 0; width: 4px; border-radius: 99px; content: ''; background: var(--codeef-purple); }
.management-stats .management-stat { position: relative; min-height: 108px; padding: 19px 20px; overflow: hidden; background: #ffffff; }
.management-stats .management-stat::after { display: none; }
.management-stat small { display: block; margin-bottom: 8px; color: var(--codeef-muted); font-size: .71rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.management-stat .fs-3 { position: relative; z-index: 1; letter-spacing: -.045em; }
.management-filter { padding: 20px; border-color: #e8e0ed; box-shadow: 0 10px 26px rgba(45, 28, 60, .05); background: #fefeff; }
.management-filter .form-label { margin-bottom: 7px; color: #625a68; font-size: .71rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.management-filter .form-control,
.management-filter .form-select { min-height: 42px; border-color: #e3dce7; background-color: #fff; }
.management-filter .form-control:focus,
.management-filter .form-select:focus { border-color: #a961d1; box-shadow: 0 0 0 .22rem rgba(122, 43, 175, .12); }
.management-table-card { border-color: #e8e1ed; box-shadow: 0 14px 34px rgba(45, 28, 60, .07); }
.management-table-card .table-responsive { scrollbar-color: #d6c8df transparent; }
.management-table > :not(caption) > * > * { padding: 16px 18px; }
.management-table thead th { position: sticky; top: 0; z-index: 1; border-bottom: 1px solid #e8e0ed; color: #756c7b; background: #faf8fc; }
.management-table tbody tr { transition: background-color .16s ease; }
.management-table tbody tr:hover { background: #fcf9fe; }
.management-table tbody tr:last-child > * { border-bottom: 0; }
.management-table .badge,
.management-table .status-badge,
.management-table .plan-badge { white-space: nowrap; }
.management-table code { padding: 3px 6px; border-radius: 6px; color: #66447a; background: #f6eff9; }
.audit-context { max-width: 520px; max-height: 320px; padding: 10px; overflow: auto; border: 1px solid #e7e0ea; border-radius: 8px; color: #5d5662; background: #fbfafc; font-size: .72rem; white-space: pre-wrap; }

.btn-codeef {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--codeef-purple);
    --bs-btn-border-color: var(--codeef-purple);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #762fba;
    --bs-btn-hover-border-color: #762fba;
    --bs-btn-active-bg: #6725a5;
    --bs-btn-active-border-color: #6725a5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding-inline: 18px;
    border-radius: 13px;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: 0 10px 24px rgba(140, 63, 217, .22);
}
.btn-soft-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding-inline: 16px;
    border: 1px solid #e5d2f6;
    border-radius: 13px;
    color: #6f28af;
    background: var(--codeef-purple-soft);
    font-weight: 800;
    line-height: 1.25;
}
.btn-soft-purple:hover { color: #591e91; border-color: #d5b5f1; background: #eadcf8; }
.btn-light-codeef {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding-inline: 16px;
    border: 1px solid var(--codeef-border);
    border-radius: 13px;
    background: #fff;
    font-weight: 750;
    line-height: 1.25;
}
.btn-light-codeef:hover { border-color: #d3c8dc; background: #faf8fc; }

.btn-sm.btn-codeef,
.btn-sm.btn-light-codeef,
.btn-sm.btn-soft-purple {
    min-height: 38px;
    padding-inline: 14px;
    font-size: .83rem;
}
.qr-code-modal-content { overflow: hidden; border-radius: 22px; }
.qr-code-preview { display: grid; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; padding: 14px; place-items: center; border: 1px solid var(--codeef-border); border-radius: 18px; background: #fff; }
.qr-code-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }

.codeef-notifications { position: fixed; right: 22px; bottom: 22px; z-index: 1090; display: grid; gap: 10px; width: min(92vw, 420px); }
.codeef-toast { display: flex; align-items: flex-start; gap: 11px; padding: 14px 15px; border: 1px solid; border-radius: 16px; color: var(--codeef-text); background: #fff; box-shadow: 0 18px 45px rgba(30, 20, 42, .16); animation: codeef-toast-in .2s ease-out; }
.codeef-toast > i { margin-top: 2px; font-size: 1.05rem; }
.codeef-toast span { flex: 1; font-size: .82rem; font-weight: 700; line-height: 1.45; }
.codeef-toast--error { border-color: #f0c7cc; background: #fff8f8; }
.codeef-toast--error > i { color: #c0394b; }
.codeef-toast--success { border-color: #bfe7d2; background: #f5fff9; }
.codeef-toast--success > i { color: #16804d; }
.codeef-toast--info { border-color: #c8dff1; background: #f6fbff; }
.codeef-toast--info > i { color: #2474a6; }
.codeef-toast-close { flex: 0 0 auto; padding: 2px; border: 0; color: var(--codeef-muted); background: transparent; }
.codeef-toast-close:hover { color: var(--codeef-text); }
.codeef-confirm-backdrop { position: fixed; inset: 0; z-index: 1080; display: grid; place-items: center; padding: 20px; background: rgba(16, 12, 22, .52); backdrop-filter: blur(4px); animation: codeef-fade-in .15s ease-out; }
.codeef-confirm { width: min(100%, 430px); padding: 26px; border: 1px solid var(--codeef-border); border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(25, 17, 34, .24); }
.codeef-confirm-icon { display: grid; width: 42px; height: 42px; margin-bottom: 15px; place-items: center; border-radius: 13px; color: var(--codeef-purple); background: var(--codeef-purple-soft); }
.codeef-confirm.is-danger .codeef-confirm-icon { color: #b42339; background: #fdecef; }
.codeef-confirm.is-success .codeef-confirm-icon { color: #16a34a; background: #dcfce7; }
.codeef-confirm h2 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.codeef-confirm p { margin: 9px 0 22px; color: var(--codeef-muted); font-size: .84rem; line-height: 1.5; }
.codeef-confirm-required { display: grid; gap: 7px; margin: -7px 0 22px; color: var(--codeef-text); font-size: .84rem; text-align: left; }
.codeef-confirm-required strong { color: #b42339; }
.codeef-confirm-required input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--codeef-border); border-radius: 10px; color: var(--codeef-text); font: inherit; background: #fff; }
.codeef-confirm-required input:focus { border-color: var(--codeef-purple); outline: 3px solid var(--codeef-purple-soft); }
.codeef-confirm-actions { display: flex; justify-content: flex-end; gap: 9px; }
.codeef-confirm-actions .btn { min-width: 112px; }
@keyframes codeef-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes codeef-fade-in { from { opacity: 0; } to { opacity: 1; } }

.stat-card { position: relative; min-height: 142px; padding: 22px; overflow: hidden; }
.stat-card::after {
    display: none;
}
.stat-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: var(--codeef-purple);
    background: var(--codeef-purple-soft);
    font-size: 1.15rem;
}
.stat-value { margin-top: 18px; font-size: 1.85rem; font-weight: 900; letter-spacing: -.05em; }
.stat-label { color: var(--codeef-muted); font-size: .8rem; font-weight: 700; }

/* Dashboard Site Search */
.dashboard-search-wrapper {
    position: relative;
    margin-bottom: 22px;
}
.dashboard-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--codeef-border, #e5e0eb);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(35, 17, 56, 0.04);
    transition: border-color .18s ease, box-shadow .18s ease;
    padding: 3px 10px 3px 4px;
}
.dashboard-search-bar:focus-within {
    border-color: var(--codeef-purple, #7627e8);
    box-shadow: 0 0 0 4px rgba(118, 39, 232, 0.12);
}
.dashboard-search-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--codeef-purple, #7627e8);
    font-size: 1.15rem;
    flex-shrink: 0;
}
.dashboard-search-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    padding: 10px 10px 10px 0;
    font-size: 0.94rem;
    color: var(--codeef-text, #17141f);
}
.dashboard-search-input::placeholder {
    color: #9b93a8;
}
.dashboard-search-clear {
    border: 0;
    background: transparent;
    color: #9b93a8;
    cursor: pointer;
    padding: 0 10px;
    font-size: 1.1rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color .15s ease;
}
.dashboard-search-clear:hover {
    color: var(--codeef-purple, #7627e8);
}
.dashboard-search-bar.has-query .dashboard-search-clear {
    display: flex;
}
.dashboard-sites-count-badge {
    background: var(--codeef-purple-soft, #f0e7ff);
    color: var(--codeef-purple, #7627e8);
    font-size: 0.76rem;
    font-weight: 750;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
    margin-left: 6px;
}

/* Site Cards */
.site-card { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--codeef-border, #e5e0eb); box-shadow: var(--codeef-shadow); }
.site-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--codeef-purple); content: ""; }
.site-card-header { display: flex; align-items: flex-start; gap: 14px; }
.site-card-avatar { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(0,0,0,.08); flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.site-card-avatar-placeholder { width: 50px; height: 50px; border-radius: 12px; background: #f0eaff; color: var(--codeef-purple, #7627e8); font-weight: 850; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(118,39,232,.18); box-shadow: 0 2px 8px rgba(118,39,232,.08); }
.site-card-meta-top { flex: 1; min-width: 0; }
.site-card-title { margin: 0; font-size: 1.08rem; font-weight: 850; letter-spacing: -.02em; color: var(--codeef-text, #17141f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card-url-row { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.site-card-url { display: inline-flex; align-items: center; gap: 5px; color: var(--codeef-purple, #7627e8); font-size: .78rem; font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(100% - 30px); }
.site-card-url:hover { text-decoration: underline; }
.site-card-copy-btn { border: 0; background: transparent; color: #9b93a8; cursor: pointer; padding: 2px 6px; border-radius: 6px; font-size: .8rem; display: inline-flex; align-items: center; transition: all .15s ease; }
.site-card-copy-btn:hover { background: var(--codeef-purple-soft, #f0e7ff); color: var(--codeef-purple, #7627e8); }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .69rem; font-weight: 850; flex-shrink: 0; }
.status-badge::before { width: 7px; height: 7px; border-radius: 50%; content: ""; }
.status-published { color: #157347; background: #e6f7ef; }
.status-published::before { background: #20a669; }
.status-draft { color: #8a6400; background: #fff6d7; }
.status-draft::before { background: #dca900; }
.status-inactive { color: #7e2730; background: #fdebed; }
.status-inactive::before { background: #d34c5a; }

/* Site Modules: Designer & Agendamentos */
.site-modules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 575.98px) {
    .site-modules-grid { grid-template-columns: 1fr; }
}
.site-module-card { background: #faf7ff; border: 1px solid #eee8f8; border-radius: 13px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; transition: all .18s ease; }
.site-module-card:hover { background: #fff; border-color: rgba(118, 39, 232, .38); box-shadow: 0 4px 14px rgba(118, 39, 232, .09); }
.site-module-card.is-booking { background: #faf7ff; border-color: #eee8f8; }
.site-module-card.is-booking:hover { background: #fff; border-color: rgba(118, 39, 232, .38); box-shadow: 0 4px 14px rgba(118, 39, 232, .09); }
.site-module-card.is-locked { background: #fafafa; border-color: #eee; }
.site-module-card.is-locked:hover { background: #fff; border-color: #cbd5e1; box-shadow: 0 4px 14px rgba(0, 0, 0, .04); }
.site-module-header { display: flex; align-items: center; gap: 10px; }
.site-module-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.site-module-card.is-designer .site-module-icon { background: #ede2ff; color: var(--codeef-purple, #7627e8); }
.site-module-card.is-booking .site-module-icon { background: #ede2ff; color: var(--codeef-purple, #7627e8); }
.site-module-card.is-locked .site-module-icon { background: #f1f5f9; color: #64748b; }
.site-module-title { font-weight: 800; font-size: .88rem; color: #1e293b; line-height: 1.2; margin: 0; }
.site-module-subtitle { font-size: .72rem; color: var(--codeef-muted, #7e788f); display: block; line-height: 1.35; margin-top: 2px; }
.btn-booking-dashboard { background: linear-gradient(135deg, var(--codeef-purple, #7627e8), var(--codeef-purple-2, #9a4cf2)); border-color: var(--codeef-purple, #7627e8); color: #fff; font-weight: 750; box-shadow: 0 4px 12px rgba(118, 39, 232, .22); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; min-height: 36px; text-decoration: none; transition: all .16s ease; }
.btn-booking-dashboard:hover { background: linear-gradient(135deg, #621ecc, #893de3); color: #fff; box-shadow: 0 6px 16px rgba(118, 39, 232, .32); transform: translateY(-1px); }

/* Site Card Meta & Quick Toolbar */
.site-card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--codeef-muted); font-size: .76rem; }
.site-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.site-quick-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 12px; margin-top: 14px; border-top: 1px solid var(--codeef-border, #e6e2ec); }
.site-quick-group-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.site-quick-group-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-quick-toolbar .btn { border-radius: 8px; font-size: .76rem; padding: 4px 10px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.site-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.site-actions .btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border-radius: 11px; font-size: .78rem; font-weight: 750; }

.form-label { margin-bottom: 7px; color: #39313f; font-size: .8rem; font-weight: 800; }
.form-label-row { display: flex; align-items: center; justify-content: space-between; min-height: 22px; margin-bottom: 7px; gap: 8px; }
.form-label-row .form-label { margin-bottom: 0; line-height: 1.35; }
.required-mark { color: var(--codeef-purple); font-weight: bold;  }
.form-control, .form-select {
    min-height: 47px;
    border-color: #ddd6e3;
    border-radius: 13px;
    color: var(--codeef-text);
    background-color: #fff;
}
textarea.form-control { min-height: 105px; }
.form-control:focus, .form-select:focus {
    border-color: #b47bea;
    box-shadow: 0 0 0 .22rem rgba(140,63,217,.12);
}
.form-hint { margin-top: 6px; color: var(--codeef-muted); font-size: .72rem; line-height: 1.45; }
.input-group-text { border-color: #ddd6e3; border-radius: 13px 0 0 13px; color: #7c7484; background: #f8f6fa; font-size: .8rem; }
.invalid-feedback { font-size: .73rem; font-weight: 650; }
.form-section-title { margin: 0 0 6px; font-size: 1.08rem; font-weight: 900; letter-spacing: -.025em; }
.form-section-description { margin: 0 0 20px; color: var(--codeef-muted); font-size: .82rem; }
.divider { height: 1px; margin: 25px 0; background: var(--codeef-border); }
.site-form-index {
    position: sticky;
    top: var(--site-form-sticky-top, 78px);
    z-index: 1010;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -8px 0 22px;
    padding: 10px 12px;
    border: 1px solid rgba(225, 216, 232, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(34, 21, 46, .09);
    backdrop-filter: blur(16px);
}
.site-form-index-label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding-inline: 5px; color: #625a68; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.site-form-index-links { display: flex; min-width: 0; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.site-form-index a { flex: 0 0 auto; padding: 8px 11px; border-radius: 10px; color: #6f6675; font-size: .73rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.site-form-index a:hover { color: var(--codeef-purple); background: var(--codeef-purple-soft); }
.site-form-index a[aria-current="location"] { color: #fff; background: var(--codeef-purple); box-shadow: 0 7px 16px rgba(140, 63, 217, .2); }
.site-form-section { scroll-margin-top: calc(var(--site-form-sticky-top, 78px) + 78px); }
.site-form-sidebar-card {
    position: static;
    top: auto;
    margin-bottom: 2rem;
}
@media (min-width: 1200px) {
    .site-form-sidebar-card {
        position: sticky;
        top: calc(var(--site-form-sticky-top, 78px) + 76px);
        z-index: 1000;
        margin-bottom: 0;
    }
}

/* Guia de Etapas do Lite Site (Configuração Guiada) */
.site-flow-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid rgba(225, 216, 232, .9);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(31, 22, 43, 0.04);
}
.site-flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.site-flow-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--codeef-muted);
    background: #f4eff8;
    flex-shrink: 0;
    transition: all .2s ease;
}
.site-flow-step.active .site-flow-step-num {
    color: #ffffff;
    background: var(--codeef-purple);
    box-shadow: 0 4px 12px rgba(140, 63, 217, 0.3);
}
.site-flow-step.ready .site-flow-step-num {
    color: var(--codeef-purple);
    background: #f1e5fb;
}
.site-flow-step-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.site-flow-step-text strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: #2b1f3d;
    line-height: 1.3;
}
.site-flow-step-text span {
    font-size: 0.74rem;
    color: var(--codeef-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-flow-step-separator {
    color: #d1c7d8;
    font-size: 1rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
@media (max-width: 991.98px) {
    .site-flow-guide {
        display: none;
    }
}

/* Cabeçalho Refinado de Seção do Formulário */
.site-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1ecf5;
}
.site-section-header-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.site-section-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f3ebfa;
    color: var(--codeef-purple);
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.site-section-header-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    color: #2b1f3d;
}
.site-section-header-desc {
    margin: 4px 0 0;
    color: var(--codeef-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}
.site-section-header-badge {
    flex-shrink: 0;
}
.site-badge-purple {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border: 1px solid rgba(140, 63, 217, 0.25);
    border-radius: 999px;
    color: var(--codeef-purple);
    background: var(--codeef-purple-soft);
    font-size: 0.69rem;
    font-weight: 800;
}

/* Sidebar Sticky Suave */
.site-form-sidebar-sticky {
    position: static;
}
@media (min-width: 1200px) {
    .site-form-sidebar-sticky {
        position: sticky;
        top: calc(var(--site-form-sticky-top, 78px) + 20px);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 16px;
        max-height: calc(100vh - var(--site-form-sticky-top, 78px) - 24px);
        overflow-y: auto;
        scrollbar-width: thin;
        padding-right: 2px;
    }
}

/* Bloco compacto de upload de foto / logo na sidebar */
.photo-uploader-compact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px dashed #cbbfd4;
    border-radius: 14px;
    background: #fbf9fd;
}
.photo-uploader-compact .photo-preview {
    width: 64px;
    height: 64px;
    margin: 0;
    flex-shrink: 0;
    border: 3px solid #fff;
    border-radius: 16px;
    background: #ebe5f0;
    box-shadow: 0 4px 12px rgba(39, 24, 52, 0.08);
}
.photo-uploader-compact .photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-uploader-compact .photo-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #a496af;
    font-size: 1.35rem;
}
.photo-uploader-compact .photo-uploader-content {
    flex: 1;
    min-width: 0;
}
@media (max-width: 575.98px) {
    .photo-uploader-compact {
        padding: 10px 12px;
        gap: 12px;
    }
    .photo-uploader-compact .photo-preview {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
}

/* Guia de Etapas Discreto (Accordion) na Sidebar */
.site-guide-accordion {
    border: 1px dashed #ded4e7;
    border-radius: var(--codeef-radius);
    background: #fdfbfe;
    padding: 12px 16px;
    transition: all .2s ease;
}
.site-guide-accordion[open] {
    padding-bottom: 16px;
}
.site-guide-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    font-size: 0.8rem;
    color: #4b3d54;
    user-select: none;
}
.site-guide-summary::-webkit-details-marker {
    display: none;
}
.site-guide-summary .guide-arrow {
    font-size: 0.75rem;
    color: var(--codeef-muted);
    transition: transform .2s ease;
}
.site-guide-accordion[open] .guide-arrow {
    transform: rotate(180deg);
}
.site-guide-body {
    border-top: 1px solid rgba(222, 212, 231, 0.6);
    margin-top: 10px;
}
.site-guide-step-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 10px;
}
.site-guide-step-item:last-child {
    margin-bottom: 0;
}
.site-guide-step-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eedefc;
    color: #7b2cbf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}
.site-guide-step-text {
    font-size: 0.76rem;
    color: #55495e;
    line-height: 1.35;
}
.site-guide-step-text strong {
    color: #2b1f3d;
}

.photo-uploader {
    display: grid;
    min-height: 285px;
    place-items: center;
    padding: 24px;
    border: 1.5px dashed #cbbfd4;
    border-radius: 22px;
    background: #fbf9fd;
    text-align: center;
}
.photo-preview {
    width: 148px;
    height: 148px;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 32px;
    background: #ebe5f0;
    box-shadow: 0 13px 30px rgba(39,24,52,.14);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #a496af; font-size: 2rem; }

.slug-feedback { display: flex; align-items: center; gap: 7px; min-height: 22px; margin-top: 6px; font-size: .73rem; font-weight: 700; }
.slug-feedback.available { color: #198754; }
.slug-feedback.unavailable { color: #c0394b; }
.slug-feedback.checking { color: #766b7f; }
.slug-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.slug-suggestion { padding: 5px 9px; border: 1px solid #dfcee9; border-radius: 999px; color: #6f28af; background: #faf5fe; font-size: .7rem; font-weight: 750; cursor: pointer; }

.table-codeef { margin: 0; }
.table-codeef > :not(caption) > * > * { padding: 14px 16px; border-bottom-color: #eee9f1; vertical-align: middle; }
.table-codeef thead th { color: #817987; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; background: #fbfafc; }
.table-codeef tbody td { font-size: .82rem; }
.uuid-code { display: inline-block; max-width: 220px; overflow: hidden; color: #7c7382; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; text-overflow: ellipsis; vertical-align: middle; }

.empty-state { padding: 55px 25px; text-align: center; }
.empty-state-icon { display: grid; width: 74px; height: 74px; margin: 0 auto 18px; place-items: center; border-radius: 24px; color: var(--codeef-purple); background: var(--codeef-purple-soft); font-size: 1.8rem; }
.empty-state h3 { margin: 0; font-size: 1.25rem; font-weight: 900; }
.empty-state p { max-width: 500px; margin: 9px auto 20px; color: var(--codeef-muted); }
.maintenance-message { max-width: 760px; margin: 30px auto; }
.maintenance-message .empty-state { padding-block: clamp(44px, 8vw, 76px); }
.maintenance-message .empty-state-icon { color: #8a5510; background: #fff1cf; }
.maintenance-kicker { display: inline-block; margin-bottom: 8px; color: #8a5510; font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.maintenance-control-card { border-color: #e2d7e9; }
.maintenance-scope-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.maintenance-scope-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--codeef-muted); font-size: .86rem; }
.maintenance-scope-list i { color: var(--codeef-purple); font-size: 1rem; }

.alert-codeef { border: 0; border-left: 4px solid; border-radius: 14px; box-shadow: 0 8px 25px rgba(29,20,38,.05); }
.alert-codeef.alert-success { border-left-color: #2aa86f; }
.alert-codeef.alert-danger { border-left-color: #d74f61; }

.auth-page {
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(circle at 14% 12%, rgba(140,63,217,.42), transparent 28%),
        radial-gradient(circle at 84% 80%, rgba(90,32,145,.28), transparent 30%),
        #09080c;
}
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.1fr) minmax(410px, .9fr); }
.auth-legal-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px clamp(20px, 5vw, 72px); border-top: 1px solid rgba(255,255,255,.08); background: #0b0a0f; }
.auth-legal-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.auth-legal-footer nav a { color: #aaa3af; font-size: .72rem; font-weight: 750; }
.auth-codeef-signature { display: block; text-decoration: none; }
.auth-codeef-logo, .auth-showcase-codeef > span { position: relative; display: block; width: 140px; height: 44px; overflow: hidden; }
.auth-codeef-logo img, .auth-showcase-codeef img { position: absolute; top: -53px; left: 0; display: block; width: 148px; max-width: none; height: auto; }
.auth-showcase-codeef { display: block; width: fit-content; text-decoration: none; }
.auth-showcase { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(35px, 6vw, 80px); }
.auth-showcase-logo { width: 240px; max-width: 70%; }
.auth-showcase-copy { max-width: 650px; }
.auth-kicker { color: var(--codeef-purple-2); font-size: .74rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.auth-showcase h1 { margin: 15px 0 18px; font-size: clamp(2.4rem, 5.4vw, 5.2rem); font-weight: 950; line-height: .95; letter-spacing: -.065em; }
.auth-showcase p { max-width: 560px; color: #aaa4b0; font-size: clamp(.95rem, 1.5vw, 1.1rem); line-height: 1.7; }
.auth-feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-feature { padding: 9px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #c7c1cb; background: rgba(255,255,255,.035); font-size: .75rem; font-weight: 750; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: 18px; padding: 25px; border-left: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); backdrop-filter: blur(20px); }
.auth-panel-logo { display: block; line-height: 0; }
.auth-panel-logo img { display: block; width: min(190px, 52vw); height: auto; }
.auth-card { width: min(100%, 450px); padding: clamp(28px, 5vw, 46px); border: 1px solid rgba(255,255,255,.1); border-radius: 30px; background: rgba(20,16,27,.86); box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.auth-card h2 { margin: 0; font-size: 1.8rem; font-weight: 900; letter-spacing: -.04em; }
.auth-card > p { margin: 8px 0 26px; color: #918a99; }
.auth-footnote { margin-top: 22px; color: #716a78; font-size: .72rem; text-align: center; }
.auth-terms-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; color: #b8b1be; background: rgba(255,255,255,.035); font-size: .76rem; line-height: 1.5; }
.auth-terms-consent .form-check-input { flex: 0 0 auto; margin: 3px 0 0; border-color: rgba(255,255,255,.3); background-color: rgba(255,255,255,.08); }
.auth-terms-consent .form-check-input:checked { border-color: var(--codeef-purple); background-color: var(--codeef-purple); }
.auth-terms-consent a { color: #c995f2; font-weight: 800; }
.auth-terms-consent.is-invalid { border-color: rgba(255,111,132,.65); }
.auth-terms-error { margin: -10px 0 15px; color: #ff9fad; font-size: .72rem; font-weight: 750; }
.btn-google:disabled { opacity: .5; cursor: not-allowed; }

.modal-content { border: 1px solid var(--codeef-border); border-radius: 24px; box-shadow: 0 30px 90px rgba(25,17,34,.22); }
.modal-header, .modal-footer { border-color: var(--codeef-border); }
.modal-title { font-weight: 900; letter-spacing: -.025em; }

.crop-stage { display: grid; min-height: 430px; place-items: center; overflow: hidden; border-radius: 18px; background: #100e15; }
.crop-stage canvas { display: block; max-width: 100%; height: auto; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.crop-stage canvas:active, .crop-stage canvas.grabbing { cursor: grabbing !important; }
.crop-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.crop-controls i { color: var(--codeef-purple); }
.crop-controls input { flex: 1; }
.cropper-modal .modal-dialog { height: calc(100vh - 24px); height: calc(100dvh - 24px); margin-top: 12px; margin-bottom: 12px; }
.cropper-modal .modal-content { display: flex; height: 100%; max-height: 100%; flex-direction: column; overflow: hidden; }
.cropper-modal .modal-header,
.cropper-modal .modal-footer { flex: 0 0 auto; }
.cropper-modal .modal-body { display: grid; min-height: 0; flex: 1 1 auto; grid-template-rows: minmax(0, 1fr) auto auto; overflow: hidden; }
.cropper-modal .crop-stage { min-height: 0; height: 100%; }
.cropper-modal .crop-stage canvas { width: auto; max-width: 100%; max-height: 100%; }

@media (max-width: 575.98px) {
    .cropper-modal .modal-dialog { width: calc(100% - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); margin: 8px; }
    .cropper-modal .modal-header { padding: 12px 14px; }
    .cropper-modal .modal-header .small { display: none; }
    .cropper-modal .modal-body { padding: 10px 12px; }
    .cropper-modal .modal-footer { padding: 10px 12px; }
    .cropper-modal .crop-controls { gap: 8px; margin-top: 9px; }
    .cropper-modal .crop-controls .btn { min-height: 38px; padding-inline: 10px; font-size: .72rem; }
}

/* Ajuda e navegação administrativa compacta */
.topnav-dropdown { display: flex; }
.topnav-dropdown .topnav-link { background: transparent; }
.topnav-dropdown .dropdown-menu {
    min-width: 235px;
    padding: 7px;
    border: 1px solid #e7ddf0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(46, 28, 67, 0.12), 0 4px 12px rgba(46, 28, 67, 0.04);
}
.topnav-dropdown .dropdown-item {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    color: #3b3147;
    font-size: .78rem;
    font-weight: 700;
    transition: background .15s ease, color .15s ease;
}
.topnav-dropdown .dropdown-item:hover,
.topnav-dropdown .dropdown-item:focus {
    background: #f4ecfb;
    color: #742bb9;
}
.topnav-dropdown .dropdown-item i {
    width: 18px;
    color: #8c3fd9;
    font-size: .95rem;
    text-align: center;
    transition: color .15s ease;
}
.topnav-dropdown .dropdown-item:hover i,
.topnav-dropdown .dropdown-item:focus i {
    color: #742bb9;
}
.topnav-dropdown .dropdown-divider {
    margin: 5px 0;
    border-top: 1px solid #ede5f4;
    opacity: 1;
}
.help-choice-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: clamp(22px, 4vw, 34px); color: var(--codeef-text); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.help-choice-card:hover { transform: translateY(-2px); border-color: rgba(118,39,232,.32); color: var(--codeef-text); box-shadow: 0 16px 35px rgba(46,28,67,.1); }
.help-choice-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 17px; color: #7627e8; background: #f0e7ff; font-size: 1.35rem; }
.help-choice-icon.is-design,
.help-choice-icon.is-booking,
.help-choice-icon.is-support,
.help-choice-icon.is-tickets,
.help-choice-icon.is-suggestion,
.help-choice-icon.is-problem { color: #7627e8; background: #f0e7ff; }
.badge-ticket-active { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; font-weight: 700; }
.badge-ticket-closed { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; font-weight: 600; }
.text-ticket-orange { color: #ea580c !important; }
.bg-ticket-orange { background-color: #ea580c !important; color: #ffffff !important; }
.ticket-file-pill { text-decoration: none; transition: background .15s ease, border-color .15s ease; border-radius: 8px; }
.ticket-file-pill:hover { background: #fff7ed !important; border-color: #fed7aa !important; color: #c2410c !important; }
.ticket-message-card { border-radius: 12px; }
.ticket-message-card .card-header { border-bottom: 1px solid rgba(0,0,0,.06); }
.ticket-mobile-card { border: 1px solid var(--codeef-border); border-radius: 12px; background: #fff; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(37, 46, 98, .04); transition: border-color .15s ease, box-shadow .15s ease; }
.ticket-mobile-card:hover { border-color: rgba(118, 39, 238, .3); box-shadow: 0 6px 20px rgba(37, 46, 98, .08); }
.help-choice-card strong, .help-choice-card small { display: block; }
.help-choice-card strong { margin-bottom: 7px; font-size: 1.05rem; font-weight: 800; }
.help-choice-card small { color: var(--codeef-muted); line-height: 1.6; }
.help-choice-arrow { color: #8c3fd9; font-size: 1.2rem; }
.help-form-heading h2 { margin-top: 12px; }
.help-back-link { display: inline-flex; align-items: center; gap: 6px; color: #7627e8; font-size: .78rem; font-weight: 800; text-decoration: none; }
.help-form-card { max-width: 850px; }
.help-field-label { margin-bottom: 9px; font-size: .86rem; font-weight: 800; }
.help-description { min-height: 190px; resize: vertical; }
.help-file-picker { display: flex; min-height: 95px; align-items: center; gap: 16px; padding: 18px; border: 1px dashed #c9bcd7; border-radius: 13px; cursor: pointer; background: #fbf9fd; transition: border-color .18s ease, background .18s ease; }
.help-file-picker:hover { border-color: #8c3fd9; background: #f7f0fd; }
.help-file-picker > i { color: #7627e8; font-size: 1.8rem; }
.help-file-picker span, .help-file-picker small { display: block; }
.help-file-picker strong { font-size: .88rem; }
.help-file-picker small { margin-top: 4px; color: var(--codeef-muted); font-size: .72rem; }
.help-file-list { display: grid; gap: 7px; margin-top: 10px; }
.help-file-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #e7e1eb; border-radius: 9px; background: #fff; font-size: .76rem; }
.help-file-item i { color: #7627e8; }
.help-file-item span { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.help-file-item small { color: var(--codeef-muted); }
.help-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.help-recaptcha-note { margin-top: 17px; color: var(--codeef-muted); font-size: .68rem; text-align: right; }
.help-admin-details { min-width: 260px; }
.help-admin-details[open] { width: min(420px, 72vw); }
.help-admin-description { max-height: 240px; margin-top: 12px; overflow: auto; padding: 12px; border-radius: 9px; background: #f8f6fa; line-height: 1.55; white-space: normal; }
.help-admin-file { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #e3dce9; border-radius: 9px; color: var(--codeef-text); text-decoration: none; }
.help-admin-file:hover { border-color: #9b61d3; color: #7627e8; }
.help-admin-file i { font-size: 1.1rem; }
.help-admin-file span, .help-admin-file small { display: block; }
.help-admin-file small { margin-top: 2px; color: var(--codeef-muted); }

@media (max-width: 991.98px) {
    .topnav-dropdown { display: block; }
    .topnav-dropdown .topnav-link { width: 100%; }
    .topnav-dropdown .dropdown-menu {
        position: static !important;
        width: 100%;
        transform: none !important;
        box-shadow: none;
        border: 1px solid #ede5f4;
        border-radius: 12px;
        background: #faf7fc;
        margin-top: 4px;
    }
}

@media (max-width: 575.98px) {
    .help-choice-card { grid-template-columns: auto 1fr; gap: 14px; }
    .help-choice-arrow { display: none; }
    .help-form-card { margin-inline: -14px; border-right: 0; border-left: 0; border-radius: 0; }
    .help-form-actions { flex-direction: column-reverse; }
    .help-form-actions .btn { width: 100%; }
}

@media (max-width: 1199.98px) {
    .app-sidebar { position: static; width: 100%; min-height: 100%; }
    .app-sidebar .sidebar-label { display: block; }
    .app-sidebar .sidebar-link { justify-content: flex-start; }
    .app-sidebar .sidebar-link span { display: inline; }
    .app-main, .sidebar-expanded .app-main { margin-left: 0; }
    .app-topbar { min-height: 68px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-showcase { display: none; }
    .auth-panel { border-left: 0; }
}
@media (max-width: 575.98px) {
    .app-content { padding-top: 20px; }
    .app-legal-footer,
    .auth-legal-footer { align-items: flex-start; flex-direction: column; }
    .page-heading { flex-direction: column; }
    .page-heading .btn { width: 100%; }
    .site-actions .btn { flex: 1 1 auto; }
    .card-codeef .card-body { padding: 18px; }
    .crop-stage { min-height: 320px; }
}

/* Navegacao horizontal do painel */
.app-main { margin-left: 0; }
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 22px;
    padding: 9px clamp(18px, 3vw, 42px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
    background: #111016;
    box-shadow: 0 8px 24px rgba(18, 13, 25, .16);
}
.app-brand-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    line-height: 0;
}
.app-brand-top { display: block; flex: 0 0 auto; line-height: 0; }
.app-brand-top img { display: block; width: 142px; height: auto; }
.brand-plan-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: 2.5px 7px;
    border-radius: 6px;
    font-size: 0.60rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 2;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.brand-plan-badge:hover {
    transform: translateY(-1px);
}
.brand-plan-badge.is-business {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}
.brand-plan-badge.is-business:hover {
    color: #1e40af;
    background: #dbeafe;
    border-color: #93c5fd;
}
.brand-plan-badge.is-pro {
    color: #7e22ce;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    box-shadow: 0 1px 3px rgba(126, 34, 206, 0.08);
}
.brand-plan-badge.is-pro:hover {
    color: #6b21a8;
    background: #f3e8ff;
    border-color: #d8b4fe;
}
.brand-plan-badge.is-free {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.brand-plan-badge.is-free:hover {
    color: #1e293b;
    background: #f1f5f9;
}
.brand-plan-badge.is-admin {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}
.topbar-navigation { display: block !important; flex: 1 1 auto; min-width: 0; }
.app-topnav { display: flex; align-items: stretch; gap: 3px; }
.topnav-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-bottom: 2px solid transparent;
    color: #bdb7c6;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.topnav-link i { color: #928b9d; font-size: .95rem; }
.topnav-link:hover { color: #fff; background: rgba(255,255,255,.045); }
.topnav-link.active { border-bottom-color: var(--codeef-purple-2); color: #fff; }
.topnav-link.active i { color: var(--codeef-purple-2); }
.topnav-toggle { display: none; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: #fff; background: rgba(255,255,255,.06); font-size: 1.25rem; }
.app-topbar .topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.app-topbar .topbar-plan-pill { border-color: rgba(255,255,255,.12); color: #d7b9f2; background: rgba(255,255,255,.06); }
.app-topbar .topbar-plan-pill:hover { color: #fff; background: rgba(255,255,255,.1); }
.topbar-user-name, .topbar-user-role { display: inline-flex; align-items: center; gap: 6px; color: #c7c1ce; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.topbar-user-name i, .topbar-user-role i { color: #9d94a8; font-size: 1rem; }
.topbar-icon-button { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #c7c1ce; background: transparent; }
.topbar-icon-button:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar-logout { margin: 0; }
.app-topbar .topbar-new-site { min-height: 38px; padding-inline: 13px; border-color: var(--codeef-purple); font-size: .76rem; }
.app-pagebar { display: flex; min-height: 82px; align-items: center; padding: 18px clamp(18px, 4vw, 48px); border-bottom: 1px solid rgba(231,225,235,.78); background: rgba(247,245,249,.9); }

@media (max-width: 991.98px) {
    .app-topbar { flex-wrap: wrap; gap: 10px 14px; padding-block: 10px; }
    .app-brand-container { flex: 0 0 auto; margin-right: auto; gap: 5px; }
    .app-brand-top { flex: 0 0 auto; }
    .app-brand-top img { width: 126px; }
    .brand-plan-badge { margin-left: 0; font-size: 0.54rem; padding: 2px 5.5px; }
    .topnav-toggle { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid #e6dfec; color: #2b1f3d; background: #fbf9fc; }
    .topbar-navigation { order: 5; flex-basis: 100%; }
    .topbar-navigation:not(.show) { display: none !important; }
    .app-topnav { display: grid; gap: 2px; padding: 7px 0 3px; border-top: 1px solid #efeaf4; background: #ffffff; }
    .topnav-link { min-height: 42px; padding-inline: 10px; border-bottom: 0; border-radius: 8px; }
    .topnav-link.active { background: #f4ecfd; color: #742bb9; }
    .topbar-user-name { display: none; }
    .app-pagebar { min-height: 70px; }
}

@media (max-width: 575.98px) {
    .app-topbar { padding-inline: 14px; }
    .app-brand-top img { width: 116px; }
    .brand-plan-badge { margin-left: 0; font-size: 0.50rem; padding: 1.5px 5px; }
    .topbar-user-role { display: none; }
    .app-topbar .topbar-new-site { padding-inline: 10px; }
    .app-pagebar { padding-inline: 18px; }
}

/* Autenticacao publica, cadastro e recuperacao */
.auth-card-register { width: min(100%, 560px); }
.btn-google {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 13px;
    color: #201b27;
    background: #fff;
    font-weight: 850;
    box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.btn-google:hover { color: #201b27; border-color: #fff; background: #f7f4f9; }
.google-mark {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #4285f4;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
}
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 21px 0; color: #77707d; font-size: .7rem; font-weight: 750; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: rgba(255,255,255,.1); content: ""; }
.auth-inline-link { margin-bottom: 7px; color: #b985ea; font-size: .72rem; font-weight: 750; text-decoration: none; }
.auth-inline-link:hover { color: #d2adf4; }
.auth-switch { margin-top: 22px; color: #8f8796; font-size: .8rem; text-align: center; }
.auth-switch a { color: #c18df0; font-weight: 850; text-decoration: none; }
.auth-switch a:hover { color: #dfc2f8; }
.auth-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 15px;
    color: #d9b8f6;
    background: rgba(140,63,217,.22);
    font-size: 1.2rem;
}
.auth-icon-danger { color: #ffb8c1; background: rgba(215,79,97,.17); }
.auth-card .invalid-feedback, .auth-card .text-danger { color: #ff9fad !important; }
.auth-shell-compact .auth-showcase-copy { max-width: 560px; }
.auth-shell-compact .auth-showcase h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }

/* Planos, permissoes e conta */
.plan-badge,
.sidebar-plan,
.topbar-plan-pill,
.designer-plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid #e2d9e8;
    border-radius: 999px;
    color: #69606f;
    background: #f6f3f8;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.plan-badge-pro,
.sidebar-plan.is-pro,
.topbar-plan-pill.is-pro,
.designer-plan-badge.is-pro {
    border-color: rgba(140, 63, 217, .28);
    color: #6d23aa;
    background: #f1e5fb;
}
.topbar-plan-pill { min-height: 38px; padding-inline: 13px; text-decoration: none; }
.topbar-plan-pill:hover { color: #5c1c94; border-color: #cda9e9; background: #ead9f8; }
.sidebar-plan { border-color: rgba(255,255,255,.12); color: #c9c1ce; background: rgba(255,255,255,.07); }
.sidebar-plan.is-pro { border-color: rgba(190,133,242,.3); color: #dfbef9; background: rgba(140,63,217,.2); }

.plan-notice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #dfc8f2;
    border-radius: 20px;
    background: #fbf7fe;
    box-shadow: 0 14px 38px rgba(79,39,111,.08);
}
.plan-notice-booking {
    border-color: #d8c2f5;
    background: #f7f2fe;
}
.plan-notice-icon,
.plan-lock-icon {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--codeef-purple), #6f28af);
    box-shadow: 0 11px 24px rgba(140,63,217,.22);
}
.plan-notice-booking .plan-notice-icon {
    background: linear-gradient(135deg, #6c23db, #5213b2);
    box-shadow: 0 11px 24px rgba(108,35,219,.24);
}
.plan-notice strong { display: block; font-size: .92rem; font-weight: 900; }
.plan-notice p { margin: 4px 0 0; color: var(--codeef-muted); font-size: .79rem; line-height: 1.5; }
.plan-notice-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.plan-notice-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: rgba(118, 39, 232, 0.08);
    color: var(--codeef-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
    padding: 0;
    flex-shrink: 0;
}
.plan-notice-close:hover {
    background: rgba(118, 39, 232, 0.16);
    color: var(--codeef-purple);
    transform: scale(1.05);
}
.plan-notice-close:focus-visible {
    outline: 2px solid var(--codeef-purple);
    outline-offset: 2px;
}
.stat-card-locked { display: flex; flex-direction: row; align-items: center; gap: 16px; color: inherit; }
.stat-card-locked .stat-icon { flex: 0 0 auto; }
.stat-card-locked .stat-label { color: var(--codeef-text); font-size: .9rem; font-weight: 900; }
.stat-locked-copy { margin-top: 4px; color: var(--codeef-muted); font-size: .75rem; line-height: 1.45; }

.plan-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--codeef-purple); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.plan-lock-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 19px;
    border: 1px solid #e2cff2;
    border-radius: 18px;
    background: #faf6fd;
}
.plan-lock-notice strong,
.plan-lock-notice span { display: block; }
.plan-lock-notice strong { font-size: .88rem; font-weight: 900; }
.plan-lock-notice span { margin-top: 3px; color: var(--codeef-muted); font-size: .76rem; }
.plan-card {
    position: relative;
    padding: clamp(24px, 4vw, 34px);
    overflow: hidden;
    border: 1px solid var(--codeef-border);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--codeef-shadow);
}
.plan-card.is-current { border-color: #b987e5; box-shadow: 0 18px 50px rgba(91,43,128,.14); }
.plan-card-pro { color: #fff; border: 2px solid rgba(192, 132, 252, 0.35); background: #581c87; box-shadow: 0 18px 50px rgba(88, 28, 135, 0.28); }
.plan-card-pro::after { display: none; }
.plan-card-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.plan-name { color: var(--codeef-purple); font-size: .74rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.plan-card-pro .plan-name { color: #f3e8ff; }
.plan-card h3 { margin: 8px 0 0; font-size: 1.55rem; font-weight: 950; letter-spacing: -.045em; }
.plan-card-pro h3 { color: #ffffff; }
.plan-card > p { position: relative; z-index: 1; margin: 16px 0 22px; color: var(--codeef-muted); font-size: .85rem; line-height: 1.6; }
.plan-card-pro > p { color: #e9d5ff; }
.plan-current,
.plan-highlight { position: relative; z-index: 1; padding: 6px 10px; border-radius: 999px; font-size: .65rem; font-weight: 900; }
.plan-current { color: #5f1a98; background: #ead9f8; }
.plan-card-pro .plan-current { color: #ffffff; background: rgba(255, 255, 255, 0.2); }
.plan-card-pro .plan-highlight { color: #2e1065; background: #f3e8ff; }
.plan-highlight { color: #24162e; background: #dcb7f9; }
.plan-feature-list { position: relative; z-index: 1; display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.plan-feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; line-height: 1.45; }
.plan-feature-list li > span { display: block; }
.plan-feature-list li small { display: block; margin-top: 4px; color: #8f8697; font-size: .72rem; line-height: 1.5; }
.plan-card-pro .plan-feature-list li.is-emphasis { margin: 2px -8px; padding: 12px; border: 1px solid rgba(233, 213, 255, 0.3); border-radius: 14px; background: rgba(255, 255, 255, 0.12); }
.plan-card-pro .plan-feature-list li.is-emphasis > span { color: #fff; font-weight: 800; }
.plan-card-pro .plan-feature-list li.is-emphasis small { color: #e9d5ff; font-weight: 500; }
.plan-feature-list i { margin-top: 1px; color: #299d68; }
.plan-feature-list .is-disabled { color: #9991a0; }
.plan-feature-list .is-disabled i { color: #baafbF; }
.plan-card-pro .plan-feature-list i { color: #d8b4fe; }
.plan-card-pro .form-hint { color: #e9d5ff; opacity: .88; }

.plan-card-business { color: #fff; border: 2px solid rgba(255, 255, 255, 0.2); background: #18181b; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65); }
.plan-card-business::after { display: none; }
.plan-card-business .plan-name { color: #f4f4f5; }
.plan-card-business h3 { color: #ffffff; }
.plan-card-business > p { color: #d4d4d8; }
.plan-card-business .plan-highlight { color: #000000; background: #ffffff; font-weight: 900; }
.plan-card-business .plan-current { color: #ffffff; background: rgba(255, 255, 255, 0.2); }
.plan-card-business .plan-feature-list li.is-emphasis { margin: 2px -8px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 14px; background: rgba(255, 255, 255, 0.1); }
.plan-card-business .plan-feature-list li.is-emphasis > span { color: #fff; font-weight: 800; }
.plan-card-business .plan-feature-list li.is-emphasis small { color: #a1a1aa; font-weight: 500; }
.plan-card-business .plan-feature-list i { color: #34d399; }
.plan-card-business .form-hint { color: #a1a1aa; }
.plan-card-business .btn-business {
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.12) !important;
}
.plan-card-business .btn-business:hover {
    background: #f4f4f5 !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.22) !important;
}

.plan-promo-alert { position: relative; z-index: 1; border-radius: 14px; padding: 11px 14px; margin-bottom: 16px; font-size: .82rem; line-height: 1.35; }
.plan-card-pro .plan-promo-alert { background: rgba(255, 255, 255, 0.14); border: 1px dashed rgba(255, 255, 255, 0.45); color: #ffffff; }
.plan-card-business .plan-promo-alert { background: rgba(255, 255, 255, 0.1); border: 1px dashed rgba(255, 255, 255, 0.35); color: #ffffff; }

.plan-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-choice {
    position: relative;
    display: grid;
    min-height: 132px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border: 1px solid #ded6e4;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.plan-choice:hover { transform: translateY(-1px); border-color: #c8a5e4; }
.plan-choice.is-selected { border-color: var(--codeef-purple); box-shadow: 0 0 0 3px rgba(140,63,217,.1); background: #fbf7fe; }
.plan-choice input { position: absolute; opacity: 0; pointer-events: none; }
.plan-choice-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--codeef-purple); background: var(--codeef-purple-soft); }
.plan-choice-content strong,
.plan-choice-content small { display: block; }
.plan-choice-content strong { font-size: .9rem; font-weight: 950; }
.plan-choice-content small { margin-top: 7px; color: var(--codeef-muted); font-size: .71rem; line-height: 1.5; }
.plan-choice-check { color: #c9becf; }
.plan-choice.is-selected .plan-choice-check { color: var(--codeef-purple); }
.account-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.account-meta-grid > div { min-width: 0; padding: 14px; border: 1px solid var(--codeef-border); border-radius: 15px; background: #faf8fb; }
.account-meta-grid span,
.account-meta-grid strong,
.account-meta-grid code { display: block; }
.account-meta-grid span { margin-bottom: 5px; color: var(--codeef-muted); font-size: .67rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.account-meta-grid strong,
.account-meta-grid code { overflow: hidden; color: var(--codeef-text); font-size: .74rem; font-weight: 850; text-overflow: ellipsis; }
.plan-badge.plan-pro { border-color: rgba(140, 63, 217, .28); color: #6d23aa; background: #f1e5fb; }
.plan-badge.plan-business { border-color: rgba(13, 110, 253, .28); color: #0a58ca; background: #e7f1ff; }
.alert-codeef.alert-info { border-left-color: #4e8dcc; }

/* 2FA - Autenticação em duas etapas e Códigos de Recuperação */
.two-factor-qr-box {
    display: inline-block;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--codeef-border);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}
.two-factor-qr-box svg {
    display: block;
    max-width: 100%;
    height: auto;
}
.two-factor-code-input {
    letter-spacing: .35em;
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.recovery-codes-card {
    background: #faf8fb;
    border: 1px dashed rgba(140, 63, 217, .35);
    border-radius: 16px;
    padding: 20px;
}
.recovery-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
.recovery-code-item {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    font-size: .95rem;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--codeef-border);
    border-radius: 10px;
    text-align: center;
    color: var(--codeef-text);
    user-select: all;
    letter-spacing: .08em;
}

/* Atualização visual do painel: mesmas cores, superfícies e hierarquia mais leves. */
.app-main {
    background:
        radial-gradient(circle at 88% -8%, rgba(169,96,238,.12), transparent 28rem),
        radial-gradient(circle at 6% 18%, rgba(140,63,217,.055), transparent 24rem),
        var(--codeef-bg);
}
.app-topbar {
    min-height: 70px;
    padding-block: 11px;
    border-bottom: 1px solid #ebe5f0;
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(34, 23, 56, .04);
}
.app-brand-top img { width: 142px; }
.brand-plan-badge { margin-left: 0; }
.app-topnav { gap: 6px; }
.topnav-link {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .75rem;
    letter-spacing: -.01em;
}
.topnav-link:hover { background: #f6f2fa; color: #1e152d; }
.topnav-link.active {
    border-color: #ebdcfc;
    color: #742bb9;
    background: #f4ecfd;
    box-shadow: none;
}
.app-topbar .topbar-actions { gap: 8px; }
.topbar-user-name, .topbar-user-role { font-size: .71rem; }
.topbar-icon-button {
    width: 37px;
    height: 37px;
    border: 1px solid #e7e1ee;
    border-radius: 11px;
    color: #5a5168;
    background: #faf8fc;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.topbar-icon-button:hover { transform: translateY(-1px); color: #742bb9; background: #f2eaf9; border-color: #ded3ea; }
.app-pagebar {
    min-height: 94px;
    padding-block: 22px;
    border-bottom-color: rgba(220,211,227,.72);
    background: rgba(250,249,252,.72);
    backdrop-filter: blur(12px);
}
.topbar-title { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 800; letter-spacing: -.055em; }
.topbar-subtitle { margin-top: 5px; font-size: .72rem; }
.app-content { padding-top: 34px; }
.card-codeef {
    border-color: rgba(224,217,231,.9);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31,22,43,.055), 0 2px 5px rgba(31,22,43,.025);
}
.card-codeef .card-header { padding: 22px 24px 0; }
.card-codeef .card-body { padding: 24px; }
.card-codeef .card-footer { padding: 0 24px 24px; }
.page-heading { margin-bottom: 28px; }
.page-heading h2 { font-weight: 800; letter-spacing: -.055em; }
.management-heading > div:first-child { padding-left: 14px; }
.management-heading > div:first-child::before { width: 3px; box-shadow: 0 0 14px rgba(140,63,217,.35); }
.management-stats .management-stat, .stat-card {
    border-color: rgba(225,217,233,.88);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31,22,43,.05);
}
.management-stats .management-stat { min-height: 114px; padding: 21px; }
.stat-card { min-height: 148px; padding: 24px; }
.stat-icon {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(140,63,217,.13);
    border-radius: 15px;
    background: #f7effe;
}
.stat-value { font-weight: 800; }
.management-filter { border-radius: 18px; }
.management-table-card { overflow: hidden; }
.management-table thead th, .table-codeef thead th { background: #f9f7fb; }
.management-table > :not(caption) > * > *, .table-codeef > :not(caption) > * > * { padding-top: 17px; padding-bottom: 17px; }
.form-control, .form-select {
    min-height: 48px;
    border-color: #ded7e4;
    border-radius: 12px;
    font-size: .86rem;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.form-control:hover, .form-select:hover { border-color: #cbbfd5; }
.form-control:focus, .form-select:focus { border-color: #a960ee; box-shadow: 0 0 0 .24rem rgba(140,63,217,.11); }
.btn-codeef {
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: -.01em;
    box-shadow: 0 9px 20px rgba(140,63,217,.2);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-codeef:hover { transform: translateY(-1px); box-shadow: 0 13px 24px rgba(140,63,217,.28); }
.btn-soft-purple, .btn-light-codeef { border-radius: 12px; }
.site-card { transition: transform .18s ease, box-shadow .18s ease; }
.site-card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(31,22,43,.09); }
.app-legal-footer { border-top-color: rgba(224,217,231,.8); background: rgba(255,255,255,.78); }

@media (max-width: 767.98px) {
    .plan-notice { align-items: flex-start; flex-wrap: wrap; }
    .plan-notice-actions { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
    .plan-notice-actions .btn { flex-grow: 1; }
    .plan-choice-grid { grid-template-columns: 1fr; }
    .account-meta-grid { grid-template-columns: 1fr; }
}

/* Sistema visual do painel — Material leve, consistente em todas as telas ADM. */
:root {
    --codeef-purple: #7627e8;
    --codeef-purple-2: #9a4cf2;
    --codeef-purple-soft: #f0e7ff;
    --codeef-black: #111019;
    --codeef-dark: #171521;
    --codeef-text: #1b1730;
    --codeef-muted: #7e788f;
    --codeef-border: #e6e2ec;
    --codeef-bg: #f8f8fc;
    --codeef-radius: 14px;
    --codeef-shadow: 0 8px 24px rgba(30, 23, 46, .055);
}
body { letter-spacing: -.012em; }
.app-main {
    background:
        radial-gradient(circle at 82% 8%, rgba(118,39,232,.055), transparent 29rem),
        #f8f8fc;
}
.app-topbar {
    min-height: 70px;
    padding: 10px clamp(22px, 3vw, 48px);
    border-bottom: 1px solid #ebe5f0;
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(33, 24, 53, .04);
}
.app-brand-top img { width: 142px; }
.app-topnav { gap: 8px; }
.topnav-link {
    min-height: 46px;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #554d63;
    font-size: .75rem;
}
.topnav-link i { color: #857a98; }
.topnav-link.active {
    border-color: #ebdcfc;
    color: #742bb9;
    background: #f4ecfd;
    box-shadow: none;
}
.topbar-icon-button { border: 1px solid #e7e1ee; border-radius: 10px; color: #5a5168; background: #faf8fc; }
.topbar-icon-button:hover { color: #742bb9; background: #f2eaf9; border-color: #ded3ea; }
.app-pagebar {
    min-height: 88px;
    padding: 18px clamp(22px, 3vw, 48px);
    background: rgba(255,255,255,.74);
    box-shadow: 0 4px 16px rgba(30,23,46,.025);
}
.topbar-title { color: #171329; font-size: clamp(1.18rem, 2vw, 1.45rem); font-weight: 800; }
.app-content { padding: 28px clamp(22px, 3vw, 48px) 48px; }
.page-heading h2 { color: #171329; font-weight: 800; }
.page-heading p { color: var(--codeef-muted); font-size: .83rem; }
.management-heading > div:first-child { padding-left: 0; }
.management-heading > div:first-child::before { display: none; }
.card-codeef,
.management-filter,
.management-table-card {
    border-color: #e5e1eb;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 7px 20px rgba(32,24,48,.045);
}
.management-stats .management-stat,
.stat-card { border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(32,24,48,.045); }
.management-stat small,
.stat-label { color: #817b90; letter-spacing: .035em; }
.stat-icon { border: 0; border-radius: 11px; background: #f0e7ff; }
.management-filter { padding: 18px; }
.management-filter .form-label { letter-spacing: .035em; }
.management-table thead th,
.table-codeef thead th { color: #777185; background: #faf9fc; font-size: .69rem; letter-spacing: .025em; text-transform: uppercase; }
.management-table tbody td,
.table-codeef tbody td { color: #343044; font-size: .8rem; }
.form-label { color: #343044; font-size: .76rem; }
.form-control,
.form-select {
    min-height: 46px;
    border-color: #ddd8e5;
    border-radius: 10px;
    background-color: #fff;
}
.form-control:focus,
.form-select:focus { border-color: #8a42e2; box-shadow: 0 0 0 .2rem rgba(118,39,232,.1); }
.btn-codeef {
    border-radius: 10px;
    background: linear-gradient(135deg, #7023df, #9635ee);
    border-color: #7627e8;
    box-shadow: 0 7px 17px rgba(112,35,223,.22);
}
.btn-codeef:hover { background: linear-gradient(135deg, #641dc9, #852bd9); }
.btn-light-codeef,
.btn-soft-purple { border-radius: 10px; }
.status-badge,
.plan-badge { border-radius: 999px; }
.modal-content { border: 1px solid #e5e0eb; border-radius: 16px; box-shadow: 0 26px 75px rgba(28,20,42,.22); }
.modal-header { padding: 18px 20px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; }
.btn-close { width: 36px; height: 36px; padding: 0; border: 1px solid #e4dfeb; border-radius: 10px; background-size: 11px; }
.app-legal-footer { background: rgba(255,255,255,.84); }

@media (max-width: 991.98px) {
    .app-topbar { padding: 9px 16px; }
    .app-topnav { gap: 3px; }
    .topnav-link { min-height: 43px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .app-topbar { flex-wrap: wrap; gap: 10px 14px; }
    .app-brand-container { flex: 0 0 auto; margin-right: auto; }
    .app-brand-top { flex: 0 0 auto; }
    .topnav-toggle { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid #e6dfec; color: #2b1f3d; background: #fbf9fc; }
    .topbar-navigation { order: 5; flex-basis: 100%; }
    .topbar-navigation:not(.show) { display: none !important; }
    .app-topnav { display: grid; gap: 2px; padding: 7px 0 3px; border-top: 1px solid #efeaf4; background: #ffffff; }
    .topnav-link { min-height: 42px; border-radius: 8px; }
}

@media (max-width: 575.98px) {
    .app-pagebar { min-height: 72px; padding: 14px 16px; }
    .app-content { padding: 20px 14px 38px; }
    .page-heading { gap: 14px; }
    .page-heading h2 { font-size: 1.35rem; }
    .site-form-index { gap: 0; margin-inline: -5px; padding: 8px; border-radius: 14px; }
    .site-form-index-label { display: none; }
    .site-form-index-links { width: 100%; padding-bottom: 2px; }
    .site-form-index a { min-height: 40px; padding: 10px 12px; }
    .management-stats .management-stat { min-height: 96px; padding: 16px; }
    .management-filter { padding: 14px; }
    .management-table > :not(caption) > * > *,
    .table-codeef > :not(caption) > * > * { padding: 13px 14px; }
}

/* ===== Sistema de Notificações Topbar ===== */
.notification-dropdown {
    position: relative;
    display: inline-flex;
}
.notification-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e7e1ee;
    border-radius: 10px;
    cursor: pointer;
    color: #5a5168;
    background: #faf8fc;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.notification-bell-btn:hover {
    color: #742bb9;
    background: #f2eaf9;
    border-color: #ded3ea;
}
.notification-bell-btn:focus,
.notification-bell-btn:focus-visible {
    outline: none !important;
    border-color: #8c3fd9 !important;
    box-shadow: 0 0 0 3px rgba(140, 63, 217, 0.25) !important;
}
.notification-bell-btn i {
    font-size: 1.05rem;
}
.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #ffffff;
    pointer-events: none;
}
@keyframes notifBellShake {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(14deg); }
    40%, 80% { transform: rotate(-14deg); }
}
.notification-bell-btn.has-new i {
    animation: notifBellShake 0.8s ease-in-out;
}
.notification-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: 380px;
    max-width: 92vw;
    border: 1px solid #ebe5f0;
    border-radius: 18px;
    background: #ffffff;
    color: #2c2337;
    padding: 0;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 20px 50px rgba(32, 23, 48, 0.16), 0 4px 14px rgba(32, 23, 48, 0.06);
    z-index: 1060;
}
.notification-header {
    padding: 14px 18px;
    background: #faf7fc;
    border-bottom: 1px solid #eee8f4;
}
.notification-header-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1e152d;
    letter-spacing: -0.01em;
}
.notification-count-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    background: #742bb9 !important;
    color: #ffffff !important;
}
.btn-mark-all-read {
    background: #f4ecfd;
    border: 1px solid #ebdcfc;
    color: #742bb9;
    font-size: 0.76rem;
    font-weight: 750;
    cursor: pointer;
    padding: 4px 11px;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.btn-mark-all-read:hover:not(:disabled) {
    color: #5c189c;
    background: #eddcfc;
    border-color: #dfc8f8;
}
.btn-mark-all-read:disabled {
    color: #a499b2;
    background: #f5f2f8;
    border-color: #ece6f2;
    cursor: not-allowed;
    opacity: 0.7;
}
.notification-browser-banner {
    padding: 9px 18px;
    background: #fbf8fe;
    border-bottom: 1px solid #efe8f6;
    color: #554a63;
    font-size: 0.75rem;
    font-weight: 650;
}
.notification-browser-banner i {
    font-size: 0.95rem;
    color: #742bb9;
}
.btn-browser-perm {
    padding: 3px 11px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, #9d50eb, #742bb9);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn-browser-perm:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #8b3fd9, #641ea5);
    transform: translateY(-1px);
}
.notification-body {
    max-height: 420px;
    overflow-y: auto;
    background: #ffffff;
}
.notification-body::-webkit-scrollbar {
    width: 6px;
}
.notification-body::-webkit-scrollbar-track {
    background: #faf8fc;
}
.notification-body::-webkit-scrollbar-thumb {
    background: #ded5e7;
    border-radius: 3px;
}
.notification-body::-webkit-scrollbar-thumb:hover {
    background: #c7b8d8;
}
.notification-empty-state {
    padding: 34px 20px;
}
.notification-empty-icon {
    font-size: 2.8rem;
    color: #8c829c;
    line-height: 1;
}
.notification-empty-text {
    font-size: 0.92rem;
    font-weight: 750;
    color: #1e152d;
}
.notification-empty-subtext {
    display: block;
    font-size: 0.76rem;
    color: #7e738c;
    margin-top: 4px;
}
.notification-locked-state {
    padding: 26px 20px;
    background: #ffffff;
}
.notification-locked-state h6 {
    color: #1e152d !important;
}
.notification-locked-desc {
    color: #554a63;
    font-size: 0.82rem;
    line-height: 1.45;
}
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f2ecf6;
    background: #ffffff;
    transition: background 0.15s ease;
}
.notification-item:hover {
    background: #faf8fc;
}
.notification-item.is-unread {
    background: #fcf9fe;
    border-left: 4px solid #8e3ee0;
}
.notification-item.is-unread:hover {
    background: #f6effd;
}
.notification-item.is-read {
    border-left: 4px solid transparent;
}
.notification-item-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: #f4ecfd;
    color: #742bb9;
    border: 1px solid #ebe0f6;
}
.notification-item:has(.bi-calendar-x) .notification-item-icon,
.notification-item:has(.bi-x-circle) .notification-item-icon,
.notification-item-icon:has(.bi-calendar-x),
.notification-item-icon:has(.bi-x-circle) {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}
.notification-item:has(.bi-calendar-check) .notification-item-icon,
.notification-item:has(.bi-check-circle) .notification-item-icon,
.notification-item-icon:has(.bi-calendar-check),
.notification-item-icon:has(.bi-check-circle) {
    background: #ecfdf5;
    color: #059669;
    border-color: #d1fae5;
}
.notification-item-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.notification-item-title {
    font-weight: 750;
    font-size: 0.86rem;
    color: #1e152d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notification-item-time {
    font-size: 0.72rem;
    font-weight: 650;
    color: #857a96;
    flex-shrink: 0;
}
.notification-item-msg {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: #4e445c;
    line-height: 1.45;
    word-break: break-word;
}
.notification-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.notification-item-read-info {
    font-size: 0.74rem;
    font-weight: 600;
    color: #6e647b;
    line-height: 1.3;
}
.text-emerald {
    color: #059669 !important;
}
.notification-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.btn-mark-single-read {
    background: #f4ecfd;
    border: 1px solid #ebdcfc;
    color: #742bb9;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-mark-single-read:hover {
    background: #742bb9;
    color: #ffffff;
    border-color: #742bb9;
    transform: scale(1.05);
}
.btn-notification-link {
    background: #f5f2f8;
    border: 1px solid #e7e0ee;
    color: #5a5168;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-notification-link:hover {
    background: #742bb9;
    color: #ffffff;
    border-color: #742bb9;
    transform: scale(1.05);
}
.notification-footer {
    padding: 10px 16px;
    background: #faf7fc;
    border-top: 1px solid #ede7f3;
}
.notification-footer-text {
    font-size: 0.74rem;
    font-weight: 600;
    color: #7b6f89;
    display: inline-flex;
    align-items: center;
}
.notification-footer-text i {
    color: #742bb9;
    font-size: 0.85rem;
}
@media (max-width: 575.98px) {
    .notification-dropdown {
        position: static;
    }
    .notification-menu {
        position: absolute !important;
        top: 100% !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
        margin-top: 6px !important;
        transform: none !important;
        border-radius: 14px;
    }
}

/* Padronização de modais em todo o projeto: Backdrop com blur estilo Designer */
.modal-backdrop {
    --bs-backdrop-bg: rgba(16, 12, 22, .52);
    --bs-backdrop-opacity: 1;
    background-color: rgba(16, 12, 22, .52) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity .18s ease-out;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

/* Acabamento refinado para conteúdos de modais no painel */
.modal-content {
    border: 1px solid var(--codeef-border, #e5e0ea);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(25, 17, 34, 0.22);
}

/* ==========================================================================
   Central de Ajuda: FAQ Interativo e Busca
   ========================================================================== */
.help-faq-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--codeef-border, #ede8f2);
}

.help-faq-header {
    margin-bottom: 24px;
}

.help-faq-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--codeef-text, #17141f);
    margin-bottom: 6px;
}

.help-faq-header p {
    color: var(--codeef-muted, #6f687c);
    font-size: 0.95rem;
    margin: 0;
}

/* Caixa de Busca do FAQ */
.help-faq-search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.help-faq-search-box {
    display: flex;
    align-items: center;
    position: relative;
    background: #fff;
    border: 1px solid var(--codeef-border, #e5e0eb);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(35, 17, 56, 0.04);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.help-faq-search-box:focus-within {
    border-color: #7627e8;
    box-shadow: 0 0 0 4px rgba(118, 39, 232, 0.12);
}

.help-faq-search-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #7627e8;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.help-faq-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    padding: 12px 14px 12px 0;
    font-size: 0.96rem;
    color: var(--codeef-text, #17141f);
}

.help-faq-input::placeholder {
    color: #9b93a8;
}

.help-faq-clear-btn {
    border: 0;
    background: transparent;
    color: #9b93a8;
    cursor: pointer;
    padding: 0 16px;
    font-size: 1.1rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color .15s ease;
}

.help-faq-clear-btn:hover {
    color: #5114ad;
}

.help-faq-search-box.has-query .help-faq-clear-btn {
    display: flex;
}

/* Categorias / Chips */
.help-faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.help-faq-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--codeef-border, #e5e0eb);
    border-radius: 999px;
    background: #fff;
    color: var(--codeef-text, #17141f);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .16s ease;
    user-select: none;
}

.help-faq-chip:hover {
    border-color: #8c3fd9;
    background: #faf7fd;
    color: #5114ad;
}

.help-faq-chip.is-active {
    border-color: #7627e8;
    background: #7627e8;
    color: #fff;
}

.help-faq-chip .chip-count {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.07);
    color: inherit;
}

.help-faq-chip.is-active .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.help-faq-status {
    font-size: 0.82rem;
    color: var(--codeef-muted, #6f687c);
    margin-bottom: 16px;
    min-height: 18px;
}

/* Accordion de Perguntas */
.help-faq-list {
    display: grid;
    gap: 12px;
}

.help-faq-item {
    border: 1px solid var(--codeef-border, #e5e0eb);
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
    overflow: hidden;
}

.help-faq-item:hover {
    border-color: rgba(118, 39, 232, 0.35);
}

.help-faq-item[open] {
    border-color: rgba(118, 39, 232, 0.5);
    box-shadow: 0 8px 24px rgba(45, 24, 68, 0.06);
}

.help-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    font-weight: 750;
    font-size: 0.98rem;
    color: var(--codeef-text, #17141f);
    list-style: none;
    transition: background .15s ease;
}

.help-faq-summary::-webkit-details-marker {
    display: none;
}

.help-faq-summary:hover {
    background: #faf8fd;
}

.help-faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.help-faq-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.badge-sec { background: #f0e7ff; color: #7627e8; }
.badge-design { background: #e0f2fe; color: #0284c7; }
.badge-booking { background: #fef3c7; color: #b45309; }
.badge-plans { background: #e6f6ee; color: #138a5b; }

.help-faq-chevron {
    color: #8c3fd9;
    font-size: 1rem;
    transition: transform .22s ease;
    flex-shrink: 0;
}

.help-faq-item[open] .help-faq-chevron {
    transform: rotate(180deg);
}

.help-faq-content {
    padding: 0 22px 20px;
    color: #4b4458;
    font-size: 0.92rem;
    line-height: 1.68;
    border-top: 1px solid #f2edf8;
    margin-top: 4px;
    padding-top: 16px;
}

.help-faq-content p:last-child {
    margin-bottom: 0;
}

.help-faq-content ul {
    margin: 8px 0 12px;
    padding-left: 20px;
}

.help-faq-content li {
    margin-bottom: 4px;
}

.help-faq-content code {
    background: #f1ecf7;
    color: #5114ad;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.85em;
}

.help-faq-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #7627e8;
    font-weight: 750;
    font-size: 0.86rem;
    text-decoration: none;
}

.help-faq-action-link:hover {
    color: #5114ad;
    text-decoration: underline;
}

/* Estado de busca vazia */
.help-faq-empty {
    display: none;
    text-align: center;
    padding: 42px 20px;
    border: 1px dashed var(--codeef-border, #e5e0eb);
    border-radius: 16px;
    background: #faf8fd;
}

.help-faq-empty.is-visible {
    display: block;
}

.help-faq-empty i {
    font-size: 2.2rem;
    color: #9b93a8;
    margin-bottom: 10px;
}

.help-faq-empty h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--codeef-text, #17141f);
    margin-bottom: 6px;
}

.help-faq-empty p {
    color: var(--codeef-muted, #6f687c);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   Publicidade Criativa: Bônus de 1º Mês Grátis (Primeiro Acesso ao Dashboard)
   ========================================================================== */

/* Modal Criativo de Boas-Vindas */
.first-access-modal .modal-dialog {
    max-height: calc(100vh - 3.5rem);
    max-height: calc(100dvh - 3.5rem);
}

.first-access-modal .modal-content {
    border: 1px solid rgba(118, 39, 232, 0.2);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(45, 14, 86, 0.28);
    overflow: hidden;
    max-height: calc(100vh - 3.5rem);
    max-height: calc(100dvh - 3.5rem);
    display: flex;
    flex-direction: column;
}

.first-access-modal-header {
    position: relative;
    padding: 30px 32px 18px;
    background: #faf5ff;
    border-bottom: 1px solid rgba(118, 39, 232, 0.1);
    flex-shrink: 0;
}

.first-access-modal-header::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: none;
    pointer-events: none;
}

.promo-kicker-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #581c87;
    background: #ffffff;
    border: 1px solid rgba(140, 63, 217, 0.25);
    box-shadow: 0 4px 14px rgba(118, 39, 232, 0.12);
    margin-bottom: 12px;
}

.promo-kicker-badge .badge-icon {
    font-size: 0.95rem;
    color: #eab308;
    filter: drop-shadow(0 2px 4px rgba(234, 179, 8, 0.4));
}

.promo-modal-title {
    font-size: clamp(1.3rem, 2.8vw, 1.7rem);
    font-weight: 950;
    color: #1e1329;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 8px;
}

.promo-modal-subtitle {
    font-size: 0.92rem;
    color: #5b5368;
    line-height: 1.55;
    margin-bottom: 0;
}

.promo-modal-subtitle strong {
    color: var(--codeef-purple);
    font-weight: 800;
}

.first-access-modal-body {
    padding: 22px 32px 28px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.first-access-modal-body::-webkit-scrollbar {
    width: 6px;
}

.first-access-modal-body::-webkit-scrollbar-track {
    background: #faf8fc;
}

.first-access-modal-body::-webkit-scrollbar-thumb {
    background: #ded5e7;
    border-radius: 3px;
}

.first-access-modal-body::-webkit-scrollbar-thumb:hover {
    background: #c7b8d8;
}

/* Grid de Superpoderes */
.promo-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.promo-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid #f0e6f7;
    background: #faf8fc;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.promo-benefit-card:hover {
    transform: translateY(-2px);
    border-color: #d8c2f5;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(118, 39, 232, 0.08);
}

.promo-benefit-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    flex-shrink: 0;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, var(--codeef-purple), #9333ea);
    box-shadow: 0 6px 14px rgba(118, 39, 232, 0.25);
}

.promo-benefit-icon.is-booking {
    background: linear-gradient(135deg, #6c23db, #4c1d95);
    box-shadow: 0 6px 14px rgba(108, 35, 219, 0.28);
}

.promo-benefit-icon.is-team {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.25);
}

.promo-benefit-icon.is-whatsapp {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.25);
}

.promo-benefit-icon.is-finance {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.25);
}

.promo-benefit-icon.is-pro {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 6px 14px rgba(236, 72, 153, 0.25);
}

.promo-benefit-icon.is-sites {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 6px 14px rgba(139, 92, 246, 0.25);
}

.promo-benefit-content strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 850;
    color: #241a33;
    line-height: 1.3;
}

.promo-benefit-content small {
    display: block;
    margin-top: 3px;
    font-size: 0.74rem;
    color: #6d647a;
    line-height: 1.4;
}

/* Card de Risco Zero */
.promo-zero-risk-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(42, 168, 111, 0.3);
    background: #f0fdf4;
    margin-bottom: 22px;
}

.promo-zero-risk-icon {
    font-size: 1.7rem;
    color: #16a34a;
    flex-shrink: 0;
}

.promo-zero-risk-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 900;
    color: #14532d;
}

.promo-zero-risk-text p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: #166534;
    line-height: 1.45;
}

/* Botões do Modal e CTAs */
.promo-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-promo-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff !important;
    background: linear-gradient(135deg, #18181b 0%, #3b0764 45%, #7627e8 100%);
    box-shadow: 0 10px 28px rgba(35, 10, 68, 0.38);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    text-decoration: none;
}

.btn-promo-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(35, 10, 68, 0.48);
    filter: brightness(1.08);
    color: #ffffff !important;
}

.btn-promo-primary .promo-tag-price {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    color: #581c87;
    background: #fef08a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-promo-secondary {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: #797185;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer;
}

.btn-promo-secondary:hover {
    color: #241a33;
    text-decoration: underline;
}

/* ==========================================================================
   Hero Banner Criativo na Página do Dashboard
   ========================================================================== */
.welcome-promo-hero {
    position: relative;
    border: 2px solid #e0cbf7;
    border-radius: 26px;
    background: #faf5ff;
    box-shadow: 0 16px 45px rgba(118, 39, 232, 0.1);
    overflow: hidden;
    padding: clamp(24px, 4vw, 36px);
}

.welcome-promo-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    display: none;
    pointer-events: none;
}

.welcome-promo-hero-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
}

.welcome-promo-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 30px;
    align-items: center;
}

@media (max-width: 991px) {
    .first-access-modal .modal-dialog {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        margin: 0.5rem;
    }
    .first-access-modal .modal-content {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 20px;
    }
    .promo-benefits-grid {
        grid-template-columns: 1fr;
    }
    .welcome-promo-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .first-access-modal-header {
        padding: 24px 20px 16px;
    }
    .first-access-modal-body {
        padding: 18px 20px 24px;
    }
}
