/*
 * Woshop 2.0 — Design System Premium
 * Identidade visual exclusiva WoShop.
 * Proibido CSS inline. Proibido duplicar componentes.
 *
 * Estrutura:
 *  1. Design Tokens (cores, tipografia, sombras, radii)
 *  2. Base / Reset
 *  3. Layout (app, sidebar, main, topbar)
 *  4. Sidebar (brand, nav, menu, submenu, footer)
 *  5. Topbar (search, actions, notifications, account)
 *  6. Cards & Stats
 *  7. Tables
 *  8. Buttons & Forms
 *  9. Badges & Status
 * 10. Timeline
 * 11. Empty States & Placeholders
 * 12. Utilities
 * 13. Responsive
 * 14. Animations & Accessibility
 */

/* =================================================================
   1. Design Tokens
   ================================================================= */
:root {
    /* Primary — Roxo WoShop */
    --ws-primary:        #673DE6;
    --ws-primary-dark:   #5025C7;
    --ws-primary-darker: #3B13A0;
    --ws-primary-deep:   #4C1D95;
    --ws-primary-light:  #A78BFA;
    --ws-primary-lighter:#C4B5FD;
    --ws-primary-bg:     #F5F3FF;
    --ws-primary-glow:   rgba(103, 61, 230, .15);

    /* Accent — Verde menta */
    --ws-accent:         #10B981;
    --ws-accent-dark:    #059669;
    --ws-accent-light:   #D1FAE5;
    --ws-accent-text:    #064E3B;

    /* Neutros —base cinza quente */
    --ws-white:          #FFFFFF;
    --ws-gray-50:        #FAFAFA;
    --ws-gray-100:       #F4F4F5;
    --ws-gray-200:       #E4E4E7;
    --ws-gray-300:       #D4D4D8;
    --ws-gray-400:       #A1A1AA;
    --ws-gray-500:       #71717A;
    --ws-gray-600:       #52525B;
    --ws-gray-700:       #3F3F46;
    --ws-gray-800:       #27272A;
    --ws-gray-900:       #111114;
    --ws-black:          #111114;

    /* Status */
    --ws-success:        #10B981;
    --ws-success-bg:     #D1FAE5;
    --ws-success-text:   #065F46;
    --ws-warning:        #F59E0B;
    --ws-warning-bg:     #FEF3C7;
    --ws-warning-text:   #92400E;
    --ws-danger:         #EF4444;
    --ws-danger-bg:      #FEE2E2;
    --ws-danger-text:    #991B1B;
    --ws-info:           #3B82F6;
    --ws-info-bg:        #DBEAFE;
    --ws-info-text:      #1E40AF;

    /* Tipografia */
    --ws-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ws-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Sombras */
    --ws-shadow-xs:   0 1px 2px rgba(9, 9, 11, .04);
    --ws-shadow-sm:   0 1px 3px rgba(9, 9, 11, .06), 0 1px 2px rgba(9, 9, 11, .04);
    --ws-shadow-md:   0 4px 6px rgba(9, 9, 11, .06), 0 2px 4px rgba(9, 9, 11, .04);
    --ws-shadow-lg:   0 10px 15px rgba(9, 9, 11, .08), 0 4px 6px rgba(9, 9, 11, .04);
    --ws-shadow-xl:   0 20px 25px rgba(9, 9, 11, .10), 0 8px 10px rgba(9, 9, 11, .04);
    --ws-shadow-card: 0 2px 6px 0 rgba(67, 89, 113, 0.12);

    /* Radii */
    --ws-radius-sm:  6px;
    --ws-radius-md:  8px;
    --ws-radius-card: 0.5rem;
    --ws-radius-lg:  12px;
    --ws-radius-xl:  16px;
    --ws-radius-2xl: 20px;
    --ws-radius-full: 9999px;

    /* Layout */
    --wos-sidebar-w: 280px;
    --wos-sidebar-bg: var(--ws-white);
    --wos-sidebar-border: var(--ws-gray-200);
    --wos-sidebar-text: var(--ws-gray-600);
    --wos-sidebar-active: var(--ws-primary);
    --wos-sidebar-active-bg: var(--ws-primary-bg);
    --wos-content-bg: var(--ws-gray-50);
    --wos-card-bg: var(--ws-white);
    --wos-card-border: var(--ws-gray-200);
    --wos-topbar-h: 64px;

    /* Bootstrap override */
    --bs-primary: var(--ws-primary);
    --bs-primary-rgb: 103, 61, 230;
    --bs-body-color: var(--ws-gray-800);
    --bs-body-font-family: var(--ws-font);
    --bs-body-font-size: .9375rem;
}

/* =================================================================
   2. Base / Reset
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--ws-font);
    font-size: var(--bs-body-font-size);
    background: var(--wos-content-bg);
    color: var(--ws-gray-800);
    line-height: 1.55;
    margin: 0;
    min-height: 100%;
}
::selection { background: var(--ws-primary-glow); color: var(--ws-primary-dark); }
a { color: var(--ws-primary); text-decoration: none; }
a:hover { color: var(--ws-primary-dark); }

/* =================================================================
   3. Layout
   ================================================================= */
.wos-app { display: flex; min-height: 100vh; position: relative; }
.wos-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: var(--wos-sidebar-w);
    transition: margin-left .2s ease;
}
.wos-content {
    flex: 1;
    padding: 1.5rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* =================================================================
   4. Sidebar
   ================================================================= */
.wos-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--wos-sidebar-w);
    background: var(--wos-sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform .2s ease;
}
@media (max-width: 991.98px) {
    .wos-sidebar { transform: translateX(-100%); }
    .wos-sidebar.is-open { transform: translateX(0); box-shadow: 0 0 40px rgba(9, 9, 11, .18); }
}
.wos-sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(9, 9, 11, .45);
    z-index: 1039;
}
.wos-sidebar-overlay.is-open { display: block; }

/* Brand */
.wos-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 64px;
    padding: 0 1.25rem;
    text-decoration: none;
}
.wos-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: var(--ws-radius-md);
    background: linear-gradient(135deg, var(--ws-primary) 0%, var(--ws-primary-dark) 100%);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}
.wos-brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ws-gray-900);
}
.wos-brand-logo { height: 28px; width: auto; }

/* Admin badge */
.wos-admin-brand-badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--ws-radius-full);
    padding: .15rem .5rem;
    background: var(--ws-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-left: auto;
}

/* Nav */
.wos-nav {
    flex: 1;
    overflow-y: auto;
    padding: .5rem 0 .75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--ws-gray-300) transparent;
}
.wos-nav::-webkit-scrollbar { width: 4px; }
.wos-nav::-webkit-scrollbar-thumb { background: var(--ws-gray-300); border-radius: 2px; }

.wos-menu { padding: 0 .75rem; list-style: none; margin: 0; }
.wos-menu-header {
    display: block;
    padding: .75rem .75rem .35rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ws-gray-400);
    list-style: none;
}

/* Menu items */
.wos-menu-item,
.wos-menu-group {
    list-style: none;
    margin-bottom: 1px;
}
.wos-menu-toggle,
.wos-menu-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .55rem .75rem;
    border: 0;
    border-radius: var(--ws-radius-md);
    background: transparent;
    color: var(--ws-gray-600);
    font-size: .875rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s ease;
    position: relative;
    min-height: 38px;
    line-height: 1.3;
}
.wos-menu-link.wos-menu-root-link {
    font-weight: 600;
}
.wos-menu-toggle:hover,
.wos-menu-link:hover {
    background: var(--ws-primary-bg);
    color: var(--ws-primary);
}
.wos-menu-toggle:hover .wos-menu-icon,
.wos-menu-link:hover .wos-menu-icon {
    color: var(--ws-primary);
}

.wos-menu-icon {
    font-size: 1.1rem;
    color: var(--ws-gray-400);
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    transition: color .15s ease;
}
.wos-menu-chevron {
    margin-left: auto;
    color: var(--ws-gray-400);
    font-size: .7rem;
    transition: transform .2s ease;
}
.wos-menu-group.is-open > .wos-menu-toggle .wos-menu-chevron {
    transform: rotate(180deg);
}

/* Active state */
.wos-menu-item.active > .wos-menu-link {
    background: var(--ws-primary-bg);
    color: var(--ws-primary);
    font-weight: 600;
}
.wos-menu-item.active > .wos-menu-link .wos-menu-icon {
    color: var(--ws-primary);
}
.wos-menu-item.active > .wos-menu-link::before {
    content: '';
    position: absolute;
    left: -.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 var(--ws-radius-sm) var(--ws-radius-sm) 0;
    background: var(--ws-primary);
}

/* Submenu */
.wos-submenu {
    margin: .15rem 0 .25rem;
    padding-left: 2rem;
    list-style: none;
}
.wos-submenu .wos-menu-link {
    padding: .4rem .75rem;
    min-height: 34px;
    font-size: .85rem;
}
.wos-submenu .wos-menu-link .wos-menu-icon { display: none; }
.wos-submenu .wos-menu-link::before {
    content: '';
    position: absolute;
    left: .15rem;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ws-gray-300);
}
.wos-submenu .wos-menu-item.active > .wos-menu-link {
    background: transparent;
}
.wos-submenu .wos-menu-item.active > .wos-menu-link::before {
    background: var(--ws-primary);
    box-shadow: 0 0 0 3px var(--ws-primary-glow);
    width: 6px;
    height: 6px;
}
.wos-menu-link .badge {
    font-size: .65rem;
    padding: .15em .45em;
    font-weight: 600;
    margin-left: auto;
}

