:root {
    /* Настройки плашек и скругления */
    --margin-btn-to-grid: 28;       /* Отступ от кнопок до блока карточек: 28px */
    --card-radius: 34;              /* Скругление углов 34px */
    --card-border-thickness: 0;     
    --card-border-color: #262626;   
    --card-bg-color: #0f1214;       

    --glow-color: #198294;          
    --glow-opacity: 0.45;           
    --glow-size: 150;               
    --glow-x: 20;                   
    --glow-y: 20;                   

    --height-big-card: 125;         
    --height-small-card: 79;        

    --size-text-big-card: 17;       
    --size-text-small-card: 16;     

    --icon-size-big: 110;           
    --icon-size-small: 90;          

    --icon-y-big: 35;               
    --icon-y-small: 25;             
    --white-icon-y: 25;             

    --icon-x-big: 0;                
    --icon-x-small: 0;              
    --white-icon-x: 0;              
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent !important;
}

*:focus {
    outline: none !important; 
}

/* Корневые элементы */
html, body {
    background-color: #000000;
    min-height: 100%;
    min-height: 100dvh; 
    overflow-x: hidden;
    overflow-y: auto;   
    color: #fff;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
}

.preview-area {
    flex: 1;
    background-color: transparent;
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.prevent-select {
    -webkit-touch-callout: none; 
    -webkit-user-select: none;   
    -khtml-user-select: none;     
    -moz-user-select: none;       
    -ms-user-select: none;        
    user-select: none;            
}

/* ОРИГИНАЛЬНЫЙ ВЕРХНИЙ ГРАДИЕНТ СТРАНИЦЫ (НЕ ТРОГАЛСЯ) */
.glow-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1800px; 
    height: 100%; 
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(ellipse 484px 244px at calc(50% - 323px) -7px, rgba(0, 217, 255, 1) 0%, rgba(0, 217, 255, 0) 100%),
        radial-gradient(ellipse 484px 244px at calc(50% + 323px) -7px, rgba(0, 255, 225, 1) 0%, rgba(0, 255, 225, 0) 100%);
    background-repeat: no-repeat;
}

.content-wrapper {
    position: relative; 
    margin-top: 83px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px; 
    padding: 0 20px; 
    z-index: 2;
    padding-bottom: 60px; 
}

.subtitle {
    color: #B5B5B5;
    font-size: 17px;
    font-weight: 400;
    text-align: center;
}

.days-left {
    color: #FFFFFF;
    font-size: 85px; 
    font-weight: 700;
    letter-spacing: -0.02em; 
    line-height: 1;
    margin-top: 4px;
    margin-bottom: 30px; 
    text-align: center;
}

/* ПЛАШКИ МЕТРИК */
.badges-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 8px; 
    margin-bottom: 40px;
}

.badge {
    flex: 1; 
    height: 56px; 
    background-color: rgba(255, 255, 255, 0.08); 
    border-radius: 100px !important; 
    display: flex !important;
    flex-direction: column !important; 
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    gap: 2px; 
    overflow: hidden;
}

.badge-title {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap; 
}

.badge-value {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap; 
}

/* ПЛОСКИЕ КНОПКИ УПРАВЛЕНИЯ БЕЗ ГРАДИЕНТОВ И СВЕЧЕНИЙ */
.buttons-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.btn {
    width: 100%;
    height: 50px;
    border-radius: 100px;
    border: none !important;
    font-size: 16px; 
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    letter-spacing: -0.01em;
    background-image: none !important;
    box-shadow: none !important;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn::before, .btn::after {
    display: none !important;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary { 
    background-color: #FFFFFF !important; 
    color: #000000 !important; 
}

.btn-secondary { 
    background-color: #383838 !important; 
    color: #FFFFFF !important; 
}

/* СЕТКА И КАРТОЧКИ */
.cards-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: calc(var(--margin-btn-to-grid) * 1px); /* 28px от кнопки "Подключить VPN" */
}

.cards-row {
    display: flex;
    width: 100%;
    gap: 12px;
}

.card-small {
    flex: 1;
    height: 84px;
    border-radius: calc(var(--card-radius) * 1px);
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: var(--card-bg-color);
    z-index: 1;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-small:active {
    transform: scale(0.96);
}

/* ЗЕЛЕНЫЙ НЕОНОВЫЙ ГРАДИЕНТ КАРТОЧЕК ПОЛНОСТЬЮ УДАЛЕН */
.card-small::before {
    display: none !important;
    background: transparent !important;
}

/* СЕТКА LINEBG НА КАРТОЧКАХ */
.card-small::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://raw.githubusercontent.com/Aimpok/Zelloicons/refs/heads/main/linebg.png');
    background-size: 480px auto;
    background-position: center;
    mix-blend-mode: screen;
    opacity: 0.85;
    z-index: 2;
    pointer-events: none;
}

.card-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: #FFFFFF;
    position: relative;
    z-index: 4;
    pointer-events: none;
    text-align: left;
}

