/* CSS Variables */
:root {
    --primary: #5b2bd6;
    --primary-dark: #3e1f9c;
    --primary-light: #8d6bff;
    --secondary: #ffb347;
    --accent: #f5c96a;
    --text-dark: #1f1637;
    --text-light: #62597a;
    --white: #ffffff;
    --gray-50: #f7f5ff;
    --gray-100: #f0eef7;
    --gray-200: #e3def0;
    --page-bg: #f6f3ff;
    --surface: #ffffff;
    --surface-muted: #f5f1ff;
    --gradient: linear-gradient(135deg, #4b22b3 0%, #6d3df0 45%, #8b6bff 100%);
    --hero-gradient: radial-gradient(140% 140% at 0% 0%, #7f63ff 0%, #5528c7 45%, #2f166e 100%);
    --shadow: 0 12px 30px rgba(29, 17, 63, 0.12);
    --shadow-lg: 0 24px 60px rgba(29, 17, 63, 0.22);
    --radius: 16px;
    --radius-lg: 24px;
    --font-display: 'Sora', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--page-bg);
}

/* Arabic text styles */
body[dir="rtl"] {
    font-family: var(--font-ar);
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] .logo-text {
    font-family: var(--font-ar);
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Language visibility */
.ar {
    display: none;
}

body[dir="rtl"] .en {
    display: none;
}

body[dir="rtl"] .ar {
    display: inline;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s var(--transition-smooth);
}

.skip-link:focus {
    top: 0;
}

/* Focus Visible */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(91, 43, 214, 0.08);
    box-shadow: 0 10px 30px rgba(24, 12, 54, 0.08);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.3s var(--transition-smooth);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(91, 43, 214, 0.08);
    padding: 5px;
    border-radius: 10px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--text-light);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 6px 16px rgba(29, 17, 63, 0.12);
}

.lang-btn:hover {
    color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger-line {
    width: 100%;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s var(--transition-smooth);
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 20px 24px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-link {
    display: block;
    padding: 14px 0;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s;
}

.mobile-link:hover {
    color: var(--primary);
}

.mobile-link-cta {
    margin-top: 8px;
    text-align: center;
    background: var(--gradient);
    color: var(--white);
    border-radius: var(--radius);
    padding: 14px;
    border-bottom: none;
}

.mobile-link-cta:hover {
    color: var(--white);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    background: var(--hero-gradient);
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
    pointer-events: none;
}

.hero::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 65%);
    top: -200px;
    left: -180px;
}

.hero::after {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.5), transparent 70%);
    bottom: -160px;
    right: -120px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s var(--transition-smooth);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(20, 10, 45, 0.25);
}

