:root {
    --bg-dark: #070913;
    --card-bg: rgba(20, 24, 39, 0.6);
    --accent-cyan: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.4);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 210, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.gradient-text {
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.glow-text {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 10px var(--accent-glow);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(7, 9, 19, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 2px;
}

nav ul { 
    list-style: none; 
    display: flex; 
    align-items: center; 
    gap: 25px; 
}
nav ul li a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav ul li a:hover { color: #fff; }

#auth-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}
#login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px; 
    line-height: 1;
}
#user-profile {
    display: none;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}
#user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
}
#user-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}
#logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.3s;
}
#logout-btn:hover {
    color: #ff4d4d;
}

.hero {
    position: relative;
    text-align: center;
    padding: 150px 20px 100px;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, transparent 60%);
    z-index: -1;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-inline: auto; }

.typing-container {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 25px;
    letter-spacing: 1px;
    display: flex;             
    justify-content: center;   
    align-items: center;       
    flex-wrap: wrap;           
    gap: 8px;                  
    min-height: 40px;          
}
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-cyan);
    margin-left: 2px;
    animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

.cta-btn {
    padding: 14px 32px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}
.buy-btn {
    flex: 1; padding: 12px; background-color: transparent;
    color: var(--accent-cyan); border: 1px solid var(--border-color);
    border-radius: 8px; cursor: pointer; font-size: 0.95rem; 
    font-weight: 600; transition: all 0.3s; text-align: center;
}
.buy-btn:hover {
    background-color: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}
.full-width-btn { width: 100%; }

.product-section { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; color: #fff; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.glass-card, .feature-card, .faq-item {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px 25px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card { text-align: center; }
.feature-card .icon { font-size: 3rem; margin-bottom: 15px; }
.feature-card h3 { color: #fff; margin-bottom: 10px; font-size: 1.3rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

.glass-card:hover, .feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.05);
}
.glass-card h3 { font-size: 1.5rem; color: #fff; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between;}
.price { font-size: 1.3rem; color: var(--accent-cyan); font-weight: bold; margin-bottom: 15px;}
.desc { color: var(--text-muted); margin-bottom: 25px; font-size: 0.95rem; flex-grow: 1; }
.btn-group { display: flex; gap: 10px; width: 100%; }
.btn-group.multi-btn { flex-wrap: wrap; }
.hot-badge { background: linear-gradient(45deg, #ff416c, #ff4b2b); color: white; font-size: 0.7rem; padding: 3px 8px; border-radius: 12px; }

.steps-container { display: flex; justify-content: space-around; gap: 30px; text-align: center; background: var(--card-bg); padding: 40px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.step { flex: 1; }
.step-num { width: 50px; height: 50px; background: rgba(0, 210, 255, 0.1); color: var(--accent-cyan); font-size: 1.5rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; border: 1px solid var(--border-color); }
.step h4 { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

.status-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.status-card { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.status-card.safe { border-left: 4px solid #00ea90; }
.status-card.maintenance { border-left: 4px solid #ff9900; }
.status-info h4 { color: #fff; font-size: 1.1rem; }
.status-info p { color: var(--text-muted); font-size: 0.85rem; margin-top: 5px; }
.status-badge { font-size: 0.85rem; font-weight: bold; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,0.05); }
.safe .status-badge { color: #00ea90; }
.maintenance .status-badge { color: #ff9900; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.safe .dot { background: #00ea90; box-shadow: 0 0 8px #00ea90; animation: blink 1.5s infinite alternate; }
.maintenance .dot { background: #ff9900; box-shadow: 0 0 8px #ff9900; }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; padding: 0; overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px 25px; color: #fff; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { max-height: 0; transition: max-height 0.4s ease; background: rgba(0,0,0,0.2); }
.faq-answer p { padding: 0 25px 25px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

.cart-sidebar { position: fixed; top: 0; right: -400px; width: 100%; max-width: 400px; height: 100vh; background: #0b0f19; border-left: 1px solid var(--border-color); box-shadow: -10px 0 30px rgba(0,0,0,0.8); z-index: 1001; transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 25px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { color: #fff; font-size: 1.3rem; }
.close-btn { font-size: 28px; color: var(--text-muted); cursor: pointer; transition: color 0.3s; }
.close-btn:hover { color: #ff4d4d; }
.cart-items-container { padding: 20px; flex-grow: 1; overflow-y: auto; }
.cart-item { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 15px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.item-info h4 { font-size: 1rem; color: #fff; margin-bottom: 5px;}
.item-info p { color: var(--accent-cyan); font-weight: bold; font-size: 0.9rem;}
.remove-btn { background: none; border: none; color: #ff4d4d; cursor: pointer; font-size: 1.2rem; }
.cart-footer { padding: 25px; background: #070913; border-top: 1px solid rgba(255,255,255,0.05); }
.cart-total-box { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: bold; color: #fff; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 2000; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content { width: 90%; max-width: 500px; padding: 40px; position: relative; transform: translateY(-20px); transition: transform 0.3s; }
.modal-overlay.show .modal-content { transform: translateY(0); }
.payment-option { padding: 20px; border-radius: 12px; margin-bottom: 15px; text-align: left; }
.store-pay { background: rgba(255, 153, 0, 0.05); border: 1px solid rgba(255, 153, 0, 0.2); border-left: 4px solid #ff9900; }
.bank-pay { background: rgba(0, 210, 255, 0.05); border: 1px solid var(--border-color); border-left: 4px solid var(--accent-cyan); }
.pay-title { font-weight: bold; margin-bottom: 8px; font-size: 1.05rem; }
.store-pay .pay-title { color: #ff9900; }
.bank-pay .pay-title { color: var(--accent-cyan); }
.pay-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.terms-container { margin: 20px 0; text-align: center; }

.cart-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; }
.cart-overlay.show { display: block; }
#toast { visibility: hidden; min-width: 250px; background: var(--card-bg); color: #fff; text-align: center; border: 1px solid var(--accent-cyan); border-radius: 8px; padding: 15px; position: fixed; z-index: 3000; left: 50%; bottom: 30px; transform: translateX(-50%); box-shadow: 0 5px 20px rgba(0, 210, 255, 0.2); opacity: 0; transition: all 0.4s; }
#toast.show { visibility: visible; opacity: 1; bottom: 50px; }
.floating-support-btn { position: fixed; bottom: 30px; right: 30px; background: #5865F2; color: white; border: none; border-radius: 30px; padding: 12px 24px; font-size: 1rem; font-weight: bold; cursor: pointer; box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4); z-index: 999; transition: transform 0.3s; }
.floating-support-btn:hover { transform: translateY(-5px); }

footer { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem; }
footer p { margin-bottom: 5px; }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    header { 
        flex-direction: column; 
        padding: 15px 10px; 
        gap: 12px; 
        height: auto; 
    }
    nav { width: 100%; }
    nav ul { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 10px 15px; 
    }
    #auth-container { 
        width: 100%; 
        margin-left: 0; 
        margin-top: 5px; 
        justify-content: center; 
    }
    .hero { padding: 100px 20px 60px; }
    .hero h1 { font-size: 2.2rem; }
    .typing-container { font-size: 1.15rem; }
    .steps-container { flex-direction: column; padding: 20px; }
    .step { display: flex; align-items: flex-start; text-align: left; gap: 15px; }
    .step-num { margin: 0; flex-shrink: 0; }
}