* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --tiktok: #ff0050;
    --vina: #00d4ff;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    padding: 20px;
    color: white;
    position: relative;
    overflow-x: hidden;
    background: #0a0a1a;
}

/* ===== NỀN ĐỘNG CAO CẤP ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Gradient nền chính với hiệu ứng chuyển động */
.animated-bg .gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 80%, rgba(251, 191, 36, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 40%);
    animation: gradientPulse 8s ease-in-out infinite alternate;
}

@keyframes gradientPulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* ===== ORBS 3D ===== */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.5), rgba(139, 92, 246, 0.1) 70%);
    top: -200px;
    left: -200px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.1) 70%);
    bottom: -150px;
    right: -150px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3), rgba(79, 70, 229, 0.1) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), rgba(79, 70, 229, 0.05) 70%);
    top: 10%;
    right: 5%;
    animation: orbFloat4 22s ease-in-out infinite;
}

.orb-5 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.05) 70%);
    bottom: 10%;
    left: 5%;
    animation: orbFloat5 16s ease-in-out infinite;
}

.orb-6 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), rgba(251, 191, 36, 0.05) 70%);
    top: 30%;
    left: 30%;
    animation: orbFloat6 28s ease-in-out infinite;
}

/* Orbs animation */
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.9); }
    75% { transform: translate(50px, -30px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -40px) scale(1.15); }
    66% { transform: translate(40px, 50px) scale(0.85); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { transform: translate(-50%, -50%) scale(1.3) rotate(180deg); }
}

@keyframes orbFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-70px, 40px) scale(1.2); }
}

@keyframes orbFloat5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -60px) scale(1.15); }
}

@keyframes orbFloat6 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(30px, -30px) scale(1.1) rotate(90deg); }
}

/* ===== SÓNG ÁNH SÁNG ===== */
.wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: waveMove 15s linear infinite;
}

.wave:nth-child(1) {
    width: 300%;
    height: 300%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.wave:nth-child(2) {
    width: 250%;
    height: 250%;
    animation-duration: 20s;
    animation-delay: -5s;
    background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
}

.wave:nth-child(3) {
    width: 200%;
    height: 200%;
    animation-duration: 30s;
    animation-delay: -10s;
    background: radial-gradient(ellipse at 50% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
}

@keyframes waveMove {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ===== STARFIELD (SAO) ===== */
.starfield {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.1; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* ===== GLOW RING ===== */
.glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: ringPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.glow-ring:nth-child(1) {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
    border-color: rgba(79, 70, 229, 0.1);
}

.glow-ring:nth-child(2) {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -3s;
    border-color: rgba(139, 92, 246, 0.08);
}

.glow-ring:nth-child(3) {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
    border-color: rgba(236, 72, 153, 0.06);
}

@keyframes ringPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* ===== PARTICLES NÂNG CẤP ===== */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    animation: particleMove linear infinite;
}

.particle-small {
    width: 2px;
    height: 2px;
    opacity: 0.3;
}

.particle-medium {
    width: 4px;
    height: 4px;
    opacity: 0.5;
}

.particle-large {
    width: 6px;
    height: 6px;
    opacity: 0.7;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

@keyframes particleMove {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(10px, -10px) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(200px, -200px) scale(0);
        opacity: 0;
    }
}

/* ===== LIGHT BEAM ===== */
.light-beam {
    position: absolute;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: beamMove 12s linear infinite;
    pointer-events: none;
}

.light-beam:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.light-beam:nth-child(2) {
    top: 50%;
    animation-delay: -4s;
}

.light-beam:nth-child(3) {
    top: 80%;
    animation-delay: -8s;
}

@keyframes beamMove {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ===== GLASS EFFECT ===== */
.server-card,
.network-card,
.result-card,
.step,
.toast {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.server-card:hover {
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 40px rgba(79, 70, 229, 0.2) !important;
}

/* ===== PHẦN CÒN LẠI GIỮ NGUYÊN ===== */
/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 3em;
}

.header h1 {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2em;
    color: var(--gray);
    margin-top: 10px;
}

/* Server Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.server-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-light);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
}

.server-card:hover::before {
    opacity: 1;
}

.server-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.3);
}

.server-icon {
    font-size: 4em;
    margin-bottom: 15px;
    position: relative;
}

.server-card h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    position: relative;
}

.server-location {
    color: var(--gray);
    font-size: 0.9em;
    margin-bottom: 15px;
    position: relative;
}

.server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    position: relative;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: var(--success);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: var(--danger);
}

.status-text {
    font-size: 0.9em;
    color: var(--gray);
}

.server-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85em;
    color: var(--gray);
    margin-bottom: 20px;
    position: relative;
}

.btn-get-server {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-get-server:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* Network Selection */
.network-selection {
    margin-bottom: 30px;
    animation: slideUp 0.5s ease;
}

.network-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
}

.network-card h2 {
    text-align: center;
    margin-bottom: 5px;
    color: white;
}

.network-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 25px;
}

.network-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.network-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.network-option:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-light);
}

