/* =========================================================
   HK MODULAR FONT
   Coloque o arquivo HK-Modular-Bold.woff2 em /assets/fonts/
   ========================================================= */
@font-face {
    font-family: 'HK Modular';
    src: url('/assets/fonts/HK-Modular-Bold.woff2') format('woff2'),
         url('/assets/fonts/HK-Modular-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   RESET GLOBAL BÁSICO
   ========================================================= */

* {
    box-sizing: border-box;
}

/* =========================================================
   LAYOUT BASE
   ========================================================= */

body {
    background-color: #f1f5f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1e293b;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 240px;
    min-width: 240px;
    background: #0f172a;
    color: #fff;
    padding: 0 0 20px;
    transition: width 0.25s cubic-bezier(.4,0,.2,1), min-width 0.25s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255,255,255,.06);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.12);
    border-radius: 4px;
}

/* Logo */
.sidebar-logo {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.sidebar-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sidebar-logo-icon {
    height: 34px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: 2px;
    color: #fff;
    white-space: nowrap;
}

/* =========================================================
   RESET DEFINITIVO DE LISTAS (ANTI-BULLET)
   ========================================================= */

.sidebar ul,
.sidebar-menu,
.submenu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-menu li,
.submenu li {
    list-style: none !important;
}

.sidebar-menu li::marker,
.submenu li::marker {
    content: none !important;
}

/* =========================================================
   SIDEBAR MENU (ITENS)
   ========================================================= */

.sidebar-menu {
    padding: 0 12px;
    margin: 0;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 2px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all .18s ease;
    font-size: 13.5px;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: rgba(99,102,241,.1);
    color: #e0e7ff;
}

.sidebar-menu li.active > a,
.sidebar-menu a.active {
    background: rgba(99,102,241,.15);
    color: #a5b4fc;
    font-weight: 600;
}

.sidebar-menu i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    opacity: .7;
}

.sidebar-menu a:hover i,
.sidebar-menu li.active > a i,
.sidebar-menu a.active i {
    opacity: 1;
}

/* =========================================================
   MENU SECTION (TÍTULOS)
   ========================================================= */

.menu-section {
    list-style: none !important;
}

.menu-section span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    margin: 18px 12px 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-section:first-child span {
    margin-top: 0;
}

.sidebar-collapsed .menu-section span {
    display: none;
}

/* =========================================================
   MENU LOCKED (Itens bloqueados por plano)
   ========================================================= */

.sidebar-menu .menu-locked-item {
    opacity: 0.5;
    cursor: pointer;
}

.sidebar-menu .menu-locked-item:hover {
    opacity: 0.75;
    background: rgba(255, 193, 7, 0.08);
}

.menu-section .badge {
    vertical-align: middle;
}

/* =========================================================
   LOCKED FEATURE OVERLAY
   ========================================================= */

.locked-feature-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lockedFadeIn 0.3s ease;
}

@keyframes lockedFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.locked-feature-card {
    background: linear-gradient(135deg, #1e1e2f 0%, #2d2d44 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    padding: 40px 48px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 193, 7, 0.1);
    animation: lockedSlideUp 0.3s ease;
}

@keyframes lockedSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.locked-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.locked-feature-icon i {
    font-size: 32px;
    color: #1e1e2f;
}

.locked-feature-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.locked-feature-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.locked-feature-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.locked-feature-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.locked-feature-actions .btn-warning {
    font-weight: 600;
    padding: 10px 28px;
}

.locked-feature-actions .btn-outline-light {
    padding: 10px 20px;
}

/* =========================================================
   LOCKED VIEW WRAPPER (content visible but locked)
   ========================================================= */

.locked-view-wrapper {
    position: relative;
    min-height: 400px;
}

.locked-view-wrapper > *:not(.locked-view-overlay) {
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
    filter: blur(1px);
}

.locked-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.locked-view-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 48px;
    background: rgba(30, 30, 47, 0.9);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.locked-view-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 193, 7, 0.2);
}

.locked-view-badge i {
    font-size: 2.5rem;
    color: #ffc107;
}

.locked-view-badge span {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* =========================================================
   DROPDOWN
   ========================================================= */

.menu-dropdown>a {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.menu-dropdown .caret {
    font-size: 10px;
    opacity: 0.7;
    margin-left: auto;
}

/* Submenu escondido por padrão */
.menu-dropdown .submenu {
    display: none;
    padding-left: 22px;
    margin-top: 6px;
    transition: opacity 0.2s ease;
}

/* Submenus aninhados (segundo nível) também começam escondidos */
.menu-dropdown .submenu .menu-dropdown .submenu {
    display: none;
}

/* Submenu visível */
.menu-dropdown.open .submenu {
    display: block;
}

/* Submenu de segundo nível só abre quando seu menu-dropdown pai tem classe open */
.menu-dropdown.open .submenu .menu-dropdown.open .submenu {
    display: block;
}

/* Links do submenu */
.submenu li a {
    font-size: 0.9rem;
    padding: 6px 10px;
}

/* =========================================================
   MENU DIVIDER
   ========================================================= */

.menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.06);
    margin: 14px 8px;
    list-style: none !important;
}

.sidebar-collapsed .menu-divider {
    margin: 10px 0;
}

/* =========================================================
   MAIN CONTENT / TOPBAR
   ========================================================= */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: #fff;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

/* Topbar inner elements */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all .18s;
    font-size: 14px;
}

.topbar-toggle:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.topbar-greeting {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.topbar-greeting span {
    font-weight: 400;
    color: #64748b;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-context {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.topbar-context i {
    font-size: 11px;
    color: #6366f1;
}

.topbar-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all .18s;
    font-size: 14px;
    position: relative;
}

.topbar-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.topbar-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid #fff;
}

.content-area {
    flex: 1;
    padding: 24px;
    background: #f1f5f9;
}

/* App Footer */
.app-footer {
    padding: 14px 24px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}

.app-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.app-footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   AUTH PAGES — Landing-page matched design
   ========================================================= */

/* --- Body & Background --- */
.auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    animation: authBlobFloat 18s ease-in-out infinite;
}

.auth-blob-1 {
    width: 500px;
    height: 500px;
    background: #6366f1;
    top: -10%;
    left: -8%;
}

.auth-blob-2 {
    width: 420px;
    height: 420px;
    background: #8b5cf6;
    bottom: -12%;
    right: -6%;
    animation-delay: -6s;
    animation-duration: 22s;
}

.auth-blob-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    animation-delay: -12s;
    animation-duration: 26s;
    opacity: .25;
}

@keyframes authBlobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(30px, -20px) scale(1.05); }
    50%      { transform: translate(-20px, 30px) scale(.95); }
    75%      { transform: translate(20px, 20px) scale(1.03); }
}

.auth-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* --- Wrapper --- */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* --- Card --- */
.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .05);
    animation: authCardIn .45s ease-out;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card-wide {
    max-width: 560px;
}

.auth-card-plans {
    max-width: 820px;
}

.auth-wrapper:has(.auth-card-wide) {
    max-width: 560px;
}

.auth-wrapper:has(.auth-card-plans) {
    max-width: 820px;
}

/* --- Brand --- */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-brand-logo {
    height: 40px;
    width: auto;
}

/* --- Title / Subtitle --- */
.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0 0 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin: 0 0 24px;
}

/* --- Form Fields --- */
.auth-field {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
    transition: color .2s;
    z-index: 1;
}

.auth-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.auth-input:focus + .auth-input-icon,
.auth-input:focus ~ .auth-input-icon {
    color: #6366f1;
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: #6366f1;
}

.auth-toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    z-index: 1;
    transition: color .2s;
}

.auth-toggle-pw:hover {
    color: #6366f1;
}

/* --- Buttons --- */
.auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s, box-shadow .25s, opacity .2s;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .3);
    margin-top: 6px;
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, .4);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #6366f1;
    background: transparent;
    border: 1.5px solid #c7d2fe;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.auth-btn-secondary:hover {
    background: #eef2ff;
    border-color: #a5b4fc;
}

.auth-btn-secondary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* --- Divider --- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #94a3b8;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* --- Footer Link --- */
.auth-footer-link {
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.auth-footer-link a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.auth-footer-link a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* --- Trust Badge --- */
.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
}

.auth-trust i {
    font-size: 12px;
}

/* --- Alerts --- */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.auth-alert i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 14px;
}

.auth-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert-danger i { color: #ef4444; }

.auth-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-alert-success i { color: #22c55e; }

.auth-alert-info {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.auth-alert-info i { color: #6366f1; }

/* --- Remember / Checkbox --- */
.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 13px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
    user-select: none;
}

.auth-checkbox input[type="checkbox"] {
    display: none;
}

.auth-checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    background: #fff;
    transition: all .2s;
    flex-shrink: 0;
}

.auth-checkbox input:checked ~ .auth-checkmark {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.auth-forgot-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color .2s;
}

.auth-forgot-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* --- Hint --- */
.auth-hint {
    font-size: 13px;
    color: #94a3b8;
}

.auth-hint i {
    margin-right: 4px;
}

/* --- Steps Indicator --- */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}

.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.auth-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all .3s;
}

.auth-step span {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 500;
}

.auth-step.active .auth-step-number {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 3px 10px rgba(99, 102, 241, .3);
}

.auth-step.active span {
    color: #6366f1;
    font-weight: 700;
}

.auth-step.completed .auth-step-number {
    background: #22c55e;
    color: #fff;
}

.auth-step.completed span {
    color: #22c55e;
}

.auth-step-line {
    width: 32px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 6px;
    margin-bottom: 18px;
    border-radius: 1px;
    transition: background .3s;
}

.auth-step-line.completed {
    background: #22c55e;
}

/* --- Password Strength Bar --- */
.auth-strength-bar {
    margin-top: 8px;
}

.auth-strength-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.auth-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width .35s, background .35s;
}

.auth-strength-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    text-align: right;
    min-height: 16px;
}

.strength-weak .auth-strength-fill {
    width: 33%;
    background: #ef4444;
}

.strength-weak .auth-strength-label {
    color: #ef4444;
}

.strength-medium .auth-strength-fill {
    width: 66%;
    background: #f59e0b;
}

.strength-medium .auth-strength-label {
    color: #f59e0b;
}

.strength-strong .auth-strength-fill {
    width: 100%;
    background: #22c55e;
}

.strength-strong .auth-strength-label {
    color: #22c55e;
}

/* --- Verify Pending Visual --- */
.auth-verify-visual {
    text-align: center;
    margin-bottom: 24px;
}

.auth-verify-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #6366f1;
    margin-bottom: 16px;
    animation: authVerifyPulse 2.5s ease-in-out infinite;
}

@keyframes authVerifyPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, .2); }
    50%      { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(99, 102, 241, 0); }
}

.auth-verify-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.auth-verify-text strong {
    color: #1e293b;
}

/* --- Code Input Digits (6-digit verification) --- */
.auth-code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}

.auth-code-digit:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-code-digit:not(:placeholder-shown) {
    border-color: #6366f1;
    background: #eef2ff;
}

.auth-code-separator {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 300;
    color: #94a3b8;
}

/* --- Tips Card --- */
.auth-tips-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.auth-tips-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 10px;
}

.auth-tips-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-tips-card li {
    font-size: 13px;
    color: #64748b;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-tips-card li i {
    color: #6366f1;
    font-size: 12px;
    flex-shrink: 0;
}

/* --- Plan Cards (register-plan) --- */
.auth-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.auth-plan-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    background: #fff;
}

.auth-plan-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 4px 18px rgba(99, 102, 241, .12);
    transform: translateY(-2px);
}

.auth-plan-card.auth-plan-featured {
    border-color: #6366f1;
}

.auth-plan-card.auth-plan-selected {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 4px 24px rgba(99, 102, 241, .18);
}

.auth-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-plan-badge i {
    font-size: 10px;
}

.auth-plan-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.auth-plan-price {
    margin-bottom: 6px;
}

.auth-plan-currency {
    font-size: 14px;
    color: #64748b;
    vertical-align: super;
}

.auth-plan-amount {
    font-size: 34px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -.5px;
}

.auth-plan-period {
    font-size: 13px;
    color: #94a3b8;
}