/* Sidebar footer */
.wos-sidebar-foot {
    padding: .85rem 1rem;
}

/* =================================================================
   5. Topbar
   ================================================================= */
.wos-topbar {
    background: var(--ws-white);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--wos-topbar-h);
}
.wos-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-md);
    background: var(--ws-white);
    color: var(--ws-gray-600);
    cursor: pointer;
    transition: all .15s ease;
    padding: 0;
}
.wos-sidebar-toggle:hover {
    background: var(--ws-gray-100);
    color: var(--ws-primary);
}

/* Search */
.wos-top-search {
    display: flex;
    align-items: stretch;
    width: min(400px, 32vw);
    height: 38px;
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-lg);
    background: var(--ws-gray-50);
    transition: border-color .15s, box-shadow .15s;
}
.wos-top-search:focus-within {
    border-color: var(--ws-primary);
    box-shadow: 0 0 0 3px var(--ws-primary-glow);
    background: var(--ws-white);
}
.wos-search-type {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.wos-top-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 .85rem;
    background: transparent;
    color: var(--ws-gray-800);
    font-size: .85rem;
}
.wos-top-search input::placeholder { color: var(--ws-gray-400); }
.wos-top-search button {
    width: 38px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--ws-gray-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .15s;
}
.wos-top-search button:hover { color: var(--ws-primary); }

/* Top actions */
.wos-top-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
}
.wos-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: var(--ws-radius-md);
    background: transparent;
    color: var(--ws-gray-500);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
}
.wos-icon-btn:hover {
    background: var(--ws-gray-100);
    color: var(--ws-gray-700);
}
.wos-counter {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    border-radius: var(--ws-radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    font-weight: 800;
    border: 2px solid var(--ws-white);
    padding: 0 3px;
}
.wos-counter-danger { background: var(--ws-danger); color: #fff; }

/* Account button */
.wos-account-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .2rem .35rem .2rem .2rem;
    border: 0;
    background: transparent;
    border-radius: var(--ws-radius-full);
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}
.wos-account-btn:hover { background: var(--ws-gray-100); }
.wos-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ws-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .78rem;
    flex-shrink: 0;
}
.wos-avatar-lg {
    width: 36px;
    height: 36px;
    font-size: .85rem;
    font-weight: 700;
}
.wos-account-copy {
    max-width: 140px;
    text-align: left;
    line-height: 1.2;
}
.wos-account-copy strong,
.wos-account-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wos-account-copy strong {
    color: var(--ws-gray-700);
    font-size: .82rem;
    font-weight: 600;
}
.wos-account-copy small {
    color: var(--ws-gray-500);
    font-size: .75rem;
}

/* Build pill */
.wos-build-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 36px;
    padding: 0 1rem;
    border-radius: var(--ws-radius-lg);
    background: var(--ws-primary-bg);
    color: var(--ws-primary-dark);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.wos-build-pill i { font-size: 1rem; }
.wos-build-pill:hover {
    background: var(--ws-primary);
    color: #fff;
}
.wos-top-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 0;
    background: transparent;
    color: var(--ws-gray-600);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* Admin top title */
.wos-admin-top-title span {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ws-gray-400);
    line-height: 1.1;
}
.wos-admin-top-title strong {
    color: var(--ws-gray-900);
    font-size: .95rem;
    font-weight: 700;
}

/* Dropdown menus */
.wos-help-menu,
.wos-notification-menu,
.wos-account-menu {
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-xl);
    box-shadow: var(--ws-shadow-xl);
    padding: .65rem;
    margin-top: .35rem !important;
}
.wos-help-menu { width: 280px; }
.wos-help-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: var(--ws-radius-md);
    color: var(--ws-gray-600);
    font-weight: 500;
    padding: .5rem .65rem;
    font-size: .85rem;
    transition: all .1s;
}
.wos-help-menu .dropdown-item i {
    width: 20px;
    color: var(--ws-gray-400);
    font-size: 1.05rem;
}
.wos-help-menu .dropdown-item:hover {
    background: var(--ws-primary-bg);
    color: var(--ws-primary);
}
.wos-help-menu .dropdown-item:hover i { color: var(--ws-primary); }

.wos-menu-section-title {
    display: block;
    padding: .5rem .65rem .3rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ws-gray-400);
}
.wos-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ws-success);
    display: inline-block;
    margin-left: auto;
}

/* Notification menu */
.wos-notification-menu { width: 360px; padding: 0; overflow: hidden; }
.wos-notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem .5rem;
}
.wos-notification-head h2 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--ws-gray-900);
    margin: 0;
}
.wos-notification-head button { border: 0; background: transparent; color: var(--ws-gray-500); cursor: pointer; }
.wos-notification-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--ws-gray-200);
}
.wos-notification-tabs button {
    border: 0;
    background: transparent;
    padding: .65rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ws-gray-500);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
}
.wos-notification-tabs .is-active {
    color: var(--ws-primary);
    border-bottom-color: var(--ws-primary);
}
.wos-notification-actions {
    display: flex;
    justify-content: flex-end;
    padding: .55rem 1.15rem .25rem;
}
.wos-notification-actions button {
    border: 0;
    background: transparent;
    color: var(--ws-gray-500);
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s;
}
.wos-notification-actions button:hover { color: var(--ws-primary); }
.wos-notification-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: .75rem;
    padding: .85rem 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: background .1s;
}
.wos-notification-item:hover { background: var(--ws-gray-50); }
.wos-notification-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--ws-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--ws-primary-bg);
    color: var(--ws-primary);
}
.wos-notification-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}
.wos-notification-title strong {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ws-gray-800);
}
.wos-notification-title small {
    font-size: .68rem;
    color: var(--ws-gray-400);
    white-space: nowrap;
}
.wos-notification-item p {
    font-size: .78rem;
    color: var(--ws-gray-500);
    margin: .15rem 0 0;
}
.wos-notification-item a {
    display: inline-flex;
    border-radius: var(--ws-radius-md);
    background: var(--ws-primary-bg);
    color: var(--ws-primary-dark);
    padding: .35rem .65rem;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 600;
    margin-top: .35rem;
    transition: all .15s;
}
.wos-notification-item a:hover {
    background: var(--ws-primary);
    color: #fff;
}
.wos-notification-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--ws-gray-400);
    font-size: .85rem;
}

/* Account menu */
.wos-account-menu { width: 260px; padding: 0; overflow: hidden; }
.wos-view-store {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: .75rem .75rem .5rem;
    padding: .75rem 1rem;
    border-radius: var(--ws-radius-lg);
    background: var(--ws-gray-900);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: background .15s;
}
.wos-view-store:hover { background: var(--ws-primary-dark); color: #fff; }
.wos-account-block {
    border-top: 1px solid var(--ws-gray-200);
    padding: .75rem;
}
.wos-account-block .wos-menu-section-title { padding: 0 0 .25rem; }
.wos-account-block strong { display: block; font-size: .85rem; color: var(--ws-gray-900); }
.wos-account-block small { display: block; font-size: .78rem; color: var(--ws-gray-500); }
.wos-account-block a,
.wos-account-block button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ws-gray-600);
    text-align: left;
    text-decoration: none;
    font-weight: 500;
    font-size: .82rem;
    padding: .25rem 0;
    cursor: pointer;
    transition: color .15s;
}
.wos-account-block a:hover,
.wos-account-block button:hover { color: var(--ws-primary); }

/* =================================================================
   6. Cards & Stats
   ================================================================= */
.wos-page-head {
    margin-bottom: 1.5rem;
}
.wos-page-head h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ws-gray-900);
    margin: 0 0 .2rem;
    letter-spacing: -.02em;
}
.wos-page-head p {
    color: var(--ws-gray-500);
    margin: 0;
    font-size: .9rem;
}
.wos-page-head .breadcrumb {
    margin-bottom: .35rem;
    font-size: .8rem;
}
.wos-page-head .breadcrumb-item,
.wos-page-head .breadcrumb-item a {
    color: var(--ws-gray-400);
    text-decoration: none;
}
.wos-page-head .breadcrumb-item.active {
    color: var(--ws-gray-700);
    font-weight: 600;
}
.breadcrumb { font-size: .8rem; }
.breadcrumb a { color: var(--ws-gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--ws-primary); }

.wos-card {
    background: var(--wos-card-bg);
    border: none;
    border-radius: var(--ws-radius-card);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--ws-shadow-card);
    transition: box-shadow .15s;
}
.wos-card:hover { box-shadow: 0 2px 8px 0 rgba(67, 89, 113, 0.2); }

/* Stats */
.wos-stat {
    background: var(--wos-card-bg);
    border: none;
    border-radius: var(--ws-radius-card);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    height: 100%;
    box-shadow: var(--ws-shadow-card);
}
.wos-stat-v {
    background: var(--wos-card-bg);
    border: none;
    border-radius: var(--ws-radius-card);
    padding: 1.25rem 1.5rem;
    height: 100%;
    box-shadow: var(--ws-shadow-card);
}
.wos-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--ws-radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.wos-stat-label {
    font-size: .78rem;
    color: var(--ws-gray-500);
    font-weight: 500;
}
.wos-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ws-gray-900);
    line-height: 1.1;
    letter-spacing: -.02em;
}