.network-option.selected {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.15);
}

.network-option.selected-tiktok {
    border-color: var(--tiktok);
    background: rgba(255, 0, 80, 0.15);
}

.network-option.selected-vina {
    border-color: var(--vina);
    background: rgba(0, 212, 255, 0.15);
}

.network-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.network-option h4 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: white;
}

.network-desc {
    color: var(--gray);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.network-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    background: var(--primary);
    color: white;
}

/* Result Section */
.result-section {
    animation: slideUp 0.5s ease;
}

.result-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.result-header h2 {
    font-size: 1.5em;
    color: white;
}

.selected-info {
    color: var(--gray);
    font-size: 0.9em;
    margin-top: 5px;
}

.selected-info span {
    display: inline-block;
    margin-right: 8px;
    padding: 4px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85em;
}

.selected-info .server-tag {
    background: var(--primary);
    color: white;
}

.selected-info .network-tag-tiktok {
    background: var(--tiktok);
    color: white;
}

.selected-info .network-tag-vina {
    background: var(--vina);
    color: var(--dark);
}

.btn-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-close:hover {
    color: white;
}

/* Link Container */
.link-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.link-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.main-link-box {
    border: 2px solid rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.05);
}

.link-box label {
    display: block;
    font-size: 0.85em;
    color: var(--gray);
    margin-bottom: 8px;
}

.main-link-box label {
    color: #ff6b35 !important;
    font-weight: 600;
}

.link-wrapper {
    display: flex;
    gap: 10px;
}

.link-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    min-width: 0;
}

