/* ================================================================
   URBAN NEON • BLUE & RED
   Dark background, cyan & magenta glow, glass-morphism
   ================================================================ */
:root {
    --bg: #0A0A1A;
    --surface: rgba(14, 14, 28, 0.8);
    --neon-cyan: #00F0FF;
    --neon-magenta: #FF0080;
    --neon-blue: #0066FF;
    --text-primary: #F0F4FF;
    --text-muted: #A0B0C0;
    --text-dim: #4A5568;
    --font-display: 'Orbitron', 'Courier New', monospace;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --glow-cyan: 0 0 15px #00F0FF, 0 0 30px #00F0FF, 0 0 60px rgba(0, 240, 255, 0.3);
    --glow-magenta: 0 0 15px #FF0080, 0 0 30px #FF0080, 0 0 60px rgba(255, 0, 128, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    min-height: 100%;
    background: var(--bg);
}
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ---- BACKGROUND: Grid + Glowing Core ---- */
.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
}
.grid-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(255, 0, 128, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: core-pulse 8s ease-in-out infinite alternate;
}
@keyframes core-pulse {
    0% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

/* ---- FLOATING NEON PARTICLES ---- */
.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.part {
    position: absolute;
    bottom: -10%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    animation: float-up var(--dur, 14s) linear var(--d, 0s) infinite;
}
.part.cyan {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}
.part.magenta {
    background: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-magenta);
}
@keyframes float-up {
    0% { opacity: 0; transform: translateX(0px) translateY(0px) scale(0.5); }
    15% { opacity: 0.9; }
    85% { opacity: 0.9; }
    100% { opacity: 0; transform: translateX(var(--drift, 30px)) translateY(-110vh) scale(1.3); }
}

.page {
    position: relative;
    z-index: 3;
    max-width: 460px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

/* ---- TOPBAR with LOGO ---- */
.topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 8px;
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    opacity: 0;
    animation: fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards,
               blink-topbar 2.8s ease-in-out 0s infinite;
}
.topbar .logo {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.7));
    animation: blink-logo 2.8s ease-in-out 0s infinite;
}

/* ---- DIVIDER (Neon Line) ---- */
.divider {
    margin: 18px 0 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    opacity: 0;
    border-radius: 2px;
    animation: fade-in 0.6s ease-out 0.5s forwards,
               blink-divider 3.2s ease-in-out 0s infinite;
}

/* ---- TITLE & TEXT ---- */
.hero {
    text-align: center;
    opacity: 0;
    animation: fade-in 0.8s ease-out 1.2s forwards;
    margin-bottom: 20px;
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    margin-bottom: 6px;
    animation: blink-text-shadow 2.8s ease-in-out 0s infinite;
}
.hero h1 .highlight {
    color: var(--neon-magenta);
    text-shadow: 0 0 25px var(--neon-magenta);
    animation: blink-text-shadow 2.8s ease-in-out 0s infinite;
}
.hero h1 .accent {
    color: var(--neon-cyan);
    text-shadow: 0 0 25px var(--neon-cyan);
    animation: blink-text-shadow 2.8s ease-in-out 0s infinite;
}
.hero p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    line-height: 1.7;
    max-width: 340px;
    margin: 8px auto 0;
}
.hero p .neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
    font-weight: 600;
}
.hero p .pink-text {
    color: var(--neon-magenta);
    text-shadow: 0 0 12px var(--neon-magenta);
    font-weight: 600;
}

/* ---- PANEL ---- */
.panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 24px 18px 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.12), inset 0 0 40px rgba(0, 240, 255, 0.02);
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 20px;
    animation: slide-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards,
               blink-rainbow 2.8s ease-in-out 0s infinite;
}
.corner-glow {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--neon-magenta);
    border-style: solid;
    border-width: 0;
    box-shadow: 0 0 15px var(--neon-magenta);
    opacity: 0.7;
    animation: blink-corner 2.8s ease-in-out 0s infinite;
}
.corner-glow.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-radius: 4px 0 0 0; }
.corner-glow.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; border-radius: 0 4px 0 0; }
.corner-glow.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 4px; }
.corner-glow.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 4px 0; }

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    padding-bottom: 8px;
}
.panel-head .brand {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    animation: blink-text-shadow 2.8s ease-in-out 0s infinite;
}
.panel-head .badge {
    border: 1px solid var(--neon-magenta);
    padding: 2px 10px;
    border-radius: 20px;
    color: var(--neon-magenta);
    text-shadow: 0 0 8px var(--neon-magenta);
    font-size: 0.6rem;
    animation: blink-corner 2.8s ease-in-out 0s infinite;
}

