:root {
    --primary-color: #4f8cff;
    --primary-hover: #2d6bff;
    --accent-2: #7c3aed;
    --accent-3: #14b8a6;

    --bg-gradient:
        linear-gradient(
            135deg,
            #060816 0%,
            #0f172a 40%,
            #111827 100%
        );

    --card-bg: rgba(10, 17, 35, 0.82);

    --text-main: #f8fafc;
    --text-muted: #cbd5e1;

    --border-color: rgba(148, 163, 184, 0.22);

    --shadow:
        0 20px 45px -20px rgba(0, 0, 0, 0.55);

    --transition:
        all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    box-sizing: border-box;
}

#global-announcement {
    position: relative;
    z-index: 5;
    padding: 10px 18px;
    background: #14b8a6;
    color: #061b1b;
    text-align: center;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 700;
}

#user-task-notice {
    max-width: 1100px;
    margin: 18px auto 0;
    padding: 14px 18px;
    border: 1px solid rgba(20, 184, 166, .5);
    border-radius: 10px;
    background: rgba(20, 184, 166, .12);
    color: var(--text-main);
    font-family: 'Noto Sans Arabic', sans-serif;
}

.subscription-price-display {
    color: var(--accent-3);
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 700;
}


/* =========================
   FONT SYSTEM
========================= */

/*
   Urdu:
   Noto Nastaliq Urdu

   Navigation / Buttons:
   Noto Sans Arabic
*/

body,
.page-card,
.page-section p,
.page-section li,
.chatbot-section h3,
.user-msg {

    font-family:
        'Noto Nastaliq Urdu',
        serif;

    /* Urdu words کو تھوڑا کھلا رکھنے کے لیے */
    word-spacing: 3px;

    /* حروف کو بہت زیادہ نہ پھیلائیں */
    letter-spacing: 0;

    /* Nastaliq readability */
    text-rendering: optimizeLegibility;
}


.logo,
.nav-links,
.nav-links a,
.nav-links select,
.hero-badge,
.action-btn,
.chat-input-area button,
.close-btn,
.contact-form label,
input,
textarea,
.site-footer {

    font-family:
        'Noto Sans Arabic',
        'Segoe UI',
        Arial,
        sans-serif;

    letter-spacing: 0;
    word-spacing: 1px;
}


/* =========================
   BACKGROUND
========================= */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    background-image:

        radial-gradient(
            circle at 20% 0%,
            rgba(79,140,255,.30),
            transparent 28%
        ),

        radial-gradient(
            circle at 80% 20%,
            rgba(124,58,237,.24),
            transparent 30%
        ),

        radial-gradient(
            circle at 0% 100%,
            rgba(20,184,166,.20),
            transparent 26%
        );

    pointer-events: none;
    z-index: 0;
}


body::after {
    content: "";

    position: fixed;
    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 44px 44px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.6),
            transparent
        );

    pointer-events: none;
    z-index: 0;
}


body > * {
    position: relative;
    z-index: 1;
}


::selection {
    background: rgba(79,140,255,.35);
    color: white;
}


/* =========================
   HEADER
========================= */

.glass-header {

    background:
        rgba(5,10,25,.82);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    color: white;

    display: flex;

    justify-content: space-between;

    align-items: center;

    direction: ltr;

    gap: 16px;

    padding: 12px 24px;

    box-sizing: border-box;

    max-width: 100%;

    position: sticky;

    top: 0;

    z-index: 100;

    border-bottom:
        1px solid rgba(255,255,255,.12);

    box-shadow:
        0 12px 30px -18px rgba(0,0,0,.8);
}


/* Logo */

.logo {

    white-space: nowrap;

    display: flex;

    align-items: center;

    max-width: 360px;

    flex-shrink: 0;

    text-decoration: none;
}


.logo img {

    display: block;

    width: auto;

    height: 48px;

    max-width: 100px;

    object-fit: contain;
}

.brand-title {

    margin-inline-start: 12px;

    color: #fff;

    font-size: 17px;

    font-weight: 800;

    line-height: 1.5;
}


.menu-toggle {

    display: none;

    position: relative;

    z-index: 120;

    width: 42px;

    height: 42px;

    padding: 9px;

    margin-inline-start: auto;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.16);

    border-radius: 10px;

    cursor: pointer;

    text-align: center;

}

