/* Custom CSS for ProEase Hup Landing Page */

/* CSS Variables for Theme Colors */
:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-hero: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 70%);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(30, 41, 59, 0.1);
    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-secondary: #475569;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-indigo: #6366f1;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
}

/* Light Theme Colors (explicit) */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-hero: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 70%);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(30, 41, 59, 0.1);
    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-secondary: #475569;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-indigo: #6366f1;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 70%);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --accent-primary: #60a5fa;
    --accent-primary-hover: #3b82f6;
    --accent-secondary: #818cf8;
    --accent-blue: #60a5fa;
    --accent-blue-hover: #3b82f6;
    --accent-indigo: #818cf8;
    --accent-green: #60a5fa;
    --accent-purple: #818cf8;
    --accent-yellow: #60a5fa;
    --accent-red: #818cf8;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Arabic Font Support */
[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .text-left {
    text-align: right !important;
}

[dir="rtl"] .text-right {
    text-align: left !important;
}

/* RTL Margin and Padding Adjustments */
[dir="rtl"] .ml-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .ml-3 {
    margin-left: 0 !important;
    margin-right: 0.75rem !important;
}

[dir="rtl"] .ml-4 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

[dir="rtl"] .ml-6 {
    margin-left: 0 !important;
    margin-right: 1.5rem !important;
}

[dir="rtl"] .ml-8 {
    margin-left: 0 !important;
    margin-right: 2rem !important;
}

[dir="rtl"] .mr-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .mr-3 {
    margin-right: 0 !important;
    margin-left: 0.75rem !important;
}

[dir="rtl"] .mr-4 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] .mr-6 {
    margin-right: 0 !important;
    margin-left: 1.5rem !important;
}

[dir="rtl"] .mr-8 {
    margin-right: 0 !important;
    margin-left: 2rem !important;
}

/* RTL Spacing adjustments */
[dir="rtl"] .space-x-2>*+* {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .space-x-4>*+* {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

[dir="rtl"] .space-x-6>*+* {
    margin-left: 0 !important;
    margin-right: 1.5rem !important;
}

[dir="rtl"] .space-x-8>*+* {
    margin-left: 0 !important;
    margin-right: 2rem !important;
}

[dir="rtl"] .space-x-10>*+* {
    margin-left: 0 !important;
    margin-right: 2.5rem !important;
}

/* Logo Styles */
#logo-image {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Dark theme logo adjustments */
[data-theme="dark"] #logo-image {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] #logo-image:hover {
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.15));
}

/* Footer Logo Styles */
#footer-logo-image {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

#footer-logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.2));
}

/* Dark theme footer logo adjustments */
[data-theme="dark"] #footer-logo-image {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.15));
}

[data-theme="dark"] #footer-logo-image:hover {
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.25));
}

/* RTL Icon Transformations */
[dir="rtl"] .fa-chevron-down,
[dir="rtl"] .fa-chevron-right {
    transform: scaleX(-1);
}

/* Language Toggle Button Styles */
#language-toggle,
#mobile-language-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

#language-toggle:hover,
#mobile-language-toggle:hover {
    transform: translateY(-1px);
}

/* Theme Toggle Button Styles */
#theme-toggle,
#mobile-theme-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle:hover,
#mobile-theme-toggle:hover {
    transform: translateY(-1px);
}

/* Theme toggle button colors for light theme */
[data-theme="light"] #theme-toggle,
[data-theme="light"] #mobile-theme-toggle {
    background-color: #f3f4f6;
    color: #374151;
}

[data-theme="light"] #theme-toggle:hover,
[data-theme="light"] #mobile-theme-toggle:hover {
    background-color: #e5e7eb;
}

/* Theme toggle button colors for dark theme */
[data-theme="dark"] #theme-toggle,
[data-theme="dark"] #mobile-theme-toggle {
    background-color: #374151;
    color: #f9fafb;
}

[data-theme="dark"] #theme-toggle:hover,
[data-theme="dark"] #mobile-theme-toggle:hover {
    background-color: #4b5563;
}

.theme-icon-transition {
    transition: all 0.3s ease;
}

/* Mobile Menu RTL Adjustments */
[dir="rtl"] #mobile-menu .text-left {
    text-align: right !important;
}

[dir="rtl"] #mobile-menu .mr-4 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] #mobile-menu .mr-6 {
    margin-right: 0 !important;
    margin-left: 1.5rem !important;
}

