:root {
    --primary: #38bdf8;
    --bg: #020617;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { 
    background-color: var(--bg); 
    color: var(--text-main); 
    overflow-x: hidden;
    min-height: 100vh; 
}

nav { position: fixed; width: 100%; padding: 20px 0; z-index: 1000; background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-container { max-width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; }
.logo { font-size: 24px; font-weight: 800; }
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-weight: 600; font-size: 14px; transition: 0.3s; }
.btn-nav { background: var(--primary); color: #000 !important; padding: 8px 20px; border-radius: 50px; font-weight: 700; }

.hero { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    background: radial-gradient(circle at center, #1e40af 0%, #020617 80%); 
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.4);
    z-index: 1;
    animation: overlayFade 1.5s ease-in-out;
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 20px; margin-top: 60px; }

.hero h1 { 
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 25px;
    background: linear-gradient(
        to right, 
        #f8fafc 20%, 
        #38bdf8 40%, 
        #38bdf8 60%, 
        #f8fafc 80%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite, fadeInEntrance 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero h1 span { 
    background: none;
    -webkit-text-fill-color: var(--primary); 
}

.hero p { margin-bottom: 40px; color: var(--text-dim); font-size: 1.1rem; line-height: 1.6; }

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(8px); z-index: 2000; padding: 20px; }
.modal-content { background: #0f172a; margin: 5vh auto; border-radius: 30px; position: relative; border: 1px solid rgba(255,255,255,0.1); animation: slideUp 0.4s ease; }
.promo-card { max-width: 400px; padding: 40px; text-align: center; }
.badge { background: rgba(56, 189, 248, 0.1); color: var(--primary); padding: 6px 15px; border-radius: 50px; font-size: 12px; font-weight: 800; display: inline-block; margin-bottom: 15px; }
.promo-box { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 15px; border: 1px dashed var(--primary); margin: 20px 0; font-weight: 800; font-size: 1.2rem; }
.promo-box span { color: var(--primary); }

.modal-large { max-width: 1000px; padding: 40px; height: 90vh; overflow-y: auto; }
.close-btn { position: absolute; right: 20px; top: 15px; font-size: 42px; font-weight: 400; cursor: pointer; color: var(--text-dim); line-height: 1; z-index: 10; }

.category-tabs { display: flex; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.btn-category { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-dim); padding: 8px 18px; border-radius: 50px; cursor: pointer; font-weight: 600; transition: 0.2s; }
.btn-category.active { background: var(--primary); color: #000; border-color: var(--primary); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 25px; }
.pkg-card { background: var(--card-bg); padding: 25px; border-radius: 20px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.price { display: block; color: #4ade80; font-size: 1.3rem; font-weight: 800; margin: 15px 0; }
.btn-primary { background: var(--primary); color: #000; padding: 14px 32px; border: none; border-radius: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }

.stok-iframe-container {
    width: 100%;
    height: 75vh;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
}

.stok-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cart-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 15px; margin-bottom: 10px; }
.cart-item h5 { font-size: 14px; margin: 0; }
.cart-item span { color: #4ade80; font-weight: 700; }

@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.fade-in {
    opacity: 0;
    animation: fadeInEntrance 1s ease-out forwards;
}

.hero-content p { animation-delay: 0.6s; }
.hero-btns { animation-delay: 0.9s; }

@keyframes fadeInEntrance {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes overlayFade {
    from { background: rgba(2, 6, 23, 1); }
    to { background: rgba(2, 6, 23, 0.4); }
}

@keyframes shine {
    to { background-position: 200% center; }
}

.footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 20px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-info p {
    color: var(--text-dim);
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer ul li a:hover {
    color: var(--primary);
}

.footer-social .social-icons a {
    display: inline-block;
    color: #000;
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-info, .footer-links, .footer-social {
        margin-bottom: 20px;
    }
}

.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: rgba(30, 64, 175, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid var(--primary);
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.music-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.music-btn.playing {
    background: var(--primary);
    color: #000;
}

#music-icon { font-size: 18px; }

.testimonials span { color: var(--primary); }

.upload-box {
    border: 2px dashed var(--primary);
    border-radius: 20px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(56, 189, 248, 0.05);
}

.upload-box:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-5px);
}

.plus-icon {
    font-size: 50px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.upload-box p {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
}

.testi-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.fullscreen-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
    transition: transform 0.3s ease;
}

.fullscreen-overlay.active {
    display: flex;
}

#authModal .modal-content {
    max-width: 400px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 30px;
}

#auth-form h2, #user-profile h2 {
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.auth-input-group {
    margin-bottom: 15px;
}

.auth-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.history-item:hover {
    transform: translateX(5px);
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.2);
}

.history-info h4 {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.history-info p {
    font-size: 11px;
    color: var(--text-dim);
}

.status-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-logout {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #ff4444;
    color: white;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

#auth-section .btn-primary {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#auth-section .btn-primary:hover {
    color: #ffffff !important;
    opacity: 0.9;
    transform: translateY(-2px);
}

#btn-checkout-final {
    pointer-events: auto !important;
    position: relative;
    z-index: 10001 !important;
    background: var(--primary);
    border: none;
    border-radius: 12px;
}

#price-display {
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: var(--text-main);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        background: #0f172a;
        display: flex !important;
        flex-direction: column;
        padding: 100px 20px 20px 20px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        border-left: 1px solid var(--primary);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0 !important;
        width: 100%;
        display: block !important;
    }

    .nav-links a {
        font-size: 18px;
        color: #ffffff !important;
        display: block;
        padding: 10px;
        border-radius: 8px;
    }

    #nav-cart {
        margin-top: 20px !important;
        padding: 10px;
        justify-content: flex-start;
    }

    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


    .logo {
        font-size: 20px;
    }

    .hero {
        height: 80vh;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .modal {
        padding: 10px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px !important;
        border-radius: 20px;
    }

    .modal-large {
        height: 85vh;
        padding: 25px 15px !important;
    }

    .close-btn {
        right: 15px;
        top: 10px;
        font-size: 32px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pkg-card {
        padding: 15px;
    }

    .pkg-card h3 {
        font-size: 14px;
    }

    .price {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
    }

    .stok-iframe-container {
        height: 60vh;
    }

    .category-tabs {
        gap: 5px;
    }

    .btn-category {
        padding: 6px 12px;
        font-size: 11px;
    }

    .music-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 12px;
    }

    #music-text {
        display: none;
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        background: rgba(2, 6, 23, 0.95) !important;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        z-index: 10002 !important;
        position: relative;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        height: 100vh !important;
        width: 70% !important;
        background: #0f172a !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 100px 30px !important;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10001 !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        visibility: hidden;
    }

    .nav-links.active {
        right: 0 !important;
        visibility: visible;
    }

    .nav-links li {
        margin: 15px 0 !important;
        display: block !important;
        width: 100%;
    }
}

#packageModal .close-btn {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    z-index: 9999;
    
    background: rgba(30, 41, 59, 0.9);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#packageModal .close-btn:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.1);
}

.modal-cancel {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.cancel-card {
    background: #111827;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 30px;
    border-radius: 20px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cancel-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 15px;
}

.btn-confirm-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
}

.btn-keep {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--text-dim);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.btn-qty {
    background: var(--primary);
    border: none;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-qty:hover { transform: scale(1.1); }

.qty-val {
    font-weight: 800;
    min-width: 15px;
    text-align: center;
    color: var(--text-main);
    font-size: 14px;
}

.promo-toast{
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 90%;
    max-width: 700px;
    
    background: linear-gradient(145deg,#1e293b,#0f172a);
    color: #f8fafc;
    
    padding: 16px 25px;
    
    border-radius: 14px;
    border: 1px solid rgba(56,189,248,0.35);
    
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    
    transition: all 0.45s ease;
    opacity: 0;
    
    z-index: 99999;
}

.promo-toast.show{
    top: 25px;
    opacity: 1;
}

.promo-toast.hide{
    top: -120px;
    opacity: 0;
}

.switch { position: relative; display: inline-block; width: 34px; height: 18px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #334155; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 12px; width: 12px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #38bdf8; }
input:checked + .slider:before { transform: translateX(16px); }

#closedModal {
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    background: rgba(2, 6, 23, 0.85);
}

#closedModal .modal-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

#closedModal .modal-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(239, 68, 68, 0.1);
    filter: blur(40px);
    border-radius: 50%;
}

#closedModal h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.5px;
}

#closedModal p {
    font-size: 0.95rem;
    line-height: 1.6;
}

#closedModal .btn-primary {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

#closedModal .btn-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

