/* ==========================================================
   Almostakbal Tech 24 - Ultra-Modern Light Editorial Theme
   Theme: Clean White, Slate & Electric Indigo / Cyan
   Completely distinct design, typography, layout & visual language
   ========================================================== */

:root {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-alt: #f8fafc;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    --brand-primary: #4f46e5;
    --brand-primary-hover: #4338ca;
    --brand-primary-light: #eef2ff;
    --brand-secondary: #0ea5e9;
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    --brand-gradient-hover: linear-gradient(135deg, #4338ca 0%, #0284c7 100%);
    
    --accent-boy: #0284c7;
    --accent-boy-bg: #e0f2fe;
    --accent-girl: #e11d48;
    --accent-girl-bg: #ffe4e6;
    --accent-success: #10b981;
    --accent-success-bg: #d1fae5;
    
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;
    --font-arabic: 'Tajawal', 'Cairo', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 45px -8px rgba(79, 70, 229, 0.12), 0 8px 18px -4px rgba(15, 23, 42, 0.06);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Reading Progress Indicator */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: var(--brand-gradient);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-badge {
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.logo-title span {
    color: var(--brand-primary);
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-success);
    background: var(--accent-success-bg);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* Page Layout - Centered Magazine Layout */
.main-wrapper {
    flex: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 60px;
    width: 100%;
}

/* Hero Article Header */
.article-hero {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.badge-tag {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--brand-primary-light);
    color: var(--brand-primary);
}

.read-time {
    font-size: 12.5px;
    color: var(--text-light);
    font-weight: 500;
}

.article-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.hero-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 12px;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.author-role-text {
    font-size: 12px;
    color: var(--text-muted);
}

.verify-stamp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--brand-primary);
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

/* ==========================================================
   AdSense Placement Containers - Clean Card Style
   ========================================================== */
.ad-slot-card {
    background: var(--bg-surface);
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 14px;
    margin: 24px 0;
    text-align: center;
    box-shadow: var(--shadow-xs);
    width: 100%;
    box-sizing: border-box;
}

.ad-card-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 8px;
}

.ad-card-body {
    min-height: 90px;
    width: 100%;
    display: block;
    margin: 0 auto;
    text-align: center;
}

.ad-card-body ins.adsbygoogle {
    display: block !important;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================
   AUTHENTIC CHINESE GENDER CALCULATOR — Imperial Crimson & Royal Gold
   Distinct Color Scheme: Traditional Oriental Red & Metallic Gold
   ========================================================== */
.calc-card-imperial {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 50%, #991b1b 100%);
    border: 2.5px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    margin: 32px 0;
    box-shadow: 0 16px 45px rgba(127, 29, 29, 0.35), 0 0 25px rgba(245, 158, 11, 0.2);
    direction: rtl;
    text-align: right;
    font-family: var(--font-arabic);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.calc-card-imperial::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #ef4444, #fbbf24);
    background-size: 200% 100%;
    animation: goldShimmer 3s linear infinite;
}

.calc-card-imperial::after {
    content: '🏮';
    position: absolute;
    top: -10px;
    left: 18px;
    font-size: 80px;
    opacity: 0.1;
    pointer-events: none;
    user-select: none;
}

@keyframes goldShimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.calc-header-imperial {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.calc-seal-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    color: #450a0a;
}

.calc-title-imperial {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calc-desc-imperial {
    font-size: 13px;
    color: #fecaca;
}

/* Method Toggle Badge */
.calc-method-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde68a;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
}

.calc-grid-imperial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.calc-box-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label-gold {
    font-size: 14px;
    font-weight: 700;
    color: #fef08a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.select-imperial {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    direction: rtl;
}

.select-imperial:focus {
    border-color: #fbbf24;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.select-imperial option {
    background: #450a0a;
    color: #ffffff;
}

.tip-gold {
    font-size: 11.5px;
    color: #fca5a5;
}

.btn-imperial-calc {
    width: 100%;
    padding: 17px 24px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #450a0a;
    font-family: var(--font-arabic);
    font-size: 18px;
    font-weight: 900;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    animation: btnImperialPulse 2.5s infinite;
}

@keyframes btnImperialPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 36px rgba(245, 158, 11, 0.8), 0 0 20px rgba(251, 191, 36, 0.5);
        transform: scale(1.015);
    }
}

