/* ========================================
   PharmaEdge Landing Page Styles
   Modern, Performance-Optimized CSS
   ======================================== */

/* CSS Variables */
:root {
    /* Identity Colors */
    --accent: #7ACEFF;
    --accent-rgb: 122, 206, 255;
    --brand-primary: #173269;
    --brand-secondary: #1F4699;
    --brand-success: #27AE60;
    --brand-success-dark: #1E8449;
    --brand-warning: #F39C12;
    --brand-danger: #E74C3C;
    --bg-page: #0C1929;
    --bg-surface: #152F4E;
    --text-primary: #EEF2F7;
    --text-secondary: #96A2BB;
    --text-muted: #6B7280;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Skip Navigation Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 10001;
    transition: top 0.3s;
}

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

/* Animated background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 15% 15%, rgba(23, 50, 105, 0.5) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 85%, rgba(122, 206, 255, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(31, 70, 153, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(39, 174, 96, 0.08) 0%, transparent 40%);
    z-index: -1;
    animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.85; transform: scale(1.05); }
}

/* Floating particles effect */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.bg-particles::before { top: 20%; left: 10%; }
.bg-particles::after { bottom: 20%; right: 10%; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.05); }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(12, 25, 41, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(122, 206, 255, 0.1);
}

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

.logo img { height: 40px; }

.logo-text {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Navigation Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 25, 41, 0.98);
    z-index: 9999;
    flex-direction: column;
    padding: 80px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

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

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(122, 206, 255, 0.08);
    border: 1px solid rgba(122, 206, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

.lang-toggle:hover {
    background: rgba(122, 206, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.lang-toggle i { font-size: 1.1em; }
.lang-toggle .lang-text { min-width: 55px; text-align: center; }

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: rgba(122, 206, 255, 0.05);
    color: var(--text-primary);
    border: 2px solid rgba(122, 206, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(122, 206, 255, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 50, 105, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 50, 105, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--brand-success) 0%, var(--brand-success-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.35);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.45);
}

.btn-warning {
    background: linear-gradient(135deg, var(--brand-warning) 0%, #D68910 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.35);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.45);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    text-align: center;
}

.hero-content { max-width: 900px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #BEC6D5 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(var(--accent-rgb), 0.3);
}

.hero p {
    font-size: 1.25em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 1.05em;
}

/* Hero Dashboard Preview */
.hero-preview {
    margin-top: 60px;
    position: relative;
}

.hero-preview img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.hero-preview::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, transparent 50%);
    border-radius: 20px;
    z-index: -1;
}

/* ========================================
   Section Styles
   ======================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.4em;
    margin-bottom: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.15em;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: 100px 40px;
    background: linear-gradient(180deg, rgba(21, 47, 78, 0.3) 0%, rgba(21, 47, 78, 0.5) 100%);
    border-top: 1px solid rgba(var(--accent-rgb), 0.08);
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2em;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 30px rgba(23, 50, 105, 0.4);
    border: 3px solid var(--bg-page);
}

.step h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

/* ========================================
   Login Section
   ======================================== */
.login-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, rgba(21, 47, 78, 0.3) 0%, rgba(21, 47, 78, 0.6) 100%);
    border-top: 1px solid rgba(var(--accent-rgb), 0.08);
}

.login-container { max-width: 1200px; margin: 0 auto; }

.login-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.login-card {
    background: rgba(21, 47, 78, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.login-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: 0 25px 50px rgba(var(--accent-rgb), 0.15), 0 0 0 1px rgba(var(--accent-rgb), 0.1);
}

.login-card-header {
    padding: 35px;
    text-align: center;
}

.login-card-header.pharmacy,
.login-card-header.admin {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
}

.login-card-header i {
    font-size: 3.5em;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.login-card-header h3 {
    font-size: 1.5em;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-card-header p { opacity: 0.9; font-size: 0.95em; }

.login-card-body { padding: 35px; }

.login-card-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-card-footer a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9em;
}

.login-card-footer a:hover { text-decoration: underline; }

/* ========================================
   Forms
   ======================================== */
.tenant-form .form-group { margin-bottom: 20px; }

.tenant-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

.tenant-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 1em;
    transition: all 0.3s;
}

.tenant-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.tenant-form input::placeholder { color: var(--text-secondary); }

.tenant-form .btn {
    width: 100%;
    padding: 14px;
    justify-content: center;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    font-size: 1.1em;
}

.password-toggle:hover { color: var(--accent); }

/* ========================================
   Features Section
   ======================================== */
.features { padding: 100px 40px; }

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(21, 47, 78, 0.6);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.feature-card:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15) 0%, rgba(23, 50, 105, 0.3) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    margin-bottom: 20px;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.feature-card h3 {
    font-size: 1.15em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 100px 40px;
    background: linear-gradient(180deg, rgba(21, 47, 78, 0.4) 0%, rgba(21, 47, 78, 0.6) 100%);
    border-top: 1px solid rgba(var(--accent-rgb), 0.08);
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    font-weight: 600;
}

