/* 
  DotaCam Premium Styles
  Dark Theme, Glowing Accents, Glassmorphism
*/

:root {
    --bg-color: #050508;
    --bg-surface: rgba(20, 20, 25, 0.6);
    --bg-surface-hover: rgba(30, 30, 40, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --primary-color: #10B981;
    /* Neon green */
    --primary-hover: #059669;
    --accent-red: #EF4444;
    /* Dota red */
    --accent-purple: #4c1d95;
    /* BG vibe from logo */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hidden {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.highlight-green {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.highlight-red {
    color: var(--accent-red);
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Background Glowing Orbs */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
}

.glow-green {
    top: -10%;
    right: -10%;
    background: var(--primary-color);
}

.glow-purple {
    bottom: 20%;
    left: -10%;
    background: var(--accent-purple);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.mt-3 {
    margin-top: 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.app-version-display {
    font-size: 0.55em;
    font-weight: 800;
    opacity: 0.9;
    margin-left: 2px;
    display: inline-block;
    vertical-align: baseline;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary-color);
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-logout {
    border: 1px solid var(--accent-red) !important;
    background: transparent !important;
    color: var(--accent-red) !important;
}

.btn-logout:hover {
    background: var(--accent-red) !important;
    color: #fff !important;
    border-color: var(--accent-red) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

@keyframes bounce-mobile {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.glow-btn {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-panel:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

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

.hero-content {
    animation: fadeUp 0.8s ease-out;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 500px;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatImage 6s ease-in-out infinite;
}

.app-mockup {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.mockup-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--primary-color);
    filter: blur(100px);
    z-index: 1;
    opacity: 0.3;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    animation: bounce 2s infinite;
}

.scroll-mobile {
    display: none;
}

/* Features */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

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

.feature-card {
    padding: 32px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* How It Works */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -30px;
    right: -10px;
    line-height: 1;
    z-index: 0;
}

.step h3,
.step p,
.step .btn {
    position: relative;
    z-index: 1;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

/* Purchase Section */
.purchase-container {
    max-width: 800px;
}

.purchase-box {
    padding: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid var(--primary-color);
}

.purchase-box h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.purchase-box p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

.price-highlight {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 30px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.support-text {
    font-size: 14px !important;
    margin-top: 20px;
    margin-bottom: 0 !important;
}

/* Footer */
.footer {
    padding: 30px 0 15px;
    border-radius: 30px 30px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo-img-small {
    height: 30px;
    width: 30px;
    border-radius: 50%;
}

.footer-left p {
    margin-top: 12px;
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-right a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-secondary);
}

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

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

@keyframes floatImage {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding-top: 120px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-visual {
        padding: 40px;
    }
}

@media (max-width: 768px) {

    .navbar .logo-text,
    .navbar .app-version-display {
        display: none !important;
    }

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

    .mobile-menu-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .nav-links a:not(.btn) {
        display: none !important;
    }

    .auth-buttons {
        gap: 8px !important;
    }

    .auth-buttons .btn {
        padding: 8px 12px;
        font-size: 13px;
        margin: 0 !important;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 15px;
        /* Pulls the buttons up closer */
    }

    .hero-visual {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 250px;
        padding-top: 10px;
        /* Cut from 60px to radically pull the gem up */
        position: relative;
        margin-top: 0;
        /* Removed 20px top margin */
    }

    .scroll-desktop {
        display: none !important;
    }

    .scroll-mobile {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin: 60px auto -20px !important;
        /* Pushes it down away from the buttons! */
        z-index: 10;
        flex-direction: column;
        align-items: center;
        color: white;
        animation: bounce-mobile 2s infinite !important;
    }

    .gem-container {
        margin-top: 0;
    }

    .btn-large {
        padding: 14px 20px;
    }

    .section {
        padding: 60px 0;
    }

    .purchase-box {
        padding: 40px 20px;
    }

    .purchase-box h2 {
        font-size: 32px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    perspective: 1000px;
}

.modal-content {
    background: var(--bg-surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-origin: center;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s;
}

.modal-content:not(.hidden) {
    display: block;
}

.modal-content.hidden {
    display: none;
    transform: translateY(20px);
    opacity: 0;
}

.modal-wide {
    max-width: 600px;
    width: 90vw;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.modal-wide.hidden {
    transform: translate(-50%, 20px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-back {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-back:hover {
    color: #fff;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glass-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.glass-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.btn-full {
    width: 100%;
    margin-top: 8px;
}

.modal-error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    border: 1px solid rgba(255, 107, 107, 0.2);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.error-hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-footer a {
    font-weight: 600;
}

.modal-body-center {
    text-align: center;
}

/* Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 30px;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-icon i {
    font-size: 80px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.profile-email {
    font-size: 18px;
    margin-bottom: 20px;
    word-break: break-all;
}

.profile-sub-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-sub-box p {
    font-size: 13px;
    margin-bottom: 5px;
}

.profile-sub-box h2 {
    font-size: 20px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.profile-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 20px;
    font-size: 15px;
    transition: border-color 0.2s, background 0.2s !important;
    transform: none !important;
}

.profile-btn:hover {
    transform: none !important;
}

.profile-btn i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

@media (max-width: 600px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-stats {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }

    .profile-actions {
        align-items: center;
    }

    .profile-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Tariff Grid */
.tariff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tariff-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tariff-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: none;
}

.tariff-days {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tariff-price {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.tariff-btn {
    width: 100%;
}

.tariff-card.popular {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.05);
}

.tariff-card.popular .tariff-price {
    color: #fff;
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .tariff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.windows-support {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 120, 215, 0.1);
    color: #4db8ff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}

.download-pulsar {
    animation: pulseGlow 2s infinite;
}

.highlight-red {
    color: var(--accent-red);
}

.tariff-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Password visibility toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 20px;
    z-index: 5;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #fff;
}

.glass-input {
    padding-right: 45px !important;
}

/* Profile Section (Page) */
.profile-section {
    padding: 120px 0 80px;
    min-height: 80vh;
    display: none;
}

.profile-section.active {
    display: block;
}

.profile-page-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 768px) {
    .profile-page-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
}

/* Chrome Autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0b0b10 inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Round 4 specific overlays */
.step {
    display: flex;
    flex-direction: column;
}

.step p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.step>a,
.step>div {
    margin-top: auto !important;
}

@media (max-width: 768px) {
    .nav-links.active {
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        background: rgba(5, 5, 8, 0.4) !important;
    }
}

.app-version-display {
    vertical-align: bottom !important;
    font-size: 0.50em !important;
    font-weight: 800 !important;
    margin-left: 2px;
}


/* Version bump requested by User */
.app-version-display {
    position: relative !important;
    top: -0.5em !important;
    left: -0.3em !important;
    margin-left: 0 !important;
}

/* Comparison Slider - Fixed Responsive Version */
.comparison-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 20px;
    overflow: hidden;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    cursor: ew-resize;
    user-select: none;
    touch-action: pan-y;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.img-after {
    z-index: 2;
    clip-path: inset(0 90% 0 0);
    -webkit-clip-path: inset(0 90% 0 0);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 10%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    z-index: 10;
    pointer-events: none;
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 32, 0.6);
    backdrop-filter: blur(5px);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

@media (max-width: 768px) {
    .comparison-slider {
        aspect-ratio: 4 / 3;
    }

    .handle-button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}