* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
}

:root {
    --primary-blue: #0B3E96;
    --secondary-blue: #1565D8;
    --navy: #072B72;
    --gold: #F5C242;
    --gold-deep: #D8A323;
    --gold-soft: rgba(245, 194, 66, 0.16);
    --gold-grad: linear-gradient(135deg, #F5C242 0%, #D8A323 100%);
    --whatsapp: #25D366;
    --whatsapp-dark: #1DA851;
    --bg: #0B3E96;
    --bg-card: rgba(255, 255, 255, 0.08);
    --card-bg: #FFFFFF;
    --text: #FFFFFF;
    --text-light: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.55);
    --border: rgba(245, 194, 66, 0.3);
    --success: #22c55e;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0B3E96 0%, #0A347F 45%, #114FAF 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body[dir="rtl"] {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- Background Decor ---------- */
.bg-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vmin;
    height: 90vmin;
    background: radial-gradient(circle, rgba(245, 194, 66, 0.16) 0%, rgba(21, 101, 216, 0.12) 35%, transparent 65%);
    filter: blur(8px);
}

.bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(45deg, rgba(245, 194, 66, 0.05) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px, 64px 64px;
}

.bg-star {
    position: absolute;
    color: rgba(245, 194, 66, 0.7);
    font-size: 12px;
    animation: twinkle 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(245, 194, 66, 0.8);
}

.bg-star.s1 { top: 12%; left: 8%; font-size: 9px; }
.bg-star.s2 { top: 22%; right: 10%; font-size: 14px; animation-delay: 0.8s; }
.bg-star.s3 { top: 70%; left: 6%; font-size: 11px; animation-delay: 1.4s; }
.bg-star.s4 { top: 82%; right: 7%; font-size: 10px; animation-delay: 2s; }
.bg-star.s5 { top: 52%; left: 16%; font-size: 8px; animation-delay: 0.4s; }

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(7, 43, 114, 0.55) 100%);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 12px;
}

.lang-switcher button,
.lang-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(245, 194, 66, 0.25);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    color: #0B3E96;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    letter-spacing: 0.3px;
    font-family: 'Poppins', sans-serif;
}

.lang-switcher .lang-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.lang-switcher button.active,
.lang-switcher a.active {
    background: var(--gold-grad);
    border-color: transparent;
    color: #072B72;
    box-shadow: 0 2px 12px rgba(245, 194, 66, 0.45);
}

/* ---------- WhatsApp Banner ---------- */
.whatsapp-banner {
    background: rgba(7, 43, 114, 0.95);
    border-bottom: 1px solid rgba(245, 194, 66, 0.3);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 99;
    animation: slideDown 0.5s ease-out;
}

.whatsapp-banner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.whatsapp-banner-icon {
    width: 36px;
    height: 36px;
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--whatsapp);
}

.whatsapp-banner-icon svg {
    width: 18px;
    height: 18px;
}

.whatsapp-banner-text {
    flex: 1;
    min-width: 0;
}

