:root{
    --vx-bg: #f5f6f8;
    --vx-card: #ffffff;
    --vx-border: rgba(15, 23, 42, .08);
    --vx-muted: #6b7280;
    --vx-title: #0f172a;
    --vx-shadow: 0 10px 30px rgba(2, 6, 23, .06);
    --vx-shadow-soft: 0 10px 25px rgba(0,0,0,.04);
    --vx-radius: 16px;
    --vx-radius-sm: 12px;

    --vx-purple-1: #5b21b6;
    --vx-purple-2: #6d28d9;
    --vx-purple-3: #7c3aed;
    --vx-purple-4: #a78bfa;
}

body{ background: var(--vx-bg); color: var(--vx-title); }

/* Cards */
.card-soft{
    background: var(--vx-card);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    box-shadow: var(--vx-shadow-soft);
}

.muted{ color: var(--vx-muted); }
.tiny{ font-size: .92rem; }

.vx-section-title{
    font-weight: 800;
    color: var(--vx-title);
    font-size: 1rem;
    margin: 0;
}

.vx-hr{
    border:0;
    height:1px;
    background: linear-gradient(to right, transparent, rgba(15,23,42,.10), transparent);
    margin: 1rem 0;
}

/* Badge estado */
.order-badge{
    font-weight: 900;
    border-radius: 999px;
    padding: .32rem .72rem;
    font-size: .78rem;
    border: 1px solid rgba(0,0,0,.06);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.order-badge i{ font-size: .8rem; opacity: .9; }

/* Header de cada pedido */
.vx-order-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: .75rem;
}
.vx-order-number{
    font-weight: 900;
    letter-spacing: -.01em;
}

/* Lista de items */
.order-items{ margin:0; padding-left: 1.15rem; }
.order-items li{ line-height: 1.25rem; }

/* Variaciones "bonitas" */
.variation-lines{ margin-left: 1rem; margin-top: .35rem; }
.variation-pill{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    padding:.20rem .58rem;
    border-radius:999px;
    border:1px solid rgba(15,23,42,.10);
    background:#f8fafc;
    font-size:.82rem;
    margin: .15rem .25rem 0 0;
}
.variation-pill i{ font-size:.8rem; opacity:.75; }
.variation-pill .variation-price{ color:#16a34a; font-weight:900; }

/* Bloque domiciliario */
.driver-box{
    display:flex; align-items:center; gap:.85rem;
    background: #fffbea;
    border:1px solid rgba(250,204,21,.35);
    border-radius: var(--vx-radius);
    padding: .85rem 1rem;
}
.driver-avatar{
    width:44px; height:44px; border-radius:999px; object-fit:cover;
    border: 2px solid rgba(15,23,42,.08);
    background:#fff;
    flex: 0 0 auto;
}
.driver-chip{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    padding:.18rem .55rem;
    border-radius:999px;
    background: rgba(250,204,21,.18);
    border: 1px solid rgba(250,204,21,.35);
    font-weight: 800;
    font-size: .78rem;
    color:#92400e;
}

/* Form teléfono */
.vx-form-label{
    font-weight: 900;
    letter-spacing: -.01em;
}
.vx-input{
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    padding: .65rem .85rem;
}
.vx-btn-primary{
    border-radius: 14px;
    font-weight: 900;
    padding: .62rem .9rem;
}

/* Botón cancelar */
.vx-btn-cancel{
    border-radius: 999px;
    font-weight: 900;
}

/* ===== Header morado para Mis pedidos ===== */
.mp-hero{
    background: linear-gradient(135deg, var(--vx-purple-1) 0%, var(--vx-purple-2) 45%, var(--vx-purple-3) 75%, var(--vx-purple-4) 100%);
    color: #fff;
    border-radius: 18px;
    padding: 18px 18px;
    box-shadow: 0 18px 45px rgba(2, 6, 23, .25);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
}
.mp-hero::after{
    content:"";
    position:absolute;
    inset:-40% -30% auto auto;
    width: 420px;
    height: 220px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 60%);
    transform: rotate(-12deg);
    pointer-events:none;
}
.mp-hero .mp-title{
    font-weight: 900;
    font-size: 1.55rem;
    margin: 0;
    line-height: 1.1;
}
.mp-hero .mp-subtitle{
    margin-top: .35rem;
    color: rgba(255,255,255,.86);
    font-size: .95rem;
}
.mp-hero .mp-btn-back{
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color:#fff;
    padding: .45rem .85rem;
}
.mp-hero .mp-btn-back:hover{
    background: rgba(255,255,255,.18);
    color:#fff;
}

