* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #222;
}

body {
    min-height: 100vh;
}

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

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

.app-body {
    display: flex;
    justify-content: center;
}

.mobile-shell {
    width: 100%;
    max-width: 768px;
    min-height: 100vh;
    background: #f6f6f8;
}



.hero-banner img {
    width: 100%;
    height: auto;
}

.main-card {
    margin-top: -8px;
    background: #f5f5f7;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 18px 20px 28px;
}

.section-title {
    font-size: 26px;
    color: #222;
    margin: 18px 0 24px;
}

.error-banner {
    background: #fff3f0;
    color: #cf3f2f;
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 18px;
    margin-bottom: 18px;
}

.form-card,
.status-panel,
.admin-card,
.admin-table-wrap,
.admin-login-card {
    background: #fff;
    border-radius: 28px;
    padding: 20px 24px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.03);
}

.field-row {
    display: flex;
    align-items: center;
    min-height: 88px;
    border-bottom: 1px solid #f3f3f5;
    gap: 16px;
}

.field-row:last-child {
    border-bottom: 0;
}

.field-label,
.upload-label {
    width: 170px;
    font-size: 22px;
    color: #1f1f1f;
    flex-shrink: 0;
}

.required {
    color: #ff3a2f;
    margin-left: 4px;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 24px;
    color: #222;
}

.admin-input,
.admin-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e9edf2;
    outline: none;
    background: #fff;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 15px;
    color: #222;
}

.field-input::placeholder,
.field-textarea::placeholder {
    color: #b5b8c0;
}

.city-row {
    position: relative;
}

.city-trigger {
    flex: 1;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.city-trigger-text {
    flex: 1;
    font-size: 24px;
    color: #222;
}

.city-trigger-text.is-placeholder {
    color: #b5b8c0;
}

.chevron {
    color: #a9adb6;
    font-size: 48px;
    line-height: 1;
}

.city-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.city-popup-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.city-popup-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    padding-bottom: env(safe-area-inset-bottom);
}

.city-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f0f1f4;
}

.city-popup-title {
    font-size: 17px;
    font-weight: 600;
}

.city-popup-close {
    border: 0;
    background: transparent;
    color: #7d8590;
    font-size: 15px;
    cursor: pointer;
}

.city-popup-body {
    display: flex;
    height: 60vh;
    min-height: 320px;
}

.city-popup-province,
.city-popup-city {
    overflow-y: auto;
}

.city-popup-province {
    width: 42%;
    background: #f6f7f9;
}

.city-popup-city {
    flex: 1;
    background: #fff;
}

.city-option {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 14px 16px;
    font-size: 15px;
    color: #222;
    text-align: left;
    cursor: pointer;
}

.city-option.is-active,
.city-option.is-selected {
    color: #ff4a26;
    background: rgba(255, 74, 38, 0.08);
}

.textarea-row {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 10px;
}

.field-textarea {
    resize: none;
    padding-top: 4px;
    min-height: 96px;
}

.upload-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 0;
}

.multi-upload-group,
.credit-upload-grid {
    flex: 1;
    background: transparent;
}

.upload-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.upload-box {
    position: relative;
    width: 96px;
    aspect-ratio: 1 / 1;
    border: 2px solid #eceef2;
    background: #f5f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    flex-shrink: 0;
}

.upload-trigger {
    position: relative;
}

.upload-trigger.is-hidden {
    display: none;
}

.upload-picker {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-plus {
    font-size: 52px;
    line-height: 1;
    color: #b7bcc6;
    font-weight: 300;
}

.upload-item {
    position: relative;
}

.upload-item .upload-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.upload-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(141, 147, 158, 0.92);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    cursor: pointer;
    padding: 0;
}

.primary-button,
.admin-button {
    width: 100%;
    height: 84px;
    border: 0;
    border-radius: 42px;
    background: linear-gradient(180deg, #ff4b34 0%, #ff2f18 100%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-button {
    margin-top: 20px;
    height: 62px;
    border-radius: 31px;
    font-size: 24px;
}

.query-card {
    margin-top: 18px;
    background: #fff;
    border-radius: 24px;
    padding: 18px 24px 20px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.03);
}

.query-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 10px;
}

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

.query-row {
    min-height: 80px;
}

.query-button {
    height: 56px;
    border-radius: 28px;
    font-size: 20px;
}

.status-card {
    padding-bottom: 64px;
}

.status-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 164px;
    height: 58px;
    padding: 0 24px;
    border-radius: 29px;
    font-size: 24px;
    color: #fff;
    background: #ff8e2b;
}

