/* SwiftSIM - Full-Width Responsive & Airalo Pixel-Perfect Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --bg-page: #FBF8F5;
    --card-bg: #FFFFFF;
    --border-subtle: #ECE6DC;
    --border-card: #E5DFD4;
    --text-main: #111827;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --airalo-orange: #FA5C00;
    --airalo-orange-hover: #E05300;
    --chat-header: #FA5C00;
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-en);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

html[dir="rtl"], body[dir="rtl"] {
    font-family: var(--font-ar);
}

/* Framework Wrapper */
.site-wrapper {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .site-header {
        overflow: hidden;
    }
    .header-inner {
        padding: 10px 14px;
        overflow: hidden;
    }
    #authLoggedOutSec {
        display: none !important;
    }
    #langToggleBtn {
        display: none !important;
    }
    .content-container {
        padding: 14px 14px 80px;
    }
}

.content-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    flex: 1;
}

/* ==================== SITE HEADER ==================== */
.site-header {
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-icon {
    font-size: 24px;
    line-height: 1;
}

.brand-name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--airalo-orange);
}

/* Desktop Navigation Links */
.desktop-nav-links {
    display: none;
    align-items: center;
    gap: 20px;
}

@media (min-width: 769px) {
    .desktop-nav-links {
        display: flex;
    }
}

.d-nav-link {
    background: none;
    border: none;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
    padding: 6px 0;
}

.d-nav-link:hover, .d-nav-link.active {
    color: var(--text-main);
}

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

