/* =====================================================================
   SmartGate — Landing Theme (overrides the old template)
   Brand: sky-blue #249bcf  |  loaded last to win the cascade.
   Scoped with #bdy for specificity. RTL-first.
   ===================================================================== */

:root {
    --sg-primary: #249bcf;
    --sg-primary-2: #1fb6d6;
    --sg-primary-d: #1b7aa3;
    --sg-tint: #e8f6fc;
    --sg-ink: #0f2733;
    --sg-slate: #5b7280;
    --sg-bg: #f4fafd;
    --sg-card: #ffffff;
    --sg-line: #e4eef3;
    --sg-shadow: 0 18px 50px -22px rgba(15, 39, 51, .28);
    --sg-shadow-sm: 0 10px 30px -18px rgba(15, 39, 51, .35);
    --sg-grad: linear-gradient(135deg, var(--sg-primary) 0%, var(--sg-primary-2) 100%);
    --sg-radius: 20px;
}

#bdy {
    background: var(--sg-bg) !important;
    color: var(--sg-ink);
    font-family: "Tajawal", "Cairo", system-ui, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

#bdy p { color: var(--sg-slate); line-height: 2; }
#bdy h2, #bdy h5 { color: var(--sg-ink); }

/* ---------- Branded loader ---------- */
.se-pre-con {
    position: fixed; inset: 0; z-index: 99999;
    background:
        radial-gradient(120% 120% at 50% 0%, #ffffff 0%, var(--sg-tint) 60%, #d7eefa 100%);
    display: flex; align-items: center; justify-content: center;
}
.se-pre-con::before {
    content: "";
    width: 78px; height: 78px; border-radius: 50%;
    border: 5px solid rgba(36, 155, 207, .18);
    border-top-color: var(--sg-primary);
    border-right-color: var(--sg-primary-2);
    animation: sg-spin .9s linear infinite;
}
.se-pre-con::after {
    content: "";
    position: absolute;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--sg-grad);
    box-shadow: 0 8px 24px -6px rgba(36, 155, 207, .7);
    animation: sg-pulse 1.4s ease-in-out infinite;
}
@keyframes sg-spin { to { transform: rotate(360deg); } }
@keyframes sg-pulse { 0%,100% { transform: scale(.7); opacity: .85; } 50% { transform: scale(1); opacity: 1; } }

/* ---------- Navbar ---------- */
#bdy .header .navbar,
#bdy .bsnav {
    background: rgba(255, 255, 255, .82) !important;
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 10px 30px -24px rgba(15, 39, 51, .5);
    padding: 14px 0;
    transition: .3s;
}
#bdy .bsnav.bsnav-scrolled { background: rgba(255, 255, 255, .96) !important; }
#bdy .navbar-brand img { max-height: 54px; width: auto !important; }
#bdy .navbar-nav .nav-link {
    color: var(--sg-ink) !important;
    font-weight: 600; margin: 0 4px; position: relative;
    transition: color .25s;
}
#bdy .navbar-nav .nav-link::after {
    content: ""; position: absolute; bottom: 2px; inset-inline: 12px;
    height: 2px; background: var(--sg-grad); border-radius: 2px;
    transform: scaleX(0); transition: transform .3s;
}
#bdy .navbar-nav .nav-link:hover { color: var(--sg-primary) !important; }
#bdy .navbar-nav .nav-link:hover::after { transform: scaleX(1); }

#bdy .btn-2 {
    background: var(--sg-grad); color: #fff !important;
    padding: 11px 26px; border-radius: 999px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 14px 30px -12px rgba(36, 155, 207, .65);
    transition: transform .25s, box-shadow .25s;
}
#bdy .btn-2:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(36, 155, 207, .8); }
#bdy .btn-3 {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sg-tint); color: var(--sg-primary-d) !important;
    border: 1px solid var(--sg-line); transition: .25s;
}
#bdy .btn-3:hover { background: var(--sg-primary); color: #fff !important; }