.btn-imperial-calc:hover {
    box-shadow: 0 14px 40px rgba(245, 158, 11, 0.85);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.calc-inline-msg-linkst {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.55);
    color: #fecaca;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
    animation: fadeInSlideUp 0.3s ease forwards;
}

.select-imperial.input-highlight {
    border-color: #f59e0b !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.75) !important;
    animation: shakeInput 0.4s ease;
}

@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* =====================================================
   Gemini AI Clinical & Pregnancy Assistant Card
   ===================================================== */
.ai-chat-card-wrap {
    margin: 24px 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.98) 100%);
    border: 2px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    position: relative;
    padding: 24px;
    direction: rtl;
}

.ai-header-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ai-gemini-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.55);
    flex-shrink: 0;
}

.ai-sparkle-icon {
    font-size: 24px;
}

.ai-title {
    font-size: 19px;
    font-weight: 900;
    color: #93c5fd;
    margin: 0 0 4px;
    font-family: var(--font-arabic);
}

.ai-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
    font-family: var(--font-arabic);
}

.ai-badges-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ai-badge {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: var(--font-arabic);
}

.ai-badge-blue {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.ai-badge-purple {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #d8b4fe;
}

.ai-badge-green {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.ai-prompts-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
    font-family: var(--font-arabic);
}

.ai-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ai-chip {
    padding: 7px 12px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-arabic);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chip:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #60a5fa;
    color: #ffffff;
    transform: translateY(-1px);
}

.ai-input-wrapper {
    margin-bottom: 14px;
}

.ai-input-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
    font-family: var(--font-arabic);
}

.ai-chat-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: #ffffff;
    font-size: 14.5px;
    font-family: var(--font-arabic);
    line-height: 1.6;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.ai-chat-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.ai-chat-textarea.input-highlight {
    border-color: #ef4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.6) !important;
    animation: shakeInput 0.4s ease;
}

.ai-chat-inline-msg {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.55);
    color: #fecaca;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.5;
    animation: fadeInSlideUp 0.3s ease forwards;
}

.ai-submit-query-btn {
    width: 100%;
    padding: 16px 22px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 17.5px;
    font-weight: 900;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
    transition: all 0.25s ease;
    animation: geminiPulse 2.5s infinite;
}

@keyframes geminiPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 35px rgba(219, 39, 119, 0.7), 0 0 20px rgba(59, 130, 246, 0.5);
        transform: scale(1.015);
    }
}

.ai-submit-query-btn:hover {
    box-shadow: 0 14px 40px rgba(219, 39, 119, 0.8);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.ai-footer-hint {
    font-size: 12.5px;
    color: #fde047;
    text-align: center;
    margin: 10px 0 0;
    line-height: 1.5;
    font-family: var(--font-arabic);
}

/* 10-Second Neural Processing Screen */
.ai-thinking-box {
    text-align: center;
    padding: 20px 10px;
    animation: fadeInSlideUp 0.4s ease forwards;
}

.neural-pulse-glow {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 32px rgba(139, 92, 246, 0.7);
    animation: spinGlow 4s linear infinite;
}

@keyframes spinGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-thinking-title {
    font-size: 19px;
    font-weight: 800;
    color: #93c5fd;
    margin-bottom: 6px;
    font-family: var(--font-arabic);
}

.ai-thinking-desc {
    font-size: 13.5px;
    color: #fef08a;
    margin-bottom: 16px;
    font-style: italic;
    font-family: var(--font-arabic);
}

.ai-countdown-circle-wrap {
    margin: 14px auto;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    border: 3px solid rgba(59, 130, 246, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.45);
}

.ai-countdown-number {
    font-size: 38px;
    font-weight: 900;
    color: #60a5fa;
    line-height: 1;
}

.ai-countdown-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    font-family: var(--font-arabic);
}

.ai-progress-track {
    width: 100%;
    max-width: 440px;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    margin: 16px auto;
    overflow: hidden;
}

.ai-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 4px;
    transition: width 1s linear;
}

.ai-ticker-status-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13.5px;
    color: #e2e8f0;
    margin-top: 10px;
    font-family: var(--font-arabic);
}

.ai-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: blinkDot 1s infinite;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* =====================================================
   AI Medical Report Page Card (Step 2 Direct Result)
   ===================================================== */
