/* ============================================================
   COMPONENTS.CSS — Neumorphism UI Kit
   Desenvolvedor TI
   Todos os componentes: Input, Select, Textarea, Checkbox,
   Radio, Toggle, Button, Badge, Alert, Modal, Toast,
   Tooltip, Tabs, Accordion, Table, Pagination, Avatar,
   Skeleton, Stepper, Timeline, Card, Divider, Tag/Chip
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   INPUTS & FORMS
   ══════════════════════════════════════════════════════════ */

.neu-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.neu-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.neu-label .label-required {
    color: var(--accent-2);
    font-size: 0.9em;
}

/* ── Base Input ── */
.neu-input,
input.neu-input,
textarea.neu-input,
select.neu-input {
    background: var(--bg);
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1.1rem;
    box-shadow: var(--neu-shadow-inset-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: box-shadow 0.25s ease, color 0.2s;
    outline: none;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.neu-input::placeholder {
    color: var(--text-light);
}

.neu-input:focus {
    box-shadow: var(--neu-shadow-inset), 0 0 0 3px rgba(108, 99, 255, 0.18);
    color: var(--text-main);
}

.neu-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Input Sizes ── */
.neu-input-sm { padding: 0.5rem 0.85rem; font-size: 0.85rem; border-radius: var(--radius-sm); }
.neu-input-lg { padding: 0.95rem 1.35rem; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* ── Input with Icon ── */
.neu-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.neu-input-wrap .neu-input {
    padding-left: 2.8rem;
}

.neu-input-wrap .neu-input-icon-left {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
    pointer-events: none;
    transition: color 0.2s;
}

.neu-input-wrap .neu-input-icon-right {
    position: absolute;
    right: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.2s;
}

.neu-input-wrap .neu-input:focus ~ .neu-input-icon-left,
.neu-input-wrap:focus-within .neu-input-icon-left {
    color: var(--accent);
}

.neu-input-wrap.has-right .neu-input {
    padding-right: 2.8rem;
}

/* ── Input Variants ── */
.neu-input.is-success { box-shadow: var(--neu-shadow-inset-sm), 0 0 0 2px rgba(34,197,94,0.35); }
.neu-input.is-error   { box-shadow: var(--neu-shadow-inset-sm), 0 0 0 2px rgba(255, 101, 132, 0.4); }
.neu-input.is-warning { box-shadow: var(--neu-shadow-inset-sm), 0 0 0 2px rgba(249,115,22,0.4); }

.neu-field-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.neu-field-hint.error   { color: var(--accent-2); }
.neu-field-hint.success { color: #16a34a; }

/* ── Textarea ── */
textarea.neu-input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* ── Select ── */
.neu-select-wrap {
    position: relative;
}

.neu-select-wrap::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-light);
    pointer-events: none;
    transition: border-top-color 0.2s;
}

.neu-select-wrap:focus-within::after {
    border-top-color: var(--accent);
}

select.neu-input {
    cursor: pointer;
    padding-right: 2.5rem;
}

/* ── Checkbox ── */
.neu-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
}

.neu-checkbox-wrap input[type="checkbox"] {
    display: none;
}

.neu-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--bg);
    box-shadow: var(--neu-shadow-inset-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
}

.neu-checkbox::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.15s ease;
    margin-top: -2px;
}

.neu-checkbox-wrap input:checked + .neu-checkbox {
    background: var(--accent-gradient);
    box-shadow: 2px 2px 8px rgba(108,99,255,0.4), -1px -1px 4px var(--shadow-light);
}

.neu-checkbox-wrap input:checked + .neu-checkbox::after {
    transform: rotate(-45deg) scale(1);
}

.neu-checkbox-label {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* ── Radio ── */
.neu-radio-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
}

.neu-radio-wrap input[type="radio"] {
    display: none;
}

.neu-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: var(--neu-shadow-inset-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.neu-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform 0.15s ease;
}

.neu-radio-wrap input:checked + .neu-radio {
    background: var(--accent-gradient);
    box-shadow: 2px 2px 8px rgba(108,99,255,0.4);
}

.neu-radio-wrap input:checked + .neu-radio::after {
    transform: scale(1);
}

/* ── Toggle Switch ── */
.neu-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.neu-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.neu-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.neu-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg);
    border-radius: var(--radius-full);
    box-shadow: var(--neu-shadow-inset-sm);
    transition: var(--transition);
    cursor: pointer;
}

.neu-toggle-slider::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: var(--neu-shadow-sm);
    transition: var(--transition);
}