.status-panel.approved .status-badge {
    background: #17a34a;
}

.status-panel.rejected .status-badge {
    background: #e03b31;
}

.status-text {
    font-size: 22px;
    color: #484c55;
    line-height: 1.7;
}

.amount-box {
    margin-top: 14px;
    padding: 24px;
    border-radius: 22px;
    background: #fff6f2;
}

.amount-label {
    color: #8d5d43;
    font-size: 22px;
}

.amount-value {
    margin-top: 10px;
    font-size: 42px;
    font-weight: 700;
    color: #ff4a26;
}

.status-tip {
    margin-top: 8px;
    font-size: 22px;
    color: #8a8f98;
}

.status-tip.danger {
    color: #d63c31;
}

.admin-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-title {
    font-size: 30px;
    font-weight: 700;
}

.admin-subtitle {
    margin-top: 6px;
    color: #7d8590;
    font-size: 15px;
}

.admin-link {
    color: #ff4a26;
    text-decoration: none;
    font-size: 15px;
}

.admin-card {
    margin-bottom: 20px;
}

.admin-search-form,
.admin-login-form,
.admin-review-form {
    display: grid;
    gap: 16px;
}

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

.admin-button.inline {
    width: auto;
    min-width: 140px;
    padding: 0 26px;
}

.admin-button.gray {
    background: #7d8590;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid #f0f1f4;
    font-size: 14px;
    vertical-align: top;
}

.admin-table th {
    color: #69707d;
    font-weight: 600;
    background: #fafbfc;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 32px;
    padding: 0 10px;
    border-radius: 16px;
    font-size: 13px;
    color: #fff;
}

.tag.pending {
    background: #ff9a22;
}

.tag.approved {
    background: #15a14a;
}

.tag.rejected {
    background: #dd4138;
}

.thumb-link {
    color: #ff4a26;
    text-decoration: none;
    margin-right: 10px;
    white-space: nowrap;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    padding: 30px;
}

.admin-login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-login-desc {
    font-size: 14px;
    color: #7a808a;
    margin-bottom: 20px;
}

.admin-error,
.admin-success {
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
}

.admin-error {
    background: #fff2f0;
    color: #d33a31;
}

.admin-success {
    background: #effbf2;
    color: #16833f;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    font-size: 15px;
}

.meta-key {
    color: #717782;
}

.meta-value {
    color: #202327;
    word-break: break-all;
}

.image-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.preview-section {
    display: grid;
    gap: 14px;
}

.preview-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #24272c;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.preview-grid-credit {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.preview-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #f6f7f9;
    border: 1px solid #edf0f3;
}

.preview-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.preview-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.preview-lightbox:not([hidden]) {
    display: flex;
}

.preview-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

textarea.admin-input {
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

@media (max-width: 768px) {
    .main-card {
        margin-top: -6px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding: 16px 10px 24px;
    }

    .section-title {
        font-size: 16px;
        margin: 14px 0 16px;
    }

    .form-card,
    .status-panel,
    .admin-card,
    .admin-table-wrap,
    .admin-login-card {
        border-radius: 20px;
        padding: 18px 16px;
    }

    .field-row {
        min-height: 62px;
        gap: 8px;
    }

    .field-label,
    .upload-label {
        width: 88px;
        font-size: 13px;
    }

    .field-input,
    .field-select,
    .field-textarea {
        font-size: 14px;
    }

    .city-trigger-text {
        font-size: 14px;
    }

    .textarea-row {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .field-textarea {
        min-height: 80px;
    }

    .upload-row {
        gap: 12px;
        padding: 16px 0;
    }

    .multi-upload-group {
        gap: 8px;
    }

    .credit-upload-grid {
        gap: 8px;
    }

    .preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .preview-grid-credit {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .upload-list {
        gap: 8px;
    }

    .upload-box {
        width: 72px;
    }

    .upload-plus {
        font-size: 34px;
    }

    .upload-remove {
        top: 4px;
        right: 4px;
        width: 22px;
        height: 22px;
        font-size: 16px;
    }

    .primary-button,
    .admin-button {
        height: 50px;
        border-radius: 25px;
        font-size: 17px;
    }

    .status-badge {
        min-width: 96px;
        height: 38px;
        border-radius: 19px;
        font-size: 14px;
    }

    .status-text,
    .status-tip {
        font-size: 13px;
    }

    .amount-label {
        font-size: 13px;
    }

    .amount-value {
        font-size: 24px;
    }

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

    .meta-item {
        grid-template-columns: 78px minmax(0, 1fr);
        font-size: 13px;
    }
}
