/* ===========================
   ARQUIVO: style.css
   MÓDULO: Meus Pedidos (Portal do Cliente)
   SISTEMA: Korx Solutions — tema claro / rosa
   =========================== */

/* ===========================
   ROOT VARIABLES
   =========================== */
:root {
    --primary-pink: #0043c5;
    --primary-pink-dark: #003399;
    --korx-blue: #0043c5;
    --light-bg: #e7edf7;
    --card-bg: #FFFFFF;
    --card-border: rgba(0, 67, 197, 0.14);
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --neon-green: #16A34A;
    --neon-yellow: #D97706;
    --neon-red: #DC2626;
    --neon-orange: #EA580C;
    --neon-purple: #7C3AED;
    --shadow-pink: 0 4px 16px rgba(0, 67, 197, 0.08);
    --cut-sm: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    --cut-md: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    --cut-lg: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    --z-dropdown: 100;
    --z-modal: 1000;
    --z-toast: 1200;
    --z-loading: 9999;
}

/* ===========================
   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(--light-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.8; transform: scale(1.1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ===========================
   NAVBAR
   =========================== */

.header-topbar {
    background: #f0f5ff;
    border-bottom: 1px solid rgba(0, 67, 197, 0.18);
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 36px;
}

.header-topbar-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.topbar-phone i { color: #0043c5; font-size: 0.7rem; }
.topbar-phone:hover { color: #0043c5; }

.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a { color: #9CA3AF; font-size: 0.92rem; text-decoration: none; transition: color 0.2s; }
.topbar-social a:hover { color: #0043c5; }

.navbar {
    position: static;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 67, 197, 0.1);
    padding: 0 36px;
    height: 68px;
    width: 100%;
    box-sizing: border-box;
    clip-path: none;
    filter: none;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    gap: 20px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.page-name {
    font: 700 0.85rem 'Rajdhani', 'Orbitron', monospace;
    color: rgba(0, 67, 197, 0.65);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-left: 15px;
    border-left: 2px solid rgba(0, 67, 197, 0.25);
    text-decoration: none;
    white-space: nowrap;
}

.btn-nav {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.45rem 1.1rem !important;
    height: 36px !important;
    background: transparent !important;
    color: #374151 !important;
    border: 1.5px solid rgba(0, 67, 197, 0.35) !important;
    border-radius: 6px !important;
    clip-path: none !important;
    outline: none !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.btn-nav i {
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
}

.btn-nav:hover {
    background: rgba(0, 67, 197, 0.06) !important;
    color: #0043c5 !important;
    border-color: rgba(0, 67, 197, 0.65) !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6B7280;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 4px 0 4px 16px;
    border-left: 1px solid rgba(0, 67, 197, 0.22);
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn-back-home i { font-size: 0.7rem; flex-shrink: 0; }

.btn-back-home:hover {
    color: #0043c5;
    border-left-color: rgba(0, 67, 197, 0.5);
}

/* Botão CTA (WhatsApp) */
.btn-nav.btn-orcamento {
    background: #0043c5 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(0, 67, 197, 0.3) !important;
}

.btn-nav.btn-orcamento:hover {
    background: #003399 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 16px rgba(0, 67, 197, 0.45) !important;
}

/* Mobile dropdown */
.mobile-nav-item:hover {
    background: rgba(0, 67, 197, 0.08) !important;
    border-color: #0043c5 !important;
}

.mobile-nav-item i {
    color: #0043c5 !important;
}

/* ===========================
   SECTION HEADER
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-tag {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #0043c5;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.section-title {
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-title i {
    color: #0043c5;
    font-size: 1.2rem;
}

.section-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #0043c5, #003399);
    margin: 0.75rem auto 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 100%, 6px 100%);
}

/* ===========================
   MAIN CONTAINER (order view)
   =========================== */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 120px;
    min-height: 100vh;
}

/* ===========================
   WELCOME SCREEN
   =========================== */
.welcome-screen {
    width: 100%;
}

.track-hero {
    padding: 48px 40px 0;
    background: transparent;
    border-bottom: none;
    clip-path: none;
    text-align: center;
}

.track-hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.track-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 67, 197, 0.07);
    border: 1px solid rgba(0, 67, 197, 0.3);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    padding: 6px 18px;
    margin-bottom: 1.5rem;
    color: #0043c5;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.track-hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #1F2937;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.track-hero-sub {
    color: #6B7280;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.75;
}

.track-body {
    max-width: 600px;
    margin: 0 auto;
    padding: 3.5rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.track-info-title {
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1F2937;
    margin-bottom: 0.75rem;
}

.track-info-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0043c5, #003399);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 100%, 6px 100%);
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.track-info-desc {
    color: #6B7280;
    font-family: 'Courier New', monospace;
    font-size: 0.87rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.track-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.track-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #FFFFFF;
    border-left: 2px solid rgba(0, 67, 197, 0.3);
    clip-path: var(--cut-sm);
    color: #6B7280;
    font-family: 'Courier New', monospace;
    font-size: 0.84rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 67, 197, 0.05);
}

.track-step:hover {
    background: rgba(0, 67, 197, 0.04);
    border-left-color: #0043c5;
    color: #1F2937;
}

.track-step i {
    color: #0043c5;
    font-size: 0.95rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.track-card {
    background: #FFFFFF;
    border-left: 3px solid #0043c5;
    clip-path: var(--cut-lg);
    padding: 2rem;
    box-shadow: 0 6px 24px rgba(0, 67, 197, 0.09);
}

.track-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 67, 197, 0.12);
}

.track-card-header i {
    color: #0043c5;
    font-size: 1.15rem;
}

.track-card-header h3 {
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1F2937;
    margin: 0;
}

.track-card-hint {
    color: #6B7280;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.track-card .code-input-container {
    margin-bottom: 0;
}

/* ===========================
   CODE INPUT
   =========================== */
.code-input-container {
    margin-bottom: 2rem;
}

.code-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #6B7280;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.code-label i {
    color: #0043c5;
}

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

.code-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: #FAFAFA;
    border: 1px solid rgba(0, 67, 197, 0.2);
    border-bottom: 2px solid #0043c5;
    border-radius: 0;
    clip-path: var(--cut-sm);
    color: #1F2937;
    font-size: 1.2rem;
    font-family: 'Orbitron', monospace;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    outline: none;
    transition: all 0.2s ease;
}