.link-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-copy {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-shadowrocket {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-shadowrocket:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

.btn-shadowrocket:active {
    transform: scale(0.95);
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-download,
.btn-qr,
.btn-share,
.btn-change {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.btn-download {
    background: var(--success);
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-qr {
    background: var(--warning);
    color: var(--dark);
}

.btn-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-share {
    background: var(--primary);
    color: white;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.btn-change {
    background: var(--dark-secondary);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-change:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

/* Guide Section */
.guide-section {
    margin-bottom: 40px;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: white;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    color: white;
}

.step-content h4 {
    margin-bottom: 5px;
    color: white;
}

.step-content p {
    color: var(--gray);
    font-size: 0.9em;
}

/* QR Modal */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.qr-content {
    background: var(--dark-secondary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.qr-content h3 {
    margin-bottom: 20px;
    color: white;
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-container img {
    max-width: 100%;
}

.btn-close-qr {
    padding: 10px 30px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-qr:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 20px;
}

.footer p {
    color: var(--gray);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
    cursor: pointer;
}

.footer-links a:hover {
    color: white;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark-secondary);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    animation: slideUp 0.3s ease;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .server-grid {
        grid-template-columns: 1fr;
    }
    
    .network-options {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .link-wrapper {
        flex-direction: column;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .qr-content {
        padding: 20px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-shadowrocket {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Apps Section */
.apps-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.apps-section h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: white;
}

/* OS Tabs */
.os-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.os-tab {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.os-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.os-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* OS Content */
.os-content {
    display: none;
    animation: slideUp 0.3s ease;
}

.os-content.active {
    display: block;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.app-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.app-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
}

.app-name {
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.btn-app-action {
    width: 100%;
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    font-weight: 600;
}

.btn-app-action:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-app-copy {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.btn-app-copy:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Note Box */
.note-box {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--gray);
    margin-top: 15px;
}

.note-box strong {
    color: #ff6b35;
}

/* Link Description */
.link-description {
    color: var(--gray);
    font-size: 0.9em;
    margin-bottom: 12px;
}

/* Small buttons */
.btn-qr-small {
    padding: 12px 16px;
    background: var(--warning);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
}

.btn-qr-small:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-reset {
    padding: 12px 16px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
}

.btn-reset:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.btn-apple {
    padding: 12px 16px;
    background: #555555;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
}

.btn-apple:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(85, 85, 85, 0.3);
}

.btn-shadowrocket-copy {
    padding: 12px 16px;
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
}

.btn-shadowrocket-copy:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

/* Responsive cho app grid */
@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .link-wrapper {
        flex-wrap: wrap;
    }
    
    .link-wrapper .btn-copy,
    .link-wrapper .btn-shadowrocket-copy,
    .link-wrapper .btn-qr-small,
    .link-wrapper .btn-reset,
    .link-wrapper .btn-apple {
        flex: 1;
        min-width: 80px;
        font-size: 0.8em;
        padding: 10px 12px;
    }
    
    .os-tabs {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

/* Guide Header */
.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-header h3 {
    font-size: 1.3em;
    color: white;
    margin: 0;
}

.btn-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-guide-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .btn-guide-link {
        justify-content: center;
    }
}
/* Thêm vào cuối file CSS */

/* Network Support */
.network-support {
    font-size: 0.8em;
    color: var(--gray);
    margin: 8px 0 12px 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.network-support i {
    margin-right: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .network-support {
        font-size: 0.7em;
        padding: 4px 8px;
    }
}
/* QR Modal - Cập nhật */
.qr-content {
    background: var(--dark-secondary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
}

.qr-content h3 {
    margin-bottom: 5px;
    color: white;
    font-size: 1.3em;
}

.qr-subtitle {
    color: var(--gray);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-code-container img {
    max-width: 100%;
    width: 220px;
    height: 220px;
}

.qr-info {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
    text-align: left;
}

.qr-info p {
    color: var(--gray);
    font-size: 0.85em;
    margin: 0;
}

.qr-info strong {
    color: var(--primary-light);
}

.qr-actions {
    display: flex;
    gap: 10px;
}

.btn-copy-qr {
    flex: 1;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-copy-qr:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-close-qr {
    flex: 1;
    padding: 10px 20px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-close-qr:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 480px) {
    .qr-actions {
        flex-direction: column;
    }
}
/* ===== NÚT MUA VPN VIP ===== */
.vip-button-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.btn-vip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(247, 151, 30, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-vip:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(247, 151, 30, 0.6);
}

.btn-vip:active {
    transform: scale(0.95);
}

.btn-vip .vip-icon {
    font-size: 22px;
}

.btn-vip .vip-badge {
    background: #ff0000;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hiệu ứng sparkle khi hover */
.btn-vip::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-vip:hover::before {
    opacity: 1;
}

/* Responsive cho nút VIP */
@media (max-width: 480px) {
    .btn-vip {
        padding: 12px 20px;
        font-size: 15px;
        gap: 8px;
    }
    
    .btn-vip .vip-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
}
/* ===== WARNING NOTICE ===== */
.warning-notice {
    margin-top: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border: 2px solid #ffc107;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    animation: slideInNotice 0.5s ease;
}

.warning-notice .warning-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: pulseWarning 2s infinite;
}

.warning-notice .warning-content {
    color: #ffe082;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.warning-notice .warning-content strong {
    color: #fff;
}

.warning-notice .warning-content strong:last-child {
    color: #81c784;
}

@keyframes slideInNotice {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseWarning {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive cho Warning */
@media (max-width: 480px) {
    .warning-notice {
        padding: 12px 15px;
        flex-direction: row;
        gap: 10px;
    }
    
    .warning-notice .warning-icon {
        font-size: 22px;
    }
    
    .warning-notice .warning-content {
        font-size: 13px;
    }
}
/* ===== ADMIN PANEL ===== */
.admin-toggle {
    margin-top: 15px;
    text-align: center;
}

.btn-admin-toggle {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-admin-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.admin-panel {
    margin-top: 20px;
    animation: slideInNotice 0.3s ease;
}

.admin-card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.admin-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 5px;
}

.admin-sub {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 20px;
}

.admin-group {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid #667eea;
}

.admin-group:last-child {
    margin-bottom: 0;
}

.admin-group h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}

.admin-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.admin-row:last-child {
    margin-bottom: 0;
}

.admin-row label {
    color: #ccc;
    font-size: 13px;
    min-width: 100px;
    font-weight: 500;
}

.admin-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.admin-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
}

.admin-input::placeholder {
    color: #666;
}

.btn-admin-save {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-admin-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-admin-save:active {
    transform: scale(0.95);
}

.admin-status {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.admin-status.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #81c784;
}

.admin-status.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ef9a9a;
}

@media (max-width: 768px) {
    .admin-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-row label {
        min-width: auto;
    }
    
    .admin-input {
        width: 100%;
    }
    
    .btn-admin-save {
        width: 100%;
    }
}

/* ===== WARNING NOTICE ===== */
.warning-notice {
    margin-top: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border: 2px solid #ffc107;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    animation: slideInNotice 0.5s ease;
}

.warning-notice .warning-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: pulseWarning 2s infinite;
}

.warning-notice .warning-content {
    color: #ffe082;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.warning-notice .warning-content strong {
    color: #fff;
}

.warning-notice .warning-content strong:last-child {
    color: #81c784;
}

@keyframes slideInNotice {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseWarning {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== VIP BUTTON ===== */
.vip-button-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.btn-vip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(247, 151, 30, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-vip:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(247, 151, 30, 0.6);
}

.btn-vip:active {
    transform: scale(0.95);
}

.btn-vip .vip-icon {
    font-size: 22px;
}

.btn-vip .vip-badge {
    background: #ff0000;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.btn-vip::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-vip:hover::before {
    opacity: 1;
}

@media (max-width: 480px) {
    .btn-vip {
        padding: 12px 20px;
        font-size: 15px;
        gap: 8px;
    }
    
    .btn-vip .vip-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .warning-notice {
        padding: 12px 15px;
        flex-direction: row;
        gap: 10px;
    }
    
    .warning-notice .warning-icon {
        font-size: 22px;
    }
    
    .warning-notice .warning-content {
        font-size: 13px;
    }
}

/* ===== QR MODAL ===== */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.qr-modal.active {
    display: flex;
}

.qr-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.qr-content h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}

.qr-subtitle {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 20px;
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
    display: inline-block;
}

.qr-code-container img {
    width: 200px;
    height: 200px;
}

.qr-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    margin: 15px 0;
}

.qr-info p {
    color: #ccc;
    font-size: 13px;
    margin: 0;
}

.qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-copy-qr {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-copy-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-close-qr {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-close-qr:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .qr-content {
        padding: 25px;
    }
    
    .qr-code-container img {
        width: 150px;
        height: 150px;
    }
}
/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast.success {
    background: rgba(76, 175, 80, 0.9);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.toast.error {
    background: rgba(244, 67, 54, 0.9);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.toast.info {
    background: rgba(33, 150, 243, 0.9);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.toast.sync {
    background: rgba(255, 193, 7, 0.9);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #1a1a2e;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}