:root {
    --bg: #090909;
    --surface: #111111;
    --surface-2: #151515;

    --border: rgba(255,255,255,.09);
    --border-hover: rgba(255,255,255,.16);

    --text: #ffffff;
    --text-soft: rgba(255,255,255,.66);
    --text-muted: rgba(255,255,255,.38);

    --orange: #ff7a00;
    --orange-light: #ff963d;
    --orange-soft: rgba(255,122,0,.11);
    --orange-border: rgba(255,122,0,.28);

    --success: #8ee0a7;
    --danger: #ff8585;

    --radius: 22px;
}


* {
    box-sizing: border-box;
}


html {
    background: var(--bg);
}


body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(255,122,0,.08),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.order-background {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}


.order-orb {
    position: absolute;

    width: 430px;
    height: 430px;

    border-radius: 50%;

    filter: blur(100px);
}


.order-orb-one {
    top: -300px;
    left: -160px;

    background:
        rgba(255,122,0,.09);
}


.order-orb-two {
    right: -250px;
    bottom: -300px;

    background:
        rgba(255,122,0,.055);
}


.order-grid {
    position: absolute;
    inset: 0;

    opacity: .13;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 80%
        );
}


/* =========================================================
   HEADER
   ========================================================= */

.order-header {
    position: relative;
    z-index: 5;

    width:
        min(
            calc(100% - 48px),
            1180px
        );

    min-height: 82px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.order-logo {
    display: flex;

    align-items: center;

    gap: 10px;

    color: white;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;
}


.order-logo img {
    height: 36px;
    width: auto;
    max-width: 144px;
    display: block;
    object-fit: contain;
}


.order-back {
    color: var(--text-soft);

    text-decoration: none;

    font-size: 11px;

    transition: color .2s ease;
}


.order-back:hover {
    color: var(--orange-light);
}


/* =========================================================
   MAIN
   ========================================================= */

.order-main {
    position: relative;
    z-index: 1;

    width: 100%;

    padding:
        45px 24px 80px;
}


.order-layout {
    width:
        min(
            100%,
            1100px
        );

    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(250px, .72fr)
        minmax(0, 1.28fr);

    gap: 70px;

    align-items: start;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.order-summary {
    position: sticky;

    top: 30px;
}


.order-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: var(--orange-light);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .2em;
}


.order-eyebrow::before {
    content: "";

    width: 18px;
    height: 1px;

    background: var(--orange);
}


.order-summary h1 {
    max-width: 390px;

    margin: 0 0 14px;

    font-size: 42px;

    line-height: 1.02;

    letter-spacing: -.055em;
}


.order-summary h1 span {
    color: var(--orange);
}


.order-summary-text {
    max-width: 390px;

    margin: 0;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.75;
}


/* =========================================================
   PACKAGE
   ========================================================= */

.selected-package {
    margin-top: 38px;

    padding: 20px;

    border:
        1px solid
        var(--orange-border);

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(255,122,0,.085),
            rgba(255,255,255,.018)
        );
}


.selected-label {
    display: block;

    margin-bottom: 9px;

    color:
        rgba(255,255,255,.32);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .16em;
}


.selected-package h2 {
    margin: 0 0 8px;

    font-size: 20px;

    letter-spacing: -.035em;
}


.selected-meta {
    display: flex;

    align-items: center;

    gap: 8px;

    color:
        var(--text-muted);

    font-size: 10px;
}


.selected-meta strong {
    color: var(--orange-light);

    font-weight: 700;
}


.selected-dot {
    opacity: .5;
}


/* =========================================================
   STEPS
   ========================================================= */

.order-steps {
    margin-top: 35px;

    display: flex;

    flex-direction: column;

    gap: 20px;
}


.order-step {
    display: flex;

    gap: 14px;

    opacity: .4;
}


.order-step.active {
    opacity: 1;
}


.order-step > span {
    display: flex;

    width: 28px;
    height: 28px;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--border);

    border-radius: 50%;

    color:
        var(--text-muted);

    font-size: 8px;

    font-weight: 700;
}


.order-step.active > span {
    border-color:
        var(--orange-border);

    background:
        var(--orange-soft);

    color:
        var(--orange-light);
}


