/* Reset & Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #030304;
    /* Luxury dark ambient lighting gradient background */
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(0, 136, 204, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 94, 58, 0.03) 0%, transparent 40%),
        linear-gradient(180deg, #070709 0%, #020203 100%);
    color: #e2e2eb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

/* Custom Scrollbar for Modal and Lists */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* ==========================================================================
   MOBILE-FIRST (Default Styles)
   ========================================================================== */

/* App Wrapper */
.wraper {
    width: 100%;
    max-width: 420px;
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(212, 175, 55, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
}

/* Brand Panel (Header + Slider + Notice) */
.brand-panel {
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px 6px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    position: relative;
}

/* Logo SVG */
.logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.7));
}

/* Slider Container (Bezel-less TV frame screen) */
.slider-container {
    width: 90%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.6),
        0 0 15px rgba(212, 175, 55, 0.05);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Pagination */
.slider-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 20px;
}

.pagination-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: #d4af37;
    width: 16px;
    border-radius: 3px;
    box-shadow: 0 0 8px #d4af37;
}

/* Notice/Ticker Panel */
.notice {
    display: flex;
    align-items: center;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.12);
    padding: 6px 10px;
    margin: 8px 15px 2px 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.03);
}

.notice-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    fill: #d4af37;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.4));
}

.marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.marquee-wrap p {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 22s linear infinite;
    color: #e4e4ed;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Main Content */
.main-content {
    padding: 4px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Main Redirect Button Section */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(25, 25, 33, 0.6) 0%, rgba(18, 18, 24, 0.7) 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 14px 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255,255,255,0.05);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: #a4a4b5;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    animation: pulse-green 1.5s infinite;
}

#ping-ms {
    color: #10b981;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

@keyframes pulse-green {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Master Action Button (Luxury gold design) */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #fef08a 0%, #d4af37 40%, #b45309 100%);
    color: #0d0d12;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: none;
    animation: shine 3.5s infinite;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(212, 175, 55, 0.45),
        0 0 30px rgba(212, 175, 55, 0.2);
    background: linear-gradient(135deg, #fff9c4 0%, #e6c045 40%, #d97706 100%);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary .icon {
    width: 20px;
    height: 20px;
    fill: #0d0d12;
    animation: bounce 2s infinite;
}

/* Spinner for loading state */
.btn-primary .icon.spin {
    animation: spin 0.8s linear infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-2.5px); }
}

.cta-hint {
    font-size: 0.75rem;
    color: #78788c;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

/* VPN Section */
.vpn-section {
    background: linear-gradient(180deg, rgba(22, 22, 28, 0.6) 0%, rgba(13, 13, 18, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.vpn-title {
    font-size: 0.8rem;
    color: #e5e5eb;
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.vpn-desc {
    font-size: 0.7rem;
    color: #9898a8;
    line-height: 1.4;
    margin-bottom: 8px;
}

.vpn-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-vpn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a4a4b5;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-vpn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-vpn.active {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35);
}

.btn-vpn.active:hover {
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5);
    opacity: 0.95;
}

/* Social Grid Section */
.social-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-title {
    font-size: 0.8rem;
    color: #78788c;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    font-weight: 700;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    border-radius: 10px;
    background: rgba(20, 20, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-item svg {
    width: 24px;
    height: 24px;
    fill: #a0a0b0;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.social-item span {
    font-size: 0.7rem;
    color: #8e8e9f;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Custom Social Button Hover Effects with Glows */
#link-telegram:hover {
    border-color: rgba(0, 136, 204, 0.4);
    background: rgba(0, 136, 204, 0.08);
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.2);
    transform: translateY(-3px);
}
#link-telegram:hover svg { fill: #0088cc; filter: drop-shadow(0 0 4px rgba(0, 136, 204, 0.6)); }
#link-telegram:hover span { color: #0088cc; }

#link-homepage:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.06);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
}
#link-homepage:hover svg { fill: #d4af37; filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6)); }
#link-homepage:hover span { color: #d4af37; }

#link-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.4);
    background: rgba(37, 211, 102, 0.08);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
    transform: translateY(-3px);
}
#link-whatsapp:hover svg { fill: #25d366; filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.6)); }
#link-whatsapp:hover span { color: #25d366; }

#link-facebook:hover {
    border-color: rgba(24, 119, 242, 0.4);
    background: rgba(24, 119, 242, 0.08);
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.2);
    transform: translateY(-3px);
}
#link-facebook:hover svg { fill: #1877f2; filter: drop-shadow(0 0 4px rgba(24, 119, 242, 0.6)); }
#link-facebook:hover span { color: #1877f2; }

/* Modal VPN Popup */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background: #0d0d12;
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    position: relative;
    animation: modalSlide 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.6),
        0 0 30px rgba(212, 175, 55, 0.05);
    overflow: hidden;
}

@keyframes modalSlide {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 0.8px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.05);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    fill: #8e8e9f;
    transition: fill 0.2s ease;
}

.modal-close:hover svg {
    fill: #ffffff;
}

.modal-body {
    padding: 18px;
    max-height: 70vh;
    overflow-y: auto;
}

.step-card {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
    padding-bottom: 12px;
}

.step-card:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fcd34d 0%, #d4af37 100%);
    color: #0b0b0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.step-details h4 {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 4px;
    font-weight: 700;
}

.step-details p {
    font-size: 0.75rem;
    color: #9898a8;
    line-height: 1.45;
}

/* Footer & Net wrapper copyright */
.footer {
    margin-top: auto;
    padding: 8px 10px 3px 10px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer p {
    font-size: 0.7rem;
    color: #555566;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   TABLET & DESKTOP LAYOUT (2 Columns - Premium Dashboard Style)
   ========================================================================== */
@media (min-width: 768px) {
    body {
        padding: 30px;
    }

    /* Floating dashboard wrapper container styling */
    .wraper {
        max-width: 900px;
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        grid-template-areas: 
            "left-col right-col"
            "footer footer";
        padding: 24px;
        gap: 25px;
        border-radius: 20px;
        border: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: 
            0 25px 60px rgba(0, 0, 0, 0.85),
            0 0 80px rgba(212, 175, 55, 0.05),
            inset 0 1px 0 rgba(255,255,255,0.05);
    }

    /* Left Side Branding Column */
    .brand-panel {
        grid-area: left-col;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 15px;
        border-right: 1px solid rgba(255, 255, 255, 0.04);
        padding-right: 25px;
    }

    .header {
        padding: 0 0 5px 0;
        justify-content: flex-start;
        background: none;
    }

    .logo {
        height: 48px;
    }

    .slider-container {
        width: 100%;
        margin: 0;
        border-radius: 12px;
        border: 1px solid rgba(212, 175, 55, 0.25);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .notice {
        margin: 0;
        border-radius: 10px;
        border: 1px solid rgba(212, 175, 55, 0.15);
    }

    /* Right Side Action Column */
    .main-content {
        grid-area: right-col;
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 15px;
    }

    .cta-section {
        flex: 1.1;
        justify-content: center;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .vpn-section {
        flex: 1;
        padding: 16px 20px;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .vpn-desc {
        margin-bottom: 12px;
    }

    .social-section {
        margin-top: 0;
        flex-shrink: 0;
    }

    /* Footer spanning full width at the bottom */
    .footer {
        grid-area: footer;
        width: 100%;
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }
}
