/* ==========================================================================
   Mathpixo - Global Styles & Design System (Vanilla CSS)
   ========================================================================== */

:root {
    --bg-dark: #07080c;
    --card-bg: rgba(16, 18, 30, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-glow: rgba(99, 102, 241, 0.35);
    
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.25);
    --secondary: #a855f7; /* Purple */
    --accent: #14b8a6; /* Teal */
    --accent-glow: rgba(20, 184, 166, 0.3);
    --error: #ef4444; /* Red */
    --warning: #f59e0b; /* Amber */
    --success: #10b981; /* Emerald */
    
    --text-main: #f3f4f6;
    --text-muted: #8e95a5;
    
    --sidebar-width: 290px;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Animated Glowing Orbs Background */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(0,0,0,0) 70%);
    bottom: -200px;
    right: -200px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, rgba(0,0,0,0) 70%);
    top: 35%;
    left: 40%;
}

/* App Layout Grid (Split screen) */
.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Sidebar (Left)
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(12, 14, 25, 0.85);
    border-right: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    height: 100vh;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-icon {
    font-size: 2.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.logo-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text h2 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text .tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Upload Section */
.sidebar-upload-section {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* File list container */
.sidebar-list-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.list-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* File list items */
.file-list {
    list-style: none;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: var(--transition-smooth);
    position: relative;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.file-item.active {
    background: rgba(99, 102, 241, 0.08);
    border-left-color: var(--primary);
}

.file-item-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-item-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.file-item-thumb i {
    font-size: 1rem;
    color: var(--text-muted);
}

.file-item-info {
    flex-grow: 1;
    min-width: 0; /* Ensures text-overflow ellipsis works */
}

.file-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 0.15rem;
}

.file-item-status {
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-pending { color: var(--text-muted); }
.status-converting { 
    color: var(--warning);
    animation: pulse 1.2s infinite alternate;
}
.status-converted { color: var(--success); }
.status-error { color: var(--error); }

.file-item-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 0.25rem;
    border-radius: 4px;
}

.file-item-delete:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.file-item:hover .file-item-delete {
    opacity: 1;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Empty State View */
.empty-state-view {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    height: 100%;
}

.empty-state-card {
    max-width: 550px;
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 4.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
}

.empty-state-card h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.drag-upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 2rem 1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
}

.drag-upload-box:hover, .drag-upload-box.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.cloud-upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Active Workspace View
   ========================================================================== */
.workspace-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

/* Workspace Topbar */
.workspace-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-type-icon {
    font-size: 2rem;
    color: var(--primary);
}

.file-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-all;
}

.file-size-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.topbar-actions {
    display: flex;
    gap: 0.75rem;
}

/* Workspace Grid Layout */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    flex-grow: 1;
    min-height: 0; /* Critical for inner scrolling */
}

.workspace-left, .workspace-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}

/* Source Preview Box */
.image-preview-container {
    width: 100%;
    flex-grow: 1;
    min-height: 280px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* Workspace Tabs */
.workspace-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
    gap: 0.5rem;
}

.tab-btn {
    font-family: var(--font-sans);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Tab contents */
.tab-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Code Editors */
.code-editor {
    width: 100%;
    flex-grow: 1;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem;
    display: flex;
}

.code-editor textarea {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: transparent;
    border: none;
    resize: none;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    outline: none;
}

.combined-editor textarea {
    min-height: 380px;
}

/* Live Math Preview Area */
.math-render-area {
    width: 100%;
    flex-grow: 1;
    min-height: 250px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: auto;
}

.math-render-area .katex-display {
    margin: 0;
    font-size: 1.45rem;
}

.render-placeholder {
    color: var(--text-muted);
    text-align: center;
}

.render-placeholder i {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

/* Loading Overlay inside Image Preview */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 8, 13, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: fadeIn 0.25s ease-out;
}

.spinner-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.loading-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    animation: spin 1s linear infinite;
}

/* Button general definitions */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-full-width {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-accent:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--accent-glow);
}

.btn-accent:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.btn-danger:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.btn-copy {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

.btn-copy:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

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

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

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

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

.badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
}

/* Responsive details */
@media (max-width: 1024px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100vw;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }
    
    .main-content {
        height: calc(100vh - 200px);
    }
}

/* ==========================================================================
   User Profile & Authentication Modal Styles
   ========================================================================== */

/* User Account Sidebar Section */
.sidebar-user-section {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.user-details {
    flex-grow: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    color: var(--error);
}

/* Auth Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.auth-modal-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--card-border-glow);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.75rem;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-error-msg {
    color: var(--error);
    font-size: 0.8rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
}

/* ==========================================================================
   Light Theme Style Variable Overrides
   ========================================================================== */
.light-theme {
    --bg-dark: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: #cbd5e1;
    --card-border-glow: rgba(99, 102, 241, 0.2);
    
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.12);
    --secondary: #7c3aed;
    --accent: #0d9488;
    --accent-glow: rgba(13, 148, 136, 0.12);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
}

.light-theme .glow-orb {
    opacity: 0.05 !important;
}

.light-theme textarea, 
.light-theme input, 
.light-theme select {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.light-theme .math-render-area {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.light-theme .code-editor textarea {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.light-theme .sidebar {
    background: #ffffff !important;
    border-right: 1px solid #cbd5e1 !important;
}

.light-theme .user-profile-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.light-theme .file-item.active {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: var(--primary) !important;
}

.light-theme .file-item:hover:not(.active) {
    background: rgba(0, 0, 0, 0.02) !important;
}

.light-theme .workspace-topbar {
    border-color: #cbd5e1 !important;
}

.light-theme .tab-btn.active {
    border-bottom-color: var(--primary) !important;
    color: var(--primary) !important;
}

.light-theme .btn-secondary {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

.light-theme .btn-secondary:hover {
    background: #cbd5e1 !important;
}

/* ==========================================================================
   Language Selector & RTL Mirror Styles
   ========================================================================== */
.lang-selector-container {
    position: relative;
    display: inline-block;
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: #0d0f19;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    width: 120px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 250;
    display: flex;
    flex-direction: column;
}

.lang-dropdown.hidden {
    display: none;
}

.lang-opt {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    width: 100%;
    outline: none;
}

.lang-opt:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

.rtl-mode .lang-opt {
    text-align: right;
}

.rtl-mode .lang-dropdown {
    right: auto;
    left: 0;
}

/* RTL Layout Mirrored Properties */
.rtl-mode .logo-icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

.rtl-mode .back-link i, 
.rtl-mode .back-workspace i {
    transform: scaleX(-1);
}

.rtl-mode .sidebar {
    border-right: none !important;
    border-left: 1px solid var(--card-border) !important;
}

.rtl-mode .file-item-delete {
    right: auto !important;
    left: 1rem !important;
}

.rtl-mode .pricing-card .feature-list li i {
    margin-right: 0;
    margin-left: 0.5rem;
}

.rtl-mode .landing-header .nav-links {
    margin-left: 0;
    margin-right: auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.rtl-mode .landing-header .logo-section {
    margin-right: 0;
    margin-left: auto;
}

.rtl-mode .info-item {
    direction: rtl;
}

.rtl-mode .info-icon-container {
    margin-right: 0;
    margin-left: 1rem;
}

.rtl-mode .footer-copy {
    direction: ltr; /* keep copyright format standard */
}
