@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* OVERLAY */
.account-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.account-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* SIDEBAR */
.account-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: 380px;
    max-width: 100vw;
    background: #1a1a1a;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.account-sidebar.open {
    transform: translateX(0);
}

/* HEADER */
.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 16px;
    background: #242424;
    border-bottom: 1px solid #2e2e2e;
    flex-shrink: 0;
}

.account-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #c9a961;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

.account-header-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.account-greeting {
    font-size: 11px;
    font-weight: 400;
    color: #888;
}

.account-name {
    font-size: 16px;
    font-weight: 700;
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    line-height: 1.25;
}

.account-email {
    font-size: 11px;
    font-weight: 400;
    color: #666;
    margin-top: 1px;
}

.account-close {
    background: #2e2e2e;
    border: none;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.account-close:hover {
    background: #3a3a3a;
    color: #f0f0f0;
}

/* TABS */
.account-tabs {
    display: flex;
    background: #242424;
    border-bottom: 1px solid #2e2e2e;
    flex-shrink: 0;
}

.account-tab {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    letter-spacing: 0;
}

.account-tab:hover {
    color: #c9a961;
}

.account-tab.active {
    color: #c9a961;
    border-bottom-color: #c9a961;
}

/* PAINÉIS */
.account-panel {
    display: none;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2e2e2e transparent;
}

.account-panel.active {
    display: flex;
    flex-direction: column;
}

.account-panel::-webkit-scrollbar {
    width: 4px;
}

.account-panel::-webkit-scrollbar-track {
    background: transparent;
}

.account-panel::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 4px;
}

/* PEDIDOS — estado vazio */
.account-orders-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2rem;
    text-align: center;
}

.account-orders-empty .empty-icon {
    font-size: 40px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.account-orders-empty .empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

.account-orders-empty p {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    max-width: 200px;
    margin: 0;
}

.account-orders-empty .empty-cta {
    margin-top: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    background: #c9a961;
    border: none;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}

.account-orders-empty .empty-cta:hover {
    background: #d4b870;
}

/* PEDIDOS — loading skeleton */
.account-order-skeleton {
    background: #242424;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 14px;
    margin: 0 16px 10px;
    animation: account-pulse 1.4s ease-in-out infinite;
}

.account-order-skeleton .skel-line {
    height: 10px;
    border-radius: 4px;
    background: #2e2e2e;
    margin-bottom: 8px;
}

.account-order-skeleton .skel-line.lg {
    width: 60%;
}

.account-order-skeleton .skel-line.md {
    width: 40%;
}

.account-order-skeleton .skel-line.sm {
    width: 80%;
    margin-bottom: 0;
}

@keyframes account-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* PEDIDOS — card */
.account-order-card {
    background: #242424;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 14px;
    margin: 0 16px 10px;
    transition: border-color 0.15s;
}

.account-order-card:first-child {
    margin-top: 16px;
}

.account-order-card:hover {
    border-color: #3a3a3a;
}

.account-order-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.account-order-num {
    font-size: 13px;
    font-weight: 600;
    color: #c9a961;
    letter-spacing: 0;
}

.account-order-date {
    font-size: 11px;
    font-weight: 400;
    color: #666;
    margin-top: 2px;
}

.account-order-total {
    font-size: 14px;
    font-weight: 700;
    color: #f0f0f0;
}

/* STATUS BADGES */
.account-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    margin-bottom: 10px;
}

.account-status-badge.pendente {
    background: #2a1a00;
    color: #e8a135;
    border: 1px solid #5a3a10;
}

.account-status-badge.aguardando {
    background: #1a1a00;
    color: #d4c84a;
    border: 1px solid #4a4a10;
}

.account-status-badge.pago {
    background: #0a1e0a;
    color: #5dba7a;
    border: 1px solid #1a5a2a;
}

.account-status-badge.enviado {
    background: #0a1520;
    color: #4a9fd4;
    border: 1px solid #1a4a7a;
}

.account-status-badge.entregue {
    background: #0a1e0a;
    color: #5dba7a;
    border: 1px solid #1a5a2a;
}

.account-status-badge.cancelado {
    background: #200a0a;
    color: #e05555;
    border: 1px solid #5a1a1a;
}

/* ITENS DO PEDIDO */
.account-order-items {
    border-top: 1px solid #2e2e2e;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.account-order-item-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #2e2e2e;
    border: 1px solid #3a3a3a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.account-order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PAINEL DADOS */
.account-dados-grid {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
}

.account-dado-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid #2e2e2e;
}

.account-dado-item:last-child {
    border-bottom: none;
}

.account-dado-label {
    font-size: 11px;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.account-dado-value {
    font-size: 14px;
    font-weight: 500;
    color: #d0d0d0;
}

/* FOOTER */
.account-footer {
    padding: 12px 16px;
    border-top: 1px solid #2e2e2e;
    flex-shrink: 0;
    background: #242424;
}

.account-logout-btn {
    width: 100%;
    padding: 11px;
    border-radius: 6px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.account-logout-btn:hover {
    border-color: #e05555;
    color: #e05555;
    background: #2a1515;
}

/* RESPONSIVO */
@media (max-width: 420px) {
    .account-sidebar {
        width: 100vw;
    }
}