/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #6213ac;
    --primary-dark: #460781;
    --primary-light: #ab87ccbe;
    --secondary-color: #3B82F6;
    --secondary-dark: #2563EB;
    --accent-color: #8B5CF6;
    --accent-dark: #7C3AED;
    
    /* Neutral Colors */
    --dark-color: #1F2937;
    --text-color: #374151;
    --text-light: #6B7280;
    --light-color: #F9FAFB;
    --white-color: #FFFFFF;
    --border-color: #E5E7EB;
    
    /* Background Colors */
    --bg-light: #F9FAFB;
    --bg-section: #F3F4F6;
    --bg-card: #FFFFFF;
    
    /* Status Colors */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --info-color: #3B82F6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Mobile-First Spacing */
    --section-padding: 3rem 1rem;
    --container-padding: 0 1rem;
    
    /* Mobile-First Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Mobile-first font sizes */
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

/* ===== LAYOUT & CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: var(--text-base);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    gap: 0.5rem;
    outline: none;
    min-height: 44px;
    touch-action: manipulation;
    position: relative;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== BUTTON ICONS SYSTEM ===== */
.btn-text {
    display: inline;
}

.btn-icon {
    display: none;
    font-size: var(--text-xl);
}

.btn-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loading-screen p {
    color: var(--text-light);
    font-size: var(--text-lg);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== LANDING HEADER ===== */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.landing-header.scrolled {
    box-shadow: var(--shadow-md);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 1rem;
}

.logo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo i {
    font-size: var(--text-xl);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions .btn-text {
    display: inline;
}

.header-actions .btn-icon {
    display: none;
}

/* ===== HERO SECTION ===== */
.landing-hero {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 100%;
    text-align: center;
}

.hero-title {
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-light);
    z-index: -1;
    opacity: 0.5;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: var(--text-base);
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--white-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.hero-image {
    position: relative;
}

.image-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 300px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--white-color);
    border: none;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    min-height: 44px;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--section-padding);
    background-color: var(--white-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: var(--text-2xl);
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: var(--text-lg);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: var(--text-sm);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

.step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
}

.step.animated {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon i {
    font-size: var(--text-2xl);
    color: var(--primary-color);
}

.step h3 {
    margin-bottom: 1rem;
    font-size: var(--text-lg);
}

.step p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: var(--text-sm);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    text-align: center;
}

.cta-section h2 {
    color: var(--white-color);
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: var(--text-base);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* ===== FOOTER ===== */
.landing-footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 2rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    color: var(--white-color);
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: var(--text-sm);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: all var(--transition-fast);
    font-size: var(--text-lg);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: var(--text-lg);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    font-size: var(--text-sm);
}

