.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.02);
}
.transition-base {
    transition: all 0.3s ease-in-out;
}

/* Step switcher styles */
.step-tab {
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.step-tab.active {
    background-color: rgba(0, 122, 255, 0.08) !important;
    border-color: var(--x-primary, #007aff) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.step-tab:hover:not(.active) {
    background-color: rgba(120, 120, 120, 0.05);
}
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.mobile-step-tab {
    transition: all 0.2s ease;
}
.mobile-step-tab.active {
    background-color: var(--x-primary, #007aff) !important;
    color: #ffffff !important;
    border-color: var(--x-primary, #007aff) !important;
}

/* Hero Device Showcase */
.hero-screen-switcher {
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.hero-screen-btn {
    border: none;
    color: var(--bs-secondary-color, #6c757d);
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    white-space: nowrap;
}

.hero-screen-btn.active {
    background-color: var(--bs-body-bg, #ffffff) !important;
    color: var(--bs-emphasis-color, #1e293b) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.hero-device-showcase {
    max-width: 380px;
    margin: 0 auto;
    position: relative;
}

.hero-mockup-frame {
    max-width: 250px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mockup-frame:hover {
    transform: translateY(-4px);
}

.hero-screen-img {
    max-height: 480px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.26));
}

/* Floating Badges in Hero */
.hero-floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    padding: 0.65rem 1.1rem;
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    animation: heroBadgeFloat 4s ease-in-out infinite alternate;
}

.hero-floating-badge:hover {
    transform: translateY(-4px) scale(1.02);
}

.hero-badge-top-left {
    top: 14%;
    left: 0;
    animation-delay: 0s;
}

.hero-badge-bottom-right {
    bottom: 16%;
    right: 0;
    animation-delay: 2s;
}

.hero-badge-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.hero-badge-icon-success {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.hero-badge-icon-primary {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

/* Mobile Hero Badge */
.hero-mobile-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--x-heading-color, #1e293b);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark Mode (data-bs-theme="dark", data-theme="dark", prefers-color-scheme) */
[data-bs-theme="dark"] .hero-floating-badge,
[data-theme="dark"] .hero-floating-badge,
.dark .hero-floating-badge {
    background: rgba(27, 29, 34, 0.88);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .hero-floating-badge .text-heading,
[data-theme="dark"] .hero-floating-badge .text-heading,
.dark .hero-floating-badge .text-heading {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .hero-floating-badge .text-muted,
[data-theme="dark"] .hero-floating-badge .text-muted,
.dark .hero-floating-badge .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .hero-badge-icon-success,
[data-theme="dark"] .hero-badge-icon-success,
.dark .hero-badge-icon-success {
    background: rgba(34, 197, 94, 0.22);
    color: #4ade80;
}

[data-bs-theme="dark"] .hero-badge-icon-primary,
[data-theme="dark"] .hero-badge-icon-primary,
.dark .hero-badge-icon-primary {
    background: rgba(59, 130, 246, 0.22);
    color: #60a5fa;
}

[data-bs-theme="dark"] .hero-mobile-badge,
[data-theme="dark"] .hero-mobile-badge,
.dark .hero-mobile-badge {
    background: rgba(27, 29, 34, 0.9);
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.12);
}

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

@media (max-width: 767.98px) {
    .hero-device-showcase {
        max-width: 300px;
    }
    .hero-mockup-frame {
        max-width: 210px;
    }
}

/* Скролл-лента табов на мобильных */
.mobile-tabs-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Обертки мобильных скриншотов */
.mobile-screenshot-wrap {
    max-width: 230px;
}

/* Десктопные иконки шагов и заголовки */
.step-number-icon {
    width: 2rem;
    height: 2rem;
}

.step-title-text {
    font-size: 1.05rem;
}

.desktop-screenshots-wrap {
    max-width: 290px;
}

/* Десктопные скриншоты */
.desktop-screenshot-active {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
}

.desktop-screenshot-inactive {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-in-out;
}

/* Аватарка в отзыве */
.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
}

/* Секция Chrome Extension */
.chrome-tab {
    transition: all 0.25s ease;
    border: 1px solid transparent;
    background-color: var(--x-secondary-bg);
}

.chrome-tab:hover {
    background-color: color-mix(in srgb, var(--x-primary) 6%, var(--x-secondary-bg));
    border-color: rgba(var(--x-primary-rgb), 0.2);
}

.chrome-tab.active {
    background-color: var(--x-body-bg);
    border-color: var(--x-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.chrome-browser-mockup {
    background: #18191c;
}

.chrome-preview-active {
    opacity: 1;
    transform: scale(1);
    transition: all 0.35s ease-in-out;
}

.chrome-preview-inactive {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
    transition: all 0.35s ease-in-out;
}

/* Rank Pills & Simulator Badges */
.sim-rank-pill {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.35);
    font-size: 0.68rem;
    letter-spacing: 0.3px;
}

.rank-tabs-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rank-tab-btn {
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--x-border-color, #e2e8f0);
    background-color: var(--x-body-bg);
}

.rank-tab-btn:hover:not(.active) {
    background-color: color-mix(in srgb, var(--x-primary) 6%, var(--x-body-bg));
    border-color: rgba(var(--x-primary-rgb), 0.3);
}

.rank-tab-btn.active {
    background-color: var(--x-body-bg);
    border-color: var(--x-primary, #007aff);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.12);
}

.rank-panel {
    transition: opacity 0.25s ease-in-out;
}

.rank-op-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.rank-live-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.rank-live-input:focus {
    background-color: #1e293b;
    color: #ffffff;
    border-color: var(--x-primary, #007aff);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.25);
}