.menu-toggle::before {

    content: "≡";

    display: block;

    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 28px;

    line-height: 1;
}

.menu-toggle[aria-expanded="true"]::before {

    content: "✕";

    font-size: 20px;
}

.menu-toggle span {

    display: none;

}


.menu-toggle:focus-visible {

    outline: 2px solid var(--primary-color);

    outline-offset: 3px;

}

.nav-drawer-close {

    display: none;
}


/* Navigation */

.nav-links {

    display: flex;

    direction: ltr;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    flex: 1;

    min-width: 0;

    margin-left: auto;
}

.primary-links {

    display: flex;

    direction: rtl;

    align-items: center;

    gap: 12px;
}

.header-actions {

    display: flex;

    direction: rtl;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    flex-shrink: 0;
}

.header-actions > * {

    flex-shrink: 0;
}


.nav-links a,
.nav-links select {

    color: white;

    background:
        rgba(255,255,255,.08);

    border:
        1px solid rgba(255,255,255,.14);

    padding: 8px 16px;

    text-decoration: none;

    border-radius: 8px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.7;

    transition: var(--transition);

    white-space: nowrap;
}


.nav-links a:hover,
.nav-links select:hover,
.nav-links a.active {

    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--accent-2)
        );

    border-color:
        rgba(255,255,255,.25);

    box-shadow:
        0 10px 25px -10px
        rgba(79,140,255,.45);

    transform:
        translateY(-2px);
}


.nav-links select option {

    background: #0f172a;
    color: white;
}


.translator-container {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}

#auth-container {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}

#userEmail {

    max-width: 190px;

    overflow: hidden;

    color: #dbeafe;

    font-family: 'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif;

    font-size: 12px;

    font-weight: 600;

    text-overflow: ellipsis;

    white-space: nowrap;
}

#auth-container .action-btn {

    padding: 8px 16px;

    border: 1px solid rgba(255,255,255,.16);

    border-radius: 8px;

    background: rgba(255,255,255,.08);

    color: #fff;

    cursor: pointer;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.7;

    white-space: nowrap;
}

#auth-container .action-btn:hover,
#auth-container .action-btn:focus-visible {

    background: rgba(255,255,255,.16);

    outline: 2px solid rgba(147,197,253,.7);

    outline-offset: 2px;
}


/* =========================
   MAIN
========================= */

.main-container {

    max-width: 1300px;

    margin: auto;

    overflow-x: hidden;

    padding: 38px 20px 60px;

    width: 100%;
}


/* =========================
   HERO
========================= */

.hero-section {

    text-align: center;

    margin-bottom: 34px;

    padding: 38px 25px;

    background:
        linear-gradient(
            135deg,
            rgba(4,10,24,.96),
            rgba(15,23,42,.92)
        );

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 28px;

    box-shadow: var(--shadow);

    position: relative;

    overflow: hidden;
}


.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 15px;

    border-radius: 999px;

    margin-bottom: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(79,140,255,.16),
            rgba(124,58,237,.14)
        );

    color: #cfe0ff;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.8;

    border:
        1px solid rgba(255,255,255,.16);
}


/* Main Urdu Heading */

.main-title {

    font-family:
        'Noto Nastaliq Urdu',
        serif;

    font-size:
        clamp(2rem, 4vw, 3rem);

    color: white;

    margin-bottom: 20px;

    font-weight: 700;

    /*
        Nastaliq میں heading کو
        زیادہ کھلا رکھا گیا ہے
    */
    line-height: 2.15;

    word-spacing: 5px;

    letter-spacing: 0;

    text-shadow:
        0 0 25px
        rgba(79,140,255,.20);
}


/* Main paragraph */

.hero-subtitle {

    font-family:
        'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif !important;

    color: #cbd5e1;

    font-size: 1.08rem;

    font-weight: 400;

    line-height: 2.3 !important;

    word-spacing: 0 !important;
    letter-spacing: 0 !important;

    max-width: 800px;

    margin: auto;
}


/* =========================
   CARDS
========================= */

.cards-grid {

    display: grid;

    visibility: visible;

    opacity: 1;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );

    gap: 24px;

    transition:
        opacity .35s ease;
}