.footer-links a:hover {
    color: var(--white-color);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: var(--text-sm);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    min-height: 44px;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    font-size: var(--text-base);
    min-height: 44px;
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.newsletter-success {
    background-color: var(--white-color);
    color: var(--success-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    display: none;
    margin-top: 1rem;
    font-size: var(--text-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
}

.footer-legal a:hover {
    color: var(--white-color);
}

/* ===== AUTH MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    max-height: 90dvh;
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    flex-shrink: 0;
}

.modal-header h3 {
    color: var(--white-color);
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: var(--text-sm);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    color: var(--white-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
    min-height: 36px;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

/* ===== AUTH FORMS ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: var(--text-sm);
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    background-color: var(--white-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.strength-meter {
    flex: 1;
    height: 6px;
    background-color: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strength-bar {
    display: block;
    height: 100%;
    width: 0%;
    background-color: var(--error-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.strength-text {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--error-color);
}

.password-requirements {
    margin-top: 0.5rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.password-requirements p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: var(--text-sm);
}

.password-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: var(--text-xs);
    color: var(--text-light);
}

.password-requirements li i {
    font-size: 0.375rem;
    color: var(--text-light);
}

.password-requirements li.valid {
    color: var(--success-color);
}

.password-requirements li.valid i {
    color: var(--success-color);
}

.error-message {
    color: var(--error-color);
    font-size: var(--text-sm);
    margin-top: 0.25rem;
    display: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: var(--text-sm);
}

.checkbox input {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: var(--primary-color);
    font-size: var(--text-sm);
    font-weight: 500;
}

.forgot-password:hover {
    color: var(--primary-dark);
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    margin: 1rem 0;
    font-size: var(--text-sm);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.social-login {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white-color);
    color: var(--dark-color);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--text-base);
    min-height: 44px;
}

.social-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-btn.google i {
    color: var(--error-color);
}

.social-btn.facebook i {
    color: var(--info-color);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: var(--text-sm);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-switch a:hover {
    color: var(--primary-dark);
}

/* ===== SUCCESS MODAL ===== */
.success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 400px;
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: 2rem 1.5rem;
    text-align: center;
}

.success-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.success-icon {
    font-size: var(--text-5xl);
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.success-modal h3 {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.success-modal p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: var(--text-base);
}

.success-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    bottom: 5rem;
    left: 1rem;
    right: 1rem;
    background-color: var(--success-color);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification.active {
    opacity: 1;
    transform: translateY(0);
}

.notification i {
    font-size: var(--text-lg);
}

.notification p {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: var(--text-sm);
}

.notification.error {
    background-color: var(--error-color);
}

.notification.warning {
    background-color: var(--warning-color);
}

.notification.info {
    background-color: var(--info-color);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: var(--shadow-md);
    font-size: var(--text-xl);
    min-height: 50px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE ICON-ONLY BUTTONS ===== */

/* Header Actions - Mobile Icon Only */
@media (max-width: 768px) {
    .header-actions .btn-text {
        display: none;
    }
    
    .header-actions .btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-actions .btn {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: var(--radius-full);
        min-width: 44px;
        min-height: 44px;
    }
    
    .header-actions .btn::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--dark-color);
        color: var(--white-color);
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius-sm);
        font-size: var(--text-xs);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-fast);
        z-index: 100;
        pointer-events: none;
    }
    
    .header-actions .btn:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

/* Hero & CTA Buttons - Mobile Icon Only */
@media (max-width: 768px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }
    
    /* Hide text on mobile */
    .hero-buttons .btn-text,
    .cta-buttons .btn-text {
        display: none;
    }
    
    /* Show icons on mobile */
    .hero-buttons .btn-icon,
    .cta-buttons .btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Make buttons circular for icons */
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: var(--radius-full);
        min-width: 50px;
        min-height: 50px;
    }
    
    /* Tooltips for icon buttons */
    .hero-buttons .btn::after,
    .cta-buttons .btn::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--dark-color);
        color: var(--white-color);
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius-sm);
        font-size: var(--text-xs);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-fast);
        z-index: 100;
        pointer-events: none;
    }
    
    .hero-buttons .btn::before,
    .cta-buttons .btn::before {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent var(--dark-color) transparent;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-fast);
        z-index: 100;
    }
    
    .hero-buttons .btn:hover::after,
    .hero-buttons .btn:hover::before,
    .cta-buttons .btn:hover::after,
    .cta-buttons .btn:hover::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Tablet: Show icon + text or just text */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: row;
    }
    
    .btn-text {
        display: inline;
    }
    
    .btn-icon {
        display: none;
    }
    
    /* Optional: Show icon + text on tablet */
    /*
    .btn-icon {
        display: inline-flex;
        margin-right: 0.5rem;
    }
    */
    
    .header-actions .btn-text {
        display: inline;
    }
    
    .header-actions .btn-icon {
        display: none;
    }
    
    .header-actions .btn {
        width: auto;
        height: auto;
        padding: 0.75rem 1.5rem;
        border-radius: var(--radius-md);
    }
}

