@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #171717;
    color: white;
    overflow-x: hidden;
}

/* Фоновые свечения */

body::before {
    content: '';
    position: fixed;

    width: 600px;
    height: 600px;

    background: rgba(62, 157, 153, 0.15);

    filter: blur(120px);

    top: -200px;
    right: -200px;

    z-index: -1;
}

body::after {
    content: '';
    position: fixed;

    width: 500px;
    height: 500px;

    background: rgba(62, 157, 153, 0.08);

    filter: blur(140px);

    bottom: -250px;
    left: -200px;

    z-index: -1;
}

/* Header */

header {
    width: 100%;

    padding: 24px 80px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;

    z-index: 100;

    background: rgba(29, 29, 29, 0.75);

    backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
    font-size: 32px;
    font-weight: 800;

    color: #3e9d99;

    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

nav a {
    color: rgba(255,255,255,0.8);

    text-decoration: none;

    transition: 0.25s;
}

nav a:hover {
    color: white;
}

.btn {
    background: linear-gradient(135deg, #3e9d99, #55c7c2);

    padding: 12px 24px;

    border-radius: 14px;

    color: white;

    box-shadow: 0 0 25px rgba(62,157,153,0.35);
}

/* Hero */

.hero {
    min-height: 92vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: 86px;

    line-height: 1;

    margin-bottom: 25px;

    font-weight: 800;
}

.hero-content p {
    font-size: 22px;

    color: rgba(255,255,255,0.7);

    margin-bottom: 35px;

    line-height: 1.6;
}

.main-btn {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    padding: 18px 40px;

    background: linear-gradient(135deg, #3e9d99, #55c7c2);

    border-radius: 18px;

    text-decoration: none;

    color: white;

    font-size: 18px;
    font-weight: 600;

    transition: 0.3s;

    box-shadow: 0 0 35px rgba(62,157,153,0.35);
}

.main-btn:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 40px rgba(62,157,153,0.45);
}

/* Features */

.features {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    padding: 100px 80px;
}

.card {
    background: rgba(29,29,29,0.95);

    border: 1px solid rgba(255,255,255,0.05);

    padding: 35px;

    border-radius: 28px;

    position: relative;

    overflow: hidden;

    transition: 0.3s;
}

.card::before {
    content: '';

    position: absolute;

    width: 200px;
    height: 200px;

    background: rgba(62,157,153,0.08);

    border-radius: 50%;

    top: -120px;
    right: -120px;
}

.card:hover {
    transform: translateY(-10px);

    border-color: rgba(62,157,153,0.35);
}

.card h3 {
    color: #3e9d99;

    margin-bottom: 15px;

    font-size: 24px;
}

.card p {
    color: rgba(255,255,255,0.7);

    line-height: 1.7;
}

/* Auth */

.auth-box {
    width: 430px;

    margin: 100px auto;

    background: rgba(29,29,29,0.95);

    border: 1px solid rgba(255,255,255,0.05);

    backdrop-filter: blur(20px);

    padding: 45px;

    border-radius: 30px;

    box-shadow: 0 0 50px rgba(0,0,0,0.35);
}

.auth-box h1 {
    margin-bottom: 25px;

    font-size: 36px;
}

.auth-box form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.auth-box input {
    background: #171717;

    border: 1px solid rgba(255,255,255,0.08);

    padding: 16px;

    border-radius: 16px;

    color: white;

    transition: 0.25s;
}

.auth-box input:focus {
    outline: none;

    border-color: #3e9d99;

    box-shadow: 0 0 0 4px rgba(62,157,153,0.15);
}

.auth-box button {
    background: linear-gradient(135deg, #3e9d99, #55c7c2);

    border: none;

    padding: 16px;

    border-radius: 16px;

    color: white;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.auth-box button:hover {
    transform: translateY(-3px);
}

.error {
    background: rgba(255,0,0,0.12);

    border: 1px solid rgba(255,0,0,0.2);

    padding: 14px;

    border-radius: 14px;

    margin-bottom: 18px;
}

/* Dashboard */

.dashboard {
    display: flex;

    min-height: 100vh;
}

.sidebar {
    width: 280px;

    background: rgba(29,29,29,0.95);

    border-right: 1px solid rgba(255,255,255,0.05);

    padding: 35px;

    display: flex;
    flex-direction: column;

    gap: 18px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar h2 {
    color: #3e9d99;

    margin-bottom: 15px;
}

.sidebar a {
    color: rgba(255,255,255,0.8);

    text-decoration: none;

    padding: 14px 18px;

    border-radius: 14px;

    transition: 0.25s;
}

.sidebar a:hover {
    background: rgba(62,157,153,0.12);

    color: white;
}

.content {
    flex: 1;

    padding: 45px;
}

.content h1 {
    font-size: 42px;

    margin-bottom: 25px;
}

.status-card {
    background: rgba(29,29,29,0.95);

    border: 1px solid rgba(255,255,255,0.05);

    padding: 30px;

    border-radius: 26px;

    margin-top: 25px;
}

.status-card h3 {
    margin-bottom: 15px;

    color: #3e9d99;
}

textarea {
    width: 100%;
    height: 200px;

    margin-top: 18px;

    background: #171717;

    border: 1px solid rgba(255,255,255,0.06);

    color: white;

    padding: 18px;

    border-radius: 16px;

    resize: none;
}

/* GUIDE PAGE */

.guide-wrapper{
    max-width:1400px;
    margin:auto;
    padding:40px 25px 80px;
}

.guide-title{
    font-size:56px;
    text-align:center;
    margin-bottom:15px;
}

.guide-subtitle{
    text-align:center;
    font-size:20px;
    opacity:.7;
    margin-bottom:60px;
}

.guide-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
}

.guide-card{
    background:#1d1d1d;
    border:1px solid rgba(255,255,255,.05);
    border-radius:28px;
    padding:35px;
    transition:.35s;
    position:relative;
    overflow:hidden;
}

.guide-card::before{
    content:'';
    position:absolute;
    width:200px;
    height:200px;
    background:#3e9d99;
    opacity:.08;
    border-radius:50%;
    top:-80px;
    right:-80px;
}

.guide-icon{
    font-size:52px;
    margin-bottom:15px;
}

.guide-steps{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:30px;
}

.guide-step{
    display:flex;
    align-items:center;
    gap:15px;
    background:#171717;
    padding:14px;
    border-radius:14px;
}

.guide-step span{
    width:34px;
    height:34px;
    min-width:34px;
    border-radius:50%;
    background:#3e9d99;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
}

.guide-card:hover{
    transform:translateY(-8px);
    border-color:#3e9d99;
    box-shadow:0 20px 50px rgba(62,157,153,.15);
}


.guide-card h2{
    margin-bottom:25px;
    font-size:30px;
}

.guide-card p {
    color: rgba(255,255,255,0.7);

    line-height: 1.8;

    margin-bottom: 14px;
}

.download-btn{
    display:block;
    text-align:center;
    text-decoration:none;
    background:#3e9d99;
    color:white;
    padding:16px;
    border-radius:14px;
    transition:.3s;
}

.download-btn:hover{
    transform:translateY(-2px);
}

.support-box{
    margin-top:60px;
    text-align:center;
    background:#1d1d1d;
    border-radius:28px;
    padding:50px;
    border:1px solid rgba(255,255,255,.05);
}

.support-box h3{
    font-size:32px;
    margin-bottom:15px;
}

.support-box p{
    opacity:.7;
    margin-bottom:25px;
}

.tg-btn{
    display:inline-block;
    text-decoration:none;
    background:#3e9d99;
    color:white;
    padding:16px 30px;
    border-radius:14px;
    font-size:18px;
    font-weight:600;
    transition: all .3s ease;
}

.tg-btn:hover {
    transform: translateY(-4px);

    box-shadow: 0 10px 40px rgba(62,157,153,0.4);
}

.news-full-image{
    width:100%;
    border-radius:24px;
    margin:30px 0;
}

.news-full-content{
    background:#1d1d1d;
    padding:35px;
    border-radius:24px;
    line-height:1.8;
}

/* home news */

.home-news{
    padding:100px 80px;
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.section-header h2{
    font-size:42px;
}

.section-header a{
    color:#3e9d99;
    text-decoration:none;
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.news-card{
    background:#1d1d1d;
    border-radius:24px;
    overflow:hidden;
    text-decoration:none;
    color:white;
    transition:.3s;
    border:1px solid rgba(255,255,255,.05);
}

.news-card:hover{
    transform:translateY(-5px);
}

.news-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.news-content{
    padding:25px;
}

.news-content h3{
    margin-bottom:12px;
}

.news-content p{
    opacity:.7;
    line-height:1.6;
}


/* BACK BUTTON */

.top-back{
    padding:20px 30px;
}

.back-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:white;
    background:#1d1d1d;
    border:1px solid rgba(255,255,255,.05);
    padding:12px 20px;
    border-radius:14px;
    transition:.3s;
}

.back-btn:hover{
    transform:translateY(-2px);
    background:#252525;
}

/* VPN BLOCK */

.vpn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;

    gap: 15px;

    flex-wrap: wrap;
}

.vpn-header-text p {
    color: rgba(255,255,255,0.6);

    font-size: 14px;

    margin-top: 8px;
}

.vpn-badge {
    background: rgba(62,157,153,0.12);

    color: #3e9d99;

    padding: 10px 16px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 600;
}

.vpn-textarea-wrap {
    position: relative;
}

.vpn-textarea {
    width: 100%;

    height: 120px;

    padding-right: 140px;
}

.copy-btn {
    position: absolute;

    right: 15px;
    bottom: 15px;

    padding: 12px 20px;

    font-size: 14px;
}

.vpn-country-list {
    margin-top: 20px;

    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.vpn-country {
    background: rgba(255,255,255,0.04);

    padding: 12px 18px;

    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.05);
}

/* EMPTY SUB */

.empty-sub-text {
    color: rgba(255,255,255,0.65);

    margin-bottom: 25px;

    line-height: 1.7;
}

/* TOAST */

.toast {
    position: fixed;

    bottom: 30px;
    right: 30px;

    background: #1d1d1d;

    color: white;

    padding: 16px 22px;

    border-radius: 16px;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 10px 40px rgba(0,0,0,0.35);

    opacity: 0;

    transform: translateY(20px);

    transition: 0.3s;

    z-index: 9999;
}

.toast.show {
    opacity: 1;

    transform: translateY(0);
}

/* =========================
   ADMIN PANEL
========================= */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.stat-box {
    background: linear-gradient(
        145deg,
        #1d1d1d,
        #171717
    );

    border: 1px solid rgba(255,255,255,0.05);

    border-radius: 24px;

    padding: 30px;

    position: relative;

    overflow: hidden;

    transition: 0.25s;
}

.stat-box:hover {
    transform: translateY(-4px);

    border-color: rgba(62,157,153,0.35);
}

.stat-box::before {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    background: rgba(62,157,153,0.08);

    border-radius: 50%;

    top: -80px;
    right: -80px;
}

.stat-box h3 {
    font-size: 42px;

    color: #3e9d99;

    margin-bottom: 10px;

    position: relative;

    z-index: 2;
}

.stat-box p {
    color: rgba(255,255,255,0.65);

    position: relative;

    z-index: 2;
}

/* SEARCH */

.admin-search {
    display: flex;

    gap: 15px;

    margin-bottom: 30px;
}

.admin-search input {
    flex: 1;

    background: #1d1d1d;

    border: 1px solid rgba(255,255,255,0.06);

    border-radius: 16px;

    padding: 16px 18px;

    color: white;

    outline: none;

    transition: 0.25s;
}

.admin-search input:focus {
    border-color: rgba(62,157,153,0.5);

    box-shadow: 0 0 0 4px rgba(62,157,153,0.08);
}

/* TABLE */

.users-table {
    overflow-x: auto;

    margin-top: 25px;
}

.users-table table {
    width: 100%;

    border-collapse: separate;

    border-spacing: 0 14px;
}

.users-table tr {
    background: #1a1a1a;

    transition: 0.25s;
}

.users-table th {
    color: rgba(255,255,255,0.55);

    font-weight: 600;

    font-size: 14px;

    text-transform: uppercase;

    padding: 16px;
}

.users-table td {
    padding: 20px 16px;

    vertical-align: middle;
}

.users-table tr td:first-child {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.users-table tr td:last-child {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

/* USER STATUS */

.admin-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;
}

.admin-badge.green {
    background: rgba(62,157,153,0.15);

    color: #3e9d99;
}

.admin-badge.red {
    background: rgba(255,80,80,0.12);

    color: #ff5c5c;
}

.admin-tag {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-left: 10px;

    padding: 5px 10px;

    border-radius: 999px;

    background: rgba(62,157,153,0.14);

    color: #3e9d99;

    font-size: 12px;

    font-weight: 700;
}

/* BUTTONS */

.small-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 16px;

    border-radius: 14px;

    text-decoration: none;

    color: white;

    background: linear-gradient(
        145deg,
        #3e9d99,
        #2d7c79
    );

    font-size: 14px;

    font-weight: 600;

    transition: 0.25s;

    border: 1px solid rgba(255,255,255,0.05);
}

.small-btn:hover {
    transform: translateY(-2px);

    box-shadow: 0 10px 20px rgba(62,157,153,0.2);
}

.red-btn {
    background: linear-gradient(
        145deg,
        #d94b4b,
        #b93434
    );
}

.red-btn:hover {
    box-shadow: 0 10px 20px rgba(255,80,80,0.2);
}

/* INPUT */

.users-table input {
    width: 100%;

    background: #111;

    border: 1px solid rgba(255,255,255,0.05);

    border-radius: 14px;

    padding: 14px;

    color: rgba(255,255,255,0.8);

    outline: none;
}

.auth-links{
    display:flex;
    justify-content:space-between;
    margin-top:15px;
}

.auth-links a{
    color:#3e9d99;
    text-decoration:none;
    font-size:14px;
}

.success{
    background:#1d3d2f;
    color:#7fffb3;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
}

/* SUCCESS PAGE */

.success-card {
    max-width: 800px;
    margin: auto;
}

.success-center {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.activation-box {
    margin-top: 40px;
    background: #171717;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.activation-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.activation-title {
    margin-bottom: 8px;
}

.activation-subtitle {
    color: rgba(255,255,255,0.6);
}

.subscription-box {
    margin-top: 30px;
    background: #171717;
    border-radius: 16px;
    padding: 25px;
}

.subscription-title {
    margin-bottom: 15px;
}

.subscription-subtitle {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.6);
}

.subscription-btn {
    margin-top: 15px;
}

.success-steps {
    margin-top: 30px;
    display: grid;
    gap: 15px;
}

.success-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* LOADER */

.loader {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #3e9d99;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* SUCCESS STEPS */

.success-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.success-step-card {
    background: #171717;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 22px;
    padding: 25px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.success-step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(62,157,153,0.4);
}

.success-step-card.active {
    border: 1px solid rgba(62,157,153,0.5);
    box-shadow: 0 0 25px rgba(62,157,153,0.15);
}

.pricing-price {
    background-color: #3e9d99;
    width: fit-content;
    border: 1px solid #3e9d99;
    padding: 1%;
    border-radius: 10px;
    box-shadow: 0px 0px 13px 0px #3e9d99;
}

.pricing-card {
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 22px;
    padding: 25px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.success-step-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.success-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(62,157,153,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.success-step-number {
    font-size: 32px;
    font-weight: bold;
    color: rgba(255,255,255,0.08);
}

.success-step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.success-step-card p {
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}


/* VPN LIST */

.vpn-item {
    display: flex;

    align-items: center;

    gap: 10px;

    background: rgba(255,255,255,0.03);

    border-radius: 12px;

    padding: 10px 12px;

    margin-bottom: 10px;

    font-size: 14px;
}


.success-progress {
    position: relative;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.progress-line {
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(
        to bottom,
        #3e9d99,
        rgba(62,157,153,.2)
    );
}

.progress-item {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: center;

    background: #1d1d1d;
    border: 1px solid rgba(255,255,255,.05);

    padding: 20px;
    border-radius: 18px;

    opacity: 0;
    transform: translateY(15px);

    animation: fadeStep .5s ease forwards;
}

.delay-1 {
    animation-delay: .3s;
}

.delay-2 {
    animation-delay: .6s;
}

.progress-icon {
    width: 42px;
    height: 42px;

    min-width: 42px;

    border-radius: 50%;

    background: #3e9d99;
    color: #fff;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: bold;
    font-size: 18px;

    box-shadow:
        0 0 20px rgba(62,157,153,.5);

    animation: pulse 2s infinite;
}

.progress-content h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.progress-content p {
    margin-top: 5px;
    color: rgba(255,255,255,.6);
    font-size: 14px;
}

@keyframes fadeStep {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}



@keyframes pulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(62,157,153,.6);
    }

    70% {
        box-shadow:
            0 0 0 12px rgba(62,157,153,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(62,157,153,0);
    }

}

@media (max-width: 1000px) {

    header {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 56px;
    }

    .features {
        grid-template-columns: 1fr;

        padding: 50px 20px;
    }

    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 900px) {

    .users-table table {
        min-width: 1200px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .success-steps {
        grid-template-columns: 1fr;
    }


    .news-grid{
        grid-template-columns:1fr;
    }

}


@media (max-width: 768px) {

    .guide-title{
        font-size:36px;
    }

    .guide-subtitle {
        font-size: 16px;
    }

    .guide-grid{
        grid-template-columns:1fr;
    }

    .guide-card {
        padding: 28px;
    }

}

@media (max-width: 700px) {

    .vpn-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vpn-textarea {
        padding-right: 20px;
        height: 160px;
    }

    .copy-btn {
        position: static;

        margin-top: 15px;

        width: 100%;
    }
}
