/* 
   ROOYA Premium Stylings - Full Screen Mobile Layout
   Supports scrolling *inside* individual pages, with fixed backgrounds.
*/

:root {
    --bg-main: #030806; /* Deepest emerald black */
    --card-bg: rgba(9, 22, 18, 0.75); /* Translucent glass card */
    --border-color: rgba(22, 51, 42, 0.6);
    --border-gold: rgba(217, 119, 6, 0.35);
    
    --color-emerald: #10b981;
    --color-emerald-glow: rgba(16, 185, 129, 0.35);
    --color-gold: #d97706;
    --color-gold-glow: rgba(217, 119, 6, 0.35);
    --color-soft-gold: #fef3c7;
    
    --text-pure: #ffffff;
    --text-gold: #fbbf24;
    --text-silver: #e5e7eb;
    --text-dark: #9ca3af;
    --text-muted: #6b7280;
    
    --font-ui: 'Cairo', sans-serif;
    --font-traditional: 'Amiri', serif;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Lock the viewport */
    background-color: var(--bg-main);
    color: var(--text-silver);
    font-family: var(--font-ui);
}

/* Background Gradients & Glows */
.aurora-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    mix-blend-mode: screen;
}

.orb-emerald {
    top: -10%;
    right: 15%;
    width: 500px;
    height: 500px;
    background-color: var(--color-emerald);
}

.orb-gold {
    bottom: -10%;
    left: 15%;
    width: 450px;
    height: 450px;
    background-color: var(--color-gold);
}

/* Page Wrapper & Scrolling */
.app-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Controlled by active class */
    z-index: 10;
}

.app-page.active {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

/* Internal Scroll Container for mobile compatibility */
.page-scroll-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px 40px; /* Top/Bottom padding for layout breathing room */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-inner {
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-inner.centered {
    margin: auto 0; /* Center vertically if space permits (especially for loader/ad page) */
}

/* Header UI */
.app-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.brand-badge {
    background-color: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.35);
    color: var(--text-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.logo-crescent {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, var(--color-soft-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-silver);
    line-height: 1.6;
    max-width: 90%;
    opacity: 0.85;
}

/* Cards (Glassmorphism) */
.premium-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-emerald), transparent);
}

.card-glow-line.gold {
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.card-glow-line.emerald {
    background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.card-headline {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 6px;
}

.card-subheadline {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Form Styles */
.textarea-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 6px;
}

.textarea-wrapper textarea {
    width: 100%;
    min-height: 130px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 14px 14px 50px;
    color: var(--text-pure);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    margin-bottom: 0;
}

.textarea-wrapper textarea:focus {
    border-color: var(--color-emerald);
}

.voice-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--border-color);
    color: var(--color-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    z-index: 5;
}

.voice-btn:hover {
    background-color: var(--color-emerald);
    color: #000;
    transform: scale(1.05);
}

.voice-btn.recording {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
    animation: flashPulse 1s infinite;
}

.voice-status {
    font-size: 0.78rem;
    color: var(--color-emerald);
    margin-bottom: 16px;
    text-align: right;
    font-weight: 600;
    padding-right: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group.full-row {
    grid-column: span 2;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-silver);
}

input[type="number"], select {
    width: 100%;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 12px;
    color: var(--text-pure);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    outline: none;
}

input[type="number"]:focus, select:focus {
    border-color: var(--color-emerald);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23fbbf24' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-emerald), #059669);
    color: #030806;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
    transition: transform 0.1s, opacity 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    width: 100%;
    height: 46px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-silver);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

/* Parallel AI status indicators inside Ad screen */
.ai-status {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.ai-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-emerald);
    border-radius: 50%;
    animation: flashPulse 1.5s infinite;
}

#ai-status-text {
    font-size: 0.8rem;
    color: var(--color-emerald);
    font-weight: 600;
}

.lock-icon-wrap {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 12px;
    text-align: center;
}

/* Player layout (Forced Ad screen) */
.player-container {
    background-color: #010403;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    position: relative;
}

