* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f8f9fc;
    color: #1e293b;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== ANIMASI LATAR BELAKANG ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
}
.blob1 { width: 500px; height: 500px; background: #e0e7ff; top: -150px; left: -100px; }
.blob2 { width: 400px; height: 400px; background: #cffafe; bottom: -100px; right: -100px; animation-delay: -5s; }
.blob3 { width: 350px; height: 350px; background: #fae8ff; top: 40%; left: 50%; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 80px 20px 50px;
    position: relative;
    z-index: 2;
}

.logo-badge {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #6366f1;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

header p {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 400;
}

/* ===== KAD ALATAN ===== */
.tools {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

/* Kesan cahaya mengikut tetikus (Mouse Spotlight) */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(99, 102, 241, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
    pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card.active:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #0f172a;
    z-index: 1;
}

.card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    z-index: 1;
}

.card-btn {
    margin-top: 20px;
    font-weight: 600;
    color: #6366f1;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 1;
    font-size: 0.9rem;
}

/* ===== COMING SOON (BLUR & SHARP TAG) ===== */
.card.coming-soon {
    background: rgba(255, 255, 255, 0.4);
    border: 1px dashed rgba(139, 92, 246, 0.3);
}

.card.coming-soon::before {
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(139, 92, 246, 0.15), transparent 40%);
}

.card.coming-soon:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.1);
}

/* RAHSIA: Blurry but readable untuk semua elemen DALAM kad, KECUALI .status-tag */
.card.coming-soon > *:not(.status-tag) {
    filter: blur(3px);
    opacity: 0.75;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Apabila hover, blur kurangkan sikit supaya nampak lebih jelas */
.card.coming-soon:hover > *:not(.status-tag) {
    filter: blur(0.5px);
    opacity: 0.95;
}

.status-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
    text-transform: uppercase;
    z-index: 3; /* Pastikan sentiasa di atas */
    /* Tiada filter blur, jadi ia kekal sharp */
}

/* ===== NOTICE & FOOTER ===== */
.notice {
    max-width: 1000px;
    margin: 40px auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 4px solid #6366f1;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.notice h3 {
    margin-bottom: 10px;
    color: #0f172a;
}

.notice p {
    color: #64748b;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 40px;
}

#adminBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #64748b;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 100;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

#adminBtn:hover {
    color: #6366f1;
    border-color: #6366f1;
}

/* ===== POPUP ===== */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.popup-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.popup-content p {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-content input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8f9fc;
    color: #1e293b;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}
.popup-content input:focus { border-color: #6366f1; background: white; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }

.popup-content button {
    padding: 12px 25px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    margin: 5px;
    font-family: 'Poppins', sans-serif;
}

.main-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.main-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(99, 102, 241, 0.4); }

.secondary-btn {
    background: #f1f5f9;
    color: #64748b;
}
.secondary-btn:hover { background: #e2e8f0; }

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
    header h1 { font-size: 2.2rem; }
    .tools { grid-template-columns: 1fr; }
}