/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563eb;
    --light-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --soft-blue: #dbeafe;
    --pale-blue: #eff6ff;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --gradient-primary: linear-gradient(135deg, var(--pale-blue) 0%, var(--white) 100%);
    --gradient-hero: linear-gradient(135deg, var(--soft-blue) 0%, var(--white) 50%, var(--pale-blue) 100%);
    --gradient-card: linear-gradient(145deg, var(--white) 0%, var(--pale-blue) 100%);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-blue: #60a5fa;
    --light-blue: #93c5fd;
    --accent-blue: #3b82f6;
    --soft-blue: #1e3a8a;
    --pale-blue: #1e293b;
    --white: #0f172a;
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-400: #64748b;
    --gray-600: #cbd5e1;
    --gray-800: #f1f5f9;
    --gray-900: #ffffff;
    
    --gradient-primary: linear-gradient(135deg, var(--pale-blue) 0%, var(--white) 100%);
    --gradient-hero: linear-gradient(135deg, var(--soft-blue) 0%, var(--white) 50%, var(--pale-blue) 100%);
    --gradient-card: linear-gradient(145deg, var(--gray-100) 0%, var(--pale-blue) 100%);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    z-index: 1000;
    transition: var(--transition);
    width: 100%;
    max-width: 100vw;
    /* Allow mobile menu to extend beyond nav on small screens */
    overflow: visible;
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--gray-200);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.98);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.98);
}

[data-theme="dark"] .nav-logo {
    color: var(--primary-blue);
}

[data-theme="dark"] .nav-link {
    color: var(--gray-600);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-blue);
}

[data-theme="dark"] .language-switcher {
    background: var(--gray-200);
}

[data-theme="dark"] .lang-btn {
    color: var(--gray-600);
}

[data-theme="dark"] .lang-btn.active {
    background: var(--white);
    color: var(--primary-blue);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Optimize container for Russian text */
[lang="ru"] .nav-container {
    max-width: 1300px;
    padding: 0 15px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-logo:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

/* Optimize for longer Russian text */
[lang="ru"] .nav-menu {
    gap: 20px;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

/* Slightly smaller font for Russian to fit better */
[lang="ru"] .nav-link {
    font-size: 14px;
    font-weight: 400;
}

.nav-link:hover {
    color: var(--primary-blue);
}

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

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

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

/* Tighter spacing for Russian layout */
[lang="ru"] .nav-actions {
    gap: 12px;
}

.product-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.product-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--gray-700);
    font-weight: 600;
    transition: var(--transition);
}

.product-toggle i {
    font-size: 12px;
    color: var(--gray-500);
}

.product-toggle:hover {
    border-color: var(--accent-blue);
    color: var(--primary-blue);
}

.product-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
}

.product-current {
    font-weight: 600;
    color: var(--gray-800);
}

.product-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    min-width: 220px;
    display: none;
    z-index: 1200;
}

.product-dropdown.open {
    display: block;
}