/* =================================================================
   7. Tables
   ================================================================= */
.table {
    --bs-table-border-color: var(--ws-gray-200);
    --bs-table-color: var(--ws-gray-700);
    color: var(--ws-gray-700);
    margin-bottom: 0;
    font-size: .875rem;
}
.table > :not(caption) > * > * {
    padding: .7rem .85rem;
    vertical-align: middle;
}
.table thead th {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ws-gray-400);
    background: var(--ws-white);
    padding: .65rem .85rem;
}
.table tbody tr {
    border-bottom: 1px solid var(--ws-gray-100);
    transition: background .1s;
}
.table tbody tr:hover { background: var(--ws-gray-50); }
.table tbody tr:last-child { border-bottom: none; }
.table-light { background-color: var(--ws-gray-50); }
.table .wos-thumb {
    width: 36px;
    height: 36px;
    border-radius: var(--ws-radius-md);
    background: var(--ws-gray-100);
    border: 1px solid var(--ws-gray-200);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.table .wos-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wos-content .table-responsive {
    border-radius: 0;
    border: none;
}
.wos-content thead th { position: sticky; top: 0; z-index: 1; background: var(--ws-white); }
.wos-card.p-0 .table-responsive { margin: 0; }
.wos-card.p-0 .table { border: none; }
.wos-card.p-0 .table > :not(caption) > * > * { padding: .7rem .85rem; }
.wos-card.p-0 .table tbody tr:last-child { border-bottom: none; }
.wos-card.p-0 .table thead th:first-child { padding-left: 1.5rem; }
.wos-card.p-0 .table tbody td:first-child { padding-left: 1.5rem; }
.wos-card.p-0 .table thead th:last-child { padding-right: 1.5rem; }
.wos-card.p-0 .table tbody td:last-child { padding-right: 1.5rem; }

/* Stack table (mobile) */
@media (max-width: 575.98px) {
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
    .table-stack tr {
        border: 1px solid var(--ws-gray-200);
        border-radius: var(--ws-radius-lg);
        padding: .65rem;
        margin-bottom: .65rem;
    }
    .table-stack td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .35rem .15rem;
        border: none;
    }
    .table-stack td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--ws-gray-500);
        font-size: .75rem;
        margin-right: .75rem;
    }
}

/* Pagination */
.pagination {
    margin-top: 1rem;
    gap: .15rem;
}
.pagination .page-link {
    color: var(--ws-gray-600);
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-md);
    padding: .4rem .7rem;
    font-size: .82rem;
    transition: all .1s;
}
.pagination .page-link:hover {
    border-color: var(--ws-primary);
    color: var(--ws-primary);
    background: var(--ws-primary-bg);
}
.pagination .page-item.active .page-link {
    background: var(--ws-primary);
    border-color: var(--ws-primary);
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    opacity: .4;
    pointer-events: none;
}

/* =================================================================
   8. Buttons & Forms
   ================================================================= */
.btn {
    border-radius: var(--ws-radius-md);
    font-weight: 600;
    padding: .5rem 1rem;
    font-size: .875rem;
    transition: all .15s ease;
    line-height: 1.4;
}
.btn-sm { padding: .35rem .7rem; font-size: .8rem; border-radius: var(--ws-radius-sm); }
.btn-lg { padding: .65rem 1.25rem; font-size: 1rem; }

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ws-primary);
    --bs-btn-border-color: var(--ws-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ws-primary-dark);
    --bs-btn-hover-border-color: var(--ws-primary-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ws-primary-darker);
    --bs-btn-active-border-color: var(--ws-primary-darker);
    box-shadow: 0 1px 2px rgba(103, 61, 230, .15);
}
.btn-primary:hover { box-shadow: 0 4px 12px rgba(103, 61, 230, .25); transform: translateY(-1px); }

.btn-outline-primary {
    --bs-btn-color: var(--ws-primary);
    --bs-btn-border-color: var(--ws-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ws-primary);
    --bs-btn-hover-border-color: var(--ws-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ws-primary-dark);
    --bs-btn-active-border-color: var(--ws-primary-dark);
}

.btn-accent {
    --bs-btn-color: var(--ws-accent-text);
    --bs-btn-bg: var(--ws-accent);
    --bs-btn-border-color: var(--ws-accent);
    --bs-btn-hover-color: var(--ws-accent-text);
    --bs-btn-hover-bg: var(--ws-accent-dark);
    --bs-btn-hover-border-color: var(--ws-accent-dark);
    font-weight: 700;
}
.btn-accent:hover { box-shadow: 0 4px 12px rgba(16, 185, 129, .25); transform: translateY(-1px); }

.btn-light {
    --bs-btn-bg: var(--ws-white);
    --bs-btn-border-color: var(--ws-gray-200);
    --bs-btn-hover-bg: var(--ws-gray-100);
    --bs-btn-hover-border-color: var(--ws-gray-300);
}

.btn-ghost {
    border: 0;
    background: transparent;
    color: var(--ws-gray-600);
}
.btn-ghost:hover {
    background: var(--ws-gray-100);
    color: var(--ws-gray-800);
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ws-danger);
    --bs-btn-border-color: var(--ws-danger);
    --bs-btn-hover-bg: #DC2626;
    --bs-btn-hover-border-color: #DC2626;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-md);
    padding: .5rem .75rem;
    font-size: .875rem;
    color: var(--ws-gray-800);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ws-primary);
    box-shadow: 0 0 0 3px var(--ws-primary-glow);
}
.form-control::placeholder { color: var(--ws-gray-400); }
.form-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ws-gray-700);
    margin-bottom: .35rem;
}
.form-text { font-size: .78rem; color: var(--ws-gray-500); }
.form-section-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--ws-gray-900);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--ws-gray-200);
}

/* ==============================
   Choices.js — Custom Selects
   ============================== */
