﻿/* ===================== CUSTOM STYLES ===================== */

:root {
    --primary: #00E5FF;
    --secondary: #BF5AF2;
    --bg: #070B14;
    --card: #0D1526;
}

/* ===================== CART SIDEBAR ===================== */
/* CSS riêng, không phụ thuộc Tailwind — đảm bảo hoạt động mọi trang */
#cart-sidebar {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cart-sidebar.cart-is-open {
    transform: translateX(0);
}

#cart-sidebar-overlay {
    transition: opacity 0.3s ease;
}

#menu-btn, #cart-btn-mobile, #cart-btn-desktop, #close-cart-btn {
    cursor: pointer;
    touch-action: manipulation;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

/* ---- Text gradient ---- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary {
    background: var(--primary);
    color: #070B14;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.55);
    transform: translateY(-1px);
}

/* ---- Glass card ---- */
.card-glass {
    background: rgba(13, 21, 38, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: border-color 0.25s, box-shadow 0.25s;
}
@media (min-width: 768px) {
    .card-glass { backdrop-filter: blur(12px); background: rgba(13, 21, 38, 0.7); }
}

.card-glass:hover {
    border-color: rgba(0, 229, 255, 0.2);
}

/* ---- Navbar scroll ---- */
#navbar {
    transition: all .4s ease;
}

#navbar.scrolled {
    background: rgba(7, 11, 20, 0.96);
    padding-top: 12px;
    padding-bottom: 12px;
}
@media (min-width: 768px) {
    #navbar.scrolled { background: rgba(7, 11, 20, 0.85); backdrop-filter: blur(16px); }
}

/* ---- Reveal animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Tab buttons ---- */
.tab-btn {
    padding: 8px 20px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #070B14;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

/* ---- Destination card ---- */
.dest-card {
    background: rgba(13, 21, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dest-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.04);
}

/* ---- Flash sale filter ---- */
.sale-filter {
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sale-filter:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.sale-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #070B14;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* ---- Sale card ---- */
.sale-card {
    background: rgba(13, 21, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    flex-shrink: 0;
    width: 260px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.sale-card:hover {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.07);
}

/* ---- Sale ribbon ---- */
.sale-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 72px;
    height: 72px;
    overflow: hidden;
    z-index: 2;
}

.sale-ribbon span {
    position: absolute;
    top: 14px;
    right: -20px;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 28px;
    transform: rotate(45deg);
    display: block;
    white-space: nowrap;
}

/* ---- Qty btn ---- */
.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---- Tour filter buttons ---- */
.tour-filter {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s;
}

.tour-filter:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.tour-filter.active {
    background: #BF5AF2;
    border-color: #BF5AF2;
    color: #fff;
    box-shadow: 0 0 10px rgba(191, 90, 242, 0.35);
}

/* ---- Tour cards ---- */
.tour-card {
    background: #0D1526;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, box-shadow 0.25s;
    display: flex !important;
    flex-direction: column;
    height: auto !important;
}

.tour-card:hover {
    border-color: rgba(191, 90, 242, 0.4);
    box-shadow: 0 0 24px rgba(191, 90, 242, 0.12);
}

.tour-card img {
    transition: transform 0.5s;
}

.tour-card:hover img {
    transform: scale(1.05);
}

.tour-card .bg-card {
    flex: 1;
}

/* ---- Why Choose Us cards ---- */
.why-card {
    position: relative;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.why-card:hover {
    transform: translateY(-3px);
}

/* ---- Feature card icon animations ---- */

/* Card 1: Lightning bolt — glow pulse */
@keyframes bolt-glow {

    0%,
    100% {
        box-shadow: 0 0 14px rgba(0, 229, 255, 0.20);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 28px rgba(0, 229, 255, 0.50);
        transform: scale(1.10);
    }
}

.why-icon-bolt {
    animation: bolt-glow 2.4s ease-in-out infinite;
}

@keyframes bolt-svg {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    40% {
        opacity: 0.7;
        transform: scale(0.90) translateY(-2px);
    }

    60% {
        opacity: 1;
        transform: scale(1.10) translateY(1px);
    }
}

.why-icon-bolt svg {
    animation: bolt-svg 2.4s ease-in-out infinite;
}

/* Card 2: Shield — scale pulse + orange glow */
@keyframes shield-pulse {

    0%,
    100% {
        box-shadow: 0 0 16px rgba(249, 115, 22, 0.25);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 32px rgba(249, 115, 22, 0.55);
        transform: scale(1.08);
    }
}

.why-icon-shield {
    animation: shield-pulse 2.8s ease-in-out infinite;
}

/* Card 2 & 4: Arrow — slide-right pulse */
@keyframes arrow-flow {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.50;
    }

    50% {
        transform: translateX(5px);
        opacity: 1.00;
    }
}

.why-arrow-flow {
    animation: arrow-flow 1.6s ease-in-out infinite;
}

.why-arrow-flow-2 {
    animation: arrow-flow 1.6s ease-in-out infinite 0.3s;
}

/* Card 3: Phone — gentle wiggle (ring effect) */
@keyframes phone-ring {

    0%,
    90%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-16deg);
    }

    20% {
        transform: rotate(14deg);
    }

    30% {
        transform: rotate(-10deg);
    }

    40% {
        transform: rotate(8deg);
    }

    50% {
        transform: rotate(-4deg);
    }

    60% {
        transform: rotate(3deg);
    }
}