/* Avatar */
/* Banner / Avatar Full Width */
.avatar-wrap {
    position: relative;
    width: 100%;             /* Mengubah dari 160px menjadi 100% (penuh) */
    max-width: 100%;          /* Memenuhi seluruh lebar kotak panel */
    padding: 3px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
    margin: 0 0 16px 0;
    opacity: 0;
    animation: fade-in 0.8s ease-out 0.9s forwards, border-rotate 8s linear infinite;
}

.avatar-inner {
    width: 100%;
    padding: 2px;
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
}

.avatar-inner img {
    display: block;
    width: 100%;             /* Tetap fleksibel mengikuti lebar wadah */
    max-width: 1080px;       /* Batas lebar maksimum 1080px */
    height: auto;            /* Tinggi menyesuaikan otomatis */
    aspect-ratio: 1 / 1;     /* Memaksa rasio persegi sempurna (1080x1080) */
    object-fit: cover;       /* Memastikan isi gambar terpotong rapi tanpa gepeng */
    border-radius: 8px;
    background: #111;
}


.avatar-badge {
    position: absolute;
    bottom: -8px;
    right: 12px;
    background: var(--bg);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    z-index: 2;
    backdrop-filter: blur(4px);
    animation: blink-text-shadow 2.8s ease-in-out 0s infinite;
}
/* ---- BUTTONS NEON ---- */
.links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(10, 10, 26, 0.8);
    border: 1.5px solid var(--neon-cyan);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.12), inset 0 0 25px rgba(0, 240, 255, 0.02);
    transition: all 0.25s ease;
    opacity: 0;
    overflow: hidden;
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--btn-delay, 2.1s) forwards,
               blink-rainbow 3.0s ease-in-out 0s infinite;
}
.btn:nth-of-type(1) { --btn-delay: 2.1s; }
.btn:nth-of-type(2) { --btn-delay: 2.3s; }

.btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(4px);
}
.btn:hover::before { opacity: 0.7; }
.btn:hover {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 50px rgba(255, 0, 128, 0.3), 0 0 80px rgba(0, 240, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
}
.btn:active { transform: scale(0.96); }

.btn .icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
    flex-shrink: 0;
    background: rgba(0, 240, 255, 0.05);
    animation: blink-text-shadow 3.0s ease-in-out 0s infinite;
}
.btn .label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.btn .label-main {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
}
.btn .label-sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.6rem;
    text-transform: lowercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}
.btn .label-sub .romaji {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    font-weight: 600;
    margin-right: 4px;
}
.btn .chevron {
    color: var(--neon-cyan);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 6px var(--neon-cyan));
    animation: blink-text-shadow 3.0s ease-in-out 0s infinite;
}
.btn:hover .chevron { transform: translateX(6px); }

/* Tap Flash Effects */
.btn .flash, .btn .ring, .btn .burst {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    border-radius: inherit;
}
.btn .flash {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
    mix-blend-mode: overlay;
}
.btn .ring {
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 28px var(--neon-cyan), inset 0 0 28px rgba(0, 240, 255, 0.4);
}
.btn .burst {
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.85) 0%, rgba(255, 0, 128, 0.4) 30%, transparent 60%);
    mix-blend-mode: screen;
}
.btn:active .flash { animation: btn-flash 0.5s ease-out; }
.btn:active .ring { animation: btn-ring 0.55s ease-out; }
.btn:active .burst { animation: btn-burst 0.6s ease-out; }

@keyframes btn-flash { 0% { opacity: 0; } 15% { opacity: 0.6; } 100% { opacity: 0; } }
@keyframes btn-ring { 0% { opacity: 0.9; transform: scale(0.96); } 100% { opacity: 0; transform: scale(1.06); } }
@keyframes btn-burst { 0% { opacity: 0; transform: scale(0.4); } 20% { opacity: 0.95; } 100% { opacity: 0; transform: scale(1.7); } }

/* ---- CLOSER & FOOTER ---- */
.closer {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fade-in 0.6s ease-out 2.6s forwards;
}
.closer .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}
.closer .seal {
    font-family: var(--font-display);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    white-space: nowrap;
    padding: 0 8px;
    animation: blink-text-shadow 2.8s ease-in-out 0s infinite;
}
.footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    font-family: var(--font-display);
    text-transform: uppercase;
    opacity: 0;
    animation: fade-in 0.6s ease-out 2.8s forwards;
    flex-wrap: wrap;
    gap: 6px;
}
.footer .glow-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    opacity: 0.6;
    animation: blink-text-shadow 2.8s ease-in-out 0s infinite;
}