.ai-report-page-card {
    margin: 24px 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.98) 100%);
    border: 2px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(59, 130, 246, 0.2);
    padding: 24px;
    direction: rtl;
    animation: fadeInSlideUp 0.4s ease forwards;
}

.btn-copy-report {
    flex: 1;
    min-width: 200px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-copy-report:hover {
    box-shadow: 0 8px 26px rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-ask-again {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    font-family: var(--font-arabic);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-ask-again:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Result Card - Imperial Glow */
.result-card-imperial {
    margin-top: 24px;
    padding: 26px;
    border-radius: var(--radius-md);
    animation: slideDownFade 0.4s ease forwards;
    border: 2px solid;
}

.result-card-imperial.boy-verdict {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-color: #38bdf8;
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
}

.result-card-imperial.girl-verdict {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.35) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-color: #fb7185;
    box-shadow: 0 8px 30px rgba(251, 113, 133, 0.3);
}

.verdict-header-row {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 16px;
}

.verdict-emoji-badge {
    font-size: 56px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

.verdict-title-text {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 6px;
}

.boy-verdict .verdict-title-text {
    color: #7dd3fc;
}

.girl-verdict .verdict-title-text {
    color: #fda4af;
}

.verdict-breakdown-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 13.5px;
    color: #f1f5f9;
    line-height: 1.7;
    margin-bottom: 16px;
}

.verdict-breakdown-box strong {
    color: #fef08a;
}

/* Authentic Matrix Table View */
.matrix-preview-wrap {
    margin-top: 18px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.45);
}

.matrix-title-bar {
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.2);
    font-size: 12.5px;
    font-weight: 800;
    color: #fef08a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chinese-table-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
}

.chinese-table-grid th {
    background: rgba(0, 0, 0, 0.5);
    color: #fde68a;
    padding: 8px 6px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.chinese-table-grid td {
    padding: 6px 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chinese-table-grid tr.highlight-row {
    background: rgba(245, 158, 11, 0.25) !important;
}

.chinese-table-grid td.highlight-cell {
    background: #fbbf24 !important;
    color: #450a0a !important;
    font-weight: 900 !important;
    transform: scale(1.15);
    box-shadow: 0 0 10px #fbbf24;
}

.cell-b {
    color: #38bdf8;
    font-weight: 700;
}

.cell-g {
    color: #fb7185;
    font-weight: 700;
}

.btn-imperial-reset {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

}

/* ==========================================================

   NEW LINEAR PROGRESS VERIFICATION CARD (Step 1 & Step 2)
   NO CIRCULAR SVG — Completely new look with digital bar
   ========================================================== */
.verify-card-linear {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 28px 0;
    direction: rtl;
    text-align: right;
    font-family: var(--font-arabic);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.verify-card-linear::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--brand-gradient);
}

.linear-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.step-indicator-tag {
    background: var(--brand-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.step-secure-pill {
    font-size: 12.5px;
    color: var(--brand-primary);
    font-weight: 600;
}

.linear-timer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.linear-status-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.linear-status-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Modern Linear Progress Track */
.linear-progress-track {
    width: 100%;
    height: 10px;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.linear-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    transition: width 1s linear;
}

.linear-countdown-number {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 900;
    color: var(--brand-primary);
    text-align: center;
    margin: 8px 0;
}

.linear-action-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    animation: slideDownFade 0.35s ease;
}

.btn-linear-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--brand-gradient);
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 17px;
    font-weight: 800;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(79, 70, 229, 0.3);
    transition: all 0.25s ease;
}

.btn-linear-continue:hover {
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.45);
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Step 2 Alphanumeric Tile Blocks */
.alphanumeric-tiles-wrapper {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    margin-bottom: 18px;
}

.tiles-label-text {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 14px;
}

.tiles-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    direction: ltr;
}