/* ---------- Hero ---------- */
#bdy .hero-section, #bdy .hero-single {
    background: none !important;
}
#bdy .hero-section {
    position: relative;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(31, 182, 214, .25), transparent 60%),
        radial-gradient(700px 500px at 5% 110%, rgba(36, 155, 207, .20), transparent 55%),
        linear-gradient(180deg, #0c2b3a 0%, #103b50 55%, #0c2b3a 100%) !important;
    overflow: hidden;
}
#bdy .hero-section::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 26px 26px; opacity: .6;
}
#bdy .hero-single { padding: 190px 0 130px !important; }
#bdy .hero-content { position: relative; z-index: 2; }
#bdy .hero-content .top-title {
    display: inline-block; color: #bfeaf9; font-weight: 700;
    letter-spacing: .5px; padding: 7px 18px; margin-bottom: 22px;
    background: rgba(36, 155, 207, .18); border: 1px solid rgba(191, 234, 249, .3);
    border-radius: 999px; backdrop-filter: blur(6px);
}
#bdy .hero-content .home-title {
    color: #fff !important; font-weight: 800;
    font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.3; margin-bottom: 20px;
}
#bdy .hero-content p { color: #d6eaf3 !important; font-size: 1.08rem; max-width: 640px; margin: 0 auto 34px; }
#bdy .theme-btn {
    background: #fff; color: var(--sg-primary-d) !important;
    padding: 14px 34px; border-radius: 999px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); transition: transform .25s;
}
#bdy .theme-btn:hover { transform: translateY(-3px); }
#bdy .theme-btn i { color: var(--sg-primary); }

/* ---------- Section rhythm + titles ---------- */
#bdy .de-padding, #bdy .what-area, #bdy .faq-area, #bdy .download { padding: 100px 0; }
#bdy .about-sub-title {
    display: inline-block; color: var(--sg-primary-d); font-weight: 800;
    background: var(--sg-tint); padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
}
#bdy .about-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.4; }
#bdy .site-title { margin-bottom: 56px; }

/* ---------- Feature cards (services) ---------- */
#bdy .feature-area { margin-top: -70px; position: relative; z-index: 5; }
#bdy .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
#bdy .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
#bdy .feature-box {
    background: var(--sg-card); border: 1px solid var(--sg-line);
    border-radius: var(--sg-radius); padding: 34px 28px;
    box-shadow: var(--sg-shadow); transition: transform .3s, box-shadow .3s;
    text-align: center;
}
#bdy .feature-box:hover { transform: translateY(-8px); box-shadow: 0 28px 60px -24px rgba(36,155,207,.45); }
#bdy .feature-icon {
    width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 22px;
    background: var(--sg-tint); display: flex; align-items: center; justify-content: center;
}
#bdy .feature-icon img, #bdy .what-icon img { width: 44px; height: 44px; object-fit: contain; }
#bdy .feature-info h5 { font-weight: 800; margin-bottom: 10px; }

/* ---------- About ---------- */
#bdy .about-img img {
    width: 100%; border-radius: 26px; box-shadow: var(--sg-shadow);
    border: 6px solid #fff;
}
#bdy .about-fact { margin-top: 36px; }
#bdy .fun-fact {
    background: var(--sg-card); border: 1px solid var(--sg-line); border-radius: 16px;
    padding: 22px 14px; text-align: center; box-shadow: var(--sg-shadow-sm);
}
#bdy .fun-fact .timer {
    font-size: 2.2rem; font-weight: 800; margin: 0;
    background: var(--sg-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
#bdy .fun-desc .medium { color: var(--sg-slate); font-weight: 700; }

/* ---------- How it works ---------- */
#bdy .what-area { background:
    linear-gradient(180deg, transparent, var(--sg-tint) 40%, transparent); }
#bdy .what-box {
    background: var(--sg-card); border: 1px solid var(--sg-line);
    border-radius: var(--sg-radius); padding: 36px 28px; text-align: center;
    box-shadow: var(--sg-shadow-sm); position: relative; transition: transform .3s;
}
#bdy .what-box:hover { transform: translateY(-8px); }
#bdy .what-icon {
    width: 90px; height: 90px; margin: 0 auto 20px; border-radius: 50%;
    background: var(--sg-grad); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 30px -12px rgba(36,155,207,.6);
}
#bdy .what-icon img { filter: brightness(0) invert(1); }
#bdy .what-info h5 { font-weight: 800; margin-bottom: 10px; }

/* ---------- Download / Promo ---------- */
#bdy .download {
    background:
        radial-gradient(700px 400px at 90% 10%, rgba(31,182,214,.25), transparent 60%),
        linear-gradient(135deg, #0c2b3a, #11455d) !important;
    border-radius: 36px; margin: 60px 16px; overflow: hidden;
}
#bdy .download .about-sub-title { background: rgba(36,155,207,.2); color: #bfeaf9; }
#bdy .download .about-title, #bdy .download p { color: #fff !important; }
#bdy .download p { color: #d6eaf3 !important; }
#bdy .download-contain a img { height: 52px; width: auto; margin: 12px 8px 0 0; transition: transform .25s; }
#bdy .download-contain a:hover img { transform: translateY(-3px); }
#bdy .download-image img { width: 100%; max-width: 440px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }

/* ---------- FAQ / Accordion ---------- */
#bdy .faq-wpr { max-width: 880px; margin: 0 auto; }
#bdy .accordion-item {
    background: var(--sg-card); border: 1px solid var(--sg-line) !important;
    border-radius: 16px !important; margin-bottom: 16px; overflow: hidden;
    box-shadow: var(--sg-shadow-sm);
}
#bdy .accordion-button {
    font-weight: 700; color: var(--sg-ink); padding: 22px 24px;
    background: var(--sg-card) !important; box-shadow: none !important;
}
#bdy .accordion-button:not(.collapsed) {
    color: var(--sg-primary-d); background: var(--sg-tint) !important;
}
#bdy .accordion-button::after {
    background-image: none; content: "\002B"; font-size: 1.4rem; line-height: 1;
    width: auto; height: auto; transform: none; color: var(--sg-primary);
}
#bdy .accordion-button:not(.collapsed)::after { content: "\2212"; transform: none; }
#bdy .accordion-body { color: var(--sg-slate); line-height: 2; padding: 4px 24px 22px; }

/* ---------- Footer ---------- */
#bdy footer {
    background:
        radial-gradient(600px 400px at 100% 0%, rgba(36,155,207,.25), transparent 60%),
        linear-gradient(180deg, #0c2733, #0a2230) !important;
    color: #cde3ec; margin-top: 40px;
}
#bdy .footer-widget { padding: 80px 0 0; }
#bdy .footer-widget-box img { max-height: 56px; margin-bottom: 22px; }
#bdy .footer-widget-box p, #bdy .footer-list a, #bdy .adr li, #bdy .adr a { color: #a9c6d2 !important; }
#bdy .footer-widget-title { color: #fff; font-weight: 800; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
#bdy .footer-widget-title::after {
    content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
    width: 46px; height: 3px; background: var(--sg-grad); border-radius: 3px;
}
#bdy .footer-list li, #bdy .adr li { margin-bottom: 12px; }
#bdy .footer-list a:hover { color: var(--sg-primary-2) !important; padding-inline-start: 6px; transition: .25s; }
#bdy .copyright {
    margin-top: 60px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
#bdy .copyright p { color: #8fb0bd !important; margin: 0; }
#bdy .footer-social { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
#bdy .footer-social a {
    width: 42px; height: 42px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: #fff;
    background: rgba(255,255,255,.08); transition: .25s;
}
#bdy .footer-social a:hover { background: var(--sg-grad); transform: translateY(-3px); }

/* ---------- Scroll-top ---------- */
#bdy #scrtop {
    background: var(--sg-grad) !important; color: #fff !important;
    width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 14px 30px -10px rgba(36,155,207,.7);
}

/* ---------- Navbar fixes ---------- */
#bdy .navbar-nav { align-items: center; gap: 6px; }
#bdy .btn-2 { white-space: nowrap; line-height: 1; }
#bdy .header-serarch-btn, #bdy .lang-btn { display: inline-flex; align-items: center; }

/* ---------- FAQ: single centered column (kill empty cell + stray decor) ---------- */
#bdy .faq-wpr { grid-template-columns: 1fr !important; max-width: 860px; margin: 0 auto; }
#bdy .faq-area::before, #bdy .faq-area::after,
#bdy .faq-wpr::before, #bdy .faq-wpr::after,
#bdy .faq-left, #bdy .faq-img { display: none !important; }