.choices {
    margin-bottom: 0 !important;
}
.choices .choices__inner {
    min-height: 38px !important;
    padding: .375rem .75rem !important;
    background: var(--ws-white) !important;
    border: 1px solid var(--ws-gray-200) !important;
    border-radius: var(--ws-radius-md) !important;
    font-size: .875rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    transition: border-color .15s, box-shadow .15s;
}
.choices.is-focused .choices__inner,
.choices__inner.is-focused {
    border-color: var(--ws-primary) !important;
    box-shadow: 0 0 0 3px var(--ws-primary-glow) !important;
}
.choices.is-invalid .choices__inner {
    border-color: var(--ws-danger) !important;
}
.choices.is-invalid.is-focused .choices__inner {
    box-shadow: 0 0 0 3px rgba(234, 57, 57, .25) !important;
}
.choices:has(.form-select-sm) .choices__inner {
    min-height: 30px !important;
    padding: .25rem .5rem !important;
    font-size: .8rem !important;
}
.choices .choices__placeholder {
    color: var(--ws-gray-400) !important;
    opacity: 1 !important;
}
.choices .choices__item {
    color: var(--ws-gray-800) !important;
    font-size: .875rem !important;
}
.choices .choices__item--choice {
    padding: .5rem .75rem !important;
}
.choices .choices__item--choice.is-highlighted {
    background: var(--ws-primary-bg) !important;
    color: var(--ws-primary-dark) !important;
}
.choices .choices__item--choice.is-selected {
    background: var(--ws-primary) !important;
    color: #fff !important;
}
.choices .choices__list--dropdown {
    border: 1px solid var(--ws-gray-200) !important;
    border-radius: var(--ws-radius-md) !important;
    background: var(--ws-white) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.08) !important;
    z-index: 1050 !important;
}
.choices .choices__list--dropdown .choices__item--selectable {
    padding: .5rem .75rem !important;
}
.choices .choices__list--dropdown .choices__list {
    max-height: 220px !important;
}
.choices .choices__list--dropdown .choices__item--selectable:not(:last-child) {
    border-bottom: 1px solid var(--ws-gray-100) !important;
}
.choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: var(--ws-primary-bg) !important;
    color: var(--ws-primary-dark) !important;
}
.choices .choices__list--single {
    padding: 0 1.25rem 0 0 !important;
}
.choices .choices__list--single .choices__item {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.choices .choices__button--remove {
    border: 0 !important;
    background: transparent !important;
    color: var(--ws-gray-500) !important;
}
.choices ::-webkit-scrollbar {
    width: 6px !important;
}
.choices ::-webkit-scrollbar-track {
    background: var(--ws-gray-100) !important;
    border-radius: 3px !important;
}
.choices ::-webkit-scrollbar-thumb {
    background: var(--ws-gray-300) !important;
    border-radius: 3px !important;
}
/* Chevron — kill Choices default triangle, use SVG */
.choices[data-type*=select-one]::after {
    content: '' !important;
    position: absolute !important;
    right: 11.5px !important;
    top: 50% !important;
    width: 10px !important;
    height: 10px !important;
    margin-top: -5px !important;
    border: 0 !important;
    border-style: none !important;
    border-width: 0 !important;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2371717A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px !important;
}
.choices[data-type*=select-one].is-open::after {
    margin-top: -3px !important;
    transform: rotate(180deg) !important;
}
/* Search type dentro do top search — compacto */
.wos-top-search .choices {
    display: flex !important;
    align-items: center !important;
    align-self: stretch !important;
    width: 100px !important;
    flex-shrink: 0 !important;
    border: 0 !important;
    border-right: 1px solid var(--ws-gray-200) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
}
.wos-top-search .choices .choices__inner {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 .5rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.wos-top-search .choices .choices__list--single {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    height: auto !important;
}
.wos-top-search .choices[data-type*=select-one]::after {
    right: .5rem !important;
}
.wos-top-search .choices__list--dropdown {
    border-radius: var(--ws-radius-md) !important;
    margin-top: 2px !important;
}

/* Checkbox / Radio */
.form-check-input:checked {
    background-color: var(--ws-primary);
    border-color: var(--ws-primary);
}
.form-check-input:focus {
    border-color: var(--ws-primary-light);
    box-shadow: 0 0 0 3px var(--ws-primary-glow);
}
.form-switch .form-check-input:checked {
    background-color: var(--ws-primary);
}

/* =================================================================
   9. Badges & Status
   ================================================================= */
.badge { font-weight: 600; border-radius: var(--ws-radius-sm); padding: .25em .55em; }

/* Soft backgrounds */
.bg-primary-soft   { background: var(--ws-primary-bg) !important; color: var(--ws-primary-dark) !important; }
.bg-success-soft   { background: var(--ws-success-bg) !important; color: var(--ws-success-text) !important; }
.bg-warning-soft   { background: var(--ws-warning-bg) !important; color: var(--ws-warning-text) !important; }
.bg-danger-soft    { background: var(--ws-danger-bg) !important; color: var(--ws-danger-text) !important; }
.bg-info-soft      { background: var(--ws-info-bg) !important; color: var(--ws-info-text) !important; }
.bg-secondary-soft { background: var(--ws-gray-100) !important; color: var(--ws-gray-600) !important; }

/* Stage badges (operational workflow) */
.wos-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: var(--ws-radius-full);
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.wos-stage-badge--warning { background: var(--ws-warning-bg); color: var(--ws-warning-text); }
.wos-stage-badge--primary { background: var(--ws-primary-bg); color: var(--ws-primary-dark); }
.wos-stage-badge--info    { background: var(--ws-info-bg); color: var(--ws-info-text); }
.wos-stage-badge--success { background: var(--ws-success-bg); color: var(--ws-success-text); }
.wos-stage-badge--danger  { background: var(--ws-danger-bg); color: var(--ws-danger-text); }
.wos-stage-badge--secondary { background: var(--ws-gray-100); color: var(--ws-gray-600); }

/* Context badges */
.wos-ctx-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .1rem .4rem;
    border-radius: var(--ws-radius-sm);
    font-size: .7rem;
    font-weight: 500;
    margin: 0 .15rem .15rem 0;
    background: var(--ws-gray-100);
    color: var(--ws-gray-600);
}
.wos-ctx-badge--warning { background: var(--ws-warning-bg); color: var(--ws-warning-text); }
.wos-ctx-badge--info    { background: var(--ws-info-bg); color: var(--ws-info-text); }
.wos-ctx-badge--success { background: var(--ws-success-bg); color: var(--ws-success-text); }

/* =================================================================
   10. Timeline
   ================================================================= */
.wos-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wos-timeline-item {
    display: flex;
    gap: .85rem;
    padding-bottom: 1.15rem;
    position: relative;
}
.wos-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: -.15rem;
    width: 2px;
    background: var(--ws-gray-200);
}
.wos-timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: .9rem;
    background: var(--ws-gray-100);
    color: var(--ws-gray-500);
    position: relative;
    z-index: 1;
}
.wos-timeline-icon--success { background: var(--ws-success-bg); color: var(--ws-success); }
.wos-timeline-icon--danger  { background: var(--ws-danger-bg); color: var(--ws-danger); }
.wos-timeline-icon--info    { background: var(--ws-info-bg); color: var(--ws-info); }
.wos-timeline-icon--primary { background: var(--ws-primary-bg); color: var(--ws-primary); }
.wos-timeline-icon--warning { background: var(--ws-warning-bg); color: var(--ws-warning); }
.wos-timeline-icon--secondary { background: var(--ws-gray-100); color: var(--ws-gray-500); }

.wos-timeline-body { padding-top: .2rem; min-width: 0; flex: 1; }
.wos-timeline-title {
    font-weight: 600;
    font-size: .9rem;
    color: var(--ws-gray-800);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}
.wos-timeline-meta {
    font-size: .78rem;
    color: var(--ws-gray-500);
    margin-top: .1rem;
}
.wos-timeline-desc {
    font-size: .85rem;
    color: var(--ws-gray-600);
    margin-top: .25rem;
    word-break: break-word;
}
.wos-timeline-badge {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: .1rem .4rem;
    border-radius: var(--ws-radius-full);
    background: var(--ws-gray-100);
    color: var(--ws-gray-500);
}
.wos-timeline-badge--private { background: var(--ws-warning-bg); color: var(--ws-warning-text); }
.wos-timeline-badge--public { background: var(--ws-success-bg); color: var(--ws-success-text); }
.wos-timeline-note-private {
    background: var(--ws-warning-bg);
    border: 1px solid #FDE68A;
    border-radius: var(--ws-radius-md);
    padding: .4rem .6rem;
    margin-top: .3rem;
    font-size: .85rem;
    color: var(--ws-warning-text);
}

/* Order timeline (legacy) */
.timeline {
    list-style: none;
    padding-left: 0;
}
.timeline-item {
    display: flex;
    gap: .75rem;
    padding-bottom: 1rem;
    position: relative;
}
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: .375rem;
    top: .85rem;
    bottom: 0;
    width: 1px;
    background: var(--ws-gray-200);
}
.timeline-dot {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: var(--ws-primary);
    box-shadow: 0 0 0 4px var(--ws-primary-bg);
    flex: 0 0 auto;
    margin-top: .35rem;
    z-index: 1;
}

/* =================================================================
   11. Empty States & Placeholders
   ================================================================= */
.wos-empty {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--ws-gray-500);
    padding: .85rem 1rem;
    background: var(--ws-gray-50);
    border-radius: var(--ws-radius-lg);
    font-size: .88rem;
}
.wos-empty > .bi { font-size: 1.2rem; }
.wos-empty-lg {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1rem;
    background: transparent;
}
.wos-empty-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.6rem;
    margin-bottom: .35rem;
    background: var(--ws-gray-100);
    color: var(--ws-gray-400);
}

/* Placeholder page */
.wos-placeholder-page {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    max-width: 720px;
}
.wos-placeholder-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--ws-radius-xl);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ws-primary-bg);
    color: var(--ws-primary);
    font-size: 1.4rem;
}
.wos-placeholder-section {
    display: inline-flex;
    background: var(--ws-primary-bg);
    color: var(--ws-primary-dark);
    border-radius: var(--ws-radius-full);
    padding: .2rem .55rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .5rem;
}
.wos-placeholder-page h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ws-gray-900);
    margin: 0 0 .35rem;
}
.wos-placeholder-page p {
    color: var(--ws-gray-500);
    max-width: 560px;
    font-size: .9rem;
}

/* =================================================================
   12. Utilities
   ================================================================= */
.text-primary { color: var(--ws-primary) !important; }
.text-success { color: var(--ws-success) !important; }
.text-warning { color: var(--ws-warning) !important; }
.text-danger  { color: var(--ws-danger) !important; }
.text-muted   { color: var(--ws-gray-500) !important; }

/* Alerts */
.wos-alert {
    display: flex;
    gap: .85rem;
    padding: .9rem 1rem;
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-lg);
    margin-bottom: .65rem;
}
.wos-alert:last-child { margin-bottom: 0; }
.wos-alert-critical { border-left: 3px solid var(--ws-danger); }
.wos-alert-danger   { border-left: 3px solid var(--ws-danger); background: var(--ws-danger-bg); }
.wos-alert-success  { border-left: 3px solid var(--ws-success); background: var(--ws-success-bg); }
.wos-alert-warning  { border-left: 3px solid var(--ws-warning); background: var(--ws-warning-bg); }
.wos-alert-info     { border-left: 3px solid var(--ws-info); background: var(--ws-info-bg); }
.wos-alert-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ws-radius-md);
    font-size: 1.05rem;
}
.wos-alert-body { flex: 1; min-width: 0; }
.wos-alert-icon-danger  { background: var(--ws-danger-bg); color: var(--ws-danger); }
.wos-alert-icon-success { background: var(--ws-success-bg); color: var(--ws-success); }
.wos-alert-icon-warning { background: var(--ws-warning-bg); color: var(--ws-warning); }
.wos-alert-icon-info    { background: var(--ws-info-bg); color: var(--ws-info); }
.wos-alert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .15rem;
}
.wos-alert-head strong { font-size: .88rem; color: var(--ws-gray-900); }
.wos-alert-body p { margin: 0 0 .35rem; font-size: .85rem; color: var(--ws-gray-600); }
.wos-alert-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .75rem;
    color: var(--ws-gray-500);
}
.wos-alert-action { font-weight: 600; text-decoration: none; }
.wos-alert-action:hover { text-decoration: underline; }