.code-input:focus {
    border-bottom-color: #003399;
    background: rgba(0, 67, 197, 0.03);
    box-shadow: 0 4px 16px rgba(0, 67, 197, 0.1);
}

.code-input.error {
    border-bottom-color: #DC2626;
    animation: shake 0.5s ease;
}

.btn-verify {
    padding: 0.875rem 1.5rem;
    background: #0043c5;
    color: white;
    border: none;
    border-radius: 6px;
    clip-path: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 67, 197, 0.3);
}

.btn-verify:hover {
    background: #003399;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 67, 197, 0.45);
}

.code-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: #9CA3AF;
    font-size: 0.82rem;
    font-family: 'Courier New', monospace;
}

.code-hint i { color: #0043c5; }

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

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

/* ===========================
   ORDER VIEW
   =========================== */
.order-view { animation: slideIn 0.3s ease; }
.order-view.hidden { display: none; }

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

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: #FFFFFF;
    border-left: 3px solid #0043c5;
    clip-path: var(--cut-md);
    box-shadow: var(--shadow-pink);
}

.btn-back, .btn-refresh {
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: #6B7280;
    border: 1px solid rgba(0, 67, 197, 0.25);
    border-radius: 0;
    clip-path: var(--cut-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-back:hover {
    color: #1F2937;
    border-color: #0043c5;
    background: rgba(0, 67, 197, 0.05);
}

.btn-refresh:hover {
    color: #0043c5;
    border-color: #0043c5;
    background: rgba(0, 67, 197, 0.05);
}

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

.order-title h2 {
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.order-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #0043c5;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    letter-spacing: 4px;
    font-weight: 700;
}

/* ===========================
   ORDER CARD
   =========================== */
.order-card {
    background: #FFFFFF;
    border: none;
    border-left: 3px solid #0043c5;
    clip-path: var(--cut-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-pink);
}

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

.order-name {
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1F2937;
}

.order-client {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* ===========================
   STATUS BADGE
   =========================== */
.status-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-pendente {
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid #D97706;
    color: #D97706;
}

.status-producao {
    background: rgba(0, 67, 197, 0.1);
    border: 1px solid #0043c5;
    color: #0043c5;
}

.status-concluido {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid #16A34A;
    color: #16A34A;
}

.status-retirada {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid #7C3AED;
    color: #7C3AED;
}

.status-transporte {
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid #EA580C;
    color: #EA580C;
}

.status-entregue {
    background: rgba(22, 163, 74, 0.07);
    border: 1px solid rgba(22, 163, 74, 0.5);
    color: rgba(22, 163, 74, 0.85);
}

/* ===========================
   ORDER DETAIL ITEMS
   =========================== */
.order-status-message {
    background: rgba(0, 67, 197, 0.05);
    border-left: 3px solid #0043c5;
    padding: 0.875rem 1rem;
    margin-bottom: 1.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #6B7280;
    clip-path: var(--cut-sm);
}

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

.detail-item {
    padding: 1rem;
    background: #F9FAFB;
    border-left: 2px solid rgba(0, 67, 197, 0.25);
    clip-path: var(--cut-sm);
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: rgba(0, 67, 197, 0.04);
    border-left-color: #0043c5;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6B7280;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.detail-label i {
    color: #0043c5;
    width: 14px;
    text-align: center;
    font-size: 0.82rem;
}

.detail-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.detail-value.deadline-today {
    color: #DC2626;
}

.deadline-alert {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #DC2626;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ===========================
   DELIVERY ADDRESS
   =========================== */
.delivery-address-container {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(124, 58, 237, 0.06);
    border-left: 2px solid #7C3AED;
    clip-path: var(--cut-sm);
    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;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #6B7280;
}

/* ===========================
   TRACKING CODE
   =========================== */
.tracking-code {
    font-family: 'Orbitron', monospace;
    font-size: 1.05rem;
    color: #0043c5;
    letter-spacing: 2px;
    word-break: break-all;
    display: block;
    max-width: 100%;
}

/* ===========================
   TIMELINE
   =========================== */
.timeline-section {
    background: #FFFFFF;
    border-left: 3px solid #0043c5;
    clip-path: var(--cut-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-pink);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, #0043c5, rgba(0, 67, 197, 0.1));
}

.timeline-item {
    position: relative;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    background: #F9FAFB;
    border-left: 2px solid rgba(0, 67, 197, 0.25);
    clip-path: var(--cut-sm);
    margin-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.2rem;
    width: 10px;
    height: 10px;
    background: #0043c5;
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.timeline-item.completed::before {
    background: #16A34A;
}

.timeline-date {
    color: #9CA3AF;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.timeline-content {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
    letter-spacing: 0.5px;
}

/* ===========================
   CLIENT ACTIONS
   =========================== */
.client-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-action {
    padding-inline: 2rem;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0;
    clip-path: var(--cut-md);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-action.whatsapp:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-tracking {
    padding: 0.45rem 1rem;
    background: rgba(0, 67, 197, 0.08);
    color: #0043c5;
    border: 1px solid rgba(0, 67, 197, 0.3);
    border-radius: 0;
    clip-path: var(--cut-sm);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-tracking:hover {
    background: rgba(0, 67, 197, 0.14);
    color: #003399;
    transform: translateX(3px);
}

/* ===========================
   TOAST NOTIFICATIONS
   =========================== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: var(--z-toast, 1200);
}

.toast {
    background: #FFFFFF;
    border: none;
    border-left: 3px solid #0043c5;
    clip-path: var(--cut-sm);
    padding: 0.875rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.toast.success { border-left-color: #16A34A; }
.toast.error   { border-left-color: #DC2626; }
.toast.info    { border-left-color: #0043c5; }

.toast-icon { font-size: 1.2rem; }
.toast.success .toast-icon { color: #16A34A; }
.toast.error   .toast-icon { color: #DC2626; }
.toast.info    .toast-icon { color: #0043c5; }

.toast-message {
    flex: 1;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1F2937;
}

/* ===========================
   MODAL
   =========================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(5px);
    z-index: var(--z-modal, 1000);
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    background: #FFFFFF;
    border: none;
    border-left: 3px solid #0043c5;
    clip-path: var(--cut-lg);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 67, 197, 0.12);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 67, 197, 0.12);
}

.modal-header h3 {
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1F2937;
}

.modal-close {
    background: transparent;
    border: none;
    color: #6B7280;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover { color: #0043c5; }

.modal-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.7;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 67, 197, 0.1);
}

.btn-cancel, .btn-confirm {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0;
    clip-path: var(--cut-sm);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #F9FAFB;
    color: #6B7280;
    border: 1px solid rgba(0, 67, 197, 0.18);
}

.btn-cancel:hover {
    color: #1F2937;
    border-color: rgba(0, 67, 197, 0.4);
}

.btn-confirm {
    background: #0043c5;
    color: white;
}

.btn-confirm:hover {
    background: #003399;
    transform: translateX(3px);
}

/* ===========================
   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; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ===========================
   FOOTER
   =========================== */
footer {
    background: #F9FAFB;
    position: relative;
    padding: 0;
    margin-top: 3rem;
}

footer::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0043c5 30%, #FF4FA3 50%, #0043c5 70%, transparent);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 40px 14px;
}

.footer-brand-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 67, 197, 0.1);
    margin-bottom: 14px;
}

.footer-brand-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-img {
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 67, 197, 0.18));
}

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
}

.footer-word-korx { color: #0043c5; }

.footer-word-solutions {
    color: transparent;
    -webkit-text-stroke: 1.5px #777777;
}

.footer-tagline {
    color: #374151;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-contact-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 4px 16px;
    transition: color 0.2s;
}

.footer-contact-item:hover { color: #0043c5; }

.footer-contact-item i {
    color: #0043c5;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.footer-contact-sep {
    width: 1px;
    height: 18px;
    background: rgba(0, 67, 197, 0.18);
    flex-shrink: 0;
}

.footer-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 67, 197, 0.08);
    border-bottom: 1px solid rgba(0, 67, 197, 0.08);
    margin-bottom: 12px;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #374151;
    text-decoration: none;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    transition: color 0.2s;
}

.footer-nav a:hover { color: #0043c5; }

.footer-nav-sep { color: rgba(0, 67, 197, 0.25); font-size: 0.7rem; }

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

.social-link {
    width: 36px;
    height: 36px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    background: rgba(0, 67, 197, 0.07);
    border: 1px solid rgba(0, 67, 197, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0043c5;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: rgba(0, 67, 197, 0.18);
    color: #003399;
    transform: translateY(-2px);
}

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

.footer-bottom p { color: #4B5563; font-size: 0.8rem; letter-spacing: 0.5px; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
        padding-top: 100px;
    }

    .btn-back-home span { display: none; }
    .btn-back-home { padding-left: 12px; }

    .track-hero {
        padding: 100px 24px 72px;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 48px) 100%, 0 100%);
    }

    .track-body {
        gap: 1.5rem;
        padding: 2.5rem 1.25rem 3rem;
    }

    .order-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        clip-path: var(--cut-md);
    }

    .client-actions { flex-direction: column; }

    .order-details { grid-template-columns: 1fr; }

    .footer-content { padding: 36px 24px 24px; }
    .footer-nav-row { flex-direction: column; align-items: center; gap: 16px; }
    .footer-nav { justify-content: center; }
    .footer-contact-bar { flex-direction: column; gap: 4px; }
    .footer-contact-sep { display: none; }
}

@media (max-width: 480px) {
    .track-hero {
        padding: 90px 16px 64px;
    }

    .track-hero-title {
        font-size: 1.75rem;
        letter-spacing: 2px;
    }

    .track-body {
        padding: 2rem 1rem 2.5rem;
    }

    .code-input-group { flex-direction: column; }

    .order-card {
        padding: 1.25rem;
        clip-path: var(--cut-md);
    }

    .timeline-section {
        padding: 1.25rem;
        clip-path: var(--cut-md);
    }

    .order-status-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-badge { width: 100%; text-align: center; }

    .toast { min-width: 240px; }
}
