/* ==========================================================================
   RK PHONECARE - SERVICE STATUS PORTAL STYLESHEET
   Palette: Black • Gray • White • Yellow (Zero Blue, Zero Glassmorphism)
   ========================================================================== */

:root {
    --black: #0A0A0A;
    --black-soft: #111111;
    --gray-dark: #1C1C1C;
    --gray: #3A3A3A;
    --gray-light: #A0A0A0;
    --white: #F5F5F5;
    --yellow: #F5C400;
    --yellow-hover: #DFB300;
    --radius: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--black);
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.03em;
}

.text-muted {
    color: var(--gray-light);
}

.text-yellow {
    color: var(--yellow);
}

/* ---------- Header ---------- */
.site-header {
    background-color: var(--black);
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--white);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--yellow);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-light);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
    border-bottom-color: var(--yellow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: var(--black-soft);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    text-align: center;
}

.btn-sm {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    min-height: 50px;
    padding: 12px 24px;
    font-size: 0.98rem;
}

.btn-yellow {
    background-color: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

.btn-yellow:hover {
    background-color: var(--yellow-hover);
    border-color: var(--yellow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--gray);
}

.btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--gray);
    line-height: 1.25;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

.badge-yellow {
    background-color: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

.badge-outline-yellow {
    background-color: var(--black-soft);
    color: var(--yellow);
    border-color: var(--yellow);
}

.badge-white {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.badge-gray {
    background-color: var(--gray-dark);
    color: var(--white);
    border-color: var(--gray);
}

.badge-muted {
    background-color: var(--black-soft);
    color: var(--gray-light);
    border-color: var(--gray);
}

/* ---------- Main Layout ---------- */
.site-main {
    flex: 1;
}

.portal-hero {
    background-color: var(--black-soft);
    border-bottom: 1px solid var(--gray);
    padding: 36px 0 32px;
}

.hero-panel {
    max-width: 780px;
    margin: 0 auto;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 8px;
}

.hero-title {
    margin: 0 0 8px;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--white);
    line-height: 1.2;
}

.hero-desc {
    margin: 0 0 22px;
    color: var(--gray-light);
    font-size: 0.98rem;
}

/* Search Mode Tabs */
.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.search-tab {
    background-color: var(--gray-dark);
    color: var(--gray-light);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 8px 14px;
    min-height: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-tab:hover {
    color: var(--white);
    border-color: var(--gray-light);
}

.search-tab.is-active {
    background-color: var(--black);
    color: var(--yellow);
    border-color: var(--yellow);
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.search-input-wrap {
    flex: 1;
    min-width: 0;
}

.search-input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    background-color: var(--black);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: border-color 0.15s ease;
}

.search-input::placeholder {
    color: var(--gray-light);
    font-weight: 400;
    letter-spacing: 0;
}

.search-input:focus {
    outline: none;
    border-color: var(--yellow);
}

.search-hint {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--gray-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sample-chip {
    display: inline-block;
    padding: 3px 9px;
    background-color: var(--gray-dark);
    border: 1px solid var(--gray);
    border-radius: 4px;
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.sample-chip:hover {
    border-color: var(--yellow);
}

/* ---------- Status Result Section ---------- */
.result-section {
    padding: 28px 0 40px;
}

.status-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-card {
    background-color: var(--gray-dark);
    border: 1px solid var(--gray);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.panel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gray);
    flex-wrap: wrap;
}

.panel-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

/* Top Summary Header Card */
.summary-card {
    background-color: var(--black-soft);
    border: 1px solid var(--gray);
    border-top: 3px solid var(--yellow);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.summary-invoice-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 4px;
}

.summary-invoice-number {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1.2;
    word-break: break-word;
}

.summary-device {
    margin-top: 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.summary-complaint-line {
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.summary-status-box {
    text-align: right;
}

.summary-status-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 6px;
}

/* Horizontal Progress Stepper */
.progress-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--gray);
}

.progress-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar-line {
    height: 4px;
    width: 100%;
    background-color: var(--gray);
    border-radius: 2px;
}

.progress-step.is-done .progress-bar-line {
    background-color: var(--white);
}

.progress-step.is-current .progress-bar-line {
    background-color: var(--yellow);
}

.progress-step.is-cancelled .progress-bar-line {
    background-color: var(--gray-light);
}

.progress-step-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-step.is-done .progress-step-label {
    color: var(--white);
}

.progress-step.is-current .progress-step-label {
    color: var(--yellow);
}

/* Main Dashboard Two-Column Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
    align-items: start;
}

.dashboard-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Key-Value Data Service Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.info-item {
    min-width: 0;
}

.info-item.is-full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 3px;
}

.info-value {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--white);
    word-break: break-word;
}

/* Cost & Payment Strip */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.finance-box {
    background-color: var(--black-soft);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.finance-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--yellow);
    margin-top: 4px;
}

.finance-amount.is-unconfirmed {
    font-size: 1rem;
    color: var(--gray-light);
    font-weight: 600;
}

/* Technician Note */
.note-box {
    background-color: var(--black-soft);
    border-left: 3px solid var(--yellow);
    border-top: 1px solid var(--gray);
    border-right: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--white);
    font-size: 0.95rem;
    white-space: pre-line;
}