/* Admin priority list */
.admin-priority-list {
    display: grid;
    gap: .65rem;
}
.admin-priority-list a {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: .75rem;
    align-items: center;
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-lg);
    padding: .75rem;
    color: var(--ws-gray-600);
    background: var(--ws-white);
    text-decoration: none;
    transition: all .15s;
}
.admin-priority-list a:hover {
    border-color: var(--ws-primary);
    background: var(--ws-primary-bg);
    color: var(--ws-primary-dark);
}
.admin-priority-list i {
    width: 38px;
    height: 38px;
    border-radius: var(--ws-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ws-primary-bg);
    color: var(--ws-primary);
    font-size: 1rem;
}
.admin-priority-list span { font-weight: 700; color: var(--ws-gray-900); }
.admin-priority-list strong { font-weight: 500; font-size: .78rem; color: var(--ws-gray-500); }

/* Operational grid */
.wos-op-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .75rem;
}
.wos-op-card {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .9rem 1rem;
    border-radius: var(--ws-radius-lg);
    border: 1px solid var(--ws-gray-200);
    background: #fff;
    text-decoration: none;
    transition: all .15s;
    position: relative;
    overflow: hidden;
}
.wos-op-card:hover { transform: translateY(-2px); box-shadow: var(--ws-shadow-md); border-color: var(--ws-gray-300); }
.wos-op-card.is-empty { opacity: .55; }
.wos-op-card-icon { font-size: 1.05rem; width: 30px; height: 30px; border-radius: var(--ws-radius-md); display: grid; place-items: center; margin-bottom: .3rem; }
.wos-op-card-count { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--ws-gray-800); letter-spacing: -.02em; }
.wos-op-card-label { font-size: .78rem; color: var(--ws-gray-500); font-weight: 500; }

.wos-op-card--warning .wos-op-card-icon { background: var(--ws-warning-bg); color: var(--ws-warning); }
.wos-op-card--primary .wos-op-card-icon { background: var(--ws-primary-bg); color: var(--ws-primary); }
.wos-op-card--info .wos-op-card-icon { background: var(--ws-info-bg); color: var(--ws-info); }
.wos-op-card--success .wos-op-card-icon { background: var(--ws-success-bg); color: var(--ws-success); }
.wos-op-card--danger .wos-op-card-icon { background: var(--ws-danger-bg); color: var(--ws-danger); }
.wos-op-card--secondary .wos-op-card-icon { background: var(--ws-gray-100); color: var(--ws-gray-500); }

/* Operational alerts */
.wos-op-alert {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    border-radius: var(--ws-radius-lg);
    border: 1px solid transparent;
    text-decoration: none;
    margin-bottom: .5rem;
    transition: all .1s;
}
.wos-op-alert > .bi:first-child { font-size: 1.15rem; flex: 0 0 auto; }
.wos-op-alert-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wos-op-alert-body strong { font-size: .85rem; color: var(--ws-gray-800); }
.wos-op-alert-body small { font-size: .78rem; color: var(--ws-gray-500); }
.wos-op-alert-cta { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.wos-op-alert--danger { background: var(--ws-danger-bg); border-color: #FECACA; }
.wos-op-alert--danger > .bi:first-child, .wos-op-alert--danger .wos-op-alert-cta { color: var(--ws-danger); }
.wos-op-alert--warning { background: var(--ws-warning-bg); border-color: #FDE68A; }
.wos-op-alert--warning > .bi:first-child, .wos-op-alert--warning .wos-op-alert-cta { color: var(--ws-warning); }
.wos-op-alert--info { background: var(--ws-info-bg); border-color: #BFDBFE; }
.wos-op-alert--info > .bi:first-child, .wos-op-alert--info .wos-op-alert-cta { color: var(--ws-info); }

/* Filters chip */
.wos-op-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.wos-op-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: var(--ws-radius-full);
    border: 1px solid var(--ws-gray-200);
    background: #fff;
    color: var(--ws-gray-600);
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all .12s;
}
.wos-op-chip:hover { border-color: var(--ws-gray-400); color: var(--ws-gray-800); }
.wos-op-chip.is-active { background: var(--ws-primary); border-color: var(--ws-primary); color: #fff; }
.wos-op-chip-count {
    font-size: .68rem;
    font-weight: 700;
    background: var(--ws-gray-100);
    color: var(--ws-gray-600);
    border-radius: var(--ws-radius-full);
    padding: 0 .35rem;
    min-width: 1.1rem;
    text-align: center;
}
.wos-op-chip.is-active .wos-op-chip-count { background: rgba(255,255,255,.25); color: #fff; }

/* Quill editor */
.quill-editor { min-height: 180px; background: #fff; }
.ql-toolbar.ql-snow,
.ql-container.ql-snow { border-color: var(--ws-gray-200) !important; }
.ql-toolbar.ql-snow {
    border-top-left-radius: var(--ws-radius-md);
    border-top-right-radius: var(--ws-radius-md);
    background: var(--ws-gray-50);
}
.ql-container.ql-snow {
    border-bottom-left-radius: var(--ws-radius-md);
    border-bottom-right-radius: var(--ws-radius-md);
    min-height: 160px;
    font-family: var(--ws-font);
}

/* Upload zones */
.upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--ws-gray-300);
    border-radius: var(--ws-radius-lg);
    background: var(--ws-gray-50);
    cursor: pointer;
    padding: 1.25rem;
    min-height: 140px;
    text-align: center;
    transition: border-color .15s, background-color .15s;
    position: relative;
    overflow: hidden;
}
.upload-zone:hover { border-color: var(--ws-primary); background: var(--ws-primary-bg); }
.upload-zone-multi { min-height: 100px; }
.upload-zone-prompt { width: 100%; }
.upload-zone-preview {
    display: none;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.upload-zone.has-preview .upload-zone-prompt { display: none; }
.upload-zone.has-preview .upload-zone-preview { display: block; }

/* Gallery */
.gallery-previews { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery-thumb {
    width: 72px;
    height: 72px;
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-md);
    overflow: hidden;
    background: var(--ws-gray-100);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Storefront customization */
.storefront-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
}
.storefront-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ws-gray-200);
}
.storefront-card-head h2 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ws-gray-900); }

/* Preview da loja */
.storefront-preview { position: sticky; top: 1.25rem; display: flex; flex-direction: column; }
.storefront-preview-toolbar {
    display: flex; align-items: center; gap: .35rem; padding: .6rem .85rem;
    border-bottom: 1px solid var(--ws-gray-200); background: var(--ws-gray-50);
    border-radius: var(--ws-radius-lg) var(--ws-radius-lg) 0 0;
}
.storefront-browser-preview {
    --preview-primary: #06b87c;
    --preview-primary-dark: #048f62;
    --preview-secondary: #171717;
    display: flex; flex-direction: column; background: #fff; border-radius: 0 0 var(--ws-radius-lg) var(--ws-radius-lg);
    transition: max-width .3s ease; margin: 0 auto; width: 100%;
}
.storefront-browser-preview header {
    display: flex; align-items: center; gap: 1rem; padding: .85rem 1.25rem;
    background: var(--preview-primary); color: #fff; font-size: .85rem;
}
.storefront-browser-preview header strong { margin-right: auto; }
.storefront-browser-preview nav {
    display: flex; align-items: center; gap: .5rem; padding: .5rem 1.25rem;
    background: var(--preview-primary-dark); color: rgba(255,255,255,.85); font-size: .8rem;
}
.storefront-browser-preview nav span { margin-left: auto; }
.storefront-browser-preview main {
    padding: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.storefront-browser-preview main section h3 {
    font-size: .85rem; font-weight: 700; color: var(--preview-secondary); margin-bottom: .35rem;
}
.storefront-browser-preview main section p { font-size: .8rem; color: var(--ws-gray-500); margin-bottom: 0; }
.storefront-browser-preview footer {
    padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between;
    background: var(--preview-secondary); color: rgba(255,255,255,.7); font-size: .75rem;
}
.storefront-browser-preview footer strong { color: #fff; }

/* Upload zones (logo, banners) */
.upload-zone {
    position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column;
    gap: .35rem; min-height: 160px; padding: 1.5rem; border: 2px dashed var(--ws-gray-300);
    border-radius: var(--ws-radius-lg); cursor: pointer; transition: all .2s; text-align: center;
}
.upload-zone:hover { border-color: var(--ws-primary); background: var(--ws-gray-50); }
.upload-zone.has-preview .upload-zone-prompt { display: none; }
.upload-zone-preview { display: none; max-height: 120px; object-fit: contain; }
.upload-zone.has-preview .upload-zone-preview { display: block; }

.storefront-banner-position-preview {
    display: grid;
    gap: .5rem;
    height: 100%;
    min-height: 320px;
    padding: 1rem;
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-md);
}
.storefront-page-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.storefront-template-card {
    display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.5rem 1rem;
    border: 1px solid var(--ws-gray-200); border-radius: var(--ws-radius-lg); text-align: center;
    text-decoration: none; transition: all .2s; cursor: pointer;
}
.storefront-template-card:hover { border-color: var(--ws-primary); box-shadow: 0 2px 8px var(--ws-primary-glow); }
.storefront-template-card span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ws-primary); }
.storefront-template-card i { font-size: 1.75rem; color: var(--ws-gray-400); }
.storefront-template-card strong { font-size: .9rem; color: var(--ws-gray-800); }
.storefront-template-card small { font-size: .78rem; color: var(--ws-gray-500); line-height: 1.4; }

