/* Omar WhatsApp - Main Stylesheet
 * CSS Custom Properties are set inline in <head> per page:
 * --primary-color: variant color (e.g., #128C7E)
 * --primary-color-dd, --primary-color-cc, etc. for alpha variants
 * direction is set via dir="" attribute on <html>
 */

/* Base reset with overflow control */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* =====================================================
   LOGO VISUAL TREATMENTS - Multiple Styles
   ===================================================== */

/* Hero Logo with Glow Effect */
.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 30px;
    position: relative;
}

.hero-logo {
    width: 220px;
    height: 220px;
    border-radius: 44px;
    box-shadow:
        0 0 30px var(--primary-color-66),
        0 0 60px var(--primary-color-44),
        0 10px 40px rgba(0, 0, 0, 0.2);
    animation: heroGlow 3s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.hero-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes heroGlow {
    0%, 100% {
        box-shadow:
            0 0 30px var(--primary-color-66),
            0 0 60px var(--primary-color-44),
            0 10px 40px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow:
            0 0 50px var(--primary-color-88),
            0 0 100px var(--primary-color-66),
            0 15px 50px rgba(0, 0, 0, 0.3);
    }
}

/* Logo with Circular Frame */
.logo-circular {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 5px;
    background: white;
    box-shadow: 0 4px 15px var(--primary-color-44);
}

/* Tilted/Rotated Logo */
.logo-tilted {
    transform: rotate(-8deg);
    transition: transform 0.3s ease;
}

.logo-tilted:hover {
    transform: rotate(0deg) scale(1.1);
}

/* Mini Logo for Decorations */
.logo-mini {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    vertical-align: middle;
    margin-inline: 10px;
    opacity: 0.9;
}

/* Logo with Gradient Overlay */
.logo-gradient-overlay {
    position: relative;
    display: inline-block;
}

.logo-gradient-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color-44) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

/* Download Button Logo */
.download-btn-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-inline-end: 12px;
    vertical-align: middle;
    filter: brightness(1.1);
}

/* Warning Box Logo */
.warning-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    float: inline-start;
    margin-inline-end: 15px;
    margin-bottom: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Divider Logo */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    gap: 15px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color-44), transparent);
}

.section-divider .divider-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 10px 40px var(--primary-color-44);
}

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

/* H2 Heading Logo Decorations */
.content h2 {
    font-size: clamp(17px, 2.5vw, 20px);
    color: var(--primary-color);
    margin: 25px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color-22);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.h2-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    opacity: 0.85;
    flex-shrink: 0;
}

/* Tips Section Logo Header */
.tips-logo-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tips-header-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    box-shadow: 0 6px 20px var(--primary-color-44);
}

/* Comment Avatar Logo */
.comment-avatar-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-color-44);
    object-fit: cover;
}

/* Download Counter Logo */
.counter-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 12px;
    filter: drop-shadow(0 6px 12px var(--primary-color-44));
}

/* Breadcrumb Logo */
.breadcrumb-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    vertical-align: middle;
    margin-inline-end: 10px;
    opacity: 0.95;
}

/* Footer Logo Enhanced */
.footer-logo {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* Telegram CTA Logo */
.telegram-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
}

/* App Card Logo Shine Effect */
.app-icon-shine {
    position: relative;
    overflow: hidden;
}

.app-icon-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    20%, 100% { transform: rotate(45deg) translateX(100%); }
}

/* Features Grid Logo Background */
.features-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
    position: relative;
}

/* Variants Grid Logo Accent */
.variant-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #eee;
    transition: all 0.3s;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}


/* Pulsing Logo Animation for CTA */
.logo-pulse {
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--primary-color-44));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px var(--primary-color-66));
    }
}

/* Spinning Logo for Loading States */
.logo-spin {
    animation: logoSpin 3s linear infinite;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bouncing Logo */
.logo-bounce {
    animation: logoBounce 1s ease infinite;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    text-decoration: underline;
}

/* Header - mobile optimized */
.header {
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--primary-color-dd) 100%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo img {
    border-radius: 8px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
}

.nav a {
    color: white;
    padding: 8px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
    white-space: nowrap;
}

/* Main container - responsive grid */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

/* Content area */
.content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
}

