/* =====================================================
   ONEHEART CORE STYLES
   ===================================================== */


html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* =============== RESET BASE =============== */

:root {
    --primary-color: #1ECAD3;
    --primary-dark: #0F9FA8;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #0f172a;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============== CONTAINER =============== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* =====================================================
   NAVBAR
   ===================================================== */

.navbar {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

/* ===== Logo ===== */

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-wrapper img {
    max-width: none;
    height: auto;
}

.logo-full {
    height: 40px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 40px !important;
    display: block !important;
}

.logo-icon {
    height: 30px !important;
    width: auto !important;
    max-width: none !important;
    display: none !important;
}

/* ===== Navigation ===== */

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #10b981;
}

/* ===== Buttons ===== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    background: #1ec6b6;
    color: #ffffff;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #16b3a5;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    color: #1ec6b6;
    border: 2px solid #1ec6b6;
    transition: 0.3s ease;
}

.btn-outline:hover {
    background: #1ec6b6;
    color: #ffffff;
}

/* ===== Mobile Toggle ===== */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
}

/* =====================================================
   MOBILE NAVBAR
   ===================================================== */

@media (max-width: 992px) {

    .navbar-inner {
        height: 58px;
    }

    .logo-full {
        display: none;
    }

    .logo-icon {
        display: block;
        height: 26px;
    }

    .desktop-btn {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 58px;
        right: 0;
        background: #ffffff;
        width: 220px;
        border-radius: 0 0 0 12px;
        box-shadow: -4px 8px 30px rgba(0,0,0,0.15);
        padding: 20px;
        display: none;
        flex-direction: column;
        gap: 18px;
        z-index: 9999;
    }

    .nav-links.active {
        display: flex;
    }

}


/* =====================================================
   LAYOUT
   ===================================================== */

.layout-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* =====================================================
   HERO SECTIONS
   ===================================================== */

