* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    color: #e0e0e0;
    padding: 0;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 105, 180, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 191, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== HEADER ===== */
header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.15), rgba(138, 43, 226, 0.15));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 2.8em;
    font-weight: 800;
    background: linear-gradient(135deg, #ff69b4, #da70d6, #ba55d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: 2px;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* ===== WARNING ===== */
.warning {
    text-align: center;
    color: #ff4757;
    font-weight: 600;
    margin-bottom: 40px;
    padding: 14px 24px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 12px;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

/* ===== TOOLS BAR ===== */
.tools-bar {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

#searchInput {
    padding: 14px 24px;
    width: 380px;
    max-width: 100%;
    border-radius: 50px;
    border: 1px solid rgba(255, 105, 180, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95em;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#searchInput:focus {
    border-color: rgba(255, 105, 180, 0.5);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

#randomBtn {
    padding: 14px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff69b4, #ba55d3);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

#randomBtn:hover {
    box-shadow: 0 6px 25px rgba(255, 105, 180, 0.4);
    transform: translateY(-2px);
}

#randomBtn:active {
    transform: translateY(0);
}

/* ===== SECTIONS ===== */
.section {
    margin-bottom: 50px;
}

.section h2 {
    text-align: center;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 28px;
    color: #fff;
    position: relative;
    padding-bottom: 14px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #ba55d3);
    border-radius: 3px;
}

/* ===== SITE CARDS ===== */
.site-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.site-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #ba55d3, #8a2be2);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.site-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 105, 180, 0.3);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 105, 180, 0.25);
}

.site-card:hover::before {
    opacity: 1;
}

.site-card a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 1.15em;
    font-weight: 700;
    display: inline-block;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.site-card:hover a {
    color: #ff69b4;
}

.site-card p {
    margin: 10px 0 0;
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

/* ===== FOOTER ===== */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, #1e1e2f, #2a2a40);
    margin: auto;
    padding: 40px 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 420px;
    text-align: center;
    border-radius: 20px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 105, 180, 0.05);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h2 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-size: 0.95em;
}

.modal-content button {
    margin: 8px;
    padding: 12px 32px;
    font-size: 0.95em;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

#submitPassword {
    background: linear-gradient(135deg, #ff69b4, #ba55d3);
    color: white;
    width: 80%;
}

#submitPassword:hover {
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    transform: translateY(-2px);
}

#yesBtn {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: white;
    min-width: 100px;
}

#yesBtn:hover {
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
    transform: translateY(-2px);
}

#noBtn {
    background: linear-gradient(135deg, #ff1744, #ff5252);
    color: white;
    min-width: 100px;
}

#noBtn:hover {
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
    transform: translateY(-2px);
}

input[type="password"] {
    padding: 14px 18px;
    font-size: 1em;
    width: 80%;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="password"]:focus {
    border-color: rgba(255, 105, 180, 0.5);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.15);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0c29;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 105, 180, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 105, 180, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        padding: 35px 15px 30px;
    }

    header h1 {
        font-size: 2em;
    }

    .container {
        padding: 25px 15px;
    }

    .site-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .site-card {
        padding: 20px 14px;
    }

    .site-card a {
        font-size: 1em;
    }

    .section h2 {
        font-size: 1.3em;
    }

    #searchInput {
        width: 100%;
    }
}
