:root {
    --bg: #090e1d;
    --panel: #17243a;
    --panel2: #1c2b43;
    --blue: #168ee0;
    --cyan: #35d3e9;
    --text: #f4f7ff;
    --muted: #9cabc3;
    --border: rgba(160,190,230,.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

.topbar {
    height: 72px;
    padding: 0 max(calc((100% - 1250px) / 2), 5%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: #0d1426;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand span {
    color: #42c5f4;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

.brand small {
    font-size: 10px;
    letter-spacing: 2px;
    color: #d1dbea;
}

.admin-link {
    color: #75d8ff;
    font-weight: 700;
}

.container {
    width: min(1250px, 92%);
    margin: 35px auto 70px;
}

.slider {
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    background: #15386b;
    margin-bottom: 45px;
}

.slide {
    position: absolute;
    inset: 0;
    padding: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .7s ease, transform .7s ease;
    background: linear-gradient(115deg, #1c326c, #087eac);
    pointer-events: none;
}

.slide:nth-child(2) {
    background: linear-gradient(115deg, #40246e, #087c9c);
}

.slide:nth-child(3) {
    background: linear-gradient(115deg, #123d61, #146b86);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.slide-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.eyebrow, .section-kicker {
    color: #7eeaff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.slide h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    margin: 17px 0;
}

.slide p {
    color: #d9eaff;
    line-height: 1.7;
    max-width: 550px;
}

.hero-button {
    display: inline-block;
    margin-top: 15px;
    background: white;
    color: #102447;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 800;
    transition: .2s;
}

.hero-button:hover {
    transform: translateY(-3px);
}

.slide-art {
    font-size: clamp(75px, 12vw, 145px);
    filter: drop-shadow(0 15px 20px #001c4655);
    animation: float 3s ease-in-out infinite;
    margin-right: 35px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 45px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #ffffff66;
    cursor: pointer;
}

.dot.active {
    width: 27px;
    background: white;
}

.welcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.welcome-row h2 {
    font-size: 27px;
    margin: 9px 0;
}

.welcome-row p {
    color: var(--muted);
    margin: 0;
}

.service-count {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 15px 22px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    min-width: 145px;
}

.service-count strong {
    color: var(--cyan);
    font-size: 27px;
}

.service-count span {
    color: var(--muted);
    font-size: 11px;
}

.search-box {
    height: 57px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 0 18px;
    margin-bottom: 27px;
}

.search-box > span {
    color: var(--cyan);
    font-size: 27px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #8594ad;
}

.search-box button {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
}

.category-heading, .catalog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.category-heading h3, .catalog-heading h3 {
    margin: 0;
    font-size: 17px;
}

.category-heading span, .catalog-heading span {
    color: var(--muted);
    font-size: 12px;
}

.category-list {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 3px 0 16px;
    scrollbar-width: thin;
}

.category-btn {
    white-space: nowrap;
    padding: 11px 17px;
    border-radius: 30px;
    color: #c6d2e6;
    background: var(--panel);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: .2s;
}

.category-btn:hover, .category-btn.active {
    color: #07172b;
    background: var(--cyan);
    border-color: var(--cyan);
}

.catalog-heading {
    margin: 17px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.service-card {
    min-width: 0;
    padding: 21px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 17px;
    transition: transform .2s, border-color .2s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #37c8e966;
}

.service-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #253853;
    flex-shrink: 0;
    font-size: 22px;
}

.platform-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.platform-label {
    font-size: 11px;
    color: #b4c4da;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.available-badge {
    margin-left: auto;
    font-size: 10px;
    color: #54e4b0;
    background: #123d3a;
    padding: 6px 9px;
    border-radius: 30px;
}

.service-info {
    min-height: 86px;
    padding-top: 17px;
}

.service-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.45;
}

.service-info p {
    color: var(--muted);
    font-size: 11px;
    margin: 0;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 10px;
}

.service-price strong {
    color: #51d7f0;
    font-size: 23px;
    font-weight: 900;
}

.service-price span {
    color: var(--muted);
    font-size: 11px;
}

.service-limits {
    display: flex;
    gap: 13px;
    color: #9baac0;
    font-size: 11px;
    padding: 14px 0 17px;
}

.order-button, .submit-order {
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(100deg, #087fd0, #16b8db);
    color: white;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}

.order-button:hover, .submit-order:hover {
    filter: brightness(1.13);
    transform: translateY(-2px);
}

.order-button span {
    float: right;
}

.order-form {
    display: none;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.order-form.show {
    display: block;
    animation: reveal .3s ease;
}

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

.form-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.form-heading button {
    border: 0;
    background: #34445d;
    color: white;
    border-radius: 7px;
    padding: 5px 9px;
    cursor: pointer;
}

.order-form label {
    display: block;
    color: #b8c7db;
    font-size: 11px;
    margin: 12px 0 6px;
}

.order-form input {
    width: 100%;
    padding: 12px;
    color: white;
    background: #0c1628;
    border: 1px solid #344660;
    border-radius: 9px;
    outline: none;
}

.order-form input:focus {
    border-color: var(--cyan);
}

.submit-order {
    margin-top: 17px;
}

.order-form > small {
    display: block;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 10px;
}

.empty-state, .no-results {
    text-align: center;
    background: var(--panel);
    padding: 45px 15px;
    border-radius: 16px;
    color: var(--muted);
}

.empty-state div, .no-results div {
    font-size: 40px;
}

.empty-state h3, .no-results h3 {
    color: white;
}

.trust-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top: 40px;
}

.trust-section > div {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 17px;
    font-size: 18px;
}

.trust-section strong, .trust-section span {
    display: block;
}

.trust-section strong {
    font-size: 12px;
    margin-top: 9px;
}

.trust-section span {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}

.footer {
    text-align: center;
    border-top: 1px solid var(--border);
    padding: 35px 15px;
    color: var(--muted);
    font-size: 12px;
}

.footer strong {
    color: #4dcaf1;
    font-size: 20px;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #183d39;
    border: 1px solid #35cba3;
    color: white;
    border-radius: 13px;
    padding: 15px 20px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: .3s;
    z-index: 100;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1c9b77;
}

.toast strong, .toast small {
    display: block;
}

.toast small {
    color: #b7ddd5;
    margin-top: 4px;
}

@media(max-width:900px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:600px) {
    .topbar {
        height: 62px;
        padding: 0 4%;
    }

    .brand span {
        font-size: 21px;
    }

    .brand small {
        font-size: 8px;
    }

    .container {
        width: 92%;
        margin-top: 18px;
    }

    .slider {
        height: 290px;
        border-radius: 18px;
    }

    .slide {
        padding: 27px 23px 45px;
    }

    .slide h1 {
        font-size: 30px;
    }

    .slide p {
        font-size: 12px;
        max-width: 85%;
    }

    .slide-art {
        position: absolute;
        right: 0;
        bottom: 35px;
        opacity: .22;
        font-size: 100px;
    }

    .slider-dots {
        left: 23px;
    }

    .welcome-row {
        align-items: flex-start;
    }

    .welcome-row h2 {
        font-size: 21px;
    }

    .welcome-row p {
        font-size: 12px;
        line-height: 1.5;
    }

    .service-count {
        min-width: 100px;
        padding: 12px;
    }

    .service-count strong {
        font-size: 21px;
    }

    .service-count span {
        font-size: 9px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 17px;
    }

    .service-info {
        min-height: auto;
        padding-top: 13px;
    }

    .trust-section {
        grid-template-columns: 1fr;
    }

    .search-box {
        height: 52px;
        padding: 0 12px;
    }

    .search-box input {
        font-size: 12px;
    }
}


/* ===== RY BLAST PATCH: slider, ticker, footer ===== */

/* Pastikan hanya slide aktif yang terlihat agar teks tidak saling menimpa. */
.slider {
    isolation: isolate;
}
.slider .slide {
    visibility: hidden;
    z-index: 0;
    will-change: opacity, transform;
}
.slider .slide.active {
    visibility: visible;
    z-index: 1;
}
.slider .slider-dots {
    z-index: 10;
}
.slider .slide-content {
    max-width: min(680px, 72%);
}
.slider .slide h1 {
    text-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.slider .slide p {
    text-shadow: 0 1px 8px rgba(0,0,0,.2);
}

/* Teks pengumuman berjalan */
.ry-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: #101b30;
    border-bottom: 1px solid rgba(160,190,230,.15);
    color: #dcecff;
    padding: 10px 0;
    font-size: 13px;
    line-height: 1.5;
}
.ry-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 42px;
    animation: ryMarqueeMove 32s linear infinite;
}
.ry-marquee-track span {
    flex: 0 0 auto;
}
.ry-marquee:hover .ry-marquee-track {
    animation-play-state: paused;
}
@keyframes ryMarqueeMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Footer marketplace */
.ry-footer {
    margin-top: 55px;
    padding: 48px max(calc((100% - 1250px) / 2), 4%) 20px;
    background: #0d1426;
    border-top: 1px solid rgba(160,190,230,.15);
    color: #aebdd2;
}
.ry-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
    max-width: 1250px;
    margin: 0 auto 35px;
}
.ry-footer-logo {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    color: #48c9f2;
    font-size: 25px;
    font-weight: 900;
}
.ry-footer-logo span {
    color: #c5d2e4;
    font-size: 9px;
    letter-spacing: 2px;
}
.ry-footer-brand p, .ry-footer-col p {
    color: #91a3bd;
    font-size: 12px;
    line-height: 1.8;
}
.ry-footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}
.ry-footer-pills span {
    padding: 7px 9px;
    border: 1px solid rgba(160,190,230,.15);
    border-radius: 20px;
    background: #17243a;
    color: #c6d5e9;
    font-size: 10px;
}
.ry-footer-col h3 {
    margin: 3px 0 14px;
    color: #f4f7ff;
    font-size: 13px;
}
.ry-footer-col a {
    display: block;
    width: fit-content;
    margin: 10px 0;
    color: #9cabc3;
    font-size: 12px;
    transition: color .2s;
}
.ry-footer-col a:hover {
    color: #48c9f2;
}
.ry-footer-bottom {
    max-width: 1250px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid rgba(160,190,230,.13);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #71839d;
    font-size: 11px;
}

@media (max-width: 760px) {
    .slider .slide-content {
        max-width: 100%;
    }
    .ry-footer-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 22px;
    }
}
@media (max-width: 480px) {
    .ry-marquee {
        font-size: 11px;
        padding: 8px 0;
    }
    .ry-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px 14px;
    }
    .ry-footer-bottom {
        flex-direction: column;
    }
}