.whatsapp-banner-text h3 {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-banner-text p {
    font-size: 11px;
    color: rgba(245, 194, 66, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-banner-btn {
    background: var(--whatsapp);
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.whatsapp-banner-btn:hover {
    background: var(--whatsapp-dark);
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------- Top Header / Hero ---------- */
.top-header {
    position: relative;
    padding: 20px 20px 16px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(245, 194, 66, 0.25);
    background:
        radial-gradient(ellipse at 50% -40%, rgba(245, 194, 66, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, rgba(7, 43, 114, 0.55) 0%, rgba(11, 62, 150, 0.35) 100%);
}

/* ---------- Starnet Promo Card ---------- */
.starnet-promo {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, #F4EEDD 100%);
    border: 1px solid rgba(245, 194, 66, 0.65);
    border-radius: 18px;
    box-shadow:
        0 10px 30px rgba(7, 43, 114, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.starnet-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F5C242, #FFFFFF, #F5C242);
}

.starnet-promo:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 38px rgba(245, 194, 66, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.starnet-promo-logo-wrap {
    position: relative;
    flex-shrink: 0;
}

.starnet-promo-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid #F5C242;
    box-shadow:
        0 0 0 4px rgba(245, 194, 66, 0.25),
        0 6px 16px rgba(0, 0, 0, 0.3);
}

.starnet-promo-live {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F5C242, #D8A323);
    color: #072B72;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 2px 9px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.starnet-promo-live-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #072B72;
    margin-right: 3px;
    vertical-align: 1px;
}

.starnet-promo-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.starnet-promo-appname {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #072B72;
    letter-spacing: -0.2px;
}

.starnet-promo-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    color: #8a6d1f;
    margin-top: 2px;
    line-height: 1.35;
}

.starnet-promo-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: linear-gradient(135deg, #1565D8 0%, #0B3E96 100%);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(11, 62, 150, 0.4);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.starnet-promo:hover .starnet-promo-btn {
    box-shadow: 0 8px 22px rgba(11, 62, 150, 0.55);
    transform: translateY(-1px);
}

.starnet-promo-play {
    width: 16px;
    height: 16px;
}

.hero-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--gold);
    opacity: 0.55;
    z-index: 2;
}

.hero-corner-tl {
    top: 6px;
    left: 6px;
    border-top: 2px solid;
    border-left: 4px solid;
    border-radius: 14px 0 0 0;
}

.hero-corner-tr {
    top: 6px;
    right: 6px;
    border-top: 2px solid;
    border-right: 2px solid;
    border-radius: 0 6px 0 0;
}

.hero-corner-bl {
    bottom: 6px;
    left: 6px;
    border-bottom: 2px solid;
    border-left: 2px solid;
    border-radius: 0 0 0 6px;
}

.hero-corner-br {
    bottom: 6px;
    right: 6px;
    border-bottom: 2px solid;
    border-right: 2px solid;
    border-radius: 0 0 6px 0;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-title {
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
    line-height: 1.3;
    background: linear-gradient(180deg, #FFFFFF 30%, #F5C242 120%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(7, 43, 114, 0.7));
}

.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 12px;
    max-width: 260px;
}

.header-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 194, 66, 0.85), transparent);
}

.header-divider-diamond {
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #F5C242, #F8E08A);
    box-shadow: 0 0 8px rgba(245, 194, 66, 0.7);
    flex-shrink: 0;
}

.header-title {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow:
        0 2px 4px rgba(7, 43, 114, 0.6),
        0 0 22px rgba(245, 194, 66, 0.35);
}

.header-subtitle {
    font-size: 14px;
    color: var(--gold);
    font-weight: 500;
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(7, 43, 114, 0.6);
}

/* Header Nav (desktop only) */
.header-nav {
    display: none;
    gap: 8px;
    margin-top: 14px;
}

.header-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid rgba(245, 194, 66, 0.3);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.header-nav-item:hover {
    background: var(--gold-soft);
    color: #FFFFFF;
}

.header-nav-item.active {
    background: var(--gold-grad);
    color: #072B72;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(245, 194, 66, 0.4);
}

/* ---------- Container ---------- */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.page-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 12px;
}

/* ---------- Provider Tabs ---------- */
.provider-tabs {
    display: flex;
    gap: 10px;
    margin: 4px 0 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.provider-tab {
    flex: 1;
    max-width: 130px;
    min-width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(245, 194, 66, 0.55);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

.provider-tab-name {
    font-size: 12px;
    font-weight: 700;
    color: #0B3E96;
    text-align: center;
    line-height: 1.25;
}

.provider-tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-deep);
    box-shadow: 0 0 6px rgba(216, 163, 35, 0.8);
}

.provider-tab.active {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px rgba(245, 194, 66, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.3);
    background: linear-gradient(160deg, #ffffff 0%, #FFF4D6 100%);
}

.provider-tab.active .provider-tab-name {
    color: #072B72;
}

/* ---------- WhatsApp Gate ---------- */
.whatsapp-gate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 40px;
    text-align: center;
}

.gate-icon-wrap {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    margin-bottom: 28px;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.3);
    border: 2px solid rgba(37, 211, 102, 0.35);
}

.whatsapp-gate-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(7, 43, 114, 0.6);
}

.whatsapp-gate-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 32px;
    max-width: 300px;
    line-height: 1.7;
}

.btn-gate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #25D366, #1DA851);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    letter-spacing: 0.3px;
}

.btn-gate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
    fill: white;
}

/* ---------- Reward Ribbon ---------- */
.reward-ribbon {
    position: relative;
    width: 100%;
    margin: 20px 0 24px;
    display: flex;
    justify-content: center;
}

.ribbon-content {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 12px 28px 12px 34px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDF4DC 100%);
    border: 2px solid var(--gold);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    color: #072B72;
}

.ribbon-content::before,
.ribbon-content::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 14px;
    height: 22px;
    background: linear-gradient(135deg, #F5C242, #D8A323);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.ribbon-content::before {
    left: -12px;
    transform: translateY(-50%);
    border-radius: 4px 0 0 4px;
}