.product-option {
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    text-align: left;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.product-option:hover {
    background: var(--gray-50);
    color: var(--primary-blue);
}

/* Additional responsive optimizations for Russian text */
@media (max-width: 1200px) {
    [lang="ru"] .nav-menu {
        gap: 16px;
    }
    
    [lang="ru"] .nav-link {
        font-size: 13px;
    }
    
    [lang="ru"] .nav-container {
        padding: 0 10px;
    }
}

@media (max-width: 1100px) {
    [lang="ru"] .nav-menu {
        gap: 12px;
    }
    
    [lang="ru"] .nav-actions {
        gap: 8px;
    }
}

.language-switcher {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 2px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.theme-switcher {
    display: flex;
    align-items: center;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.theme-btn:hover {
    background: var(--gray-200);
    color: var(--primary-blue);
    transform: scale(1.05);
}

[data-theme="dark"] .theme-btn {
    background: var(--gray-200);
    color: var(--gray-600);
}

[data-theme="dark"] .theme-btn:hover {
    background: var(--gray-400);
    color: var(--primary-blue);
}

.cta-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* Optimize CTA button for Russian text */
[lang="ru"] .cta-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
}

.cta-btn:hover {
    background: var(--light-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-lang-switcher {
    display: none;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gray-600);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

[data-theme="dark"] .mobile-menu-toggle span {
    background: var(--gray-800);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    padding: 100px 0 80px;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23dbeafe" fill-opacity="0.4"><circle cx="30" cy="30" r="1.5"/></g></g></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero .about-features {
    margin: 24px 0;
}

.hero .features-heading {
    color: var(--gray-800);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.hero .features-list li {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.hero .about-cta {
    color: var(--gray-700);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 16px 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.primary-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-btn {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 14px 32px;
    border-radius: var(--border-radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.3s both;
    gap: 16px;
}

.hero-phone-wrapper {
    display: block;
}

.hero-static-wrapper {
    display: none;
    width: 100%;
    max-width: 360px;
}

.hero-static-frame {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    height: 560px;
}

.hero-static-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-static-placeholder {
    text-align: center;
    color: var(--gray-500);
    font-weight: 600;
}

/* Product Overview */

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--gray-900);
    border-radius: 36px;
    padding: 8px;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.phone-disclaimer {
    text-align: center;
    margin-top: 15px;
}

.phone-disclaimer span {
    font-size: 12px;
    color: var(--gray-500);
    font-style: italic;
    opacity: 0.8;
}

[data-theme="dark"] .phone-disclaimer span {
    color: var(--gray-400);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

#hero-phone-static {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
    display: none;
    z-index: 2;
}

.app-interface {
    padding: 16px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.interface-header {
    height: 50px;
    background: var(--primary-blue);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.header-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.header-menu {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.interface-screen {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.interface-screen.active {
    opacity: 1;
    transform: translateX(0);
}

.screen-title {
    color: var(--gray-800);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.interface-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interface-card {
    height: 60px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-100);
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    animation: slideInCard 0.6s ease-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.interface-card.card-style {
    height: 70px;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
    text-align: center;
}

.interface-card:nth-child(1) {
    animation-delay: 0.2s;
}

.interface-card:nth-child(2) {
    animation-delay: 0.4s;
}

.interface-card:nth-child(3) {
    animation-delay: 0.6s;
}

.card-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    flex-shrink: 0;
}

.card-avatar-center {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    margin: 0 auto 6px auto;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.card-time {
    font-size: 0.7rem;
    color: var(--gray-500);
}

.table-container {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-100);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table-header {
    background: var(--gray-50);
    display: flex;
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.table-header .table-cell {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
}

.table-body {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: flex;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.3s ease;
    animation: slideInRow 0.6s ease-out;
}

.table-row:nth-child(1) { animation-delay: 0.2s; }
.table-row:nth-child(2) { animation-delay: 0.4s; }
.table-row:nth-child(3) { animation-delay: 0.6s; }
.table-row:nth-child(4) { animation-delay: 0.8s; }

.table-row:last-child {
    border-bottom: none;
}

.table-row.growing {
    background: rgba(16, 185, 129, 0.1);
    animation: growingRow 1s ease-in-out infinite alternate;
}

.table-cell {
    flex: 1;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.table-cell:first-child {
    font-weight: 500;
}

.table-cell.amount {
    text-align: right;
    font-weight: 600;
    color: var(--primary-blue);
}

.finance-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.year-selector {
    margin-bottom: 8px;
}

.year-dropdown {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.year-nav {
    background: rgba(96, 165, 250, 0.8);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.year-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
}

.year-display {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.finance-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card {
    background: var(--white);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-100);
}

.stat-card.revenue {
    background: var(--white);
}

.stat-icon {
    font-size: 1rem;
    margin-bottom: 4px;
}

.stat-icon.revenue-icon {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: bold;
}

.stat-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--gray-600);
    font-weight: 500;
}

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

@keyframes slideInRow {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes growingRow {
    from {
        background: rgba(16, 185, 129, 0.1);
    }
    to {
        background: rgba(16, 185, 129, 0.2);
    }
}

/* Features Section */
.features {
    padding: 40px 0 40px;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.features-categories {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.feature-category {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.category-header {
    background: rgba(37, 99, 235, 0.5);
    color: var(--white);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

[data-theme="dark"] .category-header {
    background: rgba(96, 165, 250, 0.3);
    color: var(--gray-800);
}

.category-icon {
    font-size: 2rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}

.category-features {
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-item {
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-100);
    background: var(--gradient-card);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 8px 0;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* News Section */
.news {
    padding: 80px 0 140px;
    background: var(--gradient-primary);
}

.news-carousel-container {
    position: relative;
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    height: 400px;
    padding-right: 100px;
}

.news-carousel {
    position: relative;
    height: 100%;
    perspective: 1200px;
    perspective-origin: center center;
}

.news-grid {
    position: relative;
    height: 100%;
    transition: all 0.4s ease;
}

.news-card {
    position: absolute;
    top: 0;
    left: 50%;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    height: 350px;
    transform-style: preserve-3d;
    opacity: 0;
    animation: fadeInInitial 0.8s ease forwards;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0px);
    }
}

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

@keyframes fadeInTo95 {
    from { opacity: 0; }
    to { opacity: 0.95; }
}

@keyframes fadeInTo90 {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

@keyframes fadeInTo85 {
    from { opacity: 0; }
    to { opacity: 0.85; }
}

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

.news-card-content {
    padding: 0;
}

.news-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.news-card-main {
    display: flex;
    gap: 20px;
    flex: 1;
    align-items: flex-start;
}

.news-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-right {
    flex: 0 0 120px;
    display: flex;
    align-items: flex-start;
}

.news-card-header {
    background: rgba(37, 99, 235, 0.5);
    color: var(--white);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

[data-theme="dark"] .news-card-header {
    background: rgba(96, 165, 250, 0.3);
}

.news-card-body {
    flex: 1;
    padding: 24px;
    background: var(--gradient-card);
}

.news-date-badge {
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    height: fit-content;
    flex-shrink: 0;
}

.news-image {
    width: 100%;
    height: 100%;
    min-height: 120px;
    cursor: pointer;
    transition: var(--transition);
}

.news-image:hover {
    transform: scale(1.02);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.news-card-header .news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.4;
}

.news-card-text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 16px 0;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) transparent;
}

.news-card-text::-webkit-scrollbar {
    width: 6px;
}

.news-card-text::-webkit-scrollbar-track {
    background: transparent;
}

.news-card-text::-webkit-scrollbar-thumb {
    background-color: var(--gray-400);
    border-radius: 3px;
}

.news-card-text::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray-600);
}

.news-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark theme styles for News */
[data-theme="dark"] .news-card {
    background: var(--white);
    border-color: var(--gray-100);
}

[data-theme="dark"] .news-card-header .news-card-title {
    color: var(--gray-800);
}

[data-theme="dark"] .news-card-text {
    color: var(--gray-600);
}

[data-theme="dark"] .news-tag {
    background: var(--gray-200);
    color: var(--gray-800);
}

[data-theme="dark"] .news-card-text {
    scrollbar-color: var(--gray-400) transparent;
}

[data-theme="dark"] .news-card-text::-webkit-scrollbar-thumb {
    background-color: var(--gray-400);
}

[data-theme="dark"] .news-card-text::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray-600);
}

/* Stacked card positioning */
.news-card.card-0 {
    z-index: 100;
    transform: translateX(-50%) translateY(0px) translateZ(0px);
    opacity: 1;
}

.news-card.card-1 {
    z-index: 99;
    transform: translateX(-35%) translateY(12px) translateZ(-10px) rotateY(-8deg);
    opacity: 0.95;
}

.news-card.card-2 {
    z-index: 98;
    transform: translateX(-20%) translateY(24px) translateZ(-20px) rotateY(-16deg);
    opacity: 0.9;
}

.news-card.card-3 {
    z-index: 97;
    transform: translateX(-5%) translateY(36px) translateZ(-30px) rotateY(-24deg);
    opacity: 0.85;
}

.news-card.card-hidden {
    z-index: 96;
    transform: translateX(10%) translateY(48px) translateZ(-40px) rotateY(-32deg);
    opacity: 0;
    pointer-events: none;
}

/* Responsive News */
@media (max-width: 768px) {
    .nav-container {
        height: 56px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    .nav-logo {
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .logo-image {
        width: 24px;
        height: 24px;
    }
    
    .nav-logo i {
        font-size: 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }

    .product-switcher {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
        order: 3;
    }

    .mobile-product-switcher {
        padding: 12px 20px;
        border-bottom: 1px solid var(--gray-100);
    }

    .mobile-product-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        border-radius: var(--border-radius);
        border: 1px solid var(--gray-200);
        background: var(--gray-100);
        cursor: pointer;
    }

    .mobile-product-dropdown {
        margin-top: 8px;
        border: 1px solid var(--gray-200);
        border-radius: var(--border-radius);
        overflow: hidden;
        display: none;
        background: var(--white);
    }

    .mobile-product-dropdown.open {
        display: block;
    }
    
    .mobile-lang-switcher {
        display: flex;
        background: var(--gray-100);
        border-radius: 6px;
        padding: 4px;
        gap: 2px;
        order: 2;
        flex-shrink: 0;
    }
    
    .mobile-lang-btn {
        background: none;
        border: none;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 500;
        color: var(--gray-600);
        cursor: pointer;
        transition: var(--transition);
        min-width: 24px;
        text-align: center;
    }
    
    .mobile-lang-btn.active {
        background: var(--white);
        color: var(--primary-blue);
        box-shadow: var(--shadow-sm);
    }
    
    [data-theme="dark"] .mobile-lang-switcher {
        background: var(--gray-200);
    }
    
    [data-theme="dark"] .mobile-lang-btn {
        color: var(--gray-600);
    }
    
    [data-theme="dark"] .mobile-lang-btn.active {
        background: var(--white);
        color: var(--primary-blue);
    }
    
    /* Mobile download modal enhancements */
    .modal-content {
        width: 90%;
        max-width: 90%;
        max-height: 80vh;
        overflow-y: auto;
        margin: 20px auto;
    }
    
    .download-buttons {
        gap: 10px;
    }
    
    .store-btn {
        padding: 12px 14px;
        min-height: 48px;
    }
    
    .store-icon {
        width: 32px;
        height: 32px;
    }
    
    .store-subtitle {
        font-size: 0.7rem;
    }
    
    .store-title {
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 66px 0 50px;
        margin-top: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 18px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 24px;
        padding: 0 10px;
    }
    
    .hero .features-list {
        padding: 0 10px;
        text-align: left;
        margin: 20px auto;
        max-width: 400px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 24px;
    }
    
    .primary-btn,
    .secondary-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        margin: 20px auto 0;
    }
    
    .phone-disclaimer {
        margin-top: 10px;
        margin-bottom: 20px;
    }
    
    .phone-disclaimer span {
        font-size: 11px;
    }
    
    .news {
        padding: 60px 0;
        overflow-x: hidden;
    }
    
    .news-carousel-container {
        height: 640px;
        max-width: 95%;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
    }
    
    .news-grid {
        padding-left: 0;
        margin-left: 0;
    }
    
    .news-card.card-1 {
        transform: translateX(-25%) translateY(8px) translateZ(-10px) rotateY(-5deg);
    }
    
    .news-card.card-2 {
        transform: translateX(-12%) translateY(16px) translateZ(-20px) rotateY(-10deg);
    }
    
    .news-card.card-3 {
        transform: translateX(0%) translateY(24px) translateZ(-30px) rotateY(-15deg);
    }
    
    .news-card {
        max-width: 100%;
        height: 600px;
        margin: 0;
    }
    
    .news-card-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .news-card-body {
        padding: 20px;
    }
    
    .news-card-text {
        max-height: 200px;
    }
    
    .news-card-main {
        flex-direction: column;
        gap: 12px;
    }
    
    .news-card-right {
        flex: 0 0 auto;
        align-self: stretch;
    }
    
    .news-date-badge {
        align-self: flex-start;
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .news-image {
        min-height: 120px;
        border-radius: 8px;
    }
    
    .carousel-nav {
        margin-top: 24px;
        margin-bottom: 40px;
        justify-content: center;
        padding: 0 20px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 32px;
        padding: 0 10px;
    }
    
    .features-categories {
        gap: 32px;
    }
    
    .category-header {
        padding: 20px 24px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .category-features {
        padding: 24px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 16px;
    }
    
    .footer {
        padding: 60px 0 24px;
    }
    
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
        padding: 0;
        margin: 0;
    }
    
    .footer-brand {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 16px;
    }
    
    .footer-description {
        margin-bottom: 24px;
        padding: 0 10px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    
    .footer-column {
        margin: 0;
        padding: 0;
    }
    
    .footer-column h4 {
        margin-bottom: 16px;
        text-align: center;
    }
    
    .footer-column a {
        text-align: center;
        margin-bottom: 12px;
        display: block;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 20px 0 0;
        margin: 20px 0 0;
    }
    
    .container {
        padding: 0 16px;
        margin: 0 auto;
        max-width: 100%;
    }

    .product-overview {
        padding: 40px 0;
    }

    .product-overview-grid {
        grid-template-columns: 1fr;
    }

    .product-overview-text h2 {
        font-size: 1.6rem;
    }

    .hero-static-wrapper {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 52px;
        padding: 0 10px;
    }
    
    .nav-logo {
        font-size: 16px;
    }
    
    .logo-image {
        width: 22px;
        height: 22px;
    }
    
    .nav-logo i {
        font-size: 18px;
    }
    
    .mobile-lang-switcher {
        padding: 3px;
        gap: 1px;
    }
    
    .mobile-lang-btn {
        padding: 3px 6px;
        font-size: 10px;
        min-width: 22px;
    }
    
    .mobile-menu {
        top: 56px;
        left: 10px;
        right: 10px;
    }
    
    .hero {
        padding: 62px 0 40px;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .hero .features-list {
        font-size: 0.9rem;
        max-width: 320px;
    }
    
    .primary-btn,
    .secondary-btn {
        max-width: 250px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .phone-disclaimer {
        margin-top: 8px;
        margin-bottom: 15px;
    }
    
    .phone-disclaimer span {
        font-size: 10px;
    }
    
    .news-carousel-container {
        height: 560px;
        max-width: 98%;
        padding: 0 10px;
    }
    
    .news-card {
        height: 520px;
    }
    
    .news-card-header {
        padding: 12px 16px;
    }
    
    .news-card-body {
        padding: 16px;
    }
    
    .news-card-text {
        max-height: 160px;
    }
    
    .news-image {
        min-height: 100px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    .category-features {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-description {
        font-size: 0.9rem;
        padding: 0 5px;
    }
    
    .footer-links {
        gap: 24px;
    }
    
    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .footer-column a {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .container {
        padding: 0 12px;
    }
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 80px 0 24px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo-image {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: 24px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 8px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    text-align: center;
    color: var(--gray-400);
}

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

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

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

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.mobile-menu.open {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-menu-item {
    display: block;
    padding: 16px 20px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.mobile-menu-item:hover {
    background: var(--gray-50);
    color: var(--primary-blue);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item.download-btn {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.mobile-menu-item.download-btn:hover {
    background: var(--light-blue);
    color: white;
}

.mobile-menu-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
}

.mobile-theme-switcher {
    display: flex;
    align-items: center;
}

.mobile-theme-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--border-radius);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-theme-btn:hover {
    background: var(--gray-200);
    color: var(--primary-blue);
}

.mobile-theme-btn i {
    font-size: 16px;
}

[data-theme="dark"] .mobile-menu {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

[data-theme="dark"] .mobile-menu-item {
    color: var(--gray-800);
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .mobile-menu-item:hover {
    background: var(--gray-200);
    color: var(--primary-blue);
}

[data-theme="dark"] .mobile-menu-actions {
    border-top-color: var(--gray-200);
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .mobile-theme-btn {
    background: var(--gray-200);
    color: var(--gray-800);
}

[data-theme="dark"] .mobile-theme-btn:hover {
    background: var(--gray-100);
    color: var(--primary-blue);
}

/* Download Modal Styles */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

/* Feedback Modal Styles */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    backdrop-filter: blur(5px);
    display: none;
}

.feedback-modal.active {
    display: block;
}

.feedback-modal-content {
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
}

.feedback-modal .modal-header {
    margin-bottom: 20px;
}

.feedback-modal .modal-header h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.feedback-modal .modal-header p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.feedback-form {
    text-align: left;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.form-actions .secondary-btn,
.form-actions .primary-btn,
.feedback-submit-btn {
    min-width: 100px;
    padding: 12px 24px;
    font-size: 0.95rem;
}

.feedback-submit-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.feedback-submit-btn:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Dark theme styles for feedback modal */
[data-theme="dark"] .feedback-modal .modal-content {
    background: var(--white);
    border-color: var(--gray-200);
}

[data-theme="dark"] .form-group label {
    color: var(--gray-800);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--gray-800);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--primary-blue);
    background: var(--white);
}

[data-theme="dark"] .form-actions {
    border-top-color: var(--gray-200);
}

[data-theme="dark"] .feedback-submit-btn {
    background: var(--primary-blue);
    color: var(--white);
}

[data-theme="dark"] .feedback-submit-btn:hover {
    background: var(--light-blue);
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
}

.modal-header {
    margin-bottom: 32px;
}

.modal-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon i {
    color: white;
    font-size: 28px;
}

.modal-content h3 {
    color: var(--gray-900);
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 0;
    color: var(--gray-600);
    line-height: 1.5;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.store-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gray-100);
}

.store-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    border-radius: 7px;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
}

.store-info {
    text-align: left;
    flex: 1;
}

.store-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.store-subtitle {
    font-size: 11px;
    line-height: 1;
    opacity: 0.8;
    margin-bottom: 2px;
    color: var(--gray-600);
}

.store-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
}

.store-title.single-line {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
    color: var(--gray-900);
}

/* Store icons */
.store-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Store buttons - Consistent black for both themes */
.app-store,
.google-play,
.huawei-store,
.ru-store {
    background: #000000 !important;
    color: white !important;
    border-color: #333333 !important;
}

.app-store:hover,
.google-play:hover,
.huawei-store:hover,
.ru-store:hover {
    background: #333333 !important;
}

.app-store .store-subtitle,
.google-play .store-subtitle,
.huawei-store .store-subtitle,
.ru-store .store-subtitle,
.app-store .store-title,
.google-play .store-title,
.huawei-store .store-title,
.ru-store .store-title {
    color: white !important;
}

/* Direct Download - Consistent dark blue for both themes */
.direct-download {
    background: #1e40af !important;
    color: white !important;
    border-color: #1d4ed8 !important;
}

.direct-download:hover {
    background: #1d4ed8 !important;
}

.direct-download .store-subtitle,
.direct-download .store-title {
    color: white !important;
}

.direct-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white;
}

.direct-icon i {
    font-size: 14px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-400);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Dark theme styles for modal */
[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .modal-content {
    background: var(--white);
    border-color: var(--gray-200);
}

[data-theme="dark"] .store-btn {
    background: var(--gray-200) !important;
    border-color: var(--gray-100) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .store-btn:hover {
    background: var(--gray-100) !important;
}

/* Removed dark theme overrides - using consistent colors for both themes */

[data-theme="dark"] .close-modal:hover {
    background: var(--gray-200);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--gray-600);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--gray-50);
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: var(--white);
    color: var(--gray-600);
    box-shadow: var(--shadow-md);
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-blue);
}

.carousel-dot:hover {
    background: var(--primary-blue);
}

/* Responsive modal styles */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px 16px;
        border-radius: 16px;
        margin: 10px;
        max-height: 85vh;
        overflow-y: auto;
        width: 95%;
        max-width: 95%;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .modal-icon i {
        font-size: 20px;
    }
    
    .modal-content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .download-buttons {
        gap: 8px;
    }
    
    .store-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-height: 44px;
    }
    
    .store-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .store-info {
        flex: 1;
        min-width: 0;
    }
    
    .store-subtitle {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .store-title {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-top: 1px;
    }
    
    .platform-status {
        right: 8px;
        top: 8px;
    }
    
    .platform-downloads {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .platform-downloads h4 {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .platform-item {
        padding: 6px 0;
    }
    
    .platform-name {
        font-size: 0.75rem;
    }
    
    .platform-desc {
        font-size: 0.65rem;
    }
    
    .status-badge {
        padding: 2px 6px;
        font-size: 0.6rem;
    }
    
    .close-modal {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
        font-size: 1rem;
    }
    
    /* Feedback modal mobile styles */
    .feedback-modal-content {
        max-width: 95%;
        margin: 20px auto;
        padding: 16px;
        max-height: 90vh;
    }
    
    .feedback-modal .modal-header {
        margin-bottom: 16px;
    }
    
    .feedback-modal .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
        padding-top: 12px;
    }
    
    .form-actions .secondary-btn,
    .form-actions .primary-btn,
    .feedback-submit-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-modal img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 1;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Dark theme styles for carousel and modal */
[data-theme="dark"] .carousel-btn {
    background: var(--white);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

[data-theme="dark"] .carousel-btn:hover {
    background: var(--primary-blue);
    color: white;
}

[data-theme="dark"] .carousel-btn:disabled:hover {
    background: var(--white);
    color: var(--primary-blue);
}

[data-theme="dark"] .image-modal-content {
    background: var(--white);
}

/* Smooth transition animation for card navigation */
.news-card.transitioning {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced transition for moving cards */
.news-card.transitioning.card-0 {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.news-card.transitioning.card-1 {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease 0.1s;
}

.news-card.transitioning.card-2 {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease 0.2s;
}

.news-card.transitioning.card-3 {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease 0.3s;
}

.news-card.transitioning.card-hidden {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
} 