/* Storefront upload zones (logo, favicon, banner images) */
.storefront-upload-zone { min-height: 200px; }
.storefront-upload-zone.has-preview { min-height: 140px; }

/* Rich text editor (Quill) */
.storefront-rich-editor { min-height: 260px; }
.storefront-rich-editor .ql-editor { min-height: 240px; font-size: .9rem; }

/* Billing method card selector */
.billing-method-card {
    display: flex; align-items: flex-start; gap: .65rem; padding: 1rem;
    border: 1px solid var(--ws-gray-200); border-radius: var(--ws-radius-lg); cursor: pointer;
    transition: all .2s; height: 100%;
}
.billing-method-card:hover { border-color: var(--ws-primary); }
.billing-method-card:has(input:checked) { border-color: var(--ws-primary); background: var(--ws-primary-bg); }
.billing-method-card input { margin-top: .15rem; }
.billing-method-card span { display: flex; flex-direction: column; gap: .2rem; }
.billing-method-card strong { font-size: .88rem; color: var(--ws-gray-800); }
.billing-method-card small { font-size: .78rem; color: var(--ws-gray-500); }

/* Billing */
.billing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.billing-hero h2 { font-size: 1.25rem; font-weight: 700; color: var(--ws-gray-900); margin-bottom: .25rem; }
.billing-hero p { color: var(--ws-gray-500); margin-bottom: 0; max-width: 620px; }
.billing-cycle-switch {
    display: inline-flex;
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-lg);
    padding: .2rem;
    background: var(--ws-gray-50);
    flex-shrink: 0;
}
.billing-cycle-switch a {
    color: var(--ws-gray-500);
    text-decoration: none;
    border-radius: var(--ws-radius-md);
    padding: .45rem .8rem;
    font-weight: 700;
    font-size: .82rem;
    transition: all .15s;
}
.billing-cycle-switch a.is-active {
    background: var(--ws-primary);
    color: #fff;
}
.billing-plan-card { position: relative; height: 100%; }
.billing-plan-card.is-featured {
    border-color: var(--ws-primary);
    box-shadow: 0 8px 24px var(--ws-primary-glow);
}
.billing-plan-card h2 { font-size: 1.15rem; font-weight: 700; color: var(--ws-gray-900); margin-bottom: .35rem; }
.billing-plan-card p { color: var(--ws-gray-500); min-height: 38px; margin-bottom: 1rem; font-size: .9rem; }
.billing-plan-price { margin-bottom: .75rem; }
.billing-plan-price strong { display: block; font-size: 1.85rem; line-height: 1; color: var(--ws-gray-900); }
.billing-plan-price span { color: var(--ws-gray-500); font-size: .82rem; font-weight: 600; }
.billing-feature-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.billing-feature-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; color: var(--ws-gray-600); }
.billing-feature-list i { color: var(--ws-success); margin-top: .12rem; }

/* =================================================================
   13. Responsive
   ================================================================= */
@media (max-width: 1199.98px) {
    .storefront-visual-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .wos-main { margin-left: 0; }
    .wos-content { padding: 1.25rem; }
}
@media (max-width: 767.98px) {
    .wos-topbar { gap: .5rem; padding: 0 .85rem; }
    .wos-top-actions { gap: .15rem; }
    .wos-account-btn { padding: 0; }
    .wos-content { padding: 1rem .85rem; }
    .billing-hero { flex-direction: column; align-items: stretch; }
    .billing-cycle-switch { width: 100%; }
    .billing-cycle-switch a { flex: 1; text-align: center; }
}
@media (max-width: 575.98px) {
    .wos-content { padding: .75rem; }
    .wos-card, .card { border-radius: var(--ws-radius-lg); }
    .btn { min-height: 2.5rem; }
    .wos-page-head h1 { font-size: 1.25rem; }
    .storefront-page-template-grid { grid-template-columns: 1fr; }
    .wos-admin-empty,
    .admin-priority-list a { grid-template-columns: 1fr; }
}

/* =================================================================
   14. Onboarding Page
   ================================================================= */
.wos-onboarding-hero {
    background: linear-gradient(135deg, var(--ws-gray-900) 0%, #1e1b4b 100%);
    border-radius: var(--ws-radius-lg);
    padding: 1.75rem 1.5rem;
    color: #fff;
}
.wos-onboarding-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 .2rem;
    letter-spacing: -.02em;
}
.wos-onboarding-subtitle {
    font-size: .88rem;
    color: rgba(255,255,255,.7);
    margin: 0;
}
.wos-onboarding-hero .btn-outline-secondary {
    color: rgba(255,255,255,.7);
    border-color: rgba(255,255,255,.2);
    background: transparent;
}
.wos-onboarding-hero .btn-outline-secondary:hover {
    color: #fff;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.08);
}
/* Progress bar */
.wos-onboarding-progress { margin-top: 1.25rem; }
.wos-onboarding-progress-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255,255,255,.6);
}
.wos-onboarding-progress-pct {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}
.wos-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    overflow: hidden;
}
.wos-progress-track--sm { height: 5px; }
.wos-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ws-primary) 0%, var(--ws-accent) 100%);
    transition: width .6s cubic-bezier(.4,0,.2,1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}
.wos-progress-text {
    font-size: .65rem;
    font-weight: 700;
    color: #fff;
    padding-right: 6px;
    line-height: 1;
}
.wos-onboarding-done {
    font-size: .85rem;
    color: rgba(255,255,255,.85);
}
.wos-onboarding-done a {
    color: var(--ws-accent);
    font-weight: 600;
    text-decoration: none;
}
.wos-onboarding-done a:hover { text-decoration: underline; }

/* Group cards */
.wos-onboarding-group {
    background: var(--ws-white);
    border-radius: var(--ws-radius-lg);
    box-shadow: 0 2px 6px 0 rgba(67,89,113,.12);
    overflow: hidden;
    transition: box-shadow .2s, opacity .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.wos-onboarding-group:hover {
    box-shadow: 0 4px 12px rgba(67,89,113,.16);
}
.wos-onboarding-group--locked {
    opacity: .65;
}
.wos-onboarding-group--done {
    border: 1px solid rgba(16,185,129,.25);
}
.wos-onboarding-group-header {
    padding: 1.15rem 1.25rem .85rem;
    border-bottom: 1px solid var(--ws-gray-100);
}
.wos-onboarding-group-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ws-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.wos-onboarding-group-title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--ws-gray-900);
    margin: 0 0 .1rem;
}
.wos-onboarding-group-meta {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ws-gray-500);
}
.wos-onboarding-group-bar {
    margin-top: .6rem;
    padding: 0 .25rem;
}

/* Missions list */
.wos-onboarding-group-body {
    flex: 1;
}
.wos-onboarding-mission {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.25rem;
    transition: background .15s;
}
.wos-onboarding-mission:hover { background: var(--ws-gray-50); }
.wos-onboarding-mission + .wos-onboarding-mission {
    border-top: 1px solid var(--ws-gray-100);
}
.wos-onboarding-mission--done {
    background: rgba(16,185,129,.03);
}
.wos-onboarding-mission-status {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wos-onboarding-mission-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ws-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
}
.wos-onboarding-mission-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ws-gray-200);
    color: var(--ws-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
}
.wos-onboarding-mission-body { flex: 1; min-width: 0; }
.wos-onboarding-mission-title {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ws-gray-900);
}
.wos-onboarding-mission--done .wos-onboarding-mission-title {
    color: var(--ws-gray-500);
    text-decoration: line-through;
}
.wos-onboarding-mission-desc {
    font-size: .76rem;
    color: var(--ws-gray-500);
    margin-top: .1rem;
}
.wos-onboarding-mission-action { flex-shrink: 0; }
.wos-onboarding-mission-done-badge {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ws-accent);
    padding: .2rem .5rem;
    border-radius: 999px;
    border: 1px solid rgba(16,185,129,.25);
    white-space: nowrap;
}
.wos-onboarding-mission-cta {
    font-size: .78rem !important;
    padding: .3rem .7rem !important;
    border-radius: var(--ws-radius-sm) !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* Bonus suggestions */
.wos-onboarding-bonus {}
.tracking-wide { letter-spacing: .05em; }
.wos-onboarding-bonus-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    background: var(--ws-white);
    border: 1px dashed var(--ws-gray-200);
    border-radius: var(--ws-radius-md);
    transition: border-color .15s, background .15s;
}
.wos-onboarding-bonus-item:hover {
    border-color: var(--ws-gray-300);
    background: var(--ws-gray-50);
}
.wos-onboarding-bonus-item--done {
    border-style: solid;
    border-color: rgba(16,185,129,.2);
    background: rgba(16,185,129,.02);
}
.wos-onboarding-bonus-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--ws-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.wos-onboarding-bonus-body { flex: 1; min-width: 0; }
.wos-onboarding-bonus-title {
    font-size: .83rem;
    font-weight: 600;
    color: var(--ws-gray-800);
}
.wos-onboarding-bonus-item--done .wos-onboarding-bonus-title {
    color: var(--ws-gray-500);
    text-decoration: line-through;
}
.wos-onboarding-bonus-desc {
    font-size: .74rem;
    color: var(--ws-gray-500);
    margin-top: .05rem;
}
.wos-onboarding-bonus-action { flex-shrink: 0; }