.auth-plan-trial {
    font-size: 13px;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* --- Trial Banner (register-plan) --- */
.auth-trial-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.auth-trial-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.auth-trial-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-trial-banner-text strong {
    font-size: 14px;
    color: #166534;
}

.auth-trial-banner-text span {
    font-size: 12px;
    color: #15803d;
}

/* --- Plan card: Trial Hero (grande, destaque) --- */
.auth-plan-trial-hero {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-plan-trial-hero i {
    font-size: 13px;
}

/* --- Plan card: Preço secundário --- */
.auth-plan-price-after {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

/* --- Plan card: Badge sem cartão --- */
.auth-plan-no-card {
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
}

.auth-plan-no-card i {
    font-size: 10px;
}

/* --- Trust Strip (antes do botão) --- */
.auth-trust-strip {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.auth-trust-item i {
    color: #22c55e;
    font-size: 13px;
}

.auth-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    text-align: left;
}

.auth-plan-features li {
    font-size: 13px;
    color: #475569;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-plan-features li i {
    color: #22c55e;
    font-size: 11px;
}

.auth-plan-check {
    display: none;
    color: #6366f1;
    font-weight: 700;
    font-size: 13px;
    margin-top: 8px;
}

.auth-plan-card.auth-plan-selected .auth-plan-check {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .auth-wrapper,
    .auth-wrapper:has(.auth-card-wide),
    .auth-wrapper:has(.auth-card-plans) {
        max-width: 100%;
    }

    .auth-blob-1 { width: 300px; height: 300px; }
    .auth-blob-2 { width: 250px; height: 250px; }
    .auth-blob-3 { width: 180px; height: 180px; }

    .auth-plans-grid {
        grid-template-columns: 1fr;
    }

    .auth-steps {
        transform: scale(.9);
    }

    .auth-trial-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .auth-trust-strip {
        gap: 12px;
    }

    .auth-trust-item {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .auth-card-wide,
    .auth-card-plans {
        padding: 28px 22px;
    }
}

/* =========================================================
   SIDEBAR COLLAPSED
   ========================================================= */

.sidebar-collapsed .sidebar {
    width: 64px;
    min-width: 64px;
}

.sidebar-collapsed .sidebar-logo span {
    display: none;
}

.sidebar-collapsed .sidebar-logo {
    justify-content: center;
    padding: 16px 8px;
}

.sidebar-collapsed .sidebar-logo-icon {
    height: 26px;
}

.sidebar-collapsed .sidebar-logo-text {
    display: none;
}

.sidebar-collapsed .sidebar-menu {
    padding: 0 8px;
}

.sidebar-collapsed .sidebar-menu a span {
    display: none;
}

.sidebar-collapsed .menu-section span {
    display: none;
}

.sidebar-collapsed .menu-section {
    margin: 8px 0;
}

.sidebar-collapsed .submenu {
    display: none !important;
}

.sidebar-collapsed .sidebar-menu a {
    justify-content: center;
    padding: 10px;
}

.sidebar-collapsed .sidebar-menu .caret {
    display: none;
}

.sidebar-collapsed .menu-divider {
    margin: 12px 4px;
}

.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* =========================================================
   Supplier Products
   ========================================================= */

/* Tabela de produtos */
.sp-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 0.9rem;
}
.sp-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6c757d;
    padding: 10px 12px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}
.sp-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}
.sp-table tbody tr:hover {
    background-color: #f8f9fa;
}
.sp-table tbody tr.sp-parent-row {
    background-color: #fff;
}
.sp-table tbody tr.sp-parent-row:hover {
    background-color: #f0f4ff;
}

/* Imagem do produto */
.sp-img-wrap {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}
.sp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sp-img-placeholder {
    color: #ced4da;
    font-size: 1.3rem;
}
.sp-var-img-wrap {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

/* Info do produto */
.sp-product-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sp-product-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
    line-height: 1.3;
}
.sp-product-sku {
    font-size: 0.78rem;
    color: #868e96;
    font-family: 'SFMono-Regular', Menlo, Monaco, monospace;
}

.sp-variation-attrs {
    display: inline-block;
    font-size: 0.72rem;
    color: #475569;
    font-weight: 500;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #bae6fd;
}

.sp-variation-attrs i {
    margin-right: 3px;
    color: #0ea5e9;
}

/* Badges de status */
.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.sp-badge-active {
    background: #d3f9d8;
    color: #2b8a3e;
}
.sp-badge-inactive {
    background: #ffe3e3;
    color: #c92a2a;
}
.sp-badge-type {
    background: #e7f5ff;
    color: #1971c2;
}
.sp-badge-variation {
    background: #fff3bf;
    color: #e67700;
    font-size: 0.7rem;
}

/* Estoque */
.sp-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}
.sp-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sp-stock-ok { background: #51cf66; }
.sp-stock-low { background: #fcc419; }
.sp-stock-zero { background: #ff6b6b; }
.sp-stock-zero-text { color: #c92a2a; }

/* Custo */
.sp-cost {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Inputs inline */
.sp-inline-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.82rem;
    text-align: right;
    transition: border-color 0.15s;
    background: #fff;
}
.sp-inline-input:focus {
    border-color: #6cb4ee;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 180, 238, 0.15);
}

/* Ações visíveis */
.sp-actions-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    flex-wrap: nowrap;
}
.sp-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #868e96;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    font-size: 0.78rem;
    text-decoration: none;
}
.sp-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.sp-action-primary { color: #4dabf7; border-color: #d0ebff; }
.sp-action-primary:hover { background: #e7f5ff; color: #1971c2; border-color: #4dabf7; }
.sp-action-success { color: #51cf66; border-color: #d3f9d8; }
.sp-action-success:hover { background: #d3f9d8; color: #2b8a3e; border-color: #51cf66; }
.sp-action-warn { color: #fcc419; border-color: #fff3bf; }
.sp-action-warn:hover { background: #fff9db; color: #e67700; border-color: #fcc419; }
.sp-action-info { color: #22b8cf; border-color: #c3fae8; }
.sp-action-info:hover { background: #e3fafc; color: #0c8599; border-color: #22b8cf; }
.sp-action-danger { color: #dee2e6; border-color: #f1f3f5; }
.sp-action-danger:hover { background: #fff5f5; color: #e03131; border-color: #ffa8a8; }
.sp-action-save { 
    color: #2b8a3e; 
    border-color: #51cf66; 
    background: #d3f9d8;
    animation: sp-save-pulse 1s ease-in-out infinite;
}
.sp-action-save:hover { background: #b2f2bb; }
@keyframes sp-save-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(81, 207, 102, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(81, 207, 102, 0); }
}

/* Linhas de variação */
.sp-variation-row {
    background-color: #fafbfc !important;
    border-left: 3px solid #4dabf7;
}
.sp-variation-row:hover {
    background-color: #f0f4ff !important;
}
.sp-variation-row td:first-child {
    border-left: none;
}
.sp-tree-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #adb5bd;
    padding-left: 12px;
    font-size: 0.82rem;
}
.sp-tree-line::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-left: 2px solid #ced4da;
    border-bottom: 2px solid #ced4da;
    border-radius: 0 0 0 4px;
    margin-right: 2px;
    flex-shrink: 0;
}

/* Toggle button variações */
.sp-toggle-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    font-size: 0.7rem;
}
.sp-toggle-btn:hover {
    background: #e7f5ff;
    border-color: #4dabf7;
    color: #1971c2;
}
.sp-toggle-btn.expanded {
    background: #e7f5ff;
    border-color: #4dabf7;
    color: #1971c2;
}

/* Skeleton loading */
.sp-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sp-shimmer 1.5s infinite;
    border-radius: 6px;
    height: 16px;
}
.sp-skeleton-row td {
    padding: 14px 12px !important;
}
.sp-skeleton-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
}
.sp-skeleton-text {
    height: 14px;
    margin-bottom: 6px;
}
.sp-skeleton-text-sm {
    height: 10px;
    width: 60%;
}
@keyframes sp-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Checkbox personalizado */
.sp-table .form-check-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Paginação melhorada */
.sp-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.85rem;
}
.sp-pagination-info {
    color: #868e96;
}
.sp-pagination-info strong {
    color: #495057;
}
.sp-pagination .pagination {
    margin-bottom: 0;
    gap: 3px;
}
.sp-pagination .page-link {
    border-radius: 6px;
    font-size: 0.82rem;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    color: #495057;
}
.sp-pagination .page-item.active .page-link {
    background: #4dabf7;
    border-color: #4dabf7;
    color: #fff;
}
.sp-pagination .page-link:hover {
    background: #e7f5ff;
    border-color: #4dabf7;
    color: #1971c2;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-table {
        font-size: 0.82rem;
    }
    .sp-img-wrap {
        width: 40px;
        height: 40px;
    }
    .sp-inline-input {
        width: 65px;
    }
    .sp-product-name {
        font-size: 0.82rem;
    }
}

/* =========================================================
   Seller Catalog
   ========================================================= */

/* Botões de catálogo */
.sc-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #51cf66;
    background: #d3f9d8;
    color: #2b8a3e;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.sc-btn-add:hover {
    background: #b2f2bb;
    border-color: #40c057;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(64, 192, 87, 0.2);
}
.sc-btn-add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.sc-btn-remove {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #ff8787;
    background: #ffe3e3;
    color: #c92a2a;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.sc-btn-remove:hover {
    background: #ffc9c9;
    border-color: #fa5252;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(250, 82, 82, 0.2);
}
.sc-btn-remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Tag do fornecedor */
.sc-supplier-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f1f3f5;
    color: #495057;
    font-size: 0.76rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal de detalhes */
.sc-modal-img-wrap {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 320px;
    overflow: hidden;
}
.sc-modal-img-wrap img {
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
}

/* Grid de detalhes do modal */
.sc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sc-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sc-detail-label {
    font-size: 0.74rem;
    color: #868e96;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sc-detail-value {
    font-size: 0.9rem;
    color: #212529;
}

/* Product name link no catálogo */
.sp-product-name.open-product {
    color: #212529;
    transition: color 0.15s;
}
.sp-product-name.open-product:hover {
    color: #4dabf7;
}

@media (max-width: 768px) {
    .sc-detail-grid {
        grid-template-columns: 1fr;
    }
    .sc-btn-add, .sc-btn-remove {
        padding: 4px 10px;
        font-size: 0.72rem;
    }
}

/* Checkbox de seleção no catálogo */
.sc-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4dabf7;
}

/* Linha selecionada */
.sc-row-selected {
    background-color: #e7f5ff !important;
}
.sc-row-selected:hover {
    background-color: #d0ebff !important;
}

/* Barra flutuante de ações em lote */
.sc-bulk-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    display: flex;
    justify-content: center;
    animation: sc-bulk-bar-in 0.25s ease-out;
}
@keyframes sc-bulk-bar-in {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.sc-bulk-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: #1e293b;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    font-size: 0.88rem;
}
.sc-bulk-bar-count {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.sc-bulk-bar-count i {
    color: #4dabf7;
}
.sc-bulk-bar-actions {
    display: flex;
    gap: 8px;
}
.sc-bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.sc-bulk-btn-add {
    background: #51cf66;
    color: #fff;
}
.sc-bulk-btn-add:hover {
    background: #40c057;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(64,192,87,0.3);
}
.sc-bulk-btn-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.sc-bulk-btn-remove {
    background: #ff6b6b;
    color: #fff;
}
.sc-bulk-btn-remove:hover {
    background: #fa5252;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(250,82,82,0.3);
}
.sc-bulk-btn-remove:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.sc-bulk-btn-clear {
    background: rgba(255,255,255,0.12);
    color: #e2e8f0;
}
.sc-bulk-btn-clear:hover {
    background: rgba(255,255,255,0.2);
}

@media (max-width: 576px) {
    .sc-bulk-bar-inner {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
    }
    .sc-bulk-bar {
        left: 8px;
        right: 8px;
        transform: none;
    }
    @keyframes sc-bulk-bar-in {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* Seller My Catalog - Price Calculator Result */
.smc-calc-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #dee2e6;
}

/* ===============================
 * Seller Marketplace Configs Cards
 * =============================== */
.smc-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, opacity 0.25s, transform 0.2s;
    height: 100%;
}
.smc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.smc-card-inactive {
    opacity: 0.6;
}
.smc-card-active {
    opacity: 1;
}
.smc-card-header {
    padding: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--smc-accent) 10%, transparent) 0%, color-mix(in srgb, var(--smc-accent) 3%, transparent) 100%);
    border-bottom: 1px solid #f0f0f0;
}
.smc-card-body {
    padding: 16px;
}
.smc-marketplace-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Tip bars */
.smc-tip-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border: 1px solid #bee5eb;
    font-size: 0.88rem;
    color: #0c5460;
}
.smc-tip-bar-warn {
    background: linear-gradient(135deg, #fff8e1 0%, #fffdf5 100%);
    border-color: #ffeeba;
    color: #856404;
}
.smc-tip-icon {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Save pulse animation */
@keyframes smcSavePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(13,110,253,0.25); }
    100% { transform: scale(1); }
}
.smc-save-pulse {
    animation: smcSavePulse 0.6s ease;
}

@media (max-width: 768px) {
    .smc-card-header {
        padding: 12px;
    }
    .smc-card-body {
        padding: 12px;
    }
    .smc-marketplace-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* =====================================================
 * ORDER ITEMS WITH PRODUCT THUMBNAILS
 * ===================================================== */
.order-item-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.order-item-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.order-item-placeholder {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.order-item-variation {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.order-item-variation i {
    opacity: 0.7;
}

.order-item-sku {
    color: #94a3b8;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.order-item-sku i {
    opacity: 0.6;
}

/* Cropper.js CSS carregado via CDN (v1.6.1) no layout */

/* =========================================================
   PAGE TITLE - Identidade Visual DepDrop
   ========================================================= */

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Barra gradiente embaixo do título */
.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Ícones dentro do título com cor do gradiente */
.page-title i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

/* Variante com badge/contador */
.page-title .badge {
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-title i {
        font-size: 1.25rem;
    }
}

/* =========================================================
   DASHBOARD - KPI Cards + Layout
   ========================================================= */

.dashboard-welcome h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
}

.dashboard-card {
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.dashboard-card .card-body {
    padding: 1.25rem;
}

.dashboard-card h2 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.dashboard-card-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.dashboard-status-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-color: #e9ecef !important;
}

.dashboard-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
    border-bottom-width: 2px;
}

.dashboard-table td {
    font-size: 0.9rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.dashboard-table tbody tr {
    transition: background-color 0.15s ease;
}

.list-group-item {
    transition: background-color 0.15s ease;
    overflow: hidden;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Top 5 product name truncation */
.list-group-item .d-flex .flex-grow-1.min-w-0 {
    overflow: hidden;
}

.list-group-item .d-flex .flex-grow-1.min-w-0 .fw-semibold {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Dashboard responsive tweaks */
@media (max-width: 576px) {
    .dashboard-welcome h2 {
        font-size: 1.2rem;
    }
    
    .dashboard-card h2 {
        font-size: 1.3rem;
    }
    
    .dashboard-card .card-body {
        padding: 1rem;
    }
    
    .dashboard-card-icon {
        font-size: 1.8rem;
    }
    
    .dashboard-card .small {
        font-size: 0.7rem;
    }
}

/* ========================================
   CUSTOMER NAME - Seller Orders
   ======================================== */

/* Seção de informações do cliente no formulário de edição */
.customer-info-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 3px solid #0d6efd;
}

.customer-info-section .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.customer-info-section input[type="text"] {
    background-color: #fff;
}

.customer-info-section small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Coluna de cliente na listagem */
.customer-column {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-name {
    font-weight: 500;
    color: #212529;
}

/* Responsivo: ocultar coluna Cliente em telas pequenas */
@media (max-width: 992px) {
    .customer-column {
        display: none;
    }
}

/* ======================================================
   PRODUCT IMAGE DnD (Sortable.js)
   ====================================================== */
.sortable-ghost {
    opacity: 0.4;
    background: #f8f9fa;
}

.image-item {
    cursor: move;
    transition: all 0.2s ease;
}

.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* =========================================================
   Product Edit — Image Grid
   ========================================================= */
.pe-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.pe-image-card {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    text-align: center;
    padding: 6px;
    transition: all 0.2s ease;
}

.pe-image-card:hover {
    border-color: #6cb4ee;
    box-shadow: 0 2px 8px rgba(108, 180, 238, 0.2);
}

.pe-image-card.pe-image-main {
    border: 2px solid #2b8a3e;
    background: #ebfbee;
    box-shadow: 0 0 0 3px rgba(43, 138, 62, 0.12);
}

.pe-image-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 2;
}

.pe-image-card:hover .pe-image-delete {
    opacity: 1;
}

.pe-image-thumb {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

.pe-image-badge {
    display: block;
    margin-top: 4px;
    font-size: 0.65rem;
}

.pe-image-main-btn {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 0.65rem;
    padding: 2px 4px;
}

/* ===== SUPPLIER MARKETPLACE ===== */

/* Supplier card in marketplace listing */
.supplier-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 0.5rem;
}
.supplier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.1) !important;
}

/* Marketplace summary cards */
.marketplace-stat-card {
    border-radius: 0.5rem;
}
.marketplace-stat-card .card-body {
    padding: 0.9rem 1rem;
}

/* Status badges */
.supplier-badge-connected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.45em 0.85em;
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.supplier-badge-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 0.8rem;
    padding: 0.45em 0.85em;
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.25);
}