.order-step strong {
    display: block;

    margin-bottom: 3px;

    font-size: 10px;

    font-weight: 700;
}


.order-step small {
    color:
        var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   CARD
   ========================================================= */

.order-card {
    padding: 30px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.42),

        inset 0 1px 0
        rgba(255,255,255,.045);

    backdrop-filter: blur(24px);
}


.order-card-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;

    padding-bottom: 23px;

    border-bottom:
        1px solid
        var(--border);
}


.order-card-header .order-eyebrow {
    margin-bottom: 8px;
}


.order-card-header h2 {
    margin: 0;

    font-size: 24px;

    letter-spacing: -.045em;
}


.login-status {
    padding:
        7px 10px;

    border:
        1px solid
        var(--border);

    border-radius: 20px;

    color:
        var(--text-muted);

    font-size: 8px;

    white-space: nowrap;
}


/* =========================================================
   FORM
   ========================================================= */

.order-form {
    display: flex;

    flex-direction: column;

    gap: 28px;
}


.form-section {
    padding-bottom: 27px;

    border-bottom:
        1px solid
        var(--border);
}


.form-section-heading {
    display: flex;

    gap: 12px;

    margin-bottom: 20px;
}


.form-section-heading > span {
    color:
        var(--orange-light);

    font-size: 9px;

    font-weight: 800;
}


.form-section-heading h3 {
    margin: 0 0 4px;

    font-size: 12px;
}


.form-section-heading p {
    margin: 0;

    color:
        var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   GRID
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 16px;
}


.dynamic-fields {
    display: flex;

    flex-direction: column;

    gap: 16px;
}


.dynamic-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 16px;
}


.form-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.form-field.full {
    grid-column: 1 / -1;
}


.form-field label {
    color:
        rgba(255,255,255,.70);

    font-size: 10px;

    font-weight: 600;
}


.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;

    min-height: 48px;

    padding:
        0 13px;

    border:
        1px solid
        rgba(255,255,255,.075);

    border-radius: 10px;

    outline: none;

    background:
        rgba(0,0,0,.23);

    color: white;

    font-size: 11px;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.form-field textarea {
    min-height: 115px;

    padding:
        13px;

    resize: vertical;
}


.form-field select {
    appearance: none;

    cursor: pointer;
}


.form-field select option {
    background: #111111;

    color: white;
}


.form-field input::placeholder,
.form-field textarea::placeholder {
    color:
        rgba(255,255,255,.22);
}


.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color:
        var(--orange-border);

    background:
        rgba(255,122,0,.025);

    box-shadow:
        0 0 0 3px
        var(--orange-soft);
}


.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
    border-color:
        rgba(255,90,90,.55);
}