/* ---- KEYFRAME ANIMATIONS ---- */
@keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes slide-up { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

@keyframes blink-rainbow {
    0%, 100% { border-color: #00F0FF; box-shadow: 0 0 25px #00F0FF, 0 0 60px rgba(0, 240, 255, 0.25); }
    14% { border-color: #FF0080; box-shadow: 0 0 25px #FF0080, 0 0 60px rgba(255, 0, 128, 0.25); }
    28% { border-color: #FFD700; box-shadow: 0 0 25px #FFD700, 0 0 60px rgba(255, 215, 0, 0.25); }
    42% { border-color: #00FF88; box-shadow: 0 0 25px #00FF88, 0 0 60px rgba(0, 255, 136, 0.25); }
    57% { border-color: #AA66FF; box-shadow: 0 0 25px #AA66FF, 0 0 60px rgba(170, 102, 255, 0.25); }
    71% { border-color: #FF5500; box-shadow: 0 0 25px #FF5500, 0 0 60px rgba(255, 85, 0, 0.25); }
    85% { border-color: #00CCFF; box-shadow: 0 0 25px #00CCFF, 0 0 60px rgba(0, 204, 255, 0.25); }
}

@keyframes blink-text-shadow {
    0%, 100% { text-shadow: 0 0 20px #00F0FF, 0 0 50px rgba(0, 240, 255, 0.3); }
    14% { text-shadow: 0 0 20px #FF0080, 0 0 50px rgba(255, 0, 128, 0.3); }
    28% { text-shadow: 0 0 20px #FFD700, 0 0 50px rgba(255, 215, 0, 0.3); }
    42% { text-shadow: 0 0 20px #00FF88, 0 0 50px rgba(0, 255, 136, 0.3); }
    57% { text-shadow: 0 0 20px #AA66FF, 0 0 50px rgba(170, 102, 255, 0.3); }
    71% { text-shadow: 0 0 20px #FF5500, 0 0 50px rgba(255, 85, 0, 0.3); }
    85% { text-shadow: 0 0 20px #00CCFF, 0 0 50px rgba(0, 204, 255, 0.3); }
}

@keyframes blink-corner {
    0%, 100% { border-color: #00F0FF; box-shadow: 0 0 18px #00F0FF; }
    14% { border-color: #FF0080; box-shadow: 0 0 18px #FF0080; }
    28% { border-color: #FFD700; box-shadow: 0 0 18px #FFD700; }
    42% { border-color: #00FF88; box-shadow: 0 0 18px #00FF88; }
    57% { border-color: #AA66FF; box-shadow: 0 0 18px #AA66FF; }
    71% { border-color: #FF5500; box-shadow: 0 0 18px #FF5500; }
    85% { border-color: #00CCFF; box-shadow: 0 0 18px #00CCFF; }
}

@keyframes blink-divider {
    0%, 100% { background: linear-gradient(90deg, transparent, #00F0FF, #FF0080, transparent); box-shadow: 0 0 25px #00F0FF; }
    25% { background: linear-gradient(90deg, transparent, #FFD700, #00FF88, transparent); box-shadow: 0 0 25px #FFD700; }
    50% { background: linear-gradient(90deg, transparent, #AA66FF, #FF5500, transparent); box-shadow: 0 0 25px #AA66FF; }
    75% { background: linear-gradient(90deg, transparent, #00CCFF, #FF0080, transparent); box-shadow: 0 0 25px #00CCFF; }
}

@keyframes blink-topbar {
    0%, 100% { border-color: #00F0FF; box-shadow: 0 0 30px rgba(0, 240, 255, 0.15); }
    14% { border-color: #FF0080; box-shadow: 0 0 30px rgba(255, 0, 128, 0.15); }
    28% { border-color: #FFD700; box-shadow: 0 0 30px rgba(255, 215, 0, 0.15); }
    42% { border-color: #00FF88; box-shadow: 0 0 30px rgba(0, 255, 136, 0.15); }
    57% { border-color: #AA66FF; box-shadow: 0 0 30px rgba(170, 102, 255, 0.15); }
    71% { border-color: #FF5500; box-shadow: 0 0 30px rgba(255, 85, 0, 0.15); }
    85% { border-color: #00CCFF; box-shadow: 0 0 30px rgba(0, 204, 255, 0.15); }
}

@keyframes blink-logo {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.7)); }
    14% { filter: drop-shadow(0 0 15px rgba(255, 0, 128, 0.7)); }
    28% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7)); }
    42% { filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.7)); }
    57% { filter: drop-shadow(0 0 15px rgba(170, 102, 255, 0.7)); }
    71% { filter: drop-shadow(0 0 15px rgba(255, 85, 0, 0.7)); }
    85% { filter: drop-shadow(0 0 15px rgba(0, 204, 255, 0.7)); }
}