/* Category tag badges */
.category-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4e9f7 100%);
    color: #0d6efd;
    font-size: 0.72rem;
    padding: 0.35em 0.75em;
    border-radius: 1rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    border: 1px solid rgba(13, 110, 253, 0.15);
    transition: all 0.15s ease;
}
.category-tag:hover {
    background: linear-gradient(135deg, #d4e9f7 0%, #c5e1f3 100%);
    border-color: rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}
.category-tag i {
    margin-right: 0.25rem;
}
.category-tag-more {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Marketplace filter actions */
.marketplace-filter-actions .btn {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .marketplace-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .marketplace-filter-actions {
        width: 100%;
    }

    .marketplace-filter-actions .btn {
        flex: 1 1 auto;
    }
}

/* Policy sections in supplier profile view */
.policy-section {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}
.policy-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* =========================================================
   B2B CREDIT — Tabs layout utilities
   ========================================================= */

/* Divisor lateral entre colunas na aba Configurações (≥lg) */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #dee2e6 !important;
    }
}

/* ==============================================
 * Marketplace stats cards (index)
 * ============================================== */
.marketplace-stat-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.marketplace-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}
.marketplace-stat-card .card-body {
    padding: 1rem;
    position: relative;
}
.marketplace-stat-card .stat-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    opacity: 0.25;
}
.marketplace-stat-card .stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    opacity: 0.8;
}
.marketplace-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

/* Stat card variants */
.stat-connected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}
.stat-connected .stat-icon {
    background: rgba(255, 255, 255, 0.15);
}
.stat-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
}
.stat-pending .stat-icon {
    background: rgba(120, 53, 15, 0.1);
}
.stat-available {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.stat-available .stat-icon {
    background: rgba(255, 255, 255, 0.15);
}
.stat-total {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
}
.stat-total .stat-icon {
    background: rgba(255, 255, 255, 0.15);
}

/* Supplier cards (index grid) */
.supplier-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.supplier-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.supplier-card .card-body {
    padding: 1rem;
}
.supplier-card .supplier-card-logo img,
.supplier-card .supplier-card-logo > div {
    border-radius: 12px;
}
.supplier-card h6 {
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.3;
}

/* ==============================================
 * Supplier profile (view) — modern hero & layout
 * ============================================== */
.supplier-hero {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.supplier-hero-cover {
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}
.supplier-hero-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.15) 0, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(255,255,255,0.1) 0, transparent 50%);
}
.supplier-hero-body {
    padding: 0 1.75rem 1.75rem;
    background: #fff;
}
.supplier-hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    background: #fff;
    border: 5px solid #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}
.supplier-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.supplier-hero-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #adb5bd;
    font-size: 2.8rem;
}
.supplier-hero-title {
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    font-size: 1.75rem;
}
.supplier-hero-meta {
    align-items: center;
    gap: 0.75rem !important;
}
.supplier-hero-meta i {
    margin-right: 0.3rem;
}
.supplier-hero-meta span,
.supplier-hero-meta a {
    font-size: 0.9rem;
}
.supplier-hero-action {
    min-width: 240px;
}

/* Section headings inside Sobre */
.section-heading {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f1f3f5;
}

/* Info cards (sidebar) */
.info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.info-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: #dee2e6;
}
.info-card-header {
    background: linear-gradient(135deg, #f8f9fb 0%, #f1f3f5 100%);
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e9ecef;
}
.info-card-header i {
    color: #667eea;
    margin-right: 0.35rem;
}
.info-card-body {
    padding: 1rem;
}

/* Policy rows in sidebar */
.policy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eef0f3;
    font-size: 0.85rem;
}
.policy-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.policy-row .policy-label {
    color: #6c757d;
    font-weight: 500;
}
.policy-row .policy-label i {
    width: 14px;
    text-align: center;
    margin-right: 0.25rem;
    color: #667eea;
}
.policy-row .policy-value {
    color: #212529;
    text-align: right;
}

/* Profile tabs polish */
.profile-nav-tabs {
    border-bottom: 2px solid #e9ecef;
}
.profile-nav-tabs .nav-link {
    color: #6c757d;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.85rem 1.25rem;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
}
.profile-nav-tabs .nav-link:hover {
    color: #667eea;
    background: transparent;
    border-bottom-color: #d4d7e5;
}
.profile-nav-tabs .nav-link.active {
    color: #667eea;
    background: transparent;
    border-bottom-color: #667eea;
}
.profile-nav-tabs .nav-link .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.5em;
    vertical-align: middle;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .supplier-hero-cover { height: 50px; }
    .supplier-hero-logo { width: 90px; height: 90px; margin-top: -25px; border-width: 4px; }
    .supplier-hero-title { font-size: 1.35rem; }
    .supplier-hero-body { padding: 0 1.25rem 1.25rem; }
    .supplier-hero-action { min-width: 100%; margin-top: 0.75rem; }
    .supplier-hero-action .btn,
    .supplier-hero-action .badge { width: 100%; }
    .supplier-hero-meta { gap: 0.5rem !important; }
    .supplier-hero-meta span,
    .supplier-hero-meta a { font-size: 0.82rem; }
}

/* Supplier product preview cards */
.supplier-preview-card {
    border-radius: 8px;
    transition: box-shadow 0.15s ease;
    overflow: hidden;
}
.supplier-preview-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.supplier-preview-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.supplier-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.supplier-preview-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
}
.img-blur {
    filter: blur(6px);
    transform: scale(1.08);
}
.supplier-preview-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.18);
    color: rgba(255,255,255,0.85);
    font-size: 1.4rem;
}
.supplier-preview-name {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.supplier-preview-brand {
    font-size: 0.68rem;
    color: #6c757d;
}
.supplier-preview-cat {
    font-size: 0.65rem;
    padding: 0.15em 0.45em;
}
.supplier-preview-price-locked {
    font-size: 0.7rem;
    color: #6c757d;
    letter-spacing: 0.03em;
}

/* Policy modal — styled like termos-de-uso page */
.policy-modal-styled {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);
}
.policy-modal-hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 60%, #4338ca 100%);
    color: #fff;
    padding: 2rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.policy-modal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.policy-modal-hero-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.policy-modal-hero-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.policy-modal-hero-subtitle {
    opacity: 0.75;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}
.policy-modal-content-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #475569;
    white-space: pre-line;
}
.policy-modal-content-body strong {
    color: #1e293b;
}

/* Supplier profile logo placeholder */
.supplier-profile-logo-placeholder {
    border: 2px dashed #dee2e6;
}

/* ========== Subscription Usage Progress ========== */
.usage-progress-wrap {
    margin-top: 10px;
}
.usage-progress-bar {
    width: 100%;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}