.premium-hero {
    position: relative;
    padding: 160px 0 140px;
    background: radial-gradient(circle at 30% 30%, #0f2d3d, #081421 60%);
    color: white;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.premium-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0;
}

.premium-hero p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-secondary {
    padding: 14px 28px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.hero-section {
    position: relative;
    background: radial-gradient(circle at 30% 20%, #0f3b44 0%, #071a22 60%, #041017 100%);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,255,200,0.15) 0%, transparent 70%);
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(80px);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}


/* =====================================================
   TYPES SECTION
   ===================================================== */

.premium-types {
    padding: 120px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: auto;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 15px 0;
}

.section-header p {
    color: #64748b;
    font-size: 15px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}


/* =====================================================
   COVER / WHY SECTIONS
   ===================================================== */

.cover-section,
.premium-cover {
    background: #ffffff !important;
    color: #0f172a;
    padding: 120px 0;
}

.cover-section h2,
.premium-cover h2 { color: #0f172a; }
.cover-section p,
.premium-cover p  { color: #475569; }
.cover-section ul li,
.premium-cover ul li { color: #0f172a; }
.cover-section::before,
.premium-cover::before { display: none !important; }

.why-section {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 120px 0;
}
.why-section h2 { color: #0f172a !important; }
.why-section p  { color: #475569 !important; }
.why-section li { color: #0f172a !important; }


/* =====================================================
   TYPE CARDS
   ===================================================== */

.type-card {
    transition: all .25s ease;
    border: 1px solid #e5e7eb;
}

.type-card:hover {
    transform: translateY(-6px);
    border-color: #1ec6b6;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.type-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}

.type-icon i {
    font-size: 20px; color: #0f172a;
    opacity: 0.8; transition: 0.3s ease;
}

.type-card:hover .type-icon { background: #e6fffa; }
.type-card:hover .type-icon i { color: #1ec6b6; opacity: 1; }
.type-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.type-card p  { font-size: 14px; color: #64748b; }
.card-arrow   { display: none; }


/* =====================================================
   STATS SECTION
   ===================================================== */

.stats-section {
    background: #f8fafc;
    padding: 80px 0;
}

.stats-section h3 { font-weight: 800; font-size: 26px; color: #1ec6b6; }
.stats-section p  { font-size: 13px; color: #64748b; }


/* =====================================================
   PETITION STEP / WIZARD
   ===================================================== */

.petition-step-section {
    padding: 16px 0 24px;
    background: #f8fafc;
}

.petition-step-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
    margin-top: 0;
}

.petition-guide-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    border: 1px solid #eef2f7;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
}

.step-label {
    font-size: 13px; font-weight: 600; color: #1ec6b6;
    display: inline-block; margin-bottom: 15px;
}

.petition-guide-box h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.guide-sub  { font-size: 14px; color: #64748b; margin-bottom: 30px; }
.guide-item { margin-bottom: 25px; }
.guide-item h5 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.guide-item p  { font-size: 14px; color: #475569; }

.guide-tip {
    margin-top: 25px; padding: 15px;
    background: linear-gradient(135deg, #e6fffb, #ecfeff);
    border-radius: 12px; font-size: 14px; font-weight: 600; color: #0f766e;
}

.petition-step-card {
    background: #ffffff; padding: 45px;
    border-radius: 18px; border: 1px solid #eef2f7;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.petition-step-card h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.form-subtitle { font-size: 14px; color: #64748b; margin-bottom: 30px; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }

.form-control {
    width: 100%; padding: 14px 16px;
    border-radius: 10px; border: 1px solid #e2e8f0; font-size: 14px;
}

.form-control:focus {
    outline: none; border-color: #1ec6b6;
    box-shadow: 0 0 0 3px rgba(30,198,182,0.15);
}

.char-counter { font-size: 12px; color: #94a3b8; }
.petition-step-card .btn-primary { margin-top: 10px; width: 100%; }

@media (max-width: 992px) {
    .petition-step-grid { grid-template-columns: 1fr; gap: 40px; }
}


/* =====================================================
   MOBILE COMPATIBILITY — older Android / iOS
   Fixes layout breaking on pre-2019 devices
   ===================================================== */

/* Force correct box model everywhere */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    min-width: 0;
}

/* Prevent font inflation on old Android */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Stop horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* All media fills container */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Flexbox prefix for old Webkit */
.navbar-inner,
.logo-wrapper,
.nav-links,
.hero-cta,
.btn-primary,
.btn-outline {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

/* ── MOBILE NAVBAR — stronger rules for old browsers ── */
@media only screen and (max-width: 992px) {

    .navbar {
        width: 100%;
        max-width: 100vw;
        position: -webkit-sticky;
        position: sticky;
    }

    .navbar-inner {
        height: 58px !important;
        padding: 0 16px;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
    }

    .logo-full  { display: none !important; }
    .logo-icon  {
        display: block !important;
        height: 26px !important;
        width: auto !important;
    }







    .desktop-btn { display: none !important; }

    .nav-toggle {
        display: block !important;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px 8px;
        -webkit-tap-highlight-color: transparent;
        color: #0f172a;
    }

    /* Hidden by default — shown when .active added by JS */
    .nav-links {
        position: fixed !important;
        top: 58px !important;
        right: 0 !important;
        left: auto !important;
        background: #ffffff !important;
        width: 220px !important;
        border-radius: 0 0 0 12px !important;
        box-shadow: -4px 8px 30px rgba(0,0,0,0.15) !important;
        padding: 20px !important;
        display: none !important;
        -webkit-box-orient: vertical !important;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        gap: 18px !important;
        z-index: 9999 !important;
    }

    .nav-links.active {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-orient: vertical !important;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
    }

    /* Types grid → 2 columns */
    .types-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

}

/* ── SMALL SCREENS ── */
@media only screen and (max-width: 480px) {

    .container { padding: 0 14px; }

    .btn-primary,
    .btn-outline {
        padding: 11px 18px !important;
        font-size: 13px !important;
    }

    .types-grid {
        grid-template-columns: 1fr !important;
    }

    .petition-step-grid {
        gap: 24px !important;
    }
}


/* ======================================
   AUTH — FINAL CLEAN VERSION
====================================== */

.auth-light {
    min-height: 100vh;
    background: #f5f6f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* Container */
.auth-container {
    width: 100%;
    max-width: 460px;
}

/* Card */
.auth-card-pro {
    background: #ffffff;
    border-radius: 18px;
    padding: 56px 48px;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.04),
        0 30px 60px rgba(0,0,0,0.06);
}

/* Brand */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-brand img {
    width: 28px;
}

.auth-brand span {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}

/* Title */
.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

/* Subtitle */
.auth-new {
    font-size: 14px;
    margin-bottom: 24px;
    color: #6b7280;
}

.auth-new a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.auth-new a:hover {
    text-decoration: underline;
}

/* Legal box */
.auth-legal {
    background: #f3f4f6;
    padding: 16px;
    border-radius: 10px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 30px;
    line-height: 1.6;
}

.auth-legal a {
    color: #111827;
    font-weight: 500;
    text-decoration: underline;
}

/* Form */
.form-group-pro {
    margin-bottom: 22px;
}

.form-group-pro label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 6px;
}

.form-group-pro input {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0 14px;
    font-size: 14px;
    background: #ffffff;
    transition: all .2s ease;
}

.form-group-pro input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17,24,39,0.08);
    outline: none;
}

/* Options */
.auth-options-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 30px;
}

.auth-options-pro a {
    color: #0f766e;
    font-weight: 500;
    text-decoration: none;
}

.auth-options-pro a:hover {
    text-decoration: underline;
}

/* Submit */
.auth-submit {
    width: 100%;
    height: 52px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
}

.auth-submit:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 34px 0 20px;
    position: relative;
}

.auth-divider span {
    background: #ffffff;
    padding: 0 14px;
    font-size: 13px;
    color: #6b7280;
    position: relative;
    z-index: 2;
}

.auth-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

/* Google button */
.auth-social {
    display: flex;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    transition: all .2s ease;
    text-decoration: none;
}

.social-btn:hover {
    border-color: #111827;
    transform: translateY(-2px);
}





/* ===== end ===== */
/* Font Awesome Fix */
.fas, .far, .fab, .fa, .fa-solid, .fa-regular, .fa-brands {
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}
.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

/* =========================
   RTL FIXES – ARABIC ONLY
   ========================= */
html[dir="rtl"] .contact-faq,
html[dir="rtl"] .faq-header,
html[dir="rtl"] .faq-list,
html[dir="rtl"] .faq-item,
html[dir="rtl"] .faq-question,
html[dir="rtl"] .faq-answer {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .faq-question {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

html[dir="rtl"] .faq-question i {
    margin-left: 0;
    margin-right: 10px;
}


/* =====================================
   FORCE RTL FAQ ALIGNMENT (AR ONLY)
   ===================================== */

html[dir="rtl"] .contact-faq .faq-item {
    direction: rtl !important;
}

html[dir="rtl"] .contact-faq .faq-question {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;

    text-align: right !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

html[dir="rtl"] .contact-faq .faq-question span,
html[dir="rtl"] .contact-faq .faq-question {
    text-align: right !important;
}

/* السهم */
html[dir="rtl"] .contact-faq .faq-question i {
    margin-right: 0 !important;
    margin-left: 12px !important;
    flex-shrink: 0;
}

html[dir="rtl"] .contact-faq .faq-answer {
    text-align: right !important;
    direction: rtl !important;
    padding-right: 20px !important;
}







/* ═══ Auth Mobile Compact ═══ */
@media(max-width:600px){
    .auth-light{padding:20px 16px;align-items:flex-start}
    .auth-card-pro{padding:28px 24px;border-radius:14px}
    .auth-brand{margin-bottom:16px}
    .auth-brand img{width:24px}
    .auth-brand span{font-size:16px}
    .auth-title{font-size:22px;margin-bottom:8px}
    .auth-new{margin-bottom:14px;font-size:13px}
    .auth-legal{padding:12px;margin-bottom:18px;font-size:12px}
    .form-group-pro{margin-bottom:14px}
    .form-group-pro input{height:44px}
    .auth-options-pro{margin-bottom:18px}
    .auth-submit{height:46px;font-size:14px}
    .auth-divider{margin:18px 0 14px}
    .social-btn{height:44px;font-size:13px}
}
