/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #17a2b8;

    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-white: #ffffff;
    --text-muted: #95a5a6;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #2c3e50;
    --bg-darker: #1a252f;

    /* Gradients */
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-success: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    --gradient-warning: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --gradient-whatsapp: linear-gradient(135deg, #25D366, #128C7E);

    /* Shadows */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-fast: all 0.15s ease;

    /* Border Radius */
    --border-radius: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-full: 50px;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Dark Mode Colors */
    --dark-primary: #ecf0f1;
    --dark-secondary: #bdc3c7;
    --dark-bg: #1a252f;
    --dark-surface: #2c3e50;
    --dark-border: #4a5f7a;
}

/* ===== BASE TYPOGRAPHY ===== */
body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    direction: rtl;
    overflow-x: hidden;
    font-size: 16px;
    transition: var(--transition);
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    position: relative;
    margin-bottom: var(--space-xl);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1.1rem;
}

p {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header & Navigation */
.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: var(--space-sm) 0;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

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

/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

/* ===== HERO SECTION ===== */
.hero-with-image {
    background: var(--gradient);
    color: var(--text-white);
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
    overflow: hidden;
}

.hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-bg.svg') center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: var(--text-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius-full);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
}

.hero-image img:hover {
    transform: translateY(-10px) scale(1.02);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    background: var(--secondary-color);
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--secondary-color);
}

.btn-primary:hover {
    background: #c0392b;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: #219653;
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.2rem;
}