.ad-badge {
    background-color: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: var(--text-gold);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    position: absolute;
    top: 12px;
    right: 12px;
}

.player-label {
    font-size: 0.85rem;
    margin-bottom: 14px;
    color: var(--text-silver);
}

.player-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.player-fill {
    width: 0%;
    height: 100%;
    background-color: var(--color-gold);
}

.player-timer {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-gold);
}

.player-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}

/* Banner Ad Slots (image ads on page 1 and page 3) */
.banner-ad-slot {
    width: 100%;
    position: relative;
    margin: 14px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.ad-slot-label {
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Placeholder shown in development — replaced by real ad code on launch */
.ad-slot-placeholder {
    width: 100%;
    min-height: 80px;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Ad loading spinner (Phase 1) */
.ad-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(217, 119, 6, 0.15);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spinAd 0.9s linear infinite;
    margin: 10px auto 12px;
}

@keyframes spinAd {
    to { transform: rotate(360deg); }
}

/* Results layout styles */
.result-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.result-seal {
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--color-emerald);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.sharia-disclaimer {
    background-color: rgba(217, 119, 6, 0.04);
    border-right: 3px solid var(--color-gold);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-gold);
    margin-bottom: 16px;
}

.sharia-text {
    font-family: var(--font-traditional);
    font-size: 1.25rem;
    line-height: 1.85;
    color: var(--text-pure);
    text-align: justify;
}

.sharia-text h3 {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-gold);
    margin: 18px 0 8px;
}

.evidence-card {
    font-family: var(--font-ui);
    background-color: rgba(217, 119, 6, 0.03);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 10px;
    padding: 14px;
    margin-top: 18px;
}

.evidence-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-gold);
    margin-bottom: 6px;
}

.evidence-quote {
    font-family: var(--font-traditional);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-silver);
    line-height: 1.6;
}

/* Sheikh Clarifying Question Box */
.clarify-box {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(0, 0, 0, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.clarify-title {
    color: var(--color-emerald);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.clarify-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clarify-row input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-pure);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    outline: none;
}

.clarify-row input:focus {
    border-color: var(--color-emerald);
}

.btn-clarify {
    background: linear-gradient(90deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: #030806;
    font-family: var(--font-ui);
    font-weight: 800;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--color-emerald-glow);
}

.btn-clarify:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Follow-up UI layout */
.follow-up-box {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.follow-up-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.follow-up-row {
    display: flex;
    gap: 8px;
}

.follow-up-row input {
    flex: 1;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 12px;
    color: var(--text-pure);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    outline: none;
}

.follow-up-row input:focus {
    border-color: var(--color-emerald);
}

.btn-ask {
    background-color: var(--color-emerald);
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    color: #030806;
    font-family: var(--font-ui);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
}

.follow-up-bubble {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

/* App Footer & Social Links */
.app-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.social-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.footer-title {
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-silver);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon:hover {
    background-color: var(--color-emerald);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--color-emerald-glow);
}

.footer-copyright {
    margin-top: 5px;
    opacity: 0.7;
}

/* Donation Box Styles */
.donation-box {
    background: linear-gradient(145deg, rgba(217, 119, 6, 0.1), rgba(0, 0, 0, 0.4));
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.08);
}

.donation-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    animation: flashPulse 3s infinite;
}