.ribbon-content::after {
    right: -12px;
    transform: translateY(-50%) rotate(180deg);
    border-radius: 4px 0 0 4px;
}

body[dir="rtl"] .ribbon-content {
    padding: 12px 34px 12px 28px;
}

.ribbon-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.ribbon-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #0B3E96;
}

/* ---------- Packages ---------- */
.packages-section {
    margin: 8px 0 20px;
}

.packages-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 14px;
    text-shadow: 0 2px 4px rgba(7, 43, 114, 0.6);
}

.packages-heading-icon {
    font-size: 18px;
}

.package-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: stretch;
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 18px 10px 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FF 100%);
    border: 2px solid rgba(245, 194, 66, 0.6);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.package-card.featured {
    border-color: var(--gold);
    background: linear-gradient(170deg, #FFFFFF 0%, #FFF2CE 100%);
    box-shadow:
        0 0 0 3px rgba(245, 194, 66, 0.18),
        0 10px 28px rgba(0, 0, 0, 0.32);
    transform: translateY(-4px);
}

.package-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-grad);
    color: #072B72;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(216, 163, 35, 0.5);
    white-space: nowrap;
}

.package-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 2px;
}

.package-number {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: #0B3E96;
    font-family: 'Poppins', sans-serif;
}

.package-unit {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-deep);
    text-transform: uppercase;
}

.package-title {
    font-size: 13px;
    font-weight: 700;
    color: #072B72;
}

.package-tagline {
    font-size: 10px;
    color: #5A6270;
    line-height: 1.4;
    min-height: 26px;
}

.package-price {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-deep);
    font-family: 'Poppins', sans-serif;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--gold-soft);
    border: 1px solid rgba(216, 163, 35, 0.35);
}

/* ---------- Contact Section ---------- */
.contact-section {
    margin: 8px 0 24px;
    text-align: center;
}

.contact-heading {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 14px;
    text-shadow: 0 2px 4px rgba(7, 43, 114, 0.6);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 194, 66, 0.35);
    border-radius: 999px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    overflow-wrap: anywhere;
}

.contact-link:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold);
}

.contact-link-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold-grad);
    color: #072B72;
}

.contact-link-icon svg {
    width: 15px;
    height: 15px;
}

/* ---------- History Screen ---------- */
.history-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0 40px;
    text-align: center;
}

.history-empty-icon {
    width: 72px;
    height: 72px;
    background: var(--gold-grad);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(245, 194, 66, 0.25);
}

.history-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.history-empty p {
    font-size: 14px;
    color: var(--text-muted);
}

.history-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0;
}

.history-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 194, 66, 0.2);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(6px);
}

.history-item-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-grad);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.history-item-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

body[dir="rtl"] .history-item-info {
    text-align: right;
}

.history-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.history-item-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.history-item-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold);
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ---------- Win Modal ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 20, 60, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F5FF 100%);
    border: 2px solid var(--gold);
    border-radius: 22px;
    padding: 36px 24px 28px;
    max-width: 380px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: auto;
    text-align: center;
    transform: scale(0.9) translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(245, 194, 66, 0.18), var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-icon-wrap {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    background: var(--gold-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 6px 16px rgba(216, 163, 35, 0.4);
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #072B72;
    margin-bottom: 6px;
}

.modal-prize {
    font-size: 34px;
    font-weight: 800;
    color: var(--gold-deep);
    margin: 12px 0;
    letter-spacing: -0.5px;
}

.modal-message {
    font-size: 14px;
    color: #5A6270;
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-next {
    font-size: 13px;
    color: #5A6270;
    margin-bottom: 22px;
    padding: 10px 16px;
    background: rgba(245, 194, 66, 0.12);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(216, 163, 35, 0.35);
}

/* Account Card */
.account-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(37, 211, 102, 0.04));
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 14px;
    padding: 20px 16px;
    margin: 12px 0 16px;
    text-align: left;
}

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

.account-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #128C7E;
    margin-bottom: 14px;
}

.account-card-icon {
    font-size: 20px;
}

.account-field {
    margin-bottom: 10px;
}

.account-field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #5A6270;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.account-field-value {
    font-size: 14px;
    color: #072B72;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.account-field-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 15px;
    color: #0B3E96;
    background: rgba(245, 194, 66, 0.18);
    padding: 3px 8px;
    border-radius: 5px;
    word-break: break-all;
}