.usage-progress-bar .bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .4s ease;
}
.usage-progress-bar .bar-fill.low       { background: #10b981; }
.usage-progress-bar .bar-fill.medium    { background: #f59e0b; }
.usage-progress-bar .bar-fill.high      { background: #ef4444; }
.usage-progress-bar .bar-fill.unlimited { background: #667eea; width: 100%; }
.usage-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}
.usage-progress-text .usage-pct { font-weight: 600; }
.usage-pct.low       { color: #10b981; }
.usage-pct.medium    { color: #f59e0b; }
.usage-pct.high      { color: #ef4444; }
.usage-pct.unlimited { color: #667eea; }

/* =====================================================
 * INTEGRATION LOCKED (Plano Starter)
 * ===================================================== */
.integration-locked {
    position: relative;
    min-height: 300px;
}
.integration-locked > .tab-pane,
.integration-locked > div:not(.integration-locked-overlay) {
    pointer-events: none;
    opacity: 0.35;
    filter: grayscale(80%);
    user-select: none;
}
.integration-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    border-radius: 0 0 0.375rem 0.375rem;
}

/* ============================================
   Onboarding Tour (Driver.js customization)
   ============================================ */
.depdrop-tour.driver-popover {
    min-width: 320px;
    max-width: 400px;
    padding: 20px;
}

.depdrop-tour .driver-popover-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.depdrop-tour .driver-popover-description {
    font-size: 0.925rem;
    color: #555;
    line-height: 1.6;
}

.depdrop-tour .driver-popover-footer {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.depdrop-tour .driver-popover-progress-text {
    font-size: 0.8rem;
    color: #999;
    width: 100%;
    text-align: center;
    order: -1;
    margin-bottom: 2px;
}

.depdrop-tour .driver-popover-navigation-btns {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
}

.depdrop-tour .driver-popover-footer .driver-popover-next-btn {
    background-color: #6366f1;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: none;
    white-space: nowrap;
}

.depdrop-tour .driver-popover-footer .driver-popover-next-btn:hover {
    background-color: #4f46e5;
}

.depdrop-tour .driver-popover-footer .driver-popover-prev-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: none;
    white-space: nowrap;
}

/* =====================================================
 * Supplier Profile — Campos somente leitura
 * ===================================================== */
.supplier-readonly-field {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
    color: #495057;
    border-color: #dee2e6;
    opacity: 1 !important;
}

/* =====================================================
 * Profile Completeness Card (Supplier Onboarding)
 * ===================================================== */
.profile-completeness-card {
    border-left: 4px solid #6366f1 !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    transition: box-shadow 0.3s ease;
}

.profile-completeness-card:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15) !important;
}

.completeness-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.profile-completeness-card .progress {
    border-radius: 999px;
    background-color: #e9ecef;
}

.profile-completeness-card .progress-bar {
    transition: width 0.8s ease-in-out;
}

.profile-completeness-card .badge.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.profile-completeness-card .badge.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.15) !important;
}

/* =============================================
   ERP Catalog Mapping Page
   ============================================= */
.product-mapped {
    background-color: rgba(25, 135, 84, 0.03);
}

.product-unmapped {
    background-color: rgba(255, 193, 7, 0.03);
}

/* =============================================
   Definition Lists (dl/dt/dd) — Clean Layout
   ============================================= */
dl {
    margin-bottom: 0;
}

dl dt {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

dl dd {
    margin-bottom: 0.75rem;
    color: #495057;
}

dl dd:last-child {
    margin-bottom: 0;
}

/* Grid layout for dl (e.g., dt col-sm-4, dd col-sm-8) */
dl.row dt {
    padding-top: 0.25rem;
    margin-bottom: 0.5rem;
}

dl.row dd {
    padding-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Mobile: Stack definition lists vertically */
@media (max-width: 575.98px) {
    dl.row dt,
    dl.row dd {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    dl.row dt {
        margin-bottom: 0.25rem;
        font-size: 0.8rem;
    }
    
    dl.row dd {
        margin-bottom: 0.75rem;
        padding-left: 0 !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* =============================================
   Supplier Seller Requests — Mobile Fix
   ============================================= */
@media (max-width: 767.98px) {
    /* Força cards em coluna única */
    .row.g-4 > [class*="col-md-"] {
        width: 100%;
        max-width: 100%;
    }
    
    /* Tabelas no mobile: força quebra de texto */
    .table td,
    .table th {
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    /* Emails e textos longos */
    .table td.text-break,
    .table td {
        max-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Força labels de tabela a terem largura mínima */
    .table td.fw-semibold,
    .table td.text-muted {
        min-width: 100px;
        width: auto;
    }
}

/* Mobile: Ajusta botões no footer do card ERP */
@media (max-width: 575.98px) {
    .card-body .d-flex.justify-content-between {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .card-body .d-flex.justify-content-between > div {
        width: 100%;
    }
    
    .card-body .d-flex.justify-content-between button {
        width: 100%;
    }
}

.product-mapped:hover,
.product-unmapped:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* ==========================================
 * SUPPLIER VIDEO TRAILS (Trilhas)
 * ========================================== */

/* Trail Cards (Supplier Management) */
.trail-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.trail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

/* Trail Card Thumbnail Header */
.trail-card-thumb {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.trail-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.trail-card:hover .trail-card-thumb img {
    opacity: 1;
    transform: scale(1.05);
}

.trail-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.3);
}

.trail-card-thumb-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.trail-card-thumb .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Video Cards within Trails (Supplier Manage Videos) */
.trail-video-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.trail-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Manage Videos Thumbnail */
.manage-video-thumb {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.manage-video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trail-video-card:hover .manage-video-thumb img {
    transform: scale(1.05);
}

.manage-video-thumb .manage-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.manage-video-thumb:hover .manage-play-overlay {
    opacity: 1;
}

.manage-video-thumb .manage-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212529;
    font-size: 1rem;
    transition: transform 0.15s ease;
}

.manage-video-thumb:hover .manage-play-btn {
    transform: scale(1.1);
}

.manage-video-inactive-banner {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* =========================================
 * Profile Tabs (Supplier Public Profile)
 * ========================================= */
.profile-nav-tabs {
    gap: 0;
}

.profile-nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    transition: color 0.15s ease, border-color 0.15s ease;
    border-radius: 0;
    background: transparent;
}

.profile-nav-tabs .nav-link:hover {
    color: #1e293b;
    border-bottom-color: #cbd5e1;
    background: transparent;
}

.profile-nav-tabs .nav-link.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: transparent;
}

.profile-nav-tabs .nav-link .badge {
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    font-weight: 700;
    vertical-align: middle;
}

/* =========================================
 * Netflix-style Video Trails (Seller View)
 * ========================================= */
.supplier-trails-showcase {
    margin-top: 0;
}

.trails-showcase-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.trails-showcase-header h4 i {
    margin-right: 0.35rem;
}

/* Horizontal Scroll Container */
.trail-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.trail-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.trail-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.trail-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

.trail-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Scroll Row */
.trail-scroll-row {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    padding-bottom: 4px;
}

/* Individual Video Item */
.trail-scroll-item {
    flex: 0 0 260px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.trail-scroll-item:hover {
    transform: translateY(-3px);
}

/* Thumbnail Wrapper */
.trail-thumb-wrapper {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.trail-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.trail-scroll-item:hover .trail-thumb-wrapper img {
    transform: scale(1.05);
}

.trail-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.3);
}

/* Play Overlay */
.trail-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.trail-scroll-item:hover .trail-thumb-overlay {
    opacity: 1;
}

.trail-play-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212529;
    font-size: 1rem;
    transition: transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trail-scroll-item:hover .trail-play-circle {
    transform: scale(1.1);
}

/* Badges on thumbnail */
.trail-thumb-badge-num,
.trail-thumb-badge-dur {
    position: absolute;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    line-height: 1.3;
}

.trail-thumb-badge-num {
    top: 8px;
    left: 8px;
}

.trail-thumb-badge-dur {
    bottom: 8px;
    right: 8px;
}

/* Video Info Text */
.trail-scroll-info {
    padding: 0.5rem 0.15rem 0;
}

.trail-scroll-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trail-scroll-desc {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.3;
}

/* Trail Row Block spacing */
.trail-row-block {
    padding-bottom: 0.25rem;
}

/* Help page admin actions inside trail card */
.help-admin-actions {
    position: relative;
    z-index: 2;
}

/* Video Grid Responsiveness */
@media (max-width: 768px) {
    .trail-card,
    .trail-video-card {
        margin-bottom: 1rem;
    }
    
    .trail-scroll-item {
        flex: 0 0 220px;
    }
    
    .trail-card-thumb {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .trail-scroll-item {
        flex: 0 0 200px;
    }
}

/* Active/Inactive Video Styling */
.trail-video-card.inactive-card {
    opacity: 0.55;
    position: relative;
}

.trail-video-card.inactive-card:hover {
    opacity: 0.75;
}

/* Text truncation helper - 2 lines */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   KPI Cards - Admin Dashboard
   ============================================ */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.kpi-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    color: inherit;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.kpi-icon.purple {
    background: #ede9fe;
    color: #6d28d9;
}

.kpi-icon.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.kpi-icon.green {
    background: #d1fae5;
    color: #065f46;
}

.kpi-icon.orange {
    background: #ffedd5;
    color: #c2410c;
}

.kpi-icon.yellow {
    background: #fef3c7;
    color: #92400e;
}

.kpi-icon.red {
    background: #fee2e2;
    color: #991b1b;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
}

.kpi-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

.kpi-sub {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.3;
}

/* ============================================
   Pagination Info
   ============================================ */
.pagination-info {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ============================================
   User Detail Modal
   ============================================ */
.user-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.user-detail-grid .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.user-detail-grid .detail-row .detail-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
}

.user-detail-grid .detail-row .detail-value {
    color: #6b7280;
    font-size: 0.85rem;
    text-align: right;
}

@media (max-width: 768px) {
    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .user-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .kpi-row {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
 * SWITCH PLAN - Subscription Plan Switching
 * ===================================================== */
.switch-plan-section {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border-radius: 16px;
    border: 2px solid #e0e7ff;
    padding: 28px;
    transition: box-shadow .3s ease;
    scroll-margin-top: 20px;
}
.switch-plan-section.switch-plan-highlight {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.25);
}
.switch-plan-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.switch-plan-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}
.switch-plan-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}
.switch-plan-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0 0;
}
.switch-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.switch-plan-card {
    background: #fff;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .25s ease, transform .2s ease, border-color .25s ease;
}
.switch-plan-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.switch-plan-card.recommended {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.18);
}
.switch-plan-card.recommended:hover {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
}
.switch-plan-recommended {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.switch-plan-card-top {
    padding: 24px 24px 16px;
    text-align: center;
}
.switch-plan-card.recommended .switch-plan-card-top {
    padding-top: 40px;
}
.switch-plan-direction {
    margin-bottom: 10px;
}
.switch-plan-dir-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.switch-plan-dir-badge.upgrade {
    background: #dcfce7;
    color: #166534;
}
.switch-plan-dir-badge.downgrade {
    background: #fef3c7;
    color: #92400e;
}
.switch-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}
.switch-plan-price {
    margin-bottom: 4px;
}
.switch-plan-price-value {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
}
.switch-plan-price-cycle {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}
.switch-plan-price-diff {
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
}
.switch-plan-price-diff.more {
    background: #fef3c7;
    color: #92400e;
}
.switch-plan-price-diff.less {
    background: #dcfce7;
    color: #166534;
}
.switch-plan-comparison {
    padding: 0 24px 12px;
}
.switch-plan-compare-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f4f6;
}
.switch-compare-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13px;
}
.switch-compare-row:not(:last-child) {
    border-bottom: 1px dashed #f3f4f6;
}
.switch-compare-label {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}
.switch-compare-label i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}
.switch-compare-values {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.switch-compare-current {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 12px;
}
.switch-compare-arrow {
    font-size: 10px;
    color: #d1d5db;
}
.switch-compare-new {
    font-size: 14px;
}
.switch-compare-new.gain {
    color: #059669;
}
.switch-compare-new.loss {
    color: #dc2626;
}
.switch-compare-new.same {
    color: #6b7280;
}
.switch-plan-features {
    padding: 0 24px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.switch-plan-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.switch-plan-feature-tag i {
    font-size: 9px;
}
.switch-plan-action {
    padding: 16px 24px 20px;
    margin-top: auto;
    border-top: 1px solid #f3f4f6;
}
.btn-switch-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    transition: opacity .2s ease, box-shadow .2s ease;
}
.btn-switch-upgrade:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}
.btn-switch-downgrade {
    background: #f9fafb;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: background .2s ease, border-color .2s ease;
}
.btn-switch-downgrade:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}
@media (max-width: 768px) {
    .switch-plan-section { padding: 20px; }
    .switch-plans-grid { grid-template-columns: 1fr; }
    .switch-plan-header { flex-direction: column; text-align: center; }
}

/* =====================================================
 * CHOOSE PLAN - Subscription Selection (Landing-style)
 * ===================================================== */
.cp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 24px;
}
@media (max-width: 768px) {
    .cp-pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}
.cp-pricing-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.cp-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.06);
}
.cp-pricing-card.cp-featured {
    border: 2px solid #6366f1;
    box-shadow: 0 0 30px rgba(99,102,241,.15);
    transform: scale(1.03);
}
.cp-pricing-card.cp-featured:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 0 30px rgba(99,102,241,.25);
}
.cp-pricing-card.cp-selected {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16,185,129,.2), 0 0 20px rgba(16,185,129,.1);
}
.cp-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 6px 18px;
    border-radius: 0 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cp-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}
.cp-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #6366f1;
    border-radius: 10px;
    font-size: 1.25rem;
}
.cp-icon-featured {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}
.cp-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: #0f172a;
}
.cp-price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: .5rem;
}
.cp-currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569;
}
.cp-amount {
    font-size: 3rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}
.cp-cents {
    font-size: 1.5rem;
}
.cp-period {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
}
.cp-description {
    color: #475569;
    font-size: .875rem;
    margin-bottom: 0;
}
.cp-trial-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: .75rem;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(72,187,120,.1), rgba(56,178,172,.1));
    color: #38a169;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 2rem;
    border: 1px solid rgba(72,187,120,.2);
    margin-bottom: 0;
}
.cp-trial-tag i {
    font-size: .75rem;
}
.cp-features {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
    list-style: none;
    margin: 0;
}
.cp-features li {
    display: flex;
    align-items: center;
    gap: .625rem;
    color: #475569;
    font-size: .9rem;
}
.cp-features li i {
    color: #10b981;
    font-size: .8rem;
    flex-shrink: 0;
}
.cp-footer {
    padding: 0 2rem 2rem;
}
.cp-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
}
.cp-btn-glow {
    box-shadow: 0 0 20px rgba(99,102,241,.3);
}
.cp-btn-glow:hover {
    box-shadow: 0 0 30px rgba(99,102,241,.45);
}
.cp-btn-trial {
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
}
.cp-select-indicator {
    text-align: center;
    padding: 10px;
    color: #10b981;
    font-weight: 700;
    font-size: .9rem;
}
.cp-select-hint {
    text-align: center;
    padding: 10px;
    color: #94a3b8;
    font-size: .85rem;
}
.cp-info-footer {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px 24px;
    margin-top: 8px;
}
.cp-info-item i {
    font-size: 24px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}
.cp-info-item p {
    font-size: 12px;
    color: #475569;
    margin: 0;
}

/* =====================================================
 * ERP Data Modal - Seller Marketplace
 * ===================================================== */
#erpDataModal .modal-header {
    border-bottom: 2px solid rgba(255,255,255,0.2);
}
#erpDataModal .form-label {
    font-size: 0.875rem;
}
#erpDataModal .erp-person-fields {
    animation: fadeInDown 0.2s ease-out;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =====================================================
 * Supplier Tiny Mappings
 * ===================================================== */
.mapping-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid transparent;
}

.mapping-status-badge.mapped {
    background-color: #d1fae5;
    color: #064e3b;
    border-color: #10b981;
}

.mapping-status-badge.unmapped {
    background-color: #fef3c7;
    color: #78350f;
    border-color: #f59e0b;
}

.tiny-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.tiny-search-results table {
    margin-bottom: 0;
}

.tiny-search-results tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

#tinyMappingModal .modal-body .alert-secondary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

#tinyMappingModal .form-check-input {
    cursor: pointer;
}

#tab-mappings .card-header h5 {
    margin-bottom: 0;
    font-size: 1rem;
}

#tab-mappings .table td {
    vertical-align: middle;
}

#unmapped-count, #mapped-count {
    font-size: 0.75rem;
    padding: 2px 6px;
}

/* Melhor legibilidade de códigos e números */
#tab-mappings code,
#tab-mappings .font-monospace,
#tab-mappings .small {
    background-color: #f8fafc;
    color: #0f172a;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

#tab-mappings .table .text-muted {
    color: #64748b !important;
    font-weight: 500;
}

#tab-mappings .table .fw-medium {
    color: #0f172a;
    font-weight: 600;
}

#tab-mappings .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.75em;
    font-weight: 700;
}

/* Campo de busca de produtos não mapeados */
#unmappedSearchInput {
    border-left: 0;
}

#unmappedSearchInput:focus {
    border-color: #8b5cf6;
    box-shadow: none;
}

.input-group-text.bg-light {
    background-color: #f8fafc !important;
}

#unmappedSearchInput:focus + .input-group-text {
    border-color: #8b5cf6;
}

#unmappedClearSearch {
    border-left: 0;
}

#unmappedSearchCount {
    color: #6366f1;
    font-weight: 600;
}

/* Valores monetários e números */
.text-success strong,
strong.text-success {
    color: #059669 !important;
    font-weight: 700;
    text-shadow: 0 0 1px rgba(5, 150, 105, 0.1);
}

.table .text-center .badge {
    font-size: 0.85rem;
    min-width: 40px;
    display: inline-block;
}

/* =====================================================
 * Tiny Import Page Layout Improvements
 * ===================================================== */

/* Status Cards */
.tiny-import-status-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tiny-import-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.tiny-import-status-card .cursor-pointer {
    cursor: pointer;
}

/* Pills Navigation */
.nav-pills .nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
    color: #64748b;
}

.nav-pills .nav-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
}

.nav-pills .nav-link i {
    font-size: 1rem;
}

/* Tables Enhancement */
.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

.table thead.table-light {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Card Improvements */
.card.border-0 {
    border: none !important;
}

.card.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card.shadow-sm:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.card-header.bg-white {
    background-color: #fff !important;
    border-bottom: 1px solid #e2e8f0;
}

.card-footer.bg-white {
    background-color: #fff !important;
    border-top: 1px solid #e2e8f0;
}

/* Badges Enhancement */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    border: 1px solid transparent;
}

.badge.bg-success {
    background-color: #10b981 !important;
    color: #fff !important;
    border-color: #059669 !important;
}

.badge.bg-danger {
    background-color: #ef4444 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
}

.badge.bg-warning {
    background-color: #f59e0b !important;
    color: #fff !important;
    border-color: #d97706 !important;
}

.badge.bg-info {
    background-color: #3b82f6 !important;
    color: #fff !important;
    border-color: #2563eb !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    border-color: #6366f1 !important;
}

.badge.bg-secondary {
    background-color: #6b7280 !important;
    color: #fff !important;
    border-color: #4b5563 !important;
}

.badge.bg-light {
    background-color: #f3f4f6 !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
    font-weight: 700;
}

/* Badge text dark for warning badges */
.badge.bg-warning.text-dark {
    background-color: #fbbf24 !important;
    color: #78350f !important;
    border-color: #f59e0b !important;
    font-weight: 700;
}

/* Buttons Enhancement */
.btn {
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5558e8, #7c3aed);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.btn-success {
    background-color: #10b981;
    border-color: #10b981;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.btn-info {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.btn-info:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover {
    transform: translateY(-1px);
}