/* ===== OTP Card ===== */
.otp-card-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 1rem;
}
.otp-chip{
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    border-radius:999px;
    padding:.25rem .65rem;
    font-size:.78rem;
    font-weight: 900;
    border: 1px solid rgba(15,23,42,.10);
    background:#f8fafc;
}
.otp-chip.is-ok{
    border-color: rgba(34,197,94,.22);
    background: rgba(34,197,94,.10);
    color: #166534;
}
.otp-chip.is-warn{
    border-color: rgba(245,158,11,.28);
    background: rgba(245,158,11,.10);
    color: #92400e;
}

.otp-actions{
    display:flex;
    gap:.5rem;
    flex-wrap:wrap;
}
.btn-purple{
    background: linear-gradient(135deg, rgba(109,40,217,1), rgba(124,58,237,1));
    border: 0;
    color:#fff;
    box-shadow: 0 12px 25px rgba(109,40,217,.22);
}
.btn-purple:hover{ filter: brightness(1.02); color:#fff; }
.btn-soft{
    border: 1px solid rgba(15,23,42,.12);
    background: #fff;
    color: rgba(15,23,42,.82);
}
.btn-soft:hover{ background:#f8fafc; }

/* Código OTP */
.otp-code{
    letter-spacing: .35em;
    font-weight: 900;
    text-align:center;
    font-size: 1.05rem;
}

/* Contador de tiempo para OTP */
.otp-timer{
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.otp-timer.expired{ color: #dc3545; }
.otp-timer.active{ color: #198754; }

/* =========================
   Modal bonito de cancelar
   ========================= */
.vx-modal .modal-content{
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 25px 70px rgba(2,6,23,.25);
    overflow: hidden;
}
.vx-modal .modal-header{
    border: 0;
    background: linear-gradient(135deg, rgba(239,68,68,.10), rgba(245,158,11,.08));
}
.vx-modal .vx-modal-icon{
    width: 44px; height: 44px;
    border-radius: 14px;
    display:flex; align-items:center; justify-content:center;
    background: rgba(239,68,68,.14);
    border: 1px solid rgba(239,68,68,.22);
    color: #ef4444;
    flex: 0 0 auto;
}
.vx-modal .modal-title{
    font-weight: 900;
    letter-spacing: -.01em;
}
.vx-modal .modal-body{ padding-top: .75rem; }
.vx-modal .vx-modal-note{
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    padding: .75rem .9rem;
    color: rgba(15,23,42,.75);
}
.vx-modal .modal-footer{
    border: 0;
    padding-top: .25rem;
}
.vx-modal .btn{
    border-radius: 14px;
    font-weight: 900;
    padding: .6rem .9rem;
}
.vx-modal .btn-outline-secondary{
    border-color: rgba(15,23,42,.18);
}

@media (min-width: 768px){
    .mp-hero{ padding: 22px 22px; }
}

/* ======================================================
   PARCHADO: paginación bonita (Bootstrap 5 + Tailwind)
   ====================================================== */

/* Wrapper (si usas uno). No hace daño si no existe. */
.mp-pagination,
.vx-pagination{
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ====== Bootstrap 5 paginator ====== */
.pagination{
    margin: 0;
    gap: .45rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-item{
    margin: 0;
}

.pagination .page-link{
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.95);
    color: rgba(15,23,42,.78);
    font-weight: 900;
    border-radius: 999px;
    padding: .45rem .75rem;
    min-width: 42px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(2,6,23,.06);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.pagination .page-link:hover{
    transform: translateY(-1px);
    border-color: rgba(124,58,237,.28);
    background: rgba(124,58,237,.06);
    box-shadow: 0 18px 40px rgba(109,40,217,.14);
    color: rgba(15,23,42,.88);
}

.pagination .page-link:focus{
    box-shadow: 0 0 0 .2rem rgba(124,58,237,.22);
}

.pagination .page-item.active .page-link{
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--vx-purple-2), var(--vx-purple-3));
    box-shadow: 0 18px 45px rgba(109,40,217,.22);
}

.pagination .page-item.disabled .page-link{
    opacity: .55;
    pointer-events: none;
    background: rgba(255,255,255,.75);
}

/* Flechas (Anterior/Siguiente) con look de botón */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link{
    padding-left: .9rem;
    padding-right: .9rem;
}

/* ====== Tailwind/Laravel paginator (nav aria-label Pagination Navigation) ====== */
nav[aria-label="Pagination Navigation"],
nav[role="navigation"][aria-label="Pagination Navigation"]{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Contenedor interno típico de ese paginator */
nav[aria-label="Pagination Navigation"] > div,
nav[role="navigation"][aria-label="Pagination Navigation"] > div{
    width: 100%;
    max-width: 720px;
}

/* “Showing X to Y of Z” */
nav[aria-label="Pagination Navigation"] .text-sm.text-gray-700,
nav[role="navigation"][aria-label="Pagination Navigation"] .text-sm.text-gray-700{
    color: rgba(15,23,42,.60) !important;
    font-weight: 700;
    text-align: center;
    margin-top: .5rem;
}

/* Botones y números del paginator Tailwind */
nav[aria-label="Pagination Navigation"] a,
nav[aria-label="Pagination Navigation"] span,
nav[role="navigation"][aria-label="Pagination Navigation"] a,
nav[role="navigation"][aria-label="Pagination Navigation"] span{
    border-radius: 999px !important;
}

/* Links clicables */
nav[aria-label="Pagination Navigation"] a,
nav[role="navigation"][aria-label="Pagination Navigation"] a{
    border: 1px solid rgba(15,23,42,.10) !important;
    background: rgba(255,255,255,.95) !important;
    color: rgba(15,23,42,.78) !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 25px rgba(2,6,23,.06);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

nav[aria-label="Pagination Navigation"] a:hover,
nav[role="navigation"][aria-label="Pagination Navigation"] a:hover{
    transform: translateY(-1px);
    border-color: rgba(124,58,237,.28) !important;
    background: rgba(124,58,237,.06) !important;
    box-shadow: 0 18px 40px rgba(109,40,217,.14);
    color: rgba(15,23,42,.88) !important;
}

/* Página activa (Tailwind suele renderizarla como span con estilos “current”) */
nav[aria-label="Pagination Navigation"] span[aria-current="page"],
nav[role="navigation"][aria-label="Pagination Navigation"] span[aria-current="page"]{
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--vx-purple-2), var(--vx-purple-3)) !important;
    box-shadow: 0 18px 45px rgba(109,40,217,.22);
}

/* Disabled (Tailwind los deja como span) */
nav[aria-label="Pagination Navigation"] span[aria-disabled="true"],
nav[role="navigation"][aria-label="Pagination Navigation"] span[aria-disabled="true"]{
    opacity: .55 !important;
    background: rgba(255,255,255,.75) !important;
    border: 1px solid rgba(15,23,42,.10) !important;
}

/* ====== Responsive ====== */
@media (max-width: 420px){
    .pagination .page-link{
        padding: .42rem .68rem;
        min-width: 40px;
        font-size: .92rem;
    }
    nav[aria-label="Pagination Navigation"] .text-sm.text-gray-700,
    nav[role="navigation"][aria-label="Pagination Navigation"] .text-sm.text-gray-700{
        font-size: .9rem;
    }
}



/* ===== Paginación bonita (Bootstrap 5) ===== */
.mp-pagination{
    margin-top: 1rem;
}

.mp-pagination .pagination{
    margin: 0;
    gap: .45rem;
    flex-wrap: wrap;
    justify-content: center;
}

.mp-pagination .page-link{
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.95);
    color: rgba(15,23,42,.78);
    font-weight: 900;
    border-radius: 999px;
    padding: .45rem .75rem;
    min-width: 42px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(2,6,23,.06);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.mp-pagination .page-link:hover{
    transform: translateY(-1px);
    border-color: rgba(124,58,237,.28);
    background: rgba(124,58,237,.06);
    box-shadow: 0 18px 40px rgba(109,40,217,.14);
    color: rgba(15,23,42,.88);
}

.mp-pagination .page-link:focus{
    box-shadow: 0 0 0 .2rem rgba(124,58,237,.22);
}

.mp-pagination .page-item.active .page-link{
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--vx-purple-2), var(--vx-purple-3));
    box-shadow: 0 18px 45px rgba(109,40,217,.22);
}

.mp-pagination .page-item.disabled .page-link{
    opacity: .55;
    pointer-events: none;
    background: rgba(255,255,255,.75);
}