.btn-small {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    margin: var(--space-xl) auto;
    max-width: 1200px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title::after {
    right: 50%;
    transform: translateX(50%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.benefit-card {
    background: var(--bg-primary);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    display: block;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SECURITY PAGE STYLES ===== */
.hero {
    background: var(--gradient);
    color: var(--text-white);
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    color: var(--text-white);
    margin-bottom: var(--space-lg);
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--bg-secondary);
    padding: var(--space-md) 0;
    border-bottom: 1px solid #dee2e6;
    margin-top: 80px;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 var(--space-sm);
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Steps Container */
.steps-container {
    background: var(--bg-secondary);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    margin: var(--space-lg) 0;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    background: var(--secondary-color);
    color: var(--text-white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--space-lg);
    flex-shrink: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Important Note */
.important-note {
    background: #e8f5e8;
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    margin: var(--space-lg) 0;
    border-right: 4px solid var(--success-color);
}

.important-note h3 {
    color: #2e7d32;
    margin-bottom: var(--space-md);
}

/* Privacy List */
.privacy-list {
    line-height: 2;
}

.privacy-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.privacy-item:hover {
    background: #e8f5e8;
    transform: translateX(-5px);
}

.check-icon {
    margin-left: var(--space-md);
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* Certificates */
.certificates-container {
    background: var(--bg-secondary);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
}

.cert-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0 0 0;
}

.cert-list li {
    padding: var(--space-sm) 0;
    position: relative;
    padding-right: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.cert-list li::before {
    content: "•";
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: 0;
}

/* FAQ Section */
.faq-section {
    margin-top: var(--space-2xl);
}

.faq-list {
    margin-top: var(--space-xl);
}

.faq-item {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 2px solid var(--bg-secondary);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: var(--space-md);
    font-size: 1.3rem;
}

/* Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== INCOME METHODS ===== */
.income-methods {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.method-card {
    background: var(--bg-primary);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.method-card:hover::before {
    opacity: 0.02;
}

.method-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 2;
}

.method-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
    line-height: 1.7;
}

.method-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.method-link:hover {
    color: var(--secondary-color);
    gap: var(--space-md);
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
    margin: var(--space-2xl) 0;
}

.feature-card {
    background: var(--bg-primary);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--success-color);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    display: block;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.contact-box {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-right: 4px solid var(--secondary-color);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.feature-card:hover .contact-box {
    border-right-color: var(--success-color);
    transform: translateX(-5px);
}

.contact-box p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== SUCCESS STORIES ===== */
.success-stories {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.story-card {
    background: var(--bg-secondary);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.story-content p {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.story-author {
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
    position: relative;
    z-index: 2;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient);
    color: var(--text-white);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-cta.svg') center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.cta-section h2 {
    color: var(--text-white);
    margin-bottom: var(--space-lg);
}

.cta-section h2::after {
    display: none;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-note {
    margin-top: var(--space-lg);
    opacity: 0.8;
}

.cta-note a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
}

.cta-note a:hover {
    text-decoration: underline;
}

/* ===== FLOATING CONTACT ===== */
.floating-contact {
    position: fixed;
    bottom: var(--space-2xl);
    left: var(--space-2xl);
    z-index: 1000;
}

.contact-bubble {
    display: flex;
    align-items: center;
    background: var(--gradient-whatsapp);
    color: var(--text-white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.contact-bubble:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.contact-text {
    font-weight: 600;
    margin-left: var(--space-md);
}

.contact-call {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-call:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-white);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    color: var(--text-white);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer p {
    margin-bottom: var(--space-md);
    opacity: 0.8;
    font-size: 1rem;
}

.footer nav {
    margin-top: var(--space-lg);
}

.footer a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-links {
    margin-top: var(--space-lg);
}

.social-links a {
    margin: 0 var(--space-sm);
}

/* ===== INTERNAL LINKS ===== */
.internal-links {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
}

.internal-links h3 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.internal-link {
    display: block;
    background: var(--bg-primary);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.internal-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

/* ===== FORM STYLES ===== */
.request-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.request-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Vazir', sans-serif;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--secondary-color);
}

.form-group input:valid:not(:focus):not(:placeholder-shown) {
    border-color: var(--success-color);
}

/* Floating Labels */
.form-floating {
    position: relative;
}

.form-floating input,
.form-floating textarea {
    height: 60px;
    padding: 1rem 0.75rem 0;
}

.form-floating label {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 100% 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: var(--text-secondary);
}

.form-floating input:focus~label,
.form-floating input:not(:placeholder-shown)~label,
.form-floating textarea:focus~label,
.form-floating textarea:not(:placeholder-shown)~label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    opacity: 0.65;
}

/* Form Validation States */
.form-group.success input {
    border-color: var(--success-color);
}

.form-group.error input {
    border-color: var(--secondary-color);
}

.form-feedback {
    display: none;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group.success .form-feedback.success,
.form-group.error .form-feedback.error {
    display: block;
}

.form-feedback.success {
    color: var(--success-color);
}

.form-feedback.error {
    color: var(--secondary-color);
}

/* استایل‌های انتخاب دوره */
.course-options {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.course-option {
    position: relative;
}

.course-option input[type="radio"] {
    display: none;
}

.course-option label {
    display: block;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.course-option input[type="radio"]:checked+label {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #e8f5e8, var(--bg-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.course-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.course-price {
    display: block;
    margin-top: 0.5rem;
    color: var(--success-color);
    font-weight: 600;
}

.course-description {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-submit {
    text-align: center;
    margin-top: 3rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

.error-message {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

/* استایل‌های کارت بانکی */
.bank-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1%, transparent 1%);
    background-size: 20px 20px;
    opacity: 0.3;
}

.bank-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.bank-logo {
    font-size: 2rem;
    font-weight: bold;
}

.chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 8px;
    position: relative;
}

.chip::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.card-number {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-align: center;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    direction: ltr;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-holder {
    font-size: 1.1rem;
}

.card-type {
    font-size: 1.2rem;
    font-weight: bold;
}

.payment-instructions {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-right: 4px solid var(--success-color);
}

.instruction-steps {
    margin: 1.5rem 0;
}

.instruction-step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-number {
    background: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
    font-weight: bold;
}

.whatsapp-payment {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem 0;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.success-message.show {
    transform: translateX(0);
}

/* ===== COMPONENTS ===== */

/* Badge Component */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.badge-secondary {
    background: var(--secondary-color);
    color: var(--text-white);
}

.badge-success {
    background: var(--success-color);
    color: var(--text-white);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--text-white);
}

.badge-info {
    background: var(--info-color);
    color: var(--text-white);
}

/* Alert Component */
.alert {
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    margin-bottom: var(--space-lg);
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Progress Bar */
.progress {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: var(--border-radius-full);
    transition: width 0.6s ease;
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -8px, 0);
    }

    70% {
        transform: translate3d(0, -4px, 0);
    }

    90% {
        transform: translate3d(0, -2px, 0);
    }
}

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

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

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

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

.bounce {
    animation: bounce 2s infinite;
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

/* ===== UTILITY CLASSES ===== */

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-justify {
    text-align: justify;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

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

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--secondary-color);
}

.text-info {
    color: var(--info-color);
}

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

.text-muted {
    color: var(--text-muted);
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.leading-tight {
    line-height: 1.25;
}

.leading-snug {
    line-height: 1.375;
}

.leading-normal {
    line-height: 1.5;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-loose {
    line-height: 2;
}

/* Spacing Utilities */
.m-0 {
    margin: 0;
}

.m-1 {
    margin: var(--space-xs);
}

.m-2 {
    margin: var(--space-sm);
}

.m-3 {
    margin: var(--space-md);
}

.m-4 {
    margin: var(--space-lg);
}

.m-5 {
    margin: var(--space-xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-xs);
}

.mt-2 {
    margin-top: var(--space-sm);
}

.mt-3 {
    margin-top: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-lg);
}

.mt-5 {
    margin-top: var(--space-xl);
}

.mt-6 {
    margin-top: var(--space-2xl);
}

.mt-7 {
    margin-top: var(--space-3xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

.mb-5 {
    margin-bottom: var(--space-xl);
}

.mb-6 {
    margin-bottom: var(--space-2xl);
}

.mb-7 {
    margin-bottom: var(--space-3xl);
}

.mr-0 {
    margin-right: 0;
}

.mr-1 {
    margin-right: var(--space-xs);
}

.mr-2 {
    margin-right: var(--space-sm);
}

.mr-3 {
    margin-right: var(--space-md);
}

.mr-4 {
    margin-right: var(--space-lg);
}

.mr-5 {
    margin-right: var(--space-xl);
}

.ml-0 {
    margin-left: 0;
}

.ml-1 {
    margin-left: var(--space-xs);
}

.ml-2 {
    margin-left: var(--space-sm);
}

.ml-3 {
    margin-left: var(--space-md);
}

.ml-4 {
    margin-left: var(--space-lg);
}

.ml-5 {
    margin-left: var(--space-xl);
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: var(--space-xs);
}

.p-2 {
    padding: var(--space-sm);
}

.p-3 {
    padding: var(--space-md);
}

.p-4 {
    padding: var(--space-lg);
}

.p-5 {
    padding: var(--space-xl);
}

.p-6 {
    padding: var(--space-2xl);
}

.p-7 {
    padding: var(--space-3xl);
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: var(--space-xs);
}

.pt-2 {
    padding-top: var(--space-sm);
}

.pt-3 {
    padding-top: var(--space-md);
}

.pt-4 {
    padding-top: var(--space-lg);
}

.pt-5 {
    padding-top: var(--space-xl);
}

.pb-0 {
    padding-bottom: 0;
}

.pb-1 {
    padding-bottom: var(--space-xs);
}

.pb-2 {
    padding-bottom: var(--space-sm);
}

.pb-3 {
    padding-bottom: var(--space-md);
}

.pb-4 {
    padding-bottom: var(--space-lg);
}

.pb-5 {
    padding-bottom: var(--space-xl);
}

.pr-0 {
    padding-right: 0;
}

.pr-1 {
    padding-right: var(--space-xs);
}

.pr-2 {
    padding-right: var(--space-sm);
}

.pr-3 {
    padding-right: var(--space-md);
}

.pr-4 {
    padding-right: var(--space-lg);
}

.pr-5 {
    padding-right: var(--space-xl);
}

.pl-0 {
    padding-left: 0;
}

.pl-1 {
    padding-left: var(--space-xs);
}

.pl-2 {
    padding-left: var(--space-sm);
}

.pl-3 {
    padding-left: var(--space-md);
}

.pl-4 {
    padding-left: var(--space-lg);
}

.pl-5 {
    padding-left: var(--space-xl);
}

/* Display Utilities */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-inline {
    display: inline;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.d-grid {
    display: grid;
}

.d-table {
    display: table;
}

/* Flex Utilities */
.flex {
    display: flex;
}

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

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

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

.align-stretch {
    align-items: stretch;
}

.align-baseline {
    align-items: baseline;
}

/* Grid Utilities */
.grid {
    display: grid;
}

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

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

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

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

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.gap-1 {
    gap: var(--space-xs);
}

.gap-2 {
    gap: var(--space-sm);
}

.gap-3 {
    gap: var(--space-md);
}

.gap-4 {
    gap: var(--space-lg);
}

.gap-5 {
    gap: var(--space-xl);
}

/* Position Utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.static {
    position: static;
}

/* Size Utilities */
.w-full {
    width: 100%;
}

.w-screen {
    width: 100vw;
}

.w-auto {
    width: auto;
}

.w-25 {
    width: 25%;
}

.w-50 {
    width: 50%;
}

.w-75 {
    width: 75%;
}

.w-100 {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.h-auto {
    height: auto;
}

.h-25 {
    height: 25%;
}

.h-50 {
    height: 50%;
}

.h-75 {
    height: 75%;
}

.h-100 {
    height: 100%;
}

.min-h-0 {
    min-height: 0;
}

.min-h-full {
    min-height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-full {
    max-width: 100%;
}

.max-w-screen {
    max-width: 100vw;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-sm {
    max-width: 24rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

/* Overflow Utilities */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-visible {
    overflow: visible;
}

.overflow-scroll {
    overflow: scroll;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.overflow-y-hidden {
    overflow-y: hidden;
}

/* Border Utilities */
.border {
    border: 1px solid #e2e8f0;
}

.border-0 {
    border: 0;
}

.border-2 {
    border-width: 2px;
}

.border-4 {
    border-width: 4px;
}

.border-8 {
    border-width: 8px;
}

.border-t {
    border-top: 1px solid #e2e8f0;
}

.border-r {
    border-right: 1px solid #e2e8f0;
}

.border-b {
    border-bottom: 1px solid #e2e8f0;
}

.border-l {
    border-left: 1px solid #e2e8f0;
}

.rounded {
    border-radius: var(--border-radius);
}

.rounded-md {
    border-radius: var(--border-radius-md);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.rounded-xl {
    border-radius: var(--border-radius-xl);
}

.rounded-full {
    border-radius: var(--border-radius-full);
}

.rounded-none {
    border-radius: 0;
}

/* Shadow Utilities */
.shadow {
    box-shadow: var(--shadow);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.shadow-inner {
    box-shadow: var(--shadow-inner);
}

.shadow-none {
    box-shadow: none;
}

/* Opacity Utilities */
.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

/* Z-index Utilities */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.z-auto {
    z-index: auto;
}

/* Cursor Utilities */
.cursor-pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.cursor-wait {
    cursor: wait;
}

.cursor-text {
    cursor: text;
}

.cursor-move {
    cursor: move;
}

/* User Select Utilities */
.select-none {
    user-select: none;
}

.select-text {
    user-select: text;
}

.select-all {
    user-select: all;
}

.select-auto {
    user-select: auto;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== LOADING STATES ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 1s ease-in-out infinite;
}

/* ===== LAZY LOADING ===== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktops */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .navbar {
        padding: var(--space-md) 3%;
    }

    .hero-container {
        gap: var(--space-xl);
    }

    .benefits-grid,
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Tablets */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

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

    .benefits-grid,
    .methods-grid,
    .features-grid,
    .stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-lg);
    }

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

    .steps-container {
        padding: var(--space-lg);
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .step-number {
        margin-left: 0;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg-primary);
        width: 100%;
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links a {
        padding: var(--space-md);
        width: 100%;
        text-align: center;
    }

    .hero-with-image {
        padding: var(--space-2xl) var(--space-md);
    }

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

    .feature-badge {
        font-size: 0.9rem;
        padding: var(--space-xs) var(--space-md);
    }

    .card {
        padding: var(--space-xl);
        margin: var(--space-lg) var(--space-md);
        border-radius: var(--border-radius-lg);
    }

    .benefit-card,
    .method-card,
    .feature-card {
        padding: var(--space-xl);
    }

    .floating-contact {
        bottom: var(--space-lg);
        left: var(--space-lg);
    }

    .contact-bubble {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .contact-text {
        margin-left: 0;
        text-align: center;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .course-options {
        grid-template-columns: 1fr;
    }

    .request-form-container {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }

    .bank-card {
        padding: 1.5rem;
    }

    .card-number {
        font-size: 1.2rem;
    }

    .card-details {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .breadcrumb {
        margin-top: 70px;
    }

    .privacy-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .check-icon {
        margin-left: 0;
    }
}

/* Phones */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

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

    .benefits-grid,
    .methods-grid,
    .features-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .internal-links-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: var(--space-xl) 0;
    }

    .breadcrumb ol {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .breadcrumb li:not(:last-child)::after {
        display: none;
    }
}

/* Small Phones */
@media (max-width: 400px) {
    .navbar {
        padding: var(--space-sm);
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: var(--space-sm);
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero-with-image {
        padding: var(--space-xl) var(--space-sm);
    }

    .card {
        padding: var(--space-lg);
        margin: var(--space-md) var(--space-sm);
    }

    .steps-container,
    .important-note,
    .certificates-container {
        padding: var(--space-lg);
    }
}

/* Height-based Media Queries */
@media (max-height: 600px) {
    .hero-with-image {
        padding: var(--space-xl) var(--space-lg);
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .header,
    .footer,
    .floating-contact,
    .btn,
    .breadcrumb,
    .nav-toggle {
        display: none;
    }

    .main {
        margin-top: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
        line-height: 1.4;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .hero-with-image {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* ===== FALLBACKS ===== */
@supports not (background: linear-gradient(135deg, #667eea, #764ba2)) {
    .hero-with-image {
        background: #667eea;
    }

    .cta-section {
        background: #667eea;
    }

    .contact-bubble {
        background: #25D366;
    }

    .bank-card {
        background: #667eea;
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .header.scrolled {
        background: rgba(255, 255, 255, 0.98);
    }

    .feature-badge {
        background: rgba(255, 255, 255, 0.9);
    }

    .glass {
        background: rgba(255, 255, 255, 0.9);
    }

    .glass-dark {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Grid Fallback */
@supports not (display: grid) {

    .benefits-grid,
    .methods-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .benefit-card,
    .method-card {
        flex: 1 1 300px;
        margin: var(--space-md);
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: var(--dark-primary);
        --text-secondary: var(--dark-secondary);
        --bg-primary: var(--dark-bg);
        --bg-secondary: var(--dark-surface);
    }

    body {
        background: var(--dark-bg);
        color: var(--dark-primary);
    }

    .header {
        background: var(--dark-surface);
    }

    .header.scrolled {
        background: rgba(42, 42, 42, 0.95);
    }

    .card,
    .benefit-card,
    .method-card,
    .feature-card,
    .story-card,
    .internal-link {
        background: var(--dark-surface);
        border-color: var(--dark-border);
    }

    .contact-box {
        background: var(--dark-border);
    }

    .steps-container,
    .privacy-item,
    .certificates-container {
        background: var(--dark-border);
    }

    .important-note {
        background: #1e3a1e;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="url"],
    .form-group input[type="email"] {
        background: var(--dark-surface);
        border-color: var(--dark-border);
        color: var(--dark-primary);
    }

    .course-option label {
        background: var(--dark-surface);
        border-color: var(--dark-border);
        color: var(--dark-primary);
    }

    .alert-success {
        background: #1e3a1e;
        border-color: #2d5a2d;
        color: #a3d9a3;
    }

    .alert-warning {
        background: #4a3c1a;
        border-color: #6b5a2d;
        color: #f6e05e;
    }

    .alert-error {
        background: #4a1e1e;
        border-color: #7b2d2d;
        color: #feb2b2;
    }

    .alert-info {
        background: #1a3a4a;
        border-color: #2d5a7b;
        color: #90cdf4;
    }
}

/* Manual Dark Mode Toggle */
.dark-mode {
    --text-primary: var(--dark-primary);
    --text-secondary: var(--dark-secondary);
    --bg-primary: var(--dark-bg);
    --bg-secondary: var(--dark-surface);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* ===== FOCUS STYLES ===== */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Remove focus for mouse users */
@media (hover: hover) {
    *:focus:not(:focus-visible) {
        outline: none;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ff0000;
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --bg-secondary: #f0f0f0;
    }

    .shadow,
    .shadow-md,
    .shadow-lg,
    .shadow-xl {
        box-shadow: 0 0 0 1px #000000;
    }
}

/* ===== REDUCED TRANSPARENCY ===== */
@media (prefers-reduced-transparency: reduce) {

    .glass,
    .glass-dark,
    .feature-badge,
    .header.scrolled {
        backdrop-filter: none;
        background: var(--bg-primary);
    }
}