.testimonial-info h4 {
    font-size: 1.1em;
    margin-bottom: 4px;
}

.testimonial-info p {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.testimonial-stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3em;
    color: var(--accent);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 100px 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.05em;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.faq-question i {
    color: var(--accent);
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Plans Section
   ======================================== */
.plans-section {
    padding: 100px 40px;
    background: rgba(21, 47, 78, 0.5);
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
}

.plans-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background: var(--bg-surface);
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.plan-card.popular {
    border-color: var(--brand-success);
    box-shadow: 0 0 30px rgba(39, 174, 96, 0.2);
}

.plan-card .popular-badge,
.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-success);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

.plan-card-header {
    padding: 40px 30px 20px;
    text-align: center;
}

.plan-card-header h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 700;
}

.plan-card-header .plan-desc {
    color: var(--text-secondary);
    font-size: 1em;
}

.plan-card-body { padding: 20px 30px 30px; }

.plan-card .feature-list,
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.plan-card .feature-list li,
.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #BEC6D5;
    font-size: 1em;
}

.plan-card .feature-list li:last-child,
.feature-list li:last-child { border-bottom: none; }

.plan-card .feature-list li i,
.feature-list li i { font-size: 1.1em; }

.plan-card .feature-list li i.bi-check-circle-fill { color: var(--brand-success); }
.plan-card .feature-list li i.bi-x-circle-fill { color: var(--text-muted); }
.plan-card .feature-list li.disabled { color: var(--text-muted); }

.plan-card .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ========================================
   Trust Badges Section
   ======================================== */
.trust-badges {
    padding: 60px 40px;
    background: rgba(21, 47, 78, 0.3);
    border-top: 1px solid rgba(var(--accent-rgb), 0.08);
}

.trust-badges-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.trust-badge i {
    font-size: 2em;
    color: var(--accent);
}

.trust-badge span {
    font-size: 0.95em;
    font-weight: 500;
}

/* ========================================
   Registration Section
   ======================================== */
.register-section { padding: 100px 40px; }

.register-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-surface);
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    overflow: hidden;
}

.register-header {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
}

.register-header i {
    font-size: 3em;
    margin-bottom: 16px;
    display: block;
}

.register-header h3 { font-size: 1.6em; margin-bottom: 8px; }
.register-header p { opacity: 0.9; }

.register-body { padding: 40px; }

.register-form .form-group { margin-bottom: 24px; }

.register-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.register-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

.register-form label .required { color: var(--brand-danger); }

.register-form input,
.register-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 1em;
    transition: all 0.3s;
}

.register-form input:focus,
.register-form select:focus {
    outline: none;
    border-color: var(--brand-success);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.register-form input::placeholder { color: var(--text-secondary); }
.register-form select option { background: var(--bg-page); }

.register-form .btn {
    width: 100%;
    padding: 16px;
    justify-content: center;
    font-size: 1.05em;
}

.register-footer {
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 1px solid rgba(var(--accent-rgb), 0.08);
}

.register-footer p { color: var(--text-secondary); font-size: 0.9em; }
.register-footer a { color: var(--accent); text-decoration: none; }

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 80px 40px 40px;
    background: rgba(12, 25, 41, 0.95);
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--bg-page);
}

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

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

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

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p { color: var(--text-secondary); font-size: 0.9em; }

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.9em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: rgba(12, 25, 41, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(var(--accent-rgb), 0.2);
    z-index: 998;
}

.mobile-sticky-cta .btn {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Flash Messages
   ======================================== */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.flash-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.flash-message.success { background: rgba(39, 174, 96, 0.95); color: white; }
.flash-message.danger, .flash-message.error { background: rgba(220, 53, 69, 0.95); color: white; }
.flash-message.warning { background: rgba(255, 193, 7, 0.95); color: #333; }
.flash-message.info { background: rgba(23, 50, 105, 0.95); color: white; }

.flash-message .close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2em;
    cursor: pointer;
    opacity: 0.7;
}

.flash-message .close-btn:hover { opacity: 1; }

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

/* Form Error Message */
.form-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b7a;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
    font-size: 0.9em;
}