.why-phone-ring {
    animation: phone-ring 3.2s ease-in-out infinite;
    transform-origin: center bottom;
    display: inline-block;
}

/* Card 4: Database — gentle float up/down */
@keyframes db-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.why-icon-db {
    animation: db-float 3s ease-in-out infinite;
}

/* Card 5: Globe — slow rotation */
@keyframes globe-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.why-globe-spin {
    animation: globe-spin 18s linear infinite;
}

/* Card 5: Signal waves — ripple scale up */
@keyframes wave-ripple {

    0%,
    100% {
        opacity: 0.60;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

.why-wave-1 {
    animation: wave-ripple 1.8s ease-in-out infinite;
}

.why-wave-2 {
    animation: wave-ripple 1.8s ease-in-out infinite 0.3s;
}

.why-wave-3 {
    animation: wave-ripple 1.8s ease-in-out infinite 0.6s;
}

/* Card 6: Badge float — staggered up/down */
@keyframes badge-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.why-badge {
    animation: badge-float 2.8s ease-in-out infinite;
}

.why-badge:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 2.6s;
}

.why-badge:nth-child(2) {
    animation-delay: 0.3s;
    animation-duration: 3.0s;
}

.why-badge:nth-child(3) {
    animation-delay: 0.6s;
    animation-duration: 2.8s;
}

.why-badge:nth-child(4) {
    animation-delay: 0.9s;
    animation-duration: 3.2s;
}

.why-badge:nth-child(5) {
    animation-delay: 1.2s;
    animation-duration: 2.5s;
}

.why-badge:nth-child(6) {
    animation-delay: 1.5s;
    animation-duration: 3.1s;
}

/* ---- Affiliate bar ---- */
.affiliate-bar {
    width: 0;
    transition: width 1s ease;
}

/* ---- FAQ ---- */
.faq-item {
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: rgba(0, 229, 255, 0.2);
}

.faq-chevron {
    transition: transform 0.3s;
}

.faq-chevron.open {
    transform: rotate(180deg);
}

/* ===================== HERO ENHANCED ===================== */

/* Animated background orbs — không dùng filter:blur (quá nặng trên mobile) */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}
@media (min-width: 768px) {
    .hero-orb {
        filter: blur(80px);
        opacity: 0.7;
        animation: hero-orb-pulse 6s ease-in-out infinite;
    }
}

.hero-orb--cyan {
    width: 500px;
    height: 500px;
    top: -10%;
    left: 25%;
    background: rgba(0, 229, 255, 0.08);
    animation-delay: 0s;
}

.hero-orb--purple {
    width: 420px;
    height: 420px;
    top: 30%;
    right: 10%;
    background: rgba(191, 90, 242, 0.10);
    animation-delay: 2s;
}

.hero-orb--blue {
    width: 350px;
    height: 350px;
    bottom: 5%;
    left: 5%;
    background: rgba(59, 130, 246, 0.08);
    animation-delay: 4s;
}

@keyframes hero-orb-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Destination ticker */
.hero-ticker {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-ticker__track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: ticker-scroll 280s linear infinite;
}

.font-black {
    font-weight: 700 !important;
}