/* Progress Bar */
.progress {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    transition: width 0.3s ease;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Alert Enhancement */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.alert-primary {
    background-color: #eff6ff;
    color: #1e40af;
}

.alert-info {
    background-color: #f0f9ff;
    color: #0369a1;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: #6366f1;
    border-color: #e2e8f0;
    border-radius: 0.375rem;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #4f46e5;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #cbd5e1;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.15);
}

.form-control-lg {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-select-sm {
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

/* Checkbox Enhancement */
.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.form-check-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.15);
}

/* Loading States */
.spinner-border {
    border-width: 0.2rem;
}

/* Monospace Font */
.font-monospace {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Code elements */
code {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

code.small {
    font-size: 0.8125rem;
}

/* Icon Sizes */
.fa-2x {
    font-size: 2rem;
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tiny-import-status-card {
        margin-bottom: 1rem;
    }
    
    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-footer .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination {
        justify-content: center !important;
    }
}

/* ========================================
   FAQ System Styles
   ======================================== */

/* --- Hero Section --- */
.faq-hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 50%, #f0fdf4 100%);
    border-radius: 1rem;
    padding: 2.5rem 1.5rem 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-hero-icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.25);
}

.faq-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
}

.faq-hero-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    max-width: 480px;
    margin: 0 auto;
}

/* --- Search Box --- */
.faq-search-box {
    border-radius: 3rem;
    border: 1.5px solid #dee2e6;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search-box:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.faq-search-box .input-group-text,
.faq-search-box .form-control {
    border: none;
    background: transparent;
}

.faq-search-box .form-control {
    font-size: 0.925rem;
    padding: 0.7rem 0.5rem;
}

.faq-search-box .form-control:focus {
    box-shadow: none;
}

.faq-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1050;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    color: #212529;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.875rem;
    transition: background-color 0.12s;
}

.search-result-item:hover {
    background-color: #f0f4ff;
    color: #0d6efd;
}

.search-result-item:last-child { border-bottom: none; }

.search-results-section h6 {
    background: #f8f9fa;
    margin: 0;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 0.45rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

/* --- Category Cards (Index) --- */
.faq-category-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.faq-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.08);
    border-color: #c7d7fd;
}

.faq-card-desc {
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.faq-category-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #e8f0fe, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1d4ed8;
    flex-shrink: 0;
}

.faq-category-icon-lg {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
}

.faq-card-arrow {
    color: #cbd5e1;
    font-size: 0.75rem;
    transition: color 0.15s, transform 0.15s;
    flex-shrink: 0;
    align-self: center;
}

.faq-category-card:hover .faq-card-arrow {
    color: #0d6efd;
    transform: translateX(2px);
}

/* --- Count Badges --- */
.faq-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 2rem;
    white-space: nowrap;
}

.faq-count-video  { background: #eff6ff; color: #2563eb; }
.faq-count-article { background: #f0fdf4; color: #16a34a; }
.faq-count-soon   { background: #f9fafb; color: #9ca3af; }
.faq-count-inactive { background: #fefce8; color: #a16207; }

/* --- Breadcrumb --- */
.faq-breadcrumb {
    font-size: 0.85rem;
    padding: 0.5rem 0;
    margin-bottom: 0;
}

.faq-breadcrumb a { color: #6c757d; text-decoration: none; }
.faq-breadcrumb a:hover { color: #0d6efd; }

/* --- Category Detail Header --- */
.faq-category-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.faq-category-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

/* --- Tabs (Category) --- */
.faq-nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    gap: 0.25rem;
}

.faq-nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    margin-bottom: -2px;
    border-radius: 0;
    transition: color 0.15s, border-color 0.15s;
}

.faq-nav-tabs .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #c7d7fd;
}

.faq-nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: transparent;
}

.faq-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 10px;
    margin-left: 0.35rem;
    padding: 0 0.4rem;
}

.faq-nav-tabs .nav-link.active .faq-tab-count {
    background: #dbeafe;
    color: #2563eb;
}

/* --- Video Trail (Netflix-style) --- */
.faq-trail {
    position: relative;
    margin: 0 -0.25rem;
}

.faq-trail-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.25rem 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.faq-trail-track::-webkit-scrollbar { height: 4px; }
.faq-trail-track::-webkit-scrollbar-track { background: transparent; }
.faq-trail-track::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
.faq-trail-track::-webkit-scrollbar-thumb:hover { background: #64748b; }

.faq-trail-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    border-radius: 0.6rem;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid #334155;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.faq-trail-card:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #334155;
    z-index: 2;
}

.faq-trail-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #0f172a;
    overflow: hidden;
}

.faq-trail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.faq-trail-card:hover .faq-trail-thumb img { opacity: 0.85; }

.faq-trail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.25rem;
    background: #334155;
}

.faq-trail-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s;
}

.faq-trail-card:hover .faq-trail-overlay { opacity: 1; }

.faq-trail-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.faq-trail-play i {
    color: #0d6efd;
    font-size: 0.8rem;
    padding-left: 2px;
}

.faq-trail-info {
    padding: 0.5rem 0.6rem;
    background: transparent;
}

.faq-trail-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.faq-trail-more {
    font-size: 0.72rem;
    color: #818cf8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.15rem;
    transition: color 0.15s;
}

.faq-trail-more:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.faq-trail-more i {
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    .faq-trail-card { flex: 0 0 160px; }
    .faq-trail-play { width: 30px; height: 30px; }
    .faq-trail-play i { font-size: 0.7rem; }
    .faq-trail-title { font-size: 0.72rem; }
    .faq-trail-desc { font-size: 0.65rem; -webkit-line-clamp: 1; }
}

/* --- Training Landing Cards --- */
.training-landing-card {
    position: relative;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.training-landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.training-landing-card-trails {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.training-landing-card-knowledge {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: #fff;
}

.training-landing-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.training-landing-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.training-landing-card-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.training-landing-card-count {
    font-size: 0.8rem;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,.15);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.training-landing-card-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.training-landing-card:hover .training-landing-card-arrow {
    background: rgba(255,255,255,.35);
}

@media (max-width: 768px) {
    .training-landing-card {
        padding: 1.75rem 1.25rem;
        min-height: 180px;
    }
    .training-landing-card-title {
        font-size: 1.15rem;
    }
}

/* --- Training Section Headers --- */
.training-section-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.training-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.training-section-icon-articles {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.training-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

/* --- Training Trail Rows --- */
.training-trail-row {
    background: #1e293b;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.18s;
}

.training-trail-row:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    border-color: #475569;
}

.training-trail-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.training-trail-link {
    color: #f1f5f9 !important;
    transition: color 0.15s;
}

.training-trail-link:hover {
    color: #a5b4fc !important;
}

/* Dark icon wrap in trail rows */
.training-trail-row .faq-category-icon-wrap {
    background: rgba(99,102,241,.2);
    color: #a5b4fc;
}

/* Dark trail locked overlay */
.trail-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.85);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 0.5rem;
}

.trail-locked-icon {
    font-size: 1.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.trail-locked-text {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

/* --- Plan Badges --- */
.trail-plan-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.2em 0.6em;
    border-radius: 0.35rem;
    vertical-align: middle;
}

/* --- Trail Locked State --- */
.trail-locked-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.trail-card-blurred {
    pointer-events: none;
}

.trail-card-blurred .faq-trail-thumb img,
.trail-card-blurred .faq-trail-placeholder {
    filter: blur(4px) grayscale(40%);
    opacity: 0.5;
}

.trail-card-blurred .faq-trail-info {
    opacity: 0.4;
}

.trail-locked-content {
    text-align: center;
    padding: 1rem;
}

.trail-upgrade-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 1.5rem;
}

@media (max-width: 768px) {
    .training-trail-row {
        padding: 0.75rem;
    }
    .training-section-title {
        font-size: 1.05rem;
    }
}

/* --- Articles List --- */
.faq-articles-list {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.faq-article-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.12s;
}

.faq-article-item:last-child { border-bottom: none; }
.faq-article-item:hover { background-color: #f8faff; }

.faq-article-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.faq-article-link {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

.faq-article-link:hover { color: #0d6efd; }

/* --- Tags --- */
.faq-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    margin-right: 0.2rem;
}

.faq-tag-sm { font-size: 0.65rem; }

/* --- Article Detail --- */
.faq-article-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.75rem;
}

.faq-article-question {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.faq-article-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.faq-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
}

/* --- Sidebar --- */
.faq-sidebar-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
}

.faq-sidebar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f0f0f0;
}

.faq-related-list { display: flex; flex-direction: column; gap: 0.15rem; }

.faq-related-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.4rem;
    border-radius: 0.4rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.825rem;
    line-height: 1.4;
    transition: background-color 0.12s;
}

.faq-related-item:hover {
    background: #f5f8ff;
    color: #0d6efd;
}

.faq-related-item i {
    margin-top: 0.15rem;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* --- Article Content --- */
.article-content {
    max-width: 800px;
    line-height: 1.8;
    font-size: 1rem;
}

.article-content h1, .article-content h2, .article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-content h1 { font-size: 1.5rem; }
.article-content h2 { font-size: 1.3rem; }
.article-content h3 { font-size: 1.1rem; }
.article-content p { margin-bottom: 0.85rem; }

.article-content ul, .article-content ol {
    margin-bottom: 0.85rem;
    padding-left: 1.5rem;
}

.article-content li { margin-bottom: 0.35rem; }

.article-content code {
    background: #f1f5f9;
    padding: 0.15rem 0.35rem;
    border-radius: 0.2rem;
    font-size: 0.875em;
}

.article-content pre {
    background: #f8f9fa;
    padding: 0.85rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
}

.article-content a { color: #0d6efd; text-decoration: underline; }

.faq-article-answer { line-height: 1.75; }
.faq-article-answer p:last-child { margin-bottom: 0; }

/* --- Helpful Button --- */
.btn-helpful { white-space: nowrap; }

/* --- Admin Drag --- */
.drag-handle { cursor: grab; opacity: 0.4; transition: opacity 0.15s; }
.drag-handle:hover { opacity: 0.9; }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: 0.4; background-color: #f8f9fa; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .faq-hero { padding: 1.5rem 1rem; border-radius: 0.75rem; }
    .faq-hero-icon-ring { width: 46px; height: 46px; font-size: 1.2rem; }
    .faq-hero-title { font-size: 1.3rem; }
    .faq-hero-subtitle { font-size: 0.85rem; }
    .faq-category-icon-wrap { width: 38px; height: 38px; font-size: 1rem; }
    .faq-category-icon-lg { width: 44px; height: 44px; font-size: 1.15rem; }
    .faq-search-box .form-control { font-size: 0.85rem; }
    .faq-article-question { font-size: 1.1rem; }
    .faq-article-card { padding: 1.25rem; }
    .article-content { font-size: 0.93rem; }
    .faq-nav-tabs .nav-link { padding: 0.5rem 0.7rem; font-size: 0.8rem; }
}

/* =====================================================
   ORDER CARDS — Listagem de pedidos estilo marketplace
   ===================================================== */

.order-filters-bar {
    background: linear-gradient(135deg, #faf9ff 0%, #f3f1ff 100%);
    border: 1px solid #e0d9fa;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.06);
}
.order-filters-bar .form-control-sm,
.order-filters-bar .form-select-sm {
    border-radius: 20px;
    border: 1.5px solid #d4ccf7;
    font-size: 0.82rem;
    padding: 5px 14px;
    background: #fff;
    color: #4a4668;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 32px;
}
.order-filters-bar .form-select-sm {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236366f1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
    cursor: pointer;
}
.order-filters-bar .form-control-sm::placeholder {
    color: #a5a0c0;
    font-weight: 400;
}
.order-filters-bar .form-control-sm:focus,
.order-filters-bar .form-select-sm:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}
.order-filters-bar input[type="date"].form-control-sm {
    color: #4a4668;
    padding: 5px 10px;
}
.order-filters-bar input[type="date"].form-control-sm::-webkit-calendar-picker-indicator {
    filter: invert(35%) sepia(80%) saturate(2000%) hue-rotate(225deg) brightness(95%);
    cursor: pointer;
    opacity: 0.7;
}
.order-filters-bar input[type="date"].form-control-sm::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
.order-filters-bar .btn-primary {
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 5px 16px;
    height: 32px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
    transition: all 0.2s;
}
.order-filters-bar .btn-primary:hover {
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}
.order-filters-bar .btn-outline-secondary {
    border-radius: 20px;
    border: 1.5px solid #d4ccf7;
    color: #6366f1;
    padding: 5px 16px;
    height: 32px;
    background: #fff;
    transition: all 0.2s;
}
.order-filters-bar .btn-outline-secondary:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: #6366f1;
    color: #6366f1;
}
.order-filters-bar .vr {
    border-left: 1.5px solid #d4ccf7 !important;
    opacity: 0.6;
}

.quick-filter-btn {
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 20px;
    padding: 3px 12px;
    color: #6366f1;
    background: transparent;
    border: 1px solid #c7d2fe;
    transition: all 0.2s;
    white-space: nowrap;
}
.quick-filter-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: #6366f1;
    color: #6366f1;
}
.quick-filter-active {
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 12px;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: 1px solid transparent;
    white-space: nowrap;
}
.quick-filter-active:hover {
    color: #fff;
    opacity: 0.9;
}

.order-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: box-shadow .2s, border-color .2s;
    overflow: hidden;
}

.order-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 12px rgba(99,102,241,.08);
}

.order-card--canceled {
    opacity: 0.6;
    background: #fafafa;
}

.order-card-body {
    display: grid;
    grid-template-columns: 1fr 200px 190px;
    gap: 0;
    min-height: 120px;
}

.order-card-product {
    padding: 16px 20px;
    border-right: 1px solid #f0f0f0;
}

.order-card-info {
    padding: 16px;
    border-right: 1px solid #f0f0f0;
}

.order-card-status {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header do card */
.order-card-header-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.order-card-id {
    font-weight: 600;
    color: #475569;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
}

.badge-sm {
    font-size: 0.68rem;
    padding: 2px 7px;
    font-weight: 500;
}

/* Imagem do produto */
.order-card-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #f8f9fa;
}

