/*
Theme Name: Marketing Mastermind
Theme URI: https://taherabdullah.com
Author: Taher Abdullah
Author URI: https://taherabdullah.com
Description: قالب ووردبريس احترافي لبيع كتاب العقل المدبر للتسويق والميديا بايينج - يتضمن نظام أكواد اشتراك وقارئ كتاب آمن وبوت ذكاء اصطناعي
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marketing-mastermind
Tags: dark, rtl, one-page, book, marketing
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ==========================================================================
   CSS Variables & Global Reset
   ========================================================================== */
:root {
    --gold: #D4AF37;
    --gold-light: #F5D76E;
    --gold-dark: #B8960C;
    --dark-bg: #0A0A0F;
    --dark-card: #12121A;
    --dark-border: #1E1E2E;
    --dark-hover: #1A1A28;
    --text-primary: #F5F5F7;
    --text-secondary: #8E8E93;
    --text-muted: #636366;
    --gradient-gold: linear-gradient(135deg, #D4AF37, #F5D76E, #D4AF37);
    --gradient-dark: linear-gradient(180deg, #0A0A0F 0%, #12121A 100%);
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 20px auto;
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-gold);
    color: #000;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--gold);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo i {
    font-size: 1.6rem;
}

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

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-content .badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-price {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-price .old-price {
    font-size: 1.4rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.hero-price .new-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
}

.hero-price .currency {
    font-size: 1rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-book {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.3s both;
}

/* === Book Showcase === */
.book-showcase {
    position: relative;
    width: 360px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow behind the book */
.book-glow {
    position: absolute;
    width: 280px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(212,175,55,0.25) 0%, rgba(212,175,55,0.08) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* 3D Book Wrapper */
.book-3d-wrapper {
    perspective: 1200px;
    position: relative;
    z-index: 2;
    animation: bookFloat 6s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
}

.book-3d-inner {
    position: relative;
    width: 280px;
    height: 400px;
    transform-style: preserve-3d;
    transform: rotateY(-18deg) rotateX(4deg);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-showcase:hover .book-3d-inner {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.06);
}

/* Front Cover */
.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px 12px 12px 4px;
    overflow: hidden;
    box-shadow:
        5px 5px 20px rgba(0,0,0,0.5),
        0 0 60px rgba(212,175,55,0.1),
        inset 0 0 0 1px rgba(212,175,55,0.08);
    z-index: 3;
}

.book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 45%, transparent 50%);
    pointer-events: none;
}

/* Book Spine */
.book-spine {
    position: absolute;
    width: 40px;
    height: 100%;
    left: -20px;
    top: 0;
    background: linear-gradient(180deg, #1a1520 0%, #0d0a12 50%, #1a1520 100%);
    transform: rotateY(90deg) translateZ(0px);
    transform-origin: right center;
    border-radius: 4px 0 0 4px;
    box-shadow: inset -2px 0 8px rgba(212,175,55,0.1);
}

.book-spine::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 80%;
    background: linear-gradient(180deg, transparent, rgba(212,175,55,0.3), transparent);
    border-radius: 2px;
}

/* Book Back */
.book-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d0a12, #1a1520);
    transform: translateZ(-40px);
    border-radius: 12px 4px 4px 12px;
    box-shadow: -5px 5px 30px rgba(0,0,0,0.4);
}

/* Book Shadow */
.book-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(212,175,55,0.2) 0%, transparent 70%);
    filter: blur(10px);
    animation: shadowPulse 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes shadowPulse {
    0%, 100% { opacity: 0.5; width: 200px; }
    50% { opacity: 0.8; width: 240px; }
}

/* Floating Particles */
.book-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.book-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 5s ease-in-out infinite;
}

.book-particles span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.book-particles span:nth-child(2) { top: 60%; left: 5%; animation-delay: 0.8s; }
.book-particles span:nth-child(3) { top: 80%; left: 85%; animation-delay: 1.6s; }
.book-particles span:nth-child(4) { top: 10%; left: 90%; animation-delay: 2.4s; }
.book-particles span:nth-child(5) { top: 40%; left: 95%; animation-delay: 0.4s; }
.book-particles span:nth-child(6) { top: 90%; left: 50%; animation-delay: 1.2s; }
.book-particles span:nth-child(7) { top: 30%; left: 0%; animation-delay: 2s; }
.book-particles span:nth-child(8) { top: 70%; left: 70%; animation-delay: 2.8s; }

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 0.8; transform: translateY(-10px) scale(1); }
    80% { opacity: 0.4; transform: translateY(-40px) scale(0.6); }
    100% { opacity: 0; transform: translateY(-60px) scale(0); }
}

/* ==========================================================================
   Countdown Timer
   ========================================================================== */
.countdown-wrapper {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.countdown-title {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.countdown-title i {
    margin-left: 8px;
    animation: pulse 2s infinite;
}

.countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 15px;
    direction: ltr;
}

.countdown-box {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    min-width: 80px;
    text-align: center;
    transition: var(--transition);
}

.countdown-box:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.countdown-box .number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    font-family: 'Cairo', monospace;
}

.countdown-box .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 600;
}

/* ==========================================================================
   Tips / Insights Section (Rotating)
   ========================================================================== */
.tips-section {
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

.tips-carousel {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.tip-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.tip-card.active {
    opacity: 1;
    transform: translateY(0);
}

.tip-card .tip-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.tip-card .tip-number {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.tip-card .tip-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.tip-card .tip-source {
    font-size: 0.85rem;
    color: var(--gold);
    margin-top: 15px;
    font-style: italic;
}

.tips-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.tips-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-border);
    cursor: pointer;
    transition: var(--transition);
}

.tips-dots .dot.active {
    background: var(--gold);
    width: 30px;
    border-radius: 5px;
}

/* ==========================================================================
   Features / Why This Book
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 0 0 0 80px;
}

.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.feature-card .icon {
    width: 55px;
    height: 55px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-card h4 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   Secrets Section
   ========================================================================== */
.secrets-list {
    display: grid;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.secret-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    transition: var(--transition);
}

.secret-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: var(--dark-hover);
}