.hero-ticker__track span {
    flex-shrink: 0;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-ticker__track span:last-child {
    border-right: none;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Spinning decorative ring */
.hero-spin-ring {
    position: absolute;
    animation: hero-ring-spin 30s linear infinite;
}

@keyframes hero-ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Floating cards container */
.hero-float {
    animation: hero-float-anim 4s ease-in-out infinite;
    animation-delay: var(--hf-delay, 0s);
}

@keyframes hero-float-anim {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* eSIM Hero card */
.hero-card {
    position: absolute;
    background: rgba(13, 21, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s;
    overflow: hidden;
    cursor: default;
}
@media (min-width: 768px) {
    .hero-card { backdrop-filter: blur(16px); background: rgba(13, 21, 38, 0.85); }
}

.hero-card:hover {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.12);
}

.hero-card--main {
    width: 160px;
    top: calc(50% - 95px);
    left: calc(50% - 80px);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.18);
    padding: 20px 16px;
}

.hero-card--sm {
    width: 130px;
    z-index: 8;
}

/* hero-card__glow: chỉ hiện trên desktop để tránh GPU blur trên mobile */
.hero-card__glow {
    display: none;
}
@media (min-width: 768px) {
    .hero-card__glow {
        display: block;
        position: absolute;
        inset: -40%;
        border-radius: 50%;
        opacity: 0.15;
        filter: blur(30px);
        pointer-events: none;
    }
}

.hero-card__glow--red {
    background: #FF3B5C;
}

.hero-card__glow--teal {
    background: #00E5FF;
}

.hero-card__glow--blue {
    background: #007AFF;
}

.hero-card__glow--green {
    background: #34C759;
}

.hero-card__glow--purple {
    background: #BF5AF2;
}

.hero-card__chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-card__code {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.hero-card__net {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.hero-card__net--5g {
    background: rgba(0, 229, 255, 0.2);
    color: #00E5FF;
}

.hero-card__net--4g {
    background: rgba(52, 199, 89, 0.2);
    color: #34C759;
}

.hero-card__flag {
    font-size: 36px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.hero-card--sm .hero-card__flag {
    font-size: 28px;
}

.hero-card__name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.hero-card--sm .hero-card__name {
    font-size: 11px;
}

.hero-card__footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-card__footer span:first-child {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
}

.hero-card__price {
    font-size: 12px;
    font-weight: 700;
    color: #00E5FF;
}

.hero-card--sm .hero-card__price {
    font-size: 11px;
}

/* Live toast notification */
.hero-toast {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 21, 38, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 100px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 20;
    animation: toast-slide-in 0.4s ease forwards;
}

.hero-toast__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34C759;
    flex-shrink: 0;
    animation: pulse-anim 2s infinite;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ---- Pulse dot ---- */
.pulse-dot {
    animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }
}

/* ---- Hide scrollbar ---- */
#sale-carousel::-webkit-scrollbar {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .sale-card {
        width: 230px;
    }
}

/* =====================================================================
   SOCIAL SIDEBAR — floating pills on right edge
===================================================================== */
body .socials-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    align-items: end;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    height: 48px;
    padding: 0 14px 0 14px;
    border-radius: 28px 0 0 28px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Be Vietnam Pro', sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    /* Start peeking just the icon part */
    width: 48px;
    transform: translateX(0px);
    transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        transform 0.25s ease;
    box-shadow: -3px 4px 20px rgba(0, 0, 0, 0.35);
}

/* Brand colors */
.social-icon--fb {
    background: #1877F2;
}

.social-icon--zalo {
    background: #0068FF;
}

.social-icon--tt {
    background: #010101;
}

/* Icon wrapper — always visible, fixed size */
.social-icon .si-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* Label — hidden by default, revealed on expand */
.social-icon .si-label {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease 0.1s, transform 0.2s ease 0.1s;
    pointer-events: none;
    font-size: 13px;
}

/* Hover: slide open */
.social-icon:hover {
    width: 130px;
    box-shadow: -6px 6px 30px rgba(0, 0, 0, 0.45);
}

.social-icon--fb:hover {
    box-shadow: -4px 4px 24px rgba(24, 119, 242, 0.5);
}

.social-icon--zalo:hover {
    box-shadow: -4px 4px 24px rgba(0, 104, 255, 0.5);
}

.social-icon--tt:hover {
    box-shadow: -4px 4px 24px rgba(105, 201, 208, 0.45);
}

.social-icon:hover .si-label {
    opacity: 1;
    transform: translateX(0);
}

/* Active press */
.social-icon:active {
    transform: scale(0.96) translateX(2px);
}

/* Ripple effect */
.social-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.15s;
}

.social-icon:active::after {
    opacity: 1;
}

/* Ping dot on Zalo to grab attention */
.social-icon--zalo .si-ping {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 9px;
    height: 9px;
    background: #00E5FF;
    border-radius: 50%;
    border: 2px solid #0068FF;
    animation: si-ping 1.8s ease-in-out infinite;
}