.article-card {

    background:
        linear-gradient(
            145deg,
            rgba(9,15,32,.96),
            rgba(17,24,39,.93)
        );

    border:
        1px solid rgba(255,255,255,.12);

    padding: 27px;

    border-radius: 22px;

    box-shadow: var(--shadow);

    cursor: pointer;

    transition: var(--transition);

    min-height: 240px;

    position: relative;

    overflow: hidden;

    direction: rtl;

    text-align: right;

    word-spacing: 3px;

    display: block;

    visibility: visible;

    opacity: 1;

    color: var(--text-main);

    animation:
        article-card-fade-in .42s ease both;
}

.article-card-image {

    display: block;

    width: 100%;

    height: 170px;

    margin-bottom: 18px;

    border-radius: 14px;

    object-fit: cover;
}

.article-card-image[hidden] {

    display: none;
}

.article-skeleton-card {

    animation:
        article-skeleton-fade-in .3s ease both;
}

@keyframes article-card-fade-in {

    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes article-skeleton-fade-in {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cards-grid,
    .article-card,
    .article-skeleton-card {
        transition: none;
        animation: none;
    }
}


.article-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        0 25px 40px -18px
        rgba(79,140,255,.28);

    border-color:
        rgba(79,140,255,.42);
}


.article-card h2 {

    font-family:
        'Noto Nastaliq Urdu',
        serif;

    font-size: 1.35rem;

    font-weight: 700;

    color: #dbeafe;

    margin-bottom: 17px;

    line-height: 2.15;

    word-spacing: 4px;

    display: flex;
    align-items: baseline;
    gap: .35em;

    visibility: visible;

    color: #dbeafe;

    min-width: 0;

    overflow-wrap: anywhere;
}

.article-card h2 .article-number {
    flex: 0 0 auto;
    white-space: nowrap;
}

.article-card h2 .article-title-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}


.article-card p {

    font-family:
        'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif !important;

    color: #cbd5e1;

    font-size: 0.98rem;

    font-weight: 400;

    line-height: 2.25 !important;

    word-spacing: 0 !important;
    letter-spacing: 0 !important;

    display: -webkit-box;

    -webkit-line-clamp: 4;

    line-clamp: 4;

    -webkit-box-orient: vertical;

    overflow: hidden;

    display: -webkit-box;

    visibility: visible;

    color: #cbd5e1;
}


.article-card-content {

    display: flex;

    flex-direction: column;

    height: 100%;

}


.article-card .read-article-btn {

    margin-top: auto;

}


/* =========================
   MODAL
========================= */

.modal-overlay {

    display: none;

    position: fixed;

    z-index: 1000;

    inset: 0;

    background:
        rgba(2,6,23,.82);

    backdrop-filter:
        blur(10px);

    overflow-y: auto;

    padding: 20px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}


.modal-overlay.is-visible {

    opacity: 1;

    visibility: visible;

}


.modal-container {

    background:
        linear-gradient(
            135deg,
            rgba(7,12,30,.99),
            rgba(15,23,42,.96)
        );

    margin: 40px auto;

    padding: 32px;

    width: 100%;

    max-width: 850px;

    border-radius: 24px;

    position: relative;

    border:
        1px solid rgba(255,255,255,.12);

    direction: rtl;

    text-align: right;

    box-shadow:
        0 28px 70px -30px rgba(0,0,0,.9);

    transform: translateY(18px) scale(.98);

    transition: transform .22s ease;
}


.modal-overlay.is-visible .modal-container {

    transform: translateY(0) scale(1);
}


/* Close */

.close-btn {

    position: absolute;

    left: 20px;

    top: 20px;

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    font-size: 28px;

    cursor: pointer;

    color: #ef4444;

    background:
        rgba(239,68,68,.08);

    border: none;

    border-radius: 50%;
}


.close-btn:hover {

    transform:
        scale(1.08);
}


/* Modal title */

.modal-header h2 {

    font-family:
        'Noto Nastaliq Urdu',
        serif;

    color: white;

    font-size: 1.6rem;

    font-weight: 700;

    margin-bottom: 20px;

    padding-left: 45px;

    line-height: 2.15;

    word-spacing: 4px;
}


/* Buttons */

.action-buttons {

    display: flex;

    gap: 12px;

    margin-bottom: 22px;

    flex-wrap: wrap;
}