.order-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.4rem;
}

/* Produto info */
.order-card-product-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.3;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-card-sku {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 2px;
}

.order-card-qty {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 1px;
}

.order-card-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.product-variation-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 4px;
    font-weight: 500;
}

.order-card-more-items {
    font-size: 0.75rem;
    margin-top: 3px;
}

/* Info central */
.order-card-price {
    font-size: 0.82rem;
    color: #475569;
}

.order-card-price strong {
    font-size: 1rem;
    color: #1e293b;
}

.order-card-supplier,
.order-card-buyer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    min-width: 0;
}

.order-card-supplier > div,
.order-card-buyer > div {
    min-width: 0;
}

.order-card-supplier-name,
.order-card-buyer span:not(.buyer-avatar) {
    font-size: 0.78rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.supplier-avatar,
.buyer-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    color: #fff;
    flex-shrink: 0;
}

.supplier-avatar {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.buyer-avatar {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.order-card-date {
    font-size: 0.78rem;
    color: #475569;
}

/* =====================================================
   ORDER STATUS TIMELINE — Vertical stepper
   ===================================================== */

.order-timeline-wrap {
    font-size: 0.78rem;
}

.order-timeline-header {
    font-weight: 600;
    color: #475569;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.order-status-timeline {
    display: flex;
    flex-direction: column;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.timeline-dot-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 14px;
    flex-shrink: 0;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-line {
    width: 2px;
    height: 14px;
    background: #e2e8f0;
}

.timeline-label {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1;
    padding-top: 1px;
    white-space: nowrap;
}

/* Past step */
.step-past .timeline-dot {
    background: #22c55e;
    border-color: #22c55e;
}

.step-past .timeline-line {
    background: #22c55e;
}

.step-past .timeline-label {
    color: #475569;
}

/* Current step */
.step-current .timeline-dot {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.2);
    width: 12px;
    height: 12px;
}

.step-current .timeline-label {
    color: #1e293b;
    font-weight: 600;
}

/* Canceled step */
.step-canceled .timeline-dot {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

.step-canceled .timeline-label {
    color: #ef4444;
    font-weight: 600;
}

/* =====================================================
   ORDER CARDS — Responsive
   ===================================================== */
@media (max-width: 992px) {
    .order-card-body {
        grid-template-columns: 1fr 170px;
    }
    .order-card-info {
        border-right: none;
    }
    .order-card-status {
        grid-column: 1 / -1;
        border-top: 1px solid #f0f0f0;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .order-status-timeline {
        flex-direction: row;
        gap: 4px;
    }
    .timeline-dot-line {
        flex-direction: row;
        width: auto;
    }
    .timeline-line {
        width: 16px;
        height: 2px;
    }
}

@media (max-width: 576px) {
    .order-card-body {
        grid-template-columns: 1fr;
    }
    .order-card-product {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .order-card-info {
        border-bottom: 1px solid #f0f0f0;
    }
    .order-card-product-name {
        max-width: 100%;
    }
}

/* =====================================================
   SUPPLIER ORDERS — Grouped by Seller View
   ===================================================== */
.seller-grouped-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seller-group-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.seller-group-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.seller-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}

.seller-group-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller-group-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    flex-shrink: 0;
}

.seller-group-name {
    font-size: 0.95rem;
    color: #1e293b;
}

.seller-group-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.seller-group-table {
    font-size: 0.85rem;
    table-layout: fixed;
    width: 100%;
    min-width: 780px;
}

.seller-group-table thead th {
    background: #fafbfc;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    padding: 8px 12px;
    white-space: nowrap;
}

.seller-group-table tbody td {
    padding: 8px 12px;
    vertical-align: middle;
    white-space: nowrap;
}

.seller-group-table tbody td:nth-child(4) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-group-table tbody tr:hover {
    background: #f8fafc;
}

/* View toggle buttons */
.view-toggle-group {
    display: inline-flex;
    gap: 4px;
}

.view-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 20px;
    border: 1.5px solid #d4ccf7;
    background: #fff;
    color: #a5a0c0;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.view-toggle-btn i {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: currentColor;
    background-clip: unset;
    font-size: 0.85rem;
}

.view-toggle-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
}

.view-toggle-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .seller-group-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .seller-group-actions {
        width: 100%;
    }
    .seller-group-actions .btn {
        flex: 1;
        font-size: 0.78rem;
    }
}

/* Bulk Print Modal (Impressão em Lote) */
.bpm-modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
}
.bpm-modal-header .modal-title {
    font-size: 1rem;
    font-weight: 600;
}
.bpm-modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 12px 20px;
}

.bpm-progress {
    padding: 10px 20px 8px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.bpm-progress-track {
    width: 100%;
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}
.bpm-progress-fill {
    height: 100%;
    background: #198754;
    border-radius: 3px;
    transition: width .3s ease;
    width: 0%;
}
.bpm-progress-text {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.bpm-zebra-alert {
    margin: 12px 20px 0;
    padding: 10px 14px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 12px;
    color: #664d03;
}
.bpm-zebra-alert a { color: #664d03; font-weight: 600; }

.bpm-queue-body {
    padding: 12px 16px;
    max-height: 400px;
    overflow-y: auto;
}

.bpm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-bottom: 6px;
    transition: all .2s ease;
    background: #fff;
}
.bpm-item.bpm-printing {
    border-color: #0d6efd;
    background: #f0f7ff;
}
.bpm-item.bpm-done {
    border-color: #198754;
    background: #f0fdf4;
}
.bpm-item.bpm-error {
    border-color: #dc3545;
    background: #fff5f5;
}

.bpm-item-icon {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    font-size: 14px;
    color: #adb5bd;
}
.bpm-item.bpm-printing .bpm-item-icon { color: #0d6efd; }
.bpm-item.bpm-done .bpm-item-icon { color: #198754; }
.bpm-item.bpm-error .bpm-item-icon { color: #dc3545; }

.bpm-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.bpm-item-order {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}
.bpm-item-customer {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bpm-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.bpm-badge-danfe { background: #e8f5e9; color: #2e7d32; }
.bpm-badge-dc { background: #e3f2fd; color: #1565c0; }
.bpm-badge-label { background: #fff3e0; color: #e65100; }

.bpm-separator {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

/* =====================================================
 * SELLER ORDER EDIT — UX Improvements
 * ===================================================== */

/* Crop wrapper para modal de etiqueta */
.crop-wrapper {
    position: relative;
    background: #f0f0f0;
}
.crop-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
}

/* Thumbnail de produto na tabela de itens */
.order-item-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid #dee2e6;
}
.order-item-thumb-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
}

/* Sticky action bar no final da página */
.order-action-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding: 12px 20px;
    margin: 24px -20px -20px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    z-index: 100;
}

@media (max-width: 576px) {
    .order-action-bar {
        padding: 10px 12px;
        margin: 16px -12px -12px;
    }
    .order-action-bar .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .order-item-thumb,
    .order-item-thumb-placeholder {
        width: 32px;
        height: 32px;
    }
}

/* ML Category prediction/browser options */
#category-list .category-option {
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-left: 3px solid transparent;
}
#category-list .category-option:hover {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #212529;
}
#category-list .category-option.active,
#category-list .category-option:active {
    background-color: #ffc107;
    border-left-color: #e0a800;
    color: #212529;
    font-weight: 500;
}

/* Toast slide-in animation */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Listing detail badges */
.listing-badge {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.2em 0.5em;
}

/* ========== SUGGESTIONS SYSTEM ========== */

/* Suggestion card */
.suggestion-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.suggestion-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
    transform: translateY(-1px);
}
.suggestion-card.voted {
    border-left: 3px solid #667eea;
}

/* Vote button */
.suggestion-vote-btn {
    min-width: 56px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 2px solid #dee2e6;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
}
.suggestion-vote-btn:hover:not(:disabled) {
    border-color: #667eea;
    background: #f0f0ff;
    color: #667eea;
    transform: scale(1.05);
}
.suggestion-vote-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.suggestion-vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.suggestion-vote-btn .vote-arrow {
    font-size: 0.75rem;
    margin-bottom: 2px;
}
.suggestion-vote-btn .vote-count {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}
.suggestion-vote-btn .vote-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Stat cards */
.suggestion-stat-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease;
}
.suggestion-stat-card:hover {
    transform: translateY(-2px);
}
.suggestion-stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Hero gradient */
.suggestion-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    border: none;
}

/* Category selector cards */
.suggestion-category-option {
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 2px solid #e9ecef;
    padding: 16px;
}
.suggestion-category-option:hover {
    border-color: #667eea;
    background: #f8f7ff;
}
.btn-check:checked + .suggestion-category-option {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f0ff 0%, #f5f0ff 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}
.btn-check:checked + .suggestion-category-option .category-icon {
    color: #667eea;
}

/* Status timeline */
.suggestion-timeline-item {
    position: relative;
    padding-left: 36px;
    padding-bottom: 20px;
}
.suggestion-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}
.suggestion-timeline-dot {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #fff;
}

/* Admin response card */
.suggestion-admin-response {
    border-left: 4px solid #667eea;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f7ff 0%, #f0f4ff 100%);
}

/* Description text */
.suggestion-description {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.7;
    color: #495057;
}

/* Truncate text helper */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge pill counters */
.suggestion-filter-btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.suggestion-filter-btn:hover {
    transform: translateY(-1px);
}

/* Info sidebar card */
.suggestion-info-card {
    border-radius: 12px;
    border: none;
    background: #f8f9fa;
}
.suggestion-info-card .card-header {
    border-radius: 12px 12px 0 0;
    background: transparent;
    border-bottom: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .suggestion-card .meta-col,
    .suggestion-stat-card .stat-icon {
        display: none !important;
    }
    .suggestion-hero .card-body {
        padding: 1rem;
    }
    .suggestion-vote-btn {
        min-width: 44px;
        padding: 6px 8px !important;
    }
}

/* =====================================================
 * Seller Profile — Dados Cadastrais
 * ===================================================== */
.seller-profile-form .card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.seller-profile-form .card-header {
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e9ecef;
}
.seller-profile-form .card-header h5 {
    font-size: .95rem;
    color: #495057;
}

/* =====================================================
 * Topbar — User Menu Dropdown
 * ===================================================== */
.topbar-user-menu {
    position: relative;
}
.topbar-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
}
.topbar-user-dropdown.show {
    display: block;
}
.topbar-user-dropdown-header {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.topbar-user-dropdown-header strong {
    font-size: 13px;
    color: #1e293b;
}
.topbar-user-dropdown-header small {
    font-size: 11px;
    color: #94a3b8;
}
.topbar-user-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
}
.topbar-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    transition: background .15s;
}
.topbar-user-dropdown-item:hover {
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
}
.topbar-user-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
}
.topbar-user-dropdown-logout {
    color: #ef4444;
}
.topbar-user-dropdown-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* =========================================================
 * SELLER CHECKOUT — Pagamento PIX
 * ========================================================= */
.checkout-supplier-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.checkout-supplier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.supplier-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.checkout-supplier-total {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}
.checkout-supplier-body {
    padding: 20px;
}
.checkout-items-list {
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}
.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
}
.checkout-item-row:last-child {
    border-bottom: none;
}
.checkout-item-info {
    flex: 1;
    min-width: 0;
}
.checkout-item-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.checkout-item-sku {
    font-size: 11px;
    color: #9ca3af;
}
.checkout-item-qty {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}
.checkout-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.checkout-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}
.payment-methods-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.payment-method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    flex: 1;
    min-width: 140px;
    transition: all .15s ease;
}
.payment-method-option:hover:not(.disabled) {
    border-color: #667eea;
    background: #f5f3ff;
}
.payment-method-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}
.payment-method-icon {
    font-size: 20px;
    color: #667eea;
    width: 32px;
    text-align: center;
}
.payment-method-option.disabled .payment-method-icon {
    color: #9ca3af;
}
.payment-method-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.payment-existing-notice {
    padding: 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

/* Checkout Summary */
.checkout-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    position: sticky;
    top: 80px;
}
.checkout-summary-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    padding: 6px 0;
}
.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #e5e7eb;
}
.checkout-steps-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
}
.checkout-steps-card h6 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}
.checkout-steps-card ol {
    margin: 0;
    padding-left: 18px;
}
.checkout-steps-card ol li {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
}
.checkout-steps-card ol li.step-done {
    color: #059669;
    text-decoration: line-through;
}
.checkout-steps-card ol li.step-active {
    color: #667eea;
    font-weight: 600;
}

/* PIX Modal */
.pix-qr-container {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    display: inline-block;
}
.pix-qr-image {
    width: 220px;
    height: 220px;
    image-rendering: pixelated;
}
.pix-amount {
    text-align: center;
}
.pix-amount-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.pix-amount-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}
.pix-copy-section .form-control {
    font-size: 11px;
    font-family: monospace;
    background: #f9fafb;
}

/* ========================================================
   ORDER CHECKOUT STEPPER / GAME BAR
   ======================================================== */
.order-stepper {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    border: 1px solid #e5e7eb;
}
.order-stepper-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    text-decoration: none !important;
    position: relative;
    z-index: 1;
}
a.stepper-step:hover .stepper-circle {
    transform: scale(1.1);
}
.stepper-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all .2s ease;
    border: 3px solid;
}
.stepper-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}
.stepper-connector {
    flex: 1;
    height: 3px;
    min-width: 40px;
    max-width: 120px;
    background: #e5e7eb;
    margin: 0 -4px;
    margin-bottom: 28px;
    position: relative;
    z-index: 0;
}
.stepper-connector.connector-done {
    background: #10b981;
}

