:root {
    --omni-red: #e60012;
    --omni-red-dark: #b8000e;
    --omni-black: #111111;
    --omni-dark: #1c1d22;
    --omni-gray: #697180;
    --omni-soft: #f6f7fb;
    --omni-border: rgba(17, 17, 17, 0.08);
    --omni-white: #ffffff;
    --omni-shadow: 0 28px 80px rgba(15, 18, 32, 0.12);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--omni-black);
    overflow: hidden;
}

a {
    text-decoration: none;
}

.portal-page {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(230, 0, 18, 0.10), transparent 32%),
        radial-gradient(circle at bottom right, rgba(0, 102, 255, 0.10), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7f8fb 52%, #ffffff 100%);
}

.dot-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        radial-gradient(rgba(230, 0, 18, 0.14) 1px, transparent 1px),
        radial-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px);
    background-size: 28px 28px, 42px 42px;
    background-position: 0 0, 14px 14px;
    pointer-events: none;
}

.bg-wave {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 42% 58% 64% 36% / 42% 39% 61% 58%;
    filter: blur(2px);
    opacity: 0.16;
    animation: floatWave 9s ease-in-out infinite;
    pointer-events: none;
}

.wave-one {
    top: -260px;
    right: -180px;
    background: var(--omni-red);
}

.wave-two {
    bottom: -280px;
    left: -220px;
    background: #0066ff;
    animation-delay: -3s;
}

.portal-card {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    max-height: calc(100svh - 48px);
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--omni-shadow);
    backdrop-filter: blur(22px);
    animation: cardEnter 0.75s ease both;
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.portal-logo {
    width: min(320px, 72vw);
    max-height: 88px;
    object-fit: contain;
    animation: logoPulse 3s ease-in-out infinite;
}

.portal-title {
    text-align: center;
    margin-bottom: 28px;
}

.portal-title h1 {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.portal-title p {
    color: var(--omni-gray);
    font-size: 15px;
    margin: 0;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.app-button {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 18px;
    border: 1px solid var(--omni-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--omni-black);
    overflow: hidden;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.app-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background:
        linear-gradient(135deg, rgba(230, 0, 18, 0.10), transparent 45%),
        radial-gradient(circle at top right, rgba(230, 0, 18, 0.18), transparent 42%);
    transition: opacity 0.22s ease;
}

.app-button:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 0, 18, 0.28);
    box-shadow: 0 18px 46px rgba(15, 18, 32, 0.12);
    color: var(--omni-black);
}

.app-button:hover::before {
    opacity: 1;
}

.app-button:active {
    transform: scale(0.965);
    box-shadow: 0 10px 28px rgba(15, 18, 32, 0.10);
}

.app-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--omni-black);
    color: #fff;
    font-size: 25px;
    box-shadow: 0 12px 26px rgba(17, 17, 17, 0.18);
    transition: transform 0.22s ease;
}

.app-button:hover .app-icon {
    transform: rotate(-4deg) scale(1.04);
}

.app-tap .app-icon {
    background: linear-gradient(135deg, #e60012, #ff4a55);
}

.app-qris .app-icon {
    background: linear-gradient(135deg, #111111, #343640);
}

.app-kiosk .app-icon {
    background: linear-gradient(135deg, #0066ff, #42a5ff);
}

.app-hybrid .app-icon {
    background: linear-gradient(135deg, #6c2cff, #b65cff);
}

.app-content {
    display: grid;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.app-content strong {
    font-family: "Rajdhani", sans-serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.app-content small {
    color: var(--omni-gray);
    font-size: 13px;
}

.app-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--omni-red);
    background: rgba(230, 0, 18, 0.08);
    transition: transform 0.22s ease;
}

.app-button:hover .app-arrow {
    transform: translateX(4px);
}

.app-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.06);
    color: var(--omni-gray);
    font-size: 11px;
    font-weight: 800;
}

.is-coming-soon {
    cursor: not-allowed;
    opacity: 0.78;
}

.is-coming-soon:hover {
    transform: translateY(-2px);
    border-color: var(--omni-border);
}

.portal-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--omni-gray);
    font-size: 13px;
}

/* Animation */
@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatWave {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(18px, -14px, 0) rotate(8deg);
    }
}

@keyframes logoPulse {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .portal-card {
        width: min(100%, 620px);
        padding: 30px;
        border-radius: 26px;
    }

    .app-button {
        min-height: 96px;
        padding: 16px;
    }

    .app-content strong {
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .portal-page {
        padding: 16px;
    }

    .portal-card {
        max-height: calc(100svh - 32px);
        padding: 22px;
        border-radius: 22px;
    }

    .portal-logo {
        width: min(260px, 76vw);
        max-height: 70px;
    }

    .portal-title {
        margin-bottom: 18px;
    }

    .portal-title h1 {
        font-size: 34px;
        margin-bottom: 6px;
    }

    .portal-title p {
        font-size: 12.8px;
        line-height: 1.45;
    }

    .app-grid {
        gap: 10px;
    }

    .app-button {
        min-height: 118px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 14px 10px;
        border-radius: 16px;
        gap: 9px;
    }

    .app-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 20px;
    }

    .app-content strong {
        font-size: 18px;
        line-height: 0.98;
    }

    .app-content small {
        font-size: 11.2px;
        line-height: 1.25;
    }

    .app-arrow {
        display: none;
    }

    .app-badge {
        top: 8px;
        right: 8px;
        padding: 4px 7px;
        font-size: 10px;
    }

    .portal-footer {
        margin-top: 16px;
        font-size: 11.5px;
    }
}

/* Small height */
@media (max-height: 680px) {
    .portal-card {
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .portal-logo {
        max-height: 58px;
    }

    .portal-title {
        margin-bottom: 16px;
    }

    .portal-title h1 {
        font-size: 30px;
    }

    .app-button {
        min-height: 92px;
    }

    .portal-footer {
        margin-top: 14px;
    }
}