:root {
    --astro-bg: #071127;
    --astro-panel: #15233a;
    --astro-panel-2: #101d36;
    --astro-border: #273b57;
    --astro-muted: #95a2ba;
    --astro-white: #f7f9ff;
    --astro-cyan: #3ee7d9;
    --astro-cyan-soft: #35cbd0;
    --astro-green: #1ed783;
    --astro-pink: #ff3f87;
    --astro-footer: #080f1c;
    --astro-max: 430px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--astro-bg); }
body.astro-landing-body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--astro-bg) !important;
    color: var(--astro-white);
    font-family: "Tajawal", Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.admin-bar .astro-page { margin-top: 0; }
.astro-page {
    width: 100%;
    max-width: var(--astro-max);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--astro-bg);
    overflow: hidden;
    direction: rtl;
}
.astro-page button, .astro-page input { font: inherit; }
.astro-page a { text-decoration: none; }
.astro-sr-only {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* TOP BAR */
.astro-topbar {
    height: 63px;
    padding: 14px 18px 0;
    display: flex;
    direction: ltr;
    align-items: flex-start;
    justify-content: space-between;
}
.astro-logo { 
	width: 150px; 
	height: auto; 
	display: block; 
	mix-blend-mode: screen; 
	position: relative;
    bottom: 20px;
    right: 20px;
}
.astro-refund-pill {
    direction: rtl;
    min-width: 151px;
    height: 22px;
    padding: 3px 15px 0;
    border: 1px solid #2c3e58;
    border-radius: 999px;
    background: #16253a;
    color: #b7c2d2;
    font-size: 8px;
    font-weight: 300;
    text-align: center;
    white-space: nowrap;
}

/* HERO */
.astro-hero { padding: 0 18px; text-align: center; }
.astro-ai-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 182px;
    height: 33px;
    margin-top: 0;
    padding: 0 18px;
    border-radius: 999px;
    background: #51e8d9;
    color: #001823;
    font-weight: 700;
    font-size: 11px;
}
.astro-hero-spacer { height: 242px; }
.astro-hero-copy h1 {
    margin: 0;
    color: #f7f8fd;
    font-size: 22px;
    line-height: 1.42;
    font-weight: 800;
    letter-spacing: -.35px;
}
.astro-hero-copy h1 strong { font-size: 21px; }
.astro-hero-copy p {
    margin: 10px 0 0;
    color: #a5b1c6;
    font-size: 10px;
    line-height: 1.75;
    font-weight: 300;
}
.astro-benefits {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    direction: rtl;
}
.astro-benefit-card {
    height: 61px;
    border: 1px solid #2a405c;
    border-radius: 9px;
    background: #17263d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    overflow: hidden;
}
.astro-benefit-title { color: #d9e0ec; font-size: 8.5px; line-height: 1.35; font-weight: 500; }
.astro-benefit-card img { width: 31px; height: 22px; object-fit: contain; mix-blend-mode: screen; }
.astro-primary-cta,
.astro-confirm-btn {
    width: 100%;
    height: 47px;
    border: 0;
    border-radius: 8px;
    background: var(--astro-green);
    color: #00121b;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.astro-primary-cta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    direction: rtl;
}
.astro-primary-cta:hover, .astro-confirm-btn:hover { filter: brightness(1.05); }
.astro-primary-cta:active, .astro-confirm-btn:active { transform: scale(.99); }
.astro-arrow { font-size: 18px; font-weight: 400; transform: translateY(-1px); }

/* SECTION TITLES */
.astro-section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}
.astro-section-title > span {
    width: 4px;
    height: 15px;
    border-radius: 99px;
    background: var(--astro-cyan);
    flex: 0 0 auto;
}

