/* --- CSS CƠ BẢN --- */
html, body { min-height:100%; margin:0; padding:0; font-family: Arial, sans-serif; }
body { 
    background: #222 url('pawel-czerwinski-UKSC-TQE7TA-unsplash.jpg') no-repeat center center fixed; 
    background-size: cover; 
    background-attachment: scroll;
    color:#fff; 
    display:flex; 
    justify-content:center; 
    align-items:flex-start; 
    padding: 20px;             
    padding-bottom: 100px;     
    box-sizing: border-box; 
    min-height: 100vh;
}

/* --- SHOP GRID STYLE --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Tự động chia cột */
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.product-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hiệu ứng khi là Tool của mình */
.product-card.is-mine {
    border: 2px solid #00c4ff;
    background: rgba(0, 196, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 196, 255, 0.2);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}
.badge-free { background: #28a745; color: white; }
.badge-busy { background: #dc3545; color: white; }
.badge-done { background: #6c757d; color: white; }
.badge-mine { background: #00c4ff; color: black; box-shadow: 0 0 10px #00c4ff; }

.card-icon { font-size: 40px; margin-bottom: 10px; color: #ffcc00; }
.card-title { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 5px; }

.card-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 13px;
    color: #ccc;
    text-align: left;
}
.card-info div { margin-bottom: 4px; display: flex; justify-content: space-between; }
.card-timer { font-weight: bold; color: #ffdd57; font-size: 14px; margin-top: 5px; }

.card-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    margin-top: auto;
    transition: 0.2s;
}
.btn-rent { background: linear-gradient(45deg, #28a745, #218838); color: white; }
.btn-rent:hover { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4); }
.btn-disabled { background: #444; color: #888; cursor: not-allowed; }

/* HIỆU ỨNG KÍNH MỜ (OVERLAY) */
.overlay { 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.05);
    padding: 30px; 
    border-radius: 20px; 
    width: 100%; 
    max-width: 1100px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- TIÊU ĐỀ NEON --- */
h1 {
    text-align: center; font-size: 32px; text-transform: uppercase; letter-spacing: 3px;
    margin-bottom: 5px; color: #fff;
    text-shadow: 0 0 10px rgba(0, 196, 255, 0.8), 0 0 20px rgba(0, 196, 255, 0.6), 0 0 40px rgba(0, 196, 255, 0.4);
    animation: flicker 3s infinite alternate;
}
h3 {
    text-align: center; color: #ffdd57; font-size: 14px; font-weight: normal;
    margin-top: 0; margin-bottom: 25px; opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 221, 87, 0.3);
}

@keyframes flicker { 
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.8; }
}

/* NÚT TÌM KIẾM (BẢN HOÀN THIỆN) */
.btn-glow {
    padding: 8px 20px; font-size: 13px; border: none; border-radius: 50px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #000; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: pulse-yellow 3s infinite;
}
.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #ffe066 0%, #f1c40f 100%);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.6);
}
@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(241, 196, 15, 0); }
    100% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0); }
}

/* NÚT ZALO */
.zalo-contact {
    position: fixed; bottom: 20px; right: 20px;
    background-color: #0068FF; color: #fff; text-decoration: none;
    padding: 12px 25px; border-radius: 50px; font-family: Arial, sans-serif; font-weight: bold;
    z-index: 9999; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 104, 255, 0.5); transition: all 0.3s ease;
    animation: pulse-blue 2s infinite;
}
.zalo-contact:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 104, 255, 0.7); animation: none; }
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 104, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

