.account-orders-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.orders-hero-card {
    background: linear-gradient(135deg, #fff6f4 0%, #fef9ff 60%, #f5f8ff 100%);
    border: 1px solid rgba(242, 106, 48, 0.18);
    border-radius: 32px;
    padding: 36px 40px;
    box-shadow: 0 25px 60px rgba(242, 106, 48, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.orders-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 280px;
}

.hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: #fff;
    color: #f26a30;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 15px 40px rgba(242, 106, 48, 0.12);
}

.hero-text h1 {
    margin: 6px 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: #0f2f36;
}

.hero-text p {
    margin: 0;
    line-height: 1.7;
    color: #545a64;
    font-size: 15px;
}

.hero-label {
    font-size: 13px;
    font-weight: 700;
    color: #f26a30;
    letter-spacing: 0.3px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-badges span {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    color: #1d1d1f;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(242, 106, 48, 0.15);
}

.orders-hero-actions {
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.orders-search-field {
    background: #fff;
    border: 1px solid rgba(15, 47, 54, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 16px 35px rgba(15, 47, 54, 0.08);
}

.orders-search-field input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    color: #1a1a1a;
}

.orders-search-field input:focus {
    outline: none;
}

.orders-search-field i {
    color: #f26a30;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 12px 18px;
    background: #0f2f36;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 20px 38px rgba(15, 47, 54, 0.3);
}

.orders-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.orders-stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(15, 47, 54, 0.08);
    box-shadow: 0 12px 30px rgba(15, 47, 54, 0.08);
}

.orders-stat-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.orders-stat-card strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #0f2f36;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.stat-icon.primary {
    background: linear-gradient(135deg, #f26a30, #fd9561);
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #f7c948);
}

.stat-icon.success {
    background: linear-gradient(135deg, #0f8a5f, #14b789);
}

.stat-icon.danger {
    background: linear-gradient(135deg, #ef4444, #fb7185);
}

.orders-status-legend {
    background: #fff;
    border-radius: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(15, 47, 54, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.legend-title {
    font-weight: 600;
    color: #0f2f36;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legend-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #0f2f36;
    border: 1px solid rgba(15, 47, 54, 0.12);
}

.legend-pill.registered { background: rgba(244, 161, 98, 0.16); border-color: rgba(244, 161, 98, 0.3); }
.legend-pill.paid { background: rgba(49, 196, 141, 0.15); border-color: rgba(49, 196, 141, 0.35); }
.legend-pill.preparing { background: rgba(15, 47, 54, 0.08); border-color: rgba(15, 47, 54, 0.25); }
.legend-pill.shipped { background: rgba(87, 126, 251, 0.15); border-color: rgba(87, 126, 251, 0.3); }
.legend-pill.delivered { background: rgba(14, 165, 129, 0.16); border-color: rgba(14, 165, 129, 0.32); }
.legend-pill.cancelled { background: rgba(252, 129, 129, 0.16); border-color: rgba(252, 129, 129, 0.32); }

.orders-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tab-btn {
    border: 1px solid transparent;
    background: #fff;
    border-radius: 16px;
    padding: 12px 18px;
    min-width: 160px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    box-shadow: 0 8px 24px rgba(15, 47, 54, 0.08);
    transition: all 0.2s;
}

.tab-btn .tab-count {
    background: rgba(15, 47, 54, 0.08);
    color: #0f2f36;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #0f2f36, #143d48);
    color: #fff;
    box-shadow: 0 15px 34px rgba(15, 47, 54, 0.25);
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.orders-content {
    margin-top: 8px;
}

.order-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 47, 54, 0.08);
    padding: 20px;
    box-shadow: 0 15px 40px rgba(15, 47, 54, 0.08);
    margin-bottom: 18px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.order-number {
    font-weight: 700;
    color: #0f2f36;
    font-size: 15px;
}

.order-date {
    color: #9ca3af;
    font-size: 13px;
}

.order-status {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.order-status.registered,
.order-status.awaiting_confirmation { background: rgba(244, 161, 98, 0.15); color: #c05621; }
.order-status.paid { background: rgba(49, 196, 141, 0.15); color: #0f7a52; }
.order-status.preparing { background: rgba(15, 47, 54, 0.1); color: #0f2f36; }
.order-status.shipped { background: rgba(87, 126, 251, 0.15); color: #3651d9; }
.order-status.delivered { background: rgba(14, 165, 129, 0.18); color: #047857; }
.order-status.cancelled { background: rgba(239, 68, 68, 0.16); color: #b91c1c; }

.order-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    border: 1px dashed rgba(15, 47, 54, 0.12);
    border-radius: 16px;
    padding: 16px;
}

.order-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.order-item-image {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(15, 47, 54, 0.08);
    background: #f8fafc;
}

.order-item-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.order-item-meta {
    color: #9ca3af;
    font-size: 12px;
}

.order-item-price {
    font-weight: 700;
    color: #0f2f36;
    font-size: 13px;
    margin-top: 4px;
}

.order-footer {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.order-total-label {
    color: #9ca3af;
    font-size: 12px;
}

.order-total-amount {
    font-size: 18px;
    font-weight: 800;
    color: #0f2f36;
}

.order-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.orders-empty-state {
    text-align: center;
    background: #fff;
    border-radius: 28px;
    border: 1px dashed rgba(242, 106, 48, 0.4);
    padding: 60px 30px;
    box-shadow: 0 18px 45px rgba(242, 106, 48, 0.08);
}

.orders-empty-state .empty-icon {
    margin-bottom: 18px;
}

.orders-empty-state h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #0f2f36;
}

.orders-empty-state p {
    margin: 0;
    color: #6b7280;
}

.orders-empty-state .empty-cta {
    margin-top: 20px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 992px) {
    .orders-hero-card {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .orders-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .orders-tabs {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .orders-hero-card {
        padding: 24px;
    }

    .orders-stats-grid {
        grid-template-columns: 1fr;
    }

    .order-items {
        grid-template-columns: 1fr;
    }
}