.action-btn {

    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            #3b82f6
        );

    color: white;

    border: none;

    padding: 10px 18px;

    border-radius: 999px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;
}

.audio-playback-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 18px;
    font-family: 'Noto Sans Arabic', sans-serif;
}

.audio-playback-controls[hidden] {
    display: none;
}

.audio-playback-controls button {
    min-width: 76px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: var(--text-main);
    cursor: pointer;
}

.audio-playback-controls button:focus-visible {
    outline: 2px solid var(--accent-3);
    outline-offset: 2px;
}

.audio-playback-controls button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.audio-playback-controls [role="status"] {
    margin-inline-start: auto;
    color: var(--text-muted);
    font-size: .9rem;
}


.upgrade-btn {

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #ea580c
        );

    color: #fff;

    border: 1px solid rgba(255,255,255,.22);

    padding: 8px 16px;

    border-radius: 8px;

    cursor: pointer;

    font-family:
        'Noto Sans Arabic',
        'Segoe UI',
        Arial,
        sans-serif;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.7;

    transition: var(--transition);
}


.upgrade-btn:hover,
.upgrade-btn:focus-visible {

    transform: translateY(-2px);

    box-shadow:
        0 12px 24px -12px
        rgba(245,158,11,.85);

    outline: none;
}


.subscription-overlay {

    position: fixed;

    inset: 0;

    z-index: 1100;

    display: grid;

    place-items: center;

    padding: 20px;

    background: rgba(2,6,23,.84);

    backdrop-filter: blur(10px);
}


.subscription-overlay[hidden] {

    display: none;
}


.subscription-box {

    position: relative;

    width: min(100%, 480px);

    padding: 10px;

    direction: rtl;
}


.subscription-card {

    padding: 34px 30px 30px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,.99),
            rgba(30,41,59,.98)
        );

    border: 1px solid rgba(245,158,11,.42);

    border-radius: 20px;

    box-shadow:
        0 28px 70px -28px rgba(0,0,0,.9);
}


.subscription-badge {

    display: inline-block;

    padding: 5px 12px;

    color: #fed7aa;

    background: rgba(234,88,12,.18);

    border: 1px solid rgba(251,146,60,.3);

    border-radius: 999px;

    font-family:
        'Noto Sans Arabic',
        sans-serif;

    font-size: 13px;

    font-weight: 700;
}


.subscription-card h2 {

    margin: 18px 0 8px;

    color: #fff;

    font-family:
        'Noto Nastaliq Urdu',
        serif;

    font-size: 1.45rem;

    line-height: 2.1;
}


.subscription-price {

    margin-bottom: 20px;

    color: #cbd5e1;

    font-family:
        'Noto Sans Arabic',
        sans-serif;

    line-height: 1.8;
}


.subscription-price strong {

    color: #fbbf24;

    font-size: 2.3rem;

}


.subscription-benefits {

    margin: 0 auto 24px;

    padding: 0 22px 0 0;

    color: #e2e8f0;

    font-family:
        'Noto Sans Arabic',
        sans-serif;

    line-height: 2.1;

    text-align: right;
}


.subscription-benefits li {

    margin-bottom: 6px;

}


.checkout-btn {

    display: block;

    padding: 12px 18px;

    color: #fff;

    background: #ea580c;

    border-radius: 10px;

    font-family:
        'Noto Sans Arabic',
        sans-serif;

    font-weight: 700;

    line-height: 1.8;

    text-decoration: none;

    transition: var(--transition);
}


.checkout-btn:hover,
.checkout-btn:focus-visible {

    background: #c2410c;

    box-shadow: 0 12px 24px -14px rgba(234,88,12,.9);

    outline: none;
}


.subscription-close-btn {

    position: absolute;

    top: 18px;

    left: 18px;

    z-index: 1;

    width: 38px;

    height: 38px;

    color: #fecaca;

    background: rgba(239,68,68,.12);

    border: 1px solid rgba(252,165,165,.22);

    border-radius: 50%;

    cursor: pointer;

    font-size: 25px;

    line-height: 1;
}


.subscription-close-btn:hover,
.subscription-close-btn:focus-visible {

    color: #fff;

    background: #dc2626;

    outline: none;
}


/* Article Paragraph */

