:root {
    --blue: #1463ff;
    --blue-2: #0756d6;
    --blue-dark: #0b2454;
    --blue-soft: #edf5ff;
    --sky: #e8f7ff;
    --text: #172033;
    --muted: #6b7890;
    --line: #e7edf7;
    --bg: #f4f8ff;
    --white: #ffffff;
    --green: #16a34a;
    --red: #ef4444;
    --orange: #f59e0b;
    --shadow: 0 20px 45px rgba(13, 55, 120, .12);
    --shadow-soft: 0 14px 30px rgba(13, 55, 120, .08);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(20,99,255,.18), transparent 28%),
        radial-gradient(circle at 100% 12%, rgba(118, 199, 255, .18), transparent 25%),
        var(--bg);
    color: var(--text);
    padding-bottom: 88px;
}

body.login-page {
    padding-bottom: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(20,99,255,.28), transparent 34%),
        linear-gradient(145deg, #eef6ff, #ffffff 54%, #eaf4ff);
}

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

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

.app-shell {
    width: min(100%, 540px);
    margin: 0 auto;
    padding: 18px 16px 28px;
}

.hero-card {
    min-height: 356px;
    border-radius: 36px;
    padding: 24px;
    color: white;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.blue-hero {
    background:
        linear-gradient(155deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
        linear-gradient(135deg, #1672ff 0%, #0b56d5 52%, #083b91 100%);
}

.hero-card:before,
.hero-card:after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    z-index: -1;
}

.hero-card:before {
    width: 170px;
    height: 170px;
    right: -50px;
    top: -40px;
}

.hero-card:after {
    width: 230px;
    height: 230px;
    right: -70px;
    bottom: -100px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.brand-mini {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .8;
}

h1,
h2,
p {
    margin-top: 0;
}

.hero-card h1 {
    margin: 0;
    font-size: 43px;
    letter-spacing: -.055em;
    line-height: .95;
}

.logo-badge {
    width: 52px;
    height: 52px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    background: white;
    color: var(--blue);
    font-weight: 900;
    font-size: 25px;
    box-shadow: 0 16px 38px rgba(0,0,0,.16);
}

.logo-badge.blue {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white;
}

.hero-text {
    position: relative;
    z-index: 1;
    margin: 42px 0 24px;
    font-size: 15px;
    line-height: 1.75;
    max-width: 380px;
    opacity: .95;
}

.hero-actions,
.order-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.order-actions.wrap {
    flex-wrap: wrap;
}

.hero-float-card {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(12px);
    display: grid;
    gap: 2px;
    min-width: 130px;
}

.hero-float-card span {
    font-size: 11px;
    opacity: .82;
    font-weight: 700;
}

.hero-float-card b {
    font-size: 20px;
    letter-spacing: -.03em;
}

.btn {
    border: 0;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    transition: .2s ease;
    white-space: nowrap;
}

.btn:active {
    transform: scale(.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: white;
    box-shadow: 0 14px 24px rgba(20,99,255,.25);
}

.btn-white {
    background: white;
    color: var(--blue);
}

.btn-ghost {
    background: rgba(255,255,255,.16);
    color: white;
    border: 1px solid rgba(255,255,255,.26);
}

.btn-light {
    background: #f0f5ff;
    color: var(--blue-dark);
}

.btn-wa {
    background: #16a34a;
    color: white;
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-full {
    width: 100%;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.stat-card,
.section-card,
.form-card,
.search-card,
.filter-card,
.tracking-card,
.order-card,
.alert,
.empty-state,
.trust-strip,
.danger-zone {
    background: white;
    border: 1px solid rgba(20,99,255,.07);
    box-shadow: var(--shadow-soft);
}

.stat-card {
    border-radius: 22px;
    padding: 15px 14px;
}

.stat-card span,
.detail-grid span,
.tracking-top span,
.field span,
.choice-block > span,
.note-box span,
.order-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    color: var(--blue-dark);
    font-size: 25px;
    letter-spacing: -.04em;
}

.section-card,
.form-card,
.tracking-card,
.empty-state {
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 14px;
}

.premium-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,1)),
        radial-gradient(circle at top right, rgba(20,99,255,.12), transparent 40%);
}

.blue-soft {
    background: linear-gradient(135deg, #ffffff, var(--blue-soft));
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-card h2,
.empty-state h2,
.login-copy h2 {
    margin-bottom: 10px;
    font-size: 22px;
    letter-spacing: -.04em;
}

.service-list {
    display: grid;
    gap: 10px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border-radius: 20px;
    background: #f7fbff;
    border: 1px solid var(--line);
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: white;
    box-shadow: 0 10px 24px rgba(13, 55, 120, .09);
}

.service-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--text);
}

.service-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.timeline-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.timeline-mini div {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 11px 7px;
    text-align: center;
}

.timeline-mini b {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--blue);
    color: white;
    font-size: 12px;
}

.timeline-mini span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.page-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-radius: 30px;
    padding: 18px;
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.page-header.compact {
    align-items: center;
}

.blue-header,
.admin-header {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.page-header h1 {
    margin: 0 0 7px;
    font-size: 27px;
    letter-spacing: -.045em;
}

.page-header p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.55;
    opacity: .88;
}

.back-link {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    font-size: 22px;
    flex: 0 0 auto;
}

.logout-link {
    margin-left: auto;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.15);
    font-size: 12px;
    font-weight: 850;
}

