:root {
    --green: #55B948;
    --green-dark: #3d9433;
    --green-light: #edf8eb;
    --red: #DF1F26;
    --red-dark: #b81920;
    --white: #ffffff;
    --grey-50: #f9fafb;
    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-400: #9ca3af;
    --grey-600: #4b5563;
    --grey-900: #111827;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', sans-serif;
    background: var(--white);
    color: var(--grey-900);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* NAV */
.pub-nav {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 2rem; z-index: 10;
}
.pub-nav-solid {
    position: relative;
    background: #55B948;
    padding: 1rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 10;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
    color: rgba(255,255,255,0.85); text-decoration: none;
    font-size: 15px; font-weight: 600; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-login {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff !important; padding: 7px 18px;
    border-radius: 50px; font-weight: 700 !important;
}
.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger svg { width: 24px; height: 24px; color: #fff; }
.nav-mobile {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #04612F; z-index: 100; padding: 5rem 2rem 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    font-size: 18px; font-weight: 700; padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile a:hover { color: #fff; }
.nav-login-mobile {
    margin-top: 1.5rem; background: var(--green);
    border-radius: var(--radius); text-align: center;
    padding: 14px !important; border-bottom: none !important;
    color: #fff !important;
}

/* HERO */
.hero {
    background: var(--green);
    padding: 0 1rem 80px; text-align: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 0%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(0,0,0,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-top: 100px; }
.hero-logo { display: inline-block; margin-bottom: 1.75rem; }
.hero-logo img { height: 56px; width: auto; }
.hero h1 {
    color: #fff; font-size: clamp(26px, 5vw, 42px);
    font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem; letter-spacing: -0.5px;
}
.hero-sub { color: rgba(255,255,255,0.82); font-size: 16px; font-weight: 500; }
.hero.hero-mobilis { background: #3FAE2A; }
.hero.hero-djezzy  { background: #e2001a; }
.hero.hero-ooredoo { background: #e2001a; }

/* CARD */
.card-wrap { padding: 0 1rem; max-width: 480px; margin: -48px auto 0; position: relative; z-index: 5; }
.card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow-lg); border: 1px solid var(--grey-200);
}
.card-title { font-size: 17px; font-weight: 700; color: var(--grey-900); text-align: center; margin-bottom: 1.5rem; }

/* FORM */
.field-label {
    font-size: 11px; font-weight: 700; color: var(--grey-400);
    text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 7px;
}
.phone-row {
    display: flex; align-items: center;
    background: var(--grey-50); border: 1.5px solid var(--grey-200);
    border-radius: var(--radius); height: 52px; padding: 0 14px;
    gap: 10px; transition: border-color 0.2s;
}
.phone-row:focus-within { border-color: var(--green); background: #fff; }
.phone-prefix {
    font-size: 15px; font-weight: 700; color: var(--grey-600);
    white-space: nowrap; border-right: 1.5px solid var(--grey-200);
    padding-right: 12px; display: flex; align-items: center; gap: 6px;
}
.phone-input {
    flex: 1; border: none; background: transparent;
    font-size: 16px; font-family: 'Nunito', sans-serif;
    font-weight: 600; color: var(--grey-900); outline: none; letter-spacing: 0.5px;
}
.phone-input::placeholder { color: var(--grey-400); font-weight: 500; }

.op-badge { display: none; justify-content: center; align-items: center; margin-top: 12px; margin-bottom: 4px; animation: fadeIn 0.2s ease; }
.op-badge.visible { display: flex; }
.op-logo { height: 48px; width: auto; object-fit: contain; }
.divider { height: 1px; background: var(--grey-100); margin: 1.5rem 0; }
.phone-row.error {
    border-color: var(--red);
    background: #fdf2f2;
}
.phone-error {
    display: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    margin-top: 8px;
    margin-bottom: 4px;
}
.phone-error.visible {
    display: block;
    animation: fadeIn 0.15s ease;
}
/* TABS */
.product-tabs {
    display: flex; gap: 6px; margin-bottom: 1rem;
    background: var(--grey-100); border-radius: 10px; padding: 4px;
}
.tab-btn {
    flex: 1; padding: 9px; border: none; border-radius: 8px;
    font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; background: transparent; color: var(--grey-400); transition: all 0.15s;
}
.tab-btn.active { background: var(--white); color: var(--grey-900); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* AMOUNTS */
.amounts-section { display: none; animation: fadeIn 0.25s ease; }
.amounts-section.visible { display: block; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* PRODUCT LIST */
.amounts-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.25rem;
}
#grid-internet {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hidden-product { display: none !important; }
.show-more-wrap { text-align: center; margin-bottom: 1.25rem; }
.show-more-link {
    font-size: 12px; font-weight: 600; color: var(--grey-400);
    cursor: pointer; text-decoration: none; background: none; border: none;
    font-family: 'Nunito', sans-serif;
}
.show-more-link:hover { color: var(--grey-600); }

.product-row {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--grey-50); border: 1.5px solid var(--grey-200);
    border-radius: var(--radius); padding: 14px 16px;
    cursor: pointer; transition: all 0.15s; gap: 12px;
}
.product-row:hover { border-color: var(--green); background: var(--white); }
.product-row.active { border-color: var(--green); background: var(--white); }
.product-row-left { flex: 1; }
.product-row-right {display: flex;flex-direction: column;align-items: flex-end;}
.product-name { font-size: 16px; font-weight: 800; color: var(--grey-900); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-desc { font-size: 12px; font-weight: 600; color: var(--grey-400); margin-top: 2px; }
.product-price { font-size: 15px; font-weight: 800; color: var(--green-dark); }
.product-price.promo { color: var(--red); }
.product-price-old { font-size: 12px; font-weight: 600; color: var(--grey-400); text-decoration: line-through; }
.product-badge {
    margin-top: 4px;
    font-size: 9px; font-weight: 800;
    background: var(--green-light); color: var(--green-dark);
    border: 1px solid var(--green); border-radius: 4px; padding: 2px 6px;
    text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.product-radio {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--grey-200); flex-shrink: 0; transition: all 0.15s;
}
.product-row.active .product-radio {
    border-color: var(--green); background: var(--green);
    box-shadow: inset 0 0 0 4px var(--white);
}

/* CTA */
.cta-disabled {
    display: block; width: 100%; background: var(--grey-100); color: var(--grey-400);
    border-radius: var(--radius); padding: 15px; font-size: 15px; font-weight: 700;
    text-align: center; margin-bottom: 12px; border: none; cursor: not-allowed;
    font-family: 'Nunito', sans-serif;
}
.cta-disabled.hidden { display: none; }
.cta-active { display: none; }
.cta-active.visible { display: block; }
.btn-main {
    display: block; width: 100%; background: var(--red); color: #fff;
    border: none; border-radius: var(--radius); padding: 16px;
    font-size: 17px; font-weight: 800; font-family: 'Nunito', sans-serif;
    cursor: pointer; text-align: center; margin-bottom: 12px;
    transition: background 0.2s, transform 0.1s;
}
.btn-main:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-main:active { transform: translateY(0); }
.trust-row {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; font-size: 12px; font-weight: 600; color: var(--grey-400);
}
.trust-row svg { width: 13px; height: 13px; }

/* PROOF */
.proof {
    display: flex; justify-content: center; gap: 0;
    padding: 2.5rem 1rem; max-width: 480px; margin: 0 auto;
}
.proof-item { flex: 1; text-align: center; padding: 0 0.5rem; position: relative; }
.proof-item + .proof-item::before {
    content: ''; position: absolute; left: 0; top: 15%; bottom: 15%;
    width: 1px; background: var(--grey-200);
}
.proof-num { font-size: 26px; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 4px; }
.proof-label { font-size: 12px; font-weight: 600; color: var(--grey-400); }

/* WHY TWIIZAA */
.why-twiizaa {
    padding: 2.5rem 1.5rem;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.why-twiizaa .section-title {
    margin-bottom: 1rem;
}

.why-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.why-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--green-dark);
    text-decoration: none;
}

.why-link:hover {
    color: var(--green);
}


/* HOW */
.how { background: var(--grey-50); padding: 3rem 1.5rem; text-align: center; }
.section-title { font-size: 20px; font-weight: 800; color: var(--grey-900); margin-bottom: 2rem; }
.steps {
    display: flex; align-items: flex-start;
    max-width: 480px; margin: 0 auto; position: relative;
}
.steps::before {
    content: ''; position: absolute; top: 20px;
    left: calc(16.66% + 16px); right: calc(16.66% + 16px);
    height: 1.5px; background: var(--grey-200);
}
.step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--green); color: #fff; font-size: 16px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.step-text { font-size: 13px; font-weight: 600; color: var(--grey-600); line-height: 1.4; padding: 0 4px; }

/* OPERATORS */
.operators { padding: 2.5rem 1.5rem; text-align: center; max-width: 480px; margin: 0 auto; }
.op-chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 1rem; }
.op-chip {
    display: flex; align-items: center;
    background: var(--grey-50); border: 1.5px solid var(--grey-200);
    border-radius: 10px; padding: 10px 16px; text-decoration: none;
    transition: border-color 0.2s;
}
.op-chip:hover { border-color: var(--green); }
.op-chip img { height: 24px; width: auto; object-fit: contain; }
.op-sub { font-size: 13px; color: var(--grey-400); margin-top: 1rem; font-weight: 600; }

.op-content {
    padding: 2.5rem 1.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.op-content-alt {
    background: var(--grey-50);
}

.op-content .section-title {
    text-align: left;
    margin-bottom: 0.75rem;
    font-size: 17px;
}

.op-content p {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-600);
    line-height: 1.7;
}


/* FAQ */
.faq {
    background: var(--white);
    padding: 3rem 1.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.faq .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-item {
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius);
    margin-bottom: 8px;
    background: var(--grey-50);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: var(--green);
    background: var(--white);
}

.faq-question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--grey-900);
    cursor: pointer;
    gap: 12px;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--grey-400);
    flex-shrink: 0;
    transition: transform 0.2s;
    line-height: 1;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
    color: var(--green);
}

.faq-answer {
    padding: 0 16px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-600);
    line-height: 1.6;
    border-top: 1px solid var(--grey-100);
    padding-top: 12px;
}


/* FOOTER */
.pub-footer { background: #04612F; padding: 2rem 1.5rem; text-align: center; margin-top: auto; }
.pub-footer-inner { max-width: 480px; margin: 0 auto; }
.footer-logo { height: 28px; width: auto; opacity: 0.7; margin-bottom: 1rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 12px; font-weight: 500; }

/* LIVE FEED */
.live-feed {
    position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.live-notification {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 0.5px solid #e5e7eb; border-radius: 12px;
    padding: 10px 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    font-size: 13px; font-weight: 600; color: #111827;
    max-width: 280px; animation: slideIn 0.4s ease, fadeOut 0.4s ease 3.6s forwards;
}
.live-notif-icon {
    width: 32px; height: 32px; background: var(--green-light);
    border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.live-notif-icon img { height: 18px; width: auto; object-fit: contain; }
.live-notif-name { font-weight: 700; }
.live-notif-detail { font-size: 11px; color: var(--grey-400); margin-top: 1px; }
.live-notif-time { font-size: 11px; color: var(--grey-400); white-space: nowrap; flex-shrink: 0; }
.live-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--green);
    flex-shrink: 0; box-shadow: 0 0 0 2px rgba(85,185,72,0.3); animation: pulse 2s infinite;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(85,185,72,0.3); }
    50% { box-shadow: 0 0 0 5px rgba(85,185,72,0.1); }
}

/* MOBILE */
@media (max-width: 480px) {
    .pub-nav { padding: 1rem; }
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .card { padding: 1.5rem; }
    .live-feed { left: 0.75rem; bottom: 0.75rem; }
    .live-notification { max-width: 240px; font-size: 12px; }
}