a, button {
    cursor: pointer;
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}
p a {
    color:#28a745;
}
p a:hover{
    color:#f59e0b;
}
.a:hover {
    color: #fff;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

header {
    background: #1a1a1a;;
    border-bottom: 1px solid #333;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: relative;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
}

.logo {
    font-size: 8px;
    font-weight: bold;
}
.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 60px 0 140px;
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1c2e 100%);
}
.container {max-width: 1200px; margin: 20px auto; padding: 0 20px;animation: fadeIn 1s ease-in-out;}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-title {
    font-size: 48px;
    background: linear-gradient(90deg, #00ffff, #8b5cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.center { text-align: center; margin-bottom: 20px}

.block-content {
    display: flex;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s ease forwards;
}

.block-content.home:nth-child(1) {animation-delay: 0.3s;}
.block-content.home:nth-child(3) {animation-delay: 1.1s;}
.block-content.home:nth-child(5) {animation-delay: 2s;}
.block-arrow:nth-child(2) {animation-delay: 0.7s;}
.block-arrow:nth-child(4) {animation-delay: 1.5s;}

.block-content.home:nth-child(3) {flex-direction: row-reverse;}
@keyframes fadeUp {to {opacity: 1;transform: translateY(0);}}

.block-image {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    height: 250px;
    transition: all 0.6s ease;
    border: 1px solid #333;
    cursor: pointer;
}
.block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.block-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,255,255,0.4);
}
.block-image img[src$=".svg"] {
    padding: 20px;
}
.image-overlay-text {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.65);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,255,255,0.3);
    text-shadow: 0 0 15px #00ffff;
    z-index: 2;
}

.block-text {
    flex: 1;
    font-size: 20px;
    color: #ccc;
    padding: 20px;
}
.vps {
    flex: 2;
}
.block-arrow {
    text-align: center;
    margin: 30px 0;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.block-arrow svg {
    width: 56px;
    height: 56px;
    stroke: #00ffff;
    stroke-width: 3;
    filter: drop-shadow(0 0 20px #00ffff);
    animation: arrowFloat 3s infinite ease-in-out;
}
    
@keyframes arrowFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(15px); }
}

.popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.popup.active {
    display: flex;
    opacity: 1;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1;
}
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.popup-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 728px;
    overflow-y: auto;
    border-radius: 16px;
    animation: slideIn 0.3s ease;
    background: linear-gradient(135deg, #0f1c2e 0%, #1a2b3e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
#login .popup-content, #message .popup-content {
    max-width: 400px;
}

.popup-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-header i {
    color: #3b82f6;
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    transition: color 0.3s;
    line-height: 1;
}

.popup-close:hover {
    color: #ef4444;
}

.popup-body {
    padding: 15px 30px 30px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#operation {
    position: fixed;
    height: 100%;
    text-align: center;
}

.password-input-group {
    position: relative;
    display: flex;
}

.password-input-group .form-input {
    padding-right: 45px;
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.ip {
    grid-template-columns: 3fr 1fr !important;
}
.form-actions {
    display: flex;
    justify-content: space-evenly;
    gap: 10px
}

.popup-footer {
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.popup-subtitle {
    margin: 10px;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
}
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.popup-icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.popup-icon.success {
    color: #10b981;
}

.popup-icon.error {
    color: #ef4444;
}

.popup-icon.warning {
    color: #f59e0b;
}

.popup-icon.info {
    color: #3b82f6;
}

.popup-message-text {
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    line-height: 1.5;
}

.form-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {opacity: 1; transform: scale(1.02); box-shadow: 0 5px 10px rgba(0,255,255,0.4);transform: translateY(-2px);color:#fff}
.btnprim {background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);}

.login {background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);}
.cancel, .logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a0aec0;
}

.btn-loading {justify-content: center; align-items: center; display: none;}

.btn-container {
    position: relative;
    display: inline-block;
}

.btnstart {
    padding: 20px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 2px 5px rgba(0,255,255,0.4);
    max-width: 80vW;
}

.badge-wrapper {
    position: absolute;
    top: -15px;
    right: -15px;
    transform: rotate(15deg);
    transform-origin: center;
    z-index: 10;
}

