{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "PaymentQRScreen",
      "name": "Payment/QR",
      "reusable": true,
      "width": 480,
      "height": 640,
      "fill": "$bg-page",
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "QRHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "QRHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "QRBackBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "QRBackIcon", "width": 20, "height": 20, "iconFontName": "arrow-left", "iconFontFamily": "lucide", "fill": "$text-secondary"}
              ]},
              {"type": "text", "id": "QRTitle", "fill": "$text-primary", "content": "Quét mã QR", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "QRTotalBadge", "fill": "#3B82F620", "cornerRadius": 10, "padding": [8, 14], "children": [
              {"type": "text", "id": "QRTotalText", "fill": "#3B82F6", "content": "530,250₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "QRContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 24,
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "QRTabs", "gap": 8, "children": [
              {"type": "frame", "id": "QRTabVietQR", "fill": "$orange-primary", "cornerRadius": 100, "padding": [10, 18], "children": [{"type": "text", "id": "QRTabVietQRText", "fill": "$text-primary", "content": "VietQR", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}]},
              {"type": "frame", "id": "QRTabMomo", "fill": "$bg-interactive", "cornerRadius": 100, "padding": [10, 18], "children": [{"type": "text", "id": "QRTabMomoText", "fill": "$text-secondary", "content": "MoMo", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}]},
              {"type": "frame", "id": "QRTabZalo", "fill": "$bg-interactive", "cornerRadius": 100, "padding": [10, 18], "children": [{"type": "text", "id": "QRTabZaloText", "fill": "$text-secondary", "content": "ZaloPay", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}]}
            ]},
            {"type": "frame", "id": "QRCodeBox", "width": 280, "height": 280, "fill": "#FFFFFF", "cornerRadius": 20, "padding": 20, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "frame", "id": "QRCodeInner", "width": 220, "height": 220, "fill": "$bg-page", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "text", "id": "QRPlaceholder", "fill": "$text-tertiary", "content": "QR CODE", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "700"}
              ]}
            ]},
            {"type": "frame", "id": "QRBankInfo", "layout": "vertical", "gap": 8, "alignItems": "center", "children": [
              {"type": "text", "id": "QRBankName", "fill": "$text-primary", "content": "Vietcombank", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"},
              {"type": "text", "id": "QRAccountNo", "fill": "$text-secondary", "content": "0123 4567 8910", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "text", "id": "QRAccountName", "fill": "$text-tertiary", "content": "CONG TY TNHH GOODGO", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
            ]},
            {"type": "frame", "id": "QRStatus", "width": "fill_container", "fill": "#F59E0B15", "cornerRadius": 12, "padding": [14, 20], "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "QRSpinner", "width": 24, "height": 24, "cornerRadius": 100, "stroke": {"thickness": 3, "fill": "#F59E0B"}, "children": []},
              {"type": "frame", "id": "QRStatusInfo", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "QRStatusTitle", "fill": "#F59E0B", "content": "Đang chờ thanh toán...", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "text", "id": "QRStatusDesc", "fill": "$text-secondary", "content": "Quét mã QR bằng app ngân hàng hoặc ví điện tử", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "QRFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "gap": 12,
          "children": [
            {"type": "frame", "id": "QRCancelBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "QRCancelText", "fill": "$text-secondary", "content": "Hủy", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
            ]},
            {"type": "frame", "id": "QRManualBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "QRManualText", "fill": "$text-primary", "content": "Xác nhận thủ công", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