.modal-body {

    font-family:
        'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif !important;

    font-size: 1.02rem;

    color: #f8fafc;

    line-height: 2.3 !important;

    word-spacing: 0 !important;
    letter-spacing: 0 !important;

    max-height: 450px;

    overflow-y: auto;

    margin-bottom: 25px;
}


.modal-body,
.modal-body p,
.modal-body li {

    font-family:
        'Jameel Noori Nastaleeq',
        'Noto Nastaliq Urdu',
        'Noto Sans Arabic',
        sans-serif;

    font-size: 1.15rem;

    line-height: 1.8;

    letter-spacing: 0;

    word-spacing: 2px;

}


.modal-body p {

    margin: 0 0 1.1rem;

}


.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4 {

    margin: 1.5rem 0 .75rem;

    color: #dbeafe;

    font-family:
        'Jameel Noori Nastaleeq',
        'Noto Nastaliq Urdu',
        serif;

    line-height: 1.9;

}


.modal-body ul,
.modal-body ol {

    margin: 0 0 1.25rem;

    padding-right: 1.6rem;

}


.modal-body li {

    margin-bottom: .55rem;

}


/* =========================
   CHATBOT
========================= */

.chatbot-section {

    background:
        linear-gradient(
            135deg,
            rgba(11,18,38,.96),
            rgba(17,24,39,.96)
        );

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 16px;

    padding: 20px;
}


.chatbot-section h3 {

    font-family:
        'Noto Nastaliq Urdu',
        serif;

    font-size: 1.1rem;

    color: white;

    margin-bottom: 15px;

    line-height: 2.2;

    word-spacing: 3px;
}


.chatbox {

    background:
        rgba(2,6,23,.65);

    border:
        1px solid rgba(255,255,255,.1);

    height: 170px;

    overflow-y: auto;

    padding: 14px;

    border-radius: 10px;

    margin-bottom: 12px;
}


.bot-msg,
.user-msg {

    font-family:
        'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif !important;

    font-size: .95rem;

    line-height: 2.2 !important;

    word-spacing: 0 !important;
    letter-spacing: 0 !important;
}


.bot-msg {

    color: #7dd3fc;

    margin-bottom: 10px;
}


.user-msg {

    color: #86efac;

    margin-bottom: 10px;

    text-align: left;
}


.chat-input-area {

    display: flex;

    gap: 10px;
}


.chat-input-area input {

    font-family:
        'Noto Sans Arabic',
        sans-serif;

    flex: 1;

    padding: 11px 14px;

    border:
        1px solid var(--border-color);

    border-radius: 10px;

    outline: none;

    direction: rtl;
}


.chat-input-area button {

    background: #16a34a;

    color: white;

    border: none;

    padding: 10px 22px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 600;
}


/* =========================
   PAGE CARD
========================= */

.page-card {

    background:
        linear-gradient(
            145deg,
            rgba(8,13,28,.94),
            rgba(15,23,42,.94)
        );

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 24px;

    box-shadow: var(--shadow);

    padding: 32px;

    max-width: 980px;

    margin: auto;

    direction: rtl;

    text-align: right;

    font-family:
        'Noto Nastaliq Urdu',
        serif;

    line-height: 2.6;

    word-spacing: 3px;
}


.page-section {

    margin-bottom: 28px;

    padding-bottom: 20px;

    border-bottom:
        1px solid rgba(255,255,255,.10);
}


.page-section:last-child {

    margin-bottom: 0;

    padding-bottom: 0;

    border-bottom: none;
}


.page-section h2 {

    font-family:
        'Noto Nastaliq Urdu',
        serif;

    color: #dbeafe;

    font-size: 1.3rem;

    font-weight: 700;

    margin-bottom: 14px;

    line-height: 2.2;

    word-spacing: 4px;
}


.page-section p,
.page-section li {

    font-family:
        'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif !important;

    color: #cbd5e1;

    font-size: 1rem;

    line-height: 2.3 !important;

    word-spacing: 0 !important;
    letter-spacing: 0 !important;
}


.page-list {

    padding-right: 25px;
}


/* =========================
   CONTACT
========================= */

.contact-layout {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );

    gap: 28px;

    align-items: start;
}

