/* Enhanced CSS for PayPortal - Sleek, Modern & Responsive */
:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --secondary: #7c3aed;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --dark-2: #334155;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    font-size: 14px;
}

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

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
}

.sticky-header.scrolled {
    box-shadow: var(--shadow);
}

.sticky-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    font-size: 1.5rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1.5px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-text {
    background: transparent;
    color: var(--dark);
    padding: 0.6rem 1rem;
    border: none;
    font-weight: 500;
    text-decoration: none;
}

.btn-text:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.btn-full {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.4rem;
}

/* Enhanced Hero Section */
.hero {
    padding: 7rem 0 4rem;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--dark);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 400;
}

/* Enhanced Flip Container */
.flip-container {
    perspective: 1000px;
    width: 380px;
    height: 480px;
    position: relative;
    transition: var(--transition);
}

.flip-container.sticky-active {
    position: fixed;
    top: 70px;
    right: calc((100% - 1200px) / 2 + 20px);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.back {
    transform: rotateY(180deg);
}

/* Payment Widget */
.payment-widget {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.widget-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.widget-header h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.widget-header p {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 400;
}

.payment-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.input-with-flag {
    position: relative;
}

.input-with-flag .flag {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-weight: 500;
    z-index: 1;
}

.input-with-flag input {
    padding-left: 3.5rem;
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 400;
}

.widget-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray);
}

.feature i {
    color: var(--primary);
}

/* Trust Badges */
.trust-badges {
    background: var(--light);
    padding: 2.5rem 0;
    text-align: center;
}

.trust-badges p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    background: white;
    padding: 0.9rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

/* Enhanced Features */
.features {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.2;
}

.section-header p {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--light);
    padding: 2rem 1.75rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
    font-weight: 400;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-outline {
    background: transparent;
    border: 1.5px solid white;
    color: white;
}

.cta-actions .btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-1px);
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 3.5rem 0 1.75rem;
}

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

.footer-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    color: white;
}

.footer-section a {
    display: block;
    color: var(--gray-light);
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    border-top: 1px solid var(--dark-2);
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.85rem;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    transform: translateX(-100%);
    transition: var(--transition);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.35rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.4rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.75rem;
    flex: 1;
}

.mobile-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.mobile-nav a:hover {
    color: var(--primary);
    padding-left: 0.4rem;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--gray-light);
}

/* Notifications */
.notification {
    position: fixed;
    top: 90px;
    right: 1.5rem;
    background: white;
    padding: 0.9rem 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transform: translateX(400px);
    transition: var(--transition);
    z-index: 3000;
    border-left: 4px solid transparent;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: var(--success);
}

.notification-error {
    border-left-color: var(--danger);
}

.notification i {
    font-size: 1.1rem;
}

.notification-success i {
    color: var(--success);
}

.notification-error i {
    color: var(--danger);
}

/* Alert Messages */
.alert {
    padding: 0.9rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-info {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.2);
    color: var(--primary);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* Response Messages */
.response {
    margin-top: 1.25rem;
    padding: 0.9rem;
    border-radius: var(--border-radius);
    background: var(--light);
    border-left: 4px solid var(--primary);
    font-weight: 400;
    font-size: 0.9rem;
}

.response.success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    color: var(--success);
}

.response.error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger);
    color: var(--danger);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-light);
}

.dashboard-card h3 {
    margin-bottom: 0.9rem;
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 600;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
    font-weight: 400;
    font-size: 0.9rem;
}

th {
    background: var(--light);
    font-weight: 600;
    color: var(--gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover {
    background: var(--light);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.4rem;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Auth Forms */
.auth-form {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.auth-form .widget-header {
    position: relative;
    text-align: center;
    margin-bottom: 1.25rem;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: var(--transition);
}

.back-button:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.auth-form .form-group {
    margin-bottom: 1.1rem;
}

.auth-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.auth-form .checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.auth-form .checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.auth-form .checkbox span {
    font-size: 0.85rem;
    color: var(--gray);
}

.auth-form .form-options a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.auth-form .form-options a:hover {
    text-decoration: underline;
}

.auth-switch {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-light);
    text-align: center;
}

.auth-switch p {
    margin: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Form Validation Styles */
.form-group input:invalid {
    border-color: var(--danger);
}

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

.form-group small {
    display: block;
    margin-top: 0.2rem;
    color: var(--gray);
    font-size: 0.75rem;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success/Error States */
.form-message {
    padding: 0.6rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    background: var(--gray-light);
    border-radius: 2px;
    margin-top: 0.4rem;
    overflow: hidden;
}

.strength-0 { width: 20%; background: var(--danger); }
.strength-1 { width: 40%; background: var(--warning); }
.strength-2 { width: 60%; background: var(--warning); }
.strength-3 { width: 80%; background: var(--success); }
.strength-4 { width: 100%; background: var(--success); }

/* Mobile flip behavior */
@media (max-width: 768px) {
    .flip-container {
        width: 100%;
        height: auto;
        max-width: 400px;
        margin: 0 auto;
        perspective: none;
    }
    
    .flipper {
        height: auto;
        transform: none !important;
    }
    
    .front, .back {
        position: relative;
        height: auto;
        transform: none;
        backface-visibility: visible;
    }
    
    .flip-container.flipped-mobile .front {
        display: none;
    }
    
    .flip-container:not(.flipped-mobile) .back {
        display: none;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .flip-container.sticky-active {
        position: relative;
        top: 0;
        right: 0;
        max-height: none;
        overflow-y: visible;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .payment-widget {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-actions {
        display: none;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .payment-widget {
        padding: 1.5rem;
    }
    
    .widget-features {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .cta-content h2 {
        font-size: 1.9rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.9rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 3.5rem;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .sticky-header {
        padding: 0.6rem 0;
    }
    
    .sticky-header.scrolled {
        padding: 0.4rem 0;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.75rem 1.5rem;
    }
    
    .mobile-menu {
        padding: 1.5rem;
    }
    
    .notification {
        right: 0.9rem;
        left: 0.9rem;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .flip-container {
        min-height: 400px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Animation for form transitions */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-form {
    animation: slideInRight 0.3s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.9rem; }
.mt-4 { margin-top: 1.25rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.9rem; }
.mb-4 { margin-bottom: 1.25rem; }
.mb-5 { margin-bottom: 2.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.9rem; }
.p-4 { padding: 1.25rem; }
.p-5 { padding: 2.5rem; }

.hidden { display: none; }
.visible { display: block; }

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .sticky-header,
    .hero,
    .features,
    .trust-badges,
    .cta-section,
    .main-footer {
        display: none !important;
    }
}
