/* ===========================
   ARQUIVO: style.css
   MÓDULO: Acompanhar Pedido (Portal do Cliente)
   SISTEMA: Korx Solutions - Gestão de Impressão 3D
   VERSÃO: 2.1 - Mobile Responsivo
   IMPORTANTE: NÃO REMOVER ESTE CABEÇALHO DE IDENTIFICAÇÃO
   =========================== */

/* Root Variables */
:root {
    --primary-blue: #2A6EA7;
    --secondary-blue: #57D4CA;
    --neon-blue: #00D4FF;
    --neon-red: #FF0055;
    --neon-green: #00FF88;
    --neon-yellow: #FFD700;
    --neon-purple: #9945FF;
    --neon-orange: #FF6B35;
    --dark-bg: #0a0e1a;
    --card-bg: #111827;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===========================
   BACKGROUND EFFECTS
   =========================== */
/* Importado de /shared/cosmic-bg.css */

/* Loading Overlay - Usa /shared/loading.css */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(0, 255, 136, 0);
    }
}

/* ===========================
   HEADER / NAVBAR - Usa /shared/navbar.css
   Apenas customizacoes especificas do painel
   =========================== */

/* Estilo especifico para page-name (nao existe no shared) */
.page-name {
    font: 600 1.1rem 'Orbitron', monospace;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Botao WhatsApp customizado */
.btn-nav.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white !important;
    border-color: #25d366;
}

.btn-nav.whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.btn-orcamento {
    background: linear-gradient(135deg, #00D4FF, #0077FF);
    color: white !important;
    border: 1px solid #00D4FF;
}

.btn-orcamento:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}

/* ===========================
   MAIN CONTAINER
   =========================== */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 120px;
    min-height: 100vh;
}

/* ===========================
   WELCOME SCREEN
   =========================== */

.welcome-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 2rem 0;
}

.welcome-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-glow);
}