.btn-lang-pill {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.coin-badge {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.btn-login-outline {
    background: white;
    border: 1.5px solid #111827;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-login-outline:hover {
    background: #111827;
    color: white;
}

.btn-signup-solid {
    background: var(--airalo-orange);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    color: white;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.btn-signup-solid:hover {
    background: var(--airalo-orange-hover);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #F9FAFB;
    border: 1px solid var(--border-subtle);
    padding: 4px 12px 4px 6px;
    border-radius: 20px;
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--airalo-orange);
    color: white;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-badge-name {
    font-size: 13px;
    font-weight: 700;
}

.btn-logout-small {
    background: #F3F4F6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bell-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (min-width: 769px) {
    .bell-btn {
        display: none;
    }
}

/* ==================== APP HOME GREETING HEADER ==================== */
.app-home-header {
    padding: 18px 4px 8px;
}
.app-home-greeting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.app-greeting-text {
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.5px;
}
.app-home-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.coin-badge-home {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFFBEB;
    border: 1.5px solid #FDE68A;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #78350F;
    cursor: pointer;
    transition: background 0.18s;
    box-shadow: 0 1px 4px rgba(245,158,11,0.10);
}
.coin-badge-home:hover { background: #FEF3C7; }
.bell-icon-home {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F3F4F6;
    border: 1.5px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: background 0.18s;
    flex-shrink: 0;
}
.bell-icon-home:hover { background: #E5E7EB; }

/* ==================== SEARCH BAR ==================== */
.search-container {
    width: 100%;
    margin: 10px 0 20px;
}

.search-pill {
    background: #FFFFFF;
    border: 1.5px solid var(--border-subtle);
    border-radius: 28px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: border-color 0.2s;
}

.search-pill:focus-within {
    border-color: #111827;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    color: var(--text-main);
    font-weight: 500;
}

/* ==================== HERO CAROUSEL ==================== */
.hero-card-wrap {
    margin-bottom: 24px;
}

.hero-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px 20px 20px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    max-width: 650px;
    margin: 0 auto;
}

.hero-illustration {
    max-width: 220px;
    margin: 0 auto 14px;
}

.hero-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-card h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.hero-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
}

.carousel-bars {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.c-bar {
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: #E5E7EB;
    cursor: pointer;
    transition: background 0.2s;
}

.c-bar.active {
    background: #111827;
}

/* ==================== CATEGORY TABS ==================== */
.tabs-header-wrap {
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.category-tabs-row {
    display: flex;
    gap: 28px;
    overflow-x: auto;
}

.c-tab {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 10px 4px 12px;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    white-space: nowrap;
}

.c-tab.active {
    color: var(--text-main);
    font-weight: 800;
}

.c-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #111827;
    border-radius: 2px;
}

.tabs-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* ==================== COUNTRY GRID (RESPONSIVE) ==================== */
.country-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (min-width: 960px) {
    .country-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1140px) {
    .country-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.country-item {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.country-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border-color: #D1D5DB;
}

.country-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-flag-box {
    width: 44px;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

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

.region-map-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #EFF6FF;
}

.country-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.country-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

/* ==================== COUNTRY PACKAGES VIEW ==================== */
.back-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.btn-back-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.country-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carrier-badge-banner {
    background: white;
    border-radius: 18px;
    padding: 14px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge-tag {
    background: #F3F4F6;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #4B5563;
}

.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 960px) {
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

.pkg-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pkg-specs-row {
    display: flex;
    gap: 10px;
    margin: 12px 0 16px;
}

.pkg-pill {
    flex: 1;
    background: #F8F5F0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pkg-pill span {
    font-size: 11px;
    color: var(--text-muted);
}

.pkg-pill strong {
    font-size: 14px;
    font-weight: 800;
}

.btn-buy-orange {
    background: var(--airalo-orange);
    color: white;
    border: none;
    border-radius: 9999px;
    height: 50px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(250, 92, 0, 0.25);
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-buy-orange:hover {
    background: var(--airalo-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(250, 92, 0, 0.35);
}

.btn-buy-orange:active {
    transform: scale(0.98);
}

.btn-white-pill {
    background: white;
    border: 1.5px solid #E5DFD4;
    border-radius: 9999px;
    height: 48px;
    padding: 0 20px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    box-sizing: border-box;
}

.btn-white-pill:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

/* ==================== MY ESIMS SCREEN ==================== */
.referral-banner {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.ref-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ref-coin {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FEF3C7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ref-text {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.ref-arrow {
    font-size: 18px;
    color: #9CA3AF;
}

.esims-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .esims-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.my-esim-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.my-esim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.my-esim-country-name {
    font-size: 18px;
    font-weight: 800;
}

.my-esim-divider {
    height: 1px;
    background: #EFEBE4;
    margin: 12px 0 14px;
}

.my-forfait-label {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.my-specs-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.my-spec-pill {
    flex: 1;
    background: #F8F5F0;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.my-spec-lbl {
    font-size: 11px;
    color: var(--text-muted);
}

.my-spec-val {
    font-size: 14px;
    font-weight: 800;
}

.my-renewal-row {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.status-badge-pending {
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.my-btns-row {
    display: flex;
    gap: 8px;
}

/* ==================== PROFILE SCREEN ==================== */
.profile-center-wrap {
    max-width: 580px;
    margin: 0 auto;
}

.start-banner {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    cursor: pointer;
}

.profile-list-card {
    background: white;
    border-radius: 20px;
    padding: 6px 20px;
    border: 1px solid var(--border-subtle);
}

.user-row-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #F3F4F6;
}

.user-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--airalo-orange);
    color: white;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name-title {
    font-size: 18px;
    font-weight: 800;
}

.user-status-sub {
    font-size: 12.5px;
    color: var(--text-muted);
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.menu-item-row:last-child {
    border-bottom: none;
}

.menu-arrow {
    color: #9CA3AF;
    font-size: 18px;
}

.white-card {
    background: white;
    border-radius: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}

.btn-copy-small {
    background: #F3F4F6;
    border: none;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

/* ==================== REAL MODALS & BACKDROPS ==================== */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}

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

.modal-box {
    background: #FFFFFF;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    padding: 24px 22px 28px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #F3F4F6;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #4B5563;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.modal-close-btn:hover {
    background: #E5E7EB;
    color: #111827;
    transform: scale(1.05);
}

[dir="rtl"] .modal-close-btn,
body[dir="rtl"] .modal-close-btn,
html[dir="rtl"] .modal-close-btn {
    right: auto;
    left: 18px;
}

.auth-tabs-row {
    display: flex;
    border-bottom: 2px solid #F3F4F6;
    margin-bottom: 18px;
    margin-top: 6px;
    padding-left: 45px;
}

[dir="ltr"] .auth-tabs-row {
    padding-left: 0;
    padding-right: 45px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    font-family: inherit;
}

.auth-tab-btn.active {
    color: var(--text-main);
    font-weight: 800;
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #111827;
}

.social-login-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.social-btn {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    border: 1px solid #E5E7EB;
    background: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.social-btn:hover {
    background: #F9FAFB;
}

.auth-input {
    width: 100%;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.auth-input:focus {
    border-color: #111827;
}

/* Checkout Method Selector Grid */
.checkout-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.chk-method-btn {
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}

body[dir="rtl"] .chk-method-btn {
    text-align: right;
}

.chk-method-btn strong {
    display: block;
    font-size: 12.5px;
    color: #111827;
}

.chk-method-btn span {
    font-size: 10.5px;
    color: #6B7280;
}

.chk-method-btn.active {
    background: #111827;
    border-color: #111827;
}

.chk-method-btn.active strong, .chk-method-btn.active span {
    color: white;
}

.compat-green-badge {
    background: #DEF7EC;
    color: #03543F;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 800;
}

.method-pills-row {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.m-pill {
    flex: 1;
    padding: 8px 6px;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    background: #F9FAFB;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.m-pill.active {
    background: #111827;
    color: white;
    border-color: #111827;
}

.step-progress-track {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.step-progress-fill {
    height: 100%;
    background: var(--airalo-orange);
    border-radius: 2px;
}

.compat-check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F9FAFB;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #F3F4F6;
}

/* ==================== TOAST NOTIFICATION ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: #111827;
    color: white;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast.success { background: #065F46; }
.toast.error { background: #991B1B; }
.toast.info { background: #1E40AF; }

@keyframes toastPop {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==================== BOTTOM NAV (MOBILE ONLY) ==================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
    padding: 8px 0 12px;
    justify-content: space-around;
    z-index: 200;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    position: relative;
}

.nav-item.active {
    color: var(--text-main);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 24px;
    height: 3px;
    background: var(--airalo-orange);
    border-radius: 2px;
}

/* ==================== AI CHAT WIDGET ==================== */
.chat-fab {
    position: fixed;
    bottom: 75px;
    right: 20px;
    background: var(--airalo-orange);
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    z-index: 300;
    transition: transform 0.15s;
}

body[dir="rtl"] .chat-fab {
    right: auto;
    left: 20px;
}

@media (min-width: 769px) {
    .chat-fab {
        bottom: 24px;
    }
}

.chat-fab:hover {
    transform: scale(1.05);
}

.chat-slide-window {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 400;
    border: 1px solid var(--border-subtle);
}

body[dir="rtl"] .chat-slide-window {
    right: auto;
    left: 20px;
}

.chat-slide-window.active {
    display: flex;
}

.chat-coral-header {
    background: var(--chat-header);
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coral-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coral-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    color: var(--chat-header);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.coral-title-wrap h3 {
    font-size: 14.5px;
    font-weight: 800;
}

.coral-title-wrap p {
    font-size: 11px;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chat-notice {
    background: #FFF1F0;
    color: #CF1322;
    font-size: 11px;
    text-align: center;
    padding: 6px;
    border-bottom: 1px solid #FFCCC7;
}

.chat-msgs-body {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: #FAFAFA;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.45;
}

.bubble.ai {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    align-self: flex-start;
}

.bubble.user {
    background: var(--airalo-orange);
    color: white;
    align-self: flex-end;
}

.chat-input-row {
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    background: white;
    border-top: 1px solid var(--border-subtle);
}

.chat-inp {
    flex: 1;
    border: 1.5px solid #E5E7EB;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
}

.chat-send {
    background: var(--airalo-orange);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}


/* ==================== LIVE PROVISIONING TRACKER & PENDING STYLES ==================== */

.prov-radar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prov-radar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #FF6B35;
    animation: radarPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.prov-radar-core {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #FF6B35, #E85520);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    position: relative;
    z-index: 2;
}

.prov-steps-track {
    background: #FAFAFA;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 14px 16px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prov-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: 0.3s;
}

.prov-step-item.done {
    opacity: 1;
}

.prov-step-item.active {
    opacity: 1;
}

.prov-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.prov-step-item.done .prov-step-circle {
    background: #DCFCE7;
    color: #15803D;
}

.prov-step-item.active .prov-step-circle {
    background: #FEF3C7;
    color: #D97706;
}

.spinner-rot {
    animation: rot 2s linear infinite;
}

@keyframes rot {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.prov-step-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.prov-step-info strong {
    font-size: 13px;
    color: #111827;
}

.prov-step-info span {
    font-size: 11.5px;
    color: #6B7280;
}

/* My eSIM Card: Pending state */
.esim-prep-badge-box {
    background: #FEF9EE;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prep-ring-pulse {
    width: 20px;
    height: 20px;
    border: 3px solid #F59E0B;
    border-top-color: transparent;
    border-radius: 50%;
    animation: rot 1s linear infinite;
    flex-shrink: 0;
}

.btn-pending-pulse {
    width: 100%;
    padding: 12px 18px;
    border-radius: 25px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease;
}

.btn-pending-pulse:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

/* ==================== SUBSCREENS & EXACT AIRALO WIDGETS ==================== */
.sub-screen-view {
    width: 100%;
    min-height: 80vh;
}

.sub-screen-body {
    max-width: 600px;
    margin: 0 auto;
}

.profile-user-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 16px 18px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.profile-list-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 4px 18px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Inbox Screen (Photo 3) */
.inbox-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 14px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.inbox-filter-row::-webkit-scrollbar { display: none; }

.inbox-pill {
    background: #FFFFFF;
    border: 1.5px solid #D1D5DB;
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all 0.15s;
}

.inbox-pill.active {
    border-color: var(--airalo-orange);
    color: var(--airalo-orange);
    background: #FFF7ED;
    font-weight: 700;
}

.inbox-empty-wrap, .orders-empty-wrap {
    text-align: center;
    padding: 50px 16px;
}

.inbox-empty-illustration {
    margin-bottom: 20px;
}

.inbox-empty-title, .orders-empty-title {
    font-size: 19px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.inbox-empty-sub, .orders-empty-sub {
    font-size: 13.5px;
    color: #6B7280;
    line-height: 1.5;
    max-width: 380px;
    margin: 0 auto;
}

.inbox-item-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.inbox-item-card.unread {
    border-right: 4px solid var(--airalo-orange);
}
[dir="rtl"] .inbox-item-card.unread {
    border-right: 1px solid var(--border-subtle);
    border-left: 4px solid var(--airalo-orange);
}

/* Select lists: Languages & Currencies (Photos 8 & 9) */
.select-list-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.select-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 600;
    transition: background 0.1s;
}

.select-row-item:last-child {
    border-bottom: none;
}

.select-row-item:hover {
    background: #FBF8F5;
}

.select-row-item.active {
    font-weight: 800;
}

.select-row-item .chk-icon {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

/* Trusted Devices Card (Photo 5) */
.device-item-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.device-badge-current {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #BAE6FD;
    color: #0369A1;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

/* Refer and Earn Sheet / Modal (Photo 6 & media_1) */
.ref-modal-box {
    max-width: 440px;
    padding: 0 0 24px 0;
    border-radius: 28px;
    overflow: hidden;
    background: #F8F5F0;
}

@media (max-width: 768px) {
    .modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }
    .modal-box {
        max-width: 100% !important;
        width: 100% !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        margin: 0 !important;
        max-height: 88vh;
    }
    .ref-modal-box {
        max-width: 100% !important;
        width: 100% !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        margin: 0 !important;
        max-height: 88vh;
    }
}

.sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: #D1D5DB;
    border-radius: 2px;
    margin: 12px auto 6px;
}

.ref-sheet-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    padding: 4px 0 10px;
}

.ref-sheet-card {
    background: #FFFFFF;
    border-radius: 20px;
    margin: 4px 16px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.ref-sheet-hero {
    height: 140px;
    background: #93C5FD;
}

.ref-sheet-content {
    padding: 18px 20px 22px;
    text-align: center;
}

.ref-sheet-h2 {
    font-size: 19px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.ref-sheet-p {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.5;
    margin-bottom: 18px;
}

.ref-code-card {
    border: 1.5px solid #E5DFD4;
    border-radius: 14px;
    padding: 10px 16px;
    text-align: left;
    background: #FFFFFF;
}

[dir="rtl"] .ref-code-card {
    text-align: right;
}

.ref-code-lbl {
    font-size: 11.5px;
    color: #6B7280;
    font-weight: 600;
}

.ref-code-val-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.ref-code-str {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.5px;
}

.btn-ref-copy {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-stat-card {
    background: #FFFFFF;
    border-radius: 20px;
    margin: 14px 16px 0;
    padding: 18px 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.ref-stat-head {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 14px;
    text-align: left;
}

[dir="rtl"] .ref-stat-head {
    text-align: right;
}

.ref-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: #374151;
    padding: 5px 0;
}

.ref-stat-row strong {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

/* ==================== CART SIDEBAR ==================== */
.cart-sidebar { position: fixed; top: 0; right: -400px; width: 350px; max-width: 100%; height: 100vh; background: #fff; box-shadow: -4px 0 15px rgba(0,0,0,0.1); z-index: 10000; transition: right 0.3s ease; display: flex; flex-direction: column; }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #FA5C00; color: #fff; }
.cart-header h2 { margin: 0; font-size: 1.2rem; }
.close-cart { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #eee; margin-bottom: 15px; }
.cart-item-info h4 { margin: 0 0 5px 0; color: #111827; }
.cart-item-info p { margin: 0; color: #6B7280; font-size: 0.9rem; }
.cart-item-price { font-weight: bold; color: #FA5C00; }
.cart-item-remove { background: #fee2e2; color: #ef4444; border: none; padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 0.8rem;}
.cart-footer { padding: 20px; border-top: 1px solid #eee; background: #fafafa; }
.cart-total { display: flex; justify-content: space-between; font-weight: bold; font-size: 1.2rem; margin-bottom: 15px; color: #111827;}
.btn-checkout-cart { width: 100%; background: #FA5C00; color: white; padding: 12px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; display: none; }
.cart-overlay.active { display: block; }
.cart-badge { background: #ff3333; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.75rem; position: absolute; top: -5px; right: -10px; font-weight:bold;}
.cart-btn-wrapper { position: relative; display: inline-flex; align-items: center; cursor: pointer; background:none; border:none; color:inherit; font-family:inherit; font-size:1rem; padding: 8px 12px; }
.btn-add-cart { width: 100%; background: #fff; border: 2px solid #FA5C00; color: #FA5C00; padding: 10px; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 5px; transition: 0.2s;}
.btn-add-cart:hover { background: #FA5C00; color: white; }