.secret-item .num {
    min-width: 36px;
    height: 36px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.secret-item .text {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
}

/* ==========================================================================
   Subscription Code Section
   ========================================================================== */
.code-section {
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

.code-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.code-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.code-step {
    text-align: center;
    padding: 20px;
}

.code-step .step-num {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    margin: 0 auto 12px;
}

.code-step h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.code-step p {
    font-size: 0.85rem;
}

.code-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.code-input-group input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--dark-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 700;
    text-align: center;
    letter-spacing: 3px;
    transition: var(--transition);
    direction: ltr;
}

.code-input-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.code-input-group input::placeholder {
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 400;
}

#code-message {
    font-size: 0.95rem;
    margin-top: 10px;
    min-height: 24px;
}

#code-message.success { color: #4CAF50; }
#code-message.error { color: #f44336; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.testimonial-card .stars {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-card .quote {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.testimonial-card .role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Purchase Modal
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalIn 0.4s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gold);
}

.payment-method {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.payment-method .method-name {
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
}

.payment-method .method-number {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-primary);
    direction: ltr;
    letter-spacing: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   AI Chatbot
   ========================================================================== */
.chat-toggle {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
    transition: var(--transition);
    border: none;
    font-size: 1.5rem;
    color: #000;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle .badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.chat-window {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 25px;
    width: 380px;
    max-height: 520px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    z-index: 9998;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: chatIn 0.3s ease;
}

.chat-window.active {
    display: flex;
}

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

.chat-header {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--dark-border);
}

.chat-header .avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #000;
    font-size: 0.9rem;
}

.chat-header .info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.chat-header .info span {
    font-size: 0.75rem;
    color: #4CAF50;
}

.chat-header .close-chat {
    margin-right: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.6;
}

.chat-msg.bot {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    align-self: flex-start;
    border-bottom-right-radius: 4px;
}

.chat-msg.user {
    background: rgba(212, 175, 55, 0.2);
    align-self: flex-end;
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    padding: 12px;
    border-top: 1px solid var(--dark-border);
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--gold);
}

.chat-input-area button {
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.chat-input-area button:hover {
    background: var(--gold-light);
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ==========================================================================
   Selection
   ========================================================================== */
::selection {
    background: var(--gold);
    color: #000;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.4); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-book { order: -1; }
    .book-showcase { width: 300px; height: 400px; }
    .book-3d-inner { width: 230px; height: 330px; }
    .hero-buttons { justify-content: center; }
    .hero-price { justify-content: center; }
    .code-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(10, 10, 15, 0.98);
        padding: 20px;
        border-bottom: 1px solid var(--dark-border);
    }
    .mobile-toggle { display: block; }
    .section { padding: 60px 0; }
    .book-showcase { width: 260px; height: 360px; }
    .book-3d-inner { width: 200px; height: 290px; }
    .countdown-boxes { gap: 8px; }
    .countdown-box { min-width: 60px; padding: 10px 12px; }
    .countdown-box .number { font-size: 1.6rem; }
    .chat-window { width: calc(100vw - 30px); left: 15px; bottom: 90px; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .code-input-group { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-price .new-price { font-size: 2rem; }
    .btn-gold { padding: 14px 30px; font-size: 1rem; }
}

/* ============================================================
   SOCIAL PROOF BAR (Hero Section)
   ============================================================ */
.social-proof-bar {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    animation: proofPulse 3s ease-in-out infinite;
}
.proof-item i {
    color: var(--gold);
    font-size: 0.9rem;
}
.proof-item strong {
    color: var(--gold);
    font-weight: 700;
}
.proof-item.urgency {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.25);
}
.proof-item.urgency i,
.proof-item.urgency strong {
    color: #FF3B30;
}
@keyframes proofPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ============================================================
   SOCIAL PROOF POPUP NOTIFICATION
   ============================================================ */
.social-proof-popup {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 9998;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 340px;
    backdrop-filter: blur(20px);
}
.social-proof-popup.show {
    transform: translateX(0);
    opacity: 1;
}
.popup-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.popup-avatar i {
    color: #000;
    font-size: 1.1rem;
}
.popup-content {
    flex: 1;
}
.popup-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0 0 3px 0;
}
.popup-action {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}
.popup-time {
    color: var(--gold);
    font-weight: 600;
}
.popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px;
    position: absolute;
    top: 8px;
    left: 8px;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.popup-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .social-proof-bar {
        flex-direction: column;
        gap: 10px;
    }
    .social-proof-popup {
        left: 10px;
        right: 10px;
        bottom: 80px;
        max-width: calc(100% - 20px);
    }
}

/* ============================================================
   COVER NAVIGATION DOTS
   ============================================================ */
.cover-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.cover-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.cover-dot.active {
    background: var(--gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.cover-dot:hover {
    background: var(--gold);
    transform: scale(1.2);
}

/* ============================================================
   CHAT MODE SELECTOR
   ============================================================ */
.chat-mode-selector {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
}
.mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}
.mode-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    transform: translateY(-2px);
}
.mode-btn i {
    font-size: 1.4rem;
    color: var(--gold);
}
.mode-title {
    font-weight: 700;
    font-size: 0.85rem;
}
.mode-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
}
.chat-remaining {
    text-align: center;
    padding: 6px 10px;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
