* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #fffaf3;
    --surface: #ffffff;
    --text: #181818;
    --muted: #737373;
    --border: #e9e3da;
    --dark: #171717;
    --soft: #f4efe7;
    --success: #218c5a;
    --success-soft: #eaf7f0;
    --warning: #b7791f;
    --warning-soft: #fff5dd;
    --danger: #c83f49;
    --danger-soft: #fff0f1;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(255, 224, 178, 0.25),
            transparent 34%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    width: 100%;
    background: rgba(255, 250, 243, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 92px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo {
    display: block;
    width: auto;
    height: 62px;
    object-fit: contain;
}

.back-link {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;

    padding: 11px 16px;

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

    background: rgba(255, 255, 255, 0.65);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.back-link:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.page {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0 100px;
}

.hero {
    text-align: center;
    margin-bottom: 34px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;

    background: var(--dark);
    color: #ffffff;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;

    max-width: 780px;
    margin: 0 auto 18px;
}

.hero p {
    max-width: 610px;
    margin: 0 auto;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.7;
}

.search-card,
.order-result {
    background: var(--surface);

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

    box-shadow: var(--shadow);
}

.search-card {
    padding: 28px;
}

.search-form label {
    display: block;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    margin-bottom: 10px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-row input {
    width: 100%;
    min-width: 0;

    padding: 16px 18px;

    color: var(--text);
    background: #fbfaf8;

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

    outline: none;

    font-size: 16px;
    font-weight: 700;

    text-transform: uppercase;

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

.search-row input:focus {
    background: #ffffff;
    border-color: #222222;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.search-row button {
    border: 0;
    border-radius: 15px;

    padding: 0 24px;

    background: var(--dark);
    color: #ffffff;

    font-weight: 900;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.search-row button:hover {
    transform: translateY(-2px);
}

.search-row button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.search-help {
    margin-top: 12px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
}

.message-box {
    margin-top: 20px;
    padding: 17px 19px;

    border-radius: 16px;

    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
}

.message-box.error {
    color: #9f2730;
    background: var(--danger-soft);
    border: 1px solid #f0c8cc;
}

.message-box.info {
    color: #7c5715;
    background: var(--warning-soft);
    border: 1px solid #efdba7;
}

.order-result {
    margin-top: 28px;
    padding: 34px;
}

.order-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

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

.eyebrow {
    display: block;

    color: var(--muted);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;

    margin-bottom: 6px;
}

.order-heading h2 {
    font-size: clamp(27px, 5vw, 40px);
    letter-spacing: -0.035em;
}

.status-badge {
    flex-shrink: 0;

    padding: 10px 14px;

    border-radius: 999px;

    background: var(--soft);

    font-size: 12px;
    font-weight: 900;
}

.status-badge.success {
    color: var(--success);
    background: var(--success-soft);
}

.status-badge.warning {
    color: var(--warning);
    background: var(--warning-soft);
}

.status-badge.danger {
    color: var(--danger);
    background: var(--danger-soft);
}

.progress-section {
    padding: 46px 8px 40px;
    position: relative;
}

.progress-line {
    position: absolute;

    top: 65px;
    left: 12.5%;
    right: 12.5%;

    height: 5px;

    background: #ece8e2;

    border-radius: 999px;

    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;

    background: var(--dark);

    border-radius: inherit;

    transition: width 0.5s ease;
}

.steps {
    position: relative;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 8px;
}

.step {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    opacity: 0.38;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step.active {
    transform: translateY(-3px);
}

.step-circle {
    width: 42px;
    height: 42px;

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

    border-radius: 50%;

    background: #ece8e2;
    border: 5px solid var(--surface);

    font-size: 13px;
    font-weight: 950;

    margin-bottom: 12px;
}

.step.completed .step-circle,
.step.active .step-circle {
    background: var(--dark);
    color: #ffffff;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.step-text strong {
    font-size: 13px;
}

.step-text span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.detail-card {
    min-height: 104px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 20px;

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

    background: #fcfbf9;
}

.detail-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

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

    background: #ffffff;

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

    font-size: 20px;
}

.detail-card span {
    display: block;

    color: var(--muted);

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    margin-bottom: 4px;
}

.detail-card strong {
    font-size: 15px;
    line-height: 1.4;
}

.tracking-card {
    margin-top: 14px;

    padding: 24px;

    background: var(--dark);
    color: #ffffff;

    border-radius: 22px;
}

.tracking-top {
    display: flex;
    align-items: center;

    gap: 16px;
}

.tracking-icon {
    width: 54px;
    height: 54px;

    flex: 0 0 54px;

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

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.1);

    font-size: 25px;
}

.tracking-label {
    display: block;

    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;

    margin-bottom: 4px;
}

#trackingNumber {
    font-size: clamp(18px, 4vw, 25px);
    letter-spacing: 0.02em;
    word-break: break-word;
}

.tracking-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-top: 22px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tracking-bottom span {
    display: block;

    color: rgba(255, 255, 255, 0.55);

    font-size: 11px;

    margin-bottom: 4px;
}

.tracking-bottom strong {
    font-size: 13px;
}

#copyTrackingButton {
    flex-shrink: 0;

    padding: 10px 14px;

    border: 0;
    border-radius: 12px;

    background: #ffffff;
    color: var(--dark);

    font-size: 12px;
    font-weight: 900;
}

.cancelled-box {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-top: 25px;
    padding: 20px;

    color: #9f2730;
    background: var(--danger-soft);

    border: 1px solid #f0c8cc;
    border-radius: 18px;
}

.cancelled-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

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

    border-radius: 50%;

    background: var(--danger);
    color: #ffffff;

    font-weight: 900;
}

.cancelled-box strong {
    display: block;
    margin-bottom: 3px;
}

.cancelled-box p {
    font-size: 13px;
}

.order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 28px;
    padding-top: 24px;

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

.order-footer p {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}

.refresh-button {
    flex-shrink: 0;

    padding: 11px 15px;

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

    background: #ffffff;
    color: var(--text);

    font-size: 12px;
    font-weight: 900;
}

.site-footer {
    padding: 40px 20px 55px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    color: var(--muted);

    text-align: center;
    font-size: 12px;
}

.site-footer img {
    width: auto;
    height: 44px;
    object-fit: contain;
}

.hidden {
    display: none !important;
}


@media (max-width: 700px) {

    .header-inner {
        width: min(100% - 28px, 1180px);
        min-height: 78px;
    }

    .logo {
        height: 50px;
    }

    .back-link {
        padding: 9px 12px;
        font-size: 12px;
    }

    .page {
        width: min(100% - 22px, 920px);
        padding-top: 50px;
        padding-bottom: 70px;
    }

    .hero {
        margin-bottom: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .search-card,
    .order-result {
        border-radius: 22px;
    }

    .search-card {
        padding: 20px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .search-row button {
        min-height: 52px;
    }

    .order-result {
        padding: 22px 17px;
    }

    .order-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .progress-section {
        padding: 35px 0 30px;
    }

    .progress-line {
        display: none;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .step {
        min-height: 66px;

        flex-direction: row;
        align-items: center;

        gap: 13px;

        text-align: left;

        padding: 9px 12px;

        border-radius: 15px;

        background: #faf8f5;
    }

    .step.active {
        transform: none;
        background: var(--soft);
    }

    .step-circle {
        flex: 0 0 42px;
        margin: 0;
        border: 0;
    }

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

    .tracking-bottom,
    .order-footer {
        align-items: stretch;
        flex-direction: column;
    }

    #copyTrackingButton,
    .refresh-button {
        width: 100%;
        min-height: 44px;
    }

}


@media (max-width: 420px) {

    .header-inner {
        gap: 12px;
    }

    .logo {
        height: 43px;
    }

    .back-link {
        font-size: 11px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .tracking-card {
        padding: 19px;
    }

}