.note-meta {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--gray-light);
}

/* Timeline */
.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background-color: var(--gray);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item.is-current::before,
.timeline-item.is-done::before {
    background-color: var(--yellow);
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    background-color: var(--black);
    border: 2px solid var(--gray);
    color: var(--gray-light);
}

.timeline-item.is-done .timeline-marker {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--black);
}

.timeline-item.is-current .timeline-marker {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

.timeline-status {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
}

.timeline-item.is-current .timeline-status {
    color: var(--yellow);
}

.timeline-item.is-pending .timeline-status {
    color: var(--gray-light);
}

.timeline-time {
    font-size: 0.78rem;
    color: var(--gray-light);
    margin-top: 2px;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--white);
    margin-top: 4px;
}

/* Pickup Thank-You Card (Status: Sudah Diambil) */
.pickup-thank-card {
    background-color: var(--black-soft);
    border: 1px solid var(--yellow);
    border-left: 4px solid var(--yellow);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.pickup-thank-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--yellow);
    color: var(--black);
    font-size: 1.15rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.pickup-thank-body {
    min-width: 0;
}

.pickup-thank-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--yellow);
    margin-bottom: 4px;
}

.pickup-thank-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
}

.pickup-thank-text {
    margin: 0;
    font-size: 0.92rem;
    color: var(--gray-light);
    line-height: 1.5;
}

.pickup-thank-text strong {
    color: var(--white);
}

.pickup-thank-meta {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--yellow);
}

/* WhatsApp CTA Card */
.wa-cta-card {
    background-color: var(--black-soft);
    border: 1px solid var(--yellow);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.wa-cta-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.wa-cta-sub {
    margin: 0;
    font-size: 0.86rem;
    color: var(--gray-light);
}

/* Multiple Orders List (when searched via WhatsApp) */
.order-pick-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.order-pick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background-color: var(--black-soft);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    transition: border-color 0.15s ease;
    flex-wrap: wrap;
}

.order-pick-item:hover {
    border-color: var(--yellow);
}

/* Empty & Not Found State */
.state-box {
    max-width: 580px;
    margin: 0 auto;
    background-color: var(--gray-dark);
    border: 1px solid var(--gray);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
}

.state-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
}

.state-desc {
    margin: 0 0 20px;
    color: var(--gray-light);
    font-size: 0.94rem;
}

.empty-inline {
    padding: 16px;
    background-color: var(--black-soft);
    border: 1px dashed var(--gray);
    border-radius: var(--radius);
    color: var(--gray-light);
    font-size: 0.9rem;
    text-align: center;
}

/* ---------- Services Compact Info Section ---------- */
.info-strip-section {
    padding: 28px 0 44px;
    border-top: 1px solid var(--gray);
    background-color: var(--black);
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-heading {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-tile {
    background-color: var(--black-soft);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 16px;
}

.service-tile-code {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.service-tile-title {
    margin: 0 0 6px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--white);
}

.service-tile-desc {
    margin: 0;
    font-size: 0.84rem;
    color: var(--gray-light);
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--black);
    border-top: 1px solid var(--gray);
    padding-top: 28px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 24px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 6px;
}

.footer-tagline {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--yellow);
}

.footer-meta {
    margin: 0 0 4px;
    font-size: 0.85rem;
    color: var(--gray-light);
}

.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-list a {
    font-size: 0.86rem;
    color: var(--gray-light);
    transition: color 0.15s ease;
}

.footer-list a:hover {
    color: var(--yellow);
}

.footer-bottom {
    border-top: 1px solid var(--gray);
    padding: 14px 0;
    font-size: 0.8rem;
    color: var(--gray-light);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Responsive Breakpoints (1920 -> 320) ---------- */
@media (max-width: 960px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--black-soft);
        border-bottom: 1px solid var(--gray);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px 20px 18px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 10px 4px;
        border-bottom: 1px solid var(--gray-dark);
    }

    .nav-wa {
        margin-top: 6px;
        width: 100%;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form .btn {
        width: 100%;
    }

    .summary-status-box {
        text-align: left;
    }

    .finance-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .brand-sub {
        font-size: 0.62rem;
    }

    .panel-card,
    .summary-card,
    .wa-cta-card {
        padding: 16px;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .summary-invoice-number {
        font-size: 1.32rem;
    }

    .wa-cta-card .btn {
        width: 100%;
    }
}
