/* ==========================================================================
   CSS Variables & Resets (DARK THEME)
   ========================================================================== */
:root {
    --bg-main: #0f172a;
    --bg-alt: #1e293b;
    --bg-dark: #020617;
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #8b5cf6;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-bg-alt: rgba(15, 23, 42, 0.7);
    --border-color: rgba(148, 163, 184, 0.1);
    
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
    --border-radius: 16px;
    
    --font-heading: 'Alexandria', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-alt); }
.bg-dark { background-color: var(--bg-dark); color: #fff; }

.text-center { text-align: center; }
.text-white { color: #fff; }
.text-emerald { color: var(--success); }
.text-gray { color: #4B5563; }

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }

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

/* Buttons */
.btn-primary, .btn-outline, .btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, #2563eb, #9333ea);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(to right, #1d4ed8, #7e22ce);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text-main);
}

.btn-text {
    background: transparent;
    color: var(--text-main);
    padding: 12px 16px;
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-ar {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.logo-en {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    outline: none;
}

.mobile-menu {
    display: none;
    background: var(--card-bg);
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    display: block;
    font-weight: 600;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    z-index: 1;
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    transform: translateY(-34px);
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-features .fas {
    color: var(--success);
    margin-left: 5px;
}

.dot {
    color: #4B5563;
}

/* Hero Visual & Mockups */
.hero-visual {
    position: relative;
    height: 680px;
    margin-top: 18px;
}

.mockup-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.dashboard-mockup {
    position: absolute;
    top: 0;
    left: 20px;
    width: 80%;
    height: 380px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mockup-header {
    height: 40px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 15px;
    justify-content: space-between;
}

.mockup-header .dots {
    display: flex;
    gap: 6px;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.mockup-body {
    display: flex;
    height: calc(100% - 40px);
}

.mockup-sidebar {
    width: 60px;
    background: var(--bg-alt);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid var(--border-color);
}

.mockup-sidebar .nav-item {
    width: 100%;
    height: 24px;
    border-radius: 6px;
    background: var(--card-bg-alt);
}
.mockup-sidebar .nav-item.active {
    background: var(--primary);
    opacity: 0.8;
}

.mockup-content {
    flex: 1;
    padding: 20px;
}

.content-header {
    height: 20px;
    width: 40%;
    background: var(--card-bg-alt);
    border-radius: 4px;
    margin-bottom: 20px;
}

.stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    height: 60px;
    background: var(--card-bg-alt);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.content-main {
    height: 120px;
    background: var(--card-bg-alt);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Chat Mockup overlay */
.chat-mockup {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 280px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.chat-header {
    background: var(--card-bg-alt);
    border-bottom: 1px solid var(--border-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header .avatar {
    width: 40px;
    height: 40px;
    background: rgba(69, 210, 165, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-info .name {
    font-weight: 700;
    font-size: 1rem;
}
.chat-info .status {
    font-size: 0.75rem;
    opacity: 0.9;
    color: var(--success);
}

.chat-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
    background: var(--bg-alt);
}

.msg {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.4;
}

.user-msg {
    background: var(--card-bg-alt);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-right-radius: 4px;
}

.bot-msg {
    background: rgba(69, 210, 165, 0.15);
    color: var(--primary);
    align-self: flex-end;
    border-bottom-left-radius: 4px;
}

.bot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    width: 90%;
    align-self: flex-end;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}

.card-img-placeholder {
    height: 80px;
    background: var(--card-bg-alt);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-title { font-weight: 700; margin-bottom: 4px; color: var(--text-main); }
.card-price { color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.card-btn {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 700;
}

.action-notice {
    text-align: center;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 5px auto;
    width: fit-content;
}

.action-notice.success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.action-notice.transfer { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

/* ==========================================================================
   Trust Bar
   ========================================================================== */
.trust-bar {
    padding: 40px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.trust-title {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.badge {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.badge:hover {
    opacity: 1;
}

/* ==========================================================================
   Problem / Solution Section
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 45px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ps-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.ps-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 15px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.problem-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.solution-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.ps-list li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.ps-list li i {
    margin-top: 6px;
    margin-left: 12px;
}

.problem-card .ps-list li i { color: var(--danger); }
.solution-card .ps-list li i { color: var(--success); }

/* ==========================================================================
   Features
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(148, 163, 184, 0.3);
}

.feature-card:hover .feature-icon {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* ==========================================================================
   How It Works
   ========================================================================== */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-main);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(69, 210, 165, 0.2);
}

.step-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin-top: 30px;
    z-index: 1;
}

/* ==========================================================================
   Platform Preview (UI Mockups) - DARK
   ========================================================================== */
.preview-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

/* UI Mockup Details - Dark Version */
.ui-window {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    max-width: 1000px;
    margin: 0 auto;
    color: var(--text-main);
    text-align: right;
    border: 1px solid var(--border-color);
}

.ui-header {
    background: var(--bg-alt);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.ui-header .dots { display: flex; gap: 8px; margin-left: 20px; }
.ui-title { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--text-muted); margin: 0 auto; }

.ui-body {
    display: flex;
    height: 550px;
}

.ui-sidebar {
    width: 220px;
    background: var(--bg-alt);
    border-left: 1px solid var(--border-color);
    padding: 20px 0;
}
.ui-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    padding: 0 20px;
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.ui-sidebar ul li {
    padding: 12px 20px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}
.ui-sidebar ul li:hover, .ui-sidebar ul li.active {
    background: rgba(69, 210, 165, 0.1);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}
.ui-sidebar ul li i { width: 20px; text-align: center; }

.ui-main {
    flex: 1;
    padding: 30px;
    background: var(--card-bg);
    overflow-y: auto;
}

.ui-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.ui-topbar h3 { font-size: 1.4rem; color: var(--text-main); }
.avatar-circle {
    width: 40px; height: 40px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.ui-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.ui-stat-card {
    border: 1px solid var(--border-color);
    background: var(--card-bg-alt);
    padding: 20px;
    border-radius: 12px;
}
.ui-stat-card h4 { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.ui-stat-card .number { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 5px; color: var(--text-main); }
.ui-stat-card .trend.positive { color: var(--success); font-size: 0.85rem; font-weight: 600; }

.ui-panel {
    border: 1px solid var(--border-color);
    background: var(--card-bg-alt);
    border-radius: 12px;
    padding: 20px;
}
.ui-panel h4 { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-main); }
.ui-table { width: 100%; border-collapse: collapse; }
.ui-table th { text-align: right; padding: 12px; border-bottom: 2px solid var(--border-color); color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.ui-table td { padding: 15px 12px; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; color: var(--text-main); }

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-badge.success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-badge.warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-badge.primary { background: rgba(69, 210, 165, 0.1); color: var(--primary); }

/* Chat UI specific - Dark */
.ui-chat-layout { display: flex; height: 100%; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.ui-chat-list { width: 280px; background: var(--bg-alt); border-left: 1px solid var(--border-color); display: flex; flex-direction: column; }
.search-bar { padding: 15px; border-bottom: 1px solid var(--border-color); }
.search-bar input { width: 100%; padding: 10px; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-main); border-radius: 6px; font-family: inherit; }
.chat-list-item { display: flex; gap: 12px; padding: 15px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background 0.3s; }
.chat-list-item:hover { background: var(--card-bg-alt); }
.chat-list-item.active { background: var(--card-bg); border-right: 3px solid var(--primary); }
.chat-list-item h5 { font-size: 0.95rem; margin-bottom: 4px; color: var(--text-main); }
.chat-list-item p { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-chat-view { flex: 1; display: flex; flex-direction: column; background: var(--card-bg); }
.chat-view-header { padding: 15px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: var(--bg-alt); }
.chat-view-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: var(--card-bg); }
.ui-msg { padding: 12px 16px; border-radius: 12px; max-width: 70%; font-size: 0.95rem; }
.ui-msg.bot { background: var(--card-bg-alt); color: var(--text-main); align-self: flex-start; border-top-right-radius: 4px; }
.ui-msg.user { background: var(--primary); color: white; align-self: flex-end; border-top-left-radius: 4px; }
.ui-notice { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin: 10px 0; }
.chat-view-footer { padding: 15px; border-top: 1px solid var(--border-color); background: var(--bg-alt); display: flex; gap: 10px; }
.chat-view-footer input { flex: 1; padding: 12px; background: var(--card-bg); color: var(--text-main); border: 1px solid var(--border-color); border-radius: 20px; font-family: inherit; }
.chat-view-footer button { width: 45px; height: 45px; border-radius: 50%; background: var(--primary); color: white; border: none; cursor: pointer; }

/* Products UI specific - Dark */
.ui-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ui-product-card { background: var(--card-bg-alt); border: 1px solid var(--border-color); border-radius: 12px; padding: 15px; text-align: center; }
.ui-product-card .img-ph { height: 120px; background: var(--card-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-muted); margin-bottom: 15px; }
.ui-product-card h5 { margin-bottom: 5px; color: var(--text-main); }
.ui-product-card p { color: var(--primary); font-weight: 700; margin-bottom: 15px; }

/* ==========================================================================
   Live Chat Example (Telegram Dark Theme Simulation)
   ========================================================================== */
.live-chat-container {
    display: flex;
    justify-content: center;
}
.live-chat-phone {
    width: 350px;
    height: 650px;
    background: #18191D;
    border: 1px solid #333;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
}
.phone-screen {
    background: #0E1621; /* Telegram dark theme bg */
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.phone-header {
    background: #17212B;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 2;
}
.phone-title strong { display: block; font-size: 1.1rem; color: #fff; }
.phone-title span { font-size: 0.8rem; color: #7f91a4; }
.phone-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards;
    color: #fff;
}
.chat-bubble.user { background: #2B5278; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble.bot { background: #182533; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-product-card {
    background: #182533;
    border-radius: 12px;
    padding: 12px;
    width: 90%;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards;
}
.chat-product-card .img { height: 140px; background: #0E1621; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--secondary); margin-bottom: 10px; }
.chat-product-card h4 { margin-bottom: 5px; color: #fff; }
.chat-product-card .price { color: #5EB5F7; font-weight: 700; margin-bottom: 5px; }
.chat-product-card .stock { font-size: 0.8rem; color: var(--success); display: block; margin-bottom: 10px; }
.chat-product-card button { width: 100%; padding: 10px; background: #2B5278; color: white; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; }
.chat-action-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: center;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards;
}

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

/* ==========================================================================
   Sectors
   ========================================================================== */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.sector-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}
.sector-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.sector-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(69, 210, 165, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.sector-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.sector-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}
.toggle-label { font-weight: 600; font-size: 1.1rem; position: relative; }
.badge-discount {
    position: absolute;
    top: -25px;
    right: -30px;
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Switch Styles */
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--card-bg-alt); transition: .4s; border: 1px solid var(--border-color); }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 3px; background-color: #9CA3AF; transition: .4s; }
input:checked + .slider { background-color: var(--primary); border-color: var(--primary); }
input:checked + .slider:before { transform: translateX(26px); background-color: #fff; }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}
.pricing-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s;
}
.pricing-card:hover { transform: translateY(-10px); }
.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(25px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2);
}
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}
.plan-name { font-size: 1.5rem; margin-bottom: 20px; text-align: center; }
.plan-price { display: flex; justify-content: center; align-items: baseline; gap: 5px; margin-bottom: 30px; }
.currency { font-size: 1.2rem; font-weight: 600; }
.amount { font-size: 3.5rem; font-family: var(--font-heading); font-weight: 800; color: var(--primary); line-height: 1; }
.period { color: var(--text-muted); }

.plan-features { margin-bottom: 30px; }
.plan-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; color: var(--text-main); }
.plan-features li i { color: var(--success); font-size: 1.1rem; }

.pricing-note { color: var(--text-muted); font-size: 0.9rem; }

/* Comparison Table */
.comparison-table-wrapper { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); }
.comparison-table th, .comparison-table td { padding: 20px; text-align: center; border-bottom: 1px solid var(--border-color); }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: right; font-weight: 600; color: var(--text-main); }
.comparison-table th { background: var(--bg-alt); font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-main); }
.comparison-table .highlight { background: rgba(69, 210, 165, 0.05); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.accordion-item { background: var(--card-bg); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); overflow: hidden; }
.accordion-header { padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; transition: background 0.3s; color: var(--text-main); }
.accordion-header:hover { background: var(--card-bg-alt); }
.accordion-header i { transition: transform 0.3s; color: var(--primary); }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }
.accordion-body { padding: 0 25px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease; background: var(--card-bg); }
.accordion-item.active .accordion-body { padding: 0 25px 20px; max-height: 300px; }
.accordion-body p { color: var(--text-muted); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { background: linear-gradient(135deg, #2563eb, #9333ea); color: white; position: relative; overflow: hidden; border-top: 1px solid var(--border-color); }
.cta-title { font-size: 3rem; margin-bottom: 20px; }
.cta-text { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; position: relative; z-index: 2; }
.cta-outline { color: white; border-color: rgba(255,255,255,0.3); }
.cta-outline:hover { background: white; color: var(--bg-dark); }
.decor { position: absolute; font-size: 8rem; color: rgba(255,255,255,0.02); z-index: 1; }
.decor-1 { top: -20px; right: 10%; transform: rotate(15deg); }
.decor-2 { bottom: -30px; left: 15%; transform: rotate(-10deg); }
.decor-3 { top: 30%; right: 50%; transform: translateX(50%) scale(2); opacity: 0.01; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: #0f172a; color: white; padding-top: 80px; border-top: 1px solid var(--border-color); }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-logo { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: white; display: block; margin-bottom: 10px; }
.footer-brand p { color: var(--text-muted); }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; margin-left: 10px; transition: background 0.3s; border: 1px solid var(--border-color); }
.social-links a:hover { background: var(--primary); border-color: var(--primary); }
.footer-links h4 { font-size: 1.2rem; margin-bottom: 20px; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: white; padding-right: 5px; }
.footer-bottom { padding: 20px 0; background: #030407; color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container { transform: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-cards { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-10px); }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .hero-features { justify-content: center; }
    .hero-visual { margin-top: 60px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 64px 0; }
    .section-title { font-size: 2rem; margin-bottom: 36px; }
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .ps-grid { grid-template-columns: 1fr; }
    .steps-container { flex-direction: column; align-items: center; gap: 20px; }
    .step-line { width: 2px; height: 40px; margin: 0; }
    
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .footer-links a:hover { padding-right: 0; }
    
    .hero-title { font-size: 2.5rem; }
    .cta-title { font-size: 2.2rem; }
    .cta-buttons { flex-direction: column; }
    
    .ui-sidebar { display: none; }
    .ui-stats { grid-template-columns: 1fr; }
    .ui-products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .trust-badges { gap: 15px; }
    .chat-mockup { right: auto; left: 50%; transform: translateX(-50%); animation: floatMobile 6s ease-in-out infinite; width: 90%; max-width: 280px; }
    @keyframes floatMobile {
        0%, 100% { transform: translate(-50%, 0px); }
        50% { transform: translate(-50%, -8px); }
    }
}

/* =========================================
   Legal Pages Styles
   ========================================= */
.legal-page { background: var(--bg-main); color: var(--text-main); line-height: 1.8; }
.legal-header { padding: 15px 0; background: rgba(8, 13, 23, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.legal-header .container { display: flex; justify-content: space-between; align-items: center; }
.legal-content { max-width: 1000px; margin: 0 auto; padding: 50px 20px; }
.legal-notice { background: rgba(244, 184, 96, 0.1); border: 1px solid rgba(244, 184, 96, 0.3); border-radius: 8px; padding: 10px 15px; margin-bottom: 30px; text-align: center; color: var(--warning); font-size: 0.9rem; }
.legal-toc { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px; margin-bottom: 40px; }
.legal-toc h3 { margin-bottom: 15px; font-size: 1.2rem; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.legal-toc a { color: var(--primary); text-decoration: none; transition: 0.3s; }
.legal-toc a:hover, .legal-toc a:focus { color: var(--primary-hover); text-decoration: underline; outline: none; }
.legal-section { margin-bottom: 40px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px; padding: 35px; position: relative; overflow: hidden; }
.legal-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(69, 210, 165, 0.03) 0%, transparent 50%); pointer-events: none; }
.legal-section h2 { font-size: 1.5rem; margin-bottom: 20px; color: var(--secondary); display: flex; align-items: center; gap: 10px; }
.legal-section h2 span.sec-num { background: rgba(69, 210, 165, 0.15); color: var(--primary); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; border: 1px solid rgba(69, 210, 165, 0.3); }
.legal-section p, .legal-section ul { margin-bottom: 15px; }
.legal-section ul { margin-right: 20px; list-style-type: disc; }
.legal-section li { margin-bottom: 8px; }
.legal-placeholder { display: inline-block; background: rgba(242, 140, 165, 0.1); border: 1px dashed var(--danger); color: var(--danger); padding: 2px 8px; border-radius: 4px; font-weight: 500; font-family: monospace; }
.legal-link { color: var(--primary); text-decoration: none; }
.legal-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .legal-content { padding: 30px 15px; }
    .legal-section { padding: 25px 20px; }
    .legal-toc ul { grid-template-columns: 1fr; }
}

@media print {
    body.legal-page { background: #fff; color: #000; }
    .legal-header, .legal-toc, .legal-notice, .footer-simple { display: none; }
    .legal-section { background: none; border: none; padding: 0; margin-bottom: 30px; page-break-inside: avoid; }
    .legal-section::before { display: none; }
    .legal-section h2 { color: #000; }
    .legal-section h2 span.sec-num { background: none; border: 1px solid #000; color: #000; }
    .legal-placeholder { border-color: #000; color: #000; background: #eee; }
    .legal-link { color: #000; text-decoration: underline; }
}

/* =========================================
   Contact Page Styles
   ========================================= */
.contact-page { background: var(--bg-main); color: var(--text-main); line-height: 1.6; }
.contact-header { padding: 15px 0; background: rgba(8, 13, 23, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.contact-header .container { display: flex; justify-content: space-between; align-items: center; }
.contact-hero { max-width: 800px; margin: 0 auto; padding: 50px 20px 20px; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto 40px; padding: 0 20px; }
.contact-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 30px 20px; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.contact-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(69, 210, 165, 0.05) 0%, transparent 60%); pointer-events: none; z-index: 0; }
.contact-card > * { position: relative; z-index: 1; }
.contact-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-main); }
.contact-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }
.contact-status { display: inline-block; background: rgba(244, 184, 96, 0.1); color: var(--warning); padding: 5px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; border: 1px solid rgba(244, 184, 96, 0.3); }
.contact-form-wrapper { max-width: 700px; margin: 0 auto 60px; padding: 0 20px; }
.contact-form-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px; padding: 40px; position: relative; overflow: hidden; }
.contact-form-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at top right, rgba(69, 210, 165, 0.03) 0%, transparent 50%); pointer-events: none; z-index: 0; }
.contact-form { position: relative; z-index: 1; display: grid; gap: 20px; }
.form-group { display: flex; flex-direction: column; text-align: right; }
.form-group label { margin-bottom: 8px; font-size: 0.95rem; color: var(--text-main); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { background: var(--bg-alt); border: 1px solid var(--border-color); color: var(--text-main); padding: 14px 16px; border-radius: 12px; font-family: inherit; font-size: 1rem; transition: 0.3s; outline: none; width: 100%; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(69, 210, 165, 0.15); }
.form-group textarea { resize: vertical; min-height: 120px; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; text-align: right; margin-top: 10px; }
.checkbox-group input { margin-top: 4px; width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.checkbox-group span { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.checkbox-group a { color: var(--primary); text-decoration: none; }
.checkbox-group a:hover { text-decoration: underline; }
.form-notice { background: rgba(244, 184, 96, 0.1); border: 1px solid rgba(244, 184, 96, 0.3); border-radius: 12px; padding: 15px; color: var(--text-main); font-size: 0.95rem; text-align: center; margin-top: 15px; display: none; }
.contact-btn { background: var(--primary); color: #fff; border: none; padding: 14px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: 0.3s; font-family: inherit; margin-top: 10px; }
.contact-btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(69, 210, 165, 0.3); }
.contact-btn-notice { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: -10px; }
.contact-quick-links { text-align: center; max-width: 600px; margin: 0 auto 60px; padding: 0 20px; }
.contact-quick-links h3 { margin-bottom: 25px; font-size: 1.5rem; }
.quick-links-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.ltr-input { direction: ltr; text-align: left; }

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-card { padding: 30px 20px; }
    .quick-links-btns { flex-direction: column; }
    .quick-links-btns a { width: 100%; text-align: center; }
}

/* =========================================
   Brand Logo Customization
   ========================================= */
.brand-logo-image {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-decoration: none;
    line-height: 0;
}

.brand-logo-image img {
    display: block;
    width: 180px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    background: transparent;
}

/* Keep the desktop navigation readable when the logo and links no longer fit.
   This changes only the navigation; the Hero remains two columns until 1024px. */
@media (max-width: 1120px) and (min-width: 769px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Give the stacked Hero enough room for the full chat card without moving it
   upward behind the fixed navigation. */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 140px;
    }

    .hero-visual {
        height: 680px;
        margin-top: 42px;
    }
}

@media (max-width: 768px) {
    .brand-logo-image img {
        width: 145px;
    }

    .navbar {
        padding: 14px 0;
    }

    .navbar.scrolled {
        padding: 10px 0;
    }

    .hero {
        padding-top: 125px;
    }
}

@media (max-width: 480px) {
    .brand-logo-image img {
        width: 132px;
    }

    .hero-visual {
        height: 680px;
        margin-top: 28px;
    }

    .chat-mockup {
        bottom: 0;
    }
}


/* =========================================
   Scroll To Top Button
   ========================================= */
.scroll-top-btn {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.94);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, box-shadow 0.25s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 34px rgba(139, 92, 246, 0.45);
}

.scroll-top-btn:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.55);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .scroll-top-btn {
        left: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top-btn {
        transition: none;
    }
}