.contact-information {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-information p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.contact-information bdi[dir="ltr"] {
    max-width: 100%;
    overflow-wrap: anywhere;
    unicode-bidi: isolate;
}


.contact-form {

    display: flex;

    flex-direction: column;

    gap: 14px;
}


.contact-form label {

    display: flex;

    flex-direction: column;

    gap: 6px;

    color: var(--text-main);

    font-weight: 600;

    line-height: 1.8;
}


.contact-form input,
.contact-form textarea {

    font-family:
        'Noto Sans Arabic',
        sans-serif;

    width: 100%;

    padding: 12px 14px;

    border:
        1px solid var(--border-color);

    border-radius: 12px;

    font-size: 14px;

    outline: none;

    transition: var(--transition);

    resize: vertical;

    background: #fff;

    color: #000;

    direction: rtl;

    text-align: right;
}


.contact-status {

    padding: 10px 12px;

    border-radius: 8px;

    line-height: 1.8;
}


.contact-status.success {

    background: rgba(20, 184, 166, 0.18);

    color: #99f6e4;
}


.contact-status.error {

    background: rgba(248, 113, 113, 0.18);

    color: #fecaca;
}


/* =========================
   ADS
========================= */

.adsense-box {

    max-width: 900px;

    min-height: 80px;

    margin: 32px auto 40px;

    border:
        1px dashed
        rgba(255,255,255,.16);

    border-radius: 16px;

    background:
        rgba(12,19,38,.8);
}


/* =========================
   FOOTER
========================= */

.site-footer {

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #020617,
            #0f172a
        );

    color: white;

    padding: 25px 20px;

    font-size: 14px;

    line-height: 2;

    border-top:
        1px solid rgba(255,255,255,.1);
}

.footer-links {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px 22px;

    margin-top: 14px;
}