/* States */
.stepper-complete .stepper-circle {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
.stepper-complete .stepper-label {
    color: #10b981;
}
.stepper-active .stepper-circle {
    background: #fff;
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.stepper-active .stepper-label {
    color: #3b82f6;
}
.stepper-pending .stepper-circle {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
}
.stepper-pending .stepper-label {
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 576px) {
    .order-stepper { padding: 14px 12px; }
    .stepper-step { min-width: 70px; }
    .stepper-circle { width: 36px; height: 36px; font-size: 14px; }
    .stepper-label { font-size: 10px; }
    .stepper-connector { min-width: 20px; }
}

/* Checkout: send-order section */
.checkout-send-section {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 24px;
}
.checkout-send-section .btn-send-order {
    font-size: 18px;
    padding: 14px 32px;
    border-radius: 10px;
}

/* ── Link Import ML Listings ── */
.link-import-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.link-import-thumb-empty {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* ── Integration Cards (seller-integrations index) ── */
.integration-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid rgba(0,0,0,.07) !important;
    cursor: pointer;
}
.integration-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.13) !important;
}
.integration-card--active {
    border-left: 3px solid #28a745 !important;
}
.integration-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.4;
}
.integration-status--active {
    background: #d1e7dd;
    color: #0a3622;
}
.integration-status--active .fas {
    font-size: 7px;
    vertical-align: 1px;
}
.integration-status--available {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}
.integration-type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.integration-type-badge--marketplace {
    background: #fff3cd;
    color: #664d03;
}
.integration-type-badge--erp {
    background: #cff4fc;
    color: #055160;
}
.integration-detail-header {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,.06);
}
.link-import-product-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.link-import-product-thumb-empty {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 4px;
}
.link-import-product-card:hover {
    border-color: #6366f1;
    cursor: pointer;
}

/* =========================================================
 * ASAAS CHECKOUT — Credit Card, PIX, Boleto
 * ========================================================= */

/* Payment method tabs within supplier card */
.asaas-payment-tabs .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
}
.asaas-payment-tabs .nav-link.active {
    color: #667eea;
    background: #fff;
    border-color: #e5e7eb;
}
.asaas-payment-tabs .nav-link i {
    margin-right: 6px;
}
.asaas-tab-content {
    border: 1px solid #e5e7eb;
    border-radius: 0 8px 8px 8px;
    padding: 20px;
    background: #fff;
}

/* Credit card inline form */
.asaas-cc-form .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.asaas-cc-form .form-control {
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 14px;
}
.asaas-cc-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,.15);
}
.asaas-cc-card-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    margin-bottom: 20px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}
.asaas-cc-card-preview::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
}
.asaas-cc-card-number {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
}
.asaas-cc-card-holder {
    font-size: 12px;
    text-transform: uppercase;
    opacity: .85;
}
.asaas-cc-card-expiry {
    font-size: 12px;
    opacity: .85;
    text-align: right;
}
.asaas-cc-card-brand {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    opacity: .8;
}

/* ASAAS PIX section (inline QR) */
.asaas-pix-result {
    text-align: center;
    padding: 16px 0;
}
.asaas-pix-result .pix-qr-container {
    margin-bottom: 16px;
}
.asaas-pix-timer {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}
.asaas-pix-timer i {
    color: #f59e0b;
}

/* ASAAS Boleto section */
.asaas-boleto-result {
    text-align: center;
    padding: 20px 0;
}
.asaas-boleto-result .btn-download-boleto {
    font-size: 15px;
    padding: 12px 24px;
}
.asaas-boleto-due-date {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

/* Payment status badges */
.asaas-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.asaas-status-badge.status-confirmed,
.asaas-status-badge.status-paid {
    background: #d1fae5;
    color: #065f46;
}
.asaas-status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}
.asaas-status-badge.status-failed,
.asaas-status-badge.status-overdue {
    background: #fee2e2;
    color: #991b1b;
}
.asaas-status-badge.status-refunded {
    background: #e0e7ff;
    color: #3730a3;
}

/* ASAAS method selected state */
.payment-method-option.asaas-selected {
    border-color: #667eea;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(102,126,234,.15);
}

/* Holder info section in CC form */
.asaas-holder-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}
.asaas-holder-section h6 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

/* ASAAS payment result container */
.asaas-payment-result {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.asaas-payment-result.result-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.asaas-payment-result.result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.asaas-payment-result .result-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.asaas-payment-result .result-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.asaas-payment-result .result-message {
    font-size: 13px;
    color: #6b7280;
}

/* Polling indicator */
.asaas-polling-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 14px;
    background: #f0f9ff;
    border-radius: 20px;
    margin-top: 12px;
}
.asaas-polling-indicator .spinner-border {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

/* Responsive */
@media (max-width: 576px) {
    .asaas-payment-tabs .nav-link { font-size: 11px; padding: 6px 10px; }
    .asaas-tab-content { padding: 14px; }
    .asaas-cc-card-preview { padding: 14px; min-height: 100px; }
    .asaas-cc-card-number { font-size: 15px; }
}

/* =========================================================
 * ASAAS Method Selection Cards
 * ========================================================= */
.asaas-method-cards {
    display: flex;
    flex-direction: row;
    gap: 12px;
}
.asaas-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 14px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    flex: 1;
    min-width: 0;
}
.asaas-method-card:hover {
    border-color: #667eea;
    background: #f8f7ff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
}
.asaas-method-card:active {
    transform: translateY(0);
    box-shadow: none;
}
.asaas-method-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
    background: #eef2ff;
    color: #667eea;
}
.asaas-method-card-icon.pix {
    background: #ecfdf5;
    color: #059669;
}
.asaas-method-card-icon.boleto {
    background: #fffbeb;
    color: #d97706;
}
.asaas-method-card-icon.pix-static {
    background: #f0fdf4;
    color: #16a34a;
}
.asaas-method-card-icon.credit {
    background: #ecfdf5;
    color: #059669;
}
.asaas-method-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.asaas-method-card-info strong {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}
.asaas-method-card-info small {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}
.asaas-method-card-arrow {
    display: none;
}

@media (max-width: 576px) {
    .asaas-method-cards { flex-direction: column; }
    .asaas-method-card { flex-direction: row; padding: 12px 14px; gap: 10px; text-align: left; }
    .asaas-method-card-info { align-items: flex-start; }
    .asaas-method-card-icon { width: 38px; height: 38px; font-size: 16px; }
    .asaas-method-card-info strong { font-size: 13px; }
    .asaas-method-card-arrow { display: inline; }
}

/* ============================
   Bulk Action Bar - Supplier Orders
   ============================ */
.bulk-action-bar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.order-card-header-line .bulk-order-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid #94a3b8;
    margin: 0;
    flex-shrink: 0;
}
.order-card-header-line .bulk-order-check:checked {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
}

.order-card:has(.bulk-order-check:checked) {
    outline: 2px solid #0ea5e9;
    outline-offset: -2px;
    background: rgba(14, 165, 233, 0.03);
}

/* =========================================================
   PAGINATION
   ========================================================= */

/* Melhorar contraste da página ativa */
.pagination .page-item.active .page-link {
    background-color: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.pagination .page-link {
    color: #475569;
    border-color: #e2e8f0;
}

.pagination .page-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #fff;
    border-color: #e2e8f0;
}

/* Republish error alert - prevent overflow */
#pub-error-alert {
    word-break: break-word;
    overflow-wrap: break-word;
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.85rem;
}

