/* ==========================================================================
   Meus Pedidos — Gamerplace Portal (Design System & Contraste AAA)
   ========================================================================== */

.nav-link-active {
    color: var(--color-orange, #f97316) !important;
}

.portal-hero {
    padding: 120px 24px 80px;
    position: relative;
}

.portal-hero-container {
    align-items: start;
    display: grid;
    gap: 40px;
    margin: 0 auto;
    max-width: 1100px;
}

.portal-hero-content h1 {
    color: #ffffff !important;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 12px 0 16px;
}

.portal-hero-content h1 .accent {
    background: var(--gta-gradient, linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Card de formulário / Acesso */
.portal-card {
    background: rgba(20, 14, 30, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    padding: 32px;
}

.portal-card-title {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.portal-card-desc {
    color: #d1d5db !important;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.portal-form .input-group label {
    color: #e5e7eb !important;
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.portal-form .input-group input {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 12px;
    box-sizing: border-box;
    color: #ffffff !important;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 1rem;
    padding: 14px 16px;
    transition: all 0.25s ease;
    width: 100%;
}

.portal-form .input-group input:focus {
    border-color: #00ff88 !important;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.3) !important;
    outline: none;
}

.portal-error {
    color: #ff4d4f !important;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.portal-submit {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
    width: 100%;
}

.loader {
    animation: portalSpin 1s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    border-top-color: #fff;
    height: 22px;
    width: 22px;
}

@keyframes portalSpin {
    to { transform: rotate(360deg); }
}

/* Seções de Lista e Detalhes */
.portal-section {
    padding: 110px 24px 70px;
}

.portal-section-container {
    margin: 0 auto;
    max-width: 860px;
}

.portal-section-container--detail {
    max-width: 920px;
}

.portal-section-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.portal-section-header h2 {
    color: #ffffff !important;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    margin: 8px 0 6px;
}

.portal-section-desc {
    color: #d1d5db !important;
    font-size: 0.95rem;
}

/* Botão SAIR (Alta visibilidade e contraste AAA) */
#btn-logout,
.portal-btn-sm {
    align-items: center;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    gap: 8px;
    padding: 10px 22px !important;
    transition: all 0.25s ease !important;
}

#btn-logout:hover,
.portal-btn-sm:hover {
    background: rgba(255, 77, 79, 0.2) !important;
    border-color: #ff4d4f !important;
    color: #ff6b6b !important;
    box-shadow: 0 0 15px rgba(255, 77, 79, 0.3) !important;
}

/* Botão Voltar */
.portal-back-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.92rem;
    font-weight: 700;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 18px;
    transition: all 0.25s ease;
}

.portal-back-btn:hover {
    background: rgba(0, 255, 136, 0.15) !important;
    border-color: #00ff88 !important;
    color: #00ff88 !important;
}

/* Lista de Pedidos (Cards) */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-list-card {
    background: rgba(20, 14, 30, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    padding: 22px 24px;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.order-list-card:hover,
.order-list-card:focus-visible {
    background: rgba(28, 19, 42, 0.95) !important;
    border-color: #00ff88 !important;
    box-shadow: 0 14px 40px rgba(0, 255, 136, 0.18) !important;
    transform: translateY(-3px);
}

.order-list-card:focus-visible {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

.order-list-top {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.order-list-id {
    color: #c084fc !important; /* Neon Purple AAA */
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.order-list-date {
    color: #9ca3af !important;
    font-size: 0.85rem;
    font-weight: 500;
}

.order-list-product {
    color: #ffffff !important; /* Branquíssimo AAA */
    font-family: var(--font-titles, 'Outfit', sans-serif);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
}

.order-list-platform {
    color: #d1d5db !important; /* Alto Contraste AAA */
    font-size: 0.95rem;
    font-weight: 600;
}

.order-list-bottom {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.order-list-price {
    color: #00ff88 !important; /* Verde Neon Gamerplace AAA */
    font-size: 1.25rem;
    font-weight: 900;
}

/* Badges de Status (Contraste AAA) */
.order-status {
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-paid {
    background: rgba(0, 255, 136, 0.15) !important;
    border: 1px solid #00ff88 !important;
    color: #00ff88 !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.status-pending {
    background: rgba(249, 115, 22, 0.15) !important;
    border: 1px solid #f97316 !important;
    color: #ff9d42 !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.status-failed {
    background: rgba(255, 77, 79, 0.15) !important;
    border: 1px solid #ff4d4f !important;
    color: #ff6b6b !important;
}

.status-canceled {
    background: rgba(156, 163, 175, 0.15) !important;
    border: 1px solid #9ca3af !important;
    color: #e5e7eb !important;
}

.portal-empty {
    background: rgba(20, 14, 30, 0.92);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
}

.portal-empty p {
    color: #d1d5db !important;
    margin-bottom: 20px;
}

/* Detalhe do pedido */
.order-detail-card {
    background: rgba(20, 14, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.order-detail-header {
    padding: 32px 28px 24px;
    text-align: center;
}

.order-detail-icon {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    font-size: 1.75rem;
    font-weight: 800;
    height: 64px;
    justify-content: center;
    margin-bottom: 16px;
    width: 64px;
}

.order-detail-icon--approved {
    background: rgba(0, 255, 136, 0.15);
    border: 2px solid #00ff88;
    color: #00ff88;
}

.order-detail-icon--pending {
    background: rgba(249, 115, 22, 0.15);
    border: 2px solid #f97316;
    color: #ff9d42;
}

.order-detail-icon--failed {
    background: rgba(255, 77, 79, 0.15);
    border: 2px solid #ff4d4f;
    color: #ff6b6b;
}

.order-detail-title {
    color: #ffffff !important;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 900;
    margin-bottom: 8px;
}

.order-detail-subtitle {
    color: #d1d5db !important;
    font-size: 0.95rem;
    line-height: 1.55;
}

.order-detail-product-line {
    color: #00ff88 !important;
    font-size: 1rem5;
    font-weight: 800;
    margin-top: 12px;
}

.order-detail-id {
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #c084fc !important;
    cursor: pointer;
    display: inline-flex;
    font-family: monospace;
    font-size: 0.88rem;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 14px;
    transition: all 0.25s ease;
}

.order-detail-id:hover {
    border-color: #00ff88;
    color: #00ff88 !important;
}

.order-detail-body {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 0;
}

.detail-block {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 28px;
}

.detail-block:last-child {
    border-bottom: none;
}

.detail-block h3 {
    color: #9ca3af !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-item-label {
    color: #9ca3af !important;
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.detail-item-value {
    color: #ffffff !important;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
}

.detail-item-value--highlight {
    color: #00ff88 !important;
    font-weight: 800;
}

.detail-with-art {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: 96px 1fr;
}

.detail-art {
    border-radius: 14px;
    object-fit: cover;
    width: 96px;
}

.success-next-steps {
    color: #d1d5db !important;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 18px;
}

.success-next-steps li {
    margin-bottom: 6px;
}

.success-pickup-info {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 14px;
    margin-top: 16px;
    padding: 18px;
}

.success-pickup-title {
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.success-pickup-desc {
    color: #d1d5db !important;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

.success-pickup-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.success-pickup-list li {
    border-left: 2px solid #f97316;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 10px;
    padding-left: 12px;
}

.success-pickup-list li strong {
    color: #ffffff !important;
    display: block;
    margin-bottom: 2px;
}

.success-pickup-list li span {
    color: #d1d5db !important;
}

.success-pickup-hours {
    color: #9ca3af !important;
    font-size: 0.82rem;
    margin-top: 10px;
}

.pix-recovery {
    align-items: center;
    background: rgba(249, 115, 22, 0.08);
    border: 1px dashed rgba(249, 115, 22, 0.4);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
    padding: 20px;
    text-align: center;
}

.pix-recovery img {
    background: #fff;
    border-radius: 10px;
    height: 180px;
    object-fit: contain;
    padding: 10px;
    width: 180px;
}

.pix-code-field {
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed rgba(0, 255, 136, 0.4);
    border-radius: 10px;
    color: #00ff88 !important;
    font-family: monospace;
    font-size: 0.82rem;
    line-height: 1.4;
    max-height: 72px;
    overflow: auto;
    padding: 12px;
    text-align: left;
    width: 100%;
    word-break: break-all;
}

.order-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 24px 28px 28px;
}

.order-detail-actions .btn-primary,
.order-detail-actions .btn-secondary {
    min-width: 180px;
    text-align: center;
}

.portal-toast {
    background: rgba(16, 185, 129, 0.98);
    border-radius: 10px;
    bottom: 96px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    left: 50%;
    padding: 12px 20px;
    position: fixed;
    transform: translateX(-50%);
    z-index: 2000;
}

@media (min-width: 900px) {
    .portal-hero-container {
        align-items: center;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .portal-card {
        padding: 24px 20px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-with-art {
        grid-template-columns: 72px 1fr;
    }

    .detail-art {
        width: 72px;
    }

    .order-detail-actions .btn-primary,
    .order-detail-actions .btn-secondary {
        width: 100%;
    }
}