@keyframes si-ping {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    60% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .socials-sidebar {
        top: auto;
        bottom: 20px;
        right: 16px;
        transform: none;
        flex-direction: row;
        gap: 8px;
    }

    .social-icon {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .social-icon .si-label {
        display: none;
    }

    .social-icon--zalo .si-ping {
        top: 4px;
        left: 4px;
    }

    .social-icon:hover {
        width: 46px;
    }
}

/* =====================================================================
   HERO GLOBE CANVAS
   ===================================================================== */
#hero-globe {
    opacity: 0.85;
    border-radius: 12px;
    will-change: transform;
    isolation: isolate;
}

#hero-right {
    isolation: isolate;
}

#hero-cards {
    will-change: transform;
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active.swiper-pagination-bullet {
    background-color: #00E5FF !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* --- Fix Swiper gap/width inline styles for desktop grids (lg: >= 1024px) --- */
@media (min-width: 1024px) {

    .how-swiper .swiper-wrapper,
    .why-swiper .swiper-wrapper,
    .tour-swiper .swiper-wrapper,
    .testimonials-swiper .swiper-wrapper {
        transform: none !important;
    }

    .how-swiper .swiper-slide,
    .why-swiper .swiper-slide,
    .tour-swiper .swiper-slide,
    .testimonials-swiper .swiper-slide {
        width: auto !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* ---- eSIM Filters ---- */
.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.filter-select {
    width: 100%;
    background: rgba(13, 21, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 10px auto;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}

.filter-select option {
    background: var(--card);
    color: #fff;
}

.esim-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
}

.esim-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transition: transform 0.1s;
}

.esim-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.view-btn {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
}

.view-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.view-btn.active {
    color: #00E5FF;
    background: rgba(0, 229, 255, 0.1);
}

/* =====================================================================
   MOBILE HERO ARC CAROUSEL
   ===================================================================== */
/* Override dest-fan trong hero mobile */
.hero-mobile-fan.dest-fan {
    height: 360px;
    --carousel-r: 200;
    margin: 0 auto;
    overflow: visible;
}

/* Ẩn hoàn toàn mobile carousel trên desktop (md+) */
@media (min-width: 768px) {

    #hero-mobile-wrapper,
    .hero-mobile-fan,
    .hero-mobile-fan.dest-fan {
        display: none !important;
    }

    /* Force show hero-right (Tailwind hidden md:flex chưa compile) */
    #hero-right {
        display: flex !important;
    }
}

/* arc-card-mobile: không có transition để JS có thể đặt transform mượt */
.arc-card-mobile {
    transition: none !important;
}

/* Override kích thước card trong mobile hero carousel — rộng hơn About page */
.hero-mobile-fan .dest-fan-card {
    width: 200px;
    margin-left: -100px;
    /* half of width */
}

/* Mobile toast dạng pill inline (không absolute) */
@media (max-width: 767px) {
    .hero-toast {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 10px auto 0;
        width: fit-content;
        animation: toast-slide-in-mobile 0.4s ease forwards;
    }

    @keyframes toast-slide-in-mobile {
        from {
            opacity: 0;
            transform: translateY(8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* =====================================================================
   DESKTOP SWIPER OVERRIDE
   swiper-bundle.css set display:flex trên .swiper-wrapper toàn cục →
   override lại để CSS grid của Tailwind (lg:grid) hoạt động đúng
   ===================================================================== */
@media (min-width: 1024px) {

    /* Why Us — 3 cols trên desktop */
    .why-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.25rem !important;
        transform: none !important;
        width: auto !important;
    }

    /* How It Works — 3 cols */
    .how-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
        transform: none !important;
        width: auto !important;
    }

    /* Tours — 3 cols */
    .tour-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
        transform: none !important;
        width: auto !important;
    }

    /* Testimonials — 3 cols */
    .testimonials-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
        transform: none !important;
        width: auto !important;
    }

    /* Reset swiper-slide sizing trên desktop */
    .why-swiper .swiper-slide,
    .how-swiper .swiper-slide,
    .tour-swiper .swiper-slide,
    .testimonials-swiper .swiper-slide {
        width: auto !important;
        margin-right: 0 !important;
        height: auto !important;
    }

    /* Ẩn pagination dots trên desktop */
    .why-swiper .swiper-pagination,
    .how-swiper .swiper-pagination,
    .tour-swiper .swiper-pagination,
    .testimonials-swiper .swiper-pagination {
        display: none !important;
    }
}

/* Ngăn tự động phóng to (zoom in) trên iOS Safari khi focus vào ô input */
@media (max-width: 767px) {
    input[type="text"],
    input[type="search"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}