/* ORDER */
.astro-order-section { padding: 27px 18px 0; }
.astro-order-form { margin: 0; }
.astro-payment-choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.astro-payment-choice {
    position: relative;
    min-height: 59px;
    padding: 9px 8px 8px;
    border: 1.5px solid #29415f;
    border-radius: 8px;
    background: #101d38;
    color: white;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.astro-payment-choice strong { display: block; font-size: 11px; font-weight: 800; line-height: 1.35; }
.astro-payment-choice > span:not(.astro-mini-badge) { display: block; margin-top: 4px; color: #c1c9d8; font-size: 8px; font-weight: 400; }
.astro-payment-choice.is-selected {
    border-color: #2ef1dc;
    box-shadow: 0 0 13px rgba(46, 241, 220, .32), inset 0 0 0 1px rgba(46, 241, 220, .15);
}
.astro-mini-badge, .astro-qty-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 80px;
    padding: 3px 8px 2px;
    border-radius: 999px;
    background: var(--astro-pink);
    color: #fff;
    font-size: 6px;
    line-height: 1.1;
    white-space: nowrap;
    font-weight: 600;
}
.astro-online-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-5px);
    pointer-events: none;
    transition: max-height .25s ease, opacity .2s ease, margin .25s ease, transform .2s ease;
}
.astro-online-methods.is-visible {
    max-height: 64px;
    margin-top: 20px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    overflow: visible;
}
.astro-online-method {
    position: relative;
    height: 40px;
    padding: 0;
    border: 1px solid #314563;
    border-radius: 8px;
    background: #101c34;
    overflow: visible;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.astro-online-method img {
    width: 100%; height: 100%; object-fit: contain; border-radius: 7px; display: block;
    background: transparent;
}
.astro-online-method.is-selected { border-color: #2ef1dc; box-shadow: 0 0 9px rgba(46,241,220,.28); }
.astro-card-badge { min-width: 67px; top: -11px; font-size: 5.5px; }

.astro-form-fields {
    margin-top: 18px;
    padding: 8px;
    border-radius: 7px;
    background: rgba(255,255,255,.055);
}
.astro-form-fields input {
    width: 100%;
    height: 38px;
    margin: 0 0 5px;
    padding: 0 14px;
    border: 1px solid #20385d !important;
    border-radius: 8px !important;
    outline: none !important;
    background: #0f1b37 !important;
    color: #fff !important;
    text-align: right !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.astro-form-fields input:last-child { margin-bottom: 0; }
.astro-form-fields input::placeholder { color: #74819b !important; opacity: 1; }
.astro-form-fields input:focus { border-color: #2ee8d9; box-shadow: 0 0 0 1px rgba(46,232,217,.25); }
.astro-form-fields input.astro-invalid { border-color: #ff567f; }
.astro-quantity-title { margin-top: 13px; margin-bottom: 12px; }
.astro-quantity-options { display: grid; gap: 10px; }
.astro-quantity-card {
    position: relative;
    width: 100%;
    height: 58px;
    display: grid;
    grid-template-columns: 24px 1fr 82px;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1.5px solid #2b4160;
    border-radius: 8px;
    background: #101d38;
    color: #fff;
    cursor: pointer;
    text-align: right;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.astro-quantity-card.is-selected {
    border-color: #1de78a;
    box-shadow: 0 0 12px rgba(29,231,138,.25), inset 0 0 0 1px rgba(29,231,138,.1);
}
.astro-radio-dot {
    width: 18px;
    height: 18px;
    border: 2px solid #5b6b84;
    border-radius: 50%;
    position: relative;
    grid-column: 1;
}
.astro-quantity-card.is-selected .astro-radio-dot { border-color: #24e993; }
.astro-quantity-card.is-selected .astro-radio-dot:after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #24e993;
}
.astro-quantity-card strong { grid-column: 2; font-size: 12px; font-weight: 800; }
.astro-price-stack { grid-column: 3; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; direction: rtl; }
.astro-price-stack del { color: #7b8ba3; font-size: 11px; font-weight: 300; text-decoration-thickness: 1px; }
.astro-price-stack b { color: #34efe1; font-size: 18px; font-weight: 700; }
.astro-qty-badge { top: -7px; right: 52px; left: auto; transform: none; min-width: 92px; }
.astro-color-note {
    min-height: 32px;
    margin: 11px 2px 15px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #123c51;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.astro-color-note strong { font-size: 9px; text-align: center; flex: 1; }
.astro-color-dots { display: flex; gap: 8px; direction: ltr; }
.astro-color-dots i { width: 23px; height: 23px; border-radius: 50%; display: block; }
.astro-color-dots .c-white { background: #fff; }
.astro-color-dots .c-black { background: #000; }
.astro-color-dots .c-pink { background: #ff3f87; }
.astro-confirm-btn { height: 47px; }
.astro-form-message { min-height: 0; margin-top: 8px; text-align: center; font-size: 10px; }
.astro-form-message.is-error { color: #ff7d9d; }
.astro-form-message.is-success { color: #42e7b2; }

/* FEATURES */
.astro-features { padding: 21px 10px 0; }
.astro-features .astro-section-title { margin-right: 8px; margin-bottom: 12px; font-size: 16px; }
.astro-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 7px;
}
.astro-feature-card {
    position: relative;
    min-height: 104px;
    padding: 14px 12px 10px;
    border: 1px solid #263c55;
    border-radius: 8px;
    background: #18283e;
    overflow: hidden;
}
.astro-feature-card img {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    mix-blend-mode: screen;
}
.astro-feature-card h3 { margin: 3px 59px 0 0; color: #fff; font-size: 13px; font-weight: 800; line-height: 1.5; }
.astro-feature-card p { margin: 27px 0 0; color: #c1c9d8; font-size: 8.6px; line-height: 1.45; font-weight: 400; }
.astro-bottom-space { height: 430px; }

/* FOOTER */
.astro-footer {
    min-height: 213px;
    padding: 22px 35px 13px;
    background: var(--astro-footer);
    border: 1px solid #1b2a3d;
}
.astro-footer-columns { display: flex; justify-content: space-between; align-items: flex-start; }
.astro-footer-col { min-width: 105px; }
.astro-footer-col h3 { margin: 0 0 11px; font-size: 11px; font-weight: 700; color: #fff; }
.astro-footer-col a { display: block; margin: 0 0 8px; color: #7f8ca2; font-size: 8px; font-weight: 300; }
.astro-copyright { margin-top: 47px; text-align: center; color: #718096; font-size: 7px; font-weight: 300; direction: rtl; }

@media (min-width: 431px) {
    body.astro-landing-body { background: #040a15 !important; }
    .astro-page { box-shadow: 0 0 50px rgba(0,0,0,.45); }
}

@media (max-width: 340px) {
    .astro-topbar, .astro-hero, .astro-order-section { padding-left: 12px; padding-right: 12px; }
    .astro-logo { width: 103px; }
    .astro-refund-pill { min-width: 138px; font-size: 7px; }
    .astro-hero-copy h1 { font-size: 20px; }
    .astro-feature-card h3 { font-size: 11.5px; }
}


/* ===== V2 PIXEL-MATCH OVERRIDES ===== */
.astro-page, .astro-page * { font-family: "Tajawal", Tahoma, Arial, sans-serif; }
.astro-page button, .astro-page input { font-family: "Tajawal", Tahoma, Arial, sans-serif !important; }

/* Match the Figma payment-chip colors instead of showing all three dark. */
.astro-online-method:nth-child(1) { background: #d99bc9; }
.astro-online-method:nth-child(2) { background: #46dfcf; }
.astro-online-method:nth-child(3) { background: #101c34; }
.astro-online-method img { object-fit: contain; padding: 3px 10px; mix-blend-mode: screen; }

/* Prevent Astra/global theme form styles from turning the fields white. */
.astro-page .astro-form-fields input[type="text"],
.astro-page .astro-form-fields input[type="tel"],
.astro-page .astro-form-fields input[type="email"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #0f1b37 !important;
    border-color: #20385d !important;
    color: #f7f9ff !important;
    box-shadow: none !important;
}

/* Typography is slightly broader/heavier in the supplied Figma. */
.astro-hero-copy h1 { font-weight: 900; letter-spacing: 0; line-height: 1.28; }
.astro-hero-copy h1 strong { font-weight: 900; }
.astro-primary-cta, .astro-confirm-btn { font-weight: 900; }
.astro-payment-choice strong, .astro-quantity-card strong, .astro-feature-card h3 { font-weight: 800; }

/* Figma has a little less vertical breathing room in the form/features area. */
.astro-form-fields { padding: 8px; }
.astro-form-fields input { height: 36px; }
.astro-quantity-card { height: 57px; }
.astro-feature-card { min-height: 99px; }

/* Price block alignment from the reference design. */
.astro-price-stack { align-items: flex-end; direction: ltr; }
.astro-price-stack del { line-height: 1; }
.astro-price-stack b { line-height: 1.1; direction: rtl; }






/* =========================================================
   V3 SIZE / PROPORTION CORRECTION
   Makes the page visually match the Figma scale better
   ========================================================= */

/* HERO */
.astro-hero-copy h1 {
    font-size: 28px;
    line-height: 1.25;
}

.astro-hero-copy h1 strong {
    font-size: 27px;
}

.astro-hero-copy p {
    font-size: 13px;
    line-height: 1.65;
    margin-top: 12px;
}

/* TOP PILLS */
.astro-refund-pill {
    font-size: 14px;
    height: auto;
    padding-top: 4px;
}

.astro-ai-pill {
    font-size: 13px;
    min-width: 215px;
    height: 38px;
}

/* 3 BENEFIT CARDS */
.astro-benefit-card {
    height: 68px;
}

.astro-benefit-title {
    font-size: 12px;
    font-weight: 600;
}

.astro-benefit-card img {
    width: 35px;
    height: 25px;
}

/* GREEN ORDER BUTTON */
.astro-primary-cta,
.astro-confirm-btn {
    height: 53px;
    font-size: 21px !important;
    font-weight: 800 !important;
}

.astro-arrow {
    font-size: 21px;
}

/* SECTION TITLES */
.astro-section-title {
    font-size: 15px;
    margin-bottom: 14px;
}

.astro-section-title > span {
    height: 18px;
    width: 4px;
}

/* PAYMENT METHOD CARDS */
.astro-payment-choice {
    min-height: 68px;
    padding: 11px 8px;
}

.astro-payment-choice strong {
    font-size: 14px;
}

.astro-payment-choice > span:not(.astro-mini-badge) {
    font-size: 12px;
    margin-top: 5px;
}

.astro-mini-badge,
.astro-qty-badge {
    font-size: 8px;
    padding: 4px 10px 3px;
}

/* TAMARA / TABBY / CARD */
.astro-online-method {
    height: 46px;
}

/* FORM */
.astro-form-fields input {
    height: 43px !important;
    font-size: 13px !important;
    padding: 0 15px !important;
}

.astro-form-fields {
    padding: 9px;
}

/* QUANTITY SECTION */
.astro-quantity-title {
    margin-top: 17px;
}

.astro-quantity-card {
    height: 68px;
    grid-template-columns: 27px 1fr 95px;
    padding: 9px 14px;
}

.astro-radio-dot {
    width: 20px;
    height: 20px;
}

.astro-quantity-card strong {
    font-size: 15px;
}

.astro-price-stack del {
    font-size: 13px;
}

.astro-price-stack b {
    font-size: 22px;
}

/* COLOR NOTE */
.astro-color-note {
    min-height: 38px;
}

.astro-color-note strong {
    font-size: 12px;
}

.astro-color-dots i {
    width: 26px;
    height: 26px;
}

/* FEATURES TITLE */
.astro-features .astro-section-title {
    font-size: 20px;
}

/* FEATURE CARDS */
.astro-feature-card {
    min-height: 122px;
    padding: 15px 13px 12px;
}

.astro-feature-card img {
    width: 59px;
    height: 59px;
}

.astro-feature-card h3 {
    font-size: 16px;
    margin-right: 65px;
}

.astro-feature-card p {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 31px;
}

/* FOOTER */
.astro-footer-col h3 {
    font-size: 14px;
}

.astro-footer-col a {
    font-size: 10px;
}

.astro-copyright {
    font-size: 9px;
}

/* =========================================================
   AJAX / CONDITIONAL FORM HELPERS
   ========================================================= */

/* Ensure conditional fields truly disappear even if theme styles interfere. */
.astro-page [hidden] {
    display: none !important;
}

.astro-confirm-btn:disabled {
    opacity: .65;
    cursor: wait;
    filter: none !important;
    transform: none !important;
}