.alert {
    border-radius: 18px;
    padding: 14px 15px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.alert.error {
    color: #991b1b;
    background: #fff1f2;
    border-color: #fecdd3;
}

.alert.success {
    color: #166534;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-radius: 22px;
    padding: 10px;
    margin-top: 14px;
}

.trust-strip div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    background: #f6faff;
}

.trust-strip b {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: var(--blue);
    color: white;
    font-size: 12px;
}

.trust-strip span {
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 850;
}

.form-card {
    display: grid;
    gap: 14px;
}

.form-section-title {
    margin-top: 6px;
    font-size: 13px;
    color: var(--blue-dark);
    font-weight: 900;
    letter-spacing: -.01em;
}

.field {
    display: grid;
    gap: 8px;
}

.field em {
    color: var(--blue);
    font-style: normal;
}

.field input,
.field select,
.field textarea,
.search-card input,
.filter-card input,
.filter-card select,
.login-form input {
    width: 100%;
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--text);
    border-radius: 17px;
    padding: 14px 14px;
    font-size: 15px;
    outline: none;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-card input:focus,
.filter-card input:focus,
.filter-card select:focus,
.login-form input:focus {
    border-color: rgba(20,99,255,.55);
    box-shadow: 0 0 0 4px rgba(20,99,255,.10);
    background: white;
}

.field small {
    color: var(--muted);
    font-size: 12px;
}

.upload-field input {
    background: white;
    border-style: dashed;
}

.choice-block {
    display: grid;
    gap: 9px;
}

.pill-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.pill-options label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--blue-dark);
    cursor: pointer;
}

.pill-options input {
    position: absolute;
    opacity: 0;
}

.pill-options label:has(input:checked) {
    background: var(--blue-soft);
    border-color: rgba(20,99,255,.5);
    color: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(20,99,255,.12);
}

.search-card,
.filter-card {
    border-radius: 22px;
    padding: 12px;
    margin-top: 14px;
    display: flex;
    gap: 8px;
}

.search-card input,
.filter-card input,
.filter-card select {
    min-width: 0;
}

.filter-card {
    display: grid;
    grid-template-columns: 1fr;
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.admin-summary div {
    border-radius: 20px;
    padding: 15px;
    background: white;
    border: 1px solid rgba(20,99,255,.07);
    box-shadow: var(--shadow-soft);
}

.admin-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.admin-summary b {
    display: block;
    margin-top: 5px;
    color: var(--blue-dark);
    font-size: 22px;
    letter-spacing: -.04em;
}

.order-list {
    display: grid;
    gap: 12px;
}

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

.order-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.order-main h2 {
    margin: 5px 0;
    font-size: 18px;
    letter-spacing: -.03em;
}

.order-main p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 14px 0;
}

.order-meta span {
    padding: 8px 10px;
    border-radius: 999px;
    background: #f3f8ff;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 750;
}

.order-actions form {
    margin: 0;
}

