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

body {
    font-family: 'Inter', sans-serif;
    background: #050505;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.session-check-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid #0ff;
    border-radius: 50%;
    animation: spinRing 1s linear infinite;
}

.loading-text {
    color: #0ff;
    font-size: 14px;
    letter-spacing: 2px;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.split-layout {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.brand-side {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at 30% 20%, #0a0c14 0%, #030305 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 45px 45px;
    animation: gridMove 25s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(45px, 45px); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.25), transparent);
    border-radius: 50%;
    filter: blur(5px);
    animation: particleFloat 14s infinite ease-in-out;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    15% { opacity: 0.4; }
    85% { opacity: 0.2; }
    100% { transform: translateY(-120px) translateX(60px); opacity: 0; }
}

.brand-container {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    animation: fadeSlideUp 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 550px;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-wrapper {
    position: relative;
    width: 380px;
    max-width: 85%;
    height: auto;
    margin-bottom: 1.8rem;
    cursor: pointer;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5));
    transition: filter 0.3s ease;
}

.logo-wrapper.glowing {
    animation: logoPulseGlow 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes logoPulseGlow {
    0% { filter: drop-shadow(0 0 0 rgba(0, 255, 255, 0)); }
    25% { filter: drop-shadow(0 0 35px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 70px rgba(138, 43, 226, 0.7)); }
    50% { filter: drop-shadow(0 0 45px rgba(0, 255, 255, 1)) drop-shadow(0 0 90px rgba(138, 43, 226, 0.9)); }
    100% { filter: drop-shadow(0 0 0 rgba(0, 255, 255, 0)); }
}

.logo-img.exit {
    animation: logoExitSmooth 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.logo-img.enter {
    animation: logoEnterSmooth 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.2) forwards;
}

@keyframes logoExitSmooth {
    0% { opacity: 1; transform: scale(1) rotateY(0deg); filter: brightness(1) blur(0px); }
    100% { opacity: 0; transform: scale(0.5) rotateY(-90deg); filter: brightness(0.2) blur(8px); }
}

@keyframes logoEnterSmooth {
    0% { opacity: 0; transform: scale(1.5) rotateY(90deg); filter: brightness(0) blur(10px); }
    40% { filter: brightness(1.6) drop-shadow(0 0 50px rgba(0, 255, 255, 1)); }
    100% { opacity: 1; transform: scale(1) rotateY(0deg); filter: brightness(1) blur(0px); }
}

.logo-wrapper {
    animation: floatingBreathing 5s ease-in-out infinite;
}

@keyframes floatingBreathing {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.brand-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(125deg, #ffffff 0%, #8bd4ff 30%, #c084fc 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 1rem;
    font-weight: 400;
    color: #9aaec9;
    letter-spacing: 2px;
    border-top: 1px solid rgba(0, 255, 255, 0.35);
    display: inline-block;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.security-video-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.security-video-container.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.video-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
    border-radius: 24px;
}

.security-video {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.form-side {
    flex: 1;
    background: rgba(8, 12, 22, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: fadeSlideRight 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes fadeSlideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    margin: 0 1.5rem;
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-header h2 {
    font-size: 2.3rem;
    font-weight: 700;
    background: linear-gradient(125deg, #fff, #0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-header p {
    color: #7c8fb0;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #0ff;
    font-size: 24px;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.input-field {
    width: 100%;
    background: rgba(18, 24, 38, 0.75);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(0, 255, 255, 0.25);
    border-radius: 28px;
    padding: 1rem 1rem 1rem 56px;
    font-size: 1rem;
    font-weight: 500;
    color: #f2f6ff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.input-field:focus {
    border-color: #0ff;
    box-shadow: 0 0 22px rgba(0, 255, 255, 0.35), inset 0 0 8px rgba(0, 255, 255, 0.1);
    background: rgba(12, 18, 30, 0.9);
}

.input-field:hover {
    border-color: rgba(0, 255, 255, 0.55);
}

.input-field::placeholder {
    color: #6a7c9e;
    font-weight: 400;
}

.toggle-pw {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8f9fbf;
    font-size: 24px;
    transition: all 0.2s;
    user-select: none;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-pw:hover {
    color: #0ff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.error-msg {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    margin-left: 1rem;
    color: #ff6b8b;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.error-msg.show {
    opacity: 1;
    transform: translateY(0);
}

.shake-effect {
    animation: shakeInput 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.login-button, .daftar-button {
    width: 100%;
    padding: 1rem;
    border-radius: 44px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-button {
    background: linear-gradient(105deg, #0a66c2, #5f2caf, #bc3ce6);
    background-size: 200% auto;
    border: none;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 255, 0.2);
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 26px rgba(0, 255, 255, 0.6);
    background-position: right center;
}

.daftar-button {
    background: linear-gradient(105deg, #1e2a3a, #2c3e50);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #0ff;
    margin-top: 1rem;
}

.daftar-button:hover {
    transform: translateY(-3px);
    border-color: #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    color: white;
}

.secure-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #7c8db0;
    display: flex;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.market-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #03050b;
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.market-overlay.active {
    opacity: 1;
    visibility: visible;
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(5, 8, 18, 0.95);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    z-index: 10;
}

.market-header h1 {
    font-size: 1.8rem;
    background: linear-gradient(125deg, #0ff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.back-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #0ff;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    color: #0ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.back-btn:hover {
    background: #0ff;
    color: #03050b;
    box-shadow: 0 0 12px #0ff;
}

.rak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    padding: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.rak-card {
    background: rgba(12, 18, 32, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    overflow: hidden;
    transition: all 0.3s ease;
}

.rak-card:hover {
    transform: translateY(-8px);
    border-color: #0ff;
    box-shadow: 0 20px 35px -10px rgba(0, 255, 255, 0.3);
}

.rak-image {
    height: 300px;
    background: linear-gradient(135deg, #101a2c, #03060e);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.rak-logo-wrapper {
    width: 260px;
    position: relative;
}

.rak-logo-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.9));
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.rak-card:hover .rak-logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 45px rgba(0, 255, 255, 1));
}

.rak-info {
    padding: 1.5rem;
}

.rak-title { font-size: 1.5rem; font-weight: 700; color: #eef5ff; }
.rak-desc { color: #9aaec9; font-size: 0.85rem; margin: 0.5rem 0; line-height: 1.4; }
.rak-price { font-size: 1.6rem; font-weight: 800; background: linear-gradient(135deg, #0ff, #b77eff); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0.6rem 0; }
.detail-list { font-size: 0.75rem; color: #7e8fb0; padding-left: 1rem; margin: 0.5rem 0; }
.detail-list li { margin: 4px 0; }
.beli-button {
    width: 100%;
    background: linear-gradient(95deg, #00c3ff, #8a2be2);
    border: none;
    padding: 0.9rem;
    border-radius: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}
.beli-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px #0ff;
}

@media (max-width: 900px) {
    .split-layout { flex-direction: column; overflow-y: auto; }
    .brand-side { min-height: auto; padding: 1.5rem; }
    .logo-wrapper { width: 260px; }
    .rak-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); padding: 1.5rem; }
    .rak-image { height: 260px; }
    .rak-logo-wrapper { width: 200px; }
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
.premium-toast { animation: toastSlideIn 0.35s ease forwards; }

.audio-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s;
    font-size: 12px;
    color: #0ff;
}
.audio-control:hover {
    border-color: #0ff;
    background: rgba(0, 255, 255, 0.2);
}