/* Hero Section RTL Adjustments */
[dir="rtl"] .hero-title br {
    display: block;
}

/* Feature Cards RTL Adjustments */
[dir="rtl"] .feature-card {
    text-align: right;
}

/* Pricing Section RTL Adjustments */
[dir="rtl"] .pricing-toggle {
    flex-direction: row-reverse;
}

[dir="rtl"] .pricing-toggle .ml-6 {
    margin-left: 0 !important;
    margin-right: 1.5rem !important;
}

/* FAQ Section RTL Adjustments */
[dir="rtl"] .faq-button {
    text-align: right;
}

[dir="rtl"] .faq-button .fa-chevron-down {
    transform: scaleX(-1);
}

/* Footer RTL Adjustments */
[dir="rtl"] .footer-section {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Mobile RTL Adjustments */
    [dir="rtl"] .mobile-menu-item {
        text-align: right;
    }

    [dir="rtl"] .mobile-language-toggle {
        justify-content: center;
    }
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Language Switch Animation */
.language-switch {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Theme Switch Animation */
.theme-switch {
    animation: fadeIn 0.3s ease-in-out;
}

/* RTL Specific Animations */
[dir="rtl"] .slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

[dir="rtl"] .slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

/* Card Hover Effects */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1D4ED8;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus {
    outline: none;
}

/* Alternative focus styles for better accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Button Hover Animations */
.btn-hover-animate {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

/* Card Border Animations */
.card-border-animate {
    position: relative;
    overflow: hidden;
}

.card-border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    background: linear-gradient(45deg, #3B82F6, #1D4ED8, #3B82F6) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-border-animate:hover::before {
    opacity: 1;
}

/* Text Gradient Effects */
.text-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Shadows */
.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Animated Stats Scrolling */
.stats-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.stats-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.stats-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* RTL Support for Stats Animation */
[dir="rtl"] .stats-track {
    animation: scroll-rtl 30s linear infinite;
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

/* Stats Card Hover Effects */
.stats-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

/* Responsive Stats */
@media (max-width: 768px) {
    .stats-track {
        animation-duration: 20s;
    }

    [dir="rtl"] .stats-track {
        animation-duration: 20s;
    }
}

/* Smooth Page Transitions */
.page-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-transition.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.page-transition.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Main Form Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.subscription-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 50px var(--shadow-color);
    position: relative;
    z-index: 1;
}

h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 700;
}

label {
    font-weight: 600;
    display: block;
    margin: 16px 0 8px;
    color: var(--text-primary);
}

input,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

button {
    width: 100%;
    padding: 16px;
    background: var(--accent-blue);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s, transform 0.2s;
}

button:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
}

.price-info {
    font-weight: bold;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
    font-size: 1.1rem;
}

.addon-item {
    margin-bottom: 12px;
}

.addon-item input[type="checkbox"] {
    width: auto;
    margin-left: 8px;
}

.addon-item input[type="number"] {
    width: 80px;
    display: inline-block;
    margin-right: 10px;
}

.coupon-status {
    font-size: 0.9rem;
    margin-bottom: 16px;
    margin-top: -8px;
}

.form-section {
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.page-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://user-images.githubusercontent.com/49271618/250702871-33758b29-e58f-4318-8f55-6b21652431d1.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.footer {
    background-color: var(--bg-primary);
    color: var(--text-muted);
    padding: 60px 64px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 64px;
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.header-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 30px;
    vertical-align: middle;
    margin-left: 10px;
}

.nav-links {
    margin: 0 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.footer-left {
    max-width: 300px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.footer-logo img {
    height: 30px;
    margin-left: 10px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
}

.footer-powered-by {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-powered-by span {
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-grow: 1;
    justify-content: flex-start;
    gap: 80px;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--accent-blue);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.flex {
    display: flex !important;
}

.items-center {
    align-items: center !important;
}

.justify-center {
    justify-content: center !important;
}

.space-x-2 > * + * {
    margin-left: 0.5rem !important;
}

.space-x-4 > * + * {
    margin-left: 1rem !important;
}

.space-x-6 > * + * {
    margin-left: 1.5rem !important;
}

.space-x-8 > * + * {
    margin-left: 2rem !important;
}

.space-x-10 > * + * {
    margin-left: 2.5rem !important;
}

/* RTL adjustments for utility classes */
[dir="rtl"] .space-x-2 > * + * {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .space-x-4 > * + * {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

[dir="rtl"] .space-x-6 > * + * {
    margin-left: 0 !important;
    margin-right: 1.5rem !important;
}

[dir="rtl"] .space-x-8 > * + * {
    margin-left: 0 !important;
    margin-right: 2rem !important;
}

[dir="rtl"] .space-x-10 > * + * {
    margin-left: 0 !important;
    margin-right: 2.5rem !important;
}

/* Responsive utilities */
@media (min-width: 768px) {
    .md\:flex {
        display: flex !important;
    }
    
    .md\:hidden {
        display: none !important;
    }
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Mobile Menu Button Styles */
#mobile-menu-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
    transform: scale(1.05);
}

/* Mobile Menu Links */
#mobile-menu a {
    transition: all 0.2s ease;
    padding: 8px 0;
    border-radius: 6px;
}

#mobile-menu a:hover {
    background-color: var(--bg-tertiary);
    padding-left: 12px;
    padding-right: 12px;
}

/* Mobile Language and Theme Toggle Container */
#mobile-menu .flex.items-center.justify-between {
    margin-top: 16px;
    padding-top: 16px;
}

/* Responsive Header Adjustments */
@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
    }
    
    .header-logo a {
        font-size: 20px;
    }
    
    .header-logo img {
        height: 25px;
    }
    
    .subscription-container {
        margin: 20px auto;
        padding: 24px;
        max-width: 95%;
    }
    
    .form-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .form-section-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    input, select {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    button {
        padding: 14px;
        font-size: 1em;
    }
}

/* Light mode adjustments for mobile */
[data-theme="light"] #mobile-menu {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] #mobile-menu a {
    color: #374151;
}

[data-theme="light"] #mobile-menu a:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

/* Dark mode adjustments for mobile */
[data-theme="dark"] #mobile-menu {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] #mobile-menu a {
    color: var(--text-secondary);
}

