@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.85);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}
.water-wave-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 C150,90 350,-40 500,40 C650,120 900,20 1200,50 L1200,120 L0,120 Z" fill="%233b82f6" fill-opacity="0.3"/></svg>');
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 50% 100px;
    animation: wave 4s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.water-wave-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,30 C200,100 400,0 600,60 C800,120 1000,10 1200,40 L1200,120 L0,120 Z" fill="%2360a5fa" fill-opacity="0.25"/></svg>');
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 50% 70px;
    animation: wave 3s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite reverse;
}

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

html,
body {
    height: 100%;
    width: 100%;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background Glow */
.bg-glow-1 {
    position: fixed;
    top: 20%;
    left: 15%;
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 50%;
    filter: blur(160px);
    pointer-events: none;
}
.bg-glow-2 {
    position: fixed;
    bottom: 20%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: rgba(29, 78, 216, 0.06);
    border-radius: 50%;
    filter: blur(160px);
    pointer-events: none;
}

/* MAIN CONTAINER - TANPA BOX/CARD, TAPI POSISI TETAP */
.main-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 92vh;
    max-height: 700px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER - MENTOK ATAS */
.header {
    flex-shrink: 0;
    padding: 1.25rem 0 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(30, 41, 59, 0.4);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.25);
    flex-shrink: 0;
    background: #090d16;
}
.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.header-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.03em;
}
.header-sub {
    font-size: 0.5rem;
    color: #64748b;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header-btn {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid #1e293b;
    color: #3b82f6;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.header-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: #3b82f6;
}
.header-badge {
    font-size: 0.5rem;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid #1e293b;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.header-badge .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* CONTENT - DI TENGAH (FLEX CENTER) */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}
.content-area::-webkit-scrollbar {
    width: 4px;
}
.content-area::-webkit-scrollbar-track {
    background: transparent;
}
.content-area::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
}

/* FOOTER - MENTOK BAWAH */
.footer {
    flex-shrink: 0;
    padding: 0.75rem 0 1.25rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(30, 41, 59, 0.3);
    flex-wrap: wrap;
    gap: 0.4rem;
}
.footer-copy {
    font-size: 0.55rem;
    color: #475569;
}
.footer-secure {
    font-size: 0.5rem;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}
.footer-secure i {
    margin-right: 0.25rem;
}

/* TITLE */
.title-area {
    text-align: center;
}
.main-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.main-title span {
    color: #3b82f6;
}
.main-sub {
    font-size: 0.55rem;
    color: rgba(59, 130, 246, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    margin-top: 0.15rem;
}

/* STEP INDICATOR */
.step-indicator {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 380px;
}
.step-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    transition: all 0.3s;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569;
}
.step-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}
.step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 900;
    flex-shrink: 0;
}
.step-item.active .step-num {
    background: #3b82f6;
    color: #020617;
}
.step-item.inactive .step-num {
    background: #1e293b;
    color: #475569;
}

/* ALERT */
.alert {
    display: none;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.7rem;
    gap: 0.6rem;
    align-items: flex-start;
    border: 1px solid transparent;
}
.alert.show {
    display: flex;
}
.alert.success {
    background: rgba(59, 130, 246, 0.07);
    border-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}
.alert.error {
    background: rgba(244, 63, 94, 0.07);
    border-color: rgba(244, 63, 94, 0.15);
    color: #fca5a5;
}
.alert i {
    margin-top: 2px;
}
.alert-title {
    font-weight: 700;
    display: block;
    margin-bottom: 1px;
}
.alert-msg {
    opacity: 0.85;
}

/* FORM */
.form-group {
    width: 100%;
    max-width: 420px;
}
.form-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}
.input-wrap {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 0.8rem;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid #1e293b;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
    outline: none;
}
.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}
.form-input::placeholder {
    color: #475569;
}

/* BUTTONS */
.btn-primary {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(59, 130, 246, 0.35);
}
.btn-primary:active {
    transform: translateY(0px);
}

.btn-secondary {
    background: transparent;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.3rem 0.6rem;
}
.btn-secondary:hover {
    color: #3b82f6;
}

.btn-reset {
    width: 100%;
    max-width: 420px;
    background: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-reset:hover {
    background: rgba(30, 41, 59, 0.8);
    color: white;
    border-color: #334155;
}

/* TARGET EMAIL BOX */
.target-box {
    width: 100%;
    max-width: 420px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    text-align: center;
}
.target-box-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
}
.target-box-email {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3b82f6;
    font-family: 'SF Mono', monospace;
    margin-top: 1px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* RESULT */
.result-box {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.result-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.15);
}
.result-title {
    font-size: 1rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.02em;
}
.result-sub {
    font-size: 0.65rem;
    color: #94a3b8;
    text-align: center;
}
.result-email-box {
    width: 100%;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    padding: 0.8rem 1.1rem;
}
.result-email-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
}
.result-email-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3b82f6;
    font-family: 'SF Mono', monospace;
    word-break: break-all;
    margin-top: 2px;
}
.result-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.5rem;
    color: rgba(59, 130, 246, 0.6);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(30, 41, 59, 0.3);
}

.hidden {
    display: none !important;
}
.w-full {
    width: 100%;
}
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.gap-2 {
    gap: 0.5rem;
}
.gap-3 {
    gap: 0.75rem;
}
.gap-4 {
    gap: 1rem;
}
.mt-1 {
    margin-top: 0.25rem;
}
.text-center {
    text-align: center;
}

@media (max-width: 640px) {
    .main-container {
        max-width: 100%;
        padding: 0 1.25rem;
        height: 96vh;
        max-height: none;
    }
    .header {
        padding: 0.75rem 0 0.5rem 0;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    .content-area {
        padding: 1rem 0 0.75rem 0;
        gap: 1rem;
    }
    .footer {
        padding: 0.5rem 0 0.75rem 0;
        flex-direction: column;
        text-align: center;
    }
    .main-title {
        font-size: 1.3rem;
    }
    .step-indicator {
        max-width: 100%;
    }
    .step-item {
        font-size: 0.5rem;
        padding: 0.35rem 0.4rem;
    }
    .bg-glow-1,
    .bg-glow-2 {
        width: 250px;
        height: 250px;
    }
}

/* MODAL */
.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: linear-gradient(145deg, rgba(9, 13, 22, 0.98) 0%, rgba(2, 6, 23, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 20px;
}
.modal-box .border-b {
    border-color: rgba(30, 41, 59, 0.3);
}
.btn-3d {
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.4);
}