.code-tile {
    width: 44px;
    height: 52px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-copy-tiles {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: #ffffff;
    border: 1.5px solid var(--brand-primary);
    color: var(--brand-primary);
    font-family: var(--font-arabic);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-copy-tiles:hover {
    background: var(--brand-primary);
    color: #ffffff;
}

.btn-copy-tiles.copied {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: #ffffff;
}

/* ==========================================================
   Editorial Article Typography & Stat Grid Cards
   ========================================================== */
.editorial-body {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px 38px;
    box-shadow: var(--shadow-sm);
}

/* 4-Stat Metric Grid */
.stat-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
}

.metric-number {
    font-size: 26px;
    font-weight: 900;
    color: var(--brand-primary);
    font-family: var(--font-sans);
    line-height: 1.1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Key Takeaways Box */
.takeaways-card {
    background: #f0fdf4;
    border-right: 4px solid #16a34a;
    border-radius: var(--radius-sm);
    padding: 22px;
    margin: 28px 0;
}

.takeaways-title {
    font-size: 15px;
    font-weight: 800;
    color: #166534;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.takeaways-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14.5px;
    color: #14532d;
}

.takeaways-list li::before {
    content: '✓';
    color: #16a34a;
    font-weight: 800;
    margin-left: 8px;
}

.editorial-body h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.editorial-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 24px 0 12px;
}

.editorial-body p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 16.5px;
    line-height: 1.85;
}

.editorial-body ul, .editorial-body ol {
    margin: 16px 0 20px 24px;
    color: var(--text-muted);
}

.editorial-body li {
    margin-bottom: 10px;
}

.editorial-body strong {
    color: var(--text-main);
}

/* Clean Editorial Table */
.editorial-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.editorial-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.editorial-table th {
    background: #f8fafc;
    color: var(--text-main);
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.editorial-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-muted);
}

.editorial-table tr:hover {
    background: #f8fafc;
}

/* Editorial Pull Quote */
.pull-quote {
    border-left: 4px solid var(--brand-primary);
    padding: 18px 24px;
    margin: 32px 0;
    background: #faf5ff;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: #4c1d95;
    font-size: 17px;
}

/* FAQ Cards */
.editorial-faq-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 14px;
}

.faq-q-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.faq-a-text {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Footer - Clean Modern Style */
.site-footer-modern {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 50px 24px 28px;
    margin-top: 60px;
}

.footer-inner-max {
    max-width: 960px;
    margin: 0 auto;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-brand-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
}

.footer-col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s;
}

.footer-col-links a:hover {
    color: var(--brand-primary);
}

.footer-bottom-bar {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 12px;
}

/* VIP Priority Code CTA Card */
.vip-priority-cta-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(245, 158, 11, 0.18) 100%);
    border: 2px solid rgba(251, 191, 36, 0.7);
    border-radius: 12px;
    padding: 18px 16px;
    margin: 18px 0;
    text-align: center;
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
    animation: pulseBorderGold 2.5s infinite;
}

@keyframes pulseBorderGold {
    0%, 100% { border-color: rgba(251, 191, 36, 0.6); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2); }
    50% { border-color: rgba(251, 191, 36, 1); box-shadow: 0 4px 30px rgba(245, 158, 11, 0.45); }
}

.vip-cta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.vip-badge-pill {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}

.vip-sparkle-icon {
    font-size: 18px;
}

.vip-cta-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #fff;
    margin: 6px 0;
    line-height: 1.4;
}

.vip-cta-desc {
    font-size: 13.5px;
    color: #fef08a;
    line-height: 1.55;
    margin: 0 0 14px;
}

.btn-vip-get-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #d97706 100%);
    background-size: 200% 100%;
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16.5px;
    font-weight: 800;
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-vip-get-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.7);
}

.btn-vip-get-code:active {
    transform: translateY(0);
}

.vip-cta-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(254, 240, 138, 0.8);
    font-weight: 600;
}

/* Facebook Return Button on Step 2 */
.btn-fb-return {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    background: #1877f2;
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15.5px;
    font-weight: 800;
    box-shadow: 0 4px 18px rgba(24, 119, 242, 0.35);
    transition: all 0.25s ease;
}

.btn-fb-return:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(24, 119, 242, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 16px;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-wrapper {
        padding: 16px 12px 40px;
    }
    
    .article-hero {
        padding: 24px 18px;
    }
    
    .article-hero-title {
        font-size: 22px;
        line-height: 1.35;
    }
    
    .calc-card-light {
        padding: 20px 16px;
    }
    
    .calc-grid-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .stat-metric-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .editorial-body {
        padding: 24px 18px;
    }
    
    .verify-card-linear {
        padding: 20px 16px;
    }
    
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .code-tile {
        width: 34px;
        height: 44px;
        font-size: 18px;
    }
}
