/*
Theme Name: AppStore Pro
Theme URI: https://urlplayerx.com
Author: URL Player X Team
Author URI: https://urlplayerx.com
Description: قالب ووردبريس احترافي لعرض ونشر التطبيقات - Professional WordPress theme for showcasing mobile apps
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: appstore-pro
Tags: rtl-language-support, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== CSS Variables ===== */
:root {
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #5046E5;
    --secondary: #00D9FF;
    --secondary-light: #33E1FF;
    --accent: #FF6584;
    --accent-light: #FF8DA0;
    --success: #00E676;
    --warning: #FFD600;
    --bg-dark: #0A0E27;
    --bg-darker: #060919;
    --bg-card: #111638;
    --bg-card-hover: #1A1F4A;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted: #64748B;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ar: 'Tajawal', 'Segoe UI', sans-serif;
    --font-en: 'Inter', 'Segoe UI', sans-serif;
    --max-width: 1280px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-ar);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 217, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 101, 132, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }

p {
    color: var(--text-secondary);
    margin-bottom: 1em;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===== Utilities ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-accent {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    font-weight: 600;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 16px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    color: white;
}

.btn-google-play {
    background: linear-gradient(135deg, #00C853, #009624);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.3);
}

.btn-google-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.4);
    color: white;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(108, 99, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.site-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    background: var(--glass);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    top: 10%;
    right: -10%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--success);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-text h1 {
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.hero-text .hero-description {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 36px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.hero-stat .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInLeft 1s ease-out 0.3s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
    border-radius: 36px;
    border: 3px solid var(--glass-border);
    padding: 12px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(108, 99, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: var(--bg-darker);
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.phone-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    opacity: 0.05;
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* ===== Apps Grid Section ===== */
.apps-section {
    padding: 100px 0;
    position: relative;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.app-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.app-card:hover::before {
    opacity: 1;
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.app-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.app-card-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.app-card-info .app-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(108, 99, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.app-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.app-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--warning);
    font-size: 0.9rem;
}

.app-card-link {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.app-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
    color: white;
}

/* ===== Features Section ===== */
.features-section {
    padding: 100px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    position: relative;
}

.feature-icon.purple {
    background: rgba(108, 99, 255, 0.12);
    color: var(--primary);
}

.feature-icon.cyan {
    background: rgba(0, 217, 255, 0.12);
    color: var(--secondary);
}

.feature-icon.pink {
    background: rgba(255, 101, 132, 0.12);
    color: var(--accent);
}

.feature-icon.green {
    background: rgba(0, 230, 118, 0.12);
    color: var(--success);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 217, 255, 0.08));
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -50px;
}

.cta-box::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    bottom: -60px;
    left: -30px;
}

.cta-box h2 {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.cta-box p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .cta-buttons {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 64px 0 0;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-brand .footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-brand .footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Single App Page ===== */
.app-hero {
    padding: 140px 0 60px;
    position: relative;
}

.app-hero-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.app-hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    border: 3px solid var(--glass-border);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.app-hero-info h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.app-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.app-hero-meta .rating {
    color: var(--warning);
}

.app-download-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.app-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0 80px;
}

.app-description {
    line-height: 2;
    font-size: 1rem;
}

.app-description h2 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
}

.app-screenshots {
    margin: 40px 0;
}

.screenshots-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.screenshots-scroll::-webkit-scrollbar {
    height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.screenshots-scroll img {
    width: 200px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid var(--glass-border);
    scroll-snap-align: start;
    transition: var(--transition);
    flex-shrink: 0;
}

.screenshots-scroll img:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.app-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--glass);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.app-features-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* App Sidebar / Info Card */
.app-sidebar .info-card {
    position: sticky;
    top: 100px;
}

.info-card {
    padding: 28px;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

.info-item .label {
    color: var(--text-muted);
}

.info-item .value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== Legal / Policy Pages ===== */
.legal-page {
    padding: 140px 0 80px;
}

.legal-page .container {
    max-width: 860px;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-header h1 {
    margin-bottom: 12px;
}

.legal-header .last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legal-toc {
    margin-bottom: 48px;
    padding: 24px 28px;
}

.legal-toc h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.legal-toc ol {
    list-style: decimal;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-toc ol li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-toc ol li a:hover {
    color: var(--primary-light);
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--primary-light);
}

.legal-content p {
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 12px;
}

.legal-content ul {
    padding-right: 24px;
    margin-bottom: 16px;
}

.legal-content ul li {
    position: relative;
    padding-right: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ===== About Page ===== */
.about-page {
    padding: 140px 0 80px;
}

.about-hero {
    text-align: center;
    margin-bottom: 80px;
}

.about-hero h1 {
    margin-bottom: 20px;
}

.about-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.about-card {
    text-align: center;
    padding: 40px 28px;
}

.about-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    background: rgba(108, 99, 255, 0.12);
}

.about-card h3 {
    margin-bottom: 12px;
}

/* ===== Contact Page ===== */
.contact-page {
    padding: 140px 0 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
}

.contact-form .glass-card {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-ar);
    font-size: 0.95rem;
    transition: var(--transition);
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(108, 99, 255, 0.12);
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ===== 404 Page ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h2 {
    margin-bottom: 12px;
}

.error-page p {
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* ===== Page Default ===== */
.page-content {
    padding: 140px 0 80px;
}

.page-content .container {
    max-width: 860px;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 48px;
}

.page-content .entry-content {
    line-height: 2;
}

.page-content .entry-content p {
    margin-bottom: 16px;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .app-content-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-darker);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 80px 24px 24px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .menu-overlay.active {
        display: block;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .app-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .app-hero-meta {
        justify-content: center;
    }

    .app-download-buttons {
        justify-content: center;
    }

    .screenshots-scroll img {
        width: 160px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-stat .stat-value {
        font-size: 1.4rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== WordPress Defaults ===== */
.wp-caption {
    max-width: 100%;
}

.wp-caption img {
    border-radius: var(--border-radius-sm);
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.alignleft {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.aligncenter {
    display: block;
    margin: 0 auto 24px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