.donation-title {
    color: var(--text-gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.donation-text {
    font-size: 0.85rem;
    color: var(--text-silver);
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, #0070ba, #1546a0);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.4);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.6);
}

/* Supporters Wall */
.supporters-wall {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
}

.wall-title {
    color: var(--text-pure);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.supporters-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar for supporters wall */
.supporters-scroll::-webkit-scrollbar {
    width: 4px;
}
.supporters-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.supporters-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.supporter-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
    text-align: right;
}

.supporter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.supporter-name {
    color: var(--color-emerald);
    font-weight: 700;
    font-size: 0.85rem;
}

.supporter-amount {
    background: rgba(217, 119, 6, 0.15);
    color: var(--text-gold);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.supporter-message {
    color: var(--text-silver);
    font-size: 0.8rem;
    line-height: 1.4;
    font-style: italic;
    opacity: 0.9;
}

.wall-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    opacity: 0.8;
}

/* Nearby Centers */
.btn-nearby {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(5,150,105,0.15));
    border: 1px solid rgba(16,185,129,0.4);
    border-radius: 12px;
    color: var(--color-emerald);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-nearby:hover {
    background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(5,150,105,0.25));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16,185,129,0.2);
}
.nearby-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.nearby-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 12px;
    padding: 13px 14px;
    text-align: right;
    animation: slideDown 0.3s ease-out;
}
.nearby-name {
    color: var(--color-emerald);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.nearby-address {
    color: var(--text-silver);
    font-size: 0.78rem;
    opacity: 0.8;
    line-height: 1.4;
}
.nearby-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-gold);
    text-decoration: none;
    border-bottom: 1px dashed rgba(251,191,36,0.4);
}
.nearby-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 14px 0;
}

.hidden {
    display: none !important;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered text reveal for interpretation card children */
.sharia-text > * {
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sharia-text > *:nth-child(1) { animation-delay: 0.1s; }
.sharia-text > *:nth-child(2) { animation-delay: 0.35s; }
.sharia-text > *:nth-child(3) { animation-delay: 0.6s; }
.sharia-text > *:nth-child(4) { animation-delay: 0.85s; }
.sharia-text > *:nth-child(5) { animation-delay: 1.1s; }
.sharia-text > *:nth-child(6) { animation-delay: 1.35s; }

@keyframes flashPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PC / Desktop Enhancements */
@media (min-width: 768px) {
    .page-inner {
        max-width: 650px;
    }
    
    .page-scroll-wrapper {
        padding: 40px 16px;
    }
    
    .premium-card {
        padding: 40px;
        border-radius: 24px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                    inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    
    /* Make the desktop layout feel more anchored */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: var(--bg-main);
    }
    ::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: var(--color-emerald);
    }
}

/* E-Book Box Styling */
.ebook-box {
    background: linear-gradient(145deg, rgba(217, 119, 6, 0.08), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.ebook-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.ebook-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-gold);
    margin-bottom: 6px;
}

.ebook-desc {
    font-size: 0.88rem;
    color: var(--text-silver);
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-ebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-ebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.ebook-email-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 10px;
    padding: 11px 14px;
    color: #fff;
    font-size: 0.95rem;
    text-align: left;
    direction: ltr;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ebook-email-input:focus {
    border-color: #d97706;
}

.ebook-price-tag {
    margin: 8px 0 6px;
    font-size: 0.9rem;
    color: var(--text-silver);
    text-align: center;
}

.ebook-price-tag strong {
    color: var(--text-gold);
    font-size: 1.05rem;
}

.ebook-email-input::placeholder {
    color: rgba(255,255,255,0.4);
    direction: rtl;
    text-align: right;
}

.ebook-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0 4px;
    text-align: center;
}

.ebook-success span {
    font-size: 2rem;
}

.ebook-success p {
    font-size: 0.9rem;
    color: var(--text-silver);
    line-height: 1.6;
}

.ebook-success strong {
    color: var(--text-gold);
}

/* Marketing Stats & Trust Banner */
.stats-banner {
    margin: 18px auto 22px;
    max-width: 580px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 16px;
    background: rgba(17, 24, 18, 0.75);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item + .stat-item {
    border-right: 1px solid rgba(201, 168, 76, 0.15);
}

.stat-number {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-gold);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-silver);
    margin-top: 3px;
    white-space: nowrap;
}

@media (max-width: 500px) {
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
    .stat-item + .stat-item {
        border-right: none;
    }
    .stat-item:nth-child(even) {
        border-right: 1px solid rgba(201, 168, 76, 0.15);
    }
}