.welcome-header {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-icon {
    font-size: 4rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.welcome-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===========================
   LOGIN SECTION
   =========================== */

.btn-google {
    width: 100%;
    padding: 1rem;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn-google i {
    font-size: 1.2rem;
}

.divider {
    text-align: center;
    color: var(--text-secondary);
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    background: var(--card-bg);
    padding: 0 1rem;
    position: relative;
    font-size: 0.9rem;
}

/* ===========================
   INFO STEPS
   =========================== */

.info-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.step-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===========================
   CODE SECTION
   =========================== */

.code-section {
    animation: fadeIn 0.3s ease;
}

.code-section.hidden {
    display: none;
}

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

/* ===========================
   LOGGED USER CARD - Floating Pill
   Estilos especificos para o card de usuario logado
   Seletores especificos para evitar conflito com /shared/navbar.css
   =========================== */

.code-section .user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem;
    padding-right: 0.5rem;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: none;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.code-section .user-photo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    flex-shrink: 0;
    object-fit: cover;
}

.code-section .user-details {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.code-section .user-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.code-section .btn-logout {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 0, 85, 0.12);
    color: #ff4d6d;
    border: none;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.code-section .btn-logout:hover {
    background: rgba(255, 0, 85, 0.22);
}

/* Mobile: Layout compacto mas visivel */
@media (max-width: 480px) {
    .code-section .user-info {
        gap: 0.5rem;
        padding: 0.375rem;
        padding-right: 0.375rem;
    }

    .code-section .user-photo {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .code-section .user-name {
        font-size: 0.8rem;
    }

    .code-section .btn-logout {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        gap: 0.25rem;
    }

    .code-section .btn-logout i {
        font-size: 0.7rem;
    }
}

/* Telas muito pequenas: Mostrar apenas icone no botao */
@media (max-width: 360px) {
    .code-section .user-info {
        gap: 0.4rem;
        padding: 0.3rem;
    }

    .code-section .user-photo {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        border-width: 1.5px;
    }

    .code-section .user-name {
        font-size: 0.75rem;
    }

    .code-section .btn-logout {
        padding: 0.35rem;
        border-radius: 50%;
        min-width: 28px;
        min-height: 28px;
        justify-content: center;
    }

    .code-section .btn-logout span,
    .code-section .btn-logout-text {
        display: none;
    }
}

/* ===========================
   CODE INPUT
   =========================== */

.code-input-container {
    margin-bottom: 2rem;
}

.code-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.code-input-group {
    display: flex;
    gap: 1rem;
}

.code-input {
    flex: 1;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: 'Orbitron', monospace;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.code-input.error {
    border-color: var(--neon-red);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-verify {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.code-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.attempts-warning {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: var(--neon-orange);
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease;
}

.attempts-warning.show {
    display: flex;
}

/* ===========================
   MY ORDERS SECTION
   =========================== */

.my-orders-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--neon-blue);
}

.order-item-code {
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    color: var(--neon-blue);
}

.order-item-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===========================
   ORDER VIEW
   =========================== */

.order-view {
    animation: slideIn 0.3s ease;
}

.order-view.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.order-container {
    max-width: 900px;
    margin: 0 auto;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 10px;
}

.btn-back, .btn-refresh {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-refresh:hover {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    animation: spin 1s ease;
}

.order-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.order-code-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* ===========================
   ORDER CARD
   =========================== */

.order-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glow);
}

.order-status-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
}

.status-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-pendente {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid var(--neon-yellow);
    color: var(--neon-yellow);
}

.status-producao {
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    animation: pulse-border 2s ease-in-out infinite;
}

.status-concluido {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
}

.status-retirada {
    background: rgba(153, 69, 255, 0.2);
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
}

.status-transporte {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid var(--neon-orange);
    color: var(--neon-orange);
    animation: pulse-border 3s ease-in-out infinite;
}

.status-entregue {
    background: rgba(87, 212, 202, 0.2);
    border: 2px solid var(--secondary-blue);
    color: var(--secondary-blue);
}

@keyframes pulse-border {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* ===========================
   DELIVERY ADDRESS CONTAINER
   =========================== */

.delivery-address-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(153, 69, 255, 0.1);
    border: 1px solid var(--neon-purple);
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.delivery-address-container p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
    line-height: 1.6;
}

/* ===========================
   TRACKING CODE
   =========================== */

.tracking-code {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: var(--neon-blue);
    letter-spacing: 2px;
    word-break: break-all;
    display: block;
    max-width: 100%;
}

/* ===========================
   TIMELINE
   =========================== */

.timeline-section {
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    margin-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: var(--neon-blue);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.timeline-item.completed::before {
    background: var(--neon-green);
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.timeline-content {
    font-size: 0.95rem;
}

/* ===========================
   CLIENT ACTIONS
   =========================== */

.client-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-action {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-action.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.btn-action.print {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Button for tracking - Direct link to Correios */
.btn-tracking {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-tracking:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 15px rgba(0, 212, 255, 0.4);
    color: white;
}

/* ===========================
   TOAST NOTIFICATIONS
   =========================== */

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-color: var(--neon-green);
}

.toast.error {
    border-color: var(--neon-red);
}

.toast.info {
    border-color: var(--neon-blue);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast.success .toast-icon {
    color: var(--neon-green);
}

.toast.error .toast-icon {
    color: var(--neon-red);
}

.toast.info .toast-icon {
    color: var(--neon-blue);
}

.toast-message {
    flex: 1;
}

/* ===========================
   MODAL
   =========================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: var(--z-popover, 2000);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

/* Scrollbar do modal - respeita border-radius */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 15px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--neon-red);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.btn-cancel, .btn-confirm {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-confirm {
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    color: white;
}

.btn-cancel:hover, .btn-confirm:hover {
    transform: translateY(-2px);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    /* Navbar: estilos responsivos vem de /shared/navbar.css */

    /* Esconder page-name especifico deste painel */
    .page-name {
        display: none;
    }

    .main-container {
        padding: 1rem;
        padding-top: 100px;
    }

    .welcome-card {
        padding: 2rem 1.5rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    .welcome-header h2 {
        font-size: 1.5rem;
    }
    
    .code-input-group {
        flex-direction: column;
    }
    
    .order-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .client-actions {
        flex-direction: column;
    }
    
    .order-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Navbar: estilos responsivos vem de /shared/navbar.css */

    /* Outros elementos mobile */
    .step {
        flex-direction: column;
        text-align: center;
    }

    /* user-info e user-details: mantidos horizontais (estilos base) */

    .toast {
        min-width: 250px;
        right: 10px;
    }
    
    /* Correções mobile adicionadas */
    .welcome-card {
        padding: 1.5rem 1rem;
    }
    
    .order-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-item {
        padding: 0.75rem;
    }
    
    .detail-item[style*="grid-column: 1 / -1"] {
        grid-column: 1;
    }
    
    .order-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .status-badge {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .code-input {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .btn-verify {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        margin-left: 0.5rem;
        padding: 0.75rem;
    }
    
    .timeline-item::before {
        left: -1.25rem;
    }
    
    .delivery-address-container {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .tracking-code {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* ===========================
   UTILS
   =========================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }

/* ===========================
   PRODUCT PHOTOS GALLERY
   =========================== */

.product-photos-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.photos-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--neon-purple);
}

.photos-header i {
    font-size: 1.2rem;
}

.photos-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.photos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 30px rgba(153, 69, 255, 0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: white;
    font-size: 2rem;
}

/* ===========================
   PHOTO MODAL
   =========================== */

.photo-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-loading, 10000);
    display: none;
    align-items: center;
    justify-content: center;
}

.photo-modal.active {
    display: flex;
}

.photo-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-raised, 1);
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: var(--z-raised, 2);
}

.photo-modal-close:hover {
    background: var(--neon-red);
    border-color: var(--neon-red);
    transform: scale(1.1);
}

.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: var(--z-raised, 2);
}

.photo-nav-btn:hover {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    transform: translateY(-50%) scale(1.1);
}

.photo-nav-btn.prev {
    left: 20px;
}

.photo-nav-btn.next {
    right: 20px;
}

.photo-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--neon-purple);
    z-index: var(--z-raised, 2);
}

/* Mobile adjustments for photo gallery */
@media (max-width: 768px) {
    .photos-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .photo-nav-btn,
    .photo-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .photo-nav-btn.prev {
        left: 10px;
    }

    .photo-nav-btn.next {
        right: 10px;
    }

    .photo-counter {
        bottom: 20px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .photos-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .product-photos-section {
        padding: 1rem;
    }

    .photos-header h4 {
        font-size: 0.95rem;
    }
}
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ===========================
   SHIMMER LOADING ANIMATION
   =========================== */
@keyframes shimmer-photo {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.photo-item.loading {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer-photo 1.5s ease-in-out infinite;
}

.photo-item img {
    transition: opacity 0.4s ease;
    opacity: 0;
}

.photo-item.loaded img {
    opacity: 1;
}

/* ========== FOOTER (identico ao site principal) ========== */
footer {
    padding: 60px 20px 30px;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 14, 26, 0.95);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin: 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.footer-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-list li i {
    color: var(--neon-blue);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--neon-blue);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg, rgba(255,255,255,0.03));
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    overflow: hidden;
}

.social-link:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 20px 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-list {
        align-items: center;
    }

    .footer-bottom {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        font-size: 1.3rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-list li {
        font-size: 0.85rem;
    }
}

/* ===========================
   LOGIN COM E-MAIL
   =========================== */

.auth-email-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.auth-email-divider::before,
.auth-email-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-email-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.auth-email-hint {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.auth-email-input,
.auth-email-code {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.auth-email-input::placeholder,
.auth-email-code::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-email-input:focus,
.auth-email-code:focus {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.06);
}

.auth-email-code {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.auth-btn-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.08));
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 10px;
    color: #00d4ff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-btn-email:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 212, 255, 0.15));
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.auth-btn-email i {
    font-size: 1rem;
}