.account-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-copy-btn {
    background: var(--gold-grad);
    color: #072B72;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.account-copy-btn:hover {
    opacity: 0.9;
}

.account-instructions {
    background: rgba(245, 194, 66, 0.1);
    border: 1px solid rgba(216, 163, 35, 0.35);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #072B72;
    line-height: 1.6;
    margin: 12px 0;
    white-space: pre-line;
    text-align: left;
}

body[dir="rtl"] .account-instructions {
    text-align: right;
}

.account-download-btn {
    display: block;
    background: var(--gold-grad);
    color: #072B72;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin: 12px 0;
    transition: opacity 0.15s;
}

.account-download-btn:hover {
    opacity: 0.9;
    color: #072B72;
}

.account-warning {
    background: rgba(216, 163, 35, 0.12);
    border: 1px solid rgba(216, 163, 35, 0.4);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #B8860B;
    text-align: center;
    margin-top: 8px;
}

.btn-share-modal {
    background: linear-gradient(135deg, #25D366, #1DA851);
    color: white;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-share-modal:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-close-modal {
    background: rgba(7, 43, 114, 0.08);
    color: #072B72;
    border: 1px solid rgba(7, 43, 114, 0.25);
    padding: 12px;
}

.btn-close-modal:hover {
    background: rgba(7, 43, 114, 0.14);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    width: 100%;
    font-family: inherit;
}

/* ---------- Site Footer ---------- */
.site-footer {
    background: rgba(7, 43, 114, 0.92);
    border-top: 1px solid rgba(245, 194, 66, 0.25);
    padding: 20px 16px 14px;
    margin-top: 8px;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    max-width: 480px;
    margin: 0 auto 20px;
}

.footer-section h3 {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-section a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(245, 194, 66, 0.8);
    text-decoration: none;
    font-size: 12px;
    padding: 3px 0;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-section .footer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 194, 66, 0.15);
    padding-top: 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(245, 194, 66, 0.7);
    text-decoration: none;
    font-size: 11px;
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }

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

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ---------- Responsive ---------- */
@media (max-width: 359px) {
    .header-title { font-size: 18px; }
    .header-subtitle { font-size: 12.5px; }
    .header-divider { max-width: 200px; }
    .header-nav-item { padding: 7px 14px; font-size: 12px; }
    .top-header { padding: 22px 14px 18px; }
    .starnet-promo { gap: 10px; padding: 12px; }
    .starnet-promo-logo { width: 56px; height: 56px; border-radius: 14px; }
    .starnet-promo-appname { font-size: 14px; }
    .starnet-promo-tagline { font-size: 10px; }
    .starnet-promo-btn { padding: 8px 12px; font-size: 12px; gap: 5px; }
    .starnet-promo-play { width: 14px; height: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 16px; }
    .package-cards { grid-template-columns: 1fr; gap: 12px; }
    .package-card.featured { transform: none; }
    .provider-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
    .provider-tab { flex: 0 0 110px; }
}

@media (min-width: 360px) and (max-width: 479px) {
    .header-title { font-size: 21px; }
    .header-divider { max-width: 230px; }
    .starnet-promo { gap: 12px; padding: 13px 14px; }
    .starnet-promo-logo { width: 64px; height: 64px; }
    .starnet-promo-appname { font-size: 16px; }
}

@media (min-width: 480px) and (max-width: 767px) {
    .header-title { font-size: 24px; }
    .top-header { padding: 26px 20px 20px; }
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .top-header {
        padding: 28px 32px 22px;
    }

    .header-content { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
    .header-title { font-size: 26px; }
    .header-divider { margin: 0 auto 12px; }
    .header-subtitle { max-width: 480px; }
    .header-nav { display: flex; margin-top: 14px; width: 100%; justify-content: center; }
    .hero-corner { display: none; }

    .container {
        max-width: 560px;
        margin: 0 auto;
        padding: 24px 16px;
        width: 100%;
    }

    .page-section {
        padding-top: 0;
    }

    .whatsapp-gate-content { padding: 40px 20px; }
    .gate-icon-wrap { width: 80px; height: 80px; font-size: 36px; }

    .history-screen { padding: 40px 0; }

    .package-cards { gap: 14px; }

    .site-footer {
        padding: 40px 32px 24px;
        margin-top: 16px;
    }
    .footer-grid {
        max-width: 600px;
    }
    .footer-section h3 { font-size: 13px; }
    .footer-section a { font-size: 13px; }
}