.status-pill {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.status-new { background: #eff6ff; color: #1d4ed8; }
.status-pickup { background: #fef3c7; color: #92400e; }
.status-received { background: #e0f2fe; color: #075985; }
.status-process { background: #ede9fe; color: #5b21b6; }
.status-payment { background: #fff7ed; color: #c2410c; }
.status-done { background: #dcfce7; color: #166534; }
.status-cancel { background: #fee2e2; color: #991b1b; }

.status-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.payment-pill {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.pay-unbilled { background: #eef2ff; color: #3730a3; }
.pay-waiting { background: #fff7ed; color: #c2410c; }
.pay-partial { background: #fef9c3; color: #854d0e; }
.pay-paid { background: #dcfce7; color: #166534; }
.pay-cancel { background: #fee2e2; color: #991b1b; }

.tracking-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.tracking-top h2 {
    margin: 5px 0 0;
    color: var(--blue-dark);
    font-size: 22px;
    letter-spacing: -.04em;
}

.result-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,1)),
        radial-gradient(circle at top right, rgba(20,99,255,.16), transparent 40%);
}

.progress-visual {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin: 16px 0;
}

.progress-visual span {
    height: 7px;
    border-radius: 999px;
    background: #e5eaf3;
}

.progress-visual span.active {
    background: linear-gradient(90deg, var(--blue), #68b3ff);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.detail-grid div {
    border-radius: 18px;
    padding: 13px;
    background: #f7fbff;
    border: 1px solid var(--line);
}

.detail-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.35;
}

.note-box {
    margin-top: 14px;
    padding: 15px;
    border-radius: 20px;
    background: var(--blue-soft);
    border: 1px solid rgba(20,99,255,.12);
}

.note-box p {
    margin: 7px 0 0;
    color: var(--blue-dark);
    font-size: 14px;
    line-height: 1.6;
}

.fee-breakdown {
    margin-top: 14px;
    padding: 15px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .06);
}

.fee-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px dashed #d8e2f0;
}

.fee-title span,
.fee-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.fee-title strong {
    display: block;
    margin-top: 4px;
    color: var(--blue-dark);
    font-size: 14px;
}

.fee-title b {
    color: var(--blue-dark);
    font-size: 17px;
    white-space: nowrap;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #eef3fb;
}

.fee-row strong {
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
}

.fee-row.total {
    margin-top: 4px;
    padding-top: 12px;
    border-bottom: 0;
}

.fee-row.total span,
.fee-row.total strong {
    color: var(--blue-dark);
    font-size: 16px;
    font-weight: 900;
}

.status-log-list {
    display: grid;
    gap: 10px;
}

.log-item {
    padding: 13px 13px 13px 15px;
    border-radius: 18px;
    background: #f8fbff;
    border-left: 4px solid var(--blue);
}

.log-item b {
    display: block;
    color: var(--blue-dark);
    font-size: 14px;
}

.log-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.log-item p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.cost-hint,
.total-preview {
    border-radius: 18px;
    padding: 13px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.total-preview strong {
    color: var(--blue);
}

.file-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 13px;
    border-radius: 17px;
    background: #f7fbff;
    border: 1px solid var(--line);
    margin-top: 9px;
    font-size: 14px;
}

.file-row b {
    color: var(--blue);
}

.danger-zone {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    border-radius: 22px;
    padding: 15px;
    background: #fff7f7;
    border-color: #fecaca;
}

.danger-zone b {
    color: #991b1b;
}

.danger-zone p {
    margin: 4px 0 0;
    color: #b45309;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    color: var(--muted);
}

.empty-state > div {
    font-size: 34px;
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 510px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(20,99,255,.10);
    box-shadow: 0 18px 45px rgba(13, 55, 120, .18);
    backdrop-filter: blur(16px);
    z-index: 50;
}

.bottom-nav a {
    min-height: 50px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    gap: 2px;
    color: var(--blue-dark);
    font-size: 18px;
}

.bottom-nav a span {
    font-size: 11px;
    font-weight: 850;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px 16px;
}

.login-card {
    width: min(100%, 430px);
    padding: 24px;
    border-radius: 32px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(20,99,255,.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

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

.login-brand p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-brand h1 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 34px;
    letter-spacing: -.05em;
}

.login-copy {
    margin-top: 26px;
}

.login-copy p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.login-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.login-demo {
    margin-top: 16px;
    padding: 13px;
    border-radius: 18px;
    background: #f4f8ff;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.login-demo code {
    color: var(--blue-dark);
    font-weight: 850;
}

@media (min-width: 560px) {
    .filter-card {
        grid-template-columns: 1.2fr .9fr auto;
    }
}

@media (max-width: 390px) {
    .hero-card h1 {
        font-size: 37px;
    }
    .detail-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }
    .timeline-mini {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-actions,
    .search-card {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}

.superadmin-tools {
    margin: -2px 0 14px;
}

.admin-user-list {
    display: grid;
    gap: 10px;
}

.admin-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid var(--line);
}

.admin-user-card h2 {
    margin: 0 0 5px;
    font-size: 16px;
    letter-spacing: -.03em;
    color: var(--blue-dark);
}

.admin-user-card p {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.admin-user-card span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.admin-user-card form {
    margin: 0;
}


.contact-admin-section{
    padding: 18px 16px 95px;
}

.contact-admin-card{
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.12);
}

.contact-icon{
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-content h3{
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}

.contact-content p{
    margin: 0 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.btn-contact-wa{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.25);
}