.footer-links a {

    color: #cbd5e1;

    text-decoration: none;

    font-size: 13px;

    transition: color .2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {

    color: #fff;

    text-decoration: underline;
}


.site-footer p + p {

    margin-top: 8px;

    opacity: .85;
}

/* Language-aware typography and reading direction */
html[lang="en"] body,
html[lang="en"] body * {

    font-family: 'Inter', 'Noto Nastaliq Urdu', Arial, sans-serif !important;

    word-spacing: normal;

    letter-spacing: normal;
}

html[lang="ur"] body,
html[lang="ur"] body * {

    font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif !important;
}

html[dir="ltr"] body,
html[dir="ltr"] .main-container,
html[dir="ltr"] .hero-section,
html[dir="ltr"] .page-card,
html[dir="ltr"] .page-section,
html[dir="ltr"] .article-card,
html[dir="ltr"] .modal-container,
html[dir="ltr"] .modal-body,
html[dir="ltr"] .chatbot-section,
html[dir="ltr"] .chatbox,
html[dir="ltr"] .contact-form,
html[dir="ltr"] .contact-form input,
html[dir="ltr"] .contact-form textarea,
html[dir="ltr"] .manual-payment-form,
html[dir="ltr"] .subscription-box,
html[dir="ltr"] .subscription-benefits {

    direction: ltr;

    text-align: left;
}

html[dir="rtl"] body,
html[dir="rtl"] .main-container,
html[dir="rtl"] .hero-section,
html[dir="rtl"] .page-card,
html[dir="rtl"] .page-section,
html[dir="rtl"] .article-card,
html[dir="rtl"] .modal-container,
html[dir="rtl"] .modal-body,
html[dir="rtl"] .chatbot-section,
html[dir="rtl"] .chatbox,
html[dir="rtl"] .contact-form,
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea,
html[dir="rtl"] .manual-payment-form,
html[dir="rtl"] .subscription-box,
html[dir="rtl"] .subscription-benefits {

    direction: rtl;

    text-align: right;
}

html[lang="en"] body,
html[lang="en"] .main-container,
html[lang="en"] .hero-section,
html[lang="en"] .page-card,
html[lang="en"] .page-section,
html[lang="en"] .article-card,
html[lang="en"] .modal-container,
html[lang="en"] .modal-body,
html[lang="en"] .chatbot-section,
html[lang="en"] .chatbox,
html[lang="en"] .contact-form,
html[lang="en"] .contact-information,
html[lang="en"] .contact-information p,
html[lang="en"] .contact-form input,
html[lang="en"] .contact-form textarea,
html[lang="en"] .manual-payment-form,
html[lang="en"] .subscription-box,
html[lang="en"] .subscription-benefits {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .primary-links,
html[dir="ltr"] .header-actions {

    direction: ltr;
}

html[dir="rtl"] .primary-links,
html[dir="rtl"] .header-actions {

    direction: rtl;
}

html[lang="en"] .primary-links,
html[lang="en"] .header-actions {
    direction: ltr;
}

html[dir="ltr"] .page-list,
html[dir="ltr"] .subscription-benefits {

    padding-right: 0;

    padding-left: 25px;
}

html[dir="ltr"] .contact-form input,
html[dir="ltr"] .contact-form textarea,
html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {

    direction: ltr;

    text-align: left;
}

html[dir="ltr"] .modal-body ul,
html[dir="ltr"] .modal-body ol {

    padding-right: 0;

    padding-left: 1.6rem;
}

html[lang="en"] .page-list,
html[lang="en"] .subscription-benefits {
    padding-right: 0;
    padding-left: 25px;
}

html[lang="en"] .modal-body ul,
html[lang="en"] .modal-body ol {
    padding-right: 0;
    padding-left: 1.6rem;
}

html[dir="ltr"] .subscription-benefits li {

    text-align: left;
}

html[lang="en"] .contact-form input,
html[lang="en"] .contact-form textarea,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] select {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .article-number {

    direction: ltr;

    unicode-bidi: isolate;
}

html[lang="en"] .article-number {
    direction: ltr;
    unicode-bidi: isolate;
}

html[dir="ltr"] .article-card-image {

    direction: ltr;
}

body,
body * {

    transition:
        color .18s ease,
        background-color .18s ease;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .glass-header {

        gap: 10px;

        padding: 12px 20px;

        flex-wrap: wrap;
    }

    .menu-toggle {

        display: flex;

        align-items: center;

        justify-content: center;
    }

    .nav-links {

        position: fixed;

        inset: 0;

        z-index: 110;

        display: none;

        width: 100%;

        height: 100vh;

        height: 100dvh;

        box-sizing: border-box;

        padding: 20px 16px;

        overflow-y: auto;

        background: rgba(2, 6, 23, .78);

        direction: ltr;

        flex-direction: column;

        align-items: flex-end;

        justify-content: flex-start;

        gap: 12px;
    }

    .nav-links.is-open {

        display: flex;
    }

    .primary-links,
    .header-actions {

        width: min(360px, 88vw);

        flex-direction: column;

        align-items: stretch;

        gap: 10px;
    }

    .primary-links a,
    .header-actions > *,
    #auth-container,
    .translator-container {

        width: 100%;
    }

    #auth-container {

        flex-direction: column;

        align-items: stretch;

        gap: 8px;
    }

    .nav-drawer-close {

        display: block;

        width: 44px;

        height: 44px;

        align-self: flex-end;

        margin: 0;

        border: 1px solid rgba(255,255,255,.18);

        border-radius: 8px;

        background: rgba(255,255,255,.08);

        color: #fff;

        font-size: 22px;

        cursor: pointer;
    }

    .nav-links a,
    .nav-links select,
    .upgrade-btn {

        width: 100%;

        box-sizing: border-box;

        text-align: center;
    }

    .translator-container {

        justify-content: flex-start;
    }

    #userEmail {

        max-width: 100%;
    }

    .brand-title {

        font-size: 14px;
    }

}


@media (max-width: 768px) {

    .glass-header {

        flex-direction: row;

        flex-wrap: wrap;

        gap: 10px;

        padding: 12px 16px;
    }


    .logo {

        max-width: calc(100% - 58px);
    }


    .menu-toggle {

        display: flex;

        align-items: center;

        justify-content: center;

    }


    #userEmail {

        max-width: 100%;
    }

    .brand-title {

        font-size: 14px;
    }


    .main-container {

        padding:
            20px 14px 40px;
    }


    .hero-section {

        padding:
            28px 16px;
    }


    .main-title {

        font-size: 1.8rem;

        line-height: 2.2;

        word-spacing: 4px;
    }


    .hero-subtitle {

        font-size: 0.98rem;

        line-height: 2.35 !important;

        word-spacing: 0 !important;
    }


    .article-card {

        padding: 22px;
    }


    .article-card h2 {

        line-height: 2.2;
    }


    .article-card p {

        font-size: 1.05rem;

        line-height: 1.9 !important;
    }


    .modal-container {

        margin: 20px 5px;

        padding: 22px;
    }


    .modal-body {

        font-size: 1.08rem !important;

        line-height: 1.9 !important;

        word-spacing: 0 !important;
    }


    .chat-input-area {

        flex-direction: column;
    }


    .chat-input-area button {

        width: 100%;
    }


    .page-card {

        padding: 22px;
    }


    .subscription-card {

        padding: 30px 20px 24px;

    }

}