/* NF-e page styles */
.text-monospace {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

.user-select-all {
    user-select: all;
    cursor: pointer;
}

/* ==================== NF-e Enhanced Styles ==================== */

/* Status banner on show page */
.nfe-status-banner {
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nfe-status-banner .nfe-status-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.nfe-status-banner.status-authorized { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border: 1px solid #bbf7d0; }
.nfe-status-banner.status-authorized .nfe-status-icon { background: #22c55e; color: #fff; }
.nfe-status-banner.status-pending { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border: 1px solid #fde68a; }
.nfe-status-banner.status-pending .nfe-status-icon { background: #f59e0b; color: #fff; }
.nfe-status-banner.status-processing { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #bfdbfe; }
.nfe-status-banner.status-processing .nfe-status-icon { background: #3b82f6; color: #fff; }
.nfe-status-banner.status-rejected,
.nfe-status-banner.status-error { background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%); border: 1px solid #fca5a5; }
.nfe-status-banner.status-rejected .nfe-status-icon,
.nfe-status-banner.status-error .nfe-status-icon { background: #ef4444; color: #fff; }
.nfe-status-banner.status-canceled { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); border: 1px solid #cbd5e1; }
.nfe-status-banner.status-canceled .nfe-status-icon { background: #64748b; color: #fff; }

/* NF-e detail info pairs */
.nfe-detail-row {
    display: flex;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: baseline;
}
.nfe-detail-row:last-child { border-bottom: none; }
.nfe-detail-label {
    width: 160px;
    flex-shrink: 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}
.nfe-detail-value {
    flex: 1;
    color: #1e293b;
    font-size: 0.9rem;
}

/* NF-e timeline */
.nfe-timeline { position: relative; padding-left: 28px; }
.nfe-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e2e8f0;
}
.nfe-timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}
.nfe-timeline-item:last-child { padding-bottom: 0; }
.nfe-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
}
.nfe-timeline-item.event-cancel::before { background: #ef4444; box-shadow: 0 0 0 2px #fecaca; }
.nfe-timeline-item.event-cce::before { background: #f59e0b; box-shadow: 0 0 0 2px #fde68a; }

/* NF-e document table rows */
.nfe-doc-row { transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.nfe-doc-row:hover { background-color: #f8fafc !important; }
.nfe-doc-row td { vertical-align: middle; }

/* NF-e action button group */
.nfe-actions .btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* NF-e modal confirm area */
.nfe-confirm-zone {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    text-align: center;
    margin-top: 0.75rem;
}

/* NF-e chave copy container */
.nfe-chave-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    max-width: 100%;
}
.nfe-chave-container .chave-text {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.8rem;
    color: #475569;
    word-break: break-all;
    user-select: all;
}
.nfe-chave-container .btn-copy {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}
.nfe-chave-container .btn-copy:hover { color: #3b82f6; }

/* NF-e doc type badges */
.nfe-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.nfe-type-badge.type-nfe { background: #eff6ff; color: #1d4ed8; }
.nfe-type-badge.type-avulsa { background: #f5f3ff; color: #6d28d9; }
.nfe-type-badge.type-devolucao { background: #fff7ed; color: #c2410c; }

/* NF-e filter pills */
.nfe-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.nfe-filters .nfe-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
}
.nfe-filter-pill:hover { border-color: #94a3b8; color: #334155; background: #f8fafc; }
.nfe-filter-pill.active { border-color: transparent; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.nfe-filter-pill.active.filter-all { background: #3b82f6; }
.nfe-filter-pill.active.filter-authorized { background: #22c55e; }
.nfe-filter-pill.active.filter-pending { background: #f59e0b; }
.nfe-filter-pill.active.filter-rejected { background: #ef4444; }
.nfe-filter-pill.active.filter-error { background: #ef4444; }
.nfe-filter-pill.active.filter-canceled { background: #64748b; }
.nfe-filter-pill .filter-count {
    background: rgba(255,255,255,0.25);
    padding: 0.1rem 0.45rem;
    border-radius: 1rem;
    font-size: 0.72rem;
    min-width: 1.4rem;
    text-align: center;
}
.nfe-filter-pill:not(.active) .filter-count {
    background: #f1f5f9;
    color: #64748b;
}

/* NF-e tab improvements */
.nfe-tabs .nav-link {
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 500;
    color: #64748b;
    padding: 0.65rem 1.15rem;
    transition: color 0.2s, background 0.2s;
}
.nfe-tabs .nav-link:hover { color: #334155; background: #f8fafc; }
.nfe-tabs .nav-link.active { color: #1e40af; font-weight: 600; }
.nfe-tabs .nav-link .badge { font-size: 0.65rem; }

/* NF-e empty state */
.nfe-empty-state {
    padding: 3rem 1rem;
    text-align: center;
}
.nfe-empty-state .empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.nfe-empty-state .empty-icon i { font-size: 1.75rem; color: #94a3b8; }
.nfe-empty-state h6 { color: #475569; margin-bottom: 0.5rem; }
.nfe-empty-state p { color: #94a3b8; font-size: 0.875rem; margin-bottom: 0; }

/* NF-e show page action cards */
.nfe-action-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.nfe-action-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* NF-e Status Bar */
.nfe-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nfe-status-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nfe-status-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.nfe-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.nfe-status-indicator i {
    font-size: 1.4rem;
}
.nfe-status-indicator-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    color: #1e293b;
}
.nfe-status-indicator-sub {
    font-size: 0.775rem;
    color: #64748b;
    margin-top: 0.1rem;
}
.nfe-status-indicator.indicator-ready i { color: #22c55e; }
.nfe-status-indicator.indicator-pending i { color: #f59e0b; }
.nfe-sefaz-btn { font-size: 0.78rem; }

/* NF-e Action Tabs */
.nfe-tab-action-item { margin-left: 0.25rem; }
.nfe-tab-action {
    color: #2563eb !important;
    border-color: #bfdbfe !important;
    background: #eff6ff;
}
.nfe-tab-action:hover {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}
.nfe-tab-action.active {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
}
.nfe-tab-avulsa {
    color: #7c3aed !important;
    border-color: #ddd6fe !important;
    background: #f5f3ff;
}
.nfe-tab-avulsa:hover {
    background: #ede9fe !important;
    color: #6d28d9 !important;
}
.nfe-tab-avulsa.active {
    background: #7c3aed !important;
    color: #fff !important;
    border-color: #7c3aed !important;
}

/* NF-e Catalog Search Box */
.nfe-catalog-search-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
    border: 1px dashed #bfdbfe;
    border-radius: 0.625rem;
    padding: 0.875rem 1rem;
}
.nfe-catalog-search-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}
.nfe-catalog-search-label > i {
    font-size: 1.15rem;
    color: #3b82f6;
    flex-shrink: 0;
}

/* NF-e Avulsa itens table */
#avulsaItemsTable { table-layout: fixed; min-width: 860px; }
#avulsaItemsTable th, #avulsaItemsTable td { padding: 0.3rem 0.4rem; }
#avulsaItemsTable td:first-child { width: auto; min-width: 200px; }
#avulsaItemsTable .form-control-sm, #avulsaItemsTable .form-select-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.4rem;
    min-width: 0;
    width: 100%;
}

/* NF-e responsive table for mobile */
@media (max-width: 768px) {
    .nfe-detail-row { flex-direction: column; gap: 0.15rem; }
    .nfe-detail-label { width: auto; }
    .nfe-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .nfe-tabs .nav-item { white-space: nowrap; }
    .nfe-actions .btn { font-size: 0.8rem; padding: 0.4rem 0.75rem; }
    .nfe-status-bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .nfe-status-bar-actions { width: 100%; justify-content: flex-end; }
}

/* =========================================================
   SUPPORT PAGE
   ========================================================= */
.support-hero {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 50%, #f0fdf4 100%);
    border-radius: 1rem;
    margin-bottom: 1rem;
}
.support-hero-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}
.support-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}
.support-hero-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
}

/* Cards */
.support-card {
    position: relative;
    border-radius: 1rem;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #fff;
}
.support-card-community {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.support-card-contact {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}
.support-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1rem;
}
.support-card-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.support-card-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    color: #fff;
}
.support-card-btn {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}
.support-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}
.support-card-btn-community {
    background: #fff;
    color: #16a34a;
    font-weight: 700;
}
.support-card:hover .support-card-btn-community {
    background: #fff;
    color: #15803d;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}
.support-card-btn-pulse {
    animation: supportPulse 2s infinite;
}
@keyframes supportPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.support-card-btn-contact {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.support-card:hover .support-card-btn-contact {
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 576px) {
    .support-hero { padding: 2rem 1rem 1rem; }
    .support-hero-title { font-size: 1.3rem; }
    .support-card { padding: 2rem 1.5rem 1.5rem; min-height: auto; }
}

/* =====================================================
 * IMPERSONATE BANNER (Admin personificando seller)
 * ===================================================== */
.impersonate-banner {
    background: linear-gradient(90deg, #d63384, #e91e8c);
    color: #fff;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.4);
}
.impersonate-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.impersonate-banner i.fa-user-secret {
    font-size: 1.1rem;
}
.impersonate-banner-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.impersonate-banner-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}
/* Empurra o conteúdo abaixo da barra fixa */
body:has(.impersonate-banner) .app-wrapper {
    padding-top: 44px;
}
@media (max-width: 768px) {
    .impersonate-banner { font-size: 0.75rem; padding: 0.4rem 0.5rem; }
    .impersonate-banner-content { gap: 0.4rem; }
    body:has(.impersonate-banner) .app-wrapper { padding-top: 68px; }
}

/* ==================== NF-e Transportadores ==================== */
#carriers .table td, #carriers .table th { vertical-align: middle; }
#carrierFormCard { border-top: 3px solid var(--bs-success); }
#carriers .btn-outline-primary:hover, #carriers .btn-outline-danger:hover { color: #fff; }

/* ==================== Supplier Reports ==================== */
.reports-kpi-card { transition: box-shadow 0.15s; }
.reports-kpi-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important; }
.reports-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.reports-channel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* =========================================================
   SELLER LISTINGS — Card Layout (inspired by Bling/Tiny style)
   ========================================================= */

.listing-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.listing-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.listing-card:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.listing-card:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}

.listing-card:hover {
    background-color: #f8fafc;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Status-based left accent */
.listing-card-status-active { border-left: 3px solid #198754; }
.listing-card-status-pending { border-left: 3px solid #ffc107; }
.listing-card-status-paused { border-left: 3px solid #6c757d; }
.listing-card-status-closed { border-left: 3px solid #212529; }
.listing-card-status-review { border-left: 3px solid #0dcaf0; }
.listing-card-status-error { border-left: 3px solid #dc3545; }

/* Left section: image */
.listing-card-left {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.listing-card-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.listing-card-img-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.5rem;
}

/* Body section: title + meta + stats */
.listing-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.listing-card-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.listing-card-meta .badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25em 0.55em;
    border-radius: 4px;
}

.listing-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
    white-space: nowrap;
}

.listing-card-chip i {
    font-size: 0.65rem;
    opacity: 0.6;
}

.listing-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.listing-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}

.listing-card-stat i {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Right section: price + actions */
.listing-card-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 140px;
}

.listing-card-price-block {
    text-align: right;
}

.listing-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.listing-card-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.listing-card-actions .btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
    border-radius: 6px;
}

.listing-card-actions .dropdown-menu {
    font-size: 0.85rem;
    min-width: 200px;
}

.listing-card-actions .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.listing-card-actions .dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .listing-card {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.875rem;
    }

    .listing-card-left {
        width: 100%;
    }

    .listing-card-img {
        width: 64px;
        height: 64px;
    }

    .listing-card-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: unset;
    }

    .listing-card-stats {
        gap: 0.5rem;
    }
}

/* =========================================================
   PUBLISH MODAL — XL Horizontal Layout
   ========================================================= */

#publishModal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.pub-modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.pub-modal-header .modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.pub-modal-header .btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.pub-modal-header .btn-close:hover {
    opacity: 1;
}

/* Shopee variant of the publish modal header */
.shopee-modal-header {
    background: linear-gradient(135deg, #c13516 0%, #EE4D2D 100%);
    color: #fff;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.shopee-modal-header .modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.shopee-modal-header .btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.shopee-modal-header .btn-close:hover {
    opacity: 1;
}

/* 2-column grid */
.pub-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.pub-modal-col-left {
    padding: 1.25rem 1.5rem;
    border-right: 1px solid #e9ecef;
}

.pub-modal-col-right {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
}

/* Compact labels */
.pub-label-sm {
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
    color: #475569;
}

#publishModal .form-label {
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
}

#publishModal .form-control-sm,
#publishModal .form-select-sm {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
}

/* Images grid inside modal */
.pub-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Footer */
#publishModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    background: #fff;
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 992px) {
    .pub-modal-grid {
        grid-template-columns: 1fr;
    }

    .pub-modal-col-left {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .pub-modal-col-right {
        background: #fff;
    }
}
/* ===== Shopee Listings Table ===== */
.shopee-listings-table thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c757d;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}
.shopee-listings-table tbody tr {
    transition: background-color .15s ease;
}
.shopee-listings-table tbody tr:hover {
    background-color: #fafafa;
}
.shopee-listings-table tbody td {
    padding-top: .85rem;
    padding-bottom: .85rem;
    vertical-align: middle;
}
.shopee-listings-table .badge.bg-light {
    font-weight: 500;
    font-size: .72rem;
    padding: .35em .55em;
}
.shopee-listings-table .btn-group .btn {
    white-space: nowrap;
}

/* =========================================================
   SUPPLIER REPORTS — CARDS DE RELATÓRIOS
   ========================================================= */

.report-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.report-card .card-body {
    position: relative;
}

.report-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.report-card h5 {
    font-size: 1.1rem;
    color: #1e293b;
}

.report-card p {
    line-height: 1.6;
}

.report-card .badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
}

/* Gradientes para ícones */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #fff;
}

/* Footer de "Em breve" */
.report-card .card-footer {
    font-size: 0.85rem;
}

/* =====================================================
   SISTEMA DE NOTIFICAÇÕES — dropdown topbar
   ===================================================== */

.topbar-notif-wrapper {
    position: relative;
}

/* Dropdown container */
.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
}

.notif-dropdown.show {
    display: block;
}

/* Header do dropdown */
.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

/* Lista de itens */
.notif-dropdown-body {
    max-height: 360px;
    overflow-y: auto;
}

/* Item individual */
.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background .15s;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #f8fafc;
}

.notif-item-title {
    font-size: .875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.notif-item-body {
    font-size: .8rem;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    font-size: .72rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Mensagem vazia */
.notif-empty {
    padding: 20px 16px;
}

/* Footer do dropdown */
.notif-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    background: #f8fafc;
}

.notif-dropdown-footer a {
    font-size: .82rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.notif-dropdown-footer a:hover {
    text-decoration: underline;
}

/* Página /notifications — item não lido */
.notif-unread {
    background: #f0f4ff;
    border-left: 3px solid #6366f1;
}

.notif-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.notif-icon-unread {
    background: #6366f1;
    color: #fff;
}

.notif-icon-read {
    background: #e2e8f0;
    color: #94a3b8;
}

/* ── Notificações — página redesenhada ───────────────────────────────────── */
.notif-page-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease;
}

.notif-page-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,.10) !important;
}

.notif-page-item.notif-page-unread {
    background: #f8f9ff;
}

/* Barra de acento lateral */
.notif-page-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

/* Círculo de ícone colorido */
.notif-page-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-page-title {
    font-size: .95rem;
    line-height: 1.3;
}

.notif-page-body {
    font-size: .83rem;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-page-time {
    font-size: .73rem;
    color: #94a3b8;
    white-space: nowrap;
}

.notif-page-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
    display: inline-block;
}

.notif-page-badge {
    font-size: .68rem;
    font-weight: 500;
    padding: .25em .55em;
    border-radius: 4px;
}

/* ── Modal ícone ─────────────────────────────────────────────────────────── */
.notif-modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ── Product preview no modal ───────────────────────────────────────────── */
.notif-product-preview {
    display: flex;
    gap: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    align-items: flex-start;
}

.notif-product-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.notif-product-img-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-product-info {
    flex: 1;
    min-width: 0;
}

.notif-product-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: .45rem .75rem;
    min-width: 90px;
}

.notif-product-stat-label {
    font-size: .7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1;
    margin-bottom: .2rem;
}

.notif-product-stat-value {
    font-size: .95rem;
    font-weight: 600;
    color: #1e293b;
}

@media (max-width: 480px) {
    .notif-product-preview {
        flex-direction: column;
    }
    .notif-product-img,
    .notif-product-img-placeholder {
        width: 100%;
        height: 160px;
    }
}

/* =========================================================
   PROFILE SECURITY — MFA & Dispositivos Confiáveis
   ========================================================= */

/* Status icon circle */
.security-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.security-status-icon--inactive {
    background: #f1f5f9;
    color: #94a3b8;
}
.security-status-icon--active {
    background: #dcfce7;
    color: #16a34a;
}
.security-status-icon--enforced {
    background: #fef9c3;
    color: #ca8a04;
}

/* How-it-works steps */
.security-steps {
    display: flex;
    gap: 0;
    position: relative;
}
.security-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(16.66% + 8px);
    right: calc(16.66% + 8px);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.security-step {
    flex: 1;
    text-align: center;
    padding: 0 8px;
    position: relative;
    z-index: 1;
}
.security-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0 auto 10px;
    box-shadow: 0 2px 8px rgba(102,126,234,.3);
}

/* Trusted device list */
.security-device-row td {
    vertical-align: middle;
}
.security-device-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #475569;
    flex-shrink: 0;
}

/* Security checklist in sidebar */
.security-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}
.security-check-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.security-check-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.security-check-dot--ok  { background: #dcfce7; color: #16a34a; }
.security-check-dot--warn { background: #fef9c3; color: #ca8a04; }
.security-check-dot--off  { background: #fee2e2; color: #dc2626; }

@media (max-width: 767px) {
    .security-steps::before { display: none; }
    .security-steps { flex-direction: column; gap: 16px; }
    .security-step { display: flex; align-items: flex-start; text-align: left; gap: 12px; }
    .security-step-num { margin: 0; flex-shrink: 0; width: 32px; height: 32px; font-size: 0.8rem; }
    .security-step-label { flex: 1; }
}

/* ========================================
   SELLER PRODUCT KITS - WIZARD STEPPER
   ======================================== */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 20px;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-number {
    background: #0d6efd;
    color: white;
}

.wizard-step.completed .wizard-step-number {
    background: #198754;
    color: white;
}

.wizard-step.completed .wizard-step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.wizard-step-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    transition: color 0.3s ease;
}

.wizard-step.active .wizard-step-label {
    color: #0d6efd;
    font-weight: 600;
}

.wizard-step.completed .wizard-step-label {
    color: #198754;
}

/* Kit badges and cards */
.kit-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.kit-product-item {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.kit-product-item:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
}

/* Responsive wizard */
@media (max-width: 767px) {
    .wizard-steps::before {
        display: none;
    }
    
    .wizard-steps {
        flex-direction: column;
        gap: 16px;
        padding: 0;
    }
    
    .wizard-step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .wizard-step-number {
        margin-bottom: 0;
        margin-right: 12px;
    }
    
    .wizard-step-label {
        text-align: left;
        flex: 1;
    }
}

/* ========================================
   SELLER PRODUCT KITS - UX IMPROVEMENTS
   ======================================== */

/* Product item card in wizard */
.kit-product-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.kit-product-row:hover {
    border-color: #86b7fe;
    background: #f8f9ff;
}
.kit-product-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}
.kit-product-thumb-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #adb5bd;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}
.kit-product-info {
    flex: 1;
    min-width: 0;
}
.kit-product-info .name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kit-product-info .meta {
    font-size: 0.73rem;
    color: #6c757d;
    margin-top: 1px;
}
.kit-qty-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.kit-qty-control .qty-label {
    font-size: 0.65rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.kit-qty-control input {
    width: 60px;
    text-align: center;
}
.kit-subtotal-col {
    text-align: right;
    min-width: 80px;
}
.kit-subtotal-col .unit-price {
    font-size: 0.7rem;
    color: #6c757d;
}
.kit-subtotal-col .total-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: #212529;
}

/* Kit stat cards (show page) */
.kit-stat-card {
    border-radius: 8px;
    padding: 12px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}
.kit-stat-card .stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}
.kit-stat-card .stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}
.kit-stat-card .stat-sub {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Section heading — catálogo público style */
.kit-section-heading {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Kit review step header */
.kit-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}
.kit-review-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 18px;
    border-right: 1px solid #e9ecef;
    flex: 1;
    min-width: 0;
}
.kit-review-meta-item:last-child {
    border-right: none;
}
.kit-review-value {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stock indicator in index table */
.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}
.stock-indicator.zero { color: #dc3545; }
.stock-indicator.low  { color: #fd7e14; }
.stock-indicator.ok   { color: #198754; }