.form-error.show { display: flex; align-items: center; gap: 10px; }
.form-error i { font-size: 1.2em; }

/* Loading state for button */
.btn.loading { pointer-events: none; opacity: 0.7; }
.btn.loading .btn-text { display: none; }
.btn.loading .btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.btn .btn-loading { display: none; }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Modal Styles
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 30px;
    text-align: center;
    color: white;
}

.modal-header.success { background: linear-gradient(135deg, #27AE60, #1E8449); }
.modal-header.error { background: linear-gradient(135deg, #E74C3C, #C0392B); }

.modal-header i { font-size: 3em; margin-bottom: 15px; }
.modal-header h3 { margin: 0 0 5px 0; font-size: 1.5em; }
.modal-header p { margin: 0; opacity: 0.9; }

.modal-body { padding: 30px; text-align: center; color: #333; }

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ========================================
   RTL Support
   ======================================== */
html[dir="rtl"] { direction: rtl; }

html[dir="rtl"] body {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    text-align: right;
}

html[dir="rtl"] .navbar,
html[dir="rtl"] .logo,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .nav-buttons,
html[dir="rtl"] .btn,
html[dir="rtl"] .hero-badge,
html[dir="rtl"] .hero-buttons,
html[dir="rtl"] .pricing-toggle,
html[dir="rtl"] .feature-list li { flex-direction: row-reverse; }

html[dir="rtl"] .tenant-form label,
html[dir="rtl"] .tenant-form input,
html[dir="rtl"] .register-form label,
html[dir="rtl"] .register-form input,
html[dir="rtl"] .register-form select,
html[dir="rtl"] .feature-card,
html[dir="rtl"] .feature-list li { text-align: right; }

html[dir="rtl"] .faq-question { flex-direction: row-reverse; text-align: right; }

html[dir="rtl"] .whatsapp-float { right: auto; left: 30px; }
html[dir="rtl"] .whatsapp-tooltip { right: auto; left: 70px; }

html[dir="rtl"] .flash-messages { right: auto; left: 20px; }

html[dir="rtl"] .testimonial-text { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .testimonial-text::before { left: auto; right: 0; }

html[dir="rtl"] .password-wrapper input { padding-right: 16px; padding-left: 45px; }
html[dir="rtl"] .password-toggle { right: auto; left: 12px; }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .steps-container::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    
    .nav-links { display: none; }
    
    .mobile-menu-toggle { display: block; }
    
    .mobile-nav { display: flex; }
    
    .mobile-sticky-cta { display: block; }
    
    .lang-toggle .lang-text { display: none; }
    .lang-toggle { padding: 8px 10px; }
    
    /* Hide nav buttons (Login, Get Started) on mobile - they're in mobile menu */
    .nav-buttons > .btn { display: none; }
    
    .hero { padding: 100px 20px 60px; }
    .hero h1 { font-size: 2.2em; }
    .hero p { font-size: 1em; }
    
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    
    .login-cards { grid-template-columns: 1fr; }
    
    .features,
    .testimonials,
    .faq-section,
    .plans-section,
    .register-section,
    .how-it-works { padding: 60px 20px; }
    
    .register-form .form-row { grid-template-columns: 1fr; }
    
    .plans-cards,
    .testimonials-grid { grid-template-columns: 1fr; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float { bottom: 90px; }
    
    html[dir="rtl"] .whatsapp-float { bottom: 90px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8em; }
    
    .section-title h2 { font-size: 1.8em; }
    
    .feature-card,
    .testimonial-card,
    .faq-item { padding: 20px; }
    
    .plan-card-header,
    .plan-card-body { padding: 25px 20px; }
}

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

.hero-content { animation: fadeInUp 0.8s ease; }

.login-card,
.feature-card,
.testimonial-card,
.faq-item,
.plan-card { animation: fadeInUp 0.5s ease; }

.login-card:nth-child(2) { animation-delay: 0.1s; }

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.feature-card:nth-child(5) { animation-delay: 0.4s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(21, 47, 78, 0.98);
    padding: 20px 40px;
    z-index: 9998;
    border-top: 1px solid rgba(var(--accent-rgb), 0.2);
    display: none;
    animation: slideUp 0.3s ease;
}

.cookie-consent.show { display: block; }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.cookie-text a { color: var(--accent); }

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.cookie-btn.accept {
    background: var(--brand-success);
    color: white;
}

.cookie-btn.decline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .cookie-consent { padding: 20px; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
}