/* ---------- Login page (split card, visible logo) ---------- */
#bdy .page-main, #bdy .page-content, #bdy .login-section {
    min-height: 100vh; background: var(--sg-bg) !important;
    display: flex; align-items: center; justify-content: center;
}
#bdy .login-section { width: 100%; padding: 40px 16px; }
#bdy .login-content {
    background: #fff; border-radius: 28px; overflow: hidden;
    box-shadow: var(--sg-shadow); max-width: 1040px; margin: 0 auto; width: 100%;
    border: 1px solid var(--sg-line);
}
#bdy .login-content .row { margin: 0; }
#bdy .login-media-row { padding: 0 !important; }
#bdy .login-background {
    height: 100%; min-height: 480px; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(600px 400px at 80% 10%, rgba(31,182,214,.35), transparent 60%),
        linear-gradient(160deg, #0c2b3a, #11455d) !important;
    padding: 48px;
}
#bdy .login-background img { max-width: 86%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
#bdy .login-detail { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
#bdy .login-logo { text-align: center; margin-bottom: 26px; }
#bdy .login-logo img.logo {
    max-height: 92px; width: auto;
    background: #fff; padding: 10px 16px; border-radius: 18px;
    box-shadow: 0 12px 30px -16px rgba(15,39,51,.4);
}
#bdy .login-title .title-heading span {
    display: block; font-size: 1.9rem; font-weight: 800; color: var(--sg-ink); margin-bottom: 10px;
}
#bdy .login-title .title-heading p { color: var(--sg-slate); margin-bottom: 30px; line-height: 1.9; }
#bdy .login-form .form-control {
    border: 1px solid var(--sg-line); border-radius: 12px; padding: .85rem 1rem;
    background: #fff; transition: border-color .2s, box-shadow .2s;
}
#bdy .login-form .form-control:focus {
    border-color: var(--sg-primary); box-shadow: 0 0 0 .2rem rgba(36,155,207,.18);
}
#bdy .site-button {
    width: 100%; border: 0; border-radius: 12px; padding: 14px;
    background: var(--sg-grad); color: #fff; font-weight: 800; font-size: 1.05rem;
    box-shadow: 0 14px 30px -12px rgba(36,155,207,.7); transition: transform .2s;
}
#bdy .site-button:hover { transform: translateY(-2px); }
#bdy .login-p { text-align: center; margin-top: 20px; color: var(--sg-slate); }
#bdy .login-p a { color: var(--sg-primary-d); font-weight: 700; }

@media (max-width: 991px) {
    #bdy .login-media-row { display: none; }
    #bdy .login-detail { padding: 40px 26px; }
}

/* ---------- OTP / Register (share .login-* classes) ---------- */
#bdy .register-inner { width: 100%; }
#bdy .otp-input { display: flex; gap: 12px; justify-content: center; align-items: center; direction: ltr; margin: 10px 0 26px; flex-wrap: wrap; }
#bdy .otp-box {
    width: 56px; height: 64px; padding: 0; text-align: center; font-size: 1.6rem; font-weight: 800;
    border: 1px solid var(--sg-line); border-radius: 14px; background: #fff; color: var(--sg-ink);
    transition: border-color .2s, box-shadow .2s;
    -moz-appearance: textfield;
}
#bdy .otp-box::-webkit-outer-spin-button,
#bdy .otp-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#bdy .otp-box:focus { border-color: var(--sg-primary); box-shadow: 0 0 0 .2rem rgba(36,155,207,.18); outline: none; }
.iti { border-radius: 12px; }

@media (max-width: 480px) {
    #bdy .otp-box { width: 46px; height: 56px; font-size: 1.3rem; }
    #bdy .login-detail { padding: 32px 20px; }
    #bdy .login-logo img.logo { max-height: 76px; }
    #bdy .login-title .title-heading span { font-size: 1.6rem; }
}

/* ---------- Extra responsive (landing) ---------- */
@media (max-width: 1199px) {
    #bdy .grid-2 { grid-template-columns: 1fr; gap: 32px; }
    #bdy .download .row { row-gap: 24px; }
}
@media (max-width: 767px) {
    #bdy .hero-single { padding: 130px 0 70px !important; }
    #bdy .hero-content .home-title { font-size: 1.7rem; }
    #bdy .hero-content p { font-size: 1rem; }
    #bdy .de-padding, #bdy .what-area, #bdy .faq-area, #bdy .download { padding: 56px 0; }
    #bdy .download { margin: 36px 10px; border-radius: 24px; padding: 40px 6px; }
    #bdy .download-contain a img { height: 44px; }
    #bdy .navbar-nav { gap: 2px; }
    #bdy .feature-area { margin-top: 24px; }
    #bdy .about-fact.grid-3 { gap: 12px; }
}
@media (max-width: 575px) {
    #bdy .feature-box, #bdy .what-box { padding: 26px 20px; }
    #bdy .footer-widget { padding: 56px 0 0; }
    #bdy .fun-fact .timer { font-size: 1.6rem; }
    #bdy .login-content { border-radius: 20px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    #bdy .grid-3 { grid-template-columns: 1fr 1fr; }
    #bdy .grid-2 { grid-template-columns: 1fr; gap: 36px; }
    #bdy .hero-single { padding: 150px 0 90px !important; }
    #bdy .feature-area { margin-top: 30px; }
}
@media (max-width: 575px) {
    #bdy .grid-3 { grid-template-columns: 1fr; }
    #bdy .de-padding, #bdy .what-area, #bdy .faq-area { padding: 64px 0; }
    #bdy .copyright { flex-direction: column; text-align: center; }
}