.content h1 {
    font-size: clamp(19px, 3vw, 24px);
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.content h3 {
    font-size: 17px;
    color: #444;
    margin: 18px 0 10px;
}

.content p {
    margin-bottom: 15px;
    text-align: start;
}

.content ul,
.content ol {
    margin: 15px 0;
    margin-inline-start: 25px;
}

.content li {
    margin-bottom: 10px;
}

.content strong {
    color: var(--primary-color);
}

/* Article meta - responsive */
.article-meta {
    display: flex;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.article-meta span {
    white-space: nowrap;
}

/* Sidebar */
.sidebar {
    height: fit-content;
    min-width: 0;
}

.app-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.app-version {
    color: #666;
    margin-bottom: 12px;
    font-size: 14px;
}

.ratings-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.rating-item {
    text-align: center;
    min-width: 80px;
}

.rating-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.rating-stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-value {
    font-size: 13px;
    font-weight: bold;
    margin-top: 2px;
}

.download-counter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px;
    border-radius: 10px;
    margin: 12px 0;
}

.counter-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.counter-label {
    font-size: 11px;
    color: #666;
}

/* App info table - prevent overflow */
.app-info-table {
    width: 100%;
    margin: 12px 0;
    font-size: 13px;
    table-layout: fixed;
}

.app-info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.app-info-table td {
    padding: 8px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-info-table td:first-child {
    color: #666;
    width: 45%;
}

/* Download button - touch friendly */
.download-btn {
    display: block;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--primary-color-dd) 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    box-shadow: 0 5px 20px var(--primary-color-66);
    transition: all 0.3s;
    min-height: 54px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-color-88);
    text-decoration: none;
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn small {
    display: block;
    font-size: 11px;
    font-weight: normal;
    opacity: 0.9;
    margin-top: 4px;
}

/* Hero Download CTA - Above the Fold */
.hero-download-cta {
    margin: 20px 0;
    text-align: center;
}

.download-btn-hero {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    font-size: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--primary-color-cc) 50%,
            var(--primary-color) 100%);
    background-size: 200% 200%;
    animation: heroButtonGlow 3s ease-in-out infinite;
    box-shadow:
        0 8px 30px var(--primary-color-66),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes heroButtonGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.download-btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 40px var(--primary-color-88),
        0 6px 20px rgba(0, 0, 0, 0.25);
}

.download-btn-hero small {
    font-size: 12px;
    margin-top: 6px;
}

/* Read Full Guide Link (variant pages) */
.read-full-guide {
    margin: 24px 0;
    text-align: center;
}

.read-full-guide a {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color-22) 0%, var(--primary-color-44) 100%);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color-44);
}

.read-full-guide a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-color-44);
    text-decoration: none;
}

[dir="rtl"] .read-full-guide a {
    direction: rtl;
}

/* Telegram CTA */
.telegram-cta {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
}

.telegram-cta a {
    color: white;
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    min-height: 44px;
}

/* Features grid - responsive */
.features-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.feature-icon-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 15px 8px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.feature-icon-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    display: block;
    font-size: 26px;
    margin-bottom: 8px;
}

.feature-title {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
}

/* Variants grid */
.variants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.variant-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #eee;
    transition: all 0.3s;
    min-height: 70px;
}

.variant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.variant-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.variant-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.variant-info {
    flex: 1;
    min-width: 0;
}

