* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #bfbfbf;
}

/* APP WRAPPER */
.app {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* LOGO */
.logo-container {
    text-align: center;
    padding-top: 40px;
    z-index: 2;
    position: relative;
}

.logo {
    width: 120px;
}

.brand {
    color: #ff4d00;
    font-weight: bold;
    margin-top: 5px;
}

/* ORANGE BACKGROUND SHAPE */
.orange-bg {
    position: absolute;

    width: 180vw;
    height: 180vw;

    max-width: 600px;
    max-height: 600px;

    background: #ff4d00;
    border-radius: 25px;

    top: 60%;
    left: 75%;

    transform: translate(-30%, -50%) rotate(45deg);

    z-index: 1;
}

/* LOGIN BOX */
.login-box {
    position: absolute;
    bottom: 200px;
    width: 100%;
    padding: 20px;
    z-index: 2;
}

/* INPUTS */
.login-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 20px;
    border: none;
    font-size: 16px;
}

/* BUTTON */
.login-box button {
    float: right;
    padding: 12px 25px;
    border-radius: 20px;
    border: none;
    background: #ddd;
    color: #ff4d00;
    font-size: 16px;
}

.app-page .logo-container {
    padding-top: 18px;
}

.app-page .logo {
    width: 78px;
}

.app-page .brand {
    font-size: 10px;
    margin-top: 2px;
}

.menu-grid {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    padding: 0 28px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
}

.menu-btn {
    height: 76px;
    border-radius: 22px;
    background: #6f6f6f;
    color: #ff5a00;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}

.menu-btn:active {
    transform: scale(0.98);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #d8d8d8;
    color: #222;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.app-shell {
    position: relative;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: #d8d8d8;
}

.bg-shape {
    position: absolute;
    width: 120vw;
    height: 120vw;
    max-width: 700px;
    max-height: 700px;
    background: #ff5a00;
    border-radius: 28px;
    top: 58%;
    left: 96%;
    transform: translate(-34%, -50%) rotate(45deg);
    z-index: 0;
}

.top-logo {
    position: relative;
    z-index: 2;
    padding: 18px 20px 0;
    min-height: 92px;
}

.top-logo.small .logo {
    width: 74px;
}

.logo-wrap {
    text-align: center;
}

.logo {
    display: inline-block;
    width: 110px;
}

.brand {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #ff5a00;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 16px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #666;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.page-content {
    position: relative;
    z-index: 2;
    padding: 10px 18px 28px;
}

.hero-card,
.info-card,
.section-card,
.order-card {
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.hero-card {
    background: #565656;
    color: #fff;
    padding: 24px 22px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 15px;
    line-height: 1.45;
    color: #f2f2f2;
}

.action-panel {
    margin-bottom: 18px;
}

.primary-wide-btn,
.primary-btn,
.secondary-btn {
    border: none;
    border-radius: 18px;
    min-height: 60px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.primary-wide-btn {
    width: 100%;
    background: #ff5a00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    flex: 1;
    background: #ff5a00;
    color: #fff;
}

.secondary-btn {
    flex: 1;
    background: #666;
    color: #fff;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #222;
}

.section-title.dark {
    font-size: 17px;
    margin-bottom: 16px;
}

.list-section {
    margin-top: 6px;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-card {
    display: block;
    padding: 18px;
    color: #222;
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.order-number {
    font-size: 22px;
    font-weight: 700;
    color: #ff5a00;
}

.order-status {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-align: right;
    max-width: 110px;
}

.order-partner {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.order-meta {
    font-size: 14px;
    color: #666;
}

.info-card {
    background: #565656;
    color: #fff;
    padding: 20px;
    margin-bottom: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-block.full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 14px;
    color: #eaeaea;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.info-value.highlight,
.info-value.status {
    color: #ff5a00;
    font-size: 18px;
}

.section-card {
    padding: 22px;
    margin-bottom: 18px;
}

.scan-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #ff5a00;
    border-radius: 18px;
    padding: 0 14px;
    min-height: 66px;
    margin-bottom: 18px;
    background: #fff;
}

.scan-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    color: #444;
    background: transparent;
}

.scan-icon {
    font-size: 28px;
    color: #444;
}

.field-group {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #777;
    font-size: 14px;
}

.product-preview {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.qty-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.qty-btn {
    flex: 1;
    min-height: 56px;
    border: none;
    border-radius: 16px;
    background: #666;
    color: #fff;
    font-size: 32px;
}

.qty-display {
    min-width: 110px;
    min-height: 56px;
    background: #f3f3f3;
    border: 2px solid #ddd;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.list-card {
    padding-bottom: 10px;
}

.mobile-item-list {
    display: flex;
    flex-direction: column;
}

.mobile-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
}

.item-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #ddd;
    background: #fff;
}

.mobile-item-info {
    flex: 1;
}

.mobile-item-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.mobile-item-qty {
    font-size: 16px;
    font-weight: 700;
    color: #ff5a00;
}

.delete-btn {
    width: 54px;
    height: 54px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 14px;
    font-size: 22px;
    cursor: pointer;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 6px;
    font-size: 18px;
}

.summary-row strong {
    color: #ff5a00;
    font-size: 20px;
}

.bottom-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

@media (max-width: 380px) {
    .order-card-top,
    .info-grid,
    .qty-row,
    .bottom-actions {
        display: block;
    }

    .info-block,
    .qty-btn,
    .qty-display,
    .secondary-btn,
    .primary-btn {
        width: 100%;
        margin-bottom: 12px;
    }

    .order-status {
        margin-top: 8px;
        text-align: left;
        max-width: none;
    }
}