/* =================================================================
   16. Animations & Accessibility
   ================================================================= */
.wos-skip-link {
    position: fixed; left: 1rem; top: 1rem; z-index: 2000;
    transform: translateY(-180%);
    padding: .6rem 1rem;
    border-radius: var(--ws-radius-md);
    background: var(--ws-gray-900);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease;
}
.wos-skip-link:focus { transform: translateY(0); color: #fff; outline: 3px solid var(--ws-warning); outline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ws-primary); outline-offset: 3px; }

/* =================================================================
   15. Sales report
   ================================================================= */
.wos-hero-sm {
    background: linear-gradient(135deg, var(--ws-primary), #5025C7);
    border-radius: var(--ws-radius-card);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--ws-shadow-card);
}
.wos-hero-sm h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -.02em;
}
.wos-hero-sm p {
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    margin: 0;
}
.wos-input-light {
    background: rgba(255,255,255,.2) !important;
    border: 1px solid rgba(255,255,255,.3) !important;
    color: #fff !important;
    border-radius: var(--ws-radius-md);
}
.wos-input-light:focus {
    background: rgba(255,255,255,.3) !important;
    border-color: rgba(255,255,255,.5) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,.15) !important;
    color: #fff !important;
}
.wos-input-light::placeholder { color: rgba(255,255,255,.5); }
.wos-input-light::-webkit-calendar-picker-indicator { filter: invert(1); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =================================================================
   17. Auth Pages (Login, Register, Forgot/Reset Password)
   ================================================================= */
.auth-cover-body {
    min-height: 100vh;
    background: var(--ws-gray-50);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}
.auth-cover {
    display: flex;
    min-height: 100vh;
}
.auth-cover-visual {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #673DE6 0%, #5025C7 50%, #3B13A0 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.auth-cover-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16,185,129,.1) 0%, transparent 40%);
    pointer-events: none;
}
.auth-cover-illustration {
    max-width: 80%;
    max-height: 70vh;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.15));
}
.auth-cover-visual--photo {
    padding: 0;
    background: none;
}
.auth-cover-visual--photo::before {
    content: none;
}
.auth-cover-visual--photo .auth-cover-illustration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    filter: none;
}
.auth-cover-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--ws-white);
    overflow-y: auto;
    min-width: 0;
}
.auth-login-error {
    align-items: center;
    gap: .5rem;
    padding: .75rem;
    font-size: .75rem;
    line-height: 1.4;
}
.auth-login-error .wos-alert-icon {
    width: 18px;
    height: 18px;
    font-size: .875rem;
}
.auth-cover-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.auth-brand {
    display: inline-block;
    margin-bottom: 2rem;
}
.auth-brand-logo {
    height: 32px;
    width: auto;
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ws-gray-900);
    margin-bottom: .35rem;
    letter-spacing: -.03em;
}
.auth-subtitle {
    font-size: .875rem;
    color: var(--ws-gray-500);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.auth-cover-card .form-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ws-gray-700);
    margin-bottom: .35rem;
}
.auth-cover-card .form-control {
    border-radius: .5rem;
    border: 1.5px solid var(--ws-gray-200);
    padding: .6rem 1rem;
    font-size: .875rem;
    color: var(--ws-gray-800);
    background: var(--ws-white);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-cover-card .form-control:focus {
    border-color: #673DE6;
    box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.auth-cover-card .form-control::placeholder {
    color: var(--ws-gray-400);
}
.auth-cover-card .form-check-input:checked {
    background-color: #673DE6;
    border-color: #673DE6;
}
.auth-password {
    position: relative;
}
.auth-password .form-control {
    padding-right: 2.75rem;
}
.auth-password-toggle {
    position: absolute;
    right: .25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ws-gray-400);
    cursor: pointer;
    padding: .25rem .5rem;
    font-size: 1.1rem;
    line-height: 1;
    transition: color .15s ease;
}
.auth-password-toggle:hover {
    color: var(--ws-gray-600);
}
.auth-cover-card .btn-primary {
    border-radius: .5rem;
    padding: .65rem 1rem;
    font-weight: 700;
    font-size: .875rem;
    background: #673DE6;
    border-color: #673DE6;
    transition: all .15s ease;
}
.auth-cover-card .btn-primary:hover {
    background: #5025C7;
    border-color: #5025C7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,58,237,.3);
}
.auth-link-row {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .875rem;
    color: var(--ws-gray-500);
}
.auth-link-row a {
    color: #673DE6;
    font-weight: 600;
}
.auth-link-row a:hover {
    color: #5025C7;
    text-decoration: underline !important;
}
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--ws-gray-500);
    font-weight: 500;
    text-decoration: none;
    font-size: .875rem;
}
.auth-back-link:hover {
    color: #673DE6;
}
.auth-hint {
    font-size: .75rem;
    color: var(--ws-gray-400);
    margin-bottom: 1rem;
}
.auth-terms {
    font-size: .8125rem;
}
.auth-terms a {
    color: #673DE6;
    font-weight: 600;
}
.auth-plan-summary {
    background: var(--ws-gray-50);
    border: 1px solid var(--ws-gray-200);
    border-radius: .5rem;
    padding: .75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: .8125rem;
}
.auth-plan-summary span {
    display: block;
    color: var(--ws-gray-500);
}
.auth-plan-summary strong {
    display: block;
    color: var(--ws-gray-900);
    font-weight: 700;
}
.auth-plan-summary-price {
    font-weight: 800;
    color: #673DE6;
    font-size: 1rem;
    text-align: right;
}
.auth-plan-summary-price small {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ws-gray-500);
}
.auth-cover-card .alert {
    border-radius: .5rem;
    font-size: .8125rem;
}

/* A short single-page registration, with normal document scrolling at any height. */
.auth-register-body .auth-cover-card { max-width: 560px; }
.auth-register-body .auth-brand { margin-bottom: 1.25rem; }
.auth-register-body .auth-subtitle { margin-bottom: 1.25rem; }
.auth-register-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
}
.auth-register-field { min-width: 0; }
.auth-register-body .auth-hint { margin-top: .6rem; margin-bottom: .75rem; }
.auth-register-body .auth-link-row { margin-bottom: 0; }

/* Auth responsive: empilha em telas menores */
@media (max-width: 991.98px) {
    .auth-register-body .auth-cover-visual { display: none; }
    .auth-cover {
        flex-direction: column;
    }
    .auth-cover-visual {
        flex: none;
        padding: 3rem 2rem;
        min-height: 240px;
    }
    .auth-cover-illustration {
        max-height: 180px;
    }
    .auth-cover-visual--photo .auth-cover-illustration {
        object-position: center 30%;
    }
    .auth-cover-panel {
        flex: none;
        padding: 2rem 1.5rem;
    }
}

/* =================================================================
   18. Admin Panel
   ================================================================= */
.wos-admin-body {
    background: var(--ws-gray-50);
}
.wos-admin-sidebar {
    background: var(--ws-gray-900) !important;
}
.wos-admin-sidebar .wos-brand {
    border-bottom-color: rgba(255,255,255,.1);
}
.wos-admin-sidebar .wos-menu-link {
    color: rgba(255,255,255,.8);
}
.wos-admin-sidebar .wos-menu-link:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.wos-admin-sidebar .wos-menu-item.active .wos-menu-link {
    color: #fff;
    background: rgba(124,58,237,.35);
}
.wos-admin-sidebar .wos-menu-toggle {
    color: rgba(255,255,255,.8);
}
.wos-admin-sidebar .wos-menu-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.wos-admin-sidebar .wos-submenu .wos-menu-link {
    padding-left: 1.5rem;
}
.wos-admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    gap: .5rem;
}
.wos-admin-empty i {
    font-size: 2.5rem;
    color: var(--ws-gray-300);
    margin-bottom: .5rem;
}
.wos-admin-empty strong {
    font-size: .95rem;
    color: var(--ws-gray-900);
}
.wos-admin-empty p {
    font-size: .8125rem;
    color: var(--ws-gray-500);
    max-width: 320px;
    margin: 0;
}

