:root {
    --color-primary: #ea580c;
    --color-primary-dark: #d84e00;
    --color-primary-light: #fff3ea;
    --color-primary-border: #fedbc4;
    --color-bg-body: #e5e5e5;
    --color-bg-screen: #f4f5f7;
    --color-bg-card: #ffffff;
    --color-text-main: #222222;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    --color-border: #eeeeee;
    --color-border-light: #f2f2f2;
    --color-blue: #1e73e8;
    --color-green: #2bb673;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background-color: var(--color-bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--color-text-main);
}

.mobile-screen {
    width: 100%;
    max-width: 390px;
    height: 100vh;
    height: 100dvh;
    max-height: 844px;
    background-color: var(--color-bg-screen);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 480px) {
    body {
        background-color: var(--color-bg-screen);
    }

    .mobile-screen {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }
}

.svg-defs-hidden {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-circle-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #e85800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle {
    width: 42px;
    height: 42px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.tx-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shopee-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: #ee4d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.merchant-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e85800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast {
    position: absolute;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(30, 30, 30, 0.9);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 200;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
    animation: slideUpModal 0.25s ease-out;
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-main);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #777777;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.modal-body {
    padding: 16px 20px 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-card {
    background: #f9fafb;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 11.5px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #dcdfe4;
    font-size: 13.5px;
    outline: none;
    background: #ffffff;
    color: var(--color-text-main);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
}

.btn-primary {
    background: #f25c05;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}

.btn-primary:active {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: #f0f2f5;
    color: #333333;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}

.btn-secondary:active {
    background: #e4e7ec;
}

.btn-danger-outline {
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.pwa-banner {
    display: none;
    margin: 10px 14px 4px 14px;
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary-border);
    border-radius: 12px;
    padding: 10px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pwa-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.pwa-banner-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-main);
}

.pwa-banner-desc {
    font-size: 10.5px;
    color: var(--color-text-muted);
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pwa-btn-install {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.pwa-btn-dismiss {
    background: transparent;
    border: none;
    color: #888888;
    font-size: 15px;
    cursor: pointer;
    padding: 2px 6px;
}

.cursor-pointer {
    cursor: pointer;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

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

.empty-state {
    padding: 16px;
    text-align: center;
    color: #888888;
    font-size: 13px;
}
