
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display:ital,wght@0,400;0,600;0,700&display=swap');




* {
  scrollbar-width: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
}



.auth-container {
    width: 100%;
    max-width: 380px;

    padding: 30px 25px;
    border-radius: 24px;

    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.03);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.logo {
    margin-bottom: 5px;
}

.logo img {
    width: 40vw;
    max-width: 180px;
    opacity: 0.95;
}

.auth_content {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Noto Sans Display', sans-serif;
    text-align: center;
}


/* Email авторизация — поле ввода */
.auth-email-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 0.3px;
}

.auth-email-input:focus {
    border-color: #00d4ff;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.auth-email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Сообщение об ошибке */
.auth-error {
    color: #ff8888;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.auth-button {
    width: 100%;
    margin-top: 14px;

    padding: 14px;
    border-radius: 40px;
    border: none;

    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;

    color: #fff;
    background: linear-gradient(90deg, #00d4ff, #229ED9);

    cursor: pointer;
    transition: all 0.2s ease;
}


.auth-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

.auth-button:active {
    transform: scale(0.97);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-description {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}


@media screen and (max-width: 480px) {

    .auth-container {
        width: 92%;
        max-width: 310px;

        padding: 22px 16px;
        border-radius: 20px;

        gap: 14px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .logo img {
        width: 55vw;
        max-width: 160px;
    }

    .auth_content {
        font-size: 18px;
    }

    .auth-email-input {
        font-size: 15px;
        padding: 12px 14px;
        border-radius: 30px;
    }

    .auth-button {
        font-size: 15px;
        padding: 12px;
        border-radius: 30px;
    }

    .auth-description {
        font-size: 12px;
        line-height: 1.3;
        padding: 0 5px;
    }

    .auth-error {
        font-size: 12px;
        margin-top: 8px;
    }
}

.auth-email-input {
    -webkit-appearance: none;
}





.code-digits-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0 10px;
}

.code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    color: #fff;
    font-family: monospace;
    transition: all 0.2s ease;


    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.code-digit:focus {
    border-color: #00d4ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,212,255,0.2);
}

/* Мобильная адаптация */
@media screen and (max-width: 480px) {
    .code-digits-container {
        gap: 9px;
        margin: 16px 0 8px;
    }
    .code-digit {
        width: 18px;
        height: 38px;
        font-size: 20px;
        border-radius: 12px;
    }
}

@media screen and (max-width: 360px) {
    .code-digits-container {
        gap: 6px;
    }
    .code-digit {
        width: 34px;
        height: 40px;
        font-size: 18px;
    }
}





    .spinner-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: flex;         /* включаем flex */
        justify-content: center; /* центр по горизонтали */
        align-items: center;     /* центр по вертикали */
        z-index: 9999;         /* поверх всего остального */
    }

    .spinner-text {
        margin-top: 20px;
        color: #00d4ff;
        font-size: 18px;
        font-weight: 500;
        font-family: 'Arial', sans-serif;
    }


    /* сам спиннер */
    .spinner {
        width: 50px;
        height: 50px;
        transform-origin: center;
    }


    body {
        font-family: Arial, sans-serif;
        /* background-color: #121216; */

        background: linear-gradient(
            180deg,
            #1b1b1f 0%,
            #121216 100%
        );
        margin: 0;
        padding: 0;

        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;

        overflow-y: auto;
        overflow-x: hidden;
    }

    
    .page-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        width: 110px;
        height: auto;
    }


    /* .dark-card {
        background: #121216;
    } */

  /* .dark-card {
    width: 320px;
    min-height: 85vh;

    margin: 0;
    padding: 1.5rem 1.2rem;

    background: linear-gradient(
      180deg,
      #1b1b1f 0%,
      #121216 100%
    );

    border-radius: 24px 24px 32px 32px;

    position: relative;
    overflow: hidden;

    box-shadow:
      0 10px 40px rgba(0, 0, 0, 0.6),
      inset 0 0 30px rgba(255, 255, 255, 0.02);
  }

    .dark-card {
        border-top: 3px solid #00d4ff;
        box-shadow: 
            0 -2px 6px rgba(0, 212, 255, 0.25),
            0 10px 40px rgba(0, 0, 0, 0.6);
    } */

    .info-section {
        /* outline: 2px solid red; */
        display: flex;
    }


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

    .user-photo img {
        width: 48px;
        height: 48px;
        border-radius: 20%;
        object-fit: cover;
    }

    .user-text {
        color: #fff;
        line-height: 1.4;
        font-size: 15px;
    }

    .extend-button {
        display: inline-block;
        align-self: center;
        padding: 7px 16px;
        border-radius: 20px;
        border: none;

        font-weight: 600;
        font-size: 14px;
        color: #fff;

        background: linear-gradient(
            90deg,
            #5f6487 0%,
            #7d8370 40%,
            #f2d800 100%
        );
        font-family: 'Noto Sans', sans-serif;

        box-shadow:
            0 3px 8px rgba(0,0,0,0.25),
            inset 0 1px 0 rgba(255,255,255,0.15);

        transition: all 0.2s ease;
        margin-left: auto;
        cursor: pointer;
    }


    .sub_info_section {
        display: flex;
        justify-content: center;
        align-items: center;
        /* outline: 2px solid red; */
        margin-top: 10px;
        height: 50px;
    }

    .sub_info_content {
        display: flex;
        flex-direction: column;
        align-items: center;       /* центр внутри колонки */
    }

    .sub-title-text {
        color: #E6C36A;
        font-size: 15px;
        font-family: 'Noto Sans Display', sans-serif;
        font-weight: 600;
        text-align: center;
        font-stretch: semi-condensed;
    }

    .data-end-text {
        color: #E6C36A;
        font-weight: bold ;
        text-align: center;
        font-size: 25px;
    }

    .custom-hr {
        border: none;
        height: 2px;
        background: linear-gradient(
            90deg,
            #1B1F38 3%,
            #02CBF5 54%,
            #1B1F38 98%
        );
        margin: 20px 0;
    }


    .connections-displa-sectiony {
        margin-top: 1px;
        /* outline: 2px solid red; */
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .section-title{
        font-family: 'Noto Sans Display', sans-serif;
        font-weight: lighter;
        font-size: 14px;
        color: #FFFFFF;
        text-align: center;
    }



.connections-block {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;

    align-items: flex-start;
}

.sected_server_card,
.null-sected_server_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    /* min-height: 80px; */
    border-radius: 10px;
    border: 1px solid #00d4ff40;
    background: linear-gradient(180deg, #79148A 21%, #200524 86%);
    color: #00d4ff;
} 

.sected_server_card:hover,
.null-sected_server_card:hover {
    transform: scale(1.02); /* слегка увеличиваем, но не сильно */
    border-color: #7c5cff;  /* яркая рамка */
    box-shadow: 0 3px 8px rgba(0, 212, 255, 0.3); /* лёгкая тень */
    cursor: pointer;        /* курсор меняется на руку */
}


.plus {
    font-size: 120px;
    line-height: 1;
    
}

.add-text {
    font-size: 14px;
    margin-top: 8px;
    color: #676666;
}


    .null-sected_server_card {
        color: #1c1c1c;

        height: 150px;

        border-radius: 20px;
        padding: 16px 18px;

        background: #111010;
        border: 1px solid rgba(0,212,255,0.25);

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;

        font-size: 180px;
        font-weight: 600;

        cursor: pointer;
    }


    .sected_server_card {
        color: #00d4ff;

        height: 150px;

        border-radius: 20px;
        padding: 16px 18px;

        background: #1B1F38;
        border: 1px solid rgba(0,212,255,0.25);

        /* background: linear-gradient(
            180deg,
            #79148A 21%,
            #200524 86%
        ); */

        background: #18225e;

        /* background: linear-gradient(
            160deg,
            #323a75 0%,
            #262c63 50%,
            #1b2045 100%
        ); */

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .server-emoji {
        font-size: 110px;
        margin-bottom: -10px;
    }

    .server-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .server-title {
        font-family: 'Noto Sans Display', sans-serif;
        font-weight: 700;
        color: #fff;
        font-size: 14px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 6px;
    }

    .server-title span {
        white-space: nowrap; /* чтобы текст не переносился на новую строку */
        overflow: hidden; 
        text-overflow: ellipsis; /* если текст длинный, покажет … */
    }

    .copy svg {
        width: 18px;
        height: 18px;
        display: block;
    }


    .server_protocol {
        font-size: 8px;
        color: #cfcfcf;
    }


    .recreate-protocol_button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 4px 8px;
        border-radius: 10px;
        cursor: pointer;

        margin-top: 10%;
        margin-right: 10%;
    }

    .button_icon_recreate svg {
        width: 14px;
        height: 14px;
        display: block;
    }


    @keyframes spinOnce {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(-180deg);
        }
    }


    .recreate_button:hover .button_icon_recreate svg {
        animation: spinOnce 0.7s ease forwards;
    }
    /* 👇 hover теперь общий */

    .recreate_button_text {
        color: #fff;
        font-size: 14px;
        font-family: 'Noto Sans Display', sans-serif;
        font-weight: 500;
        white-space: nowrap;
    }


    .recreate_button {
        display: flex;
        align-items: center;
        gap: 10px;

        padding: 10px 8px;
        border-radius: 12px;

        cursor: pointer;

        transition: all 0.2s ease;
    }

    /* hover */
    .recreate_button:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-1px);
    }

    /* клик */
    .recreate_button:active {
        transform: scale(0.97);
    }

    /* можно ещё glow сделать */
    .recreate_button:hover svg {
        filter: drop-shadow(0 0 6px rgba(255,255,255,0.3));
    }


    .note-card {
        position: relative;

        background: #2b2f36;

        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 14px;

        padding: 14px 16px;
        width: fit-content;

        margin: 24px auto 0 auto;

        box-shadow:
            inset 0 0 0 1px rgba(255,255,255,0.05),
            inset 0 1px 0 rgba(255,255,255,0.06),
            0 6px 16px rgba(0,0,0,0.35);
    }

    .note-icon {
        position: absolute;

        top: 10px;
        left: 10px;

        width: 18px;
        height: 18px;
    }



    .note-card ol {
        margin: 0;
        padding-left: 18px;

        color: #d6d7da;
        font-family: 'Noto Sans Display', sans-serif;
        font-size: 13px;
        line-height: 1.6;
    }

    .note-card li {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .note-card .link {
        color: #8ab4ff;
        cursor: pointer;
    }

    .icon {
        width: 14px;
        height: 14px;
        display: inline-block;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .icon.copy {
        background-image: url("copy.svg");
    }

    .icon.power {
        background-image: url("power.svg");
    }


    /*  ========================================================================== ВЫБОР СЕРВЕРА ========================================================================== */





    .header_container {
        align-items: center;
        color: white;
        text-align: center;
        font-size: 20px;

        font-family: 'Noto Sans Display', sans-serif;
        font-weight: 700;
        line-height: 1.6;
    }


    .header_container svg {
        width: 28px;
        height: 28px;
        display: block;

        color: #ffffff;
    }


    .switcher {
        position: relative;
        display: flex;
        width: 100%;
        max-width: 400px;

        background: #0f3f46;
        border-radius: 20px;
        padding: 4px;

        overflow: hidden;
        margin: 0 auto;
    }

    .slider {
        position: absolute;
        top: 4px;
        left: 4px;

        width: calc(50% - 4px);
        height: calc(100% - 8px);

        /* background: #2ea6c3; */
        background: #248299; 
        border-radius: 16px;

        transition: transform 0.3s ease;
    }

    .slider.right {
        transform: translateX(100%);
    }

    .option {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;

        padding: 12px 0;

        font-size: 18px;
        font-weight: 500;

        cursor: pointer;
        z-index: 1;

        color: #2ea6c3;
        transition: color 0.3s ease;
    }


    .option svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .option.active {
        color: #fff;
    }




    .location-title {
        color: white;
        font-size: 18px;

        text-transform: uppercase;
        font-weight: 600;
        margin-top: 25px;
        text-align: center;
        font-family: 'Noto Sans Display', sans-serif;
    }


    .servers-section {
        background: #2a2a2a;
        /* padding: 5px; */
        border-radius: 20px;

        height: 360px;
        width: 350px;

        justify-content: center; /* по горизонтали */
        align-items: center;     /* по вертикали */
        overflow: hidden;
    }

    .servers-list {
        display: flex;
        flex-direction: column;
        gap: 6px;

        max-height: 100%;
        overflow-y: auto;
        padding-right: 6px;
        padding: 12px 6px;
    }

    .servers-list::-webkit-scrollbar {
        width: 6px;
    }

    .servers-list::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    .server-card {
        display: flex;
        justify-content: space-between;
        align-items: center;

        padding: 9px 18px;
        border-radius: 18px;

        font-size: 16px;
        font-weight: 700;
        color: #fff;

        /* width: 100%; */

        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .server-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    }

    .server-card.active {
        border: 2px solid #20fe80;       /* аккуратная рамка */
        background-color: rgba(0, 204, 204, 0.1); /* лёгкая подсветка */
        transform: translateY(-5px);      /* чуть приподнятая карточка */
        position: relative;
        z-index: 2;
        transition: transform 0.2s ease, background-color 0.2s ease, border 0.2s ease;
    }


    .server-info {
        display: flex;
        flex-direction: column;
        gap: 4px;              /* расстояние между строками */
        align-items: center;     /* теперь центр по горизонтали */
        text-align: center;      /* для текста внутри элементов */
    }

    .server-online {
        display: flex;
        align-items: center;
        gap: 0px;               /* маленький gap между иконкой и числом */
        font-size: 12px;
    }

    .server-online-icon {
        width: 10px;
        height: 10px;
        background: #4cff4c;
        border-radius: 50%;
    }

    .server-limit {
        font-size: 12px;
        font-weight: 500;
        color: #a0f0e0;
        display: flex;
        gap: 5px;             /* расстояние между цифрой и иконкой */
        align-items: center;   /* выравнивание по центру по вертикали */
    }

    .limit-item {
        display: flex;
        align-items: center;
        gap: 1px;  /* расстояние между цифрой и SVG */
    }


    .confirm-btn {
        width: 100%;
        margin-top: 16px;

        padding: 14px;
        border-radius: 14px;

        font-size: 16px;
        font-weight: 600;

        border: none;
        cursor: pointer;

        background: #31c32e;
        color: #fff;

        transition: all 0.2s ease;
    }

    .confirm-btn:not(:disabled):hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }

    .confirm-btn:disabled {
        background: #555;
        color: #999;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }






    .plans-list {
        margin-top: 10%;
      display: flex;
      flex-direction: column;
      margin-bottom: 28px;
        background: #2c2f52;
      border-radius: 28px;
      border: 1px solid #3d3d3d;
      overflow: hidden;
    }

    .plan-item {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 18px 20px;
      transition: background 0.2s ease;
      border-bottom: 1px solid #767676;
      cursor: default;
    }

    .plan-item:last-child {
      border-bottom: none;
    }

    .plan-item:hover {
      background: #4f5593;
    }

    .plan-item.active {
        background: rgba(50, 101, 255, 0.18);
        border-left: 4px solid #3265ff;
        box-shadow: inset 0 0 0 1px rgba(50, 101, 255, 0.25),
                    0 6px 18px rgba(50, 101, 255, 0.15);
        transform: scale(1.03);
    }

    .method-chip.active {
        background: rgba(50, 101, 255, 0.22);
        border: 1px solid #3265ff;
        box-shadow: 0 0 10px rgba(50, 101, 255, 0.35);
        transform: translateY(-2px);
    }

    .plan-name {
      font-size: 1.1rem;
      font-weight: 600;
      color: #ffffff;
      letter-spacing: -0.2px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .plan-name::before {
      font-size: 0.7rem;
      color: #98a9bc;
      display: inline-block;
      vertical-align: middle;
    }

    .plan-price {
      font-size: 1.2rem;
      font-weight: 700;
      background: #FFFFFF;
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      letter-spacing: -0.2px;
    }

    .tariff-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      padding: 20px;
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.12);

    }



    .payment-section {
      margin-top: 8px;
      padding-top: 24px;
    }

    .payment-title {
      font-weight: 600;
      font-size: 0.95rem;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: #6b7f9b;
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .payment-title::before {
      font-size: 1rem;
      filter: none;
    }

    .payment-methods {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      row-gap: 14px;
    }

    .method-chip {
      background: #2c2f52;
      border-radius: 60px;
      padding: 8px 18px;
      font-size: 0.85rem;
      font-weight: 500;
      color: #ffffff;
      transition: all 0.2s;
      border: 1px solid #e2e8f2;
      backdrop-filter: blur(2px);
      display: inline-flex;
      align-items: center;
      gap: 8px;

      text-transform: uppercase;
    }

    .method-chip span {
      font-size: 1.1rem;
    }

    .method-chip:hover {
      border-color: #cbdbe0;
      transform: translateY(-1px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    }



.bottom-bar {
    position: fixed;

    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    min-width: 300px;
    height: 56px;

    padding: 0 16px;

    /* 🎯 чистое стекло */
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    display: flex;
    align-items: center;
    justify-content: space-around;

    z-index: 100;

    /* мягкая, но не жирная тень */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


.bottom-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    color: #8b93a7;
    font-size: 12px;
    cursor: pointer;

    text-align: center;
    transition: all 0.2s ease;
}

.bottom-item:hover {
    color: #00d4ff;
    transform: translateY(-1px);
}

.bottom-item .icon {
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-item .icon svg {
    width: 20px;
    height: 20px;
}




.bottom-item svg {
  stroke: #999;
  transition: 0.2s;
}

.bottom-item.active svg {
  stroke: white;
}

/* текст */
.bottom-item span {
  font-size: 12px;
  margin-top: 4px;
  color: #999;
}

.bottom-item.active span {
  color: #007bff;
}












        /* Основная карточка — минималистичная, без лишних эффектов */
        /* .referral-card {
            max-width: 960px;
            width: 100%;
            background: #13131a;
            border-radius: 28px;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
            overflow: hidden;
        } */

        /* Сетка */
        .referral-grid {
            display: flex;
            gap: 2rem;
            padding: 2rem;
        }

        .info-side {
            flex: 2;
            min-width: 240px;
        }


        

        .qr-side {
            flex: 1;
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        /* Статистика */
        .stats-pill {
            display: flex;
            gap: 2rem;
            background: #1e1e28;
            padding: 0.7rem 1.5rem;
            border-radius: 40px;
            width: fit-content;
            margin-bottom: 1.8rem;
        }

        .stat-item {
            font-weight: 500;
            color: #e0e0e0;
            font-size: 1rem;
        }

        .stat-number {
            font-weight: 800;
            font-size: 1.8rem;
            color: #f5b042;
            margin-left: 8px;
            display: inline-block;
        }

        /* Заголовок "Поделитесь реферальной ссылкой" */
        .share-title {
            font-weight: 600;
            font-size: 1.2rem;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
        }

        .share-title i {
            font-size: 1.1rem;
            color: #f5b042;
        }

        /* Поле ввода + кнопка */
        .link-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 1.5rem;
        }

        .ref-input {
            flex: 4;
            background: #0a0a0f;
            border: 1px solid #2c2c3a;
            border-radius: 60px;
            padding: 12px 18px;
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 0.75rem;
            color: #f0f0f0;
            font-weight: 500;
            outline: none;
            transition: 0.2s;
        }

        .ref-input:focus {
            border-color: #f5b042;
            background: #101018;
        }

        .copy-button {
            background: #2c3e66;
            border: none;
            padding: 12px 24px;
            border-radius: 60px;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            color: white;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
        }

        .copy-button:hover {
            background: #1f2e4a;
        }

        .copy-button:active {
            transform: scale(0.97);
        }

        /* Подарочный блок */
        .gift-block {
            background: rgba(245, 176, 66, 0.1);
            border-left: 4px solid #f5b042;
            border-radius: 16px;
            padding: 14px 18px;
            margin: 1rem 0 1.8rem 0;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .gift-icon {
            font-size: 2rem;
            color: #f5b042;
        }

        .gift-text {
            font-weight: 600;
            font-size: 0.95rem;
            color: #e0e0e0;
            line-height: 1.4;
        }

        .gift-text strong {
            color: #f5b042;
        }

        /* Соцсети */
        .social-label {
            font-weight: 500;
            font-size: 0.9rem;
            color: #a0a0b0;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .social-icons-row {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }

        .social-circle {
            background: #1e1e2a;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: #ccc;
            transition: all 0.2s;
            cursor: pointer;
        }

        .social-circle:hover {
            background: #2e77b7;
            color: #13131a;
            transform: translateY(-2px);
        }

        /* QR-блок */
        .qr-container {
            text-align: center;
            width: 100%;
        }

        #qrcode {
            display: flex;
            justify-content: center;
            align-items: center;
            background: white;
            border-radius: 20px;
            padding: 12px;
            margin: 0 auto;
            width: fit-content;
        }

        #qrcode canvas,
        #qrcode img {
            /* border-radius: 12px; */
            width: 140px;
            height: 140px;
        }

        .qr-caption {
            font-size: 0.7rem;
            color: #a0a0b0;
            margin-top: 12px;
            font-weight: 500;
        }

        /* Тосты */
        .toast-notify {
            position: fixed;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%);
            background: #1f2937;
            color: #f5b042;
            font-weight: 600;
            padding: 10px 24px;
            border-radius: 40px;
            font-size: 0.9rem;
            z-index: 1200;
            transition: opacity 0.2s;
            opacity: 0;
            pointer-events: none;
            font-family: 'Inter', sans-serif;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        /* Адаптивность */
        @media (max-width: 700px) {
            .referral-grid {
                flex-direction: column;
                padding: 1.5rem;
                gap: 1.5rem;
            }
            .stats-pill {
                width: 100%;
                justify-content: space-between;
            }
            .link-group {
                flex-direction: column;
            }
            .copy-button {
                justify-content: center;
            }
            .qr-side {
                order: 2;
            }
            .toast-notify {
                white-space: normal;
                text-align: center;
                max-width: 80%;
            }
        }

        @media (max-width: 480px) {
            .stat-number {
                font-size: 1.5rem;
            }
            .gift-text {
                font-size: 0.85rem;
            }
        }






/* Info Page Styles */
.info-page {
    padding: 0 16px;
}

.guide-card {
    background: #1e1e2a;
    border-radius: 20px;
    padding: 16px 20px;
    margin: 12px 0 20px 0;
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.guide-list {
    margin: 0;
    padding-left: 20px;
    color: #d6d7da;
    font-family: 'Noto Sans Display', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.guide-list li {
    margin-bottom: 10px;
}

.guide-list code {
    background: #2d2d3a;
    padding: 2px 6px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    color: #00d4ff;
}

.note-tip {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #a0f0e0;
}

.apps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 20px 0;
}

.location-title svg {
    width: 28px;
    height: 28px;
    display: block;

    color: #ffffff;
}

.app-card {
    flex: 1;
    min-width: 140px;
    background: #1e1e2a;
    border-radius: 18px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.app-card:hover {
    transform: translateY(-3px);
    background: #2a2a38;
    border-color: #00d4ff;
    box-shadow: 0 8px 20px rgba(0,212,255,0.15);
}

.app-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px auto;  /* горизонтальное центрирование + отступ снизу */
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon svg {
    width: 100%;
    height: 100%;
    display: block;

    color: #00d4ff;
}


.app-name {
    font-weight: 600;
    font-size: 15px;
    color: white;
    margin-bottom: 6px;
}

.app-desc {
    font-size: 11px;
    color: #9aa3b8;
}

.terms-block {
    margin: 20px 0 30px 0;
    text-align: center;
}

.terms-button {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 40px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #00d4ff;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;

    margin-bottom: 8px;
}

.terms-button:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.02);
}

.terms-note {
    margin-top: 14px;
    font-size: 11px;
    color: #8b93a7;
}






/* Оверлей без изменений, но можно чуть уменьшить паддинг */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px; /* уменьшил с 20px */
}


/* Окно — шире, с меньшими отступами */
.modal-content {
    background: #1a1a24;
    border-radius: 28px;        /* чуть уменьшил скругление для большей вместимости */
    width: 100%;
    max-width: 680px;           /* увеличено с 500px */
    max-height: 85vh;           /* чуть выше */
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 212, 255, 0.15);
    animation: modalFadeIn 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Хедер — компактнее */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 11px;         /* уменьшено */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00d4ff;
}

/* Крестик */
.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    color: #aaa;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

/* Тело с прокруткой — уменьшенные паддинги */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 5px 8px;         /* уменьшено */
}

.terms-pre {
    font-family: 'Inter', 'Noto Sans', sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #e6e6f0;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    background: #0e0e14;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;   /* или просто удалить строку с justify */
}

.terms-content {
    font-family: 'Inter', 'Noto Sans', sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #e6e6f0;
    background: #0e0e14;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.terms-content h4 {
    margin: 18px 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    color: #00d4ff;
}

.terms-content p {
    margin: 8px 0;
}

.terms-content strong {
    color: #ffaa66;
    font-weight: 700;
}

.terms-content ul {
    margin: 6px 0;
    padding-left: 24px;
}

.terms-content li {
    margin: 4px 0;
}

.terms-content a {
    color: #00d4ff;
    text-decoration: none;
}

.terms-content a:hover {
    text-decoration: underline;
}

.modal-body::-webkit-scrollbar {
    width: 3px;
}
.modal-body::-webkit-scrollbar-track {
    background: #2a2a36;
    border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: #5a5a70;
    border-radius: 3px;
}


.global-logout-button {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 30, 40, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff8888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.global-logout-button:hover {
  background: rgba(255, 80, 80, 0.3);
  transform: scale(1.05);
  border-color: #ff5555;
}

.global-logout-button svg {
  stroke: #ff8888;
}

.global-logout-button:hover svg {
  stroke: #ffffff;
}



.info-section, .sub_date_block, .connections-displa-sectiony {
    padding: 0 12px !important;
}