/* Desktop: Full text */
@media (min-width: 992px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn-text {
        display: inline;
    }
    
    .btn-icon {
        display: none;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: auto;
        height: auto;
        padding: 0.75rem 1.5rem;
        border-radius: var(--radius-md);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    :root {
        --section-padding: 4rem 2rem;
        --container-padding: 0 2rem;
    }
    
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
    h4 { font-size: var(--text-xl); }
    h5 { font-size: var(--text-lg); }
    
    .section-title {
        font-size: var(--text-4xl);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl);
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .image-slider {
        height: 400px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .social-login {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 2rem;
        right: 2rem;
    }
    
    .notification {
        bottom: 2rem;
        left: auto;
        right: 2rem;
        max-width: 300px;
    }
    
    .notification p {
        font-size: var(--text-base);
    }
}

/* Desktop Styles (992px and up) */
@media (min-width: 992px) {
    :root {
        --section-padding: 5rem 0;
    }
    
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .hero-text {
        text-align: left;
        max-width: 600px;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .image-slider {
        height: 500px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon i {
        font-size: var(--text-3xl);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
    h1 { font-size: var(--text-6xl); }
    h2 { font-size: var(--text-5xl); }
    
    .hero-title {
        font-size: var(--text-6xl);
    }
}

/* Small Mobile Styles (480px and down) */
@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem 1rem;
        --container-padding: 0 0.75rem;
    }
    
    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }
    h3 { font-size: var(--text-lg); }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .image-slider {
        height: 250px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: var(--text-xl);
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: var(--text-sm);
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: var(--text-base);
    }
    
    /* Smaller icon buttons on very small screens */
    .hero-buttons .btn,
    .cta-buttons .btn,
    .header-actions .btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .step {
        padding: 1.5rem 1rem;
    }
    
    .footer-content,
    .footer-bottom {
        padding: 1rem;
    }
    
    .notification {
        padding: 0.875rem 1rem;
        bottom: 1rem;
    }
}

/* Very Small Mobile Styles (360px and down) */
@media (max-width: 360px) {
    .hero-title {
        font-size: var(--text-xl);
    }
    
    .hero-buttons,
    .cta-buttons {
        gap: 0.5rem;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn,
    .header-actions .btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
    
    .feature-card,
    .step {
        padding: 1rem;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
        min-height: 36px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== 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;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #F9FAFB;
        --text-color: #E5E7EB;
        --text-light: #9CA3AF;
        --light-color: #111827;
        --bg-light: #1F2937;
        --bg-section: #374151;
        --bg-card: #1F2937;
        --border-color: #374151;
        --white-color: #111827;
    }
    
    .landing-hero {
        background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    }
    
    .feature-card,
    .stat,
    .step,
    .auth-modal,
    .success-modal {
        background-color: var(--bg-section);
    }
    
    .social-btn {
        background-color: var(--bg-card);
        color: var(--text-color);
    }
    
    .form-group input {
        background-color: var(--bg-light);
        color: var(--text-color);
        border-color: var(--border-color);
    }
    
    .logo,
    .footer-brand .logo {
        color: var(--primary-light);
    }
    
    /* Adjust tooltip colors for dark mode */
    .btn::after {
        background-color: var(--light-color);
        color: var(--dark-color);
    }
    
    .btn::before {
        border-color: transparent transparent var(--light-color) transparent;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .social-link:hover,
    .feature-card:hover,
    .stat:hover,
    .slider-btn:hover,
    .social-btn:hover,
    .back-to-top:hover {
        transform: none;
    }
    
    /* Show tooltips on touch */
    .btn:active::after,
    .btn:active::before {
        opacity: 1;
        visibility: visible;
    }
    
    .btn,
    .slider-btn,
    .social-btn,
    .social-link,
    .close-modal {
        min-height: 44px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .landing-header,
    .back-to-top,
    .notification,
    .modal-overlay,
    .loading-screen {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .btn {
        border: 1px solid #000;
    }
}

/* ===== SMOOTH SCROLL PADDING ===== */
html {
    scroll-padding-top: 70px;
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(98, 19, 172, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(98, 19, 172, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(98, 19, 172, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== CUSTOM ICON CLASSES ===== */
.btn-store .btn-icon i::before { content: "\f54e"; } /* fa-store */
.btn-explore .btn-icon i::before { content: "\f135"; } /* fa-rocket */
.btn-signup .btn-icon i::before { content: "\f234"; } /* fa-user-plus */
.btn-learn .btn-icon i::before { content: "\f05a"; } /* fa-info-circle */
.btn-login .btn-icon i::before { content: "\f2f6"; } /* fa-sign-in-alt */
.btn-cart .btn-icon i::before { content: "\f07a"; } /* fa-shopping-cart */
.btn-heart .btn-icon i::before { content: "\f004"; } /* fa-heart */
.btn-search .btn-icon i::before { content: "\f002"; } /* fa-search */
.btn-settings .btn-icon i::before { content: "\f013"; } /* fa-cog */