/* ADMIN & UTILS */
.admin-panel{margin-top:20px;background: rgba(0,0,0,0.3);padding:15px;border-radius:10px;}
.admin-btn{padding:5px 10px;border:none;border-radius:5px;cursor:pointer;background:#ff9800;color:#fff;}
.copy-btn { margin-left: 8px; cursor: pointer; color: #00c4ff; display: inline-block; vertical-align: middle; transition: transform 0.2s; }
.copy-btn:hover { color: #fff; transform: scale(1.2); }

@keyframes flashGreen {
    0% { background-color: rgba(40, 167, 69, 0); }
    50% { background-color: rgba(40, 167, 69, 0.8); box-shadow: 0 0 20px #28a745; }
    100% { background-color: rgba(40, 167, 69, 0); }
}
.highlight-active {
    animation: flashGreen 3s ease-in-out;
    border: 2px solid #28a745 !important;
}

/* --- CSS POPUP DARK MODE --- */
.popup {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px);
    justify-content: center; align-items: center; z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}
.popup-content {
    background: #1e1e1e; padding: 25px; border-radius: 20px;
    width: 90%; max-width: 450px; text-align: center; color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
    position: relative; animation: scaleUp 0.3s ease-in-out;
}
.popup-content h3 {
    margin-top: 0; color: #fff; font-size: 22px; margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px;
}
.package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.package-item {
    background: #2b2b2b; border: 2px solid #444; border-radius: 12px; padding: 15px 10px;
    cursor: pointer; transition: all 0.2s ease; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.package-item:hover { border-color: #888; transform: translateY(-2px); }
.package-item.selected {
    border-color: #28a745; background: rgba(40, 167, 69, 0.15);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}
.package-item.selected .pkg-price { color: #28a745; }
.badge-hot {
    position: absolute; top: -8px; right: -5px;
    background: linear-gradient(45deg, #ff357a, #fff172); color: #000;
    font-size: 10px; font-weight: bold; padding: 2px 8px; border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); z-index: 1;
}
.pkg-time { font-size: 16px; font-weight: bold; color: #eee; margin-bottom: 5px; }
.pkg-price { font-size: 14px; color: #aaa; font-weight: 600; }
.popup-buttons { display: flex; gap: 15px; margin-top: 15px; }
.btn-action { flex: 1; padding: 12px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 15px; transition: 0.2s; }
.btn-close { background: #333; color: #ccc; }
.btn-close:hover { background: #444; color: #fff; }
.btn-confirm { 
    background: linear-gradient(90deg, #28a745, #218838); color: white; 
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}
.btn-confirm:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ACCORDION */
.bypass-section { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.accordion {
    background: rgba(40,167,69,0.8); color: #fff; cursor: pointer; padding: 15px 20px;
    width: 100%; border: none; text-align: left; outline: none; font-size: 18px;
    font-weight: bold; border-radius: 10px; margin-top: 10px; transition: 0.3s;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.accordion:hover { background: rgba(33, 136, 56, 0.9); }
.accordion::after { content: '\25BC'; font-size: 14px; transition: transform 0.3s; }
.accordion.active::after { transform: rotate(180deg); }
.panel {
    padding: 0 15px; display: none; background-color: rgba(255,255,255,0.05); 
    overflow: hidden; border-radius: 0 0 10px 10px; margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.1); border-top: none;
}
.service-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 5px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.service-row:last-child { border-bottom: none; }
.rent-btn { background: #ffc107; color: #000; border: none; padding: 5px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.rent-btn:hover { background: #e0a800; }

/* MARQUEE NEON STYLE */
.marq-box {
    width: 100%; overflow: hidden; padding: 12px 0;
    background: rgba(0, 255, 85, 0.05); 
    border-top: 1px solid rgba(0, 255, 85, 0.4);
    border-bottom: 1px solid rgba(0, 255, 85, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 85, 0.15);
    margin-bottom: 20px; position: relative;
}
.marq-box::before, .marq-box::after {
    content: ""; position: absolute; top: 0; width: 50px; height: 100%; z-index: 2; pointer-events: none;
}
.marq-box::before { left: 0; background: linear-gradient(to right, rgba(34,34,34,1), transparent); }
.marq-box::after { right: 0; background: linear-gradient(to left, rgba(34,34,34,1), transparent); }
.marq-text {
    display: inline-block; white-space: nowrap; padding-left: 100%;
    animation: slide 18s linear infinite;
    font-family: 'Segoe UI', sans-serif; font-size: 16px; font-weight: bold;
    color: #ccff00; text-shadow: 0 0 10px rgba(204, 255, 0, 0.7);
    text-transform: uppercase; letter-spacing: 1px;
}
.marq-box:hover .marq-text { animation-play-state: paused; cursor: default; }
@keyframes slide { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- CÁC PHẦN CSS BỔ SUNG (CHO MOBILE & HIỆU ỨNG MỚI) --- */
.glow-animation {
    color: #fff;
    text-shadow: 0 0 5px #0ff;
    animation: glow 1s ease-in-out infinite alternate;
}
@keyframes glow {
    from { text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff; }
    to { text-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #0ff, 0 0 80px #0ff; }
}

.btn-glow-blue {
    padding: 8px 20px; font-size: 13px; border: none; border-radius: 50px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: #fff; font-weight: 800; text-transform: uppercase; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
    transition: all 0.3s; animation: pulse-blue-btn 3s infinite;
}
.btn-glow-blue:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 6px 20px rgba(0, 196, 255, 0.6); }
@keyframes pulse-blue-btn {
    0% { box-shadow: 0 0 0 0 rgba(0, 114, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 114, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 114, 255, 0); }
}

.neon-header-blue {
    text-align: center; font-size: 32px; text-transform: uppercase; letter-spacing: 3px;
    margin-bottom: 20px; color: #fff !important; font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 196, 255, 0.8), 0 0 20px rgba(0, 196, 255, 0.6);
    animation: flicker 3s infinite alternate;
}

/* --- RESPONSIVE CHO DI ĐỘNG --- */
@media (max-width: 600px) {
    .package-grid { grid-template-columns: 1fr; }
    .popup-content { width: 85%; padding: 20px; max-height: 90vh; overflow-y: auto; }
    .btn-action { padding: 14px; font-size: 16px; }
    body { padding: 10px; padding-bottom: 80px; }

    /* Fix nút Zalo */
    .zalo-contact span { display: none; }
    .zalo-contact {
        padding: 0; width: 48px; height: 48px;
        justify-content: center; border-radius: 50%;
        right: 15px; bottom: 15px;
    }

    /* Fix Bảng giá Bypass */
    .service-row { flex-direction: column; align-items: flex-start !important; gap: 5px; }
    .service-row span:first-child {
        font-weight: bold; line-height: 1.4; border-bottom: 1px dashed rgba(255,255,255,0.1);
        width: 100%; padding-bottom: 5px; margin-bottom: 5px;
    }
    .service-row span:last-child {
        width: 100%; display: flex; justify-content: space-between; align-items: center; color: #ffcc00;
    }
    .overlay { padding: 15px !important; }
    .accordion { font-size: 16px; padding: 12px; }
}