[data-theme="dark"] #mobile-menu a:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* RTL adjustments for mobile menu */
[dir="rtl"] #mobile-menu a:hover {
    padding-right: 12px;
    padding-left: 12px;
}

/* Smooth transitions for all interactive elements */
button, a, input, select {
    transition: all 0.2s ease;
}

/* Focus states for better accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Enhanced button states */
button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Input focus enhancements */
input:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
}

/* Checkbox and radio button enhancements */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent-blue);
}

/* Select dropdown enhancements */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

[dir="rtl"] select {
    background-position: left 0.5rem center;
    padding-right: 0.75rem;
    padding-left: 2.5rem;
}

/* Price info enhancements */
.price-info {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

/* Coupon status enhancements */
.coupon-status {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.coupon-status:not(:empty) {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

/* Addon item enhancements */
.addon-item {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.addon-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.addon-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
}

.addon-item input[type="number"] {
    width: 60px;
    margin: 0;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.addon-name {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    min-width: 120px;
}

.addon-item input[type="checkbox"]:checked + .addon-name {
    color: var(--accent-blue);
    font-weight: 600;
}

/* RTL adjustments for addon items */
[dir="rtl"] .addon-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .addon-item input[type="checkbox"] {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .addon-item input[type="number"] {
    margin-left: 0;
    margin-right: 8px;
}

/* Form section enhancements */
.form-section {
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.form-section:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Header enhancements */
.header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .header {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #475569;
}

/* Logo enhancements */
.header-logo a {
    transition: all 0.3s ease;
}

.header-logo a:hover {
    transform: scale(1.05);
}

/* Navigation enhancements */
.nav-links a {
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background-color: var(--bg-tertiary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Language and theme toggle enhancements */
#language-toggle,
#theme-toggle,
#mobile-language-toggle,
#mobile-theme-toggle {
    position: relative;
    overflow: hidden;
}

#language-toggle::before,
#theme-toggle::before,
#mobile-language-toggle::before,
#mobile-theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#language-toggle:hover::before,
#theme-toggle:hover::before,
#mobile-language-toggle:hover::before,
#mobile-theme-toggle:hover::before {
    left: 100%;
}

/* Animation for theme and language switches */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-switch,
.theme-switch {
    animation: slideInFromTop 0.3s ease-out;
}

/* Enhanced scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-hover);
}

/* Print styles */
@media print {
    .header,
    #mobile-menu,
    #language-toggle,
    #theme-toggle,
    #mobile-language-toggle,
    #mobile-theme-toggle {
        display: none !important;
    }
    
    .subscription-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-success {
    background-color: #10b981;
}

.notification-error {
    background-color: #ef4444;
}

.notification-warning {
    background-color: #f59e0b;
}

.notification-info {
    background-color: #3b82f6;
}

/* RTL adjustments for notifications */
[dir="rtl"] .notification {
    right: auto;
    left: 20px;
    transform: translateX(-100%);
}

[dir="rtl"] .notification.show {
    transform: translateX(0);
}

[dir="rtl"] .notification span {
    margin-right: 0;
    margin-left: 8px;
}

/* RTL adjustments for error messages */
[dir="rtl"] .error-message {
    text-align: right;
}

/* RTL adjustments for form validation */
[dir="rtl"] input:invalid,
[dir="rtl"] select:invalid {
    border-color: #ef4444;
}

[dir="rtl"] input:valid,
[dir="rtl"] select:valid {
    border-color: var(--border-color);
}

/* RTL adjustments for focus states */
[dir="rtl"] input:focus,
[dir="rtl"] select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    outline: none;
}

/* Error message styles */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 4px;
    font-weight: 500;
}

/* Form validation styles */
input:invalid,
select:invalid {
    border-color: #ef4444;
}

input:valid,
select:valid {
    border-color: var(--border-color);
}

/* LTR adjustments for error messages */
[dir="ltr"] .error-message {
    text-align: left;
}

/* LTR adjustments for form validation */
[dir="ltr"] input:invalid,
[dir="ltr"] select:invalid {
    border-color: #ef4444;
}

[dir="ltr"] input:valid,
[dir="ltr"] select:valid {
    border-color: var(--border-color);
}

/* LTR adjustments for focus states */
[dir="ltr"] input:focus,
[dir="ltr"] select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    outline: none;
}

/* LTR adjustments for notifications */
[dir="ltr"] .notification {
    right: 20px;
    left: auto;
    transform: translateX(100%);
}

[dir="ltr"] .notification.show {
    transform: translateX(0);
}

[dir="ltr"] .notification span {
    margin-right: 8px;
    margin-left: 0;
}

/* Notification animations for RTL */
[dir="rtl"] .notification {
    transform: translateX(-100%);
}

[dir="rtl"] .notification.show {
    transform: translateX(0);
}

/* Notification animations for LTR */
[dir="ltr"] .notification {
    transform: translateX(100%);
}

[dir="ltr"] .notification.show {
    transform: translateX(0);
}

/* Notification animations for RTL */
[dir="rtl"] .notification {
    transform: translateX(-100%);
}

[dir="rtl"] .notification.show {
    transform: translateX(0);
}

/* Notification animations for LTR */
[dir="ltr"] .notification {
    transform: translateX(100%);
}

[dir="ltr"] .notification.show {
    transform: translateX(0);
}

/* Notification animations for RTL */
[dir="rtl"] .notification {
    transform: translateX(-100%);
}

[dir="rtl"] .notification.show {
    transform: translateX(0);
}

/* Loading state for form submission */
.form-submitting {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.form-submitting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success state for form fields */
.field-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Enhanced focus states */
input:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    outline: none;
}

/* Placeholder styles */
input::placeholder,
select::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Disabled state styles */
input:disabled,
select:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--bg-tertiary);
}

/* Required field indicator */
.required-field::after {
    content: ' *';
    color: #ef4444;
    font-weight: bold;
}

.required-asterisk {
    color: #ef4444 !important;
    font-weight: bold !important;
}

/* RTL adjustments for required field indicators */
[dir="rtl"] .required-field::after {
    content: ' *';
}

[dir="rtl"] .required-asterisk {
    margin-right: 0;
    margin-left: 2px;
}

/* Form section success state */
.form-section.success {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

/* Form section error state */
.form-section.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

/* Animation for form sections */
.form-section {
    animation: slideInUp 0.3s ease-out;
}

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

/* Staggered animation for form sections */
.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced button loading state */
button.loading {
    position: relative;
    color: transparent;
}

button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* RTL adjustments for tooltips */
[dir="rtl"] .tooltip .tooltiptext {
    left: auto;
    right: 50%;
    margin-left: 0;
    margin-right: -100px;
}