.neu-toggle input:checked + .neu-toggle-slider {
    background: var(--accent-gradient);
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2), inset -1px -1px 3px rgba(255,255,255,0.1);
}

.neu-toggle input:checked + .neu-toggle-slider::after {
    transform: translateX(24px);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    background: #fff;
}

/* ── Range Slider ── */
.neu-range-wrap {
    background: var(--bg);
    border-radius: var(--radius-full);
    padding: 0.55rem 1rem;
    box-shadow: var(--neu-shadow-inset-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.neu-range-label { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.neu-range-value { font-size: 0.82rem; font-weight: 700; color: var(--accent); min-width: 2.5rem; text-align: right; }

input[type="range"].neu-range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: transparent;
    outline: none;
}

input[type="range"].neu-range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: var(--bg-dark);
    box-shadow: inset 1px 1px 3px var(--shadow-dark), inset -1px -1px 2px var(--shadow-light);
}

input[type="range"].neu-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: var(--neu-shadow-sm);
    margin-top: -8px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

input[type="range"].neu-range::-webkit-slider-thumb:hover {
    box-shadow: var(--neu-shadow), 0 0 0 3px rgba(108,99,255,0.2);
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */

/* Sizes */
.btn-neu-sm     { padding: 0.45rem 1.1rem !important; font-size: 0.8rem !important; }
.btn-neu-lg     { padding: 0.9rem 2.2rem !important; font-size: 1rem !important; }
.btn-neu-icon-sm { width: 34px !important; height: 34px !important; font-size: 1rem !important; }
.btn-neu-icon-lg { width: 54px !important; height: 54px !important; font-size: 1.3rem !important; }

/* ── Ghost Button ── */
.btn-neu-ghost {
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-neu-ghost:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* ── Danger Button ── */
.btn-neu-danger {
    background: linear-gradient(135deg, #ff6584, #ff4560);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.7rem 1.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 4px 4px 12px rgba(255,69,96,0.4), -2px -2px 8px var(--shadow-light);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-neu-danger:hover {
    box-shadow: 6px 6px 18px rgba(255,69,96,0.55), -3px -3px 10px var(--shadow-light);
    transform: translateY(-2px);
    color: #fff;
}

/* ── Success Button ── */
.btn-neu-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.7rem 1.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 4px 4px 12px rgba(34,197,94,0.4), -2px -2px 8px var(--shadow-light);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-neu-success:hover {
    box-shadow: 6px 6px 18px rgba(34,197,94,0.5), -3px -3px 10px var(--shadow-light);
    transform: translateY(-2px);
    color: #fff;
}

/* ── Loading state ── */
.btn-loading {
    pointer-events: none;
    opacity: 0.75;
}

.btn-loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ══════════════════════════════════════════════════════════
   BADGES & CHIPS
   ══════════════════════════════════════════════════════════ */

.neu-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: var(--neu-shadow-sm);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.neu-chip.removable { cursor: pointer; }
.neu-chip.removable:hover { box-shadow: var(--neu-shadow); color: var(--accent-2); }

.neu-chip .chip-remove {
    cursor: pointer;
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity 0.15s;
    margin-left: 0.1rem;
}

.neu-chip .chip-remove:hover { opacity: 1; color: var(--accent-2); }

/* Color variants */
.neu-chip.primary   { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.neu-chip.success   { background: rgba(34,197,94,.12); color: #16a34a; box-shadow: none; }
.neu-chip.danger    { background: rgba(255,101,132,.12); color: var(--accent-2); box-shadow: none; }
.neu-chip.warning   { background: rgba(249,115,22,.12); color: #ea580c; box-shadow: none; }
.neu-chip.info      { background: rgba(14,165,233,.12); color: #0284c7; box-shadow: none; }

/* Dot indicator */
.neu-chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════ */

.neu-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--bg);
    box-shadow: var(--neu-shadow-sm);
    position: relative;
    overflow: hidden;
}

.neu-alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: currentColor;
}

.neu-alert .alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.neu-alert .alert-body {}
.neu-alert .alert-title  { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.neu-alert .alert-text   { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.neu-alert .alert-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.5;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.neu-alert .alert-close:hover { opacity: 1; }

.neu-alert.info    { color: #0284c7; }
.neu-alert.success { color: #16a34a; }
.neu-alert.warning { color: #ea580c; }
.neu-alert.danger  { color: var(--accent-2); }

/* ══════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════ */

.neu-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.neu-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.neu-modal {
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow-lg), 0 20px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.neu-modal-backdrop.open .neu-modal {
    transform: translateY(0) scale(1);
}

.neu-modal.modal-sm { max-width: 380px; }
.neu-modal.modal-lg { max-width: 720px; }
.neu-modal.modal-xl { max-width: 960px; }

.neu-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.4rem 1.5rem 1rem;
    flex-shrink: 0;
}

.neu-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}

.neu-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg);
    box-shadow: var(--neu-shadow-sm);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.neu-modal-close:hover {
    box-shadow: var(--neu-shadow);
    color: var(--accent-2);
}

.neu-modal-body {
    padding: 0.5rem 1.5rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.neu-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.4rem;
    flex-shrink: 0;
    background: var(--bg);
}

.neu-modal-sep {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--shadow-dark) 20%, var(--shadow-dark) 80%, transparent);
    margin: 0 1.5rem;
    opacity: 0.4;
}

/* ── Modal Icon (for confirm dialogs) ── */
.neu-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--bg);
    box-shadow: var(--neu-shadow);
    margin: 0 auto 1.25rem;
}

.neu-modal-icon.danger  { color: var(--accent-2); }
.neu-modal-icon.success { color: #16a34a; }
.neu-modal-icon.warning { color: #ea580c; }
.neu-modal-icon.info    { color: #0284c7; }

/* ══════════════════════════════════════════════════════════
   TOAST / NOTIFICATIONS
   ══════════════════════════════════════════════════════════ */

#neu-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    pointer-events: none;
    max-width: 380px;
    width: calc(100vw - 3rem);
}

.neu-toast {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow-lg);
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    pointer-events: all;
    transform: translateX(0);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.neu-toast.entering {
    animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.neu-toast.leaving {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn  { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }
@keyframes toastOut { from { opacity:1; transform: translateX(0); }    to { opacity:0; transform: translateX(40px); } }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 2px 2px 0;
    transition: width linear;
}

.neu-toast .toast-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.neu-toast .toast-body { flex: 1; }
.neu-toast .toast-title { font-weight: 700; font-size: 0.88rem; }
.neu-toast .toast-msg   { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.1rem; line-height: 1.4; }
.neu-toast .toast-close { cursor: pointer; color: var(--text-light); font-size: 0.85rem; opacity: 0.7; transition: opacity 0.15s; flex-shrink: 0; }
.neu-toast .toast-close:hover { opacity: 1; }

.neu-toast.success .toast-icon { color: #16a34a; }
.neu-toast.success .toast-progress { background: #22c55e; }
.neu-toast.danger  .toast-icon { color: var(--accent-2); }
.neu-toast.danger  .toast-progress { background: var(--accent-2); }
.neu-toast.warning .toast-icon { color: #ea580c; }
.neu-toast.warning .toast-progress { background: #f97316; }
.neu-toast.info    .toast-icon { color: #0284c7; }
.neu-toast.info    .toast-progress { background: #0ea5e9; }

/* ══════════════════════════════════════════════════════════
   TOOLTIP
   ══════════════════════════════════════════════════════════ */

[data-neu-tip] { position: relative; cursor: default; }

[data-neu-tip]::before,
[data-neu-tip]::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 8000;
}

[data-neu-tip]::before {
    content: attr(data-neu-tip);
    background: var(--text-main);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
}

[data-neu-tip]::after {
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--text-main);
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
}

[data-neu-tip]:hover::before,
[data-neu-tip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

[data-tip-pos="bottom"]::before { top: calc(100% + 10px); bottom: auto; transform: translateX(-50%) translateY(-4px); }
[data-tip-pos="bottom"]::after  { top: calc(100% + 4px);  bottom: auto; border-top: none; border-bottom: 6px solid var(--text-main); transform: translateX(-50%) translateY(-4px); }
[data-tip-pos="bottom"]:hover::before { transform: translateX(-50%) translateY(0); }
[data-tip-pos="bottom"]:hover::after  { transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════════════════ */

.neu-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.neu-tab-list {
    display: flex;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow-inset-sm);
    padding: 0.35rem;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.neu-tab-list::-webkit-scrollbar { display: none; }

.neu-tab-btn {
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
}

.neu-tab-btn:hover  { color: var(--accent); background: var(--accent-soft); }
.neu-tab-btn.active { background: var(--bg); box-shadow: var(--neu-shadow-sm); color: var(--accent); }

.neu-tab-panel { display: none; }
.neu-tab-panel.active { display: block; animation: fadeSlideIn 0.3s ease; }

@keyframes fadeSlideIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* ══════════════════════════════════════════════════════════
   ACCORDION
   ══════════════════════════════════════════════════════════ */

.neu-accordion { display: flex; flex-direction: column; gap: 0.5rem; }

.neu-accordion-item {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.neu-accordion-item.open { box-shadow: var(--neu-shadow); }

.neu-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    transition: color 0.2s;
}

.neu-accordion-trigger:hover { color: var(--accent); }

.neu-accordion-icon {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.neu-accordion-item.open .neu-accordion-icon { transform: rotate(180deg); color: var(--accent); }

.neu-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 1.25rem;
}

.neu-accordion-item.open .neu-accordion-body {
    max-height: 600px;
    padding: 0 1.25rem 1.25rem;
}

.neu-accordion-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════════════════ */

.neu-table-wrap {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow);
    overflow: hidden;
}

.neu-table {
    width: 100%;
    border-collapse: collapse;
}

.neu-table thead tr {
    background: var(--bg);
    box-shadow: 0 2px 6px var(--shadow-dark);
}

.neu-table th {
    padding: 0.9rem 1.1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: left;
    border-bottom: 1px solid;
    border-color: rgba(0,0,0,0.05);
    white-space: nowrap;
}

.neu-table td {
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    color: var(--text-main);
    border-bottom: 1px solid;
    border-color: rgba(0,0,0,0.05);
    vertical-align: middle;
}

.neu-table tbody tr:last-child td { border-bottom: none; }

.neu-table tbody tr {
    transition: background 0.15s;
}

.neu-table tbody tr:hover {
    background: var(--accent-soft);
}

.neu-table.striped tbody tr:nth-child(even) {
    background: rgba(0,0,0,0.025);
}

/* ══════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════ */

.neu-pagination {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.neu-page-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: none;
    background: var(--bg);
    box-shadow: var(--neu-shadow-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: inherit;
    transition: var(--transition-fast);
}

.neu-page-btn:hover  { box-shadow: var(--neu-shadow); color: var(--accent); }
.neu-page-btn.active { background: var(--accent-gradient); color: #fff !important; box-shadow: 3px 3px 8px rgba(108,99,255,0.4); }
.neu-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   AVATAR
   ══════════════════════════════════════════════════════════ */

.neu-avatar {
    border-radius: 50%;
    background: var(--bg);
    box-shadow: var(--neu-shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.neu-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.neu-avatar-sm  { width: 32px;  height: 32px;  font-size: 0.75rem; }
.neu-avatar-md  { width: 44px;  height: 44px;  font-size: 0.9rem; }
.neu-avatar-lg  { width: 64px;  height: 64px;  font-size: 1.2rem; }
.neu-avatar-xl  { width: 88px;  height: 88px;  font-size: 1.6rem; }

.neu-avatar .avatar-status {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg);
}

.avatar-status.online  { background: #22c55e; }
.avatar-status.offline { background: var(--text-light); }
.avatar-status.busy    { background: var(--accent-2); }

.neu-avatar-group { display: flex; }
.neu-avatar-group .neu-avatar { margin-left: -10px; border: 2px solid var(--bg); }
.neu-avatar-group .neu-avatar:first-child { margin-left: 0; }

/* ══════════════════════════════════════════════════════════
   SKELETON LOADER
   ══════════════════════════════════════════════════════════ */

.neu-skeleton {
    background: var(--bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--neu-shadow-inset-sm);
    position: relative;
    overflow: hidden;
}

.neu-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

.skeleton-text  { height: 0.9rem; border-radius: var(--radius-full); }
.skeleton-title { height: 1.4rem; border-radius: var(--radius-full); }
.skeleton-btn   { height: 2.6rem; border-radius: var(--radius-full); }
.skeleton-card  { height: 180px; border-radius: var(--radius-lg); }
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; }

/* ══════════════════════════════════════════════════════════
   STEPPER
   ══════════════════════════════════════════════════════════ */

.neu-stepper {
    display: flex;
    align-items: center;
    gap: 0;
}

.neu-step {
    display: flex;
    align-items: center;
    flex: 1;
}

.neu-step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: var(--neu-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.neu-step.completed .neu-step-indicator {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 3px 3px 8px rgba(108,99,255,0.4);
}

.neu-step.active .neu-step-indicator {
    background: var(--bg);
    box-shadow: var(--neu-shadow), 0 0 0 3px rgba(108,99,255,0.25);
    color: var(--accent);
}

.neu-step-line {
    flex: 1;
    height: 3px;
    background: var(--bg);
    box-shadow: inset 1px 1px 3px var(--shadow-dark), inset -1px -1px 2px var(--shadow-light);
    transition: background 0.4s ease;
    margin: 0 0.5rem;
}

.neu-step.completed + .neu-step .neu-step-line,
.neu-step.completed .neu-step-line {
    background: var(--accent-gradient);
    box-shadow: none;
}

.neu-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.4rem;
    text-align: center;
}

.neu-step.active .neu-step-label    { color: var(--accent); }
.neu-step.completed .neu-step-label { color: var(--text-muted); }

.neu-step-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ══════════════════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════════════════ */

.neu-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 2.5rem;
}

.neu-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bg);
    box-shadow: inset 1px 1px 3px var(--shadow-dark), inset -1px -1px 2px var(--shadow-light);
    border-radius: 2px;
}

.neu-timeline-item {
    position: relative;
    padding: 0 0 1.75rem 1.25rem;
}

.neu-timeline-item:last-child { padding-bottom: 0; }

.neu-timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 0.1rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: var(--neu-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    z-index: 1;
    transition: var(--transition);
}

.neu-timeline-item.active .neu-timeline-dot {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 2px 2px 8px rgba(108,99,255,0.4);
}

.neu-timeline-date { font-size: 0.75rem; color: var(--text-light); font-weight: 600; margin-bottom: 0.3rem; }
.neu-timeline-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.25rem; }
.neu-timeline-body  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   PROGRESS
   ══════════════════════════════════════════════════════════ */

.neu-progress-group { display: flex; flex-direction: column; gap: 0.4rem; }
.neu-progress-header { display: flex; justify-content: space-between; align-items: center; }
.neu-progress-name  { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.neu-progress-pct   { font-size: 0.8rem; font-weight: 700; color: var(--accent); }

.neu-progress-wrap {
    background: var(--bg);
    border-radius: var(--radius-full);
    box-shadow: var(--neu-shadow-inset-sm);
    overflow: hidden;
}

.neu-progress-wrap.thick  { height: 14px; }
.neu-progress-wrap.thin   { height: 6px; }
.neu-progress-wrap         { height: 10px; }

.neu-progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    box-shadow: 2px 0 8px rgba(108,99,255,0.35);
    transition: width 0.9s cubic-bezier(0.25,0.8,0.25,1);
    position: relative;
    overflow: hidden;
}

.neu-progress-bar.striped::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(255,255,255,0.15) 8px,
        rgba(255,255,255,0.15) 16px
    );
    animation: stripeMove 1s linear infinite;
}

@keyframes stripeMove { from { background-position: 0 0; } to { background-position: 32px 0; } }

.neu-progress-bar.danger   { background: var(--accent-gradient2); box-shadow: 2px 0 8px rgba(255,101,132,0.35); }
.neu-progress-bar.success  { background: linear-gradient(135deg,#22c55e,#16a34a); box-shadow: 2px 0 8px rgba(34,197,94,0.35); }
.neu-progress-bar.warning  { background: linear-gradient(135deg,#f97316,#ea580c); box-shadow: 2px 0 8px rgba(249,115,22,0.35); }

/* ══════════════════════════════════════════════════════════
   STAT / KPI CARD
   ══════════════════════════════════════════════════════════ */

.neu-stat-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow);
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
}

.neu-stat-card:hover { box-shadow: var(--neu-shadow-lg); transform: translateY(-2px); }

.neu-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--neu-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
}

.neu-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1;
}

.neu-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.neu-stat-delta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.77rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 0.2rem 0.6rem;
}

.neu-stat-delta.up   { color: #16a34a; background: rgba(34,197,94,.12); }
.neu-stat-delta.down { color: var(--accent-2); background: rgba(255,101,132,.12); }

/* ══════════════════════════════════════════════════════════
   PRICING CARD
   ══════════════════════════════════════════════════════════ */

.neu-pricing-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.neu-pricing-card.featured {
    box-shadow: var(--neu-shadow-lg), 0 0 0 2px var(--accent);
}

.neu-pricing-card.featured::before {
    content: 'Mais Popular';
    position: absolute;
    top: 1.25rem;
    right: -2rem;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.3rem 3rem;
    transform: rotate(45deg);
    transform-origin: center;
}

.pricing-name    { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.pricing-price   { font-family: 'Space Grotesk',sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.03em; line-height: 1; }
.pricing-period  { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }
.pricing-desc    { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; padding: 0; }
.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--text-main);
}

.pricing-feature iconify-icon { color: #16a34a; font-size: 1rem; flex-shrink: 0; }
.pricing-feature.disabled iconify-icon { color: var(--text-light); }
.pricing-feature.disabled { color: var(--text-light); }

/* ══════════════════════════════════════════════════════════
   PROFILE / TEAM CARD
   ══════════════════════════════════════════════════════════ */

.neu-profile-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    transition: var(--transition);
}

.neu-profile-card:hover { box-shadow: var(--neu-shadow-lg); transform: translateY(-2px); }

.profile-name   { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.profile-role   { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.profile-bio    { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

.profile-socials { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.25rem; }

/* ══════════════════════════════════════════════════════════
   SECTION HEADER / DIVIDER
   ══════════════════════════════════════════════════════════ */

.neu-section-header {
    margin-bottom: 2.5rem;
}

.neu-section-header.centered { text-align: center; }
.neu-section-header.centered .neu-badge { margin: 0 auto 0.75rem; }

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
}

.neu-section-header.centered .section-sub { margin: 0 auto; }

.neu-ornament-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.neu-ornament-divider::before,
.neu-ornament-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--shadow-dark));
    opacity: 0.5;
}

.neu-ornament-divider::after {
    background: linear-gradient(to left, transparent, var(--shadow-dark));
}

.ornament-text { font-size: 0.8rem; color: var(--text-light); white-space: nowrap; font-weight: 600; letter-spacing: 0.05em; }

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════ */

.neu-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 3rem 2rem;
}

.neu-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
    background: var(--bg);
    box-shadow: var(--neu-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.neu-empty-title { font-size: 1.05rem; font-weight: 700; color: var(--text-main); }
.neu-empty-text  { font-size: 0.88rem; color: var(--text-muted); max-width: 360px; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   SEARCH BAR
   ══════════════════════════════════════════════════════════ */

.neu-search {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius-full);
    box-shadow: var(--neu-shadow-inset-sm);
    padding: 0.55rem 0.55rem 0.55rem 1.25rem;
    gap: 0.5rem;
    transition: box-shadow 0.25s;
}

.neu-search:focus-within {
    box-shadow: var(--neu-shadow-inset), 0 0 0 3px rgba(108,99,255,0.18);
}

.neu-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.92rem;
    flex: 1;
    min-width: 0;
}

.neu-search input::placeholder { color: var(--text-light); }

.neu-search .search-icon { color: var(--text-light); font-size: 1.05rem; flex-shrink: 0; }

.neu-search .search-btn {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    font-family: inherit;
}

.neu-search .search-btn:hover { transform: scale(1.03); }

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════ */

.neu-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg);
    border-radius: var(--radius-full);
    box-shadow: var(--neu-shadow-sm);
    padding: 0.45rem 1rem;
    width: fit-content;
    flex-wrap: wrap;
}

.neu-crumb {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.neu-crumb:hover { color: var(--accent); }
.neu-crumb.active { color: var(--text-main); font-weight: 600; }

.neu-crumb-sep { color: var(--text-light); font-size: 0.7rem; }

/* ══════════════════════════════════════════════════════════
   CODE BLOCK
   ══════════════════════════════════════════════════════════ */

.neu-code-block {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow-inset-sm);
    padding: 1.25rem;
    overflow-x: auto;
    position: relative;
}

.neu-code-block pre, .neu-code-block code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.7;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.neu-code-block .code-copy {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg);
    box-shadow: var(--neu-shadow-sm);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

.neu-code-block .code-copy:hover { color: var(--accent); box-shadow: var(--neu-shadow); }

/* ══════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON (FAB)
   ══════════════════════════════════════════════════════════ */

.neu-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 4px 4px 14px rgba(108,99,255,0.5), -2px -2px 8px var(--shadow-light);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

.neu-fab:hover { transform: scale(1.08) translateY(-2px); box-shadow: 6px 6px 20px rgba(108,99,255,0.6); }
.neu-fab:active { transform: scale(0.95); }

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE UTILITIES
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .neu-modal { max-width: 100%; border-radius: var(--radius-lg); }
    .neu-table-wrap { overflow-x: auto; }
    .neu-stepper { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .neu-step-line { width: 3px; height: 24px; margin: 0.25rem 0 0.25rem 19px; }
    .neu-step { flex-direction: row; width: 100%; }
    .section-title { font-size: 1.5rem; }
    #neu-toast-container { bottom: 1rem; right: 0.75rem; left: 0.75rem; max-width: none; }
}