.free-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

.powered-by {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    font-style: italic;
    opacity: 0.8;
}

input:invalid, select:invalid {
    border-color: red !important;
}

#notify-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.notify {
    border-radius: 10px;
    padding: 10px;
    margin: 0 auto;
    border: 2px solid #333;
    background: #333;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: all;
}

.notify.show {
    transform: translateY(5px);
    opacity: 1;
}

.notify-error {
    color: #e53e3e;
}
.notify-success {
    border-color: green;
}

.footer {
    background: #1a202c;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
}
.language-column .footer-title {
    margin: 0;
}

.language-column {
    gap: 25px;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

.footer-links.grid-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0;
}

.footer-link {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-link::before {
    content: '›';
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.footer-link:hover::before {
    opacity: 1;
}

.lang-details {
    position: relative;
    width: 100%;
    max-width: 220px;
}

.lang-summary {
    list-style: none;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.lang-summary::-webkit-details-marker {
    display: none;
}

.lang-summary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-current-flag {
    font-size: 20px;
    margin-right: 12px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.lang-details[open] .lang-current-flag {
    transform: scale(1.1);
}

.lang-current-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.lang-arrow {
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-details[open] .lang-arrow {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #2d3748;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    margin-bottom: 5px;
    padding: 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-details[open] .lang-options {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px 0;
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-10px);
    opacity: 0;
    border-left: 3px solid transparent;
}

.lang-details[open] .lang-option {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lang-details[open] .lang-option:nth-child(1) { animation-delay: 0.05s; }
.lang-details[open] .lang-option:nth-child(2) { animation-delay: 0.1s; }
.lang-details[open] .lang-option:nth-child(3) { animation-delay: 0.15s; }
.lang-details[open] .lang-option:nth-child(4) { animation-delay: 0.2s; }
.lang-details[open] .lang-option:nth-child(5) { animation-delay: 0.25s; }


.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
    border-left-color: #3b82f6;
}

.lang-option.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

.lang-flag {
    font-size: 20px;
    margin-right: 12px;
    min-width: 24px;
    transition: transform 0.3s ease;
}

.lang-option:hover .lang-flag {
    transform: scale(1.2);
}

.lang-name {
    flex: 1;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.lang-option:hover .lang-name {
    transform: translateX(5px);
}

.lang-option.active .lang-flag {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}


@media (max-width: 1024px) {
    .block-text {
        font-size: 1.2rem;
    }
    .popup {
        height: auto;
    }
}
@media (max-width: 968px) {
    .block-image {
        min-height: 200px;
        max-height: 200px;
    }
    .block-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .block-content.home:nth-child(3) {flex-direction: column;}
    .block-content {flex-direction: column;}

    .image-overlay-text {
        font-size: 14px;
        top: 10px;
        left: 10px;
    }
    .form-grid {
        gap: 10px;
    }
    .popup {
        padding: 10px;
    }
    
    .popup-header {
        font-size: 20px;
    }
    
    .popup-body {
        padding: 10px 20px 20px;
    }
    
    .popup-footer {
        padding: 20px;
    }    
    .footer-content {
        flex-direction: column;
    }
    .lang-details {
        max-width: 100%;
    }
    .lang-options {
        position: fixed;
        bottom: 70px;
        left: 20px;
        right: 20px;
        max-height: 0;
        border-radius: 12px;
        margin-bottom: 10px;
    }
    
    .lang-details[open] .lang-options {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .lang-details[open] .lang-option {
        animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        transform: translateY(10px);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links.grid-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 20px;
    }
    
}
@media (max-width: 480px) {
    .popup-header {
        font-size: 18px;
        padding: 12px;
    }
    .popup-subtitle {
        margin: 5px;
        font-size: 14px;
    }
    .form-group input {
        padding: 8px 10px;
        font-size: 14px;
    }
    .form-group label {
        font-size: 12px;
    }
    .popup-body {
        padding: 5px 10px 10px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-section {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .footer-link {
        font-size: 13px;
    }
    .copyright {
        font-size: 12px;
        padding-top: 15px;
    }
}