.field-hint {
    color:
        var(--text-muted);

    font-size: 8px;

    line-height: 1.45;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.order-message {
    display: none;

    padding:
        11px 13px;

    border-radius: 10px;

    font-size: 10px;

    line-height: 1.5;
}


.order-message.visible {
    display: block;
}


.order-message.error {
    border:
        1px solid
        rgba(255,90,90,.18);

    background:
        rgba(255,70,70,.05);

    color:
        #ffaaaa;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.order-submit-area {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.order-note {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    max-width: 210px;
}


.order-note span {
    color:
        var(--orange-light);

    font-size: 11px;
}


.order-note p {
    margin: 0;

    color:
        var(--text-muted);

    font-size: 8px;

    line-height: 1.5;
}


.order-submit {
    min-height: 49px;

    padding:
        0 22px;

    border: 0;

    border-radius: 11px;

    background:
        var(--orange);

    color:
        #080808;

    cursor: pointer;

    font-size: 10px;

    font-weight: 800;

    box-shadow:
        0 12px 30px
        rgba(255,122,0,.14);

    transition:
        transform .2s ease,
        background .2s ease;
}


.order-submit:hover {
    background:
        var(--orange-light);

    transform:
        translateY(-1px);
}


.order-submit:disabled {
    opacity: .55;

    cursor: not-allowed;

    transform: none;
}


.submit-loader {
    display: none;

    width: 15px;
    height: 15px;

    margin: auto;

    border:
        2px solid
        rgba(0,0,0,.2);

    border-top-color:
        #000;

    border-radius: 50%;

    animation:
        orderSpin .7s linear infinite;
}


.order-submit.loading .submit-text {
    display: none;
}


.order-submit.loading .submit-loader {
    display: block;
}


@keyframes orderSpin {
    to {
        transform: rotate(360deg);
    }
}




/* =========================================================
   RESPONSIVE ORDER PAGE
   ========================================================= */

@media (max-width: 900px) {
    .order-header {
        width: min(100% - 32px, 760px);
        min-height: 72px;
    }

    .order-main {
        padding: 28px 16px 56px;
    }

    .order-layout {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .order-summary {
        position: relative;
        top: auto;
    }

    .order-summary h1,
    .order-summary-text {
        max-width: 720px;
    }

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

    .order-step {
        gap: 9px;
    }

    .order-card {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .order-header {
        width: calc(100% - 28px);
        min-height: 64px;
    }

    .order-logo {
        min-width: 0;
    }

    .order-back {
        flex-shrink: 0;
        font-size: 10px;
    }

    .order-main {
        padding: 22px 12px 44px;
    }

    .order-layout {
        gap: 22px;
    }

    .order-summary h1 {
        max-width: none;
        font-size: clamp(32px, 10vw, 40px);
        line-height: 1.04;
    }

    .order-summary-text {
        max-width: none;
        font-size: 11px;
    }

    .selected-package {
        margin-top: 24px;
        padding: 16px;
    }

    .selected-package h2 {
        font-size: 18px;
    }

    .order-steps {
        display: flex;
        flex-direction: column;
        gap: 13px;
        margin-top: 24px;
    }

    .order-step {
        gap: 10px;
    }

    .order-card {
        padding: 20px 16px;
        border-radius: 17px;
    }

    .order-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .order-card-header h2 {
        font-size: 21px;
    }

    .login-status {
        align-self: flex-start;
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }

    .order-form {
        gap: 22px;
    }

    .form-grid,
    .dynamic-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .form-field.full {
        grid-column: auto;
    }

    .form-field input,
    .form-field textarea,
    .form-field select {
        min-height: 46px;
        font-size: 12px;
    }

    .form-field textarea {
        min-height: 120px;
    }

    .form-section {
        padding-bottom: 21px;
    }

    .form-section-heading {
        gap: 9px;
        margin-bottom: 15px;
    }

    .form-section-heading h3 {
        font-size: 11px;
    }

    .order-submit-area {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .order-note {
        max-width: none;
    }

    .order-submit {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .order-header {
        width: calc(100% - 22px);
    }

    .order-main {
        padding-left: 9px;
        padding-right: 9px;
    }

    .order-card {
        padding-left: 13px;
        padding-right: 13px;
    }

    .order-logo img {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        flex-basis: 112px !important;
    }
}


/* =========================================================
   SUCCESS MODAL
   ========================================================= */

.order-success-modal {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 !important;
    overflow: hidden;
}

.order-success-modal[hidden] {
    display: none !important;
}

.order-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.order-success-container {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    text-align: center;
    padding: 38px 34px 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(27,27,27,.99), rgba(12,12,12,.99));
    box-shadow: 0 35px 110px rgba(0,0,0,.7);
}

.success-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.success-modal-close:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.16);
    color: var(--text-primary);
}

.order-success-container .success-icon {
    display: flex;
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--orange-border);
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange-light);
    font-size: 25px;
    font-weight: 700;
}

.order-success-container .order-eyebrow {
    display: block;
    margin-bottom: 9px;
}

.order-success-container h2 {
    margin: 0 0 9px;
    color: var(--text-primary);
    font-size: 25px;
    letter-spacing: -.04em;
}

.order-success-container > p {
    max-width: 390px;
    margin: 0 auto 22px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.65;
}

.success-order-id {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    min-width: 220px;
    margin-bottom: 22px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

.success-order-id span {
    color: var(--text-muted);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .15em;
}

.success-order-id strong {
    color: var(--orange-light);
    font-size: 11px;
    letter-spacing: .08em;
    word-break: break-all;
}

.success-whatsapp,
.success-account,
.success-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 330px;
    min-height: 42px;
    margin: 0 auto 10px;
    padding: 0 17px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    box-sizing: border-box;
}

