.wifi-page {
    position: relative;
    background-image: url('../images/index/index_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wifi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(10, 10, 10, 0.9) 100%);
    backdrop-filter: blur(5px);
}

.wifi-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 168, 85, 0.3);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.wifi-icon {
    font-size: 64px;
    color: #d4a855;
    margin-bottom: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

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

.wifi-card h2 {
    color: #d4a855;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wifi-credentials {
    background: rgba(212, 168, 85, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 168, 85, 0.2);
}

.wifi-item {
    margin-bottom: 20px;
}

.wifi-item:last-child {
    margin-bottom: 0;
}

.wifi-item label {
    display: block;
    color: #f5e6d3;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.wifi-item label i {
    margin-right: 8px;
    color: #d4a855;
}

.wifi-value-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 12px 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(212, 168, 85, 0.3);
    transition: all 0.3s ease;
}

.wifi-value-group:hover {
    border-color: #d4a855;
    background: rgba(0, 0, 0, 0.5);
}

.wifi-value-group span {
    color: #f5e6d3;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: linear-gradient(135deg, rgba(212, 168, 85, 0.9) 0%, rgba(196, 152, 69, 0.9) 100%);
    border: 2px solid rgba(212, 168, 85, 0.5);
    color: #1a1a2e;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.copy-btn:hover::before {
    left: 100%;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #d4a855 0%, #c49845 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 168, 85, 0.3);
}

.copy-btn i {
    transition: transform 0.3s ease;
}

.copy-btn:hover i {
    transform: scale(1.1);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #34A853 0%, #2ecc71 100%);
    border-color: #34A853;
    color: white;
}

.wifi-qr {
    margin: 30px 0;
    text-align: center;
    padding: 25px;
    background: rgba(212, 168, 85, 0.1);
    border: 1px solid rgba(212, 168, 85, 0.2);
    border-radius: 15px;
}

.wifi-qr p {
    color: #f5e6d3;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.qr-container {
    display: inline-block;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.qr-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 168, 85, 0.2);
}

.wifi-qr img {
    width: 180px;
    height: 180px;
    display: block;
    border-radius: 8px;
}

.wifi-instructions {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 168, 85, 0.2);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(5px);
}

.wifi-instructions h3 {
    color: #d4a855;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wifi-instructions h3 i {
    color: #f5e6d3;
    font-size: 22px;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(212, 168, 85, 0.2);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(212, 168, 85, 0.9) 0%, rgba(196, 152, 69, 0.9) 100%);
    border: 2px solid rgba(212, 168, 85, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.step-text {
    color: #f5e6d3;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #d4a855 0%, #c49845 100%);
    color: #1a1a2e;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 10002;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: #1a1a2e;
    font-size: 20px;
}

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

@media (max-width: 768px) {
    .wifi-page {
        padding: 80px 15px 30px;
    }
    
    .wifi-card {
        padding: 30px 25px;
    }
    
    .wifi-icon {
        font-size: 54px;
    }
    
    .wifi-card h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .wifi-credentials {
        padding: 20px;
    }
    
    .wifi-value-group {
        padding: 10px 10px 10px 16px;
    }
    
    .wifi-value-group span {
        font-size: 16px;
    }
    
    .copy-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .wifi-instructions {
        padding: 20px;
    }
    
    .step-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .wifi-card {
        padding: 25px 20px;
    }
    
    .wifi-icon {
        font-size: 48px;
    }
    
    .wifi-card h2 {
        font-size: 24px;
    }
    
    .wifi-credentials {
        padding: 18px;
    }
    
    .wifi-value-group {
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }
    
    .wifi-value-group span {
        width: 100%;
        text-align: center;
        font-size: 16px;
        word-break: break-all;
    }
    
    .copy-btn {
        width: 100%;
        height: 48px;
    }
    
    .copy-btn::after {
        content: ' Копирай';
        font-size: 15px;
        font-weight: 600;
    }
    
    .step {
        gap: 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .step-text {
        font-size: 14px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .wifi-page {
        min-height: 100vh;
        padding: 60px 20px 20px;
    }
    
    .wifi-card {
        padding: 20px;
    }
    
    .wifi-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .wifi-card h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .wifi-credentials {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .wifi-instructions {
        padding: 15px;
    }
    
    .step {
        padding: 5px 0;
    }
}