.variant-name {
    font-weight: bold;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.variant-pkg {
    font-size: 11px;
    color: #666;
}

.variant-download {
    padding: 8px 12px;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    flex-shrink: 0;
}

/* Comments section */
.comments-section {
    margin: 25px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.comment-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-name {
    font-weight: bold;
    font-size: 14px;
}

.comment-rating {
    color: #ffc107;
    font-size: 12px;
}

.comment-date {
    color: #999;
    font-size: 11px;
    margin-inline-start: auto;
}

.comment-text {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

/* Tips of the Day */
.tips-section {
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    border: 1px solid #bae6fd;
}

.tips-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.tips-grid {
    display: grid;
    gap: 12px;
}

.tip-card {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.tip-card:hover {
    transform: translateY(-2px);
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-weight: bold;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.tip-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

/* FAQ Accordion */
.faq-accordion {
    margin: 15px 0;
}

.faq-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.faq-q {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.faq-q[role="button"]::after {
    content: '▼';
    font-size: 10px;
    opacity: 0.5;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-q[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

[dir="rtl"] .faq-q[role="button"]::after {
    content: '▼';
}

/* Table of Contents */
.toc {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px;
    margin: 15px 0;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
}

.toc-link {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    background: white;
    color: #555;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
    white-space: nowrap;
}

.toc-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* Micro-CTA */
.micro-cta {
    text-align: center;
    margin: 16px 0;
}

.micro-cta a {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color-44);
    border-radius: 8px;
    transition: all 0.2s;
}

.micro-cta a:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Warning box - uses CSS logical properties for RTL support */
.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-inline-start: 4px solid #ffc107;
    padding: 12px 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 14px;
}

/* Footer */
.footer {
    background: #222;
    color: #999;
    padding: 30px 15px;
    margin-top: 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.footer h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 15px;
}

.footer p {
    font-size: 13px;
    line-height: 1.6;
}

.footer a {
    color: #999;
    display: flex;
    padding: 6px 0;
    font-size: 13px;
    min-height: 44px;
    align-items: center;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid #333;
    font-size: 13px;
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .content {
        padding: 18px;
    }

    .variants-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile breakpoint */
@media (max-width: 600px) {
    .header {
        padding: 10px 0 0;
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .header-inner {
        padding: 0 12px;
        flex-direction: column;
        gap: 0;
    }

    .logo {
        font-size: 18px;
        padding-bottom: 8px;
    }

    .nav {
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: calc(100% + 24px);
        margin-inline: -12px;
        padding: 8px 12px;
        justify-content: flex-start;
        background: rgba(0, 0, 0, 0.1);
        mask-image: linear-gradient(to left, transparent, black 12px, black calc(100% - 12px), transparent);
        -webkit-mask-image: linear-gradient(to left, transparent, black 12px, black calc(100% - 12px), transparent);
    }

    [dir="rtl"] .nav {
        mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        padding: 6px 14px;
        font-size: 12px;
        flex-shrink: 0;
        min-height: 36px;
    }

    .main-container {
        padding: 10px;
        gap: 15px;
    }

    .content {
        padding: 15px;
        border-radius: 8px;
    }

    .content h1 {
        margin-bottom: 12px;
    }

    .content h2 {
        margin: 20px 0 10px;
    }

    .content h3 {
        font-size: 15px;
    }

    .content ul,
    .content ol {
        margin-inline-start: 20px;
    }

    .article-meta {
        font-size: 12px;
        gap: 8px 15px;
    }

    .app-card {
        padding: 15px;
        border-radius: 12px;
        overflow: hidden;
    }

    .app-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
        border-radius: 16px;
    }

    .app-name {
        font-size: 18px;
    }

    .ratings-box {
        gap: 15px;
        padding: 10px 0;
    }

    .app-info-table {
        table-layout: auto;
    }

    .app-info-table td:first-child {
        width: auto;
        white-space: nowrap;
    }

    .download-btn {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
    }

    .features-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .feature-icon-item {
        padding: 12px 6px;
    }

    .feature-icon {
        font-size: 24px;
    }

    .feature-title {
        font-size: 11px;
    }

    .variants-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .variant-card {
        padding: 10px 8px;
    }

    .variant-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 10px;
    }

    .variant-name {
        font-size: 14px;
    }

    .variant-download {
        padding: 8px 12px;
        font-size: 11px;
        min-height: 36px;
        display: flex;
        align-items: center;
    }

    .comments-section {
        padding: 12px;
        margin: 20px 0;
    }

    .comment-header {
        gap: 6px;
    }

    .comment-date {
        margin-inline-start: 0;
        width: 100%;
        order: 3;
    }

    .tips-section {
        padding: 12px;
        margin: 20px 0;
    }

    .tip-card {
        padding: 10px 12px;
    }

    .comment-item {
        padding: 10px;
    }

    .faq-item {
        padding: 12px;
    }

    .faq-item h3 {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .warning-box {
        padding: 12px;
        font-size: 13px;
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    .warning-logo {
        float: none;
        margin: 0;
        flex-shrink: 0;
    }

    [dir="rtl"] .warning-logo {
        float: none;
        margin: 0;
    }

    .footer {
        padding: 25px 12px;
        padding-bottom: calc(25px + env(safe-area-inset-bottom));
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer h3 {
        font-size: 14px;
    }

    .footer a {
        font-size: 12px;
        padding: 5px 0;
        min-height: 44px;
    }

    .telegram-cta {
        padding: 15px;
    }

    .telegram-cta a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .breadcrumb {
        padding: 10px 12px;
    }

    .breadcrumb-inner {
        font-size: 12px;
    }

    .download-btn-hero {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 14px;
        min-height: 54px;
        width: 100%;
    }

    .download-btn-hero small {
        font-size: 11px;
    }

    .section-divider {
        margin: 15px 0;
        gap: 10px;
    }

    .section-divider .divider-logo {
        width: 36px;
        height: 36px;
    }

    .h2-logo {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }

    .logo-mini {
        width: 20px;
        height: 20px;
        margin: 0 6px;
    }

    .hero-logo-container {
        margin: 10px 0 20px;
    }

    .hero-logo {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }

    .read-full-guide a {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .guide-step {
        gap: 12px;
        padding: 12px 0;
    }

    .guide-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .feature-detail-card {
        padding: 12px;
        gap: 12px;
    }

    .feature-detail-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .vh-header {
        padding: 10px 14px;
    }

    .vh-changes {
        padding: 10px 14px;
    }

    .vh-tag {
        min-width: auto;
        font-size: 10px;
        padding: 3px 8px;
    }

    .vh-base {
        margin-inline-start: 0;
        width: 100%;
    }

    .developer-section {
        padding: 14px 16px;
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
    }

    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .logo {
        font-size: 16px;
        gap: 6px;
    }

    .nav a {
        padding: 5px 10px;
        font-size: 11px;
        min-height: 36px;
    }

    .content {
        padding: 10px;
    }

    .features-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .feature-icon {
        font-size: 22px;
    }

    .feature-title {
        font-size: 11px;
    }

    .app-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .app-name {
        font-size: 16px;
    }

    .counter-number {
        font-size: 22px;
    }

    .app-info-table {
        font-size: 12px;
    }

    .variant-card {
        gap: 8px;
        padding: 8px;
    }

    .variant-icon {
        width: 40px;
        height: 40px;
    }

    .hero-logo {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .download-btn-hero {
        padding: 12px 16px;
        font-size: 15px;
    }

    .vh-change-item {
        flex-direction: column;
        gap: 6px;
    }
}

/* =====================================================
   LOGO RESPONSIVE ADJUSTMENTS
   ===================================================== */

/* Tablet adjustments */
@media (max-width: 900px) {
    .hero-logo {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }

    .section-divider {
        margin: 25px 0;
    }

    .divider-logo {
        width: 30px;
        height: 30px;
    }

    .counter-logo {
        width: 45px;
        height: 45px;
    }

    .footer-logo {
        width: 60px;
        height: 60px;
    }
}

/* Mobile adjustments - logo sizes */
@media (max-width: 600px) {
    .warning-logo {
        width: 35px;
        height: 35px;
        border-radius: 8px;
    }

    .download-btn-logo {
        width: 24px;
        height: 24px;
    }

    .breadcrumb-logo {
        width: 18px;
        height: 18px;
    }

    .counter-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .tips-header-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .tips-logo-header {
        gap: 10px;
    }

    .comment-avatar-logo {
        width: 32px;
        height: 32px;
    }

    .telegram-logo {
        width: 40px;
        height: 40px;
    }

    .footer-logo {
        width: 55px;
        height: 55px;
        border-radius: 14px;
    }

}

/* Extra small screens - logo sizes */
@media (max-width: 380px) {
    .warning-logo {
        width: 28px;
        height: 28px;
    }

    .h2-logo {
        width: 24px;
        height: 24px;
    }

    .download-btn-logo {
        width: 22px;
        height: 22px;
    }

    .divider-logo {
        width: 25px;
        height: 25px;
    }

    .counter-logo {
        width: 35px;
        height: 35px;
    }

    .footer-logo {
        width: 50px;
        height: 50px;
    }
}

/* Disable heavy animations on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-logo,
    .divider-logo,
    .logo-pulse,
    .logo-spin,
    .logo-bounce,
    .app-icon-shine::before,
    .download-btn-hero {
        animation: none;
    }

    .hero-logo:hover,
    .footer-logo:hover,
    .logo-tilted:hover {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Reduce animations on mobile for performance */
@media (max-width: 600px) {
    .logo-bounce,
    .logo-spin,
    .app-icon-shine::before {
        animation: none;
    }

    .hero-logo {
        animation: none;
        box-shadow:
            0 0 20px var(--primary-color-66),
            0 8px 30px rgba(0, 0, 0, 0.2);
    }

    .feature-icon-item:hover,
    .variant-card:hover,
    .screenshot-item:hover,
    .tip-card:hover {
        transform: none;
    }

}

/* ====================== */
/* Comparison Table        */
/* ====================== */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    -webkit-overflow-scrolling: touch;
    background:
        linear-gradient(to right, white 30%, transparent),
        linear-gradient(to right, transparent, white 70%) 100% 0,
        radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.15), transparent),
        radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.15), transparent) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 500px;
}

.comparison-table thead {
    background: var(--primary-color);
    color: white;
}

.comparison-table th {
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.comparison-table th:first-child {
    text-align: start;
}

.comparison-table td {
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table td.feature-name {
    text-align: start;
    font-weight: 500;
    color: #333;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tbody tr:hover {
    background: var(--primary-color-22);
}

/* ====================== */
/* Screenshot Gallery      */
/* ====================== */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.screenshot-item {
    text-align: center;
    background: linear-gradient(145deg, #f8f9fa, #fff);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.screenshot-img {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--primary-color-44);
}

.screenshot-label {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Variant unique content */
.variant-unique-content {
    background: linear-gradient(135deg, var(--primary-color-22), var(--primary-color-11, #f8f9fa));
    border-inline-start: 4px solid var(--primary-color);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
}

.variant-highlights {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.variant-highlights li {
    padding: 6px 0;
    padding-inline-start: 24px;
    position: relative;
}

.variant-highlights li::before {
    content: '✦';
    position: absolute;
    inset-inline-start: 0;
    color: var(--primary-color);
    font-size: 14px;
}

/* ====================== */
/* Feature Details Section */
/* ====================== */
.feature-details-section {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.feature-detail-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.feature-detail-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color-22);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-detail-body h3 {
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 6px;
}

.feature-detail-body p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ====================== */
/* Version History Section */
/* ====================== */
.version-history-section {
    margin: 20px 0;
}

.vh-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #eee;
}

.vh-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
    border-bottom: 1px solid #eee;
}

.vh-version {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    background: var(--primary-color);
}

.vh-date {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.vh-base {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 6px;
    margin-inline-start: auto;
}

.vh-changes {
    list-style: none;
    padding: 12px 18px;
    margin: 0;
}

.vh-change-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    margin: 0;
}

.vh-change-item:last-child {
    border-bottom: none;
}

.vh-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 70px;
    justify-content: center;
}

.vh-tag-new {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.vh-tag-fixed {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.vh-tag-improved {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.vh-tag-base {
    background: #f9fafb;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.vh-text {
    flex: 1;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* ====================== */
/* Developer Section       */
/* ====================== */
.developer-section {
    background: linear-gradient(135deg, var(--primary-color-22), #f8f9fa);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 16px 0;
    border: 1px solid var(--primary-color-22);
}

.developer-section p {
    color: #444;
    font-size: 14px;
    line-height: 1.8;
}

.dev-update-freq {
    font-weight: 600;
    color: var(--primary-color) !important;
}

/* ====================== */
/* Expanded Variant Content*/
/* ====================== */
.variant-audience {
    background: rgba(255,255,255,0.7);
    padding: 10px 14px;
    border-radius: 8px;
    font-style: italic;
    margin: 10px 0;
}

.variant-unique-features {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.variant-unique-features li {
    padding: 8px 0;
    padding-inline-start: 28px;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.variant-unique-features li::before {
    content: '★';
    position: absolute;
    inset-inline-start: 0;
    color: var(--primary-color);
    font-size: 16px;
}

.variant-unique-features li:last-child {
    border-bottom: none;
}

/* ====================== */
/* Why Choose Section      */
/* ====================== */
.why-choose-section {
    display: grid;
    gap: 16px;
    margin: 16px 0;
}

.why-choose-reason {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 10px;
    border-inline-start: 3px solid var(--primary-color);
}

.why-choose-reason h3 {
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 8px;
}

.why-choose-reason p {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* ====================== */
/* Complete Guide Section   */
/* ====================== */
.complete-guide-section {
    margin: 16px 0;
}

.guide-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.guide-step:last-child {
    border-bottom: none;
}

.guide-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.guide-step-body h3 {
    color: #333;
    font-size: 15px;
    margin-bottom: 6px;
}

.guide-step-body p {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* Troubleshooting Section */
.troubleshooting-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.troubleshooting-item {
    background: var(--primary-color-11, rgba(0,0,0,0.03));
    border-radius: 12px;
    padding: 18px 20px;
    border-inline-start: 4px solid var(--primary-color, #128C7E);
}

.troubleshooting-q {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color, #128C7E);
    margin: 0 0 8px 0;
}

.troubleshooting-a {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

@media (max-width: 768px) {
    .feature-detail-card {
        padding: 12px;
    }

    .feature-detail-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .vh-header {
        padding: 10px 14px;
    }

    .vh-changes {
        padding: 10px 14px;
    }

    .vh-tag {
        min-width: auto;
        font-size: 10px;
        padding: 3px 8px;
    }

    .developer-section {
        padding: 14px 16px;
    }

    .troubleshooting-item {
        padding: 14px 16px;
    }

    .why-choose-reason {
        padding: 14px 16px;
    }
}