/* Estilos de apresentação extraídos das views; reutilizar estas classes. */
.wos-text-preserve { white-space: pre-wrap; }
.wos-icon-info-soft { background: rgba(59,130,246,.12); color: #3b82f6; }
.wos-color-inherit { color: inherit; }
.wos-revenue-summary { flex:1; background: linear-gradient(135deg, var(--ws-primary-dark), var(--ws-primary)); color: #fff; border-radius: 1rem; padding: 1.5rem; position: relative; overflow: hidden; }
.wos-summary-orb-large { position: absolute; right: -1.5rem; bottom: -1.5rem; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); }
.wos-summary-orb-small { position: absolute; right: 1rem; top: 1rem; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.06); }
.wos-summary-eyebrow { color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600; }
.wos-summary-greeting { color: #fff; font-size: 1.5rem; font-weight: 800; margin: .35rem 0 .15rem; }
.wos-summary-description { color: rgba(255,255,255,.72); font-size: .9rem; margin-bottom: 1.25rem; }
.wos-summary-plan { display: inline-block; background: rgba(16,185,129,.25); color: #6EE7B7; font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; margin-left: .4rem; }
.wos-summary-revenue { font-size: 2rem; font-weight: 900; line-height: 1; }
.wos-summary-caption { color: rgba(255,255,255,.65); font-size: .85rem; margin-bottom: 1.25rem; }
.wos-summary-action { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.18); color: #fff; border-radius: .65rem; padding: .45rem .9rem; font-size: .82rem; font-weight: 700; text-decoration: none; }
.wos-text-heading { color: var(--ws-gray-900); }
.wos-chart-canvas { min-height: 280px; width: 100%; }
.wos-surface-muted { background: var(--ws-gray-50); }
.wos-shortcut-primary { color: var(--ws-primary); font-size: 1.2rem; }
.wos-shortcut-label { color: var(--ws-gray-800); font-size: .85rem; }
.wos-shortcut-success { color: var(--ws-success); font-size: 1.2rem; }
.wos-shortcut-info { color: var(--ws-info); font-size: 1.2rem; }
.wos-divider { height: 1px; background: var(--ws-gray-200); margin: .85rem 0; }
.wos-checklist-track { height: 5px; background: var(--ws-gray-200); border-radius: 999px; overflow: hidden; margin-bottom: .75rem; }
.wos-checklist-text { font-size: .82rem; }
.wos-color-success { color: var(--ws-success); }
.wos-color-primary { color: var(--ws-primary); }
.wos-card-section { padding: 1.25rem 1.5rem; }
.wos-text-body { color: var(--ws-gray-700); }
.wos-leading-tight { line-height: 1.2; }
.wos-text-small { font-size: .85rem; }
.wos-caption-faded { font-size: .75rem; opacity: .8; }
.wos-outline-neutral { border: 1px solid var(--ws-gray-200); color: var(--ws-gray-700); }
.wos-color-muted { color: var(--ws-gray-500); }
.wos-caption-muted { font-size: .75rem; color: var(--ws-gray-500); }
.wos-color-subtle { color: var(--ws-gray-400); }
.wos-surface-primary { background: var(--ws-primary-bg); }
.wos-primary-caption { color: var(--ws-primary-dark); font-size: .82rem; }
.wos-empty-spacing { margin: 2rem auto; }
.wos-logbook-title { font-size: 1.35rem; font-weight: 800; color: var(--ws-gray-900); margin: 0; }
.wos-filter-label { font-size: .78rem; font-weight: 600; color: var(--ws-gray-600); margin-bottom: .25rem; }
.wos-filter-select { padding: .4rem 2rem .4rem .75rem; font-size: .85rem; border-radius: .5rem; }
.wos-filter-button { padding: .4rem .85rem; font-size: .85rem; border-radius: .5rem; font-weight: 600; white-space: nowrap; }
.wos-empty-inset { margin: 0 1.5rem 1.5rem; }
.wos-metric-label { color: var(--ws-gray-900); font-size: .9rem; }
.wos-column-quantity { width:130px }
.wos-category-surface { background: linear-gradient(135deg, var(--ws-gray-50), #fff); }
.wos-avatar-medium { width:42px;height:42px;font-size:1.2rem; }
.wos-relative-caption { font-size:.75em; }
.wos-initially-hidden { display: none; }
.wos-column-thumbnail { width: 60px; }
.wos-column-code { width: 80px; }
.wos-promotion-gradient { background: linear-gradient(135deg, var(--ws-primary), #5025C7); }
.wos-upload-placeholder { height: 120px; }
.wos-image-preview-container { display: none; position: relative; width: 100px; }
.wos-image-preview { width: 100px; height: 100px; object-fit: cover; }
.wos-compact-icon-button { padding: 0.1rem 0.3rem; }
.wos-avatar-small { width:32px;height:32px;font-size:.85rem; }
.wos-column-date { width:190px }
.wos-column-actions { width:180px }
.wos-field-compact { max-width: 260px }

.wos-alert-warning { background: var(--ws-warning-bg); color: var(--ws-warning-text); border: 1px solid #FDE68A; }
.wos-exit-preview { background: var(--ws-warning); color: #fff; border: none; font-weight: 600; }
.wos-alert-success { background: var(--ws-success-bg); color: var(--ws-success-text); border: 1px solid #A7F3D0; }
.wos-close-small { font-size: .75rem; }
.wos-alert-danger { background: var(--ws-danger-bg); color: var(--ws-danger-text); border: 1px solid #FECACA; }

/* Gráficos e prévia da vitrine */

    #revenueChart .apexcharts-tooltip { background: var(--ws-white) !important; border: 1px solid var(--ws-gray-200) !important; box-shadow: 0 4px 12px rgba(0,0,0,.08) !important; }
    #revenueChart .apexcharts-xaxistooltip { display: none; }


.storefront-preview.is-phone  .storefront-browser-preview { max-width: 375px; }
.storefront-preview.is-tablet .storefront-browser-preview { max-width: 768px; }
.storefront-preview.is-desktop .storefront-browser-preview { max-width: 100%; }


/* Estados derivados dos dados: cores e aparência pertencem ao CSS. */
[data-tone="success"] { --wos-tone: var(--ws-success); --wos-tone-bg: var(--ws-success-bg); --wos-tone-text: var(--ws-success-text); --wos-tone-border: #A7F3D0; }
[data-tone="danger"] { --wos-tone: var(--ws-danger); --wos-tone-bg: var(--ws-danger-bg); --wos-tone-text: var(--ws-danger-text); --wos-tone-border: #FECACA; }
[data-tone="warning"] { --wos-tone: var(--ws-warning); --wos-tone-bg: var(--ws-warning-bg); --wos-tone-text: var(--ws-warning-text); --wos-tone-border: #FDE68A; }
[data-tone="primary"] { --wos-tone: var(--ws-primary); --wos-tone-bg: var(--ws-primary-bg); }
[data-tone="secondary"] { --wos-tone: var(--ws-gray-500); --wos-tone-bg: var(--ws-gray-100); }
.wos-stat-icon[data-tone] { background: var(--wos-tone-bg); color: var(--wos-tone); }
[data-tone-text] { color: var(--wos-tone); font-weight: 600; }
.wos-tone-alert { background: var(--wos-tone-bg); color: var(--wos-tone-text); border: 1px solid var(--wos-tone-border); }
.wos-widget-tone-0 { color: var(--ws-primary); background: var(--ws-primary-bg); }
.wos-widget-tone-1 { color: var(--ws-success); background: var(--ws-success-bg); }
.wos-widget-tone-2 { color: var(--ws-warning); background: var(--ws-warning-bg); }
.wos-widget-tone-3 { color: var(--ws-danger); background: var(--ws-danger-bg); }
.wos-summary-store-link { display: inline-flex; align-items: center; gap: .5rem; color: #ffffffbf; padding: .45rem .9rem; font-size: .82rem; font-weight: 600; text-decoration: none; }
.wos-native-progress { display: block; appearance: none; width: 100%; height: 100%; border: 0; border-radius: 999px; overflow: hidden; background: var(--ws-gray-200); color: var(--ws-primary); }
.wos-native-progress::-webkit-progress-bar { background: var(--ws-gray-200); }
.wos-native-progress::-webkit-progress-value { background: var(--ws-primary); border-radius: 999px; }
.wos-native-progress::-moz-progress-bar { background: var(--ws-primary); border-radius: 999px; }

/* Bootstrap x Tailwind: o utilitário `collapse` do Tailwind (visibility: collapse)
   escondia o conteúdo dos blocos recolhíveis do Bootstrap depois de abertos. */
.collapse.show,
.collapsing { visibility: visible; }

/* Andamento do pedido: etapas + próximo passo em um clique. */
.wos-progress { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 14px; counter-reset: none; }
.wos-progress-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; font-size: .75rem; color: #9aa0ab; }
.wos-progress-step:not(:first-child)::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: #e5e7eb; z-index: 0; }
.wos-progress-step.is-done:not(:first-child)::before,
.wos-progress-step.is-current:not(:first-child)::before { background: #16a34a; }
.wos-progress-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #e5e7eb; color: #c4c8d0; font-size: .8rem; }
.wos-progress-step.is-done .wos-progress-dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.wos-progress-step.is-current .wos-progress-dot { background: #fff; border-color: #16a34a; color: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.wos-progress-step.is-done, .wos-progress-step.is-current { color: #1f2430; font-weight: 600; }
.wos-progress-label { line-height: 1.2; }
.wos-status-advanced summary, .wos-timeline-more summary { cursor: pointer; }
.wos-timeline-more { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e5e7eb; }

/* Confirmação discreta, pertencente à tela de verificação de e-mail. */
.auth-cover-card .auth-verification-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #e0ebe4;
    border-radius: 8px;
    background: #f7faf8;
    color: #365b46;
    font-size: 13px;
    line-height: 1.5;
}
.auth-verification-status svg {
    flex: 0 0 16px;
    margin-top: 2px;
}