.success-whatsapp {
    border: 1px solid var(--orange-border);
    background: var(--orange);
    color: #fff;
}

.success-whatsapp:hover {
    background: var(--orange-light);
    border-color: rgba(255, 150, 61, .5);
    transform: translateY(-1px);
}

.success-account {
    border: 1px solid var(--orange-border);
    background: var(--orange-soft);
    color: var(--orange-light);
}

.success-account:hover {
    border-color: rgba(255, 122, 0, .42);
    background: rgba(255, 122, 0, .16);
    transform: translateY(-1px);
}

.success-home {
    margin-bottom: 0;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
    color: var(--text-secondary);
}

.success-home:hover {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.success-whatsapp[hidden] {
    display: none !important;
}

@media (max-width: 520px) {
    .order-success-modal {
        padding: 14px;
    }

    .order-success-container {
        max-height: calc(100vh - 28px);
        padding: 34px 18px 22px;
        border-radius: 17px;
    }

    .order-success-container h2 {
        font-size: 22px;
    }

    .order-success-container .success-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }

    .success-order-id {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .success-whatsapp,
    .success-account,
    .success-home {
        max-width: none;
    }
}


/* =========================================================
   PAYMENT WHATSAPP MODAL
   ========================================================= */

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-modal[hidden] {
    display: none !important;
}

.payment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(10px);
}

.payment-modal-container {
    position: relative;
    z-index: 1;
    width: min(470px, 100%);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(30,30,30,.98), rgba(14,14,14,.98));
    box-shadow: 0 30px 100px rgba(0,0,0,.6);
}

.payment-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    color: var(--text-secondary);
    font-size: 19px;
    cursor: pointer;
}

.payment-modal-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--orange-light);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em;
}

.payment-modal-container h2 {
    margin: 0 40px 8px 0;
    color: var(--text-primary);
    font-size: 22px;
    letter-spacing: -.035em;
}

.payment-modal-description {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.65;
}

.payment-modal-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 20px;
}

.payment-modal-summary > div {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

.payment-modal-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 8px;
}

.payment-modal-summary strong {
    display: block;
    color: var(--text-primary);
    font-size: 10px;
    word-break: break-word;
}

.payment-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.payment-modal-cancel,
.payment-modal-confirm {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.payment-modal-cancel {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text-secondary);
}

.payment-modal-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--orange-border);
    background: var(--orange);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 520px) {
    .payment-modal-container {
        padding: 23px 18px;
    }

    .payment-modal-summary {
        grid-template-columns: 1fr;
    }

    .payment-modal-actions {
        flex-direction: column-reverse;
    }

    .payment-modal-cancel,
    .payment-modal-confirm {
        width: 100%;
    }
}


/* =========================================================
   HEADER LOGO — MATCH INDEX.HTML
   HeaderPutih.webp is a 400x100 wide wordmark.
   ========================================================= */
.order-logo img {
    width: auto !important;
    height: 36px !important;
    max-width: 144px !important;
    object-fit: contain !important;
    display: block !important;
}
@media (max-width: 600px) {
    .order-logo img {
        width: auto !important;
        height: 32px !important;
        max-width: 128px !important;
    }
}


/* =========================================================
   HEADER LOGO — FORCE DESKTOP SIZE
   ========================================================= */
.order-logo img {
    width: 144px !important;
    min-width: 144px !important;
    max-width: 144px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 144px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    display: block !important;
}

@media (max-width: 600px) {
    .order-logo img {
        width: 128px !important;
        min-width: 128px !important;
        max-width: 128px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        flex: 0 0 128px !important;
    }
}


/* =========================================================
   PERFORMANCE OPTIMIZATION
   ========================================================= */
@media (max-width: 768px) {
  .account-bg .bg-glow,
  .auth-background .auth-orb,
  .order-background .order-orb {
    filter: blur(55px) !important;
  }

  .account-bg .bg-grid,
  .auth-background .auth-grid,
  .order-background .order-grid {
    opacity: .06 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