.gradient-text {
    background: linear-gradient(135deg, #ffb347 0%, #ffd283 50%, #ffb347 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

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

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Centered hero without image */
.hero-centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-centered .hero-buttons {
    justify-content: center;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(66, 32, 152, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3f1c9c 0%, #5d33e7 50%, #7a5dff 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(66, 32, 152, 0.3);
}

.hero .btn-primary {
    background: linear-gradient(135deg, #ffb347 0%, #ffd283 100%);
    color: #2c1a59;
    box-shadow: 0 12px 30px rgba(45, 21, 92, 0.25);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #ffc066 0%, #ffe0a6 100%);
    box-shadow: 0 16px 40px rgba(45, 21, 92, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #2c1a59;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(91, 43, 214, 0.3);
}

.btn-outline:hover {
    background: rgba(91, 43, 214, 0.08);
    border-color: rgba(91, 43, 214, 0.5);
}

/* Stats Section */
.stats-section {
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Section Styles */
section {
    padding: 110px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 999px;
    display: block;
    margin: 16px auto 0;
}

/* Features */
.features {
    background: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
    border: 1px solid rgba(91, 43, 214, 0.08);
    box-shadow: 0 10px 30px rgba(24, 12, 54, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(91, 43, 214, 0.3), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    box-shadow: 0 12px 24px rgba(66, 32, 152, 0.3);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(180deg, rgba(250, 248, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin-top: 50px;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 250px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px 18px;
    border: 1px solid rgba(91, 43, 214, 0.08);
    box-shadow: 0 8px 24px rgba(24, 12, 54, 0.08);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 12px 24px rgba(66, 32, 152, 0.3);
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Step Connector */
.step-connector {
    display: flex;
    align-items: center;
    padding: 0 8px;
    margin-top: 30px;
}

.step-connector-line {
    width: 40px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.step-connector-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 1s var(--transition-smooth);
}

.step-connector.animated .step-connector-line::after {
    width: 100%;
}

/* Testimonials */
.testimonials {
    background: var(--surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(91, 43, 214, 0.06);
    transition: all 0.3s var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-author strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Screenshots */
.screenshots {
    background: var(--surface);
    text-align: center;
}

.screenshots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 50px 0;
}

.phone-mockup {
    background: var(--gray-100);
    border-radius: 30px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
}

.phone-mockup img {
    width: 200px;
    height: auto;
    border-radius: 20px;
}

.phone-mockup.main {
    transform: scale(1.15);
}

.phone-mockup.main img {
    width: 220px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.store-btn img {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}

.store-btn:hover img {
    transform: scale(1.05);
}

/* For Stores */
.for-stores {
    background: linear-gradient(180deg, rgba(246, 243, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

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

.stores-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.stores-text > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.stores-benefits {
    list-style: none;
    margin-bottom: 30px;
}

.stores-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.stores-benefits svg {
    color: var(--primary);
    flex-shrink: 0;
}

.stores-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Centered stores without image */
.stores-centered {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.stores-centered .stores-benefits {
    text-align: left;
    display: inline-block;
}

.stores-centered .btn-stores {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(66, 32, 152, 0.2);
}

.stores-centered .btn-stores:hover {
    background: linear-gradient(135deg, #3f1c9c 0%, #5d33e7 50%, #7a5dff 100%);
}

/* Download Section */
.download-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 243, 255, 0.9) 100%);
    text-align: center;
    padding: 80px 0;
}

.download-section .download-buttons {
    margin-top: 30px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #140b2d 0%, #24124f 55%, #1b0c3a 100%);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--gray-200);
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-200);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-contact p {
    color: var(--gray-200);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-200);
    transition: all 0.3s var(--transition-smooth);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-200);
    font-size: 0.9rem;
}

/* Scroll Reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-height: 350px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 4px 0;
    }

    .screenshots-container {
        flex-direction: column;
    }

    .phone-mockup.main {
        transform: scale(1);
    }

    .stores-content {
        grid-template-columns: 1fr;
    }

    .stores-image {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 24px;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

/* RTL Adjustments */
body[dir="rtl"] .stores-benefits li {
    flex-direction: row-reverse;
}

body[dir="rtl"] .footer-content {
    direction: rtl;
}

body[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

body[dir="rtl"] .step-connector-line::after {
    left: auto;
    right: 0;
}

body[dir="rtl"] .stores-centered .stores-benefits {
    text-align: right;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }

    .gradient-text {
        animation: none;
    }
}

/* =============================================
   Store Registration Page Styles
   ============================================= */

.register-section {
    min-height: 100vh;
    background: var(--hero-gradient);
    padding: 100px 20px 60px;
    position: relative;
}

.register-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.register-logo {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 20px 45px rgba(20, 10, 45, 0.25);
}

.register-header h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.register-header .subtitle {
    color: white;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Step Indicator */
.step-indicator {
    text-align: center;
    margin-bottom: 20px;
}

.step-text {
    color: white;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Registration Card */
.register-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(91, 43, 214, 0.15);
}

body[dir="rtl"] .register-card {
    direction: rtl;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.optional-tag {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Location Input Group */
.location-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.location-display {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--text-light);
    font-size: 0.9rem;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.location-display.has-location {
    color: var(--text-dark);
    background: #e8f5e9;
    border-color: #4caf50;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

.password-input-group .form-input {
    padding-right: 45px;
}

body[dir="rtl"] .password-input-group .form-input {
    padding-right: 16px;
    padding-left: 45px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

body[dir="rtl"] .password-toggle {
    right: auto;
    left: 10px;
}

.password-toggle:hover {
    opacity: 1;
}

/* Info Box */
.info-box {
    background: #f1ecff;
    border: 1px solid #cbb9ff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-box strong {
    color: #4a2cb3;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    color: #5c3ed6;
    font-size: 0.85rem;
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

body[dir="rtl"] .info-box li {
    padding-left: 0;
    padding-right: 20px;
}

.info-box li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #7c5cff;
}

body[dir="rtl"] .info-box li::before {
    left: auto;
    right: 0;
}

/* OTP Form */
.otp-header {
    text-align: center;
    margin-bottom: 30px;
}

.otp-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.otp-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.otp-input {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 10px;
    font-weight: 600;
}

/* Trial Notice */
.trial-notice {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 20px;
}

/* Footer Actions */
.footer-actions {
    text-align: center;
    margin-top: 20px;
}

.footer-actions p {
    color: white;
    font-size: 0.95rem;
}

.link-primary {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.link-primary:hover {
    opacity: 0.8;
}

/* Spinner */
.spinner-small {
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    margin: 10px auto;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bars {
    display: flex;
    gap: 4px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-200);
    transition: background 0.3s ease;
}

.strength-bar.weak {
    background: #f44336;
}

.strength-bar.medium {
    background: #ff9800;
}

.strength-bar.strong {
    background: #4caf50;
}

/* Registration Responsive */
@media (max-width: 768px) {
    .register-section {
        padding: 90px 15px 40px;
    }

    .register-card {
        padding: 25px 20px;
    }

    .register-header h1 {
        font-size: 1.5rem;
    }

    .location-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-small {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .register-logo {
        width: 70px;
        height: 70px;
    }

    .register-header h1 {
        font-size: 1.3rem;
    }

    .register-card {
        padding: 20px 15px;
    }

    .otp-input {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }
}

/* =============================================
   Legal Pages Styles (Privacy Policy, Terms of Service)
   ============================================= */

.legal-section {
    padding: 120px 0 60px;
    background: var(--hero-gradient);
    min-height: 100vh;
}

.legal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(91, 43, 214, 0.12);
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.legal-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.legal-header h1 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.legal-date {
    color: var(--text-light);
    font-size: 0.95rem;
}

.legal-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-intro {
    font-size: 1.05rem;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--surface-muted);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

body[dir="rtl"] .legal-intro {
    border-left: none;
    border-right: 4px solid var(--primary);
}

.legal-section-block {
    margin-bottom: 35px;
}

.legal-section-block h2 {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

.legal-section-block h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 12px;
}

.legal-section-block p {
    margin-bottom: 15px;
}

.legal-section-block ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.legal-section-block li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.7;
}

body[dir="rtl"] .legal-section-block li {
    padding-left: 0;
    padding-right: 25px;
}

.legal-section-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

body[dir="rtl"] .legal-section-block li::before {
    left: auto;
    right: 0;
}

.legal-section-block li strong {
    color: var(--text-dark);
}

.alert-notice {
    background-color: #fff2d6;
    border: 1px solid #f6c26f;
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

.alert-notice strong {
    color: #a85e08;
    display: block;
    margin-bottom: 8px;
}

.legal-footer-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-link {
    background: transparent;
    color: var(--text-light);
    padding: 12px 28px;
}

.btn-link:hover {
    color: var(--primary);
}

/* Legal Responsive */
@media (max-width: 768px) {
    .legal-section {
        padding: 100px 0 40px;
    }

    .legal-card {
        padding: 25px;
        margin: 0 10px;
    }

    .legal-header h1 {
        font-size: 1.6rem;
    }

    .legal-section-block h2 {
        font-size: 1.2rem;
    }

    .legal-intro {
        font-size: 1rem;
        padding: 15px;
    }

    .legal-footer-links {
        flex-direction: column;
    }

    .legal-footer-links .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .legal-card {
        padding: 20px 15px;
    }

    .legal-header h1 {
        font-size: 1.4rem;
    }

    .legal-section-block h2 {
        font-size: 1.1rem;
    }
}

/* =============================================
   Your Data Page Specific Styles
   ============================================= */

.yourdata-section {
    min-height: 100vh;
}

.yourdata-card {
    max-width: 800px;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, #efe9ff 0%, #dcd0ff 100%);
    border: 1px solid #c7b9ff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
}

.info-card h3 {
    color: #4a2cb3;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-card p {
    color: #5c3ed6;
    margin: 0;
    line-height: 1.6;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

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

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

/* Request Form */
.request-form {
    background: var(--surface-muted);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.request-form h2 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.request-type-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.request-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.request-type-btn .icon {
    font-size: 1.8rem;
}

.request-type-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 43, 214, 0.18);
}

.request-type-btn.active {
    background: var(--gradient);
    border-color: var(--primary);
    color: var(--white);
}

.no-requests {
    text-align: center;
    padding: 50px 30px;
    background: var(--surface-muted);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.no-requests-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.no-requests p {
    color: var(--text-light);
    font-size: 1rem;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: 0 1px 10px rgba(24, 12, 54, 0.08);
    transition: all 0.3s ease;
}

.request-card:hover {
    box-shadow: 0 8px 20px rgba(24, 12, 54, 0.12);
}

.request-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 12px;
    font-size: 1.5rem;
}

.request-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.request-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.request-status {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.request-status.pending {
    background: #fff3e0;
    color: #e65100;
}

.request-status.in_progress {
    background: #e3f2fd;
    color: #1565c0;
}

.request-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.request-status.rejected {
    background: #ffebee;
    color: #c62828;
}

.request-status.auto_rejected {
    background: #eceff1;
    color: #546e7a;
}

/* New Request Button */
.new-request-button-container {
    margin-top: 30px;
    text-align: center;
}

.btn-large {
    font-size: 1.05rem;
    padding: 16px 40px;
    width: 100%;
    max-width: 400px;
}

/* Your Data Responsive */
@media (max-width: 768px) {
    .request-type-buttons {
        grid-template-columns: 1fr;
    }

    .request-card {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }

    .request-status {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .yourdata-card {
        padding: 25px 18px;
    }

    .request-form {
        padding: 20px 15px;
    }

    .info-card {
        padding: 15px;
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .feature-card,
    .step,
    .step-connector,
    .step-connector-line,
    .hero-content,
    .hero-visual,
    .stat-number,
    .testimonial-card,
    .mobile-menu,
    .mobile-overlay {
        animation: none !important;
        transition: none !important;
    }

    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}