@media (max-width: 480px) {

    .logo {

        max-width: calc(100% - 54px);
    }


    .logo img {

        height: 48px;
    }

    .brand-title {

        margin-inline-start: 8px;

        font-size: 12px;
    }


    .main-title {

        font-size: 1.5rem;

        line-height: 2.2;

        word-spacing: 3px;
    }


    .hero-subtitle {

        font-size: .95rem;

        line-height: 2.3 !important;
    }


    .article-card h2 {

        font-size: 1.15rem;

        line-height: 2.25;
    }


    .article-card p {

        font-size: .95rem;

        line-height: 2.25 !important;
    }


    .modal-body {

        font-size: 1rem !important;

        line-height: 1.85 !important;
    }


    .page-section p,
    .page-section li {

        font-size: .95rem;

        line-height: 2.3 !important;
    }
}


.subscription-plans {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin: 18px 0 22px;

}


.subscription-plan {

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 12px 9px;

    color: #e2e8f0;

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.14);

    border-radius: 10px;

    font-family:
        'Noto Sans Arabic',
        sans-serif;

    line-height: 1.7;

    text-decoration: none;

    transition: var(--transition);

}


.subscription-plan strong {

    color: #fbbf24;

    font-size: 1.25rem;

}


.subscription-plan span {

    font-size: .82rem;

}


.plan-checkout-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    margin-top: 9px;

    padding: 7px 10px;

    color: #fff;

    background: #ea580c;

    border: 1px solid rgba(255,255,255,.18);

    border-radius: 7px;

    font-family:
        'Noto Sans Arabic',
        sans-serif;

    font-size: .78rem !important;

    font-weight: 700;

    line-height: 1.6;

    transition: var(--transition);

}


.subscription-plan:hover,
.subscription-plan:focus-visible {

    border-color: #f59e0b;

    background: rgba(245,158,11,.14);

    transform: translateY(-2px);

    outline: none;

}


.subscription-plan-featured {

    border-color: rgba(245,158,11,.7);

    background: rgba(245,158,11,.12);

}


.subscription-plan:hover .plan-checkout-btn,
.subscription-plan:focus-visible .plan-checkout-btn {

    background: #c2410c;

}

.manual-payment-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(20, 184, 166, .35);
    border-radius: 12px;
    background: rgba(15, 118, 110, .12);
    text-align: right;
}

.manual-payment-form[hidden] {
    display: none;
}

.manual-payment-form h3,
.manual-payment-form p {
    margin: 0;
}

.manual-payment-form label {
    display: grid;
    gap: 5px;
    color: var(--text-muted);
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 13px;
}

.manual-payment-form input,
.manual-payment-form select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(2, 6, 23, .75);
    color: var(--text-main);
    font: inherit;
}

.manual-payment-submit {
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--accent-3);
    color: #042f2e;
    cursor: pointer;
    font-weight: 800;
}

/* ماڈل باکس کے لیے اسکرول اور خوبصورت اسکرول بار */
/* ماڈل باکس کے لیے اسکرول اور خوبصورت اسکرول بار */
.subscription-box {
    max-height: 85vh;
    overflow-y: auto;
    padding-right: 10px;
}

.subscription-box::-webkit-scrollbar {
    width: 6px;
}
.subscription-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.subscription-box::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 10px;
}

/* اردو ٹیکسٹ کو بالکل سیدھا اور پراپر لائن میں کرنے کے لیے */
.subscription-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    direction: rtl;       
    text-align: right;    
}

.subscription-benefits li {
    padding: 8px 0;
    font-size: 14px;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; 
}

.payment-status {
    min-height: 1.5em;
    color: #a7f3d0;
}