.card-small .card-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    z-index: 3;
    pointer-events: none;
    object-fit: contain;
}

/* БАННЕР-КАРУСЕЛЬ */
.banner-carousel-wrapper {
    width: 100%;
    height: 138px;
    border-radius: calc(var(--card-radius) * 1px);
    position: relative;
    overflow: hidden;
    background-color: var(--card-bg-color);
    z-index: 1;
    touch-action: pan-x;
}

/* СЕТКА LINEBG НА БАННЕРЕ */
.banner-carousel-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://raw.githubusercontent.com/Aimpok/Zelloicons/refs/heads/main/linebg.png');
    background-size: 480px auto;
    background-position: center;
    mix-blend-mode: screen;
    opacity: 0.85;
    z-index: 2;
    pointer-events: none;
}

/* ТРЕК КАРУСЕЛИ */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    transition: transform 0.52s cubic-bezier(0.2, 0.95, 0.3, 1);
}

.carousel-track.dragging {
    cursor: grabbing;
    transition: none !important;
}

/* ЗЕЛЕНЫЙ ГРАДИЕНТ БАННЕРА ПОЛНОСТЬЮ УДАЛЕН */
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: transparent !important;
}

.banner-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 4;
    pointer-events: none !important;
}

.banner-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.25;
    margin-top: 2px;
    pointer-events: none !important;
}

.banner-btn {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 100px;
    border: none !important;
    cursor: pointer;
    width: fit-content;
    white-space: nowrap;
    letter-spacing: -0.01em;
    background-image: none !important;
    box-shadow: none !important;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto !important;
}

.banner-btn::before, .banner-btn::after {
    display: none !important;
}

.banner-btn:active {
    transform: scale(0.96);
}

/* МИНИ-ШЕЙК И ПАРЕНИЕ 3D-ИКОНКИ БАННЕРА */
@keyframes bannerIconShake {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(1.8deg);
    }
    50% {
        transform: translateY(-1px) rotate(-1.2deg);
    }
    75% {
        transform: translateY(-4px) rotate(1.2deg);
    }
}

.banner-icon {
    position: absolute;
    right: 12px;
    bottom: -2px;
    width: 110px;
    height: 110px;
    z-index: 3;
    pointer-events: none;
    object-fit: contain;
    animation: bannerIconShake 4.5s ease-in-out infinite;
    will-change: transform;
}

/* ИНДИКАТОРЫ */
.carousel-indicators {
    position: absolute;
    top: 18px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 16px;
    height: 4px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.85);
    transition: background-color 0.25s ease, width 0.25s ease;
    cursor: pointer;
}

.carousel-indicators .indicator.active {
    background-color: #00D8C0;
    width: 20px;
}

/* ВЕРХНЕЕ МЕНЮ И БУРГЕР-КНОПКИ */
.blur-overlay {
    position: fixed;
    inset: 0; 
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 990; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    transform: translateZ(0); 
    will-change: opacity;
}

.blur-overlay.active {
    opacity: 1;
    pointer-events: auto; 
}

.burger-menu-wrapper {
    position: absolute; 
    top: 0px; 
    right: 20px; 
    z-index: 999; 
}

.burger-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    cursor: pointer;
    transition: transform 0.1s, color 0.15s;
    -webkit-tap-highlight-color: transparent; 
    outline: none;
    color: rgba(255, 255, 255, 0.4); 
}

.burger-btn:active {
    transform: scale(0.9);
    color: rgba(255, 255, 255, 0.8);
}
